X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0b04c4e0bd0dc4010e02d912c6a94a08e06b5327..2dfa1d9e11128c9708bbf55feeb442471828ac63:/include/wx/gtk/bitmap.h diff --git a/include/wx/gtk/bitmap.h b/include/wx/gtk/bitmap.h index 0e74b7a631..29649632b9 100644 --- a/include/wx/gtk/bitmap.h +++ b/include/wx/gtk/bitmap.h @@ -17,9 +17,7 @@ #include "wx/palette.h" #include "wx/gdiobj.h" -#ifdef __WXGTK20__ typedef struct _GdkPixbuf GdkPixbuf; -#endif class WXDLLEXPORT wxPixelDataBase; @@ -73,11 +71,9 @@ public: wxBitmap( const char bits[], int width, int height, int depth = 1 ); wxBitmap( const char **bits ) { (void)CreateFromXpm(bits); } wxBitmap( char **bits ) { (void)CreateFromXpm((const char **)bits); } - wxBitmap( const wxBitmap& bmp ); wxBitmap( const wxString &filename, wxBitmapType type = wxBITMAP_TYPE_XPM ); wxBitmap( const wxImage& image, int depth = -1 ) { (void)CreateFromImage(image, depth); } ~wxBitmap(); - wxBitmap& operator = ( const wxBitmap& bmp ); bool operator == ( const wxBitmap& bmp ) const; bool operator != ( const wxBitmap& bmp ) const; bool Ok() const; @@ -118,17 +114,13 @@ public: void SetDepth( int depth ); void SetPixmap( GdkPixmap *pixmap ); void SetBitmap( GdkBitmap *bitmap ); -#ifdef __WXGTK20__ void SetPixbuf(GdkPixbuf *pixbuf); -#endif GdkPixmap *GetPixmap() const; GdkBitmap *GetBitmap() const; bool HasPixmap() const; -#ifdef __WXGTK20__ bool HasPixbuf() const; GdkPixbuf *GetPixbuf() const; -#endif // Basically, this corresponds to Win32 StretchBlt() wxBitmap Rescale( int clipx, int clipy, int clipwidth, int clipheight, int width, int height ); @@ -149,7 +141,6 @@ private: bool CreateFromImageAsBitmap(const wxImage& image); bool CreateFromImageAsPixmap(const wxImage& image); -#ifdef __WXGTK20__ bool CreateFromImageAsPixbuf(const wxImage& image); enum Representation @@ -162,7 +153,6 @@ private: void PurgeOtherRepresentations(Representation keep); friend class wxMemoryDC; -#endif friend class wxBitmapHandler; private: