]> git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/statbmp.h
Use RIAA wrapper for wxSpinCtrl event disabling in wxGTK.
[wxWidgets.git] / include / wx / univ / statbmp.h
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 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_UNIV_STATBMP_H_
12 #define _WX_UNIV_STATBMP_H_
13
14 #include "wx/bitmap.h"
15
16 // ----------------------------------------------------------------------------
17 // wxStaticBitmap
18 // ----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase
21 {
22 public:
23 wxStaticBitmap()
24 {
25 }
26
27 wxStaticBitmap(wxWindow *parent,
28 const wxBitmap& label,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 long style = 0)
32 {
33 Create(parent, wxID_ANY, label, pos, size, style);
34 }
35
36 wxStaticBitmap(wxWindow *parent,
37 wxWindowID id,
38 const wxBitmap& label,
39 const wxPoint& pos = wxDefaultPosition,
40 const wxSize& size = wxDefaultSize,
41 long style = 0,
42 const wxString& name = wxStaticBitmapNameStr)
43 {
44 Create(parent, id, label, pos, size, style, name);
45 }
46
47 bool Create(wxWindow *parent,
48 wxWindowID id,
49 const wxBitmap& label,
50 const wxPoint& pos = wxDefaultPosition,
51 const wxSize& size = wxDefaultSize,
52 long style = 0,
53 const wxString& name = wxStaticBitmapNameStr);
54
55 virtual void SetBitmap(const wxBitmap& bitmap);
56 virtual void SetIcon(const wxIcon& icon);
57 virtual wxBitmap GetBitmap() const { return m_bitmap; }
58
59 wxIcon GetIcon() const;
60
61 virtual bool HasTransparentBackground() { return true; }
62
63 protected:
64 virtual void DoDraw(wxControlRenderer *renderer);
65
66 private:
67 // the bitmap which we show
68 wxBitmap m_bitmap;
69
70 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
71 };
72
73 #endif // _WX_UNIV_STATBMP_H_