]> git.saurik.com Git - wxWidgets.git/blob - utils/ogl/src/bitmap.h
* Fixes and new features in wxObject*Stream
[wxWidgets.git] / utils / ogl / src / bitmap.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: bitmap.h
3 // Purpose: wxBitmapShape
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 12/07/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _OGL_BITMAP_H_
13 #define _OGL_BITMAP_H_
14
15 #ifdef __GNUG__
16 #pragma interface "bitmap.h"
17 #endif
18
19 #include "basic.h"
20
21 class wxBitmapShape: public wxRectangleShape
22 {
23 DECLARE_DYNAMIC_CLASS(wxBitmapShape)
24 public:
25 wxBitmapShape();
26 ~wxBitmapShape();
27
28 void OnDraw(wxDC& dc);
29
30 #ifdef PROLOGIO
31 // Prolog database stuff
32 char *GetFunctor();
33 void WritePrologAttributes(wxExpr *clause);
34 void ReadPrologAttributes(wxExpr *clause);
35 #endif
36
37 // Does the copying for this object
38 void Copy(wxBitmapShape& copy);
39
40 // Returns a new instance, and does the copy for this class. Define for each class.
41 wxShape *PrivateCopy();
42
43 void SetSize(float w, float h, bool recursive = TRUE);
44 inline wxBitmap& GetBitmap() const { return (wxBitmap&) m_bitmap; }
45 void SetBitmap(const wxBitmap& bm);
46 inline void SetFilename(const wxString& f) { m_filename = f; };
47 inline wxString GetFilename() const { return m_filename; }
48
49 private:
50 wxBitmap m_bitmap;
51 wxString m_filename;
52 };
53
54 #endif
55 // _OGL_BITMAP_H_
56
57