]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/statbmp.h
Added wxGraphicsContext::CreateMatrix(wxAffineMatrix2D) overload.
[wxWidgets.git] / include / wx / univ / statbmp.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/statbmp.h
3// Purpose: wxStaticBitmap class for wxUniversal
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 25.08.00
7// RCS-ID: $Id$
442b35b5 8// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
65571936 9// Licence: wxWindows licence
1e6feb95
VZ
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_STATBMP_H_
13#define _WX_UNIV_STATBMP_H_
14
1e6feb95
VZ
15#include "wx/bitmap.h"
16
17// ----------------------------------------------------------------------------
18// wxStaticBitmap
19// ----------------------------------------------------------------------------
20
53a2db12 21class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase
1e6feb95
VZ
22{
23public:
24 wxStaticBitmap()
25 {
26 }
27
28 wxStaticBitmap(wxWindow *parent,
29 const wxBitmap& label,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 long style = 0)
33 {
a290fa5a 34 Create(parent, wxID_ANY, label, pos, size, style);
1e6feb95
VZ
35 }
36
37 wxStaticBitmap(wxWindow *parent,
38 wxWindowID id,
39 const wxBitmap& label,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 long style = 0,
43 const wxString& name = wxStaticBitmapNameStr)
44 {
45 Create(parent, id, label, pos, size, style, name);
46 }
47
48 bool Create(wxWindow *parent,
49 wxWindowID id,
50 const wxBitmap& label,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = 0,
54 const wxString& name = wxStaticBitmapNameStr);
55
56 virtual void SetBitmap(const wxBitmap& bitmap);
57 virtual void SetIcon(const wxIcon& icon);
58 virtual wxBitmap GetBitmap() const { return m_bitmap; }
59
60 wxIcon GetIcon() const;
61
a290fa5a 62 virtual bool HasTransparentBackground() { return true; }
6f02a879
VZ
63
64protected:
1e6feb95
VZ
65 virtual void DoDraw(wxControlRenderer *renderer);
66
6f02a879 67private:
1e6feb95
VZ
68 // the bitmap which we show
69 wxBitmap m_bitmap;
70
71 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
72};
73
74#endif // _WX_UNIV_STATBMP_H_