X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5263701c22ed4dfff59a47b0d8a3f8ab1396688..4ed51f4d1c02f01489df35b25a96a1d5b25c1478:/wxPython/src/_image.i diff --git a/wxPython/src/_image.i b/wxPython/src/_image.i index 0c28784711..6b315bc824 100644 --- a/wxPython/src/_image.i +++ b/wxPython/src/_image.i @@ -232,6 +232,7 @@ public: }; + class wxImage : public wxObject { public: %typemap(out) wxImage*; // turn off this typemap @@ -668,8 +669,9 @@ object, using a MIME type string to specify the image file format.", "", DocDeclStr( - bool , Ok(), + bool , IsOk(), "Returns true if image data is present.", ""); + %pythoncode { Ok = IsOk } DocDeclStr( int , GetWidth(), @@ -1035,7 +1037,7 @@ range -1.0..1.0 where -1.0 is -360 degrees and 1.0 is 360 degrees", ""); "Converts a color in HSV color space to RGB color space.", ""); - %pythoncode { def __nonzero__(self): return self.Ok() } + %pythoncode { def __nonzero__(self): return self.IsOk() } %property(AlphaBuffer, GetAlphaBuffer, SetAlphaBuffer, doc="See `GetAlphaBuffer` and `SetAlphaBuffer`"); %property(AlphaData, GetAlphaData, SetAlphaData, doc="See `GetAlphaData` and `SetAlphaData`"); @@ -1045,8 +1047,8 @@ range -1.0..1.0 where -1.0 is -360 degrees and 1.0 is 360 degrees", ""); %property(MaskBlue, GetMaskBlue, doc="See `GetMaskBlue`"); %property(MaskGreen, GetMaskGreen, doc="See `GetMaskGreen`"); %property(MaskRed, GetMaskRed, doc="See `GetMaskRed`"); - %property(Size, GetSize, doc="See `GetSize`"); %property(Width, GetWidth, doc="See `GetWidth`"); + }; @@ -1261,7 +1263,12 @@ public: }; -#if wxUSE_IFF + +#if 0 +%{ +#include +%} + DocStr(wxIFFHandler, "A `wx.ImageHandler` for IFF image files.", ""); class wxIFFHandler : public wxImageHandler { @@ -1270,6 +1277,19 @@ public: }; #endif + +%{ +#include +%} + +DocStr(wxTGAHandler, +"A `wx.ImageHandler` for TGA image files.", ""); +class wxTGAHandler : public wxImageHandler { +public: + wxTGAHandler(); +}; + + //--------------------------------------------------------------------------- %{