Add swig templates
This commit is contained in:
parent
66d3c7b811
commit
ed184fc78a
23 changed files with 2709 additions and 0 deletions
26
swigtemplates/any.i
Normal file
26
swigtemplates/any.i
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
%module any
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/typeinfo.h>
|
||||
%}
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/meta/if.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/list.h"
|
||||
%include "wx/any.h"
|
||||
121
swigtemplates/app.i
Normal file
121
swigtemplates/app.i
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
%module app
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/app.h>
|
||||
|
||||
#include "wxext/app_ext.h"
|
||||
#if defined(__WXMAC__)
|
||||
#include <objc/runtime.h>
|
||||
#include "wxext/osx/app_ext.h"
|
||||
#endif
|
||||
|
||||
%}
|
||||
|
||||
%ignore wxWindowList::Nth;
|
||||
%ignore wxPointList::Nth;
|
||||
%ignore wxPendingDelete;
|
||||
%ignore wxCreateApp;
|
||||
%ignore wxTheAppInitializer;
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/window.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%import "wx/frame.h"
|
||||
%include "wx/app.h"
|
||||
%include "wx/build.h"
|
||||
%include "wxext/app_ext.h"
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
%include "wx/msw/app.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
%include "wx/motif/app.h"
|
||||
#elif defined(__WXDFB__)
|
||||
%include "wx/dfb/app.h"
|
||||
#elif defined(__WXGTK20__)
|
||||
%include "wx/gtk/app.h"
|
||||
#elif defined(__WXGTK__)
|
||||
%include "wx/gtk1/app.h"
|
||||
#elif defined(__WXX11__)
|
||||
%include "wx/x11/app.h"
|
||||
#elif defined(__WXMAC__)
|
||||
%include "wx/osx/app.h"
|
||||
%include "wxext/osx/app_ext.h"
|
||||
#elif defined(__WXQT__)
|
||||
%include "wx/qt/app.h"
|
||||
#endif
|
||||
|
||||
%{
|
||||
/* typedef wxWindow* (* InitTopWindow)(); */
|
||||
|
||||
/* wxWindow* privInitTopWindow() { */
|
||||
/* wxFrame *frame = new wxFrame((wxFrame*) NULL, -1, _T("Hello wxWidgets World")); */
|
||||
/* frame->CreateStatusBar(); */
|
||||
/* frame->SetStatusText(_T("Hello World")); */
|
||||
/* frame->Show(true); */
|
||||
/* return frame; */
|
||||
/* } */
|
||||
/* class MainApp : public wxApp */
|
||||
/* { */
|
||||
/* private: */
|
||||
/* InitTopWindow initTopWindowFunc; */
|
||||
/* public: */
|
||||
/* MainApp(): wxApp(){ */
|
||||
/* initTopWindowFunc = privInitTopWindow; */
|
||||
/* } */
|
||||
/* void SetTopWindowInitFunc(InitTopWindow init){ */
|
||||
/* initTopWindowFunc = init; */
|
||||
/* } */
|
||||
/* virtual bool OnInit(); */
|
||||
/* }; */
|
||||
|
||||
/* bool MainApp::OnInit() */
|
||||
/* { */
|
||||
/* SetTopWindow(initTopWindowFunc()); */
|
||||
/* return true; */
|
||||
/* } */
|
||||
%}
|
||||
731
swigtemplates/appbaseext.h
Normal file
731
swigtemplates/appbaseext.h
Normal file
|
|
@ -0,0 +1,731 @@
|
|||
#include <wx/wx.h>
|
||||
#include <wx/vidmode.h>
|
||||
|
||||
#ifndef _WX_APP_H_EXT_
|
||||
#define _WX_APP_H_EXT_
|
||||
|
||||
#include <wx/wx.h>
|
||||
#include <wx/vidmode.h>
|
||||
|
||||
class wxAppConsoleBaseExt;
|
||||
typedef bool (*wxAppConsoleBaseExtInitializeFunc)(const wxAppConsoleBaseExt* self, int& argc, wxChar** argv);
|
||||
typedef bool (*wxAppConsoleBaseExtCallOnInitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtOnInitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef int (*wxAppConsoleBaseExtOnRunFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnLaunchedFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnEventLoopEnterFunc)(const wxAppConsoleBaseExt* self, wxEventLoopBase* param0);
|
||||
typedef int (*wxAppConsoleBaseExtOnExitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnEventLoopExitFunc)(const wxAppConsoleBaseExt* self, wxEventLoopBase* param0);
|
||||
typedef void (*wxAppConsoleBaseExtCleanUpFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnFatalExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtExitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnInitCmdLineFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef bool (*wxAppConsoleBaseExtOnCmdLineParsedFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef bool (*wxAppConsoleBaseExtOnCmdLineHelpFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef bool (*wxAppConsoleBaseExtOnCmdLineErrorFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef void (*wxAppConsoleBaseExtSetCLocaleFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef int (*wxAppConsoleBaseExtFilterEventFunc)(const wxAppConsoleBaseExt* self, wxEvent& event);
|
||||
typedef void (*wxAppConsoleBaseExtCallEventHandlerFunc)(const wxAppConsoleBaseExt* self, wxEvtHandler* handler, wxEventFunctor& functor, wxEvent& event);
|
||||
typedef void (*wxAppConsoleBaseExtHandleEventFunc)(const wxAppConsoleBaseExt* self, wxEvtHandler* handler, wxEventFunction func, wxEvent& event);
|
||||
typedef void (*wxAppConsoleBaseExtOnUnhandledExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtOnExceptionInMainLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtStoreCurrentExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtRethrowStoredExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtProcessPendingEventsFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtPendingFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtDispatchFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef int (*wxAppConsoleBaseExtMainLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtExitMainLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtWakeUpIdleFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtProcessIdleFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtUsesEventLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnAssertFailureFunc)(const wxAppConsoleBaseExt* self, wxChar const* file, int line, wxChar const* func, wxChar const* cond, wxChar const* msg);
|
||||
typedef void (*wxAppConsoleBaseExtOnAssertFunc)(const wxAppConsoleBaseExt* self, wxChar const* file, int line, wxChar const* cond, wxChar const* msg);
|
||||
typedef bool (*wxAppConsoleBaseExtIsGUIFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef wxAppTraits* (*wxAppConsoleBaseExtCreateTraitsFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void* (*wxAppConsoleBaseExtWXReservedApp1Func)(const wxAppConsoleBaseExt* self, void* param0);
|
||||
typedef void* (*wxAppConsoleBaseExtWXReservedApp2Func)(const wxAppConsoleBaseExt* self, void* param0);
|
||||
class wxAppBaseExt;
|
||||
typedef bool (*wxAppBaseExtInitializeFunc)(const wxAppBaseExt* self, int& argc, wxChar** argv);
|
||||
typedef bool (*wxAppBaseExtOnInitGuiFunc)(const wxAppBaseExt* self);
|
||||
typedef int (*wxAppBaseExtOnRunFunc)(const wxAppBaseExt* self);
|
||||
typedef int (*wxAppBaseExtOnExitFunc)(const wxAppBaseExt* self);
|
||||
typedef void (*wxAppBaseExtCleanUpFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtSafeYieldFunc)(const wxAppBaseExt* self, wxWindow* win, bool onlyIfNeeded);
|
||||
typedef bool (*wxAppBaseExtSafeYieldForFunc)(const wxAppBaseExt* self, wxWindow* win, long eventsToProcess);
|
||||
typedef bool (*wxAppBaseExtProcessIdleFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtUsesEventLoopFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtIsActiveFunc)(const wxAppBaseExt* self);
|
||||
typedef wxWindow* (*wxAppBaseExtGetTopWindowFunc)(const wxAppBaseExt* self);
|
||||
typedef wxVideoMode (*wxAppBaseExtGetDisplayModeFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtSetDisplayModeFunc)(const wxAppBaseExt* self, wxVideoMode const& param0);
|
||||
typedef void (*wxAppBaseExtSetPrintModeFunc)(const wxAppBaseExt* self, int param0);
|
||||
typedef wxLayoutDirection (*wxAppBaseExtGetLayoutDirectionFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtSetNativeThemeFunc)(const wxAppBaseExt* self, wxString const& param0);
|
||||
typedef bool (*wxAppBaseExtOnCmdLineParsedFunc)(const wxAppBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef void (*wxAppBaseExtOnInitCmdLineFunc)(const wxAppBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef void (*wxAppBaseExtSetActiveFunc)(const wxAppBaseExt* self, bool isActive, wxWindow* lastFocus);
|
||||
typedef bool (*wxAppBaseExtIsGUIFunc)(const wxAppBaseExt* self);
|
||||
typedef wxAppTraits* (*wxAppBaseExtCreateTraitsFunc)(const wxAppBaseExt* self);
|
||||
class wxAppInitializerExt;
|
||||
|
||||
class wxAppConsoleBaseExt: public wxAppConsoleBase
|
||||
{
|
||||
public:
|
||||
wxAppConsoleBaseExt(): wxAppConsoleBase() { }
|
||||
virtual ~wxAppConsoleBaseExt() override { }
|
||||
wxAppConsoleBaseExtInitializeFunc m_wxAppConsoleBaseExtInitialize;
|
||||
virtual bool Initialize(int& argc, wxChar** argv) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::Initialize(argc, argv);
|
||||
if (*m_wxAppConsoleBaseExtInitialize != NULL){
|
||||
return m_wxAppConsoleBaseExtInitialize(this, argc, argv);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCallOnInitFunc m_wxAppConsoleBaseExtCallOnInit;
|
||||
virtual bool CallOnInit() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::CallOnInit();
|
||||
if (*m_wxAppConsoleBaseExtCallOnInit != NULL){
|
||||
return m_wxAppConsoleBaseExtCallOnInit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnInitFunc m_wxAppConsoleBaseExtOnInit;
|
||||
virtual bool OnInit() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnInit();
|
||||
if (*m_wxAppConsoleBaseExtOnInit != NULL){
|
||||
return m_wxAppConsoleBaseExtOnInit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnRunFunc m_wxAppConsoleBaseExtOnRun;
|
||||
virtual int OnRun() override
|
||||
{
|
||||
int res = wxAppConsoleBase::OnRun();
|
||||
if (*m_wxAppConsoleBaseExtOnRun != NULL){
|
||||
return m_wxAppConsoleBaseExtOnRun(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnLaunchedFunc m_wxAppConsoleBaseExtOnLaunched;
|
||||
virtual void OnLaunched() override
|
||||
{
|
||||
wxAppConsoleBase::OnLaunched();
|
||||
if (*m_wxAppConsoleBaseExtOnLaunched != NULL){
|
||||
return m_wxAppConsoleBaseExtOnLaunched(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnEventLoopEnterFunc m_wxAppConsoleBaseExtOnEventLoopEnter;
|
||||
virtual void OnEventLoopEnter(wxEventLoopBase* param0) override
|
||||
{
|
||||
wxAppConsoleBase::OnEventLoopEnter(param0);
|
||||
if (*m_wxAppConsoleBaseExtOnEventLoopEnter != NULL){
|
||||
return m_wxAppConsoleBaseExtOnEventLoopEnter(this, param0);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnExitFunc m_wxAppConsoleBaseExtOnExit;
|
||||
virtual int OnExit() override
|
||||
{
|
||||
int res = wxAppConsoleBase::OnExit();
|
||||
if (*m_wxAppConsoleBaseExtOnExit != NULL){
|
||||
return m_wxAppConsoleBaseExtOnExit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnEventLoopExitFunc m_wxAppConsoleBaseExtOnEventLoopExit;
|
||||
virtual void OnEventLoopExit(wxEventLoopBase* param0) override
|
||||
{
|
||||
wxAppConsoleBase::OnEventLoopExit(param0);
|
||||
if (*m_wxAppConsoleBaseExtOnEventLoopExit != NULL){
|
||||
return m_wxAppConsoleBaseExtOnEventLoopExit(this, param0);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCleanUpFunc m_wxAppConsoleBaseExtCleanUp;
|
||||
virtual void CleanUp() override
|
||||
{
|
||||
wxAppConsoleBase::CleanUp();
|
||||
if (*m_wxAppConsoleBaseExtCleanUp != NULL){
|
||||
return m_wxAppConsoleBaseExtCleanUp(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnFatalExceptionFunc m_wxAppConsoleBaseExtOnFatalException;
|
||||
virtual void OnFatalException() override
|
||||
{
|
||||
wxAppConsoleBase::OnFatalException();
|
||||
if (*m_wxAppConsoleBaseExtOnFatalException != NULL){
|
||||
return m_wxAppConsoleBaseExtOnFatalException(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtExitFunc m_wxAppConsoleBaseExtExit;
|
||||
virtual void Exit() override
|
||||
{
|
||||
wxAppConsoleBase::Exit();
|
||||
if (*m_wxAppConsoleBaseExtExit != NULL){
|
||||
return m_wxAppConsoleBaseExtExit(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnInitCmdLineFunc m_wxAppConsoleBaseExtOnInitCmdLine;
|
||||
virtual void OnInitCmdLine(wxCmdLineParser& parser) override
|
||||
{
|
||||
wxAppConsoleBase::OnInitCmdLine(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnInitCmdLine != NULL){
|
||||
return m_wxAppConsoleBaseExtOnInitCmdLine(this, parser);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnCmdLineParsedFunc m_wxAppConsoleBaseExtOnCmdLineParsed;
|
||||
virtual bool OnCmdLineParsed(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnCmdLineParsed(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnCmdLineParsed != NULL){
|
||||
return m_wxAppConsoleBaseExtOnCmdLineParsed(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnCmdLineHelpFunc m_wxAppConsoleBaseExtOnCmdLineHelp;
|
||||
virtual bool OnCmdLineHelp(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnCmdLineHelp(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnCmdLineHelp != NULL){
|
||||
return m_wxAppConsoleBaseExtOnCmdLineHelp(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnCmdLineErrorFunc m_wxAppConsoleBaseExtOnCmdLineError;
|
||||
virtual bool OnCmdLineError(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnCmdLineError(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnCmdLineError != NULL){
|
||||
return m_wxAppConsoleBaseExtOnCmdLineError(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtSetCLocaleFunc m_wxAppConsoleBaseExtSetCLocale;
|
||||
virtual void SetCLocale() override
|
||||
{
|
||||
wxAppConsoleBase::SetCLocale();
|
||||
if (*m_wxAppConsoleBaseExtSetCLocale != NULL){
|
||||
return m_wxAppConsoleBaseExtSetCLocale(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtFilterEventFunc m_wxAppConsoleBaseExtFilterEvent;
|
||||
virtual int FilterEvent(wxEvent& event) override
|
||||
{
|
||||
int res = wxAppConsoleBase::FilterEvent(event);
|
||||
if (*m_wxAppConsoleBaseExtFilterEvent != NULL){
|
||||
return m_wxAppConsoleBaseExtFilterEvent(this, event);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCallEventHandlerFunc m_wxAppConsoleBaseExtCallEventHandler;
|
||||
virtual void CallEventHandler(wxEvtHandler* handler, wxEventFunctor& functor, wxEvent& event) const override
|
||||
{
|
||||
wxAppConsoleBase::CallEventHandler(handler, functor, event);
|
||||
if (*m_wxAppConsoleBaseExtCallEventHandler != NULL){
|
||||
return m_wxAppConsoleBaseExtCallEventHandler(this, handler, functor, event);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtHandleEventFunc m_wxAppConsoleBaseExtHandleEvent;
|
||||
virtual void HandleEvent(wxEvtHandler* handler, wxEventFunction func, wxEvent& event) const override
|
||||
{
|
||||
wxAppConsoleBase::HandleEvent(handler, func, event);
|
||||
if (*m_wxAppConsoleBaseExtHandleEvent != NULL){
|
||||
return m_wxAppConsoleBaseExtHandleEvent(this, handler, func, event);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnUnhandledExceptionFunc m_wxAppConsoleBaseExtOnUnhandledException;
|
||||
virtual void OnUnhandledException() override
|
||||
{
|
||||
wxAppConsoleBase::OnUnhandledException();
|
||||
if (*m_wxAppConsoleBaseExtOnUnhandledException != NULL){
|
||||
return m_wxAppConsoleBaseExtOnUnhandledException(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnExceptionInMainLoopFunc m_wxAppConsoleBaseExtOnExceptionInMainLoop;
|
||||
virtual bool OnExceptionInMainLoop() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnExceptionInMainLoop();
|
||||
if (*m_wxAppConsoleBaseExtOnExceptionInMainLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtOnExceptionInMainLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtStoreCurrentExceptionFunc m_wxAppConsoleBaseExtStoreCurrentException;
|
||||
virtual bool StoreCurrentException() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::StoreCurrentException();
|
||||
if (*m_wxAppConsoleBaseExtStoreCurrentException != NULL){
|
||||
return m_wxAppConsoleBaseExtStoreCurrentException(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtRethrowStoredExceptionFunc m_wxAppConsoleBaseExtRethrowStoredException;
|
||||
virtual void RethrowStoredException() override
|
||||
{
|
||||
wxAppConsoleBase::RethrowStoredException();
|
||||
if (*m_wxAppConsoleBaseExtRethrowStoredException != NULL){
|
||||
return m_wxAppConsoleBaseExtRethrowStoredException(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtProcessPendingEventsFunc m_wxAppConsoleBaseExtProcessPendingEvents;
|
||||
virtual void ProcessPendingEvents() override
|
||||
{
|
||||
wxAppConsoleBase::ProcessPendingEvents();
|
||||
if (*m_wxAppConsoleBaseExtProcessPendingEvents != NULL){
|
||||
return m_wxAppConsoleBaseExtProcessPendingEvents(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtPendingFunc m_wxAppConsoleBaseExtPending;
|
||||
virtual bool Pending() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::Pending();
|
||||
if (*m_wxAppConsoleBaseExtPending != NULL){
|
||||
return m_wxAppConsoleBaseExtPending(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtDispatchFunc m_wxAppConsoleBaseExtDispatch;
|
||||
virtual bool Dispatch() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::Dispatch();
|
||||
if (*m_wxAppConsoleBaseExtDispatch != NULL){
|
||||
return m_wxAppConsoleBaseExtDispatch(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtMainLoopFunc m_wxAppConsoleBaseExtMainLoop;
|
||||
virtual int MainLoop() override
|
||||
{
|
||||
int res = wxAppConsoleBase::MainLoop();
|
||||
if (*m_wxAppConsoleBaseExtMainLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtMainLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtExitMainLoopFunc m_wxAppConsoleBaseExtExitMainLoop;
|
||||
virtual void ExitMainLoop() override
|
||||
{
|
||||
wxAppConsoleBase::ExitMainLoop();
|
||||
if (*m_wxAppConsoleBaseExtExitMainLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtExitMainLoop(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtWakeUpIdleFunc m_wxAppConsoleBaseExtWakeUpIdle;
|
||||
virtual void WakeUpIdle() override
|
||||
{
|
||||
wxAppConsoleBase::WakeUpIdle();
|
||||
if (*m_wxAppConsoleBaseExtWakeUpIdle != NULL){
|
||||
return m_wxAppConsoleBaseExtWakeUpIdle(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtProcessIdleFunc m_wxAppConsoleBaseExtProcessIdle;
|
||||
virtual bool ProcessIdle() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::ProcessIdle();
|
||||
if (*m_wxAppConsoleBaseExtProcessIdle != NULL){
|
||||
return m_wxAppConsoleBaseExtProcessIdle(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtUsesEventLoopFunc m_wxAppConsoleBaseExtUsesEventLoop;
|
||||
virtual bool UsesEventLoop() const override
|
||||
{
|
||||
bool res = wxAppConsoleBase::UsesEventLoop();
|
||||
if (*m_wxAppConsoleBaseExtUsesEventLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtUsesEventLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnAssertFailureFunc m_wxAppConsoleBaseExtOnAssertFailure;
|
||||
virtual void OnAssertFailure(wxChar const* file, int line, wxChar const* func, wxChar const* cond, wxChar const* msg) override
|
||||
{
|
||||
wxAppConsoleBase::OnAssertFailure(file, line, func, cond, msg);
|
||||
if (*m_wxAppConsoleBaseExtOnAssertFailure != NULL){
|
||||
return m_wxAppConsoleBaseExtOnAssertFailure(this, file, line, func, cond, msg);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnAssertFunc m_wxAppConsoleBaseExtOnAssert;
|
||||
virtual void OnAssert(wxChar const* file, int line, wxChar const* cond, wxChar const* msg) override
|
||||
{
|
||||
wxAppConsoleBase::OnAssert(file, line, cond, msg);
|
||||
if (*m_wxAppConsoleBaseExtOnAssert != NULL){
|
||||
return m_wxAppConsoleBaseExtOnAssert(this, file, line, cond, msg);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtIsGUIFunc m_wxAppConsoleBaseExtIsGUI;
|
||||
virtual bool IsGUI() const override
|
||||
{
|
||||
bool res = wxAppConsoleBase::IsGUI();
|
||||
if (*m_wxAppConsoleBaseExtIsGUI != NULL){
|
||||
return m_wxAppConsoleBaseExtIsGUI(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCreateTraitsFunc m_wxAppConsoleBaseExtCreateTraits;
|
||||
virtual wxAppTraits* CreateTraits() override
|
||||
{
|
||||
wxAppTraits* res = wxAppConsoleBase::CreateTraits();
|
||||
if (*m_wxAppConsoleBaseExtCreateTraits != NULL){
|
||||
return m_wxAppConsoleBaseExtCreateTraits(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtWXReservedApp1Func m_wxAppConsoleBaseExtWXReservedApp1;
|
||||
virtual void* WXReservedApp1(void* param0) override
|
||||
{
|
||||
void* res = wxAppConsoleBase::WXReservedApp1(param0);
|
||||
if (*m_wxAppConsoleBaseExtWXReservedApp1 != NULL){
|
||||
return m_wxAppConsoleBaseExtWXReservedApp1(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtWXReservedApp2Func m_wxAppConsoleBaseExtWXReservedApp2;
|
||||
virtual void* WXReservedApp2(void* param0) override
|
||||
{
|
||||
void* res = wxAppConsoleBase::WXReservedApp2(param0);
|
||||
if (*m_wxAppConsoleBaseExtWXReservedApp2 != NULL){
|
||||
return m_wxAppConsoleBaseExtWXReservedApp2(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExt(wxAppConsoleBaseExtInitializeFunc a_Initialize, wxAppConsoleBaseExtCallOnInitFunc a_CallOnInit, wxAppConsoleBaseExtOnInitFunc a_OnInit, wxAppConsoleBaseExtOnRunFunc a_OnRun, wxAppConsoleBaseExtOnLaunchedFunc a_OnLaunched, wxAppConsoleBaseExtOnEventLoopEnterFunc a_OnEventLoopEnter, wxAppConsoleBaseExtOnExitFunc a_OnExit, wxAppConsoleBaseExtOnEventLoopExitFunc a_OnEventLoopExit, wxAppConsoleBaseExtCleanUpFunc a_CleanUp, wxAppConsoleBaseExtOnFatalExceptionFunc a_OnFatalException, wxAppConsoleBaseExtExitFunc a_Exit, wxAppConsoleBaseExtOnInitCmdLineFunc a_OnInitCmdLine, wxAppConsoleBaseExtOnCmdLineParsedFunc a_OnCmdLineParsed, wxAppConsoleBaseExtOnCmdLineHelpFunc a_OnCmdLineHelp, wxAppConsoleBaseExtOnCmdLineErrorFunc a_OnCmdLineError, wxAppConsoleBaseExtSetCLocaleFunc a_SetCLocale, wxAppConsoleBaseExtFilterEventFunc a_FilterEvent, wxAppConsoleBaseExtCallEventHandlerFunc a_CallEventHandler, wxAppConsoleBaseExtHandleEventFunc a_HandleEvent, wxAppConsoleBaseExtOnUnhandledExceptionFunc a_OnUnhandledException, wxAppConsoleBaseExtOnExceptionInMainLoopFunc a_OnExceptionInMainLoop, wxAppConsoleBaseExtStoreCurrentExceptionFunc a_StoreCurrentException, wxAppConsoleBaseExtRethrowStoredExceptionFunc a_RethrowStoredException, wxAppConsoleBaseExtProcessPendingEventsFunc a_ProcessPendingEvents, wxAppConsoleBaseExtPendingFunc a_Pending, wxAppConsoleBaseExtDispatchFunc a_Dispatch, wxAppConsoleBaseExtMainLoopFunc a_MainLoop, wxAppConsoleBaseExtExitMainLoopFunc a_ExitMainLoop, wxAppConsoleBaseExtWakeUpIdleFunc a_WakeUpIdle, wxAppConsoleBaseExtProcessIdleFunc a_ProcessIdle, wxAppConsoleBaseExtUsesEventLoopFunc a_UsesEventLoop, wxAppConsoleBaseExtOnAssertFailureFunc a_OnAssertFailure, wxAppConsoleBaseExtOnAssertFunc a_OnAssert, wxAppConsoleBaseExtIsGUIFunc a_IsGUI, wxAppConsoleBaseExtCreateTraitsFunc a_CreateTraits, wxAppConsoleBaseExtWXReservedApp1Func a_WXReservedApp1, wxAppConsoleBaseExtWXReservedApp2Func a_WXReservedApp2): wxAppConsoleBase() {
|
||||
m_wxAppConsoleBaseExtInitialize = a_Initialize;
|
||||
m_wxAppConsoleBaseExtCallOnInit = a_CallOnInit;
|
||||
m_wxAppConsoleBaseExtOnInit = a_OnInit;
|
||||
m_wxAppConsoleBaseExtOnRun = a_OnRun;
|
||||
m_wxAppConsoleBaseExtOnLaunched = a_OnLaunched;
|
||||
m_wxAppConsoleBaseExtOnEventLoopEnter = a_OnEventLoopEnter;
|
||||
m_wxAppConsoleBaseExtOnExit = a_OnExit;
|
||||
m_wxAppConsoleBaseExtOnEventLoopExit = a_OnEventLoopExit;
|
||||
m_wxAppConsoleBaseExtCleanUp = a_CleanUp;
|
||||
m_wxAppConsoleBaseExtOnFatalException = a_OnFatalException;
|
||||
m_wxAppConsoleBaseExtExit = a_Exit;
|
||||
m_wxAppConsoleBaseExtOnInitCmdLine = a_OnInitCmdLine;
|
||||
m_wxAppConsoleBaseExtOnCmdLineParsed = a_OnCmdLineParsed;
|
||||
m_wxAppConsoleBaseExtOnCmdLineHelp = a_OnCmdLineHelp;
|
||||
m_wxAppConsoleBaseExtOnCmdLineError = a_OnCmdLineError;
|
||||
m_wxAppConsoleBaseExtSetCLocale = a_SetCLocale;
|
||||
m_wxAppConsoleBaseExtFilterEvent = a_FilterEvent;
|
||||
m_wxAppConsoleBaseExtCallEventHandler = a_CallEventHandler;
|
||||
m_wxAppConsoleBaseExtHandleEvent = a_HandleEvent;
|
||||
m_wxAppConsoleBaseExtOnUnhandledException = a_OnUnhandledException;
|
||||
m_wxAppConsoleBaseExtOnExceptionInMainLoop = a_OnExceptionInMainLoop;
|
||||
m_wxAppConsoleBaseExtStoreCurrentException = a_StoreCurrentException;
|
||||
m_wxAppConsoleBaseExtRethrowStoredException = a_RethrowStoredException;
|
||||
m_wxAppConsoleBaseExtProcessPendingEvents = a_ProcessPendingEvents;
|
||||
m_wxAppConsoleBaseExtPending = a_Pending;
|
||||
m_wxAppConsoleBaseExtDispatch = a_Dispatch;
|
||||
m_wxAppConsoleBaseExtMainLoop = a_MainLoop;
|
||||
m_wxAppConsoleBaseExtExitMainLoop = a_ExitMainLoop;
|
||||
m_wxAppConsoleBaseExtWakeUpIdle = a_WakeUpIdle;
|
||||
m_wxAppConsoleBaseExtProcessIdle = a_ProcessIdle;
|
||||
m_wxAppConsoleBaseExtUsesEventLoop = a_UsesEventLoop;
|
||||
m_wxAppConsoleBaseExtOnAssertFailure = a_OnAssertFailure;
|
||||
m_wxAppConsoleBaseExtOnAssert = a_OnAssert;
|
||||
m_wxAppConsoleBaseExtIsGUI = a_IsGUI;
|
||||
m_wxAppConsoleBaseExtCreateTraits = a_CreateTraits;
|
||||
m_wxAppConsoleBaseExtWXReservedApp1 = a_WXReservedApp1;
|
||||
m_wxAppConsoleBaseExtWXReservedApp2 = a_WXReservedApp2;
|
||||
}
|
||||
};
|
||||
|
||||
class wxAppBaseExt: public wxAppBase
|
||||
{
|
||||
public:
|
||||
wxAppBaseExt(): wxAppBase() { }
|
||||
virtual ~wxAppBaseExt() override { }
|
||||
wxAppBaseExtInitializeFunc m_wxAppBaseExtInitialize;
|
||||
virtual bool Initialize(int& argc, wxChar** argv) override
|
||||
{
|
||||
bool res = wxAppBase::Initialize(argc, argv);
|
||||
if (*m_wxAppBaseExtInitialize != NULL){
|
||||
return m_wxAppBaseExtInitialize(this, argc, argv);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnInitGuiFunc m_wxAppBaseExtOnInitGui;
|
||||
virtual bool OnInitGui() override
|
||||
{
|
||||
bool res = wxAppBase::OnInitGui();
|
||||
if (*m_wxAppBaseExtOnInitGui != NULL){
|
||||
return m_wxAppBaseExtOnInitGui(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnRunFunc m_wxAppBaseExtOnRun;
|
||||
virtual int OnRun() override
|
||||
{
|
||||
int res = wxAppBase::OnRun();
|
||||
if (*m_wxAppBaseExtOnRun != NULL){
|
||||
return m_wxAppBaseExtOnRun(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnExitFunc m_wxAppBaseExtOnExit;
|
||||
virtual int OnExit() override
|
||||
{
|
||||
int res = wxAppBase::OnExit();
|
||||
if (*m_wxAppBaseExtOnExit != NULL){
|
||||
return m_wxAppBaseExtOnExit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtCleanUpFunc m_wxAppBaseExtCleanUp;
|
||||
virtual void CleanUp() override
|
||||
{
|
||||
wxAppBase::CleanUp();
|
||||
if (*m_wxAppBaseExtCleanUp != NULL){
|
||||
return m_wxAppBaseExtCleanUp(this);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSafeYieldFunc m_wxAppBaseExtSafeYield;
|
||||
virtual bool SafeYield(wxWindow* win, bool onlyIfNeeded) override
|
||||
{
|
||||
bool res = wxAppBase::SafeYield(win, onlyIfNeeded);
|
||||
if (*m_wxAppBaseExtSafeYield != NULL){
|
||||
return m_wxAppBaseExtSafeYield(this, win, onlyIfNeeded);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSafeYieldForFunc m_wxAppBaseExtSafeYieldFor;
|
||||
virtual bool SafeYieldFor(wxWindow* win, long eventsToProcess) override
|
||||
{
|
||||
bool res = wxAppBase::SafeYieldFor(win, eventsToProcess);
|
||||
if (*m_wxAppBaseExtSafeYieldFor != NULL){
|
||||
return m_wxAppBaseExtSafeYieldFor(this, win, eventsToProcess);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtProcessIdleFunc m_wxAppBaseExtProcessIdle;
|
||||
virtual bool ProcessIdle() override
|
||||
{
|
||||
bool res = wxAppBase::ProcessIdle();
|
||||
if (*m_wxAppBaseExtProcessIdle != NULL){
|
||||
return m_wxAppBaseExtProcessIdle(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtUsesEventLoopFunc m_wxAppBaseExtUsesEventLoop;
|
||||
virtual bool UsesEventLoop() const override
|
||||
{
|
||||
bool res = wxAppBase::UsesEventLoop();
|
||||
if (*m_wxAppBaseExtUsesEventLoop != NULL){
|
||||
return m_wxAppBaseExtUsesEventLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtIsActiveFunc m_wxAppBaseExtIsActive;
|
||||
virtual bool IsActive() const override
|
||||
{
|
||||
bool res = wxAppBase::IsActive();
|
||||
if (*m_wxAppBaseExtIsActive != NULL){
|
||||
return m_wxAppBaseExtIsActive(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtGetTopWindowFunc m_wxAppBaseExtGetTopWindow;
|
||||
virtual wxWindow* GetTopWindow() const override
|
||||
{
|
||||
wxWindow* res = wxAppBase::GetTopWindow();
|
||||
if (*m_wxAppBaseExtGetTopWindow != NULL){
|
||||
return m_wxAppBaseExtGetTopWindow(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtGetDisplayModeFunc m_wxAppBaseExtGetDisplayMode;
|
||||
virtual wxVideoMode GetDisplayMode() const override
|
||||
{
|
||||
wxVideoMode res = wxAppBase::GetDisplayMode();
|
||||
if (*m_wxAppBaseExtGetDisplayMode != NULL){
|
||||
return m_wxAppBaseExtGetDisplayMode(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetDisplayModeFunc m_wxAppBaseExtSetDisplayMode;
|
||||
virtual bool SetDisplayMode(wxVideoMode const& param0) override
|
||||
{
|
||||
bool res = wxAppBase::SetDisplayMode(param0);
|
||||
if (*m_wxAppBaseExtSetDisplayMode != NULL){
|
||||
return m_wxAppBaseExtSetDisplayMode(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetPrintModeFunc m_wxAppBaseExtSetPrintMode;
|
||||
virtual void SetPrintMode(int param0) override
|
||||
{
|
||||
wxAppBase::SetPrintMode(param0);
|
||||
if (*m_wxAppBaseExtSetPrintMode != NULL){
|
||||
return m_wxAppBaseExtSetPrintMode(this, param0);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtGetLayoutDirectionFunc m_wxAppBaseExtGetLayoutDirection;
|
||||
virtual wxLayoutDirection GetLayoutDirection() const override
|
||||
{
|
||||
wxLayoutDirection res = wxAppBase::GetLayoutDirection();
|
||||
if (*m_wxAppBaseExtGetLayoutDirection != NULL){
|
||||
return m_wxAppBaseExtGetLayoutDirection(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetNativeThemeFunc m_wxAppBaseExtSetNativeTheme;
|
||||
virtual bool SetNativeTheme(wxString const& param0) override
|
||||
{
|
||||
bool res = wxAppBase::SetNativeTheme(param0);
|
||||
if (*m_wxAppBaseExtSetNativeTheme != NULL){
|
||||
return m_wxAppBaseExtSetNativeTheme(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnCmdLineParsedFunc m_wxAppBaseExtOnCmdLineParsed;
|
||||
virtual bool OnCmdLineParsed(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppBase::OnCmdLineParsed(parser);
|
||||
if (*m_wxAppBaseExtOnCmdLineParsed != NULL){
|
||||
return m_wxAppBaseExtOnCmdLineParsed(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnInitCmdLineFunc m_wxAppBaseExtOnInitCmdLine;
|
||||
virtual void OnInitCmdLine(wxCmdLineParser& parser) override
|
||||
{
|
||||
wxAppBase::OnInitCmdLine(parser);
|
||||
if (*m_wxAppBaseExtOnInitCmdLine != NULL){
|
||||
return m_wxAppBaseExtOnInitCmdLine(this, parser);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetActiveFunc m_wxAppBaseExtSetActive;
|
||||
virtual void SetActive(bool isActive, wxWindow* lastFocus) override
|
||||
{
|
||||
wxAppBase::SetActive(isActive, lastFocus);
|
||||
if (*m_wxAppBaseExtSetActive != NULL){
|
||||
return m_wxAppBaseExtSetActive(this, isActive, lastFocus);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtIsGUIFunc m_wxAppBaseExtIsGUI;
|
||||
virtual bool IsGUI() const override
|
||||
{
|
||||
bool res = wxAppBase::IsGUI();
|
||||
if (*m_wxAppBaseExtIsGUI != NULL){
|
||||
return m_wxAppBaseExtIsGUI(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtCreateTraitsFunc m_wxAppBaseExtCreateTraits;
|
||||
virtual wxAppTraits* CreateTraits() override
|
||||
{
|
||||
wxAppTraits* res = wxAppBase::CreateTraits();
|
||||
if (*m_wxAppBaseExtCreateTraits != NULL){
|
||||
return m_wxAppBaseExtCreateTraits(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExt(wxAppBaseExtInitializeFunc a_Initialize, wxAppBaseExtOnInitGuiFunc a_OnInitGui, wxAppBaseExtOnRunFunc a_OnRun, wxAppBaseExtOnExitFunc a_OnExit, wxAppBaseExtCleanUpFunc a_CleanUp, wxAppBaseExtSafeYieldFunc a_SafeYield, wxAppBaseExtSafeYieldForFunc a_SafeYieldFor, wxAppBaseExtProcessIdleFunc a_ProcessIdle, wxAppBaseExtUsesEventLoopFunc a_UsesEventLoop, wxAppBaseExtIsActiveFunc a_IsActive, wxAppBaseExtGetTopWindowFunc a_GetTopWindow, wxAppBaseExtGetDisplayModeFunc a_GetDisplayMode, wxAppBaseExtSetDisplayModeFunc a_SetDisplayMode, wxAppBaseExtSetPrintModeFunc a_SetPrintMode, wxAppBaseExtGetLayoutDirectionFunc a_GetLayoutDirection, wxAppBaseExtSetNativeThemeFunc a_SetNativeTheme, wxAppBaseExtOnCmdLineParsedFunc a_OnCmdLineParsed, wxAppBaseExtOnInitCmdLineFunc a_OnInitCmdLine, wxAppBaseExtSetActiveFunc a_SetActive, wxAppBaseExtIsGUIFunc a_IsGUI, wxAppBaseExtCreateTraitsFunc a_CreateTraits): wxAppBase() {
|
||||
m_wxAppBaseExtInitialize = a_Initialize;
|
||||
m_wxAppBaseExtOnInitGui = a_OnInitGui;
|
||||
m_wxAppBaseExtOnRun = a_OnRun;
|
||||
m_wxAppBaseExtOnExit = a_OnExit;
|
||||
m_wxAppBaseExtCleanUp = a_CleanUp;
|
||||
m_wxAppBaseExtSafeYield = a_SafeYield;
|
||||
m_wxAppBaseExtSafeYieldFor = a_SafeYieldFor;
|
||||
m_wxAppBaseExtProcessIdle = a_ProcessIdle;
|
||||
m_wxAppBaseExtUsesEventLoop = a_UsesEventLoop;
|
||||
m_wxAppBaseExtIsActive = a_IsActive;
|
||||
m_wxAppBaseExtGetTopWindow = a_GetTopWindow;
|
||||
m_wxAppBaseExtGetDisplayMode = a_GetDisplayMode;
|
||||
m_wxAppBaseExtSetDisplayMode = a_SetDisplayMode;
|
||||
m_wxAppBaseExtSetPrintMode = a_SetPrintMode;
|
||||
m_wxAppBaseExtGetLayoutDirection = a_GetLayoutDirection;
|
||||
m_wxAppBaseExtSetNativeTheme = a_SetNativeTheme;
|
||||
m_wxAppBaseExtOnCmdLineParsed = a_OnCmdLineParsed;
|
||||
m_wxAppBaseExtOnInitCmdLine = a_OnInitCmdLine;
|
||||
m_wxAppBaseExtSetActive = a_SetActive;
|
||||
m_wxAppBaseExtIsGUI = a_IsGUI;
|
||||
m_wxAppBaseExtCreateTraits = a_CreateTraits;
|
||||
}
|
||||
};
|
||||
|
||||
class wxAppInitializerExt: public wxAppInitializer
|
||||
{
|
||||
public:
|
||||
wxAppInitializerExt(wxAppInitializerFunction fn): wxAppInitializer(fn) { }
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
722
swigtemplates/appext.h
Normal file
722
swigtemplates/appext.h
Normal file
|
|
@ -0,0 +1,722 @@
|
|||
#include <wx/wx.h>
|
||||
#include <wx/vidmode.h>
|
||||
|
||||
class wxAppConsoleBaseExt;
|
||||
typedef bool (*wxAppConsoleBaseExtInitializeFunc)(const wxAppConsoleBaseExt* self, int& argc, wxChar** argv);
|
||||
typedef bool (*wxAppConsoleBaseExtCallOnInitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtOnInitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef int (*wxAppConsoleBaseExtOnRunFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnLaunchedFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnEventLoopEnterFunc)(const wxAppConsoleBaseExt* self, wxEventLoopBase* param0);
|
||||
typedef int (*wxAppConsoleBaseExtOnExitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnEventLoopExitFunc)(const wxAppConsoleBaseExt* self, wxEventLoopBase* param0);
|
||||
typedef void (*wxAppConsoleBaseExtCleanUpFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnFatalExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtExitFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnInitCmdLineFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef bool (*wxAppConsoleBaseExtOnCmdLineParsedFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef bool (*wxAppConsoleBaseExtOnCmdLineHelpFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef bool (*wxAppConsoleBaseExtOnCmdLineErrorFunc)(const wxAppConsoleBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef void (*wxAppConsoleBaseExtSetCLocaleFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef int (*wxAppConsoleBaseExtFilterEventFunc)(const wxAppConsoleBaseExt* self, wxEvent& event);
|
||||
typedef void (*wxAppConsoleBaseExtCallEventHandlerFunc)(const wxAppConsoleBaseExt* self, wxEvtHandler* handler, wxEventFunctor& functor, wxEvent& event);
|
||||
typedef void (*wxAppConsoleBaseExtHandleEventFunc)(const wxAppConsoleBaseExt* self, wxEvtHandler* handler, wxEventFunction func, wxEvent& event);
|
||||
typedef void (*wxAppConsoleBaseExtOnUnhandledExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtOnExceptionInMainLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtStoreCurrentExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtRethrowStoredExceptionFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtProcessPendingEventsFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtPendingFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtDispatchFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef int (*wxAppConsoleBaseExtMainLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtExitMainLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtWakeUpIdleFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtProcessIdleFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef bool (*wxAppConsoleBaseExtUsesEventLoopFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void (*wxAppConsoleBaseExtOnAssertFailureFunc)(const wxAppConsoleBaseExt* self, wxChar const* file, int line, wxChar const* func, wxChar const* cond, wxChar const* msg);
|
||||
typedef void (*wxAppConsoleBaseExtOnAssertFunc)(const wxAppConsoleBaseExt* self, wxChar const* file, int line, wxChar const* cond, wxChar const* msg);
|
||||
typedef bool (*wxAppConsoleBaseExtIsGUIFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef wxAppTraits* (*wxAppConsoleBaseExtCreateTraitsFunc)(const wxAppConsoleBaseExt* self);
|
||||
typedef void* (*wxAppConsoleBaseExtWXReservedApp1Func)(const wxAppConsoleBaseExt* self, void* param0);
|
||||
typedef void* (*wxAppConsoleBaseExtWXReservedApp2Func)(const wxAppConsoleBaseExt* self, void* param0);
|
||||
class wxAppBaseExt;
|
||||
typedef bool (*wxAppBaseExtInitializeFunc)(const wxAppBaseExt* self, int& argc, wxChar** argv);
|
||||
typedef bool (*wxAppBaseExtOnInitGuiFunc)(const wxAppBaseExt* self);
|
||||
typedef int (*wxAppBaseExtOnRunFunc)(const wxAppBaseExt* self);
|
||||
typedef int (*wxAppBaseExtOnExitFunc)(const wxAppBaseExt* self);
|
||||
typedef void (*wxAppBaseExtCleanUpFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtSafeYieldFunc)(const wxAppBaseExt* self, wxWindow* win, bool onlyIfNeeded);
|
||||
typedef bool (*wxAppBaseExtSafeYieldForFunc)(const wxAppBaseExt* self, wxWindow* win, long eventsToProcess);
|
||||
typedef bool (*wxAppBaseExtProcessIdleFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtUsesEventLoopFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtIsActiveFunc)(const wxAppBaseExt* self);
|
||||
typedef wxWindow* (*wxAppBaseExtGetTopWindowFunc)(const wxAppBaseExt* self);
|
||||
typedef wxVideoMode (*wxAppBaseExtGetDisplayModeFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtSetDisplayModeFunc)(const wxAppBaseExt* self, wxVideoMode const& param0);
|
||||
typedef void (*wxAppBaseExtSetPrintModeFunc)(const wxAppBaseExt* self, int param0);
|
||||
typedef wxLayoutDirection (*wxAppBaseExtGetLayoutDirectionFunc)(const wxAppBaseExt* self);
|
||||
typedef bool (*wxAppBaseExtSetNativeThemeFunc)(const wxAppBaseExt* self, wxString const& param0);
|
||||
typedef bool (*wxAppBaseExtOnCmdLineParsedFunc)(const wxAppBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef void (*wxAppBaseExtOnInitCmdLineFunc)(const wxAppBaseExt* self, wxCmdLineParser& parser);
|
||||
typedef void (*wxAppBaseExtSetActiveFunc)(const wxAppBaseExt* self, bool isActive, wxWindow* lastFocus);
|
||||
typedef bool (*wxAppBaseExtIsGUIFunc)(const wxAppBaseExt* self);
|
||||
typedef wxAppTraits* (*wxAppBaseExtCreateTraitsFunc)(const wxAppBaseExt* self);
|
||||
class wxAppInitializerExt;
|
||||
|
||||
class wxAppConsoleBaseExt: public wxAppConsoleBase
|
||||
{
|
||||
public:
|
||||
wxAppConsoleBaseExt(): wxAppConsoleBase() { }
|
||||
virtual ~wxAppConsoleBaseExt() override { }
|
||||
wxAppConsoleBaseExtInitializeFunc m_wxAppConsoleBaseExtInitialize;
|
||||
virtual bool Initialize(int& argc, wxChar** argv) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::Initialize(argc, argv);
|
||||
if (*m_wxAppConsoleBaseExtInitialize != NULL){
|
||||
return m_wxAppConsoleBaseExtInitialize(this, argc, argv);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCallOnInitFunc m_wxAppConsoleBaseExtCallOnInit;
|
||||
virtual bool CallOnInit() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::CallOnInit();
|
||||
if (*m_wxAppConsoleBaseExtCallOnInit != NULL){
|
||||
return m_wxAppConsoleBaseExtCallOnInit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnInitFunc m_wxAppConsoleBaseExtOnInit;
|
||||
virtual bool OnInit() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnInit();
|
||||
if (*m_wxAppConsoleBaseExtOnInit != NULL){
|
||||
return m_wxAppConsoleBaseExtOnInit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnRunFunc m_wxAppConsoleBaseExtOnRun;
|
||||
virtual int OnRun() override
|
||||
{
|
||||
int res = wxAppConsoleBase::OnRun();
|
||||
if (*m_wxAppConsoleBaseExtOnRun != NULL){
|
||||
return m_wxAppConsoleBaseExtOnRun(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnLaunchedFunc m_wxAppConsoleBaseExtOnLaunched;
|
||||
virtual void OnLaunched() override
|
||||
{
|
||||
wxAppConsoleBase::OnLaunched();
|
||||
if (*m_wxAppConsoleBaseExtOnLaunched != NULL){
|
||||
return m_wxAppConsoleBaseExtOnLaunched(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnEventLoopEnterFunc m_wxAppConsoleBaseExtOnEventLoopEnter;
|
||||
virtual void OnEventLoopEnter(wxEventLoopBase* param0) override
|
||||
{
|
||||
wxAppConsoleBase::OnEventLoopEnter(param0);
|
||||
if (*m_wxAppConsoleBaseExtOnEventLoopEnter != NULL){
|
||||
return m_wxAppConsoleBaseExtOnEventLoopEnter(this, param0);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnExitFunc m_wxAppConsoleBaseExtOnExit;
|
||||
virtual int OnExit() override
|
||||
{
|
||||
int res = wxAppConsoleBase::OnExit();
|
||||
if (*m_wxAppConsoleBaseExtOnExit != NULL){
|
||||
return m_wxAppConsoleBaseExtOnExit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnEventLoopExitFunc m_wxAppConsoleBaseExtOnEventLoopExit;
|
||||
virtual void OnEventLoopExit(wxEventLoopBase* param0) override
|
||||
{
|
||||
wxAppConsoleBase::OnEventLoopExit(param0);
|
||||
if (*m_wxAppConsoleBaseExtOnEventLoopExit != NULL){
|
||||
return m_wxAppConsoleBaseExtOnEventLoopExit(this, param0);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCleanUpFunc m_wxAppConsoleBaseExtCleanUp;
|
||||
virtual void CleanUp() override
|
||||
{
|
||||
wxAppConsoleBase::CleanUp();
|
||||
if (*m_wxAppConsoleBaseExtCleanUp != NULL){
|
||||
return m_wxAppConsoleBaseExtCleanUp(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnFatalExceptionFunc m_wxAppConsoleBaseExtOnFatalException;
|
||||
virtual void OnFatalException() override
|
||||
{
|
||||
wxAppConsoleBase::OnFatalException();
|
||||
if (*m_wxAppConsoleBaseExtOnFatalException != NULL){
|
||||
return m_wxAppConsoleBaseExtOnFatalException(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtExitFunc m_wxAppConsoleBaseExtExit;
|
||||
virtual void Exit() override
|
||||
{
|
||||
wxAppConsoleBase::Exit();
|
||||
if (*m_wxAppConsoleBaseExtExit != NULL){
|
||||
return m_wxAppConsoleBaseExtExit(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnInitCmdLineFunc m_wxAppConsoleBaseExtOnInitCmdLine;
|
||||
virtual void OnInitCmdLine(wxCmdLineParser& parser) override
|
||||
{
|
||||
wxAppConsoleBase::OnInitCmdLine(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnInitCmdLine != NULL){
|
||||
return m_wxAppConsoleBaseExtOnInitCmdLine(this, parser);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnCmdLineParsedFunc m_wxAppConsoleBaseExtOnCmdLineParsed;
|
||||
virtual bool OnCmdLineParsed(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnCmdLineParsed(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnCmdLineParsed != NULL){
|
||||
return m_wxAppConsoleBaseExtOnCmdLineParsed(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnCmdLineHelpFunc m_wxAppConsoleBaseExtOnCmdLineHelp;
|
||||
virtual bool OnCmdLineHelp(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnCmdLineHelp(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnCmdLineHelp != NULL){
|
||||
return m_wxAppConsoleBaseExtOnCmdLineHelp(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnCmdLineErrorFunc m_wxAppConsoleBaseExtOnCmdLineError;
|
||||
virtual bool OnCmdLineError(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnCmdLineError(parser);
|
||||
if (*m_wxAppConsoleBaseExtOnCmdLineError != NULL){
|
||||
return m_wxAppConsoleBaseExtOnCmdLineError(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtSetCLocaleFunc m_wxAppConsoleBaseExtSetCLocale;
|
||||
virtual void SetCLocale() override
|
||||
{
|
||||
wxAppConsoleBase::SetCLocale();
|
||||
if (*m_wxAppConsoleBaseExtSetCLocale != NULL){
|
||||
return m_wxAppConsoleBaseExtSetCLocale(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtFilterEventFunc m_wxAppConsoleBaseExtFilterEvent;
|
||||
virtual int FilterEvent(wxEvent& event) override
|
||||
{
|
||||
int res = wxAppConsoleBase::FilterEvent(event);
|
||||
if (*m_wxAppConsoleBaseExtFilterEvent != NULL){
|
||||
return m_wxAppConsoleBaseExtFilterEvent(this, event);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCallEventHandlerFunc m_wxAppConsoleBaseExtCallEventHandler;
|
||||
virtual void CallEventHandler(wxEvtHandler* handler, wxEventFunctor& functor, wxEvent& event) const override
|
||||
{
|
||||
wxAppConsoleBase::CallEventHandler(handler, functor, event);
|
||||
if (*m_wxAppConsoleBaseExtCallEventHandler != NULL){
|
||||
return m_wxAppConsoleBaseExtCallEventHandler(this, handler, functor, event);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtHandleEventFunc m_wxAppConsoleBaseExtHandleEvent;
|
||||
virtual void HandleEvent(wxEvtHandler* handler, wxEventFunction func, wxEvent& event) const override
|
||||
{
|
||||
wxAppConsoleBase::HandleEvent(handler, func, event);
|
||||
if (*m_wxAppConsoleBaseExtHandleEvent != NULL){
|
||||
return m_wxAppConsoleBaseExtHandleEvent(this, handler, func, event);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnUnhandledExceptionFunc m_wxAppConsoleBaseExtOnUnhandledException;
|
||||
virtual void OnUnhandledException() override
|
||||
{
|
||||
wxAppConsoleBase::OnUnhandledException();
|
||||
if (*m_wxAppConsoleBaseExtOnUnhandledException != NULL){
|
||||
return m_wxAppConsoleBaseExtOnUnhandledException(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnExceptionInMainLoopFunc m_wxAppConsoleBaseExtOnExceptionInMainLoop;
|
||||
virtual bool OnExceptionInMainLoop() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::OnExceptionInMainLoop();
|
||||
if (*m_wxAppConsoleBaseExtOnExceptionInMainLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtOnExceptionInMainLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtStoreCurrentExceptionFunc m_wxAppConsoleBaseExtStoreCurrentException;
|
||||
virtual bool StoreCurrentException() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::StoreCurrentException();
|
||||
if (*m_wxAppConsoleBaseExtStoreCurrentException != NULL){
|
||||
return m_wxAppConsoleBaseExtStoreCurrentException(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtRethrowStoredExceptionFunc m_wxAppConsoleBaseExtRethrowStoredException;
|
||||
virtual void RethrowStoredException() override
|
||||
{
|
||||
wxAppConsoleBase::RethrowStoredException();
|
||||
if (*m_wxAppConsoleBaseExtRethrowStoredException != NULL){
|
||||
return m_wxAppConsoleBaseExtRethrowStoredException(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtProcessPendingEventsFunc m_wxAppConsoleBaseExtProcessPendingEvents;
|
||||
virtual void ProcessPendingEvents() override
|
||||
{
|
||||
wxAppConsoleBase::ProcessPendingEvents();
|
||||
if (*m_wxAppConsoleBaseExtProcessPendingEvents != NULL){
|
||||
return m_wxAppConsoleBaseExtProcessPendingEvents(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtPendingFunc m_wxAppConsoleBaseExtPending;
|
||||
virtual bool Pending() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::Pending();
|
||||
if (*m_wxAppConsoleBaseExtPending != NULL){
|
||||
return m_wxAppConsoleBaseExtPending(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtDispatchFunc m_wxAppConsoleBaseExtDispatch;
|
||||
virtual bool Dispatch() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::Dispatch();
|
||||
if (*m_wxAppConsoleBaseExtDispatch != NULL){
|
||||
return m_wxAppConsoleBaseExtDispatch(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtMainLoopFunc m_wxAppConsoleBaseExtMainLoop;
|
||||
virtual int MainLoop() override
|
||||
{
|
||||
int res = wxAppConsoleBase::MainLoop();
|
||||
if (*m_wxAppConsoleBaseExtMainLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtMainLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtExitMainLoopFunc m_wxAppConsoleBaseExtExitMainLoop;
|
||||
virtual void ExitMainLoop() override
|
||||
{
|
||||
wxAppConsoleBase::ExitMainLoop();
|
||||
if (*m_wxAppConsoleBaseExtExitMainLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtExitMainLoop(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtWakeUpIdleFunc m_wxAppConsoleBaseExtWakeUpIdle;
|
||||
virtual void WakeUpIdle() override
|
||||
{
|
||||
wxAppConsoleBase::WakeUpIdle();
|
||||
if (*m_wxAppConsoleBaseExtWakeUpIdle != NULL){
|
||||
return m_wxAppConsoleBaseExtWakeUpIdle(this);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtProcessIdleFunc m_wxAppConsoleBaseExtProcessIdle;
|
||||
virtual bool ProcessIdle() override
|
||||
{
|
||||
bool res = wxAppConsoleBase::ProcessIdle();
|
||||
if (*m_wxAppConsoleBaseExtProcessIdle != NULL){
|
||||
return m_wxAppConsoleBaseExtProcessIdle(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtUsesEventLoopFunc m_wxAppConsoleBaseExtUsesEventLoop;
|
||||
virtual bool UsesEventLoop() const override
|
||||
{
|
||||
bool res = wxAppConsoleBase::UsesEventLoop();
|
||||
if (*m_wxAppConsoleBaseExtUsesEventLoop != NULL){
|
||||
return m_wxAppConsoleBaseExtUsesEventLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnAssertFailureFunc m_wxAppConsoleBaseExtOnAssertFailure;
|
||||
virtual void OnAssertFailure(wxChar const* file, int line, wxChar const* func, wxChar const* cond, wxChar const* msg) override
|
||||
{
|
||||
wxAppConsoleBase::OnAssertFailure(file, line, func, cond, msg);
|
||||
if (*m_wxAppConsoleBaseExtOnAssertFailure != NULL){
|
||||
return m_wxAppConsoleBaseExtOnAssertFailure(this, file, line, func, cond, msg);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtOnAssertFunc m_wxAppConsoleBaseExtOnAssert;
|
||||
virtual void OnAssert(wxChar const* file, int line, wxChar const* cond, wxChar const* msg) override
|
||||
{
|
||||
wxAppConsoleBase::OnAssert(file, line, cond, msg);
|
||||
if (*m_wxAppConsoleBaseExtOnAssert != NULL){
|
||||
return m_wxAppConsoleBaseExtOnAssert(this, file, line, cond, msg);
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtIsGUIFunc m_wxAppConsoleBaseExtIsGUI;
|
||||
virtual bool IsGUI() const override
|
||||
{
|
||||
bool res = wxAppConsoleBase::IsGUI();
|
||||
if (*m_wxAppConsoleBaseExtIsGUI != NULL){
|
||||
return m_wxAppConsoleBaseExtIsGUI(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtCreateTraitsFunc m_wxAppConsoleBaseExtCreateTraits;
|
||||
virtual wxAppTraits* CreateTraits() override
|
||||
{
|
||||
wxAppTraits* res = wxAppConsoleBase::CreateTraits();
|
||||
if (*m_wxAppConsoleBaseExtCreateTraits != NULL){
|
||||
return m_wxAppConsoleBaseExtCreateTraits(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtWXReservedApp1Func m_wxAppConsoleBaseExtWXReservedApp1;
|
||||
virtual void* WXReservedApp1(void* param0) override
|
||||
{
|
||||
void* res = wxAppConsoleBase::WXReservedApp1(param0);
|
||||
if (*m_wxAppConsoleBaseExtWXReservedApp1 != NULL){
|
||||
return m_wxAppConsoleBaseExtWXReservedApp1(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExtWXReservedApp2Func m_wxAppConsoleBaseExtWXReservedApp2;
|
||||
virtual void* WXReservedApp2(void* param0) override
|
||||
{
|
||||
void* res = wxAppConsoleBase::WXReservedApp2(param0);
|
||||
if (*m_wxAppConsoleBaseExtWXReservedApp2 != NULL){
|
||||
return m_wxAppConsoleBaseExtWXReservedApp2(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppConsoleBaseExt(wxAppConsoleBaseExtInitializeFunc a_Initialize, wxAppConsoleBaseExtCallOnInitFunc a_CallOnInit, wxAppConsoleBaseExtOnInitFunc a_OnInit, wxAppConsoleBaseExtOnRunFunc a_OnRun, wxAppConsoleBaseExtOnLaunchedFunc a_OnLaunched, wxAppConsoleBaseExtOnEventLoopEnterFunc a_OnEventLoopEnter, wxAppConsoleBaseExtOnExitFunc a_OnExit, wxAppConsoleBaseExtOnEventLoopExitFunc a_OnEventLoopExit, wxAppConsoleBaseExtCleanUpFunc a_CleanUp, wxAppConsoleBaseExtOnFatalExceptionFunc a_OnFatalException, wxAppConsoleBaseExtExitFunc a_Exit, wxAppConsoleBaseExtOnInitCmdLineFunc a_OnInitCmdLine, wxAppConsoleBaseExtOnCmdLineParsedFunc a_OnCmdLineParsed, wxAppConsoleBaseExtOnCmdLineHelpFunc a_OnCmdLineHelp, wxAppConsoleBaseExtOnCmdLineErrorFunc a_OnCmdLineError, wxAppConsoleBaseExtSetCLocaleFunc a_SetCLocale, wxAppConsoleBaseExtFilterEventFunc a_FilterEvent, wxAppConsoleBaseExtCallEventHandlerFunc a_CallEventHandler, wxAppConsoleBaseExtHandleEventFunc a_HandleEvent, wxAppConsoleBaseExtOnUnhandledExceptionFunc a_OnUnhandledException, wxAppConsoleBaseExtOnExceptionInMainLoopFunc a_OnExceptionInMainLoop, wxAppConsoleBaseExtStoreCurrentExceptionFunc a_StoreCurrentException, wxAppConsoleBaseExtRethrowStoredExceptionFunc a_RethrowStoredException, wxAppConsoleBaseExtProcessPendingEventsFunc a_ProcessPendingEvents, wxAppConsoleBaseExtPendingFunc a_Pending, wxAppConsoleBaseExtDispatchFunc a_Dispatch, wxAppConsoleBaseExtMainLoopFunc a_MainLoop, wxAppConsoleBaseExtExitMainLoopFunc a_ExitMainLoop, wxAppConsoleBaseExtWakeUpIdleFunc a_WakeUpIdle, wxAppConsoleBaseExtProcessIdleFunc a_ProcessIdle, wxAppConsoleBaseExtUsesEventLoopFunc a_UsesEventLoop, wxAppConsoleBaseExtOnAssertFailureFunc a_OnAssertFailure, wxAppConsoleBaseExtOnAssertFunc a_OnAssert, wxAppConsoleBaseExtIsGUIFunc a_IsGUI, wxAppConsoleBaseExtCreateTraitsFunc a_CreateTraits, wxAppConsoleBaseExtWXReservedApp1Func a_WXReservedApp1, wxAppConsoleBaseExtWXReservedApp2Func a_WXReservedApp2): wxAppConsoleBase() {
|
||||
m_wxAppConsoleBaseExtInitialize = a_Initialize;
|
||||
m_wxAppConsoleBaseExtCallOnInit = a_CallOnInit;
|
||||
m_wxAppConsoleBaseExtOnInit = a_OnInit;
|
||||
m_wxAppConsoleBaseExtOnRun = a_OnRun;
|
||||
m_wxAppConsoleBaseExtOnLaunched = a_OnLaunched;
|
||||
m_wxAppConsoleBaseExtOnEventLoopEnter = a_OnEventLoopEnter;
|
||||
m_wxAppConsoleBaseExtOnExit = a_OnExit;
|
||||
m_wxAppConsoleBaseExtOnEventLoopExit = a_OnEventLoopExit;
|
||||
m_wxAppConsoleBaseExtCleanUp = a_CleanUp;
|
||||
m_wxAppConsoleBaseExtOnFatalException = a_OnFatalException;
|
||||
m_wxAppConsoleBaseExtExit = a_Exit;
|
||||
m_wxAppConsoleBaseExtOnInitCmdLine = a_OnInitCmdLine;
|
||||
m_wxAppConsoleBaseExtOnCmdLineParsed = a_OnCmdLineParsed;
|
||||
m_wxAppConsoleBaseExtOnCmdLineHelp = a_OnCmdLineHelp;
|
||||
m_wxAppConsoleBaseExtOnCmdLineError = a_OnCmdLineError;
|
||||
m_wxAppConsoleBaseExtSetCLocale = a_SetCLocale;
|
||||
m_wxAppConsoleBaseExtFilterEvent = a_FilterEvent;
|
||||
m_wxAppConsoleBaseExtCallEventHandler = a_CallEventHandler;
|
||||
m_wxAppConsoleBaseExtHandleEvent = a_HandleEvent;
|
||||
m_wxAppConsoleBaseExtOnUnhandledException = a_OnUnhandledException;
|
||||
m_wxAppConsoleBaseExtOnExceptionInMainLoop = a_OnExceptionInMainLoop;
|
||||
m_wxAppConsoleBaseExtStoreCurrentException = a_StoreCurrentException;
|
||||
m_wxAppConsoleBaseExtRethrowStoredException = a_RethrowStoredException;
|
||||
m_wxAppConsoleBaseExtProcessPendingEvents = a_ProcessPendingEvents;
|
||||
m_wxAppConsoleBaseExtPending = a_Pending;
|
||||
m_wxAppConsoleBaseExtDispatch = a_Dispatch;
|
||||
m_wxAppConsoleBaseExtMainLoop = a_MainLoop;
|
||||
m_wxAppConsoleBaseExtExitMainLoop = a_ExitMainLoop;
|
||||
m_wxAppConsoleBaseExtWakeUpIdle = a_WakeUpIdle;
|
||||
m_wxAppConsoleBaseExtProcessIdle = a_ProcessIdle;
|
||||
m_wxAppConsoleBaseExtUsesEventLoop = a_UsesEventLoop;
|
||||
m_wxAppConsoleBaseExtOnAssertFailure = a_OnAssertFailure;
|
||||
m_wxAppConsoleBaseExtOnAssert = a_OnAssert;
|
||||
m_wxAppConsoleBaseExtIsGUI = a_IsGUI;
|
||||
m_wxAppConsoleBaseExtCreateTraits = a_CreateTraits;
|
||||
m_wxAppConsoleBaseExtWXReservedApp1 = a_WXReservedApp1;
|
||||
m_wxAppConsoleBaseExtWXReservedApp2 = a_WXReservedApp2;
|
||||
}
|
||||
};
|
||||
|
||||
class wxAppBaseExt: public wxAppBase
|
||||
{
|
||||
public:
|
||||
wxAppBaseExt(): wxAppBase() { }
|
||||
virtual ~wxAppBaseExt() override { }
|
||||
wxAppBaseExtInitializeFunc m_wxAppBaseExtInitialize;
|
||||
virtual bool Initialize(int& argc, wxChar** argv) override
|
||||
{
|
||||
bool res = wxAppBase::Initialize(argc, argv);
|
||||
if (*m_wxAppBaseExtInitialize != NULL){
|
||||
return m_wxAppBaseExtInitialize(this, argc, argv);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnInitGuiFunc m_wxAppBaseExtOnInitGui;
|
||||
virtual bool OnInitGui() override
|
||||
{
|
||||
bool res = wxAppBase::OnInitGui();
|
||||
if (*m_wxAppBaseExtOnInitGui != NULL){
|
||||
return m_wxAppBaseExtOnInitGui(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnRunFunc m_wxAppBaseExtOnRun;
|
||||
virtual int OnRun() override
|
||||
{
|
||||
int res = wxAppBase::OnRun();
|
||||
if (*m_wxAppBaseExtOnRun != NULL){
|
||||
return m_wxAppBaseExtOnRun(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnExitFunc m_wxAppBaseExtOnExit;
|
||||
virtual int OnExit() override
|
||||
{
|
||||
int res = wxAppBase::OnExit();
|
||||
if (*m_wxAppBaseExtOnExit != NULL){
|
||||
return m_wxAppBaseExtOnExit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtCleanUpFunc m_wxAppBaseExtCleanUp;
|
||||
virtual void CleanUp() override
|
||||
{
|
||||
wxAppBase::CleanUp();
|
||||
if (*m_wxAppBaseExtCleanUp != NULL){
|
||||
return m_wxAppBaseExtCleanUp(this);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSafeYieldFunc m_wxAppBaseExtSafeYield;
|
||||
virtual bool SafeYield(wxWindow* win, bool onlyIfNeeded) override
|
||||
{
|
||||
bool res = wxAppBase::SafeYield(win, onlyIfNeeded);
|
||||
if (*m_wxAppBaseExtSafeYield != NULL){
|
||||
return m_wxAppBaseExtSafeYield(this, win, onlyIfNeeded);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSafeYieldForFunc m_wxAppBaseExtSafeYieldFor;
|
||||
virtual bool SafeYieldFor(wxWindow* win, long eventsToProcess) override
|
||||
{
|
||||
bool res = wxAppBase::SafeYieldFor(win, eventsToProcess);
|
||||
if (*m_wxAppBaseExtSafeYieldFor != NULL){
|
||||
return m_wxAppBaseExtSafeYieldFor(this, win, eventsToProcess);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtProcessIdleFunc m_wxAppBaseExtProcessIdle;
|
||||
virtual bool ProcessIdle() override
|
||||
{
|
||||
bool res = wxAppBase::ProcessIdle();
|
||||
if (*m_wxAppBaseExtProcessIdle != NULL){
|
||||
return m_wxAppBaseExtProcessIdle(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtUsesEventLoopFunc m_wxAppBaseExtUsesEventLoop;
|
||||
virtual bool UsesEventLoop() const override
|
||||
{
|
||||
bool res = wxAppBase::UsesEventLoop();
|
||||
if (*m_wxAppBaseExtUsesEventLoop != NULL){
|
||||
return m_wxAppBaseExtUsesEventLoop(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtIsActiveFunc m_wxAppBaseExtIsActive;
|
||||
virtual bool IsActive() const override
|
||||
{
|
||||
bool res = wxAppBase::IsActive();
|
||||
if (*m_wxAppBaseExtIsActive != NULL){
|
||||
return m_wxAppBaseExtIsActive(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtGetTopWindowFunc m_wxAppBaseExtGetTopWindow;
|
||||
virtual wxWindow* GetTopWindow() const override
|
||||
{
|
||||
wxWindow* res = wxAppBase::GetTopWindow();
|
||||
if (*m_wxAppBaseExtGetTopWindow != NULL){
|
||||
return m_wxAppBaseExtGetTopWindow(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtGetDisplayModeFunc m_wxAppBaseExtGetDisplayMode;
|
||||
virtual wxVideoMode GetDisplayMode() const override
|
||||
{
|
||||
wxVideoMode res = wxAppBase::GetDisplayMode();
|
||||
if (*m_wxAppBaseExtGetDisplayMode != NULL){
|
||||
return m_wxAppBaseExtGetDisplayMode(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetDisplayModeFunc m_wxAppBaseExtSetDisplayMode;
|
||||
virtual bool SetDisplayMode(wxVideoMode const& param0) override
|
||||
{
|
||||
bool res = wxAppBase::SetDisplayMode(param0);
|
||||
if (*m_wxAppBaseExtSetDisplayMode != NULL){
|
||||
return m_wxAppBaseExtSetDisplayMode(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetPrintModeFunc m_wxAppBaseExtSetPrintMode;
|
||||
virtual void SetPrintMode(int param0) override
|
||||
{
|
||||
wxAppBase::SetPrintMode(param0);
|
||||
if (*m_wxAppBaseExtSetPrintMode != NULL){
|
||||
return m_wxAppBaseExtSetPrintMode(this, param0);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtGetLayoutDirectionFunc m_wxAppBaseExtGetLayoutDirection;
|
||||
virtual wxLayoutDirection GetLayoutDirection() const override
|
||||
{
|
||||
wxLayoutDirection res = wxAppBase::GetLayoutDirection();
|
||||
if (*m_wxAppBaseExtGetLayoutDirection != NULL){
|
||||
return m_wxAppBaseExtGetLayoutDirection(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetNativeThemeFunc m_wxAppBaseExtSetNativeTheme;
|
||||
virtual bool SetNativeTheme(wxString const& param0) override
|
||||
{
|
||||
bool res = wxAppBase::SetNativeTheme(param0);
|
||||
if (*m_wxAppBaseExtSetNativeTheme != NULL){
|
||||
return m_wxAppBaseExtSetNativeTheme(this, param0);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnCmdLineParsedFunc m_wxAppBaseExtOnCmdLineParsed;
|
||||
virtual bool OnCmdLineParsed(wxCmdLineParser& parser) override
|
||||
{
|
||||
bool res = wxAppBase::OnCmdLineParsed(parser);
|
||||
if (*m_wxAppBaseExtOnCmdLineParsed != NULL){
|
||||
return m_wxAppBaseExtOnCmdLineParsed(this, parser);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtOnInitCmdLineFunc m_wxAppBaseExtOnInitCmdLine;
|
||||
virtual void OnInitCmdLine(wxCmdLineParser& parser) override
|
||||
{
|
||||
wxAppBase::OnInitCmdLine(parser);
|
||||
if (*m_wxAppBaseExtOnInitCmdLine != NULL){
|
||||
return m_wxAppBaseExtOnInitCmdLine(this, parser);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtSetActiveFunc m_wxAppBaseExtSetActive;
|
||||
virtual void SetActive(bool isActive, wxWindow* lastFocus) override
|
||||
{
|
||||
wxAppBase::SetActive(isActive, lastFocus);
|
||||
if (*m_wxAppBaseExtSetActive != NULL){
|
||||
return m_wxAppBaseExtSetActive(this, isActive, lastFocus);
|
||||
}
|
||||
}
|
||||
wxAppBaseExtIsGUIFunc m_wxAppBaseExtIsGUI;
|
||||
virtual bool IsGUI() const override
|
||||
{
|
||||
bool res = wxAppBase::IsGUI();
|
||||
if (*m_wxAppBaseExtIsGUI != NULL){
|
||||
return m_wxAppBaseExtIsGUI(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExtCreateTraitsFunc m_wxAppBaseExtCreateTraits;
|
||||
virtual wxAppTraits* CreateTraits() override
|
||||
{
|
||||
wxAppTraits* res = wxAppBase::CreateTraits();
|
||||
if (*m_wxAppBaseExtCreateTraits != NULL){
|
||||
return m_wxAppBaseExtCreateTraits(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppBaseExt(wxAppBaseExtInitializeFunc a_Initialize, wxAppBaseExtOnInitGuiFunc a_OnInitGui, wxAppBaseExtOnRunFunc a_OnRun, wxAppBaseExtOnExitFunc a_OnExit, wxAppBaseExtCleanUpFunc a_CleanUp, wxAppBaseExtSafeYieldFunc a_SafeYield, wxAppBaseExtSafeYieldForFunc a_SafeYieldFor, wxAppBaseExtProcessIdleFunc a_ProcessIdle, wxAppBaseExtUsesEventLoopFunc a_UsesEventLoop, wxAppBaseExtIsActiveFunc a_IsActive, wxAppBaseExtGetTopWindowFunc a_GetTopWindow, wxAppBaseExtGetDisplayModeFunc a_GetDisplayMode, wxAppBaseExtSetDisplayModeFunc a_SetDisplayMode, wxAppBaseExtSetPrintModeFunc a_SetPrintMode, wxAppBaseExtGetLayoutDirectionFunc a_GetLayoutDirection, wxAppBaseExtSetNativeThemeFunc a_SetNativeTheme, wxAppBaseExtOnCmdLineParsedFunc a_OnCmdLineParsed, wxAppBaseExtOnInitCmdLineFunc a_OnInitCmdLine, wxAppBaseExtSetActiveFunc a_SetActive, wxAppBaseExtIsGUIFunc a_IsGUI, wxAppBaseExtCreateTraitsFunc a_CreateTraits): wxAppBase() {
|
||||
m_wxAppBaseExtInitialize = a_Initialize;
|
||||
m_wxAppBaseExtOnInitGui = a_OnInitGui;
|
||||
m_wxAppBaseExtOnRun = a_OnRun;
|
||||
m_wxAppBaseExtOnExit = a_OnExit;
|
||||
m_wxAppBaseExtCleanUp = a_CleanUp;
|
||||
m_wxAppBaseExtSafeYield = a_SafeYield;
|
||||
m_wxAppBaseExtSafeYieldFor = a_SafeYieldFor;
|
||||
m_wxAppBaseExtProcessIdle = a_ProcessIdle;
|
||||
m_wxAppBaseExtUsesEventLoop = a_UsesEventLoop;
|
||||
m_wxAppBaseExtIsActive = a_IsActive;
|
||||
m_wxAppBaseExtGetTopWindow = a_GetTopWindow;
|
||||
m_wxAppBaseExtGetDisplayMode = a_GetDisplayMode;
|
||||
m_wxAppBaseExtSetDisplayMode = a_SetDisplayMode;
|
||||
m_wxAppBaseExtSetPrintMode = a_SetPrintMode;
|
||||
m_wxAppBaseExtGetLayoutDirection = a_GetLayoutDirection;
|
||||
m_wxAppBaseExtSetNativeTheme = a_SetNativeTheme;
|
||||
m_wxAppBaseExtOnCmdLineParsed = a_OnCmdLineParsed;
|
||||
m_wxAppBaseExtOnInitCmdLine = a_OnInitCmdLine;
|
||||
m_wxAppBaseExtSetActive = a_SetActive;
|
||||
m_wxAppBaseExtIsGUI = a_IsGUI;
|
||||
m_wxAppBaseExtCreateTraits = a_CreateTraits;
|
||||
}
|
||||
};
|
||||
|
||||
class wxAppInitializerExt: public wxAppInitializer
|
||||
{
|
||||
public:
|
||||
wxAppInitializerExt(wxAppInitializerFunction fn): wxAppInitializer(fn) { }
|
||||
};
|
||||
|
||||
284
swigtemplates/appextmac.h
Normal file
284
swigtemplates/appextmac.h
Normal file
|
|
@ -0,0 +1,284 @@
|
|||
#include <wx/wx.h>
|
||||
#include <wx/vidmode.h>
|
||||
|
||||
class wxAppExt;
|
||||
typedef wxClassInfo* (*wxAppExtGetClassInfoFunc)(const wxAppExt* self);
|
||||
typedef void (*wxAppExtWakeUpIdleFunc)(const wxAppExt* self);
|
||||
typedef void (*wxAppExtSetPrintModeFunc)(const wxAppExt* self, int mode);
|
||||
typedef int (*wxAppExtGetPrintModeFunc)(const wxAppExt* self);
|
||||
typedef bool (*wxAppExtCallOnInitFunc)(const wxAppExt* self);
|
||||
typedef bool (*wxAppExtOnInitGuiFunc)(const wxAppExt* self);
|
||||
typedef int (*wxAppExtOnRunFunc)(const wxAppExt* self);
|
||||
typedef bool (*wxAppExtProcessIdleFunc)(const wxAppExt* self);
|
||||
typedef bool (*wxAppExtInitializeFunc)(const wxAppExt* self, int& argc, wxChar** argv);
|
||||
typedef void (*wxAppExtCleanUpFunc)(const wxAppExt* self);
|
||||
typedef WX_NSObject (*wxAppExtOSXCreateAppControllerFunc)(const wxAppExt* self);
|
||||
typedef void (*wxAppExtMacHandleUnhandledEventFunc)(const wxAppExt* self, WXEVENTREF ev);
|
||||
typedef void (*wxAppExtMacOpenFilesFunc)(const wxAppExt* self, wxArrayString const& fileNames);
|
||||
typedef void (*wxAppExtMacOpenFileFunc)(const wxAppExt* self, wxString const& fileName);
|
||||
typedef void (*wxAppExtMacOpenURLFunc)(const wxAppExt* self, wxString const& url);
|
||||
typedef void (*wxAppExtMacPrintFilesFunc)(const wxAppExt* self, wxArrayString const& fileNames);
|
||||
typedef void (*wxAppExtMacPrintFileFunc)(const wxAppExt* self, wxString const& fileName);
|
||||
typedef void (*wxAppExtMacNewFileFunc)(const wxAppExt* self);
|
||||
typedef void (*wxAppExtMacReopenAppFunc)(const wxAppExt* self);
|
||||
typedef bool (*wxAppExtOSXIsGUIApplicationFunc)(const wxAppExt* self);
|
||||
typedef void (*wxAppExtOSXOnWillFinishLaunchingFunc)(const wxAppExt* self);
|
||||
typedef void (*wxAppExtOSXOnDidFinishLaunchingFunc)(const wxAppExt* self);
|
||||
typedef bool (*wxAppExtOSXOnShouldTerminateFunc)(const wxAppExt* self);
|
||||
typedef void (*wxAppExtOSXOnWillTerminateFunc)(const wxAppExt* self);
|
||||
|
||||
class wxAppExt: public wxApp
|
||||
{
|
||||
public:
|
||||
wxAppExtGetClassInfoFunc m_wxAppExtGetClassInfo;
|
||||
virtual wxClassInfo* GetClassInfo() const override
|
||||
{
|
||||
wxClassInfo* res = wxApp::GetClassInfo();
|
||||
if (*m_wxAppExtGetClassInfo != NULL){
|
||||
return m_wxAppExtGetClassInfo(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExt(): wxApp() { }
|
||||
virtual ~wxAppExt() { }
|
||||
wxAppExtWakeUpIdleFunc m_wxAppExtWakeUpIdle;
|
||||
virtual void WakeUpIdle() override
|
||||
{
|
||||
wxApp::WakeUpIdle();
|
||||
if (*m_wxAppExtWakeUpIdle != NULL){
|
||||
return m_wxAppExtWakeUpIdle(this);
|
||||
}
|
||||
}
|
||||
wxAppExtSetPrintModeFunc m_wxAppExtSetPrintMode;
|
||||
virtual void SetPrintMode(int mode) override
|
||||
{
|
||||
wxApp::SetPrintMode(mode);
|
||||
if (*m_wxAppExtSetPrintMode != NULL){
|
||||
return m_wxAppExtSetPrintMode(this, mode);
|
||||
}
|
||||
}
|
||||
wxAppExtGetPrintModeFunc m_wxAppExtGetPrintMode;
|
||||
virtual int GetPrintMode() const override
|
||||
{
|
||||
int res = wxApp::GetPrintMode();
|
||||
if (*m_wxAppExtGetPrintMode != NULL){
|
||||
return m_wxAppExtGetPrintMode(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtCallOnInitFunc m_wxAppExtCallOnInit;
|
||||
virtual bool CallOnInit() override
|
||||
{
|
||||
bool res = wxApp::CallOnInit();
|
||||
if (*m_wxAppExtCallOnInit != NULL){
|
||||
return m_wxAppExtCallOnInit(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtOnInitGuiFunc m_wxAppExtOnInitGui;
|
||||
virtual bool OnInitGui() override
|
||||
{
|
||||
bool res = wxApp::OnInitGui();
|
||||
if (*m_wxAppExtOnInitGui != NULL){
|
||||
return m_wxAppExtOnInitGui(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtOnRunFunc m_wxAppExtOnRun;
|
||||
virtual int OnRun() override
|
||||
{
|
||||
int res = wxApp::OnRun();
|
||||
if (*m_wxAppExtOnRun != NULL){
|
||||
return m_wxAppExtOnRun(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtProcessIdleFunc m_wxAppExtProcessIdle;
|
||||
virtual bool ProcessIdle() override
|
||||
{
|
||||
bool res = wxApp::ProcessIdle();
|
||||
if (*m_wxAppExtProcessIdle != NULL){
|
||||
return m_wxAppExtProcessIdle(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtInitializeFunc m_wxAppExtInitialize;
|
||||
virtual bool Initialize(int& argc, wxChar** argv) override
|
||||
{
|
||||
bool res = wxApp::Initialize(argc, argv);
|
||||
if (*m_wxAppExtInitialize != NULL){
|
||||
return m_wxAppExtInitialize(this, argc, argv);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtCleanUpFunc m_wxAppExtCleanUp;
|
||||
virtual void CleanUp() override
|
||||
{
|
||||
wxApp::CleanUp();
|
||||
if (*m_wxAppExtCleanUp != NULL){
|
||||
return m_wxAppExtCleanUp(this);
|
||||
}
|
||||
}
|
||||
wxAppExtOSXCreateAppControllerFunc m_wxAppExtOSXCreateAppController;
|
||||
virtual WX_NSObject OSXCreateAppController() override
|
||||
{
|
||||
WX_NSObject res = wxApp::OSXCreateAppController();
|
||||
if (*m_wxAppExtOSXCreateAppController != NULL){
|
||||
return m_wxAppExtOSXCreateAppController(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtMacHandleUnhandledEventFunc m_wxAppExtMacHandleUnhandledEvent;
|
||||
virtual void MacHandleUnhandledEvent(WXEVENTREF ev) override
|
||||
{
|
||||
wxApp::MacHandleUnhandledEvent(ev);
|
||||
if (*m_wxAppExtMacHandleUnhandledEvent != NULL){
|
||||
return m_wxAppExtMacHandleUnhandledEvent(this, ev);
|
||||
}
|
||||
}
|
||||
wxAppExtMacOpenFilesFunc m_wxAppExtMacOpenFiles;
|
||||
virtual void MacOpenFiles(wxArrayString const& fileNames) override
|
||||
{
|
||||
wxApp::MacOpenFiles(fileNames);
|
||||
if (*m_wxAppExtMacOpenFiles != NULL){
|
||||
return m_wxAppExtMacOpenFiles(this, fileNames);
|
||||
}
|
||||
}
|
||||
wxAppExtMacOpenFileFunc m_wxAppExtMacOpenFile;
|
||||
virtual void MacOpenFile(wxString const& fileName) override
|
||||
{
|
||||
wxApp::MacOpenFile(fileName);
|
||||
if (*m_wxAppExtMacOpenFile != NULL){
|
||||
return m_wxAppExtMacOpenFile(this, fileName);
|
||||
}
|
||||
}
|
||||
wxAppExtMacOpenURLFunc m_wxAppExtMacOpenURL;
|
||||
virtual void MacOpenURL(wxString const& url) override
|
||||
{
|
||||
wxApp::MacOpenURL(url);
|
||||
if (*m_wxAppExtMacOpenURL != NULL){
|
||||
return m_wxAppExtMacOpenURL(this, url);
|
||||
}
|
||||
}
|
||||
wxAppExtMacPrintFilesFunc m_wxAppExtMacPrintFiles;
|
||||
virtual void MacPrintFiles(wxArrayString const& fileNames) override
|
||||
{
|
||||
wxApp::MacPrintFiles(fileNames);
|
||||
if (*m_wxAppExtMacPrintFiles != NULL){
|
||||
return m_wxAppExtMacPrintFiles(this, fileNames);
|
||||
}
|
||||
}
|
||||
wxAppExtMacPrintFileFunc m_wxAppExtMacPrintFile;
|
||||
virtual void MacPrintFile(wxString const& fileName) override
|
||||
{
|
||||
wxApp::MacPrintFile(fileName);
|
||||
if (*m_wxAppExtMacPrintFile != NULL){
|
||||
return m_wxAppExtMacPrintFile(this, fileName);
|
||||
}
|
||||
}
|
||||
wxAppExtMacNewFileFunc m_wxAppExtMacNewFile;
|
||||
virtual void MacNewFile() override
|
||||
{
|
||||
wxApp::MacNewFile();
|
||||
if (*m_wxAppExtMacNewFile != NULL){
|
||||
return m_wxAppExtMacNewFile(this);
|
||||
}
|
||||
}
|
||||
wxAppExtMacReopenAppFunc m_wxAppExtMacReopenApp;
|
||||
virtual void MacReopenApp() override
|
||||
{
|
||||
wxApp::MacReopenApp();
|
||||
if (*m_wxAppExtMacReopenApp != NULL){
|
||||
return m_wxAppExtMacReopenApp(this);
|
||||
}
|
||||
}
|
||||
wxAppExtOSXIsGUIApplicationFunc m_wxAppExtOSXIsGUIApplication;
|
||||
virtual bool OSXIsGUIApplication() override
|
||||
{
|
||||
bool res = wxApp::OSXIsGUIApplication();
|
||||
if (*m_wxAppExtOSXIsGUIApplication != NULL){
|
||||
return m_wxAppExtOSXIsGUIApplication(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtOSXOnWillFinishLaunchingFunc m_wxAppExtOSXOnWillFinishLaunching;
|
||||
virtual void OSXOnWillFinishLaunching() override
|
||||
{
|
||||
wxApp::OSXOnWillFinishLaunching();
|
||||
if (*m_wxAppExtOSXOnWillFinishLaunching != NULL){
|
||||
return m_wxAppExtOSXOnWillFinishLaunching(this);
|
||||
}
|
||||
}
|
||||
wxAppExtOSXOnDidFinishLaunchingFunc m_wxAppExtOSXOnDidFinishLaunching;
|
||||
virtual void OSXOnDidFinishLaunching() override
|
||||
{
|
||||
wxApp::OSXOnDidFinishLaunching();
|
||||
if (*m_wxAppExtOSXOnDidFinishLaunching != NULL){
|
||||
return m_wxAppExtOSXOnDidFinishLaunching(this);
|
||||
}
|
||||
}
|
||||
wxAppExtOSXOnShouldTerminateFunc m_wxAppExtOSXOnShouldTerminate;
|
||||
virtual bool OSXOnShouldTerminate() override
|
||||
{
|
||||
bool res = wxApp::OSXOnShouldTerminate();
|
||||
if (*m_wxAppExtOSXOnShouldTerminate != NULL){
|
||||
return m_wxAppExtOSXOnShouldTerminate(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxAppExtOSXOnWillTerminateFunc m_wxAppExtOSXOnWillTerminate;
|
||||
virtual void OSXOnWillTerminate() override
|
||||
{
|
||||
wxApp::OSXOnWillTerminate();
|
||||
if (*m_wxAppExtOSXOnWillTerminate != NULL){
|
||||
return m_wxAppExtOSXOnWillTerminate(this);
|
||||
}
|
||||
}
|
||||
wxAppExt(wxAppExtGetClassInfoFunc a_GetClassInfo, wxAppExtWakeUpIdleFunc a_WakeUpIdle, wxAppExtSetPrintModeFunc a_SetPrintMode, wxAppExtGetPrintModeFunc a_GetPrintMode, wxAppExtCallOnInitFunc a_CallOnInit, wxAppExtOnInitGuiFunc a_OnInitGui, wxAppExtOnRunFunc a_OnRun, wxAppExtProcessIdleFunc a_ProcessIdle, wxAppExtInitializeFunc a_Initialize, wxAppExtCleanUpFunc a_CleanUp, wxAppExtOSXCreateAppControllerFunc a_OSXCreateAppController, wxAppExtMacHandleUnhandledEventFunc a_MacHandleUnhandledEvent, wxAppExtMacOpenFilesFunc a_MacOpenFiles, wxAppExtMacOpenFileFunc a_MacOpenFile, wxAppExtMacOpenURLFunc a_MacOpenURL, wxAppExtMacPrintFilesFunc a_MacPrintFiles, wxAppExtMacPrintFileFunc a_MacPrintFile, wxAppExtMacNewFileFunc a_MacNewFile, wxAppExtMacReopenAppFunc a_MacReopenApp, wxAppExtOSXIsGUIApplicationFunc a_OSXIsGUIApplication, wxAppExtOSXOnWillFinishLaunchingFunc a_OSXOnWillFinishLaunching, wxAppExtOSXOnDidFinishLaunchingFunc a_OSXOnDidFinishLaunching, wxAppExtOSXOnShouldTerminateFunc a_OSXOnShouldTerminate, wxAppExtOSXOnWillTerminateFunc a_OSXOnWillTerminate): wxApp() {
|
||||
m_wxAppExtGetClassInfo = a_GetClassInfo;
|
||||
m_wxAppExtWakeUpIdle = a_WakeUpIdle;
|
||||
m_wxAppExtSetPrintMode = a_SetPrintMode;
|
||||
m_wxAppExtGetPrintMode = a_GetPrintMode;
|
||||
m_wxAppExtCallOnInit = a_CallOnInit;
|
||||
m_wxAppExtOnInitGui = a_OnInitGui;
|
||||
m_wxAppExtOnRun = a_OnRun;
|
||||
m_wxAppExtProcessIdle = a_ProcessIdle;
|
||||
m_wxAppExtInitialize = a_Initialize;
|
||||
m_wxAppExtCleanUp = a_CleanUp;
|
||||
m_wxAppExtOSXCreateAppController = a_OSXCreateAppController;
|
||||
m_wxAppExtMacHandleUnhandledEvent = a_MacHandleUnhandledEvent;
|
||||
m_wxAppExtMacOpenFiles = a_MacOpenFiles;
|
||||
m_wxAppExtMacOpenFile = a_MacOpenFile;
|
||||
m_wxAppExtMacOpenURL = a_MacOpenURL;
|
||||
m_wxAppExtMacPrintFiles = a_MacPrintFiles;
|
||||
m_wxAppExtMacPrintFile = a_MacPrintFile;
|
||||
m_wxAppExtMacNewFile = a_MacNewFile;
|
||||
m_wxAppExtMacReopenApp = a_MacReopenApp;
|
||||
m_wxAppExtOSXIsGUIApplication = a_OSXIsGUIApplication;
|
||||
m_wxAppExtOSXOnWillFinishLaunching = a_OSXOnWillFinishLaunching;
|
||||
m_wxAppExtOSXOnDidFinishLaunching = a_OSXOnDidFinishLaunching;
|
||||
m_wxAppExtOSXOnShouldTerminate = a_OSXOnShouldTerminate;
|
||||
m_wxAppExtOSXOnWillTerminate = a_OSXOnWillTerminate;
|
||||
}
|
||||
};
|
||||
|
||||
71
swigtemplates/buffer.i
Normal file
71
swigtemplates/buffer.i
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
%module buffer
|
||||
%include <std_string.i>
|
||||
%include <std_common.i>
|
||||
%{
|
||||
#include <wx/wx.h>
|
||||
%}
|
||||
|
||||
%define __arm64__ 1
|
||||
%enddef
|
||||
%define TARGET_CPU_ARM64 1
|
||||
%enddef
|
||||
%define __APPLE__ 1
|
||||
%enddef
|
||||
%define __LP64__ 1
|
||||
%enddef
|
||||
%define __MACH__ 1
|
||||
%enddef
|
||||
|
||||
#define __FUNCTION__ (NULL)
|
||||
#define __asm(str)
|
||||
#define __attribute__(str)
|
||||
|
||||
/* #define WXEXPORT */
|
||||
/* #define WXIMPORT */
|
||||
%ignore WX_DECLARE_LIST_XO;
|
||||
%ignore WX_DECLARE_LIST_2(elementtype, listname, nodename, classexp);
|
||||
%ignore WX_DECLARE_LIST_3;
|
||||
%ignore WX_DECLARE_LIST_4;
|
||||
%ignore WXDLLIMPEXP_BASE;
|
||||
%ignore _WX_LIST_HELPER_wxWindowList;
|
||||
%ignore _WX_LIST_HELPER_wxPointList;
|
||||
%ignore wxWindowList::Nth;
|
||||
%ignore wxPointList::Nth;
|
||||
%ignore wxPendingDelete;
|
||||
%ignore wxCreateApp;
|
||||
%ignore wxTheAppInitializer;
|
||||
|
||||
%extend wxCharBuffer {
|
||||
wxCharBuffer(const char *str = NULL) {
|
||||
return new wxCharBuffer(str);
|
||||
}
|
||||
}
|
||||
%extend wxWCharBuffer {
|
||||
wxWCharBuffer(const wchar_t *str = NULL) {
|
||||
return new wxWCharBuffer(str);
|
||||
}
|
||||
}
|
||||
|
||||
%ignore wxCharBuffer::wxCharBuffer(const CharType * str);
|
||||
%ignore wxWCharBuffer::wxWCharBuffer(const CharType * str);
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%include "wx/buffer.h"
|
||||
|
||||
%template(wxCharTypeBufferWChar) wxCharTypeBuffer<wchar_t>;
|
||||
%template(wxCharTypeBufferChar) wxCharTypeBuffer<char>;
|
||||
|
||||
%template(wxScopedCharTypeBufferWChar) wxScopedCharTypeBuffer<wchar_t>;
|
||||
%template(wxScopedCharTypeBufferChar) wxScopedCharTypeBuffer<char>;
|
||||
19
swigtemplates/build.i
Normal file
19
swigtemplates/build.i
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
%module build
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/build.h>
|
||||
%}
|
||||
|
||||
|
||||
%{
|
||||
const char* wxBuildOptionsSignature() {
|
||||
return WX_BUILD_OPTIONS_SIGNATURE;
|
||||
}
|
||||
|
||||
const bool wxCheckBuildOptions(char * libName) {
|
||||
return wxAppConsole::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, libName);
|
||||
}
|
||||
%}
|
||||
|
||||
const char* wxBuildOptionsSignature();
|
||||
const bool wxCheckBuildOptions(char * libName);
|
||||
79
swigtemplates/button.i
Normal file
79
swigtemplates/button.i
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
%module window
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
#include "wxext/button_ext.h"
|
||||
#include "wxext/osx/button_ext.h"
|
||||
%}
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%import "wx/frame.h"
|
||||
%import "wx/window.h"
|
||||
%import "wx/control.h"
|
||||
%import "wx/anybutton.h"
|
||||
%include "wx/button.h"
|
||||
%include "wxext/button_ext.h"
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
%include "wx/univ/button.h"
|
||||
#elif defined(__WXMSW__)
|
||||
%include "wx/msw/button.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
%include "wx/motif/button.h"
|
||||
#elif defined(__WXGTK20__)
|
||||
%include "wx/gtk/button.h"
|
||||
#elif defined(__WXGTK__)
|
||||
%include "wx/gtk1/button.h"
|
||||
#elif defined(__WXMAC__)
|
||||
%include "wx/osx/button.h"
|
||||
%include "wxext/osx/button_ext.h"
|
||||
#elif defined(__WXQT__)
|
||||
%include "wx/qt/button.h"
|
||||
#endif
|
||||
26
swigtemplates/buttonext.h
Normal file
26
swigtemplates/buttonext.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include <wx/wx.h>
|
||||
#include <wx/vidmode.h>
|
||||
|
||||
class wxButtonBaseExt;
|
||||
typedef wxWindow* (*wxButtonBaseExtSetDefaultFunc)(const wxButtonBaseExt* self);
|
||||
|
||||
class wxButtonBaseExt: public wxButtonBase
|
||||
{
|
||||
public:
|
||||
wxButtonBaseExt(): wxButtonBase() { }
|
||||
wxButtonBaseExtSetDefaultFunc m_SetDefault;
|
||||
virtual wxWindow* SetDefault() override
|
||||
{
|
||||
wxWindow* res = wxButtonBase::SetDefault();
|
||||
if (*m_SetDefault != NULL){
|
||||
return m_SetDefault(this);
|
||||
}
|
||||
else {
|
||||
return res;
|
||||
}
|
||||
}
|
||||
wxButtonBaseExt(wxButtonBaseExtSetDefaultFunc a_SetDefault): wxButtonBase() {
|
||||
m_SetDefault = a_SetDefault;
|
||||
}
|
||||
};
|
||||
|
||||
69
swigtemplates/common.i
Normal file
69
swigtemplates/common.i
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
%include <std_string.i>
|
||||
%include <std_common.i>
|
||||
|
||||
%{
|
||||
#include <wx/wx.h>
|
||||
%}
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
|
||||
%define __arm64__ 1
|
||||
%enddef
|
||||
%define TARGET_CPU_ARM64 1
|
||||
%enddef
|
||||
%define __APPLE__ 1
|
||||
%enddef
|
||||
%define __GNUC__ 1
|
||||
%enddef
|
||||
%define __LP64__ 1
|
||||
%enddef
|
||||
%define __MACH__ 1
|
||||
%enddef
|
||||
|
||||
#endif
|
||||
|
||||
#define __FUNCTION__ (NULL)
|
||||
#define __asm(str)
|
||||
#define __attribute__(str)
|
||||
|
||||
/* #define WXEXPORT */
|
||||
/* #define WXIMPORT */
|
||||
%ignore WX_DECLARE_LIST_XO;
|
||||
%ignore WX_DECLARE_LIST_2(elementtype, listname, nodename, classexp);
|
||||
%ignore WX_DECLARE_LIST_3;
|
||||
%ignore WX_DECLARE_LIST_4;
|
||||
%ignore WXDLLIMPEXP_BASE;
|
||||
%ignore _WX_LIST_HELPER_wxWindowList;
|
||||
%ignore _WX_LIST_HELPER_wxPointList;
|
||||
%ignore wxWindowList::Nth;
|
||||
%ignore wxPointList::Nth;
|
||||
%ignore wxPendingDelete;
|
||||
%ignore wxCreateApp;
|
||||
%ignore wxTheAppInitializer;
|
||||
|
||||
%rename(indexop) operator[];
|
||||
%rename(plus) operator+;
|
||||
%rename(minus) operator-;
|
||||
%rename(mult) operator*;
|
||||
%rename(div) operator/;
|
||||
%rename(shr) operator>>;
|
||||
%rename(shl) operator<<;
|
||||
%rename(assignop) operator=;
|
||||
%rename(eqeq) operator==;
|
||||
%rename(noteq) operator!=;
|
||||
%rename(notop) operator!;
|
||||
%rename(pluseq) operator+=;
|
||||
%rename(minuseq) operator-=;
|
||||
%rename(multeq) operator*=;
|
||||
%rename(diveq) operator/=;
|
||||
%rename(greater) operator>;
|
||||
%rename(lessthan) operator<;
|
||||
%rename(greatereq) operator>=;
|
||||
%rename(lessthaneq) operator<=;
|
||||
%rename(callop) operator();
|
||||
|
||||
%rename(voidpop) operator const void*;
|
||||
%rename(charpop) operator const char*;
|
||||
%rename(wcharpop) operator const wchar_t*;
|
||||
%rename(ucharpop) operator const unsigned char*;
|
||||
%rename(boolop) operator bool;
|
||||
73
swigtemplates/control.i
Normal file
73
swigtemplates/control.i
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
%module window
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
%}
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%import "wx/frame.h"
|
||||
%import "wx/window.h"
|
||||
%include "wx/control.h"
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
%include "wx/univ/control.h"
|
||||
#elif defined(__WXMSW__)
|
||||
%include "wx/msw/control.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
%include "wx/motif/control.h"
|
||||
#elif defined(__WXGTK20__)
|
||||
%include "wx/gtk/control.h"
|
||||
#elif defined(__WXGTK__)
|
||||
%include "wx/gtk1/control.h"
|
||||
#elif defined(__WXMAC__)
|
||||
%include "wx/osx/control.h"
|
||||
#elif defined(__WXQT__)
|
||||
%include "wx/qt/control.h"
|
||||
#endif
|
||||
42
swigtemplates/event.i
Normal file
42
swigtemplates/event.i
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
%module event
|
||||
%include <common.i>
|
||||
|
||||
%ignore wxObject::ms_classInfo;
|
||||
|
||||
%ignore wxEventTableEntryPointerArray::wxEventTableEntryPointerArray(size_t n, Base::const_reference v);
|
||||
%ignore wxEvtHandlerArray::wxEvtHandlerArray(size_t n, Base::const_reference v);
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/vector.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/kbdstate.h"
|
||||
%import "wx/mousestate.h"
|
||||
%import "wx/tracker.h"
|
||||
%include "wx/event.h"
|
||||
|
||||
/* For some reason this doesn't work. Figure out why */
|
||||
|
||||
/* %template(wxBaseArrayForwxEventTableEntryPointerArray) wxBaseArray<wxEvtHandler*>; */
|
||||
/* %template(wxBaseArrayForwxEvtHandlerArray) wxBaseArray<wxEvtHandler*>; */
|
||||
|
||||
/* %extend wxEventTableEntryPointerArray { */
|
||||
/* wxEventTableEntryPointerArray(size_t n, wxBaseArrayForwxEventTableEntryPointerArray::const_reference v) { */
|
||||
/* return new wxEventTableEntryPointerArray(n, v); */
|
||||
/* } */
|
||||
/* } */
|
||||
/* %extend wxEvtHandlerArray { */
|
||||
/* wxEvtHandlerArray(size_t n, wxBaseArrayForwxEvtHandlerArray::const_reference v) { */
|
||||
/* return new wxEvtHandlerArray(n, v); */
|
||||
/* } */
|
||||
/* } */
|
||||
15
swigtemplates/eventfilter.i
Normal file
15
swigtemplates/eventfilter.i
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
%module eventfilter
|
||||
%include <common.i>
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/defs.h"
|
||||
%include "wx/eventfilter.h"
|
||||
85
swigtemplates/frame.i
Normal file
85
swigtemplates/frame.i
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
%module frame
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
#include "wxext/frame_ext.h"
|
||||
#if defined(__WXMAC__)
|
||||
#include "wxext/osx/frame_ext.h"
|
||||
#endif
|
||||
%}
|
||||
|
||||
%ignore wxWindowList::Nth;
|
||||
%ignore wxPointList::Nth;
|
||||
%ignore wxPendingDelete;
|
||||
%ignore wxCreateApp;
|
||||
%ignore wxTheAppInitializer;
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/window.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%include "wx/frame.h"
|
||||
%include "wxext/frame_ext.h"
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
%include "wx/univ/frame.h"
|
||||
#else // !__WXUNIVERSAL__
|
||||
#if defined(__WXMSW__)
|
||||
%include "wx/msw/frame.h"
|
||||
#elif defined(__WXGTK20__)
|
||||
%include "wx/gtk/frame.h"
|
||||
#elif defined(__WXGTK__)
|
||||
%include "wx/gtk1/frame.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
%include "wx/motif/frame.h"
|
||||
#elif defined(__WXMAC__)
|
||||
%include "wx/osx/frame.h"
|
||||
%include "wxext/osx/frame_ext.h"
|
||||
#elif defined(__WXQT__)
|
||||
%include "wx/qt/frame.h"
|
||||
#endif
|
||||
#endif
|
||||
17
swigtemplates/frame_ext.h
Normal file
17
swigtemplates/frame_ext.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include<wx/wx.h>
|
||||
|
||||
typedef wxWindow* (* InitTopWindow)();
|
||||
|
||||
wxWindow* privInitTopWindow();
|
||||
|
||||
const char* wxBuildOptionsSignature();
|
||||
|
||||
class wxFrameExt : public wxFrame
|
||||
{
|
||||
private:
|
||||
InitTopWindow initTopWindowFunc;
|
||||
public:
|
||||
wxFrameExt(): wxFrame() {};
|
||||
void SetTopWindowInitFunc(InitTopWindow init);
|
||||
virtual bool OnInit();
|
||||
};
|
||||
59
swigtemplates/gtk_control.i
Normal file
59
swigtemplates/gtk_control.i
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
%module window
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
%}
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%import "wx/frame.h"
|
||||
%import "wx/window.h"
|
||||
%include "wx/control.h"
|
||||
|
||||
%include "wx/gtk/control.h"
|
||||
13
swigtemplates/init.i
Normal file
13
swigtemplates/init.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module init
|
||||
%include <common.i>
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/chartype.h"
|
||||
%include "wx/init.h"
|
||||
18
swigtemplates/mainapp.h
Normal file
18
swigtemplates/mainapp.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#include<wx/wx.h>
|
||||
|
||||
/* typedef wxWindow* (* InitTopWindow)(); */
|
||||
|
||||
/* wxWindow* privInitTopWindow(); */
|
||||
|
||||
const char* wxBuildOptionsSignature();
|
||||
const bool wxCheckBuildOptions(char * libName);
|
||||
|
||||
/* class MainApp : public wxApp */
|
||||
/* { */
|
||||
/* private: */
|
||||
/* InitTopWindow initTopWindowFunc; */
|
||||
/* public: */
|
||||
/* MainApp(); */
|
||||
/* void SetTopWindowInitFunc(InitTopWindow init); */
|
||||
/* virtual bool OnInit(); */
|
||||
/* }; */
|
||||
13
swigtemplates/object.i
Normal file
13
swigtemplates/object.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module object
|
||||
%include <common.i>
|
||||
|
||||
%ignore wxObject::ms_classInfo;
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%include "wx/object.h"
|
||||
71
swigtemplates/panel.i
Normal file
71
swigtemplates/panel.i
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
%module window
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
#include "wxext/panel_ext.h"
|
||||
#include "wxext/generic/panelg_ext.h"
|
||||
%}
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%import "wx/frame.h"
|
||||
%import "wx/window.h"
|
||||
%import "wx/control.h"
|
||||
%include "wx/panel.h"
|
||||
%include "wxext/panel_ext.h"
|
||||
%include "wxext/generic/panelg_ext.h"
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
%include "wx/univ/panel.h"
|
||||
#elif defined(__WXMSW__)
|
||||
%include "wx/msw/panel.h"
|
||||
#else
|
||||
#define wxHAS_GENERIC_PANEL
|
||||
%include "wx/generic/panelg.h"
|
||||
#endif
|
||||
20
swigtemplates/string.i
Normal file
20
swigtemplates/string.i
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
%module string
|
||||
%include <common.i>
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%include "wx/string.h"
|
||||
|
||||
16
swigtemplates/tracker.i
Normal file
16
swigtemplates/tracker.i
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%module tracker
|
||||
%include <common.i>
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/dynarray.h"
|
||||
%include "wx/tracker.h"
|
||||
119
swigtemplates/window.i
Normal file
119
swigtemplates/window.i
Normal file
|
|
@ -0,0 +1,119 @@
|
|||
%module window
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
%}
|
||||
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%import "wx/frame.h"
|
||||
%include "wx/window.h"
|
||||
%include "wxext/window_ext.h"
|
||||
|
||||
// include the declaration of the platform-specific class
|
||||
#if defined(__WXMSW__)
|
||||
#ifdef __WXUNIVERSAL__
|
||||
#define wxWindowNative wxWindowMSW
|
||||
#else // !wxUniv
|
||||
#define wxWindowMSW wxWindow
|
||||
#endif // wxUniv/!wxUniv
|
||||
%include "wx/msw/window.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
%include "wx/motif/window.h"
|
||||
#elif defined(__WXGTK20__)
|
||||
#ifdef __WXUNIVERSAL__
|
||||
#define wxWindowNative wxWindowGTK
|
||||
#else // !wxUniv
|
||||
#define wxWindowGTK wxWindow
|
||||
#endif // wxUniv
|
||||
%include "wx/gtk/window.h"
|
||||
#elif defined(__WXGTK__)
|
||||
#ifdef __WXUNIVERSAL__
|
||||
#define wxWindowNative wxWindowGTK
|
||||
#else // !wxUniv
|
||||
#define wxWindowGTK wxWindow
|
||||
#endif // wxUniv
|
||||
%include "wx/gtk1/window.h"
|
||||
#elif defined(__WXX11__)
|
||||
#ifdef __WXUNIVERSAL__
|
||||
#define wxWindowNative wxWindowX11
|
||||
#else // !wxUniv
|
||||
#define wxWindowX11 wxWindow
|
||||
#endif // wxUniv
|
||||
%include "wx/x11/window.h"
|
||||
#elif defined(__WXDFB__)
|
||||
#define wxWindowNative wxWindowDFB
|
||||
%include "wx/dfb/window.h"
|
||||
#elif defined(__WXMAC__)
|
||||
#ifdef __WXUNIVERSAL__
|
||||
#define wxWindowNative wxWindowMac
|
||||
#else // !wxUniv
|
||||
#define wxWindowMac wxWindow
|
||||
#endif // wxUniv
|
||||
%include "wx/osx/window.h"
|
||||
#elif defined(__WXQT__)
|
||||
#ifdef __WXUNIVERSAL__
|
||||
#define wxWindowNative wxWindowQt
|
||||
#else // !wxUniv
|
||||
#define wxWindowQt wxWindow
|
||||
#endif // wxUniv
|
||||
%include "wx/qt/window.h"
|
||||
#endif
|
||||
|
||||
// for wxUniversal, we now derive the real wxWindow from wxWindow<platform>,
|
||||
// for the native ports we already have defined it above
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
#ifndef wxWindowNative
|
||||
#error "wxWindowNative must be defined above!"
|
||||
#endif
|
||||
|
||||
%include "wx/univ/window.h"
|
||||
#endif // wxUniv
|
||||
|
||||
%include "wxext/window_ext_inc.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue