]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/ogl/bmpshape.h
Applied patch [ 868061 ] Warning free OGL
[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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _OGL_BITMAP_H_
13#define _OGL_BITMAP_H_
14
ab7ce33c 15#if defined(__GNUG__) && !defined(__APPLE__)
1fc25a89
JS
16#pragma interface "bmpshape.h"
17#endif
18
1fc25a89 19
5f331691 20class WXDLLIMPEXP_OGL wxBitmapShape: public wxRectangleShape
1fc25a89
JS
21{
22 DECLARE_DYNAMIC_CLASS(wxBitmapShape)
23 public:
24 wxBitmapShape();
25 ~wxBitmapShape();
26
27 void OnDraw(wxDC& dc);
28
2b5f62a0 29#if wxUSE_PROLOGIO
1fc25a89
JS
30 // I/O
31 void WriteAttributes(wxExpr *clause);
32 void ReadAttributes(wxExpr *clause);
33#endif
34
35 // Does the copying for this object
36 void Copy(wxShape& copy);
37
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; }
43
44private:
45 wxBitmap m_bitmap;
46 wxString m_filename;
47};
48
49#endif
50 // _OGL_BITMAP_H_
51
52