]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/ogl/bmpshape.h
[#1472076] Fixes after stock gdi changes within core library.
[wxWidgets.git] / contrib / include / wx / ogl / bmpshape.h
CommitLineData
1fc25a89
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: bmpshape.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
2ba06d5a 9// Licence: wxWindows licence
1fc25a89
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _OGL_BITMAP_H_
13#define _OGL_BITMAP_H_
14
1fc25a89 15
5f331691 16class WXDLLIMPEXP_OGL wxBitmapShape: public wxRectangleShape
1fc25a89
JS
17{
18 DECLARE_DYNAMIC_CLASS(wxBitmapShape)
19 public:
20 wxBitmapShape();
21 ~wxBitmapShape();
22
23 void OnDraw(wxDC& dc);
24
2b5f62a0 25#if wxUSE_PROLOGIO
1fc25a89
JS
26 // I/O
27 void WriteAttributes(wxExpr *clause);
28 void ReadAttributes(wxExpr *clause);
29#endif
30
31 // Does the copying for this object
32 void Copy(wxShape& copy);
33
2ba06d5a 34 void SetSize(double w, double h, bool recursive = true);
1fc25a89
JS
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; }
39
40private:
41 wxBitmap m_bitmap;
42 wxString m_filename;
43};
44
45#endif
46 // _OGL_BITMAP_H_
47
48