From e60834897cf572ea0626893da4029c71dd6faee3 Mon Sep 17 00:00:00 2001 From: dleijen Date: Sun, 13 Jul 2003 14:20:59 -0700 Subject: [PATCH] [wxhaskell-from-cvs @ 2003-07-13 21:20:40 by dleijen] initial import darcs-hash:20030713212059-deb31-b375476dcba4903ebfa0f20dc03e16fc613005f1.gz --- wxc/src/ewxw/eljdrawing.cpp | 16 + wxc/src/ewxw/eljevent.cpp | 2079 +++++++++++++++++++++++++++++++ wxc/src/ewxw/eljfiledialog.cpp | 115 ++ wxc/src/ewxw/eljfilehist.cpp | 89 ++ wxc/src/ewxw/eljfindrepldlg.cpp | 124 ++ wxc/src/ewxw/eljfl.cpp | 1550 +++++++++++++++++++++++ wxc/src/ewxw/eljfont.cpp | 242 ++++ wxc/src/ewxw/eljfontdata.cpp | 91 ++ wxc/src/ewxw/eljfontdlg.cpp | 16 + wxc/src/ewxw/eljframe.cpp | 113 ++ wxc/src/ewxw/eljgauge.cpp | 51 + wxc/src/ewxw/eljgizmos.cpp | 416 +++++++ 12 files changed, 4902 insertions(+) create mode 100644 wxc/src/ewxw/eljdrawing.cpp create mode 100644 wxc/src/ewxw/eljevent.cpp create mode 100644 wxc/src/ewxw/eljfiledialog.cpp create mode 100644 wxc/src/ewxw/eljfilehist.cpp create mode 100644 wxc/src/ewxw/eljfindrepldlg.cpp create mode 100644 wxc/src/ewxw/eljfl.cpp create mode 100644 wxc/src/ewxw/eljfont.cpp create mode 100644 wxc/src/ewxw/eljfontdata.cpp create mode 100644 wxc/src/ewxw/eljfontdlg.cpp create mode 100644 wxc/src/ewxw/eljframe.cpp create mode 100644 wxc/src/ewxw/eljgauge.cpp create mode 100644 wxc/src/ewxw/eljgizmos.cpp diff --git a/wxc/src/ewxw/eljdrawing.cpp b/wxc/src/ewxw/eljdrawing.cpp new file mode 100644 index 00000000..b2b0a5c5 --- /dev/null +++ b/wxc/src/ewxw/eljdrawing.cpp @@ -0,0 +1,16 @@ +#include "wrapper.h" + +extern "C" +{ + +EWXWEXPORT(void*, wxDrawWindow_Create) (void* _prt, int _id, int _lft, int _top, int _wdt, int _hgt, int _stl) +{ + return (void*) new wxWindow ((wxWindow*)_prt, _id, wxPoint(_lft, _top), wxSize(_wdt, _hgt), _stl); +} + +EWXWEXPORT(void*, wxDrawControl_Create) (void* _prt, int _id, int _lft, int _top, int _wdt, int _hgt, int _stl) +{ + return (void*) new wxControl ((wxWindow*)_prt, _id, wxPoint(_lft, _top), wxSize(_wdt, _hgt), _stl); +} + +} diff --git a/wxc/src/ewxw/eljevent.cpp b/wxc/src/ewxw/eljevent.cpp new file mode 100644 index 00000000..227d6226 --- /dev/null +++ b/wxc/src/ewxw/eljevent.cpp @@ -0,0 +1,2079 @@ +#include "wrapper.h" +#include "wx/process.h" +#include "wx/dialup.h" +#include "wx/tabctrl.h" +#include "wx/plot/plot.h" +#include "wx/gizmos/dynamicsash.h" + +extern "C" +{ + +EWXWEXPORT(void*,wxCommandEvent_Create)(int _typ, int _id) +{ + return new wxCommandEvent((wxEventType)_typ, _id); +} + +EWXWEXPORT(void,wxCommandEvent_Delete)(void* _obj) +{ + delete (wxCommandEvent*)_obj; +} + +EWXWEXPORT(void, wxEvent_Skip)(void* _obj) +{ + ((wxEvent*)_obj)->Skip(); +} + +EWXWEXPORT(int, wxEvent_GetEventType)(void* _obj) +{ + return (int)((wxEvent*)_obj)->GetEventType(); +} + +EWXWEXPORT(void, wxEvent_SetEventType)(void* _obj, int typ) +{ + ((wxEvent*)_obj)->SetEventType((wxEventType) typ); +} + +EWXWEXPORT(void*, wxEvent_GetEventObject)(void* _obj) +{ + return (void*)((wxEvent*)_obj)->GetEventObject(); +} + +EWXWEXPORT(void, wxEvent_SetEventObject)(void* _obj, void* obj) +{ + ((wxEvent*)_obj)->SetEventObject((wxObject*) obj); +} + +EWXWEXPORT(int, wxEvent_GetTimestamp)(void* _obj) +{ + return (int)((wxEvent*)_obj)->GetTimestamp(); +} + +EWXWEXPORT(void, wxEvent_SetTimestamp)(void* _obj, int ts) +{ + ((wxEvent*)_obj)->SetTimestamp((long)ts); +} + +EWXWEXPORT(int, wxEvent_GetId)(void* _obj) +{ + return ((wxEvent*)_obj)->GetId(); +} + +EWXWEXPORT(void, wxEvent_SetId)(void* _obj, int Id) +{ + ((wxEvent*)_obj)->SetId(Id); +} + +EWXWEXPORT(int, wxEvent_GetSkipped)(void* _obj) +{ + return (int)((wxEvent*)_obj)->GetSkipped(); +} + +EWXWEXPORT(int, wxEvent_IsCommandEvent)(void* _obj) +{ + return (int)((wxEvent*)_obj)->IsCommandEvent(); +} + +EWXWEXPORT(void, wxEvent_CopyObject)(void* _obj, void* object_dest) +{ +#if wxVERSION_NUMBER < 2400 + ((wxEvent*)_obj)->CopyObject(*((wxObject*) object_dest)); +#endif +} + +EWXWEXPORT(void, wxEvent_SetCallbackUserData)(void* _obj, wxObject* obj) +{ + ((wxEvent*)_obj)->m_callbackUserData = (wxObject*) obj; +} + +EWXWEXPORT(void*, wxEvent_GetCallbackUserData)(void* _obj) +{ + return (void*)((wxEvent*)_obj)->m_callbackUserData; +} + +EWXWEXPORT(void, wxCommandEvent_SetClientData)(void* _obj, void* clientData) +{ + ((wxCommandEvent*)_obj)->SetClientData(clientData); +} + +EWXWEXPORT(void*, wxCommandEvent_GetClientData)(void* _obj) +{ + return ((wxCommandEvent*)_obj)->m_clientData; +} + +EWXWEXPORT(void, wxCommandEvent_SetClientObject)(void* _obj, void* clientObject) +{ + ((wxCommandEvent*)_obj)->SetClientObject((wxClientData*) clientObject); +} + +EWXWEXPORT(void*, wxCommandEvent_GetClientObject)(void* _obj) +{ + return (void*)((wxCommandEvent*)_obj)->GetClientObject(); +} + +EWXWEXPORT(int, wxCommandEvent_GetSelection)(void* _obj) +{ + return ((wxCommandEvent*)_obj)->GetSelection(); +} + +EWXWEXPORT(void, wxCommandEvent_SetString)(void* _obj, char* s) +{ + ((wxCommandEvent*)_obj)->SetString(s); +} + +EWXWEXPORT(int, wxCommandEvent_GetString)(void* _obj, void* _buf) +{ + wxString result = ((wxCommandEvent*)_obj)->GetString(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxCommandEvent_IsChecked)(void* _obj) +{ + return (int)((wxCommandEvent*)_obj)->IsChecked(); +} + +EWXWEXPORT(int, wxCommandEvent_IsSelection)(void* _obj) +{ + return (int)((wxCommandEvent*)_obj)->IsSelection(); +} + +EWXWEXPORT(void, wxCommandEvent_SetExtraLong)(void* _obj, long extraLong) +{ + ((wxCommandEvent*)_obj)->SetExtraLong(extraLong); +} + +EWXWEXPORT(long, wxCommandEvent_GetExtraLong)(void* _obj) +{ + return ((wxCommandEvent*)_obj)->m_extraLong; +} + +EWXWEXPORT(void, wxCommandEvent_SetInt)(void* _obj, int i) +{ + ((wxCommandEvent*)_obj)->SetInt(i); +} + +EWXWEXPORT(long, wxCommandEvent_GetInt)(void* _obj) +{ + return ((wxCommandEvent*)_obj)->GetInt(); +} + +EWXWEXPORT(void, wxCommandEvent_CopyObject)(void* _obj, void* object_dest) +{ +#if wxVERSION_NUMBER < 2400 + ((wxCommandEvent*)_obj)->CopyObject(*((wxObject*) object_dest)); +#endif +} + +EWXWEXPORT(void, wxNotifyEvent_Veto)(void* _obj) +{ + ((wxNotifyEvent*)_obj)->Veto(); +} + +EWXWEXPORT(void, wxNotifyEvent_Allow)(void* _obj) +{ + ((wxNotifyEvent*)_obj)->Allow(); +} + +EWXWEXPORT(int, wxNotifyEvent_IsAllowed)(void* _obj) +{ + return (int)((wxNotifyEvent*)_obj)->IsAllowed(); +} + +EWXWEXPORT(void, wxNotifyEvent_CopyObject)(void* _obj, void* object_dest) +{ +#if wxVERSION_NUMBER < 2400 + ((wxNotifyEvent*)_obj)->CopyObject(*((wxObject*) object_dest)); +#endif +} + +EWXWEXPORT(int, wxScrollWinEvent_GetOrientation)(void* _obj) +{ + return ((wxScrollWinEvent*)_obj)->GetOrientation(); +} + +EWXWEXPORT(int, wxScrollWinEvent_GetPosition)(void* _obj) +{ + return ((wxScrollWinEvent*)_obj)->GetPosition(); +} + +EWXWEXPORT(void, wxScrollWinEvent_SetOrientation)(void* _obj, int orient) +{ + ((wxScrollWinEvent*)_obj)->SetOrientation(orient); +} + +EWXWEXPORT(void, wxScrollWinEvent_SetPosition)(void* _obj, int pos) +{ + ((wxScrollWinEvent*)_obj)->SetPosition(pos); +} + +EWXWEXPORT(int, wxMouseEvent_IsButton)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->IsButton(); +} + +EWXWEXPORT(int, wxMouseEvent_ButtonDown)(void* _obj, int but) +{ + return (int)((wxMouseEvent*)_obj)->ButtonDown(but); +} + +EWXWEXPORT(int, wxMouseEvent_ButtonDClick)(void* _obj, int but) +{ + return (int)((wxMouseEvent*)_obj)->ButtonDClick(but); +} + +EWXWEXPORT(int, wxMouseEvent_ButtonUp)(void* _obj, int but) +{ + return (int)((wxMouseEvent*)_obj)->ButtonUp(but); +} + +EWXWEXPORT(int, wxMouseEvent_Button)(void* _obj, int but) +{ + return (int)((wxMouseEvent*)_obj)->Button(but); +} + +EWXWEXPORT(int, wxMouseEvent_ButtonIsDown)(void* _obj, int but) +{ + return (int)((wxMouseEvent*)_obj)->ButtonIsDown(but); +} + +EWXWEXPORT(int, wxMouseEvent_ControlDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->ControlDown(); +} + +EWXWEXPORT(int, wxMouseEvent_MetaDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->MetaDown(); +} + +EWXWEXPORT(int, wxMouseEvent_AltDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->AltDown(); +} + +EWXWEXPORT(int, wxMouseEvent_ShiftDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->ShiftDown(); +} + +EWXWEXPORT(int, wxMouseEvent_LeftDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->LeftDown(); +} + +EWXWEXPORT(int, wxMouseEvent_MiddleDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->MiddleDown(); +} + +EWXWEXPORT(int, wxMouseEvent_RightDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->RightDown(); +} + +EWXWEXPORT(int, wxMouseEvent_LeftUp)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->LeftUp(); +} + +EWXWEXPORT(int, wxMouseEvent_MiddleUp)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->MiddleUp(); +} + +EWXWEXPORT(int, wxMouseEvent_RightUp)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->RightUp(); +} + +EWXWEXPORT(int, wxMouseEvent_LeftDClick)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->LeftDClick(); +} + +EWXWEXPORT(int, wxMouseEvent_MiddleDClick)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->MiddleDClick(); +} + +EWXWEXPORT(int, wxMouseEvent_RightDClick)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->RightDClick(); +} + +EWXWEXPORT(int, wxMouseEvent_LeftIsDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->LeftIsDown(); +} + +EWXWEXPORT(int, wxMouseEvent_MiddleIsDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->MiddleIsDown(); +} + +EWXWEXPORT(int, wxMouseEvent_RightIsDown)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->RightIsDown(); +} + +EWXWEXPORT(int, wxMouseEvent_Dragging)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->Dragging(); +} + +EWXWEXPORT(int, wxMouseEvent_Moving)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->Moving(); +} + +EWXWEXPORT(int, wxMouseEvent_Entering)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->Entering(); +} + +EWXWEXPORT(int, wxMouseEvent_Leaving)(void* _obj) +{ + return (int)((wxMouseEvent*)_obj)->Leaving(); +} + +EWXWEXPORT(void, wxMouseEvent_GetPosition)(void* _obj, int* xpos, int* ypos) +{ + ((wxMouseEvent*)_obj)->GetPosition((wxCoord*)xpos, (wxCoord*)ypos); +} + +EWXWEXPORT(void, wxMouseEvent_GetLogicalPosition)(void* _obj, void* dc, int* xpos, int* ypos) +{ + wxPoint pt = ((wxMouseEvent*)_obj)->GetLogicalPosition(*((wxDC*)dc)); + *xpos = pt.x; + *ypos = pt.y; +} + +EWXWEXPORT(int, wxMouseEvent_GetX)(void* _obj) +{ + return ((wxMouseEvent*)_obj)->GetX(); +} + +EWXWEXPORT(int, wxMouseEvent_GetY)(void* _obj) +{ + return ((wxMouseEvent*)_obj)->GetY(); +} + +EWXWEXPORT(void, wxMouseEvent_CopyObject)(void* _obj, void* object_dest) +{ +#if wxVERSION_NUMBER < 2400 + ((wxMouseEvent*)_obj)->CopyObject(*((wxObject*) object_dest)); +#endif +} + +EWXWEXPORT(int, wxSetCursorEvent_GetX)(void* _obj) +{ + return (int)((wxSetCursorEvent*)_obj)->GetX(); +} + +EWXWEXPORT(int, wxSetCursorEvent_GetY)(void* _obj) +{ + return (int)((wxSetCursorEvent*)_obj)->GetY(); +} + +EWXWEXPORT(void, wxSetCursorEvent_SetCursor)(void* _obj, void* cursor) +{ + ((wxSetCursorEvent*)_obj)->SetCursor(*((wxCursor*)cursor)); +} + +EWXWEXPORT(void*, wxSetCursorEvent_GetCursor)(void* _obj) +{ + return (void*)(&((wxSetCursorEvent*)_obj)->GetCursor()); +} + +EWXWEXPORT(int, wxSetCursorEvent_HasCursor)(void* _obj) +{ + return (int)((wxSetCursorEvent*)_obj)->HasCursor(); +} + +EWXWEXPORT(int, wxKeyEvent_ControlDown)(void* _obj) +{ + return (int)((wxKeyEvent*)_obj)->ControlDown(); +} + +EWXWEXPORT(int, wxKeyEvent_MetaDown)(void* _obj) +{ + return (int)((wxKeyEvent*)_obj)->MetaDown(); +} + +EWXWEXPORT(int, wxKeyEvent_AltDown)(void* _obj) +{ + return (int)((wxKeyEvent*)_obj)->AltDown(); +} + +EWXWEXPORT(int, wxKeyEvent_ShiftDown)(void* _obj) +{ + return (int)((wxKeyEvent*)_obj)->ShiftDown(); +} + +EWXWEXPORT(int, wxKeyEvent_HasModifiers)(void* _obj) +{ + return (int)((wxKeyEvent*)_obj)->HasModifiers(); +} + +EWXWEXPORT(int, wxKeyEvent_GetKeyCode)(void* _obj) +{ + return ((wxKeyEvent*)_obj)->GetKeyCode(); +} + +EWXWEXPORT(void, wxKeyEvent_SetKeyCode)(void* _obj, int code) +{ + ((wxKeyEvent*)_obj)->m_keyCode = code; +} + +EWXWEXPORT(void, wxKeyEvent_GetPosition)(void* _obj, int* xpos, int* ypos) +{ + ((wxKeyEvent*)_obj)->GetPosition((wxCoord*) xpos, (wxCoord*) ypos); +} + +EWXWEXPORT(int, wxKeyEvent_GetX)(void* _obj) +{ + return (int)((wxKeyEvent*)_obj)->GetX(); +} + +EWXWEXPORT(int, wxKeyEvent_GetY)(void* _obj) +{ + return (int)((wxKeyEvent*)_obj)->GetY(); +} + +EWXWEXPORT(void, wxKeyEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxKeyEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void, wxSizeEvent_GetSize)(void* _obj, int* w, int* h) +{ + wxSize sz = ((wxSizeEvent*)_obj)->GetSize(); + *w = sz.x; + *h = sz.y; +} + +EWXWEXPORT(void, wxSizeEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxSizeEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void, wxMoveEvent_GetPosition)(void* _obj, int* x, int* y) +{ + wxPoint pt = ((wxMoveEvent*)_obj)->GetPosition(); + *x = pt.x; + *y = pt.y; +} + +EWXWEXPORT(void, wxMoveEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxMoveEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void*, wxEraseEvent_GetDC)(void* _obj) +{ + return (void*)((wxEraseEvent*)_obj)->GetDC(); +} + +EWXWEXPORT(void, wxEraseEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxEraseEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(int, wxActivateEvent_GetActive)(void* _obj) +{ + return (int)((wxActivateEvent*)_obj)->GetActive(); +} + +EWXWEXPORT(void, wxActivateEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxActivateEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(int, wxMenuEvent_GetMenuId)(void* _obj) +{ + return ((wxMenuEvent*)_obj)->GetMenuId(); +} + +EWXWEXPORT(void, wxMenuEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxMenuEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void, wxCloseEvent_SetLoggingOff)(void* _obj, int logOff) +{ + ((wxCloseEvent*)_obj)->SetLoggingOff(logOff != 0); +} + +EWXWEXPORT(int, wxCloseEvent_GetLoggingOff)(void* _obj) +{ + return (int)((wxCloseEvent*)_obj)->GetLoggingOff(); +} + +EWXWEXPORT(void, wxCloseEvent_Veto)(void* _obj, int veto) +{ + ((wxCloseEvent*)_obj)->Veto(veto != 0); +} + +EWXWEXPORT(void, wxCloseEvent_SetCanVeto)(void* _obj, int canVeto) +{ + ((wxCloseEvent*)_obj)->SetCanVeto(canVeto != 0); +} + +EWXWEXPORT(int, wxCloseEvent_CanVeto)(void* _obj) +{ + return (int)((wxCloseEvent*)_obj)->CanVeto(); +} + +EWXWEXPORT(int, wxCloseEvent_GetVeto)(void* _obj) +{ + return (int)((wxCloseEvent*)_obj)->GetVeto(); +} + +EWXWEXPORT(void, wxCloseEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxCloseEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void, wxShowEvent_SetShow)(void* _obj, int show) +{ + ((wxShowEvent*)_obj)->SetShow(show != 0); +} + +EWXWEXPORT(int, wxShowEvent_GetShow)(void* _obj) +{ + return (int)((wxShowEvent*)_obj)->GetShow(); +} + +EWXWEXPORT(void, wxShowEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxShowEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void, wxJoystickEvent_GetPosition)(void* _obj, int* x, int* y) +{ + wxPoint pt = ((wxJoystickEvent*)_obj)->GetPosition(); + *x = pt.x; + *y = pt.y; +} + +EWXWEXPORT(int, wxJoystickEvent_GetZPosition)(void* _obj) +{ + return ((wxJoystickEvent*)_obj)->GetZPosition(); +} + +EWXWEXPORT(int, wxJoystickEvent_GetButtonState)(void* _obj) +{ + return ((wxJoystickEvent*)_obj)->GetButtonState(); +} + +EWXWEXPORT(int, wxJoystickEvent_GetButtonChange)(void* _obj) +{ + return ((wxJoystickEvent*)_obj)->GetButtonChange(); +} + +EWXWEXPORT(int, wxJoystickEvent_GetJoystick)(void* _obj) +{ + return ((wxJoystickEvent*)_obj)->GetJoystick(); +} + +EWXWEXPORT(void, wxJoystickEvent_SetJoystick)(void* _obj, int stick) +{ + ((wxJoystickEvent*)_obj)->SetJoystick(stick); +} + +EWXWEXPORT(void, wxJoystickEvent_SetButtonState)(void* _obj, int state) +{ + ((wxJoystickEvent*)_obj)->SetButtonState(state); +} + +EWXWEXPORT(void, wxJoystickEvent_SetButtonChange)(void* _obj, int change) +{ + ((wxJoystickEvent*)_obj)->SetButtonChange(change); +} + +EWXWEXPORT(void, wxJoystickEvent_SetPosition)(void* _obj, void* pos) +{ + ((wxJoystickEvent*)_obj)->SetPosition(*((wxPoint*)pos)); +} + +EWXWEXPORT(void, wxJoystickEvent_SetZPosition)(void* _obj, int zPos) +{ + ((wxJoystickEvent*)_obj)->SetZPosition(zPos); +} + +EWXWEXPORT(int, wxJoystickEvent_IsButton)(void* _obj) +{ + return (int)((wxJoystickEvent*)_obj)->IsButton(); +} + +EWXWEXPORT(int, wxJoystickEvent_IsMove)(void* _obj) +{ + return (int)((wxJoystickEvent*)_obj)->IsMove(); +} + +EWXWEXPORT(int, wxJoystickEvent_IsZMove)(void* _obj) +{ + return (int)((wxJoystickEvent*)_obj)->IsZMove(); +} + +EWXWEXPORT(int, wxJoystickEvent_ButtonDown)(void* _obj, int but) +{ + return (int)((wxJoystickEvent*)_obj)->ButtonDown(but); +} + +EWXWEXPORT(int, wxJoystickEvent_ButtonUp)(void* _obj, int but) +{ + return (int)((wxJoystickEvent*)_obj)->ButtonUp(but); +} + +EWXWEXPORT(int, wxJoystickEvent_ButtonIsDown)(void* _obj, int but) +{ + return (int)((wxJoystickEvent*)_obj)->ButtonIsDown(but); +} + +EWXWEXPORT(void, wxJoystickEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxJoystickEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(int, wxUpdateUIEvent_GetChecked)(void* _obj) +{ + return (int)((wxUpdateUIEvent*)_obj)->GetChecked(); +} + +EWXWEXPORT(int, wxUpdateUIEvent_GetEnabled)(void* _obj) +{ + return (int)((wxUpdateUIEvent*)_obj)->GetEnabled(); +} + +EWXWEXPORT(int, wxUpdateUIEvent_GetText)(void* _obj, void* _buf) +{ + wxString result =((wxUpdateUIEvent*)_obj)->GetText(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxUpdateUIEvent_GetSetText)(void* _obj) +{ + return (int)((wxUpdateUIEvent*)_obj)->GetSetText(); +} + +EWXWEXPORT(int, wxUpdateUIEvent_GetSetChecked)(void* _obj) +{ + return (int)((wxUpdateUIEvent*)_obj)->GetSetChecked(); +} + +EWXWEXPORT(int, wxUpdateUIEvent_GetSetEnabled)(void* _obj) +{ + return (int)((wxUpdateUIEvent*)_obj)->GetSetEnabled(); +} + +EWXWEXPORT(void, wxUpdateUIEvent_Check)(void* _obj, int check) +{ + ((wxUpdateUIEvent*)_obj)->Check(check != 0); +} + +EWXWEXPORT(void, wxUpdateUIEvent_Enable)(void* _obj, int enable) +{ + ((wxUpdateUIEvent*)_obj)->Enable(enable != 0); +} + +EWXWEXPORT(void, wxUpdateUIEvent_SetText)(void* _obj, char* text) +{ + ((wxUpdateUIEvent*)_obj)->SetText(text); +} + +EWXWEXPORT(void, wxUpdateUIEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxUpdateUIEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void, wxPaletteChangedEvent_SetChangedWindow)(void* _obj, void* win) +{ + ((wxPaletteChangedEvent*)_obj)->SetChangedWindow((wxWindow*) win); +} + +EWXWEXPORT(void*, wxPaletteChangedEvent_GetChangedWindow)(void* _obj) +{ + return (void*)((wxPaletteChangedEvent*)_obj)->GetChangedWindow(); +} + +EWXWEXPORT(void, wxPaletteChangedEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxPaletteChangedEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(void, wxQueryNewPaletteEvent_SetPaletteRealized)(void* _obj, int realized) +{ + ((wxQueryNewPaletteEvent*)_obj)->SetPaletteRealized(realized != 0); +} + +EWXWEXPORT(int, wxQueryNewPaletteEvent_GetPaletteRealized)(void* _obj) +{ + return (int)((wxQueryNewPaletteEvent*)_obj)->GetPaletteRealized(); +} + +EWXWEXPORT(void, wxQueryNewPaletteEvent_CopyObject)(void* _obj, void* obj) +{ +#if wxVERSION_NUMBER < 2400 + ((wxQueryNewPaletteEvent*)_obj)->CopyObject(*((wxObject*)obj)); +#endif +} + +EWXWEXPORT(int, wxNavigationKeyEvent_GetDirection)(void* _obj) +{ + return (int)((wxNavigationKeyEvent*)_obj)->GetDirection(); +} + +EWXWEXPORT(void, wxNavigationKeyEvent_SetDirection)(void* _obj, int bForward) +{ + ((wxNavigationKeyEvent*)_obj)->SetDirection(bForward != 0); +} + +EWXWEXPORT(int, wxNavigationKeyEvent_IsWindowChange)(void* _obj) +{ + return (int)((wxNavigationKeyEvent*)_obj)->IsWindowChange(); +} + +EWXWEXPORT(void, wxNavigationKeyEvent_SetWindowChange)(void* _obj, int bIs) +{ + ((wxNavigationKeyEvent*)_obj)->SetWindowChange(bIs != 0); +} + +EWXWEXPORT(int, wxNavigationKeyEvent_ShouldPropagate)(void* _obj) +{ + return (int)((wxNavigationKeyEvent*)_obj)->ShouldPropagate(); +} + +EWXWEXPORT(void, wxNavigationKeyEvent_SetPropagate)(void* _obj, int bDoIt) +{ + ((wxNavigationKeyEvent*)_obj)->SetPropagate(bDoIt != 0); +} + +EWXWEXPORT(void*, wxNavigationKeyEvent_GetCurrentFocus)(void* _obj) +{ + return (void*)((wxNavigationKeyEvent*)_obj)->GetCurrentFocus(); +} + +EWXWEXPORT(void, wxNavigationKeyEvent_SetCurrentFocus)(void* _obj, void* win) +{ + ((wxNavigationKeyEvent*)_obj)->SetCurrentFocus((wxWindow*)win); +} + +EWXWEXPORT(void*, wxWindowCreateEvent_GetWindow)(void* _obj) +{ + return (void*)((wxWindowCreateEvent*)_obj)->GetWindow(); +} + +EWXWEXPORT(void*, wxWindowDestroyEvent_GetWindow)(void* _obj) +{ + return (void*)((wxWindowDestroyEvent*)_obj)->GetWindow(); +} + +EWXWEXPORT(void, wxIdleEvent_RequestMore)(void* _obj, int needMore) +{ + ((wxIdleEvent*)_obj)->RequestMore(needMore != 0); +} + +EWXWEXPORT(int, wxIdleEvent_MoreRequested)(void* _obj) +{ + return (int)((wxIdleEvent*)_obj)->MoreRequested(); +} + +EWXWEXPORT(void, wxIdleEvent_CopyObject)(void* _obj, void* object_dest) +{ +#if wxVERSION_NUMBER < 2400 + ((wxIdleEvent*)_obj)->CopyObject(*((wxObject*) object_dest)); +#endif +} + +EWXWEXPORT(int, wxListEvent_GetCode)(void* _obj) +{ +#if wxVERSION_NUMBER < 2400 + return ((wxListEvent*)_obj)->GetCode(); +#else + return ((wxListEvent*)_obj)->GetKeyCode(); +#endif +} + +EWXWEXPORT(int, wxListEvent_GetIndex)(void* _obj) +{ + return (int)((wxListEvent*)_obj)->GetIndex(); +} + +EWXWEXPORT(int, wxListEvent_GetOldIndex)(void* _obj) +{ +#if wxVERSION_NUMBER < 2400 + return (int)((wxListEvent*)_obj)->GetOldIndex(); +#else + return 0; +#endif +} + +EWXWEXPORT(int, wxListEvent_GetOldItem)(void* _obj) +{ +#if wxVERSION_NUMBER < 2400 + return (int)((wxListEvent*)_obj)->GetOldItem(); +#else + return 0; +#endif +} + +EWXWEXPORT(int, wxListEvent_GetColumn)(void* _obj) +{ + return ((wxListEvent*)_obj)->GetColumn(); +} + +EWXWEXPORT(int, wxListEvent_Cancelled)(void* _obj) +{ +#if wxVERSION_NUMBER < 2400 + return (int)((wxListEvent*)_obj)->Cancelled(); +#else + return 0; +#endif +} + +EWXWEXPORT(void, wxListEvent_GetPoint)(void* _obj, void* x, void* y) +{ + wxPoint pos = ((wxListEvent*)_obj)->GetPoint(); + *((int*)x) = pos.x; + *((int*)y) = pos.y; +} + +EWXWEXPORT(int, wxListEvent_GetLabel)(void* _obj, void* _buf) +{ + wxString result = ((wxListEvent*)_obj)->GetLabel(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxListEvent_GetText)(void* _obj, void* _buf) +{ + wxString result = ((wxListEvent*)_obj)->GetText(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxListEvent_GetImage)(void* _obj) +{ + return ((wxListEvent*)_obj)->GetImage(); +} + +EWXWEXPORT(int, wxListEvent_GetData)(void* _obj) +{ + return (int)((wxListEvent*)_obj)->GetData(); +} + +EWXWEXPORT(int, wxListEvent_GetMask)(void* _obj) +{ + return (int)((wxListEvent*)_obj)->GetMask(); +} + +EWXWEXPORT(void, wxListEvent_GetItem)(void* _obj, void* _ref) +{ +#if wxVERSION_NUMBER < 2400 + *((wxListItem*)_ref) = ((wxListEvent*)_obj)->GetItem(); +#else + wxListItem* ret = new wxListItem(((wxListEvent*)_obj)->GetItem()); + *((void**)_ref) = (void*)ret; +#endif +} + +EWXWEXPORT(void, wxTreeEvent_GetItem)(void* _obj, void* _ref) +{ + *((wxTreeItemId*)_ref) = ((wxTreeEvent*)_obj)->GetItem(); +} + +EWXWEXPORT(void, wxTreeEvent_GetOldItem)(void* _obj, void* _ref) +{ + *((wxTreeItemId*)_ref) = ((wxTreeEvent*)_obj)->GetOldItem(); +} + +EWXWEXPORT(void, wxTreeEvent_GetPoint)(void* _obj, void* x, void* y) +{ + wxPoint pos = ((wxTreeEvent*)_obj)->GetPoint(); + *((int*)x) = pos.x; + *((int*)y) = pos.y; +} + +EWXWEXPORT(int, wxTreeEvent_GetCode)(void* _obj) +{ +#if wxVERSION_NUMBER < 2400 + return ((wxTreeEvent*)_obj)->GetCode(); +#else + return ((wxTreeEvent*)_obj)->GetKeyCode(); +#endif +} + +EWXWEXPORT(int, wxTreeEvent_GetLabel)(void* _obj, void* _buf) +{ + wxString result = ((wxTreeEvent*)_obj)->GetLabel(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxSpinEvent_GetPosition)(void* _obj) +{ + return ((wxSpinEvent*)_obj)->GetPosition(); +} + +EWXWEXPORT(void, wxSpinEvent_SetPosition)(void* _obj, int pos) +{ + ((wxSpinEvent*)_obj)->SetPosition(pos); +} + +EWXWEXPORT(int, wxTimerEvent_GetInterval)(void* _obj) +{ + return ((wxTimerEvent*)_obj)->GetInterval(); +} + +EWXWEXPORT(int, wxCalendarEvent_GetWeekDay)(void* _obj) +{ + return ((wxCalendarEvent*)_obj)->GetWeekDay(); +} + +EWXWEXPORT(void, wxCalendarEvent_GetDate)(void* _obj, void* _dte) +{ + *((wxDateTime*)_dte) = ((wxCalendarEvent*)_obj)->GetDate(); +} + + +EWXWEXPORT(int, wxScrollEvent_GetOrientation)(void* _obj) +{ + return ((wxScrollEvent*)_obj)->GetOrientation(); +} + +EWXWEXPORT(int, wxScrollEvent_GetPosition)(void* _obj) +{ + return ((wxScrollEvent*)_obj)->GetPosition(); +} + +#if wxVERSION_NUMBER >= 2400 + +EWXWEXPORT(void,wxHelpEvent_GetPosition)(void* _obj, void* x, void* y) +{ + wxPoint pos = ((wxHelpEvent*)_obj)->GetPosition(); + *((int*)x) = pos.x; + *((int*)y) = pos.y; +} + +EWXWEXPORT(void,wxHelpEvent_SetPosition)(void* _obj, int x, int y) +{ + ((wxHelpEvent*)_obj)->SetPosition(wxPoint(x, y)); +} + +EWXWEXPORT(int,wxHelpEvent_GetLink)(void* _obj, void* _ref) +{ + wxString tmp =((wxHelpEvent*)_obj)->GetLink(); + if (_ref) + memcpy (_ref, tmp.c_str(), tmp.Length()); + return tmp.Length(); +} + +EWXWEXPORT(void,wxHelpEvent_SetLink)(void* _obj, void* link) +{ + ((wxHelpEvent*)_obj)->SetLink((char*)link); +} + +EWXWEXPORT(int,wxHelpEvent_GetTarget)(void* _obj, void* _ref) +{ + wxString tmp =((wxHelpEvent*)_obj)->GetTarget(); + if (_ref) + memcpy (_ref, tmp.c_str(), tmp.Length()); + return tmp.Length(); +} + +EWXWEXPORT(void,wxHelpEvent_SetTarget)(void* _obj, void* target) +{ + ((wxHelpEvent*)_obj)->SetTarget((char*)target); +} + + +EWXWEXPORT(int,expEVT_COMMAND_BUTTON_CLICKED)() +{ + return (int)wxEVT_COMMAND_BUTTON_CLICKED; +} + +EWXWEXPORT(int,expEVT_COMMAND_CHECKBOX_CLICKED)() +{ + return (int)wxEVT_COMMAND_CHECKBOX_CLICKED; +} + +EWXWEXPORT(int,expEVT_COMMAND_CHOICE_SELECTED)() +{ + return (int)wxEVT_COMMAND_CHOICE_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_LISTBOX_SELECTED)() +{ + return (int)wxEVT_COMMAND_LISTBOX_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_LISTBOX_DOUBLECLICKED)() +{ + return (int)wxEVT_COMMAND_LISTBOX_DOUBLECLICKED; +} + +EWXWEXPORT(int,expEVT_COMMAND_CHECKLISTBOX_TOGGLED)() +{ + return (int)wxEVT_COMMAND_CHECKLISTBOX_TOGGLED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TEXT_UPDATED)() +{ + return (int)wxEVT_COMMAND_TEXT_UPDATED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TEXT_ENTER)() +{ + return (int)wxEVT_COMMAND_TEXT_ENTER; +} + +EWXWEXPORT(int,expEVT_COMMAND_MENU_SELECTED)() +{ + return (int)wxEVT_COMMAND_MENU_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TOOL_CLICKED)() +{ + return (int)wxEVT_COMMAND_TOOL_CLICKED; +} + +EWXWEXPORT(int,expEVT_COMMAND_SLIDER_UPDATED)() +{ + return (int)wxEVT_COMMAND_SLIDER_UPDATED; +} + +EWXWEXPORT(int,expEVT_COMMAND_RADIOBOX_SELECTED)() +{ + return (int)wxEVT_COMMAND_RADIOBOX_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_RADIOBUTTON_SELECTED)() +{ + return (int)wxEVT_COMMAND_RADIOBUTTON_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_SCROLLBAR_UPDATED)() +{ + return (int)wxEVT_COMMAND_SCROLLBAR_UPDATED; +} + +EWXWEXPORT(int,expEVT_COMMAND_VLBOX_SELECTED)() +{ + return (int)wxEVT_COMMAND_VLBOX_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_COMBOBOX_SELECTED)() +{ + return (int)wxEVT_COMMAND_COMBOBOX_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TOOL_RCLICKED)() +{ + return (int)wxEVT_COMMAND_TOOL_RCLICKED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TOOL_ENTER)() +{ + return (int)wxEVT_COMMAND_TOOL_ENTER; +} + +EWXWEXPORT(int,expEVT_COMMAND_SPINCTRL_UPDATED)() +{ + return (int)wxEVT_COMMAND_SPINCTRL_UPDATED; +} + +EWXWEXPORT(int,expEVT_SOCKET)() +{ + return (int)wxEVT_SOCKET; +} + +EWXWEXPORT(int,expEVT_TIMER )() +{ + return (int)wxEVT_TIMER ; +} + +EWXWEXPORT(int,expEVT_LEFT_DOWN)() +{ + return (int)wxEVT_LEFT_DOWN; +} + +EWXWEXPORT(int,expEVT_LEFT_UP)() +{ + return (int)wxEVT_LEFT_UP; +} + +EWXWEXPORT(int,expEVT_MIDDLE_DOWN)() +{ + return (int)wxEVT_MIDDLE_DOWN; +} + +EWXWEXPORT(int,expEVT_MIDDLE_UP)() +{ + return (int)wxEVT_MIDDLE_UP; +} + +EWXWEXPORT(int,expEVT_RIGHT_DOWN)() +{ + return (int)wxEVT_RIGHT_DOWN; +} + +EWXWEXPORT(int,expEVT_RIGHT_UP)() +{ + return (int)wxEVT_RIGHT_UP; +} + +EWXWEXPORT(int,expEVT_MOTION)() +{ + return (int)wxEVT_MOTION; +} + +EWXWEXPORT(int,expEVT_ENTER_WINDOW)() +{ + return (int)wxEVT_ENTER_WINDOW; +} + +EWXWEXPORT(int,expEVT_LEAVE_WINDOW)() +{ + return (int)wxEVT_LEAVE_WINDOW; +} + +EWXWEXPORT(int,expEVT_LEFT_DCLICK)() +{ + return (int)wxEVT_LEFT_DCLICK; +} + +EWXWEXPORT(int,expEVT_MIDDLE_DCLICK)() +{ + return (int)wxEVT_MIDDLE_DCLICK; +} + +EWXWEXPORT(int,expEVT_RIGHT_DCLICK)() +{ + return (int)wxEVT_RIGHT_DCLICK; +} + +EWXWEXPORT(int,expEVT_SET_FOCUS)() +{ + return (int)wxEVT_SET_FOCUS; +} + +EWXWEXPORT(int,expEVT_KILL_FOCUS)() +{ + return (int)wxEVT_KILL_FOCUS; +} + +EWXWEXPORT(int,expEVT_NC_LEFT_DOWN)() +{ + return (int)wxEVT_NC_LEFT_DOWN; +} + +EWXWEXPORT(int,expEVT_NC_LEFT_UP)() +{ + return (int)wxEVT_NC_LEFT_UP; +} + +EWXWEXPORT(int,expEVT_NC_MIDDLE_DOWN)() +{ + return (int)wxEVT_NC_MIDDLE_DOWN; +} + +EWXWEXPORT(int,expEVT_NC_MIDDLE_UP)() +{ + return (int)wxEVT_NC_MIDDLE_UP; +} + +EWXWEXPORT(int,expEVT_NC_RIGHT_DOWN)() +{ + return (int)wxEVT_NC_RIGHT_DOWN; +} + +EWXWEXPORT(int,expEVT_NC_RIGHT_UP)() +{ + return (int)wxEVT_NC_RIGHT_UP; +} + +EWXWEXPORT(int,expEVT_NC_MOTION)() +{ + return (int)wxEVT_NC_MOTION; +} + +EWXWEXPORT(int,expEVT_NC_ENTER_WINDOW)() +{ + return (int)wxEVT_NC_ENTER_WINDOW; +} + +EWXWEXPORT(int,expEVT_NC_LEAVE_WINDOW)() +{ + return (int)wxEVT_NC_LEAVE_WINDOW; +} + +EWXWEXPORT(int,expEVT_NC_LEFT_DCLICK)() +{ + return (int)wxEVT_NC_LEFT_DCLICK; +} + +EWXWEXPORT(int,expEVT_NC_MIDDLE_DCLICK)() +{ + return (int)wxEVT_NC_MIDDLE_DCLICK; +} + +EWXWEXPORT(int,expEVT_NC_RIGHT_DCLICK)() +{ + return (int)wxEVT_NC_RIGHT_DCLICK; +} + +EWXWEXPORT(int,expEVT_CHAR)() +{ + return (int)wxEVT_CHAR; +} + +EWXWEXPORT(int,expEVT_CHAR_HOOK)() +{ + return (int)wxEVT_CHAR_HOOK; +} + +EWXWEXPORT(int,expEVT_NAVIGATION_KEY)() +{ + return (int)wxEVT_NAVIGATION_KEY; +} + +EWXWEXPORT(int,expEVT_KEY_DOWN)() +{ + return (int)wxEVT_KEY_DOWN; +} + +EWXWEXPORT(int,expEVT_KEY_UP)() +{ + return (int)wxEVT_KEY_UP; +} + +EWXWEXPORT(int,expEVT_SET_CURSOR)() +{ + return (int)wxEVT_SET_CURSOR; +} + +EWXWEXPORT(int,expEVT_SCROLL_TOP)() +{ + return (int)wxEVT_SCROLL_TOP; +} + +EWXWEXPORT(int,expEVT_SCROLL_BOTTOM)() +{ + return (int)wxEVT_SCROLL_BOTTOM; +} + +EWXWEXPORT(int,expEVT_SCROLL_LINEUP)() +{ + return (int)wxEVT_SCROLL_LINEUP; +} + +EWXWEXPORT(int,expEVT_SCROLL_LINEDOWN)() +{ + return (int)wxEVT_SCROLL_LINEDOWN; +} + +EWXWEXPORT(int,expEVT_SCROLL_PAGEUP)() +{ + return (int)wxEVT_SCROLL_PAGEUP; +} + +EWXWEXPORT(int,expEVT_SCROLL_PAGEDOWN)() +{ + return (int)wxEVT_SCROLL_PAGEDOWN; +} + +EWXWEXPORT(int,expEVT_SCROLL_THUMBTRACK)() +{ + return (int)wxEVT_SCROLL_THUMBTRACK; +} + +EWXWEXPORT(int,expEVT_SCROLL_THUMBRELEASE)() +{ + return (int)wxEVT_SCROLL_THUMBRELEASE; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_TOP)() +{ + return (int)wxEVT_SCROLLWIN_TOP; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_BOTTOM)() +{ + return (int)wxEVT_SCROLLWIN_BOTTOM; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_LINEUP)() +{ + return (int)wxEVT_SCROLLWIN_LINEUP; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_LINEDOWN)() +{ + return (int)wxEVT_SCROLLWIN_LINEDOWN; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_PAGEUP)() +{ + return (int)wxEVT_SCROLLWIN_PAGEUP; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_PAGEDOWN)() +{ + return (int)wxEVT_SCROLLWIN_PAGEDOWN; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_THUMBTRACK)() +{ + return (int)wxEVT_SCROLLWIN_THUMBTRACK; +} + +EWXWEXPORT(int,expEVT_SCROLLWIN_THUMBRELEASE)() +{ + return (int)wxEVT_SCROLLWIN_THUMBRELEASE; +} + +EWXWEXPORT(int,expEVT_SIZE)() +{ + return (int)wxEVT_SIZE; +} + +EWXWEXPORT(int,expEVT_MOVE)() +{ + return (int)wxEVT_MOVE; +} + +EWXWEXPORT(int,expEVT_CLOSE_WINDOW)() +{ + return (int)wxEVT_CLOSE_WINDOW; +} + +EWXWEXPORT(int,expEVT_END_SESSION)() +{ + return (int)wxEVT_END_SESSION; +} + +EWXWEXPORT(int,expEVT_QUERY_END_SESSION)() +{ + return (int)wxEVT_QUERY_END_SESSION; +} + +EWXWEXPORT(int,expEVT_ACTIVATE_APP)() +{ + return (int)wxEVT_ACTIVATE_APP; +} + +EWXWEXPORT(int,expEVT_POWER)() +{ + return (int)wxEVT_POWER; +} + +EWXWEXPORT(int,expEVT_ACTIVATE)() +{ + return (int)wxEVT_ACTIVATE; +} + +EWXWEXPORT(int,expEVT_CREATE)() +{ + return (int)wxEVT_CREATE; +} + +EWXWEXPORT(int,expEVT_DESTROY)() +{ + return (int)wxEVT_DESTROY; +} + +EWXWEXPORT(int,expEVT_SHOW)() +{ + return (int)wxEVT_SHOW; +} + +EWXWEXPORT(int,expEVT_ICONIZE)() +{ + return (int)wxEVT_ICONIZE; +} + +EWXWEXPORT(int,expEVT_MAXIMIZE)() +{ + return (int)wxEVT_MAXIMIZE; +} + +EWXWEXPORT(int,expEVT_MOUSE_CAPTURE_CHANGED)() +{ + return (int)wxEVT_MOUSE_CAPTURE_CHANGED; +} + +EWXWEXPORT(int,expEVT_PAINT)() +{ + return (int)wxEVT_PAINT; +} + +EWXWEXPORT(int,expEVT_ERASE_BACKGROUND)() +{ + return (int)wxEVT_ERASE_BACKGROUND; +} + +EWXWEXPORT(int,expEVT_NC_PAINT)() +{ + return (int)wxEVT_NC_PAINT; +} + +EWXWEXPORT(int,expEVT_PAINT_ICON)() +{ + return (int)wxEVT_PAINT_ICON; +} + +EWXWEXPORT(int,expEVT_MENU_CHAR)() +{ + return -1; +} + +EWXWEXPORT(int,expEVT_MENU_INIT)() +{ + return -1; +} + +EWXWEXPORT(int,expEVT_MENU_HIGHLIGHT)() +{ + return (int)wxEVT_MENU_HIGHLIGHT; +} + +EWXWEXPORT(int,expEVT_POPUP_MENU_INIT)() +{ + return -1; +} + +EWXWEXPORT(int,expEVT_CONTEXT_MENU)() +{ + return (int)wxEVT_CONTEXT_MENU; +} + +EWXWEXPORT(int,expEVT_SYS_COLOUR_CHANGED)() +{ + return (int)wxEVT_SYS_COLOUR_CHANGED; +} + +EWXWEXPORT(int,expEVT_SETTING_CHANGED)() +{ + return (int)wxEVT_SETTING_CHANGED; +} + +EWXWEXPORT(int,expEVT_QUERY_NEW_PALETTE)() +{ + return (int)wxEVT_QUERY_NEW_PALETTE; +} + +EWXWEXPORT(int,expEVT_PALETTE_CHANGED)() +{ + return (int)wxEVT_PALETTE_CHANGED; +} + +EWXWEXPORT(int,expEVT_JOY_BUTTON_DOWN)() +{ + return (int)wxEVT_JOY_BUTTON_DOWN; +} + +EWXWEXPORT(int,expEVT_JOY_BUTTON_UP)() +{ + return (int)wxEVT_JOY_BUTTON_UP; +} + +EWXWEXPORT(int,expEVT_JOY_MOVE)() +{ + return (int)wxEVT_JOY_MOVE; +} + +EWXWEXPORT(int,expEVT_JOY_ZMOVE)() +{ + return (int)wxEVT_JOY_ZMOVE; +} + +EWXWEXPORT(int,expEVT_DROP_FILES)() +{ + return (int)wxEVT_DROP_FILES; +} + +EWXWEXPORT(int,expEVT_DRAW_ITEM)() +{ + return (int)wxEVT_DRAW_ITEM; +} + +EWXWEXPORT(int,expEVT_MEASURE_ITEM)() +{ + return (int)wxEVT_MEASURE_ITEM; +} + +EWXWEXPORT(int,expEVT_COMPARE_ITEM)() +{ + return (int)wxEVT_COMPARE_ITEM; +} + +EWXWEXPORT(int,expEVT_INIT_DIALOG)() +{ + return (int)wxEVT_INIT_DIALOG; +} + +EWXWEXPORT(int,expEVT_IDLE)() +{ + return (int)wxEVT_IDLE; +} + +EWXWEXPORT(int,expEVT_UPDATE_UI)() +{ + return (int)wxEVT_UPDATE_UI; +} + +EWXWEXPORT(int,expEVT_END_PROCESS)() +{ + return (int)wxEVT_END_PROCESS; +} + +EWXWEXPORT(int,expEVT_DIALUP_CONNECTED)() +{ + return (int)wxEVT_DIALUP_CONNECTED; +} + +EWXWEXPORT(int,expEVT_DIALUP_DISCONNECTED)() +{ + return (int)wxEVT_DIALUP_DISCONNECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_LEFT_CLICK)() +{ + return (int)wxEVT_COMMAND_LEFT_CLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_LEFT_DCLICK)() +{ + return (int)wxEVT_COMMAND_LEFT_DCLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_RIGHT_CLICK)() +{ + return (int)wxEVT_COMMAND_RIGHT_CLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_RIGHT_DCLICK)() +{ + return (int)wxEVT_COMMAND_RIGHT_DCLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_SET_FOCUS)() +{ + return (int)wxEVT_COMMAND_SET_FOCUS; +} + +EWXWEXPORT(int,expEVT_COMMAND_KILL_FOCUS)() +{ + return (int)wxEVT_COMMAND_KILL_FOCUS; +} + +EWXWEXPORT(int,expEVT_COMMAND_ENTER)() +{ + return (int)wxEVT_COMMAND_ENTER; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_BEGIN_DRAG)() +{ + return (int)wxEVT_COMMAND_TREE_BEGIN_DRAG; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_BEGIN_RDRAG)() +{ + return (int)wxEVT_COMMAND_TREE_BEGIN_RDRAG; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)() +{ + return (int)wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_END_LABEL_EDIT)() +{ + return (int)wxEVT_COMMAND_TREE_END_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_DELETE_ITEM)() +{ + return (int)wxEVT_COMMAND_TREE_DELETE_ITEM; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_GET_INFO)() +{ + return (int)wxEVT_COMMAND_TREE_GET_INFO; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_SET_INFO)() +{ + return (int)wxEVT_COMMAND_TREE_SET_INFO; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_ITEM_EXPANDED)() +{ + return (int)wxEVT_COMMAND_TREE_ITEM_EXPANDED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_ITEM_EXPANDING)() +{ + return (int)wxEVT_COMMAND_TREE_ITEM_EXPANDING; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_ITEM_COLLAPSED)() +{ + return (int)wxEVT_COMMAND_TREE_ITEM_COLLAPSED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_ITEM_COLLAPSING)() +{ + return (int)wxEVT_COMMAND_TREE_ITEM_COLLAPSING; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_SEL_CHANGED)() +{ + return (int)wxEVT_COMMAND_TREE_SEL_CHANGED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_SEL_CHANGING)() +{ + return (int)wxEVT_COMMAND_TREE_SEL_CHANGING; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_KEY_DOWN)() +{ + return (int)wxEVT_COMMAND_TREE_KEY_DOWN; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_ITEM_ACTIVATED)() +{ + return (int)wxEVT_COMMAND_TREE_ITEM_ACTIVATED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)() +{ + return (int)wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)() +{ + return (int)wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_TREE_END_DRAG)() +{ + return (int)wxEVT_COMMAND_TREE_END_DRAG; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_BEGIN_DRAG)() +{ + return (int)wxEVT_COMMAND_LIST_BEGIN_DRAG; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_BEGIN_RDRAG)() +{ + return (int)wxEVT_COMMAND_LIST_BEGIN_RDRAG; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)() +{ + return (int)wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_END_LABEL_EDIT)() +{ + return (int)wxEVT_COMMAND_LIST_END_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_DELETE_ITEM)() +{ + return (int)wxEVT_COMMAND_LIST_DELETE_ITEM; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_DELETE_ALL_ITEMS)() +{ + return (int)wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_GET_INFO)() +{ + return (int)wxEVT_COMMAND_LIST_GET_INFO; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_SET_INFO)() +{ + return (int)wxEVT_COMMAND_LIST_SET_INFO; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_ITEM_SELECTED)() +{ + return (int)wxEVT_COMMAND_LIST_ITEM_SELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_ITEM_DESELECTED)() +{ + return (int)wxEVT_COMMAND_LIST_ITEM_DESELECTED; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_KEY_DOWN)() +{ + return (int)wxEVT_COMMAND_LIST_KEY_DOWN; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_INSERT_ITEM)() +{ + return (int)wxEVT_COMMAND_LIST_INSERT_ITEM; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_COL_CLICK)() +{ + return (int)wxEVT_COMMAND_LIST_COL_CLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)() +{ + return (int)wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)() +{ + return (int)wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_ITEM_ACTIVATED)() +{ + return (int)wxEVT_COMMAND_LIST_ITEM_ACTIVATED; +} + +EWXWEXPORT(int,expEVT_COMMAND_LIST_ITEM_FOCUSED)() +{ + return (int)wxEVT_COMMAND_LIST_ITEM_FOCUSED; +} + +EWXWEXPORT(int,expEVT_COMMAND_TAB_SEL_CHANGED)() +{ +#ifdef __WXGTK__ + return -1; +#else + return (int)wxEVT_COMMAND_TAB_SEL_CHANGED; +#endif +} + +EWXWEXPORT(int,expEVT_COMMAND_TAB_SEL_CHANGING)() +{ +#ifdef __WXGTK__ + return -1; +#else + return (int)wxEVT_COMMAND_TAB_SEL_CHANGING; +#endif +} + +EWXWEXPORT(int,expEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)() +{ + return (int)wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED; +} + +EWXWEXPORT(int,expEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)() +{ + return (int)wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING; +} + +EWXWEXPORT(int,expEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)() +{ + return (int)wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED; +} + +EWXWEXPORT(int,expEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)() +{ + return (int)wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING; +} + +EWXWEXPORT(int,expEVT_COMMAND_SPLITTER_DOUBLECLICKED)() +{ + return (int)wxEVT_COMMAND_SPLITTER_DOUBLECLICKED; +} + +EWXWEXPORT(int,expEVT_COMMAND_SPLITTER_UNSPLIT)() +{ + return (int)wxEVT_COMMAND_SPLITTER_UNSPLIT; +} + +EWXWEXPORT(int,expEVT_WIZARD_PAGE_CHANGED)() +{ + return (int)wxEVT_WIZARD_PAGE_CHANGED; +} + +EWXWEXPORT(int,expEVT_WIZARD_PAGE_CHANGING)() +{ + return (int)wxEVT_WIZARD_PAGE_CHANGING; +} + +EWXWEXPORT(int,expEVT_WIZARD_CANCEL)() +{ + return (int)wxEVT_WIZARD_CANCEL; +} + +EWXWEXPORT(int,expEVT_CALENDAR_SEL_CHANGED)() +{ + return (int)wxEVT_CALENDAR_SEL_CHANGED; +} + +EWXWEXPORT(int,expEVT_CALENDAR_DAY_CHANGED)() +{ + return (int)wxEVT_CALENDAR_DAY_CHANGED; +} + +EWXWEXPORT(int,expEVT_CALENDAR_MONTH_CHANGED)() +{ + return (int)wxEVT_CALENDAR_MONTH_CHANGED; +} + +EWXWEXPORT(int,expEVT_CALENDAR_YEAR_CHANGED)() +{ + return (int)wxEVT_CALENDAR_YEAR_CHANGED; +} + +EWXWEXPORT(int,expEVT_CALENDAR_DOUBLECLICKED)() +{ + return (int)wxEVT_CALENDAR_DOUBLECLICKED; +} + +EWXWEXPORT(int,expEVT_CALENDAR_WEEKDAY_CLICKED)() +{ + return (int)wxEVT_CALENDAR_WEEKDAY_CLICKED; +} + +EWXWEXPORT(int,expEVT_PLOT_SEL_CHANGING)() +{ + return (int)wxEVT_PLOT_SEL_CHANGING; +} + +EWXWEXPORT(int,expEVT_PLOT_SEL_CHANGED)() +{ + return (int)wxEVT_PLOT_SEL_CHANGED; +} + +EWXWEXPORT(int,expEVT_PLOT_CLICKED)() +{ + return (int)wxEVT_PLOT_CLICKED; +} + +EWXWEXPORT(int,expEVT_PLOT_DOUBLECLICKED)() +{ + return (int)wxEVT_PLOT_DOUBLECLICKED; +} + +EWXWEXPORT(int,expEVT_PLOT_ZOOM_IN)() +{ + return (int)wxEVT_PLOT_ZOOM_IN; +} + +EWXWEXPORT(int,expEVT_PLOT_ZOOM_OUT)() +{ + return (int)wxEVT_PLOT_ZOOM_OUT; +} + +EWXWEXPORT(int,expEVT_PLOT_VALUE_SEL_CREATING)() +{ + return (int)wxEVT_PLOT_VALUE_SEL_CREATING; +} + +EWXWEXPORT(int,expEVT_PLOT_VALUE_SEL_CREATED)() +{ + return (int)wxEVT_PLOT_VALUE_SEL_CREATED; +} + +EWXWEXPORT(int,expEVT_PLOT_VALUE_SEL_CHANGING)() +{ + return (int)wxEVT_PLOT_VALUE_SEL_CHANGING; +} + +EWXWEXPORT(int,expEVT_PLOT_VALUE_SEL_CHANGED)() +{ + return (int)wxEVT_PLOT_VALUE_SEL_CHANGED; +} + +EWXWEXPORT(int,expEVT_PLOT_AREA_SEL_CREATING)() +{ + return (int)wxEVT_PLOT_AREA_SEL_CREATING; +} + +EWXWEXPORT(int,expEVT_PLOT_AREA_SEL_CREATED)() +{ + return (int)wxEVT_PLOT_AREA_SEL_CREATED; +} + +EWXWEXPORT(int,expEVT_PLOT_AREA_SEL_CHANGING)() +{ + return (int)wxEVT_PLOT_AREA_SEL_CHANGING; +} + +EWXWEXPORT(int,expEVT_PLOT_AREA_SEL_CHANGED)() +{ + return (int)wxEVT_PLOT_AREA_SEL_CHANGED; +} + +EWXWEXPORT(int,expEVT_PLOT_BEGIN_X_LABEL_EDIT)() +{ + return (int)wxEVT_PLOT_BEGIN_X_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_PLOT_END_X_LABEL_EDIT)() +{ + return (int)wxEVT_PLOT_END_X_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_PLOT_BEGIN_Y_LABEL_EDIT)() +{ + return (int)wxEVT_PLOT_BEGIN_Y_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_PLOT_END_Y_LABEL_EDIT)() +{ + return (int)wxEVT_PLOT_END_Y_LABEL_EDIT; +} + +EWXWEXPORT(int,expEVT_PLOT_BEGIN_TITLE_EDIT)() +{ + return (int)wxEVT_PLOT_BEGIN_TITLE_EDIT; +} + +EWXWEXPORT(int,expEVT_PLOT_END_TITLE_EDIT)() +{ + return (int)wxEVT_PLOT_END_TITLE_EDIT; +} + +EWXWEXPORT(int,expEVT_PLOT_AREA_CREATE)() +{ + return (int)wxEVT_PLOT_AREA_CREATE; +} + +EWXWEXPORT(int,expEVT_USER_FIRST)() +{ + return (int)wxEVT_USER_FIRST; +} + +EWXWEXPORT(int,expEVT_DYNAMIC_SASH_SPLIT)() +{ + return (int)wxEVT_DYNAMIC_SASH_SPLIT; +} + +EWXWEXPORT(int,expEVT_DYNAMIC_SASH_UNIFY)() +{ + return (int)wxEVT_DYNAMIC_SASH_UNIFY; +} + +EWXWEXPORT(int,expEVT_HELP)() +{ + return (int)wxEVT_HELP; +} + +EWXWEXPORT(int,expEVT_DETAILED_HELP)() +{ + return (int)wxEVT_DETAILED_HELP; +} + +EWXWEXPORT(int,expEVT_GRID_CELL_LEFT_CLICK)() +{ + return (int)wxEVT_GRID_CELL_LEFT_CLICK; +} + +EWXWEXPORT(int,expEVT_GRID_CELL_RIGHT_CLICK)() +{ + return (int)wxEVT_GRID_CELL_RIGHT_CLICK; +} + +EWXWEXPORT(int,expEVT_GRID_CELL_LEFT_DCLICK)() +{ + return (int)wxEVT_GRID_CELL_LEFT_DCLICK; +} + +EWXWEXPORT(int,expEVT_GRID_CELL_RIGHT_DCLICK)() +{ + return (int)wxEVT_GRID_CELL_RIGHT_DCLICK; +} + +EWXWEXPORT(int,expEVT_GRID_LABEL_LEFT_CLICK)() +{ + return (int)wxEVT_GRID_LABEL_LEFT_CLICK; +} + +EWXWEXPORT(int,expEVT_GRID_LABEL_RIGHT_CLICK)() +{ + return (int)wxEVT_GRID_LABEL_RIGHT_CLICK; +} + +EWXWEXPORT(int,expEVT_GRID_LABEL_LEFT_DCLICK)() +{ + return (int)wxEVT_GRID_LABEL_LEFT_DCLICK; +} + +EWXWEXPORT(int,expEVT_GRID_LABEL_RIGHT_DCLICK)() +{ + return (int)wxEVT_GRID_LABEL_RIGHT_DCLICK; +} + +EWXWEXPORT(int,expEVT_GRID_ROW_SIZE)() +{ + return (int)wxEVT_GRID_ROW_SIZE; +} + +EWXWEXPORT(int,expEVT_GRID_COL_SIZE)() +{ + return (int)wxEVT_GRID_COL_SIZE; +} + +EWXWEXPORT(int,expEVT_GRID_RANGE_SELECT)() +{ + return (int)wxEVT_GRID_RANGE_SELECT; +} + +EWXWEXPORT(int,expEVT_GRID_CELL_CHANGE)() +{ + return (int)wxEVT_GRID_CELL_CHANGE; +} + +EWXWEXPORT(int,expEVT_GRID_SELECT_CELL)() +{ + return (int)wxEVT_GRID_SELECT_CELL; +} + +EWXWEXPORT(int,expEVT_GRID_EDITOR_SHOWN)() +{ + return (int)wxEVT_GRID_EDITOR_SHOWN; +} + +EWXWEXPORT(int,expEVT_GRID_EDITOR_HIDDEN)() +{ + return (int)wxEVT_GRID_EDITOR_HIDDEN; +} + +EWXWEXPORT(int,expEVT_GRID_EDITOR_CREATED)() +{ + return (int)wxEVT_GRID_EDITOR_CREATED; +} + +#endif + +} diff --git a/wxc/src/ewxw/eljfiledialog.cpp b/wxc/src/ewxw/eljfiledialog.cpp new file mode 100644 index 00000000..ca4aba2f --- /dev/null +++ b/wxc/src/ewxw/eljfiledialog.cpp @@ -0,0 +1,115 @@ +#include "wrapper.h" + +extern "C" +{ + +EWXWEXPORT(void*, wxFileDialog_Create) (void* _prt, void* _msg, void* _dir, void* _fle, void* _wcd, int _lft, int _top, int _stl) +{ + return (void*) new wxFileDialog ((wxWindow*)_prt, (char*)_msg, (char*) _dir, (char*) _fle, (char*) _wcd, _stl, wxPoint(_lft, _top)); +} + +EWXWEXPORT(void, wxFileDialog_SetMessage)(void* _obj, void* message) +{ + ((wxFileDialog*)_obj)->SetMessage((char*)message); +} + +EWXWEXPORT(void, wxFileDialog_SetPath)(void* _obj, void* path) +{ + ((wxFileDialog*)_obj)->SetPath((char*)path); +} + +EWXWEXPORT(void, wxFileDialog_SetDirectory)(void* _obj, void* dir) +{ + ((wxFileDialog*)_obj)->SetDirectory((char*)dir); +} + +EWXWEXPORT(void, wxFileDialog_SetFilename)(void* _obj, void* name) +{ + ((wxFileDialog*)_obj)->SetFilename((char*)name); +} + +EWXWEXPORT(void, wxFileDialog_SetWildcard)(void* _obj, void* wildCard) +{ + ((wxFileDialog*)_obj)->SetWildcard((char*)wildCard); +} + +EWXWEXPORT(void, wxFileDialog_SetStyle)(void* _obj, int style) +{ + ((wxFileDialog*)_obj)->SetStyle((long)style); +} + +EWXWEXPORT(void, wxFileDialog_SetFilterIndex)(void* _obj, int filterIndex) +{ + ((wxFileDialog*)_obj)->SetFilterIndex(filterIndex); +} + +EWXWEXPORT(int, wxFileDialog_GetMessage)(void* _obj, void* _buf) +{ + wxString result = ((wxFileDialog*)_obj)->GetMessage(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFileDialog_GetPath)(void* _obj, void* _buf) +{ + wxString result = ((wxFileDialog*)_obj)->GetPath(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFileDialog_GetPaths)(void* _obj, void* paths) +{ + wxArrayString arr; + ((wxFileDialog*)_obj)->GetPaths(arr); + if (paths) + { + for (unsigned int i = 0; i < arr.GetCount(); i++) + ((const char**)paths)[i] = strdup (arr.Item(i).c_str()); + } + return arr.GetCount(); +} + +EWXWEXPORT(int, wxFileDialog_GetDirectory)(void* _obj, void* _buf) +{ + wxString result =((wxFileDialog*)_obj)->GetDirectory(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFileDialog_GetFilename)(void* _obj, void* _buf) +{ + wxString result =((wxFileDialog*)_obj)->GetFilename(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFileDialog_GetFilenames)(void* _obj, void* paths) +{ + wxArrayString arr; + ((wxFileDialog*)_obj)->GetFilenames(arr); + if (paths) + { + for (unsigned int i = 0; i < arr.GetCount(); i++) + ((const char**)paths)[i] = strdup (arr.Item(i).c_str()); + } + return arr.GetCount(); +} + +EWXWEXPORT(int, wxFileDialog_GetWildcard)(void* _obj, void* _buf) +{ + wxString result =((wxFileDialog*)_obj)->GetWildcard(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFileDialog_GetStyle)(void* _obj) +{ + return (int)((wxFileDialog*)_obj)->GetStyle(); +} + +EWXWEXPORT(int, wxFileDialog_GetFilterIndex)(void* _obj) +{ + return ((wxFileDialog*)_obj)->GetFilterIndex(); +} + +} diff --git a/wxc/src/ewxw/eljfilehist.cpp b/wxc/src/ewxw/eljfilehist.cpp new file mode 100644 index 00000000..1b714f3c --- /dev/null +++ b/wxc/src/ewxw/eljfilehist.cpp @@ -0,0 +1,89 @@ +#include "wrapper.h" +#include "wx/docview.h" + +extern "C" +{ + +EWXWEXPORT(void*,wxFileHistory_Create)(int maxFiles) +{ + return (void*)new wxFileHistory(maxFiles); +} + +EWXWEXPORT(void,wxFileHistory_Delete)(void* _obj) +{ + delete (wxFileHistory*)_obj; +} + +EWXWEXPORT(void,wxFileHistory_AddFileToHistory)(void* _obj, void* file) +{ + ((wxFileHistory*)_obj)->AddFileToHistory((const char*)file); +} + +EWXWEXPORT(void,wxFileHistory_RemoveFileFromHistory)(void* _obj, int i) +{ + ((wxFileHistory*)_obj)->RemoveFileFromHistory(i); +} + +EWXWEXPORT(int,wxFileHistory_GetMaxFiles)(void* _obj) +{ + return ((wxFileHistory*)_obj)->GetMaxFiles(); +} + +EWXWEXPORT(void,wxFileHistory_UseMenu)(void* _obj, void* menu) +{ + ((wxFileHistory*)_obj)->UseMenu((wxMenu*)menu); +} + +EWXWEXPORT(void,wxFileHistory_RemoveMenu)(void* _obj, void* menu) +{ + ((wxFileHistory*)_obj)->RemoveMenu((wxMenu*)menu); +} + +EWXWEXPORT(void,wxFileHistory_Load)(void* _obj, void* config) +{ + ((wxFileHistory*)_obj)->Load(*((wxConfigBase*)config)); +} + +EWXWEXPORT(void,wxFileHistory_Save)(void* _obj, void* config) +{ + ((wxFileHistory*)_obj)->Save(*((wxConfigBase*)config)); +} + +EWXWEXPORT(void,wxFileHistory_AddFilesToMenu)(void* _obj, void* menu) +{ + if (menu) + ((wxFileHistory*)_obj)->AddFilesToMenu((wxMenu*)menu); + else + ((wxFileHistory*)_obj)->AddFilesToMenu(); +} + +EWXWEXPORT(int,wxFileHistory_GetHistoryFile)(void* _obj, int i, void* _buf) +{ + wxString tmp = ((wxFileHistory*)_obj)->GetHistoryFile(i); + if (_buf) memcpy (_buf, tmp.c_str(), tmp.Length()); + return tmp.Length(); +} + +EWXWEXPORT(int,wxFileHistory_GetCount)(void* _obj) +{ + return ((wxFileHistory*)_obj)->GetCount(); +} + +EWXWEXPORT(int,wxFileHistory_GetNoHistoryFiles)(void* _obj) +{ + return ((wxFileHistory*)_obj)->GetNoHistoryFiles(); +} + +EWXWEXPORT(int,wxFileHistory_GetMenus)(void* _obj, void* _ref) +{ + wxList lst = ((wxFileHistory*)_obj)->GetMenus(); + if (_ref) + { + for (unsigned int i = 0; i < lst.GetCount(); i++) + ((void**)_ref)[i] = (void*)lst.Item(i); + } + + return lst.GetCount(); +} + +} diff --git a/wxc/src/ewxw/eljfindrepldlg.cpp b/wxc/src/ewxw/eljfindrepldlg.cpp new file mode 100644 index 00000000..7fb84211 --- /dev/null +++ b/wxc/src/ewxw/eljfindrepldlg.cpp @@ -0,0 +1,124 @@ +#include "wrapper.h" +#if wxVERSION_NUMBER >= 2400 +#include "wx/fdrepdlg.h" + +extern "C" +{ + +EWXWEXPORT(void*,wxFindReplaceData_CreateDefault)() +{ + return (void*)new wxFindReplaceData(); +} + +EWXWEXPORT(void*,wxFindReplaceData_Create)(int flags) +{ + return (void*)new wxFindReplaceData((wxUint32)flags); +} + +EWXWEXPORT(void,wxFindReplaceData_Delete)(void* _obj) +{ + delete (wxFindReplaceData*)_obj; +} + +EWXWEXPORT(int,wxFindReplaceData_GetFindString)(void* _obj, void* _ref) +{ + wxString tmp = ((wxFindReplaceData*)_obj)->GetFindString(); + if (_ref) + memcpy(_ref, tmp.c_str(), tmp.Length()); + return tmp.Length(); +} + +EWXWEXPORT(int,wxFindReplaceData_GetReplaceString)(void* _obj, void* _ref) +{ + wxString tmp = ((wxFindReplaceData*)_obj)->GetFindString(); + if (_ref) + memcpy(_ref, tmp.c_str(), tmp.Length()); + return tmp.Length(); +} + +EWXWEXPORT(int,wxFindReplaceData_GetFlags)(void* _obj) +{ + return ((wxFindReplaceData*)_obj)->GetFlags(); +} + +EWXWEXPORT(void,wxFindReplaceData_SetFlags)(void* _obj, int flags) +{ + ((wxFindReplaceData*)_obj)->SetFlags((wxUint32)flags); +} + +EWXWEXPORT(void,wxFindReplaceData_SetFindString)(void* _obj, void* str) +{ + ((wxFindReplaceData*)_obj)->SetFindString((char*)str); +} + +EWXWEXPORT(void,wxFindReplaceData_SetReplaceString)(void* _obj, void* str) +{ + ((wxFindReplaceData*)_obj)->SetReplaceString((char*)str); +} + + +EWXWEXPORT(int,wxFindDialogEvent_GetFlags)(void* _obj) +{ + return ((wxFindDialogEvent*)_obj)->GetFlags(); +} + +EWXWEXPORT(int,wxFindDialogEvent_GetFindString)(void* _obj, void* _ref) +{ + wxString tmp = ((wxFindReplaceData*)_obj)->GetFindString(); + if (_ref) + memcpy(_ref, tmp.c_str(), tmp.Length()); + return tmp.Length(); +} + +EWXWEXPORT(int,wxFindDialogEvent_GetReplaceString)(void* _obj, void* _ref) +{ + wxString tmp = ((wxFindReplaceData*)_obj)->GetFindString(); + if (_ref) + memcpy(_ref, tmp.c_str(), tmp.Length()); + return tmp.Length(); +} + + +EWXWEXPORT(void*,wxFindReplaceDialog_Create)(void* parent, void* data, void* title, int style) +{ + return (void*)new wxFindReplaceDialog((wxWindow*)parent, (wxFindReplaceData*)data, (char*)title, style); +} + +EWXWEXPORT(void*,wxFindReplaceDialog_GetData)(void* _obj) +{ + return (void*)((wxFindReplaceDialog*)_obj)->GetData(); +} + +EWXWEXPORT(void,wxFindReplaceDialog_SetData)(void* _obj, void* data) +{ + ((wxFindReplaceDialog*)_obj)->SetData((wxFindReplaceData*)data); +} + + +EWXWEXPORT(int,expEVT_COMMAND_FIND)() +{ + return (int)wxEVT_COMMAND_FIND; +} + +EWXWEXPORT(int,expEVT_COMMAND_FIND_NEXT)() +{ + return (int)wxEVT_COMMAND_FIND_NEXT; +} + +EWXWEXPORT(int,expEVT_COMMAND_FIND_REPLACE)() +{ + return (int)wxEVT_COMMAND_FIND_REPLACE; +} + +EWXWEXPORT(int,expEVT_COMMAND_FIND_REPLACE_ALL)() +{ + return (int)wxEVT_COMMAND_FIND_REPLACE_ALL; +} + +EWXWEXPORT(int,expEVT_COMMAND_FIND_CLOSE)() +{ + return (int)wxEVT_COMMAND_FIND_CLOSE; +} + +} +#endif diff --git a/wxc/src/ewxw/eljfl.cpp b/wxc/src/ewxw/eljfl.cpp new file mode 100644 index 00000000..c85ecbea --- /dev/null +++ b/wxc/src/ewxw/eljfl.cpp @@ -0,0 +1,1550 @@ +#include "wrapper.h" +#include "wx/fl/toolwnd.h" +#include "wx/fl/antiflickpl.h" +#include "wx/fl/bardragpl.h" +#include "wx/fl/barhintspl.h" +#include "wx/fl/cbcustom.h" +#include "wx/fl/dyntbar.h" +#include "wx/fl/dyntbarhnd.h" +#include "wx/fl/gcupdatesmgr.h" +#include "wx/fl/hintanimpl.h" +#include "wx/fl/newbmpbtn.h" +#include "wx/fl/panedrawpl.h" +#include "wx/fl/rowdragpl.h" +#include "wx/fl/rowlayoutpl.h" + +typedef void (*TButtonClick)(void* _obj, int _btn); +typedef int (*TTitleClick)(void* _obj, void* _evt); +typedef void (*TMiniDraw)(void* _obj, void* _dct); + +class ELJToolWindow : public wxToolWindow +{ + private: + void* EifObj; + TButtonClick BtnCb; + TTitleClick TtlCb; + public: + ELJToolWindow(void* _obj, void* _btn, void* _ttl) : wxToolWindow() + { + EifObj = _obj; + BtnCb = (TButtonClick)_btn; + TtlCb = (TTitleClick)_ttl; + } + + virtual void OnMiniButtonClicked( int btnIdx ) {BtnCb (EifObj, btnIdx);} + virtual bool HandleTitleClick( wxMouseEvent& event ) { return TtlCb (EifObj, (void*)&event) != 0; } +}; + +class ELJMiniButton : public cbMiniButton +{ + private: + void* EifObj; + TMiniDraw DrwCb; + public: + ELJMiniButton(void* _obj, void* _drw) : cbMiniButton() + { + EifObj = _obj; + DrwCb = (TMiniDraw)_drw; + } + + virtual void Draw(wxDC& dc) {DrwCb(EifObj, (void*)&dc);} +}; + +extern "C" +{ + +EWXWEXPORT(void*, wxToolWindow_Create)(void* _obj, void* _btn, void* _ttl) +{ + return (void*) new ELJToolWindow(_obj, _btn, _ttl); +} +EWXWEXPORT(void, wxToolWindow_SetClient)(void* _obj, void* _wnd) +{ + ((ELJToolWindow*)_obj)->SetClient((wxWindow*)_wnd); +} + +EWXWEXPORT(void*, wxToolWindow_GetClient)(void* _obj) +{ + return (void*)((ELJToolWindow*)_obj)->GetClient(); +} + +EWXWEXPORT(void, wxToolWindow_SetTitleFont)(void* _obj, void* _fnt) +{ + ((ELJToolWindow*)_obj)->SetTitleFont (*((wxFont*)_fnt)); +} + +EWXWEXPORT(void, wxToolWindow_AddMiniButton)(void* _obj, void* _btn) +{ + ((ELJToolWindow*)_obj)->AddMiniButton((cbMiniButton*)_btn); +} + +EWXWEXPORT(void*,cbMiniButton_Create)() +{ + return (void*) new cbMiniButton(); +} + +EWXWEXPORT(void,cbMiniButton_Delete)(void* _obj) +{ + delete (cbMiniButton*)_obj; +} + +EWXWEXPORT(void,cbMiniButton_Pos)(void* _obj, void* x, void* y) +{ + wxPoint pos = ((cbMiniButton*)_obj)->mPos; + *((int*)x) = pos.x; + *((int*)y) = pos.y; +} + +EWXWEXPORT(void,cbMiniButton_Dim)(void* _obj, void* w, void* h) +{ + wxSize size = ((cbMiniButton*)_obj)->mDim; + *((int*)w) = size.x; + *((int*)h) = size.y; +} + +EWXWEXPORT(int,cbMiniButton_Visible)(void* _obj) +{ + return (int)((cbMiniButton*)_obj)->mVisible; +} + +EWXWEXPORT(int,cbMiniButton_Enabled)(void* _obj) +{ + return (int)((cbMiniButton*)_obj)->mEnabled; +} + +EWXWEXPORT(void*,cbMiniButton_Layout)(void* _obj) +{ + return (void*)((cbMiniButton*)_obj)->mpLayout; +} + +EWXWEXPORT(void*,cbMiniButton_Pane)(void* _obj) +{ + return (void*)((cbMiniButton*)_obj)->mpPane; +} + +EWXWEXPORT(void*,cbMiniButton_Plugin)(void* _obj) +{ + return (void*)((cbMiniButton*)_obj)->mpPlugin; +} + +EWXWEXPORT(void*,cbMiniButton_Wnd)(void* _obj) +{ + return (void*)((cbMiniButton*)_obj)->mpWnd; +} + +EWXWEXPORT(int,cbMiniButton_DragStarted)(void* _obj) +{ + return (int)((cbMiniButton*)_obj)->mDragStarted; +} + +EWXWEXPORT(int,cbMiniButton_Pressed)(void* _obj) +{ + return (int)((cbMiniButton*)_obj)->mPressed; +} + +EWXWEXPORT(void,cbMiniButton_SetPos)(void* _obj, int x, int y) +{ + ((cbMiniButton*)_obj)->SetPos(wxPoint(x, y)); +} + +EWXWEXPORT(int,cbMiniButton_HitTest)(void* _obj, int x, int y) +{ + return (int)((cbMiniButton*)_obj)->HitTest(wxPoint(x, y)); +} + +EWXWEXPORT(void,cbMiniButton_Refresh)(void* _obj) +{ + ((cbMiniButton*)_obj)->Refresh(); +} + +EWXWEXPORT(int,cbMiniButton_WasClicked)(void* _obj) +{ + return (int)((cbMiniButton*)_obj)->WasClicked(); +} + +EWXWEXPORT(void,cbMiniButton_Reset)(void* _obj) +{ + ((cbMiniButton*)_obj)->Reset(); +} + +EWXWEXPORT(void,cbMiniButton_Enable)(void* _obj, int enable) +{ + ((cbMiniButton*)_obj)->Enable(enable != 0); +} + +EWXWEXPORT(int,cbMiniButton_IsPressed)(void* _obj) +{ + return (int)((cbMiniButton*)_obj)->IsPressed(); +} + +EWXWEXPORT(void*,cbCloseBox_Create)() +{ + return (void*) new cbCloseBox(); +} + +EWXWEXPORT(void*,cbCollapseBox_Create)() +{ + return (void*) new cbCollapseBox(); +} + +EWXWEXPORT(void*,cbDockBox_Create)() +{ + return (void*) new cbDockBox(); +} + +EWXWEXPORT(void*,cbFloatedBarWindow_Create)(void* _obj) +{ + return (void*) new cbFloatedBarWindow(); +} + +EWXWEXPORT(void,cbFloatedBarWindow_SetBar)(void* _obj, void* _bar) +{ + ((cbFloatedBarWindow*)_obj)->SetBar((cbBarInfo*)_bar); +} + +EWXWEXPORT(void,cbFloatedBarWindow_SetLayout)(void* _obj, void* _layout) +{ + ((cbFloatedBarWindow*)_obj)->SetLayout((wxFrameLayout*)_layout); +} + +EWXWEXPORT(void*,cbFloatedBarWindow_GetBar)(void* _obj) +{ + return (void*)((cbFloatedBarWindow*)_obj)->GetBar(); +} + +EWXWEXPORT(void,cbFloatedBarWindow_PositionFloatedWnd)(void* _obj, int _x, int _y, int _w, int _h) +{ + ((cbFloatedBarWindow*)_obj)->PositionFloatedWnd(_x, _y, _w, _h); +} + +EWXWEXPORT(void*,wxFrameLayout_Create)(void* pParentFrame, void* pFrameClient, int activateNow) +{ + return (void*) new wxFrameLayout((wxWindow*)pParentFrame, (wxWindow*)pFrameClient, activateNow != 0); +} + +EWXWEXPORT(void,wxFrameLayout_Delete)(void* _obj) +{ + delete (wxFrameLayout*)_obj; +} + +EWXWEXPORT(void,wxFrameLayout_EnableFloating)(void* _obj, int enable) +{ + ((wxFrameLayout*)_obj)->EnableFloating(enable != 0); +} + +EWXWEXPORT(void,wxFrameLayout_Activate)(void* _obj) +{ + ((wxFrameLayout*)_obj)->Activate(); +} + +EWXWEXPORT(void,wxFrameLayout_Deactivate)(void* _obj) +{ + ((wxFrameLayout*)_obj)->Deactivate(); +} + +EWXWEXPORT(void,wxFrameLayout_HideBarWindows)(void* _obj) +{ + ((wxFrameLayout*)_obj)->HideBarWindows(); +} + +EWXWEXPORT(void,wxFrameLayout_DestroyBarWindows)(void* _obj) +{ + return ((wxFrameLayout*)_obj)->DestroyBarWindows(); +} + +EWXWEXPORT(void,wxFrameLayout_SetFrameClient)(void* _obj, void* pFrameClient) +{ + ((wxFrameLayout*)_obj)->SetFrameClient((wxWindow*)pFrameClient); +} + +EWXWEXPORT(void*,wxFrameLayout_GetFrameClient)(void* _obj) +{ + return (void*)((wxFrameLayout*)_obj)->GetFrameClient(); +} + +EWXWEXPORT(void*,wxFrameLayout_GetParentFrame)(void* _obj) +{ + return (void*)((wxFrameLayout*)_obj)->mpFrame; +} + +EWXWEXPORT(void*,wxFrameLayout_GetPane)(void* _obj, int alignment) +{ + return (void*)((wxFrameLayout*)_obj)->GetPane(alignment); +} + +EWXWEXPORT(void,wxFrameLayout_AddBar)(void* _obj, void* pBarWnd, void* dimInfo, int alignment, int rowNo, int columnPos, void* name, int spyEvents, int state) +{ + ((wxFrameLayout*)_obj)->AddBar((wxWindow*)pBarWnd, *((cbDimInfo*)dimInfo), alignment, rowNo, columnPos, (char*)name, spyEvents != 0, state); +} + +EWXWEXPORT(int,wxFrameLayout_RedockBar)(void* _obj, void* pBar, int x, int y, int w, int h, void* pToPane, int updateNow) +{ + return (int)((wxFrameLayout*)_obj)->RedockBar((cbBarInfo*)pBar, wxRect(x, y, w, h), (cbDockPane*)pToPane, updateNow != 0); +} + +EWXWEXPORT(void*,wxFrameLayout_FindBarByName)(void* _obj, void* name) +{ + return (void*)((wxFrameLayout*)_obj)->FindBarByName((char*)name); +} + +EWXWEXPORT(void*,wxFrameLayout_FindBarByWindow)(void* _obj, void* pWnd) +{ + return (void*)((wxFrameLayout*)_obj)->FindBarByWindow((wxWindow*)pWnd); +} + +EWXWEXPORT(int,wxFrameLayout_GetBars)(void* _obj, void* _ref) +{ + BarArrayT arr = ((wxFrameLayout*)_obj)->GetBars(); + + if (_ref) + { + for (unsigned int i = 0; i < arr.GetCount(); i++) + ((void**)_ref)[i] = arr.Item(i); + } + + return arr.GetCount(); +} + +EWXWEXPORT(void,wxFrameLayout_SetBarState)(void* _obj, void* pBar, int newStatem, int updateNow) +{ + ((wxFrameLayout*)_obj)->SetBarState((cbBarInfo*)pBar, newStatem, updateNow != 0); +} + +EWXWEXPORT(void,wxFrameLayout_InverseVisibility)(void* _obj, void* pBar) +{ + ((wxFrameLayout*)_obj)->InverseVisibility((cbBarInfo*)pBar); +} + +EWXWEXPORT(void,wxFrameLayout_ApplyBarProperties)(void* _obj, void* pBar) +{ + ((wxFrameLayout*)_obj)->ApplyBarProperties((cbBarInfo*)pBar); +} + +EWXWEXPORT(void,wxFrameLayout_RemoveBar)(void* _obj, void* pBar) +{ + ((wxFrameLayout*)_obj)->RemoveBar((cbBarInfo*)pBar); +} + +EWXWEXPORT(void,wxFrameLayout_RecalcLayout)(void* _obj, int repositionBarsNow) +{ + ((wxFrameLayout*)_obj)->RecalcLayout(repositionBarsNow != 0); +} + +EWXWEXPORT(int,wxFrameLayout_GetClientHeight)(void* _obj) +{ + return ((wxFrameLayout*)_obj)->GetClientHeight(); +} + +EWXWEXPORT(int,wxFrameLayout_GetClientWidth)(void* _obj) +{ + return ((wxFrameLayout*)_obj)->GetClientWidth(); +} + +EWXWEXPORT(void,wxFrameLayout_GetClientRect)(void* _obj, void* x, void* y, void* w, void* h) +{ + wxRect rect = ((wxFrameLayout*)_obj)->GetClientRect(); + *((int*)x) = rect.x; + *((int*)y) = rect.y; + *((int*)w) = rect.width; + *((int*)h) = rect.height; +} + +EWXWEXPORT(void*,wxFrameLayout_GetUpdatesManager)(void* _obj) +{ + return (void*)((wxFrameLayout*)_obj)->mpUpdatesMgr; +} + +EWXWEXPORT(void,wxFrameLayout_SetUpdatesManager)(void* _obj, void* pUMgr) +{ + ((wxFrameLayout*)_obj)->SetUpdatesManager((cbUpdatesManagerBase*)pUMgr); +} + +EWXWEXPORT(void,wxFrameLayout_GetPaneProperties)(void* _obj, void* props, int alignment) +{ + ((wxFrameLayout*)_obj)->GetPaneProperties(*((cbCommonPaneProperties*)props), alignment); +} + +EWXWEXPORT(void,wxFrameLayout_SetPaneProperties)(void* _obj, void* props, int paneMask) +{ + ((wxFrameLayout*)_obj)->SetPaneProperties(*((cbCommonPaneProperties*)props), paneMask); +} + +EWXWEXPORT(void,wxFrameLayout_SetMargins)(void* _obj, int top, int bottom, int left, int right, int paneMask) +{ + ((wxFrameLayout*)_obj)->SetMargins(top, bottom, left, right, paneMask); +} + +EWXWEXPORT(void,wxFrameLayout_SetPaneBackground)(void* _obj, void* colour) +{ + ((wxFrameLayout*)_obj)->SetPaneBackground(*((wxColour*)colour)); +} + +EWXWEXPORT(void,wxFrameLayout_RefreshNow)(void* _obj, int recalcLayout) +{ + ((wxFrameLayout*)_obj)->RefreshNow(recalcLayout != 0); +} + +EWXWEXPORT(void,wxFrameLayout_OnSize)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->OnSize(*((wxSizeEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_OnLButtonDown)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->OnLButtonDown(*((wxMouseEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_OnLDblClick)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->OnLDblClick(*((wxMouseEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_OnLButtonUp)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->OnLButtonUp(*((wxMouseEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_OnRButtonDown)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->OnRButtonDown(*((wxMouseEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_OnRButtonUp)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->OnRButtonUp(*((wxMouseEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_OnMouseMove)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->OnMouseMove(*((wxMouseEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_FirePluginEvent)(void* _obj, void* event) +{ + ((wxFrameLayout*)_obj)->FirePluginEvent(*((cbPluginEvent*)event)); +} + +EWXWEXPORT(void,wxFrameLayout_CaptureEventsForPlugin)(void* _obj, void* pPlugin) +{ + ((wxFrameLayout*)_obj)->CaptureEventsForPlugin((cbPluginBase*)pPlugin); +} + +EWXWEXPORT(void,wxFrameLayout_ReleaseEventsFromPlugin)(void* _obj, void* pPlugin) +{ + ((wxFrameLayout*)_obj)->ReleaseEventsFromPlugin((cbPluginBase*)pPlugin); +} + +EWXWEXPORT(void,wxFrameLayout_CaptureEventsForPane)(void* _obj, void* toPane) +{ + ((wxFrameLayout*)_obj)->CaptureEventsForPane((cbDockPane*)toPane); +} + +EWXWEXPORT(void,wxFrameLayout_ReleaseEventsFromPane)(void* _obj, void* fromPane) +{ + ((wxFrameLayout*)_obj)->ReleaseEventsFromPane((cbDockPane*)fromPane); +} + +EWXWEXPORT(void*,wxFrameLayout_GetTopPlugin)(void* _obj) +{ + return (void*)((wxFrameLayout*)_obj)->mpTopPlugin; +} + +EWXWEXPORT(void,wxFrameLayout_SetTopPlugin)(void* _obj, void* pPlugin) +{ + ((wxFrameLayout*)_obj)->SetTopPlugin((cbPluginBase*)pPlugin); +} + +EWXWEXPORT(void,wxFrameLayout_PushPlugin)(void* _obj, void* pPugin) +{ + ((wxFrameLayout*)_obj)->PushPlugin((cbPluginBase*)pPugin); +} + +EWXWEXPORT(void,wxFrameLayout_PopPlugin)(void* _obj) +{ + ((wxFrameLayout*)_obj)->PopPlugin(); +} + +EWXWEXPORT(void,wxFrameLayout_PopAllPlugins)(void* _obj) +{ + ((wxFrameLayout*)_obj)->PopAllPlugins(); +} + +EWXWEXPORT(void,wxFrameLayout_PushDefaultPlugins)(void* _obj) +{ + ((wxFrameLayout*)_obj)->PushDefaultPlugins(); +} + +EWXWEXPORT(void,wxFrameLayout_AddPlugin)(void* _obj, void* pPlInfo, int paneMask) +{ + ((wxFrameLayout*)_obj)->AddPlugin((wxClassInfo*)pPlInfo, paneMask); +} + +EWXWEXPORT(void,wxFrameLayout_AddPluginBefore)(void* _obj, void* pNextPlInfo, void* pPlInfo, int paneMask) +{ + ((wxFrameLayout*)_obj)->AddPluginBefore((wxClassInfo*)pNextPlInfo, (wxClassInfo*)pPlInfo, paneMask); +} + +EWXWEXPORT(void,wxFrameLayout_RemovePlugin)(void* _obj, void* pPlInfo) +{ + ((wxFrameLayout*)_obj)->RemovePlugin((wxClassInfo*)pPlInfo); +} + +EWXWEXPORT(void*,wxFrameLayout_FindPlugin)(void* _obj, void* pPlInfo ) +{ + return (void*)((wxFrameLayout*)_obj)->FindPlugin((wxClassInfo*)pPlInfo); +} + +EWXWEXPORT(int,wxFrameLayout_HasTopPlugin)(void* _obj) +{ + return (int)((wxFrameLayout*)_obj)->HasTopPlugin(); +} + +EWXWEXPORT(void*,cbDimInfo_CreateDefault)() +{ + return (void*) new cbDimInfo(); +} + +EWXWEXPORT(void*,cbDimInfo_CreateWithHandler)(void* pDimHandler, int isFixed) +{ + return (void*) new cbDimInfo((cbBarDimHandlerBase*)pDimHandler, isFixed != 0); +} + +EWXWEXPORT(void*,cbDimInfo_CreateWithInfo)(int dh_x, int dh_y, int dv_x, int dv_y, int f_x, int f_y, int isFixed, int horizGap, int vertGap, void* pDimHandler) +{ + return (void*) new cbDimInfo(dh_x, dh_y, dv_x, dv_y, f_x, f_y, isFixed != 0, horizGap, vertGap, (cbBarDimHandlerBase*)pDimHandler); +} + +EWXWEXPORT(void*,cbDimInfo_Create)(int x, int y, bool isFixed, int gap, void* pDimHandler) +{ + return (void*) new cbDimInfo(x, y, isFixed != 0, gap, (cbBarDimHandlerBase*)pDimHandler); +} + +EWXWEXPORT(void,cbDimInfo_Delete)(void* _obj) +{ + delete (cbDimInfo*)_obj; +} + +EWXWEXPORT(void,cbDimInfo_Assign)(void* _obj, void* other) +{ + *((cbDimInfo*)_obj) = *((cbDimInfo*)other); +} + +EWXWEXPORT(void*,cbDimInfo_GetDimHandler)(void* _obj) +{ + return (void*)((cbDimInfo*)_obj)->GetDimHandler(); +} + +EWXWEXPORT(void*,cbBarInfo_Create)() +{ + return (void*) new cbBarInfo(); +} + +EWXWEXPORT(void,cbBarInfo_Delete)(void* _obj) +{ + delete (cbBarInfo*)_obj; +} + +EWXWEXPORT(int,cbBarInfo_IsFixed)(void* _obj) +{ + return (int)((cbBarInfo*)_obj)->IsFixed(); +} + +EWXWEXPORT(int,cbBarInfo_IsExpanded)(void* _obj) +{ + return (int)((cbBarInfo*)_obj)->IsExpanded(); +} + +EWXWEXPORT(void*,cbBarSpy_CreateDefault)() +{ + return (void*) new cbBarSpy(); +} + +EWXWEXPORT(void*,cbBarSpy_Create)(void* pPanel) +{ + return (void*) new cbBarSpy((wxFrameLayout*)pPanel); +} + +EWXWEXPORT(void,cbBarSpy_Delete)(void* _obj) +{ + delete (cbBarSpy*)_obj; +} + +EWXWEXPORT(void,cbBarSpy_SetBarWindow)(void* _obj, void* pWnd) +{ + ((cbBarSpy*)_obj)->SetBarWindow((wxWindow*)pWnd); +} + +EWXWEXPORT(int,cbBarSpy_ProcessEvent)(void* _obj, void* event) +{ + return (int)((cbBarSpy*)_obj)->ProcessEvent(*((wxEvent*)event)); +} + +EWXWEXPORT(void*,cbRowInfo_Create)() +{ + return (void*) new cbRowInfo(); +} + +EWXWEXPORT(void,cbRowInfo_Delete)(void* _obj) +{ + delete (cbRowInfo*)_obj; +} + +EWXWEXPORT(void*,cbRowInfo_GetFirstBar)(void* _obj) +{ + return (void*)((cbRowInfo*)_obj)->GetFirstBar(); +} + +EWXWEXPORT(void*,cbDockPane_CreateDefault)() +{ + return (void*) new cbDockPane(); +} + +EWXWEXPORT(void*,cbDockPane_Create)(int alignment, void* pPanel) +{ + return (void*) new cbDockPane(alignment, (wxFrameLayout*)pPanel); +} + +EWXWEXPORT(void,cbDockPane_Delete)(void* _obj) +{ + delete (cbDockPane*)_obj; +} + +EWXWEXPORT(void,cbDockPane_SetMargins)(void* _obj, int top, int bottom, int left, int right) +{ + ((cbDockPane*)_obj)->SetMargins(top, bottom, left, right); +} + +EWXWEXPORT(void,cbDockPane_RemoveBar)(void* _obj, void* pBar) +{ + ((cbDockPane*)_obj)->RemoveBar((cbBarInfo*)pBar); +} + +EWXWEXPORT(void,cbDockPane_InsertBarByCoord)(void* _obj, void* pBar, int x, int y, int w, int h) +{ + ((cbDockPane*)_obj)->InsertBar((cbBarInfo*)pBar, wxRect(x, y, w, h)); +} + +EWXWEXPORT(void,cbDockPane_InsertBarToRow)(void* _obj, void* pBar, void* pIntoRow) +{ + ((cbDockPane*)_obj)->InsertBar((cbBarInfo*)pBar, (cbRowInfo*)pIntoRow); +} + +EWXWEXPORT(void,cbDockPane_InsertBarByInfo)(void* _obj, void* pBarInfo) +{ + ((cbDockPane*)_obj)->InsertBar((cbBarInfo*)pBarInfo); +} + +EWXWEXPORT(void,cbDockPane_RemoveRow)(void* _obj, void* pRow) +{ + ((cbDockPane*)_obj)->RemoveRow((cbRowInfo*)pRow); +} + +EWXWEXPORT(void,cbDockPane_InsertRow)(void* _obj, void* pRow, void* pBeforeRow) +{ + ((cbDockPane*)_obj)->InsertRow((cbRowInfo*)pRow, (cbRowInfo*)pBeforeRow); +} + +EWXWEXPORT(void,cbDockPane_SetPaneWidth)(void* _obj, int width) +{ + ((cbDockPane*)_obj)->SetPaneWidth(width); +} + +EWXWEXPORT(void,cbDockPane_SetBoundsInParent)(void* _obj, int _x, int _y, int _w, int _h) +{ + ((cbDockPane*)_obj)->SetBoundsInParent(wxRect(_x, _y, _w, _h)); +} + +EWXWEXPORT(void,cbDockPane_GetRealRect)(void* _obj, void* _x, void* _y, void* _w, void* _h) +{ + wxRect rect = ((cbDockPane*)_obj)->GetRealRect(); + *((int*)_x) = rect.x; + *((int*)_y) = rect.y; + *((int*)_w) = rect.width; + *((int*)_h) = rect.height; +} + +EWXWEXPORT(int,cbDockPane_GetRowList)(void* _obj, void* _ref) +{ + RowArrayT arr = ((cbDockPane*)_obj)->GetRowList(); + + if (_ref) + { + for (unsigned int i = 0; i < arr.GetCount(); i++) + ((void**)_ref)[i] = (void*)arr.Item(i); + } + + return arr.GetCount(); +} + +EWXWEXPORT(void*,cbDockPane_GetFirstRow)(void* _obj) +{ + return (void*)((cbDockPane*)_obj)->GetFirstRow(); +} + +EWXWEXPORT(int,cbDockPane_BarPresent)(void* _obj, void* pBar) +{ + return (int)((cbDockPane*)_obj)->BarPresent((cbBarInfo*)pBar); +} + +EWXWEXPORT(int,cbDockPane_GetPaneHeight)(void* _obj) +{ + return ((cbDockPane*)_obj)->GetPaneHeight(); +} + +EWXWEXPORT(int,cbDockPane_GetAlignment)(void* _obj) +{ + return ((cbDockPane*)_obj)->GetAlignment(); +} + +EWXWEXPORT(int,cbDockPane_MatchesMask)(void* _obj, int paneMask) +{ + return (int)((cbDockPane*)_obj)->MatchesMask(paneMask); +} + +EWXWEXPORT(int,cbDockPane_IsHorizontal)(void* _obj) +{ + return (int)((cbDockPane*)_obj)->IsHorizontal(); +} + +EWXWEXPORT(int,cbDockPane_GetDockingState)(void* _obj) +{ + return ((cbDockPane*)_obj)->GetDockingState(); +} + +EWXWEXPORT(int,cbDockPane_HitTestPaneItems)(void* _obj, int x, int y, void* ppRow, void* ppBar) +{ + return ((cbDockPane*)_obj)->HitTestPaneItems(wxPoint(x, y), (cbRowInfo**)ppRow, (cbBarInfo**)ppBar); +} + +EWXWEXPORT(void,cbDockPane_GetBarResizeRange)(void* _obj, void* pBar, void* from, void* till, int forLeftHandle) +{ + ((cbDockPane*)_obj)->GetBarResizeRange((cbBarInfo*)pBar, (int*)from, (int*)till, forLeftHandle != 0); +} + +EWXWEXPORT(void,cbDockPane_GetRowResizeRange)(void* _obj, void* pRow, void* from, void* till, int forUpperHandle) +{ + ((cbDockPane*)_obj)->GetRowResizeRange((cbRowInfo*)pRow, (int*)from, (int*)till, forUpperHandle != 0); +} + +EWXWEXPORT(void*,cbDockPane_GetBarInfoByWindow)(void* _obj, void* pBarWnd) +{ + return (void*)((cbDockPane*)_obj)->GetBarInfoByWindow((wxWindow*)pBarWnd); +} + +EWXWEXPORT(int,cbPluginBase_GetPaneMask)(void* _obj) +{ + return ((cbPluginBase*)_obj)->GetPaneMask(); +} + +EWXWEXPORT(void,cbPluginBase_Delete)(void* _obj) +{ + delete (cbPluginBase*)_obj; +} + +EWXWEXPORT(int,cbPluginBase_IsReady)(void* _obj) +{ + return (int)((cbPluginBase*)_obj)->IsReady(); +} + +EWXWEXPORT(int,cbPluginBase_ProcessEvent)(void* _obj, void* event) +{ + return (int)((cbPluginBase*)_obj)->ProcessEvent(*((wxEvent*)event)); +} + +EWXWEXPORT(void*,cbPluginEvent_Pane)(void* _obj) +{ + return ((cbPluginEvent*)_obj)->mpPane; +} + +EWXWEXPORT(void,cbLeftDownEvent_Pos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbLeftDownEvent*)_obj)->mPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void,cbLeftUpEvent_Pos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbLeftUpEvent*)_obj)->mPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void,cbRightDownEvent_Pos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbRightDownEvent*)_obj)->mPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void,cbRightUpEvent_Pos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbRightUpEvent*)_obj)->mPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void,cbMotionEvent_Pos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbMotionEvent*)_obj)->mPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void,cbLeftDClickEvent_Pos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbLeftDClickEvent*)_obj)->mPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void*,cbLayoutRowEvent_Row)(void* _obj) +{ + return (void*)((cbLayoutRowEvent*)_obj)->mpRow; +} + +EWXWEXPORT(void*,cbResizeRowEvent_Row)(void* _obj) +{ + return (void*)((cbResizeRowEvent*)_obj)->mpRow; +} + +EWXWEXPORT(int,cbResizeRowEvent_HandleOfs)(void* _obj) +{ + return ((cbResizeRowEvent*)_obj)->mHandleOfs; +} + +EWXWEXPORT(int,cbResizeRowEvent_ForUpperHandle)(void* _obj) +{ + return (int)((cbResizeRowEvent*)_obj)->mForUpperHandle; +} + +EWXWEXPORT(void*,cbInsertBarEvent_Bar)(void* _obj) +{ + return (void*)((cbInsertBarEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void*,cbInsertBarEvent_Row)(void* _obj) +{ + return (void*)((cbInsertBarEvent*)_obj)->mpRow; +} + +EWXWEXPORT(void*,cbResizeBarEvent_Bar)(void* _obj) +{ + return (void*)((cbResizeBarEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void*,cbResizeBarEvent_Row)(void* _obj) +{ + return (void*)((cbResizeBarEvent*)_obj)->mpRow; +} + +EWXWEXPORT(void*,cbRemoveBarEvent_Bar)(void* _obj) +{ + return (void*)((cbRemoveBarEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void*,cbSizeBarWndEvent_Bar)(void* _obj) +{ + return (void*)((cbSizeBarWndEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void,cbSizeBarWndEvent_BoundsInParent)(void* _obj, void* _x, void* _y, void* _w, void* _h) +{ + wxRect rect = ((cbSizeBarWndEvent*)_obj)->mBoundsInParent; + *((int*)_x) = rect.x; + *((int*)_y) = rect.y; + *((int*)_w) = rect.width; + *((int*)_h) = rect.height; +} + +EWXWEXPORT(void*,cbDrawBarDecorEvent_Bar)(void* _obj) +{ + return (void*)((cbDrawBarDecorEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void,cbDrawBarDecorEvent_BoundsInParent)(void* _obj, void* _x, void* _y, void* _w, void* _h) +{ + wxRect rect = ((cbDrawBarDecorEvent*)_obj)->mBoundsInParent; + *((int*)_x) = rect.x; + *((int*)_y) = rect.y; + *((int*)_w) = rect.width; + *((int*)_h) = rect.height; +} + +EWXWEXPORT(void*,cbDrawBarDecorEvent_Dc)(void* _obj) +{ + return (void*)((cbDrawBarDecorEvent*)_obj)->mpDc; +} + +EWXWEXPORT(void*,cbDrawRowDecorEvent_Row)(void* _obj) +{ + return (void*)((cbDrawRowDecorEvent*)_obj)->mpRow; +} + +EWXWEXPORT(void*,cbDrawRowDecorEvent_Dc)(void* _obj) +{ + return (void*)((cbDrawRowDecorEvent*)_obj)->mpDc; +} + +EWXWEXPORT(void*,cbDrawPaneDecorEvent_Dc)(void* _obj) +{ + return (void*)((cbDrawPaneDecorEvent*)_obj)->mpDc; +} + +EWXWEXPORT(void*,cbDrawBarHandlesEvent_Bar)(void* _obj) +{ + return (void*)((cbDrawBarHandlesEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void*,cbDrawBarHandlesEvent_Dc)(void* _obj) +{ + return (void*)((cbDrawBarHandlesEvent*)_obj)->mpDc; +} + +EWXWEXPORT(void*,cbDrawRowHandlesEvent_Row)(void* _obj) +{ + return (void*)((cbDrawRowHandlesEvent*)_obj)->mpRow; +} + +EWXWEXPORT(void*,cbDrawRowHandlesEvent_Dc)(void* _obj) +{ + return (void*)((cbDrawRowHandlesEvent*)_obj)->mpDc; +} + +EWXWEXPORT(void*,cbDrawRowBkGroundEvent_Row)(void* _obj) +{ + return (void*)((cbDrawRowBkGroundEvent*)_obj)->mpRow; +} + +EWXWEXPORT(void*,cbDrawRowBkGroundEvent_Dc)(void* _obj) +{ + return (void*)((cbDrawRowBkGroundEvent*)_obj)->mpDc; +} + +EWXWEXPORT(void*,cbDrawPaneBkGroundEvent_Dc)(void* _obj) +{ + return (void*)((cbDrawPaneBkGroundEvent*)_obj)->mpDc; +} + +EWXWEXPORT(void*,cbStartBarDraggingEvent_Bar)(void* _obj) +{ + return (void*)((cbStartBarDraggingEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void,cbStartBarDraggingEvent_Pos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbStartBarDraggingEvent*)_obj)->mPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void,cbDrawHintRectEvent_Rect)(void* _obj, void* _x, void* _y, void* _w, void* _h) +{ + wxRect rect = ((cbDrawHintRectEvent*)_obj)->mRect; + *((int*)_x) = rect.x; + *((int*)_y) = rect.y; + *((int*)_w) = rect.width; + *((int*)_h) = rect.height; +} + +EWXWEXPORT(int,cbDrawHintRectEvent_LastTime)(void* _obj) +{ + return (int)((cbDrawHintRectEvent*)_obj)->mLastTime; +} + +EWXWEXPORT(int,cbDrawHintRectEvent_EraseRect)(void* _obj) +{ + return (int)((cbDrawHintRectEvent*)_obj)->mEraseRect; +} + +EWXWEXPORT(int,cbDrawHintRectEvent_IsInClient)(void* _obj) +{ + return (int)((cbDrawHintRectEvent*)_obj)->mIsInClient; +} + +EWXWEXPORT(void,cbStartDrawInAreaEvent_Area)(void* _obj, void* _x, void* _y, void* _w, void* _h) +{ + wxRect rect = ((cbStartDrawInAreaEvent*)_obj)->mArea; + *((int*)_x) = rect.x; + *((int*)_y) = rect.y; + *((int*)_w) = rect.width; + *((int*)_h) = rect.height; +} + +EWXWEXPORT(void,cbFinishDrawInAreaEvent_Area)(void* _obj, void* _x, void* _y, void* _w, void* _h) +{ + wxRect rect = ((cbFinishDrawInAreaEvent*)_obj)->mArea; + *((int*)_x) = rect.x; + *((int*)_y) = rect.y; + *((int*)_w) = rect.width; + *((int*)_h) = rect.height; +} + +EWXWEXPORT(void,cbCustomizeBarEvent_ClickPos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbCustomizeBarEvent*)_obj)->mClickPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void*,cbCustomizeBarEvent_Bar)(void* _obj) +{ + return (void*)((cbCustomizeBarEvent*)_obj)->mpBar; +} + +EWXWEXPORT(void,cbCustomizeLayoutEvent_ClickPos)(void* _obj, void* _x, void* _y) +{ + wxPoint pos = ((cbCustomizeLayoutEvent*)_obj)->mClickPos; + *((int*)_x) = pos.x; + *((int*)_y) = pos.y; +} + +EWXWEXPORT(void*,cbAntiflickerPlugin_CreateDefault)() +{ + return (void*) new cbAntiflickerPlugin(); +} + +EWXWEXPORT(void*,cbAntiflickerPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbAntiflickerPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbAntiflickerPlugin_Delete)(void* _obj) +{ + delete (cbAntiflickerPlugin*)_obj; +} + +EWXWEXPORT(void*,cbBarDragPlugin_CreateDefault)() +{ + return (void*) new cbBarDragPlugin(); +} + +EWXWEXPORT(void*,cbBarDragPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbBarDragPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbBarDragPlugin_Delete)(void* _obj) +{ + delete (cbBarDragPlugin*)_obj; +} + +EWXWEXPORT(void*,cbBarHintsPlugin_CreateDefault)() +{ + return (void*) new cbBarHintsPlugin(); +} + +EWXWEXPORT(void*,cbBarHintsPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbBarHintsPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbBarHintsPlugin_Delete)(void* _obj) +{ + delete (cbBarHintsPlugin*)_obj; +} + +EWXWEXPORT(void,cbBarHintsPlugin_SetGrooveCount)(void* _obj, int nGrooves) +{ + ((cbBarHintsPlugin*)_obj)->SetGrooveCount(nGrooves); +} + +EWXWEXPORT(void*,cbSimpleCustomizationPlugin_CreateDefault)() +{ + return (void*) new cbSimpleCustomizationPlugin(); +} + +EWXWEXPORT(void*,cbSimpleCustomizationPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbSimpleCustomizationPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbSimpleCustomizationPlugin_Delete)(void* _obj) +{ + delete (cbSimpleCustomizationPlugin*)_obj; +} + +EWXWEXPORT(int,wxToolLayoutItem_IsSeparator)(void* _obj) +{ + return (int)((wxToolLayoutItem*)_obj)->mIsSeparator; +} + +EWXWEXPORT(void,wxToolLayoutItem_Rect)(void* _obj, void* _x, void* _y, void* _w, void* _h) +{ + wxRect rect = ((wxToolLayoutItem*)_obj)->mRect; + *((int*)_x) = rect.x; + *((int*)_y) = rect.y; + *((int*)_w) = rect.width; + *((int*)_h) = rect.height; +} + +EWXWEXPORT(void*,wxDynToolInfo_pToolWnd)(void* _obj) +{ + return (void*)((wxDynToolInfo*)_obj)->mpToolWnd; +} + +EWXWEXPORT(int,wxDynToolInfo_Index)(void* _obj) +{ + return ((wxDynToolInfo*)_obj)->mIndex; +} + +EWXWEXPORT(void,wxDynToolInfo_RealSize)(void* _obj, void* _w, void* _h) +{ + wxSize size = ((wxDynToolInfo*)_obj)->mRealSize; + *((int*)_w) = size.x; + *((int*)_h) = size.y; +} + +EWXWEXPORT(void*,wxDynamicToolBar_CreateDefault)() +{ + return (void*) new wxDynamicToolBar(); +} + +EWXWEXPORT(void*,wxDynamicToolBar_Create)(void* parent, int id, int x, int y, int w, int h, int style, int orientation, int RowsOrColumns) +{ + return (void*) new wxDynamicToolBar((wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style, orientation, RowsOrColumns); +} + +EWXWEXPORT(void,wxDynamicToolBar_Delete)(void* _obj) +{ + delete (wxDynamicToolBar*)_obj; +} + +EWXWEXPORT(int,wxDynamicToolBar_CreateParams)(void* _obj, void* parent, int id, int x, int y, int w, int h, int style, int orientation, int RowsOrColumns) +{ + return (int)((wxDynamicToolBar*)_obj)->Create((wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style, orientation, RowsOrColumns); +} + +EWXWEXPORT(void,wxDynamicToolBar_AddTool)(void* _obj, int toolIndex, void* pToolWindow, int w, int h) +{ + ((wxDynamicToolBar*)_obj)->AddTool(toolIndex, (wxWindow*)pToolWindow, wxSize(w, h)); +} + +EWXWEXPORT(void,wxDynamicToolBar_AddToolImage)(void* _obj, int toolIndex, void* imageFileName, int imageFileType, void* labelText, int alignTextRight, int isFlat) +{ + ((wxDynamicToolBar*)_obj)->AddTool(toolIndex, (char*)imageFileName, (wxBitmapType)imageFileType, (char*)labelText, alignTextRight != 0, isFlat != 0); +} + +EWXWEXPORT(void,wxDynamicToolBar_AddToolLabel)(void* _obj, int toolIndex, void* labelBmp, void* labelText, int alignTextRight, int isFlat) +{ + ((wxDynamicToolBar*)_obj)->AddTool(toolIndex, *((wxBitmap*)labelBmp), (char*)labelText, alignTextRight != 0, isFlat != 0); +} + +EWXWEXPORT(void*,wxDynamicToolBar_AddToolBitmap)(void* _obj, int toolIndex, void* bitmap, void* pushedBitmap, int toggle, int x, int y, void* clientData, void* helpString1, void* helpString2) +{ + return (void*)((wxDynamicToolBar*)_obj)->AddTool(toolIndex, *((wxBitmap*)bitmap), *((wxBitmap*)pushedBitmap), toggle != 0, (long)x, (long)y, (wxObject*)clientData, (char*)helpString1, (char*)helpString2); +} + +EWXWEXPORT(void,wxDynamicToolBar_AddSeparator)(void* _obj, void* pSepartorWnd) +{ + ((wxDynamicToolBar*)_obj)->AddSeparator((wxWindow*)pSepartorWnd); +} + +EWXWEXPORT(void*,wxDynamicToolBar_GetToolInfo)(void* _obj, int toolIndex) +{ + return (void*)((wxDynamicToolBar*)_obj)->GetToolInfo(toolIndex); +} + +EWXWEXPORT(void,wxDynamicToolBar_RemoveTool)(void* _obj, int toolIndex) +{ + ((wxDynamicToolBar*)_obj)->RemveTool(toolIndex); +} + +EWXWEXPORT(void,wxDynamicToolBar_DrawSeparator)(void* _obj, void* info, void* dc) +{ + ((wxDynamicToolBar*)_obj)->DrawSeparator(*((wxDynToolInfo*)info), *((wxDC*)dc)); +} + +EWXWEXPORT(int,wxDynamicToolBar_Layout)(void* _obj) +{ + return (int)((wxDynamicToolBar*)_obj)->Layout(); +} + +EWXWEXPORT(void,wxDynamicToolBar_GetPreferredDim)(void* _obj, int gw, int gh, void* pw, void* ph) +{ + wxSize size; + ((wxDynamicToolBar*)_obj)->GetPreferredDim(wxSize(gw, gh), size); + *((int*)pw) = size.x; + *((int*)ph) = size.y; +} + +EWXWEXPORT(void*,wxDynamicToolBar_CreateDefaultLayout)(void* _obj) +{ + return (void*)((wxDynamicToolBar*)_obj)->CreateDefaultLayout(); +} + +EWXWEXPORT(void,wxDynamicToolBar_SetLayout)(void* _obj, void* pLayout) +{ + ((wxDynamicToolBar*)_obj)->SetLayout((LayoutManagerBase*)pLayout); +} + +EWXWEXPORT(void,wxDynamicToolBar_EnableTool)(void* _obj, int toolIndex, int enable) +{ + ((wxDynamicToolBar*)_obj)->EnableTool(toolIndex, enable != 0); +} + +EWXWEXPORT(void*,wxDynamicToolBar_FindToolForPosition)(void* _obj, int x, int y) +{ + return (void*)((wxDynamicToolBar*)_obj)->FindToolForPosition((wxCoord)x, (wxCoord)y); +} + +EWXWEXPORT(int,wxDynamicToolBar_DoInsertTool)(void* _obj, int pos, void* tool) +{ + return (int)((wxDynamicToolBar*)_obj)->DoInsertTool((size_t)pos, (wxToolBarToolBase*)tool); +} + +EWXWEXPORT(int,wxDynamicToolBar_DoDeleteTool)(void* _obj, int pos, void* tool) +{ + return (int)((wxDynamicToolBar*)_obj)->DoDeleteTool((size_t)pos, (wxToolBarToolBase*)tool); +} + +EWXWEXPORT(void,wxDynamicToolBar_DoEnableTool)(void* _obj, void* tool, int enable) +{ + ((wxDynamicToolBar*)_obj)->DoEnableTool((wxToolBarToolBase*)tool, enable != 0); +} + +EWXWEXPORT(void,wxDynamicToolBar_DoToggleTool)(void* _obj, void* tool, int toggle) +{ + ((wxDynamicToolBar*)_obj)->DoToggleTool((wxToolBarToolBase*)tool, toggle != 0); +} + +EWXWEXPORT(void,wxDynamicToolBar_DoSetToggle)(void* _obj, void* tool, int toggle) +{ + ((wxDynamicToolBar*)_obj)->DoSetToggle((wxToolBarToolBase*)tool, toggle != 0); +} + +EWXWEXPORT(void*,wxDynamicToolBar_CreateTool)(void* _obj, int id, void* label, void* bmpNormal, void* bmpDisabled, int kind, void* clientData, void* shortHelp, void* longHelp) +{ + return (void*)((wxDynamicToolBar*)_obj)->CreateTool(id, (char*)label, *((wxBitmap*)bmpNormal), *((wxBitmap*)bmpDisabled), (wxItemKind)kind, (wxObject*)clientData, (char*)shortHelp, (char*)longHelp); +} + +EWXWEXPORT(void*,wxDynamicToolBar_CreateToolControl)(void* _obj, void* control) +{ + return (void*)((wxDynamicToolBar*)_obj)->CreateTool((wxControl*)control); +} + +EWXWEXPORT(void*,cbDynToolBarDimHandler_Create)() +{ + return (void*) new cbDynToolBarDimHandler(); +} + +EWXWEXPORT(void,cbDynToolBarDimHandler_Delete)(void* _obj) +{ + delete (cbDynToolBarDimHandler*)_obj; +} + +EWXWEXPORT(void*,cbGCUpdatesMgr_Create)(void* pPanel) +{ + return (void*) new cbGCUpdatesMgr((wxFrameLayout*)pPanel); +} + +EWXWEXPORT(void*,cbGCUpdatesMgr_CreateDefault)() +{ + return (void*) new cbGCUpdatesMgr(); +} + +EWXWEXPORT(void,cbGCUpdatesMgr_Delete)(void* _obj) +{ + delete (cbGCUpdatesMgr*)_obj; +} + +EWXWEXPORT(void,cbGCUpdatesMgr_UpdateNow)(void* _obj) +{ + ((cbGCUpdatesMgr*)_obj)->UpdateNow(); +} + +EWXWEXPORT(void*,cbHintAnimationPlugin_CreateDefault)() +{ + return (void*) new cbHintAnimationPlugin(); +} + +EWXWEXPORT(void*,cbHintAnimationPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbHintAnimationPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbHintAnimationPlugin_Delete)(void* _obj) +{ + delete (cbHintAnimationPlugin*)_obj; +} + +EWXWEXPORT(void*,wxNewBitmapButton_Create)(void* labelBitmap, void* labelText, int alignText, int isFlat, int firedEventType, int marginX, int marginY, int textToLabelGap, int isSticky) +{ + return (void*) new wxNewBitmapButton(*((wxBitmap*)labelBitmap), (char*)labelText, alignText, isFlat != 0, firedEventType, marginX, marginY, textToLabelGap, isSticky != 0); +} + +EWXWEXPORT(void*,wxNewBitmapButton_CreateFromFile)(void* bitmapFileName, int bitmapFileType, void* labelText, int alignText, int isFlat, int firedEventType, int marginX, int marginY, int textToLabelGap, int isSticky) +{ + return (void*) new wxNewBitmapButton((char*)bitmapFileName, (wxBitmapType)bitmapFileType, (char*)labelText, alignText, isFlat != 0, firedEventType, marginX, marginY, textToLabelGap, isSticky != 0); +} + +EWXWEXPORT(void,wxNewBitmapButton_Realize)(void* _obj, void* _prt, int _id, int _x, int _y, int _w, int _h) +{ + ((wxNewBitmapButton*)_obj)->Create((wxWindow*)_prt, (wxWindowID)_id, wxPoint(_x, _y), wxSize(_w, _h)); +} + +EWXWEXPORT(void,wxNewBitmapButton_Delete)(void* _obj) +{ + delete (wxNewBitmapButton*)_obj; +} + +EWXWEXPORT(void,wxNewBitmapButton_Reshape)(void* _obj) +{ + ((wxNewBitmapButton*)_obj)->Reshape(); +} + +EWXWEXPORT(void,wxNewBitmapButton_SetLabel)(void* _obj, void* labelBitmap, void* labelText) +{ + ((wxNewBitmapButton*)_obj)->SetLabel(*((wxBitmap*)labelBitmap), (char*)labelText); +} + +EWXWEXPORT(void,wxNewBitmapButton_SetAlignments)(void* _obj, int alignText, int marginX, int marginY, int textToLabelGap) +{ + ((wxNewBitmapButton*)_obj)->SetAlignments(alignText, marginX, marginY, textToLabelGap); +} + +EWXWEXPORT(void,wxNewBitmapButton_DrawDecorations)(void* _obj, void* dc) +{ + ((wxNewBitmapButton*)_obj)->DrawDecorations(*((wxDC*)dc)); +} + +EWXWEXPORT(void,wxNewBitmapButton_DrawLabel)(void* _obj, void* dc) +{ + ((wxNewBitmapButton*)_obj)->DrawLabel(*((wxDC*)dc)); +} + +EWXWEXPORT(void,wxNewBitmapButton_RenderLabelImage)(void* _obj, void* destBmp, void* srcBmp, int isEnabled, int isPressed) +{ + ((wxNewBitmapButton*)_obj)->RenderLabelImage((wxBitmap*)destBmp, (wxBitmap*)srcBmp, isEnabled != 0, isPressed != 0); +} + +EWXWEXPORT(void,wxNewBitmapButton_RenderLabelImages)(void* _obj) +{ + ((wxNewBitmapButton*)_obj)->RenderLabelImages(); +} + +EWXWEXPORT(void,wxNewBitmapButton_RenderAllLabelImages)(void* _obj) +{ + ((wxNewBitmapButton*)_obj)->RenderAllLabelImages(); +} + +EWXWEXPORT(int,wxNewBitmapButton_Enable)(void* _obj, int enable) +{ + return (int)((wxNewBitmapButton*)_obj)->Enable(enable != 0); +} + +EWXWEXPORT(void*,cbPaneDrawPlugin_CreateDefault)() +{ + return (void*) new cbPaneDrawPlugin(); +} + +EWXWEXPORT(void*,cbPaneDrawPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbPaneDrawPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbPaneDrawPlugin_Delete)(void* _obj) +{ + delete (cbPaneDrawPlugin*)_obj; +} + +EWXWEXPORT(void*,cbRowDragPlugin_CreateDefault)() +{ + return (void*) new cbRowDragPlugin(); +} + +EWXWEXPORT(void*,cbRowDragPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbRowDragPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbRowDragPlugin_Delete)(void* _obj) +{ + delete (cbRowDragPlugin*)_obj; +} + +EWXWEXPORT(void*,cbRowLayoutPlugin_CreateDefault)() +{ + return (void*) new cbRowLayoutPlugin(); +} + +EWXWEXPORT(void*,cbRowLayoutPlugin_Create)(void* pPanel, int paneMask) +{ + return (void*) new cbRowLayoutPlugin((wxFrameLayout*)pPanel, paneMask); +} + +EWXWEXPORT(void,cbRowLayoutPlugin_Delete)(void* _obj) +{ + delete (cbRowLayoutPlugin*)_obj; +} + +EWXWEXPORT(void*,cbPluginBase_Plugin)(int _swt) +{ + switch (_swt) + { + case 0: + return CLASSINFO(cbAntiflickerPlugin); + + case 1: + return CLASSINFO(cbBarDragPlugin); + + case 2: + return CLASSINFO(cbBarHintsPlugin); + + case 3: + return CLASSINFO(cbSimpleCustomizationPlugin); + + case 4: + return CLASSINFO(cbHintAnimationPlugin); + + case 5: + return CLASSINFO(cbPaneDrawPlugin); + + case 6: + return CLASSINFO(cbRowDragPlugin); + + case 7: + return CLASSINFO(cbRowLayoutPlugin); + + default: + return NULL; + } +} + +EWXWEXPORT(void*,cbCommonPaneProperties_CreateDefault)() +{ + return (void*)new cbCommonPaneProperties(); +} + +EWXWEXPORT(void,cbCommonPaneProperties_Delete)(void* _obj) +{ + delete (cbCommonPaneProperties*)_obj; +} + +EWXWEXPORT(int,cbCommonPaneProperties_RealTimeUpdatesOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mRealTimeUpdatesOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_OutOfPaneDragOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mOutOfPaneDragOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_ExactDockPredictionOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mExactDockPredictionOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_NonDestructFrictionOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mNonDestructFrictionOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_Show3DPaneBorderOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mShow3DPaneBorderOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_BarFloatingOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mBarFloatingOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_RowProportionsOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mRowProportionsOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_ColProportionsOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mColProportionsOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_BarCollapseIconsOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mBarCollapseIconsOn; +} + +EWXWEXPORT(int,cbCommonPaneProperties_BarDragHintsOn)(void* _obj) +{ + return (int)((cbCommonPaneProperties*)_obj)->mBarDragHintsOn; +} + +EWXWEXPORT(void,cbCommonPaneProperties_MinCBarDim)(void* _obj, void* _w, void* _h) +{ + wxSize size = ((cbCommonPaneProperties*)_obj)->mMinCBarDim; + *((int*)_w) = size.x; + *((int*)_h) = size.y; +} + +EWXWEXPORT(int,cbCommonPaneProperties_ResizeHandleSize)(void* _obj) +{ + return ((cbCommonPaneProperties*)_obj)->mResizeHandleSize; +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetRealTimeUpdatesOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mRealTimeUpdatesOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetOutOfPaneDragOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mOutOfPaneDragOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetExactDockPredictionOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mExactDockPredictionOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetNonDestructFrictionOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mNonDestructFrictionOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetShow3DPaneBorderOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mShow3DPaneBorderOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetBarFloatingOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mBarFloatingOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetRowProportionsOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mRowProportionsOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetColProportionsOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mColProportionsOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetBarCollapseIconsOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mBarCollapseIconsOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetBarDragHintsOn)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mBarDragHintsOn = (_val != 0); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetMinCBarDim)(void* _obj, int _w, int _h) +{ + ((cbCommonPaneProperties*)_obj)->mMinCBarDim = wxSize (_w, _h); +} + +EWXWEXPORT(void,cbCommonPaneProperties_SetResizeHandleSize)(void* _obj, int _val) +{ + ((cbCommonPaneProperties*)_obj)->mResizeHandleSize = _val; +} + +EWXWEXPORT(void,cbCommonPaneProperties_Assign)(void* _obj, void* _other) +{ + *((cbCommonPaneProperties*)_obj) = *((cbCommonPaneProperties*)_other); +} + +} diff --git a/wxc/src/ewxw/eljfont.cpp b/wxc/src/ewxw/eljfont.cpp new file mode 100644 index 00000000..cc3fb4fd --- /dev/null +++ b/wxc/src/ewxw/eljfont.cpp @@ -0,0 +1,242 @@ +#include "wrapper.h" +#include "wx/fontenum.h" +#include "wx/fontmap.h" +#include "wx/encconv.h" + +extern "C" +{ + +typedef int _cdecl (*TTextEnum) (void* _obj, void* _txt); + +} + +class ELJFontEnumerator : public wxFontEnumerator +{ + private: + TTextEnum func; + void* EiffelObject; + public: + ELJFontEnumerator (void* _obj, void* _fnc) : wxFontEnumerator() + { + func = (TTextEnum)_fnc; + EiffelObject = _obj; + } + + virtual bool OnFacename(const wxString& facename) + { + return func(EiffelObject, (void*)facename.c_str()) != 0; + } + virtual bool OnFontEncoding(const wxString& WXUNUSED(facename), const wxString& encoding) + { + return func(EiffelObject, (void*)encoding.c_str()) != 0; + } + +}; + +extern "C" +{ + +EWXWEXPORT(void*, wxFont_Create) (int pointSize, int family, int style, int weight, int underlined, char* face, int enc) +{ + return new wxFont (pointSize, family, style, weight, underlined != 0, face, (wxFontEncoding)enc); +} + +EWXWEXPORT(void*, wxFont_CreateDefault)() +{ + return new wxFont (); +} + +EWXWEXPORT(void, wxFont_Delete)(void* _obj) +{ + delete ((wxFont*)_obj); +} + +EWXWEXPORT(int, wxFont_Ok)(void* _obj) +{ + return (int)((wxFont*)_obj)->Ok(); +} + +EWXWEXPORT(int, wxFont_GetPointSize)(void* _obj) +{ + return ((wxFont*)_obj)->GetPointSize(); +} + +EWXWEXPORT(int, wxFont_GetFamily)(void* _obj) +{ + return ((wxFont*)_obj)->GetFamily(); +} + +EWXWEXPORT(int, wxFont_GetStyle)(void* _obj) +{ + return ((wxFont*)_obj)->GetStyle(); +} + +EWXWEXPORT(int, wxFont_GetWeight)(void* _obj) +{ + return ((wxFont*)_obj)->GetWeight(); +} + +EWXWEXPORT(int, wxFont_GetUnderlined)(void* _obj) +{ + return (int)((wxFont*)_obj)->GetUnderlined(); +} + +EWXWEXPORT(int, wxFont_GetFaceName)(void* _obj, void* _buf) +{ + wxString result = ((wxFont*)_obj)->GetFaceName(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFont_GetEncoding)(void* _obj) +{ + return (int)((wxFont*)_obj)->GetEncoding(); +} + +EWXWEXPORT(void, wxFont_SetPointSize)(void* _obj, int pointSize) +{ + ((wxFont*)_obj)->SetPointSize(pointSize); +} + +EWXWEXPORT(void, wxFont_SetFamily)(void* _obj, int family) +{ + ((wxFont*)_obj)->SetFamily(family); +} + +EWXWEXPORT(void, wxFont_SetStyle)(void* _obj, int style) +{ + ((wxFont*)_obj)->SetStyle(style); +} + +EWXWEXPORT(void, wxFont_SetWeight)(void* _obj, int weight) +{ + ((wxFont*)_obj)->SetWeight(weight); +} + +EWXWEXPORT(void, wxFont_SetFaceName)(void* _obj, char* faceName) +{ + ((wxFont*)_obj)->SetFaceName(faceName); +} + +EWXWEXPORT(void, wxFont_SetUnderlined)(void* _obj, int underlined) +{ + ((wxFont*)_obj)->SetUnderlined(underlined != 0); +} + +EWXWEXPORT(void, wxFont_SetEncoding)(void* _obj, int encoding) +{ + ((wxFont*)_obj)->SetEncoding((wxFontEncoding)encoding); +} + +EWXWEXPORT(int, wxFont_GetFamilyString)(void* _obj, void* _buf) +{ + wxString result = ((wxFont*)_obj)->GetFamilyString(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFont_GetStyleString)(void* _obj, void* _buf) +{ + wxString result = ((wxFont*)_obj)->GetStyleString(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFont_GetWeightString)(void* _obj, void* _buf) +{ + wxString result = ((wxFont*)_obj)->GetWeightString(); + if (_buf) memcpy (_buf, result.c_str(), result.Length()); + return result.Length(); +} + +EWXWEXPORT(int, wxFont_GetDefaultEncoding)(void* _obj) +{ + return (int)((wxFont*)_obj)->GetDefaultEncoding(); +} + +EWXWEXPORT(void, wxFont_SetDefaultEncoding)(void* _obj, int encoding) +{ + ((wxFont*)_obj)->SetDefaultEncoding((wxFontEncoding) encoding); +} + + +EWXWEXPORT(void*, wxFontEnumerator_Create)(void* _obj, void* _fnc) +{ + return (void*) new ELJFontEnumerator(_obj, _fnc); +} + +EWXWEXPORT(void, wxFontEnumerator_Delete)(void* _obj) +{ + delete ((ELJFontEnumerator*)_obj); +} + +EWXWEXPORT(int,wxFontEnumerator_EnumerateFacenames)(void* _obj, int encoding, int fixedWidthOnly) +{ + return (int)((ELJFontEnumerator*)_obj)->EnumerateFacenames((wxFontEncoding)encoding, fixedWidthOnly != 0); +} + +EWXWEXPORT(int,wxFontEnumerator_EnumerateEncodings)(void* _obj, void* facename) +{ + return (int)((ELJFontEnumerator*)_obj)->EnumerateEncodings((const char*)facename); +} + + +EWXWEXPORT(void*, wxFontMapper_Create)() +{ + return wxTheFontMapper; +} + +EWXWEXPORT(int,wxFontMapper_GetAltForEncoding)(void* _obj, int encoding, void* alt_encoding, void* _buf) +{ + return (int)((wxFontMapper*)_obj)->GetAltForEncoding((wxFontEncoding)encoding, (wxFontEncoding*)alt_encoding, (const char*)_buf, false); +} + +EWXWEXPORT(int,wxFontMapper_IsEncodingAvailable)(void* _obj, int encoding, void* _buf) +{ + return (int)((wxFontMapper*)_obj)->IsEncodingAvailable((wxFontEncoding)encoding, (const char*)_buf); +} + + +EWXWEXPORT(void*, wxEncodingConverter_Create)() +{ + return (void*) new wxEncodingConverter(); +} + +EWXWEXPORT(void, wxEncodingConverter_Delete)(void* _obj) +{ + delete (wxEncodingConverter*)_obj; +} + +EWXWEXPORT(int,wxEncodingConverter_Init)(void* _obj, int input_enc, int output_enc, int method) +{ + return (int)((wxEncodingConverter*)_obj)->Init((wxFontEncoding)input_enc, (wxFontEncoding)output_enc, method); +} + +EWXWEXPORT(void,wxEncodingConverter_Convert)(void* _obj, void* input, void* output) +{ + ((wxEncodingConverter*)_obj)->Convert((const char*)input, (char*)output); +} + +EWXWEXPORT(int,wxEncodingConverter_GetPlatformEquivalents)(void* _obj, int enc, int platform, void* _lst) +{ + wxFontEncodingArray arr = ((wxEncodingConverter*)_obj)->GetPlatformEquivalents((wxFontEncoding)enc, platform); + if (_lst) + { + for (unsigned int i = 0; i < arr.GetCount(); i++) + ((int*)_lst)[i] = (int)arr.Item(i); + } + return (int)arr.GetCount(); +} + +EWXWEXPORT(int,wxEncodingConverter_GetAllEquivalents)(void* _obj, int enc, void* _lst) +{ + wxFontEncodingArray arr = ((wxEncodingConverter*)_obj)->GetAllEquivalents((wxFontEncoding)enc); + if (_lst) + { + for (unsigned int i = 0; i < arr.GetCount(); i++) + ((int*)_lst)[i] = (int)arr.Item(i); + } + return (int)arr.GetCount(); +} + +} diff --git a/wxc/src/ewxw/eljfontdata.cpp b/wxc/src/ewxw/eljfontdata.cpp new file mode 100644 index 00000000..23f93a82 --- /dev/null +++ b/wxc/src/ewxw/eljfontdata.cpp @@ -0,0 +1,91 @@ +#include "wrapper.h" + +extern "C" +{ + +EWXWEXPORT(void*, wxFontData_Create) () +{ + return (void*) new wxFontData(); +} + +EWXWEXPORT(void, wxFontData_Delete) (void* _obj) +{ + delete (wxFontData*)_obj; +} + +EWXWEXPORT(void, wxFontData_SetAllowSymbols)(void* _obj, int flag) +{ + ((wxFontData*)_obj)->SetAllowSymbols(flag != 0); +} + +EWXWEXPORT(int, wxFontData_GetAllowSymbols)(void* _obj) +{ + return (int)((wxFontData*)_obj)->GetAllowSymbols(); +} + +EWXWEXPORT(void, wxFontData_SetColour)(void* _obj, void* colour) +{ + ((wxFontData*)_obj)->SetColour(*((wxColour*)colour)); +} + +EWXWEXPORT(void, wxFontData_GetColour)(void* _obj, void* _ref) +{ + *((wxColour*)_ref) = ((wxFontData*)_obj)->GetColour(); +} + +EWXWEXPORT(void, wxFontData_SetShowHelp)(void* _obj, int flag) +{ + ((wxFontData*)_obj)->SetShowHelp(flag != 0); +} + +EWXWEXPORT(int, wxFontData_GetShowHelp)(void* _obj) +{ + return (int)((wxFontData*)_obj)->GetShowHelp(); +} + +EWXWEXPORT(void, wxFontData_EnableEffects)(void* _obj, int flag) +{ + ((wxFontData*)_obj)->EnableEffects(flag != 0); +} + +EWXWEXPORT(int, wxFontData_GetEnableEffects)(void* _obj) +{ + return (int)((wxFontData*)_obj)->GetEnableEffects(); +} + +EWXWEXPORT(void, wxFontData_SetInitialFont)(void* _obj, void* font) +{ + ((wxFontData*)_obj)->SetInitialFont(*((wxFont*)font)); +} + +EWXWEXPORT(void, wxFontData_GetInitialFont)(void* _obj, void* ref) +{ + *((wxFont*)ref) = ((wxFontData*)_obj)->GetInitialFont(); +} + +EWXWEXPORT(void, wxFontData_SetChosenFont)(void* _obj, void* font) +{ + ((wxFontData*)_obj)->SetChosenFont(*((wxFont*)font)); +} + +EWXWEXPORT(void, wxFontData_GetChosenFont)(void* _obj, void* ref) +{ + *((wxFont*)ref) = ((wxFontData*)_obj)->GetChosenFont(); +} + +EWXWEXPORT(void, wxFontData_SetRange)(void* _obj, int minRange, int maxRange) +{ + ((wxFontData*)_obj)->SetRange(minRange, maxRange); +} + +EWXWEXPORT(int, wxFontData_GetEncoding)(void* _obj) +{ + return (int)((wxFontData*)_obj)->GetEncoding(); +} + +EWXWEXPORT(void, wxFontData_SetEncoding)(void* _obj, int encoding) +{ + ((wxFontData*)_obj)->SetEncoding((wxFontEncoding)encoding); +} + +} diff --git a/wxc/src/ewxw/eljfontdlg.cpp b/wxc/src/ewxw/eljfontdlg.cpp new file mode 100644 index 00000000..8c4bbedf --- /dev/null +++ b/wxc/src/ewxw/eljfontdlg.cpp @@ -0,0 +1,16 @@ +#include "wrapper.h" + +extern "C" +{ + +EWXWEXPORT(void*, wxFontDialog_Create) (void* _prt, void* fnt) +{ + return (void*) new wxFontDialog ((wxWindow*)_prt, (wxFontData*) fnt); +} + +EWXWEXPORT(void, wxFontDialog_GetFontData)(void* _obj, void* _ref) +{ + *((wxFontData*)_ref) = ((wxFontDialog*)_obj)->GetFontData(); +} + +} diff --git a/wxc/src/ewxw/eljframe.cpp b/wxc/src/ewxw/eljframe.cpp new file mode 100644 index 00000000..702ffbfc --- /dev/null +++ b/wxc/src/ewxw/eljframe.cpp @@ -0,0 +1,113 @@ +#include "wrapper.h" + +extern "C" +{ + +EWXWEXPORT(void*, wxFrame_Create) (void* _prt, int _id, char* _txt, int _lft, int _top, int _wdt, int _hgt, int _stl) +{ + return (void*) new wxFrame ((wxWindow*)_prt, _id, _txt, wxPoint(_lft, _top), wxSize(_wdt, _hgt), _stl); +} + +EWXWEXPORT(void*, wxFrame_CreateStatusBar)(void* _obj, int number, int style) +{ + return (void*)((wxFrame*)_obj)->CreateStatusBar(number, style, 1); +} + +EWXWEXPORT(void, wxFrame_Maximize)(void* _obj) +{ + ((wxFrame*)_obj)->Maximize(); +} + +EWXWEXPORT(void, wxFrame_Restore)(void* _obj) +{ + ((wxFrame*)_obj)->Restore(); +} + +EWXWEXPORT(void, wxFrame_Iconize)(void* _obj) +{ + ((wxFrame*)_obj)->Iconize(); +} + +EWXWEXPORT(int, wxFrame_IsMaximized)(void* _obj) +{ + return (int)((wxFrame*)_obj)->IsMaximized(); +} + +EWXWEXPORT(int, wxFrame_IsIconized)(void* _obj) +{ + return (int)((wxFrame*)_obj)->IsIconized(); +} + +EWXWEXPORT(void*, wxFrame_GetIcon)(void* _obj) +{ + return (void*) (&((wxFrame*)_obj)->GetIcon()); +} + +EWXWEXPORT(void, wxFrame_SetIcon)(void* _obj, void* _icon) +{ + ((wxFrame*)_obj)->SetIcon(*((wxIcon*) _icon)); +} + +EWXWEXPORT(int, wxFrame_GetClientAreaOrigin_left)(void* _obj) +{ + return ((wxFrame*)_obj)->GetClientAreaOrigin().x; +} + +EWXWEXPORT(int, wxFrame_GetClientAreaOrigin_top)(void* _obj) +{ + return ((wxFrame*)_obj)->GetClientAreaOrigin().y; +} + +EWXWEXPORT(void, wxFrame_SetMenuBar)(void* _obj, void* menubar) +{ + ((wxFrame*)_obj)->SetMenuBar((wxMenuBar*)menubar); +} + +EWXWEXPORT(void*, wxFrame_GetMenuBar)(void* _obj) +{ + return (void*)((wxFrame*)_obj)->GetMenuBar(); +} + +EWXWEXPORT(void*, wxFrame_GetStatusBar)(void* _obj) +{ + return (void*)((wxFrame*)_obj)->GetStatusBar(); +} + +EWXWEXPORT(void, wxFrame_SetStatusBar)(void* _obj, void* statBar) +{ + ((wxFrame*)_obj)->SetStatusBar((wxStatusBar*) statBar); +} + +EWXWEXPORT(void, wxFrame_SetStatusText)(void* _obj, char* _txt, int _number) +{ + ((wxFrame*)_obj)->SetStatusText(_txt, _number); +} + +EWXWEXPORT(void, wxFrame_SetStatusWidths)(void* _obj, int _n, void* _widths_field) +{ + ((wxFrame*)_obj)->SetStatusWidths(_n, (int*) _widths_field); +} + +EWXWEXPORT(void*, wxFrame_CreateToolBar)(void* _obj, long style) +{ + return (void*)((wxFrame*)_obj)->CreateToolBar(style, 1); +} + +EWXWEXPORT(void*, wxFrame_GetToolBar)(void* _obj) +{ + return (void*)((wxFrame*)_obj)->GetToolBar(); +} + +EWXWEXPORT(void, wxFrame_SetToolBar)(void* _obj, void* _toolbar) +{ + ((wxFrame*)_obj)->SetToolBar((wxToolBar*) _toolbar); +} + +#if wxVERSION_NUMBER >= 2400 +EWXWEXPORT(void, wxFrame_SetIcons)(void* _obj, void* _icons) +{ + ((wxFrame*)_obj)->SetIcons(*((wxIconBundle*)_icons)); +} +#endif + +} diff --git a/wxc/src/ewxw/eljgauge.cpp b/wxc/src/ewxw/eljgauge.cpp new file mode 100644 index 00000000..ef42d9dd --- /dev/null +++ b/wxc/src/ewxw/eljgauge.cpp @@ -0,0 +1,51 @@ +#include "wrapper.h" + +extern "C" +{ + +EWXWEXPORT(void*, wxGauge_Create) (void* _prt, int _id, int _rng, int _lft, int _top, int _wdt, int _hgt, int _stl) +{ + return (void*) new wxGauge ((wxWindow*)_prt, _id, _rng, wxPoint(_lft, _top), wxSize(_wdt, _hgt), _stl); +} + +EWXWEXPORT(void, wxGauge_SetShadowWidth)(void* _obj, int w) +{ + ((wxGauge*)_obj)->SetShadowWidth(w); +} + +EWXWEXPORT(void, wxGauge_SetBezelFace)(void* _obj, int w) +{ + ((wxGauge*)_obj)->SetBezelFace(w); +} + +EWXWEXPORT(void, wxGauge_SetRange)(void* _obj, int r) +{ + ((wxGauge*)_obj)->SetRange(r); +} + +EWXWEXPORT(void, wxGauge_SetValue)(void* _obj, int pos) +{ + ((wxGauge*)_obj)->SetValue(pos); +} + +EWXWEXPORT(int, wxGauge_GetShadowWidth)(void* _obj) +{ + return ((wxGauge*)_obj)->GetShadowWidth(); +} + +EWXWEXPORT(int, wxGauge_GetBezelFace)(void* _obj) +{ + return ((wxGauge*)_obj)->GetBezelFace(); +} + +EWXWEXPORT(int, wxGauge_GetRange)(void* _obj) +{ + return ((wxGauge*)_obj)->GetRange(); +} + +EWXWEXPORT(int, wxGauge_GetValue)(void* _obj) +{ + return ((wxGauge*)_obj)->GetValue(); +} + +} diff --git a/wxc/src/ewxw/eljgizmos.cpp b/wxc/src/ewxw/eljgizmos.cpp new file mode 100644 index 00000000..e3b163c3 --- /dev/null +++ b/wxc/src/ewxw/eljgizmos.cpp @@ -0,0 +1,416 @@ +#include "wrapper.h" +#include "wx/gizmos/dynamicsash.h" +#include "wx/gizmos/editlbox.h" +#include "wx/gizmos/ledctrl.h" +#include "wx/gizmos/multicell.h" +#include "wx/gizmos/splittree.h" + +class ELJSCTreeControl : public wxRemotelyScrolledTreeCtrl +{ + private: + TreeCompareFunc compare_func; + void* EiffelObject; + + public: + ELJSCTreeControl(void* _obj, + void* _cmp, + wxWindow *parent, + wxWindowID id = -1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT) : + wxRemotelyScrolledTreeCtrl (parent, id, pos, size, style) + { + EiffelObject = _obj; + compare_func = (TreeCompareFunc)_cmp; + }; + + virtual int OnCompareItems(const wxTreeItemId& item1, const wxTreeItemId& item2) + { + return EiffelObject ? compare_func (EiffelObject, (void*)&item1, (void*)&item2) : wxRemotelyScrolledTreeCtrl::OnCompareItems(item1, item2); + } + +}; + +extern "C" +{ + +EWXWEXPORT(void*,wxDynamicSashWindow_Create)(void* parent, int id, int x, int y, int w, int h, int style) +{ + return (void*) new wxDynamicSashWindow((wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style); +} + +EWXWEXPORT(void,wxDynamicSashWindow_Delete)(void* _obj) +{ + delete (wxDynamicSashWindow*)_obj; +} + +EWXWEXPORT(void*,wxDynamicSashWindow_GetHScrollBar)(void* _obj, void* child) +{ + return (void*)((wxDynamicSashWindow*)_obj)->GetHScrollBar((wxWindow*)child); +} + +EWXWEXPORT(void*,wxDynamicSashWindow_GetVScrollBar)(void* _obj, void* child) +{ + return (void*)((wxDynamicSashWindow*)_obj)->GetVScrollBar((wxWindow*)child); +} + +EWXWEXPORT(void*,wxEditableListBox_Create)(void* parent, int id, void* label, int x, int y, int w, int h, int style) +{ + return (void*) new wxEditableListBox((wxWindow*)parent, (wxWindowID)id, (char*)label, wxPoint(x, y), wxSize(w, h), (long)style); +} + +EWXWEXPORT(void,wxEditableListBox_SetStrings)(void* _obj, void* strings, int _n) +{ + wxArrayString list; + + for (int i = 0; i < _n; i++) + list.Add(((char**)strings)[i]); + + ((wxEditableListBox*)_obj)->SetStrings(list); +} + +EWXWEXPORT(int,wxEditableListBox_GetStrings)(void* _obj, void* _ref) +{ + wxArrayString list; + ((wxEditableListBox*)_obj)->GetStrings(list); + + if (_ref) + { + for (unsigned int i = 0; i < list.GetCount(); i++) + ((char**)_ref)[i] = strdup (list.Item(i).c_str()); + } + + return list.GetCount(); +} + +EWXWEXPORT(void*,wxEditableListBox_GetListCtrl)(void* _obj) +{ + return (void*)((wxEditableListBox*)_obj)->GetListCtrl(); +} + +EWXWEXPORT(void*,wxEditableListBox_GetDelButton)(void* _obj) +{ + return (void*)((wxEditableListBox*)_obj)->GetDelButton(); +} + +EWXWEXPORT(void*,wxEditableListBox_GetNewButton)(void* _obj) +{ + return (void*)((wxEditableListBox*)_obj)->GetNewButton(); +} + +EWXWEXPORT(void*,wxEditableListBox_GetUpButton)(void* _obj) +{ + return (void*)((wxEditableListBox*)_obj)->GetUpButton(); +} + +EWXWEXPORT(void*,wxEditableListBox_GetDownButton)(void* _obj) +{ + return (void*)((wxEditableListBox*)_obj)->GetDownButton(); +} + +EWXWEXPORT(void*,wxEditableListBox_GetEditButton)(void* _obj) +{ + return (void*)((wxEditableListBox*)_obj)->GetEditButton(); +} + +EWXWEXPORT(void*,wxLEDNumberCtrl_Create)(void* parent, int id, int x, int y, int w, int h, int style) +{ + return (void*) new wxLEDNumberCtrl((wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style); +} + +EWXWEXPORT(int,wxLEDNumberCtrl_GetAlignment)(void* _obj) +{ + return (int)((wxLEDNumberCtrl*)_obj)->GetAlignment(); +} + +EWXWEXPORT(int,wxLEDNumberCtrl_GetDrawFaded)(void* _obj) +{ + return (int)((wxLEDNumberCtrl*)_obj)->GetDrawFaded(); +} + +EWXWEXPORT(int,wxLEDNumberCtrl_GetValue)(void* _obj, void* _ref) +{ + wxString res = ((wxLEDNumberCtrl*)_obj)->GetValue(); + if (_ref) + memcpy (_ref, res.c_str(), res.Length()); + return res.Length(); +} + +EWXWEXPORT(void,wxLEDNumberCtrl_SetAlignment)(void* _obj, int Alignment, int Redraw) +{ + ((wxLEDNumberCtrl*)_obj)->SetAlignment((wxLEDValueAlign)Alignment, Redraw != 0); +} + +EWXWEXPORT(void,wxLEDNumberCtrl_SetDrawFaded)(void* _obj, int DrawFaded, int Redraw) +{ + ((wxLEDNumberCtrl*)_obj)->SetDrawFaded(DrawFaded != 0, Redraw != 0); +} + +EWXWEXPORT(void,wxLEDNumberCtrl_SetValue)(void* _obj, void* Value, int Redraw) +{ + ((wxLEDNumberCtrl*)_obj)->SetValue((char*)Value, Redraw != 0); +} + +EWXWEXPORT(void*,wxMultiCellItemHandle_Create)(int row, int column, int height, int width, int sx, int sy, int style, int wx, int wy, int align) +{ + return (void*) new wxMultiCellItemHandle(row, column, height, width, wxSize(sx, sy), (wxResizable)style, wxSize(wx, wy), align); +} + +EWXWEXPORT(void*,wxMultiCellItemHandle_CreateWithSize)(void* _obj, int row, int column, int sx, int sy, int style, int wx, int wy, int align) +{ + return (void*) new wxMultiCellItemHandle(row, column, wxSize(sx, sy), (wxResizable)style, wxSize(wx, wy), align); +} + +EWXWEXPORT(void*,wxMultiCellItemHandle_CreateWithStyle)(void* _obj, int row, int column, int style, int wx, int wy, int align) +{ + return (void*) new wxMultiCellItemHandle(row, column, (wxResizable)style, wxSize(wx, wy), align); +} + +EWXWEXPORT(int,wxMultiCellItemHandle_GetColumn)(void* _obj) +{ + return ((wxMultiCellItemHandle*)_obj)->GetColumn(); +} + +EWXWEXPORT(int,wxMultiCellItemHandle_GetRow)(void* _obj) +{ + return ((wxMultiCellItemHandle*)_obj)->GetRow(); +} + +EWXWEXPORT(int,wxMultiCellItemHandle_GetWidth)(void* _obj) +{ + return ((wxMultiCellItemHandle*)_obj)->GetWidth(); +} + +EWXWEXPORT(int,wxMultiCellItemHandle_GetHeight)(void* _obj) +{ + return ((wxMultiCellItemHandle*)_obj)->GetHeight(); +} + +EWXWEXPORT(int,wxMultiCellItemHandle_GetStyle)(void* _obj) +{ + return (int)((wxMultiCellItemHandle*)_obj)->GetStyle(); +} + +EWXWEXPORT(void,wxMultiCellItemHandle_GetLocalSize)(void* _obj, void* w, void* h) +{ + wxSize size = ((wxMultiCellItemHandle*)_obj)->GetLocalSize(); + *((int*)w) = size.x; + *((int*)h) = size.y; +} + +EWXWEXPORT(int,wxMultiCellItemHandle_GetAlignment)(void* _obj) +{ + return ((wxMultiCellItemHandle*)_obj)->GetAlignment(); +} + +EWXWEXPORT(void,wxMultiCellItemHandle_GetWeight)(void* _obj, void* w, void* h) +{ + wxSize size = ((wxMultiCellItemHandle*)_obj)->GetWeight(); + *((int*)w) = size.x; + *((int*)h) = size.y; +} + +EWXWEXPORT(void*,wxMultiCellSizer_Create)(int rows, int cols) +{ + return (void*) new wxMultiCellSizer(rows, cols); +} + +EWXWEXPORT(void,wxMultiCellSizer_Delete)(void* _obj) +{ + delete (wxMultiCellSizer*)_obj; +} + +EWXWEXPORT(void,wxMultiCellSizer_RecalcSizes)(void* _obj) +{ + ((wxMultiCellSizer*)_obj)->RecalcSizes(); +} + +EWXWEXPORT(void,wxMultiCellSizer_CalcMin)(void* _obj, void* w, void* h) +{ + wxSize size = ((wxMultiCellSizer*)_obj)->CalcMin(); + *((int*)w) = size.x; + *((int*)h) = size.y; +} + +EWXWEXPORT(int,wxMultiCellSizer_SetDefaultCellSize)(void* _obj, int w, int h) +{ + return (int)((wxMultiCellSizer*)_obj)->SetDefaultCellSize(wxSize(w, h)); +} + +EWXWEXPORT(int,wxMultiCellSizer_SetColumnWidth)(void* _obj, int column, int colSize, int expandable) +{ + return (int)((wxMultiCellSizer*)_obj)->SetColumnWidth(column, colSize, expandable != 0); +} + +EWXWEXPORT(int,wxMultiCellSizer_SetRowHeight)(void* _obj, int row, int rowSize, int expandable) +{ + return (int)((wxMultiCellSizer*)_obj)->SetRowHeight(row, rowSize, expandable != 0); +} + +EWXWEXPORT(int,wxMultiCellSizer_EnableGridLines)(void* _obj, void* win) +{ + return (int)((wxMultiCellSizer*)_obj)->EnableGridLines((wxWindow*)win); +} + +EWXWEXPORT(int,wxMultiCellSizer_SetGridPen)(void* _obj, void* pen) +{ + return (int)((wxMultiCellSizer*)_obj)->SetGridPen((wxPen*)pen); +} + +EWXWEXPORT(void*,wxMultiCellCanvas_Create)(void* parent, int numRows, int numCols) +{ + return (void*) new wxMultiCellCanvas((wxWindow*)parent, numRows, numCols); +} + +EWXWEXPORT(void,wxMultiCellCanvas_Add)(void* _obj, void* win, int row, int col) +{ + ((wxMultiCellCanvas*)_obj)->Add((wxWindow*)win, (unsigned int)row, (unsigned int)col); +} + +EWXWEXPORT(int,wxMultiCellCanvas_MaxRows)(void* _obj) +{ + return ((wxMultiCellCanvas*)_obj)->MaxRows(); +} + +EWXWEXPORT(int,wxMultiCellCanvas_MaxCols)(void* _obj) +{ + return ((wxMultiCellCanvas*)_obj)->MaxCols(); +} + +EWXWEXPORT(void,wxMultiCellCanvas_CalculateConstraints)(void* _obj) +{ + ((wxMultiCellCanvas*)_obj)->CalculateConstraints(); +} + +EWXWEXPORT(void,wxMultiCellCanvas_SetMinCellSize)(void* _obj, int w, int h) +{ + ((wxMultiCellCanvas*)_obj)->SetMinCellSize(wxSize(w, h)); +} + +EWXWEXPORT(void*,wxSplitterScrolledWindow_Create)(void* parent, int id, int x, int y, int w, int h, int style) +{ + return (void*) new wxSplitterScrolledWindow((wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style); +} + +EWXWEXPORT(void*,wxThinSplitterWindow_Create)(void* parent, int id, int x, int y, int w, int h, int style) +{ + return (void*) new wxThinSplitterWindow((wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style); +} + +EWXWEXPORT(void,wxThinSplitterWindow_SizeWindows)(void* _obj) +{ + ((wxThinSplitterWindow*)_obj)->SizeWindows(); +} + +EWXWEXPORT(int,wxThinSplitterWindow_SashHitTest)(void* _obj, int x, int y, int tolerance) +{ + return (int)((wxThinSplitterWindow*)_obj)->SashHitTest(x, y, tolerance); +} + +EWXWEXPORT(void,wxThinSplitterWindow_DrawSash)(void* _obj, void* dc) +{ + ((wxThinSplitterWindow*)_obj)->DrawSash(*((wxDC*)dc)); +} + +EWXWEXPORT(void*,wxTreeCompanionWindow_Create)(void* parent, int id, int x, int y, int w, int h, int style) +{ + return (void*) new wxTreeCompanionWindow((wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style); +} + +EWXWEXPORT(void,wxTreeCompanionWindow_DrawItem)(void* _obj, void* dc, void* id, int x, int y, int w, int h) +{ + ((wxTreeCompanionWindow*)_obj)->DrawItem(*((wxDC*)dc), *((wxTreeItemId*)id), wxRect(x, y, w, h)); +} + +EWXWEXPORT(void*,wxTreeCompanionWindow_GetTreeCtrl)(void* _obj) +{ + return (void*)((wxTreeCompanionWindow*)_obj)->GetTreeCtrl(); +} + +EWXWEXPORT(void,wxTreeCompanionWindow_SetTreeCtrl)(void* _obj, void* treeCtrl) +{ + ((wxTreeCompanionWindow*)_obj)->SetTreeCtrl((wxRemotelyScrolledTreeCtrl*)treeCtrl); +} + +EWXWEXPORT(void*,wxRemotelyScrolledTreeCtrl_Create)(void* _obj, void* _cmp, void* parent, int id, int x, int y, int w, int h, int style) +{ + return (void*) new ELJSCTreeControl(_obj, _cmp, (wxWindow*)parent, (wxWindowID)id, wxPoint(x, y), wxSize(w, h), (long)style); +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_Delete)(void* _obj) +{ + delete (ELJSCTreeControl*)_obj; +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_SetScrollbars)(void* _obj, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, int noUnitsY, int xPos, int yPos, int noRefresh) +{ + ((ELJSCTreeControl*)_obj)->SetScrollbars(pixelsPerUnitX, pixelsPerUnitY, noUnitsX, noUnitsY, xPos, yPos, noRefresh != 0); +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_GetViewStart)(void* _obj, void* x, void* y) +{ + ((ELJSCTreeControl*)_obj)->GetViewStart((int*)x, (int*)y); +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_PrepareDC)(void* _obj, void* dc) +{ + ((ELJSCTreeControl*)_obj)->PrepareDC(*((wxDC*)dc)); +} + +EWXWEXPORT(int,wxRemotelyScrolledTreeCtrl_GetScrollPos)(void* _obj, int orient) +{ + return ((ELJSCTreeControl*)_obj)->GetScrollPos(orient); +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_HideVScrollbar)(void* _obj) +{ + ((ELJSCTreeControl*)_obj)->HideVScrollbar(); +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_CalcTreeSize)(void* _obj, void* x, void* y, void* w, void* h) +{ + wxRect rect; + ((ELJSCTreeControl*)_obj)->CalcTreeSize(rect); + *((int*)x) = rect.x; + *((int*)y) = rect.y; + *((int*)w) = rect.width; + *((int*)h) = rect.height; +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_CalcTreeSizeItem)(void* _obj, void* id, void* x, void* y, void* w, void* h) +{ + wxRect rect; + ((ELJSCTreeControl*)_obj)->CalcTreeSize(*((wxTreeItemId*)id), rect); + *((int*)x) = rect.x; + *((int*)y) = rect.y; + *((int*)w) = rect.width; + *((int*)h) = rect.height; +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_AdjustRemoteScrollbars)(void* _obj) +{ + ((ELJSCTreeControl*)_obj)->AdjustRemoteScrollbars(); +} + +EWXWEXPORT(void*,wxRemotelyScrolledTreeCtrl_GetScrolledWindow)(void* _obj) +{ + return (void*)((ELJSCTreeControl*)_obj)->GetScrolledWindow(); +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_ScrollToLine)(void* _obj, int posHoriz, int posVert) +{ + ((ELJSCTreeControl*)_obj)->ScrollToLine(posHoriz, posVert); +} + +EWXWEXPORT(void,wxRemotelyScrolledTreeCtrl_SetCompanionWindow)(void* _obj, void* companion) +{ + ((ELJSCTreeControl*)_obj)->SetCompanionWindow((wxWindow*)companion); +} + +EWXWEXPORT(void*,wxRemotelyScrolledTreeCtrl_GetCompanionWindow)(void* _obj) +{ + return (void*)((ELJSCTreeControl*)_obj)->GetCompanionWindow(); +} + +}