]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/bitmap.h
3d7e90c69b83b9ce7b780f3c67df55fc699dfcea
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 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 class wxMask
: public wxObject
37 DECLARE_DYNAMIC_CLASS(wxMask
)
42 wxMask( const wxBitmap
& bitmap
, const wxColour
& colour
);
43 wxMask( const wxBitmap
& bitmap
, const int paletteIndex
);
44 wxMask( const wxBitmap
& bitmap
);
49 GdkBitmap
*GetBitmap(void) const;
57 //-----------------------------------------------------------------------------
59 //-----------------------------------------------------------------------------
61 class wxBitmap
: public wxObject
63 DECLARE_DYNAMIC_CLASS(wxBitmap
)
68 wxBitmap( const int width
, const int height
, const int depth
= -1 );
69 wxBitmap( char **bits
);
70 wxBitmap( const wxBitmap
& bmp
);
71 wxBitmap( const wxBitmap
* bmp
);
72 wxBitmap( const wxString
&filename
, const int type
);
74 wxBitmap
& operator = ( const wxBitmap
& bmp
);
75 bool operator == ( const wxBitmap
& bmp
);
76 bool operator != ( const wxBitmap
& bmp
);
79 int GetHeight(void) const;
80 int GetWidth(void) const;
81 int GetDepth(void) const;
82 void SetHeight( const int height
);
83 void SetWidth( const int width
);
84 void SetDepth( const int depth
);
86 wxMask
*GetMask(void) const;
87 void SetMask( wxMask
*mask
);
89 bool SaveFile( const wxString
&name
, const int type
, wxPalette
*palette
= NULL
);
90 bool LoadFile( const wxString
&name
, const int type
);
92 wxPalette
*GetPalette(void) const;
93 wxPalette
*GetColourMap(void) const
94 { return GetPalette(); };
98 GdkPixmap
*GetPixmap(void) const;
103 #endif // __GTKBITMAPH__