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_
16 class WXDLLIMPEXP_OGL wxBitmapShape
: public wxRectangleShape
18 DECLARE_DYNAMIC_CLASS(wxBitmapShape
)
23 void OnDraw(wxDC
& dc
);
27 void WriteAttributes(wxExpr
*clause
);
28 void ReadAttributes(wxExpr
*clause
);
31 // Does the copying for this object
32 void Copy(wxShape
& copy
);
34 void SetSize(double w
, double h
, bool recursive
= true);
35 inline wxBitmap
& GetBitmap() const { return (wxBitmap
&) m_bitmap
; }
36 void SetBitmap(const wxBitmap
& bm
);
37 inline void SetFilename(const wxString
& f
) { m_filename
= f
; };
38 inline wxString
GetFilename() const { return m_filename
; }