mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-28 15:50:17 +08:00
more wxMac specific updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
+3
-1
@@ -1167,7 +1167,7 @@ public:
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
||||
#ifndef __WXGTK__
|
||||
#ifdef __WXMSW__
|
||||
|
||||
%{
|
||||
#include <wx/metafile.h>
|
||||
@@ -1267,7 +1267,9 @@ public:
|
||||
~wxRegion();
|
||||
|
||||
void Clear();
|
||||
#ifndef __WXMAC__
|
||||
bool Offset(wxCoord x, wxCoord y);
|
||||
#endif
|
||||
|
||||
wxRegionContain Contains(long x, long y);
|
||||
%name(ContainsPoint)wxRegionContain Contains(const wxPoint& pt);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1041,60 +1041,6 @@ class wxWindowDC(wxWindowDCPtr):
|
||||
|
||||
|
||||
|
||||
class wxMetaFilePtr(wxObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,gdic=gdic):
|
||||
if self.thisown == 1 :
|
||||
gdic.delete_wxMetaFile(self)
|
||||
def Ok(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxMetaFile_Ok,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetClipboard(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxMetaFile_SetClipboard,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSize(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxMetaFile_GetSize,(self,) + _args, _kwargs)
|
||||
if val: val = wxSizePtr(val) ; val.thisown = 1
|
||||
return val
|
||||
def GetWidth(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxMetaFile_GetWidth,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetHeight(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxMetaFile_GetHeight,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFileName(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxMetaFile_GetFileName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMetaFile instance at %s>" % (self.this,)
|
||||
class wxMetaFile(wxMetaFilePtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(gdic.new_wxMetaFile,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxMetaFileDCPtr(wxDCPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def Close(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxMetaFileDC_Close,(self,) + _args, _kwargs)
|
||||
if val: val = wxMetaFilePtr(val)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxMetaFileDC instance at %s>" % (self.this,)
|
||||
class wxMetaFileDC(wxMetaFileDCPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(gdic.new_wxMetaFileDC,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
class wxPalettePtr(wxGDIObjectPtr):
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
@@ -1175,9 +1121,6 @@ class wxRegionPtr(wxGDIObjectPtr):
|
||||
def Clear(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxRegion_Clear,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Offset(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxRegion_Offset,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Contains(self, *_args, **_kwargs):
|
||||
val = apply(gdic.wxRegion_Contains,(self,) + _args, _kwargs)
|
||||
return val
|
||||
|
||||
Reference in New Issue
Block a user