]>
git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/bitmap.h
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 #pragma interface "bitmap.h"
21 class wxBitmapShape
: public wxRectangleShape
23 DECLARE_DYNAMIC_CLASS(wxBitmapShape
)
28 void OnDraw(wxDC
& dc
);
31 // Prolog database stuff
33 void WritePrologAttributes(wxExpr
*clause
);
34 void ReadPrologAttributes(wxExpr
*clause
);
37 // Does the copying for this object
38 void Copy(wxShape
& copy
);
40 void SetSize(double w
, double h
, bool recursive
= TRUE
);
41 inline wxBitmap
& GetBitmap() const { return (wxBitmap
&) m_bitmap
; }
42 void SetBitmap(const wxBitmap
& bm
);
43 inline void SetFilename(const wxString
& f
) { m_filename
= f
; };
44 inline wxString
GetFilename() const { return m_filename
; }