1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxBitmapShape
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _OGL_BITMAP_H_
13 #define _OGL_BITMAP_H_
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "bmpshape.h"
20 class WXDLLIMPEXP_OGL wxBitmapShape
: public wxRectangleShape
22 DECLARE_DYNAMIC_CLASS(wxBitmapShape
)
27 void OnDraw(wxDC
& dc
);
31 void WriteAttributes(wxExpr
*clause
);
32 void ReadAttributes(wxExpr
*clause
);
35 // Does the copying for this object
36 void Copy(wxShape
& copy
);
38 void SetSize(double w
, double h
, bool recursive
= TRUE
);
39 inline wxBitmap
& GetBitmap() const { return (wxBitmap
&) m_bitmap
; }
40 void SetBitmap(const wxBitmap
& bm
);
41 inline void SetFilename(const wxString
& f
) { m_filename
= f
; };
42 inline wxString
GetFilename() const { return m_filename
; }