#ifndef __GTKBITMAPH__
#define __GTKBITMAPH__
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma interface
#endif
wxImage ConvertToImage() const;
+ // copies the contents and mask of the given (colour) icon to the bitmap
+ virtual bool CopyFromIcon(const wxIcon& icon);
+
wxMask *GetMask() const;
void SetMask( wxMask *mask );
bool LoadFile( const wxString &name, int type = wxBITMAP_TYPE_XPM );
wxPalette *GetPalette() const;
- wxPalette *GetColourMap() const
- { return GetPalette(); };
+ wxPalette *GetColourMap() const { return GetPalette(); };
+
+ static void InitStandardHandlers() { }
+ static void CleanUpHandlers() { }
// implementation
// --------------
GdkPixmap *GetPixmap() const;
GdkBitmap *GetBitmap() const;
+ // Basically, this corresponds to Win32 StretchBlt()
+ wxBitmap Rescale( int clipx, int clipy, int clipwidth, int clipheight, int width, int height );
protected:
bool CreateFromXpm(const char **bits);
bool CreateFromImage(const wxImage& image, int depth);