]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/bitmap.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKBITMAPH__
13 #define __GTKBITMAPH__
20 #include "wx/object.h"
21 #include "wx/string.h"
22 #include "wx/palette.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxMask
: public wxObject
42 DECLARE_DYNAMIC_CLASS(wxMask
)
47 wxMask( const wxBitmap
& bitmap
, const wxColour
& colour
);
48 wxMask( const wxBitmap
& bitmap
, const int paletteIndex
);
49 wxMask( const wxBitmap
& bitmap
);
59 GdkBitmap
*GetBitmap(void) const;
67 //-----------------------------------------------------------------------------
69 //-----------------------------------------------------------------------------
71 class wxBitmap
: public wxObject
73 DECLARE_DYNAMIC_CLASS(wxBitmap
)
78 wxBitmap( const int width
, const int height
, const int depth
= -1 );
79 wxBitmap( char **bits
);
80 wxBitmap( const wxBitmap
& bmp
);
81 wxBitmap( const wxBitmap
* bmp
);
82 wxBitmap( const wxString
&filename
, const int type
);
84 wxBitmap
& operator = ( const wxBitmap
& bmp
);
85 bool operator == ( const wxBitmap
& bmp
);
86 bool operator != ( const wxBitmap
& bmp
);
89 int GetHeight(void) const;
90 int GetWidth(void) const;
91 int GetDepth(void) const;
92 void SetHeight( const int height
);
93 void SetWidth( const int width
);
94 void SetDepth( const int depth
);
96 wxMask
*GetMask(void) const;
97 void SetMask( wxMask
*mask
);
99 bool SaveFile( const wxString
&name
, const int type
, wxPalette
*palette
= NULL
);
100 bool LoadFile( const wxString
&name
, const int type
);
102 wxPalette
*GetPalette(void) const;
103 wxPalette
*GetColourMap(void) const
104 { return GetPalette(); };
113 GdkPixmap
*GetPixmap(void) const;
118 #endif // __GTKBITMAPH__