X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2f4c0a16186cae6d4a780b59314532fab473fb0b..409eab506ebe5454e10b7e49da263993e00399ce:/wxPython/src/mac/gdi.py?ds=sidebyside diff --git a/wxPython/src/mac/gdi.py b/wxPython/src/mac/gdi.py index 3bbd5f9bf4..22d3cca161 100644 --- a/wxPython/src/mac/gdi.py +++ b/wxPython/src/mac/gdi.py @@ -575,6 +575,14 @@ class Bitmap(GDIObject): return _gdi.Bitmap_SetDepth(*args, **kwargs) def __nonzero__(self): return self.Ok() + def __eq__(*args, **kwargs): + """__eq__(Bitmap other) -> bool""" + return _gdi.Bitmap___eq__(*args, **kwargs) + + def __ne__(*args, **kwargs): + """__ne__(Bitmap other) -> bool""" + return _gdi.Bitmap___ne__(*args, **kwargs) + class BitmapPtr(Bitmap): def __init__(self, this): @@ -3151,6 +3159,33 @@ class MetaFile(core.Object): self.this = newobj.this self.thisown = 1 del newobj.thisown + def __del__(self, destroy=_gdi.delete_MetaFile): + """__del__()""" + try: + if self.thisown: destroy(self) + except: pass + + def Ok(*args, **kwargs): + """Ok() -> bool""" + return _gdi.MetaFile_Ok(*args, **kwargs) + + def SetClipboard(*args, **kwargs): + """SetClipboard(int width=0, int height=0) -> bool""" + return _gdi.MetaFile_SetClipboard(*args, **kwargs) + + def GetSize(*args, **kwargs): + """GetSize() -> Size""" + return _gdi.MetaFile_GetSize(*args, **kwargs) + + def GetWidth(*args, **kwargs): + """GetWidth() -> int""" + return _gdi.MetaFile_GetWidth(*args, **kwargs) + + def GetHeight(*args, **kwargs): + """GetHeight() -> int""" + return _gdi.MetaFile_GetHeight(*args, **kwargs) + + def __nonzero__(self): return self.Ok() class MetaFilePtr(MetaFile): def __init__(self, this): @@ -3171,6 +3206,10 @@ class MetaFileDC(DC): self.this = newobj.this self.thisown = 1 del newobj.thisown + def Close(*args, **kwargs): + """Close() -> MetaFile""" + return _gdi.MetaFileDC_Close(*args, **kwargs) + class MetaFileDCPtr(MetaFileDC): def __init__(self, this):