Changes needed to enable wxGTK compatibility.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-02-20 10:02:38 +00:00
parent 1176513863
commit b57bdb5a3f
3 changed files with 28 additions and 2 deletions

View File

@@ -524,9 +524,16 @@ public:
wxImageList(int width, int height, const bool mask=TRUE, int initialCount=1); wxImageList(int width, int height, const bool mask=TRUE, int initialCount=1);
~wxImageList(); ~wxImageList();
#ifdef __WXMSW__
int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap); int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
%name(AddWithColourMask)int Add(const wxBitmap& bitmap, const wxColour& maskColour); %name(AddWithColourMask)int Add(const wxBitmap& bitmap, const wxColour& maskColour);
%name(AddIcon)int Add(const wxIcon& icon); %name(AddIcon)int Add(const wxIcon& icon);
bool Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
%name(ReplaceIcon)bool Replace(int index, const wxIcon& icon);
#else
int Add(const wxBitmap& bitmap);
bool Replace(int index, const wxBitmap& bitmap);
#endif
bool Draw(int index, wxDC& dc, int x, int x, int flags = wxIMAGELIST_DRAW_NORMAL, bool Draw(int index, wxDC& dc, int x, int x, int flags = wxIMAGELIST_DRAW_NORMAL,
const bool solidBackground = FALSE); const bool solidBackground = FALSE);
@@ -534,8 +541,6 @@ public:
int GetImageCount(); int GetImageCount();
bool Remove(int index); bool Remove(int index);
bool RemoveAll(); bool RemoveAll();
bool Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
%name(ReplaceIcon)bool Replace(int index, const wxIcon& icon);
}; };
@@ -544,6 +549,9 @@ public:
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //
// $Log$ // $Log$
// Revision 1.14 1999/02/20 10:02:36 RD
// Changes needed to enable wxGTK compatibility.
//
// Revision 1.13 1999/02/20 09:02:58 RD // Revision 1.13 1999/02/20 09:02:58 RD
// Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a // Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
// window handle. If you can get the window handle into the python code, // window handle. If you can get the window handle into the python code,

View File

@@ -388,7 +388,9 @@ public:
void SetTip(const wxString& tip); void SetTip(const wxString& tip);
wxString GetTip(); wxString GetTip();
#ifndef __WXGTK__
void SetWindow(wxWindow *win); void SetWindow(wxWindow *win);
#endif
wxWindow *GetWindow(); wxWindow *GetWindow();
}; };
@@ -407,6 +409,9 @@ public:
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //
// $Log$ // $Log$
// Revision 1.12 1999/02/20 10:02:37 RD
// Changes needed to enable wxGTK compatibility.
//
// Revision 1.11 1999/02/20 09:03:01 RD // Revision 1.11 1999/02/20 09:03:01 RD
// Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a // Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
// window handle. If you can get the window handle into the python code, // window handle. If you can get the window handle into the python code,

View File

@@ -64,7 +64,9 @@ public:
void Center(int direction = wxHORIZONTAL); void Center(int direction = wxHORIZONTAL);
void Centre(int direction = wxHORIZONTAL); void Centre(int direction = wxHORIZONTAL);
%name(ClientToScreenXY)void ClientToScreen(int *BOTH, int *BOTH); %name(ClientToScreenXY)void ClientToScreen(int *BOTH, int *BOTH);
#ifndef __WXGTK__
wxPoint ClientToScreen(const wxPoint& pt); wxPoint ClientToScreen(const wxPoint& pt);
#endif
bool Close(int force = FALSE); bool Close(int force = FALSE);
bool Destroy(); bool Destroy();
void DestroyChildren(); void DestroyChildren();
@@ -118,7 +120,9 @@ public:
void Lower(); void Lower();
void MakeModal(bool flag); void MakeModal(bool flag);
%name(MoveXY)void Move(int x, int y); %name(MoveXY)void Move(int x, int y);
#ifndef __WXGTK__
void Move(const wxPoint& point); void Move(const wxPoint& point);
#endif
//wxEvtHandler* PopEventHandler(bool deleteHandler = FALSE); //wxEvtHandler* PopEventHandler(bool deleteHandler = FALSE);
bool PopupMenu(wxMenu *menu, int x, int y); bool PopupMenu(wxMenu *menu, int x, int y);
@@ -128,7 +132,9 @@ public:
void Refresh(bool eraseBackground = TRUE, const wxRect* rect = NULL); void Refresh(bool eraseBackground = TRUE, const wxRect* rect = NULL);
void ReleaseMouse(); void ReleaseMouse();
%name(ScreenToClientXY)void ScreenToClient(int *BOTH, int *BOTH); %name(ScreenToClientXY)void ScreenToClient(int *BOTH, int *BOTH);
#ifndef __WXGTK__
wxPoint ScreenToClient(const wxPoint& pt); wxPoint ScreenToClient(const wxPoint& pt);
#endif
void ScrollWindow(int dx, int dy, const wxRect* rect = NULL); void ScrollWindow(int dx, int dy, const wxRect* rect = NULL);
void SetAcceleratorTable(const wxAcceleratorTable& accel); void SetAcceleratorTable(const wxAcceleratorTable& accel);
@@ -158,7 +164,9 @@ public:
void SetSizeHints(int minW=-1, int minH=-1, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1); void SetSizeHints(int minW=-1, int minH=-1, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1);
%name(SetClientSizeWH)void SetClientSize(int width, int height); %name(SetClientSizeWH)void SetClientSize(int width, int height);
#ifndef __WXGTK__
void SetClientSize(const wxSize& size); void SetClientSize(const wxSize& size);
#endif
//void SetPalette(wxPalette* palette); //void SetPalette(wxPalette* palette);
void SetCursor(const wxCursor&cursor); void SetCursor(const wxCursor&cursor);
//void SetEventHandler(wxEvtHandler* handler); //void SetEventHandler(wxEvtHandler* handler);
@@ -287,7 +295,9 @@ public:
int checkable = FALSE); int checkable = FALSE);
%name(AppendMenu)void Append(int id, const wxString& item, wxMenu *subMenu, %name(AppendMenu)void Append(int id, const wxString& item, wxMenu *subMenu,
const wxString& helpString = wxPyEmptyStr); const wxString& helpString = wxPyEmptyStr);
#ifndef __WXGTK__
%name(AppendItem)void Append(const wxMenuItem* item); %name(AppendItem)void Append(const wxMenuItem* item);
#endif
void AppendSeparator(); void AppendSeparator();
void Break(); void Break();
@@ -370,6 +380,9 @@ public:
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //
// $Log$ // $Log$
// Revision 1.13 1999/02/20 10:02:38 RD
// Changes needed to enable wxGTK compatibility.
//
// Revision 1.12 1999/02/20 09:03:03 RD // Revision 1.12 1999/02/20 09:03:03 RD
// Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a // Added wxWindow_FromHWND(hWnd) for wxMSW to construct a wxWindow from a
// window handle. If you can get the window handle into the python code, // window handle. If you can get the window handle into the python code,