]>
Commit | Line | Data |
---|---|---|
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) |
1e6feb95 VZ |
9 | // Licence: wxWindows licence |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_UNIV_STATBMP_H_ | |
13 | #define _WX_UNIV_STATBMP_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
a3870b2f | 16 | #pragma interface "univstatbmp.h" |
1e6feb95 VZ |
17 | #endif |
18 | ||
19 | #include "wx/bitmap.h" | |
20 | ||
21 | // ---------------------------------------------------------------------------- | |
22 | // wxStaticBitmap | |
23 | // ---------------------------------------------------------------------------- | |
24 | ||
25 | class wxStaticBitmap : public wxStaticBitmapBase | |
26 | { | |
27 | public: | |
28 | wxStaticBitmap() | |
29 | { | |
30 | } | |
31 | ||
32 | wxStaticBitmap(wxWindow *parent, | |
33 | const wxBitmap& label, | |
34 | const wxPoint& pos = wxDefaultPosition, | |
35 | const wxSize& size = wxDefaultSize, | |
36 | long style = 0) | |
37 | { | |
38 | Create(parent, -1, label, pos, size, style); | |
39 | } | |
40 | ||
41 | wxStaticBitmap(wxWindow *parent, | |
42 | wxWindowID id, | |
43 | const wxBitmap& label, | |
44 | const wxPoint& pos = wxDefaultPosition, | |
45 | const wxSize& size = wxDefaultSize, | |
46 | long style = 0, | |
47 | const wxString& name = wxStaticBitmapNameStr) | |
48 | { | |
49 | Create(parent, id, label, pos, size, style, name); | |
50 | } | |
51 | ||
52 | bool Create(wxWindow *parent, | |
53 | wxWindowID id, | |
54 | const wxBitmap& label, | |
55 | const wxPoint& pos = wxDefaultPosition, | |
56 | const wxSize& size = wxDefaultSize, | |
57 | long style = 0, | |
58 | const wxString& name = wxStaticBitmapNameStr); | |
59 | ||
60 | virtual void SetBitmap(const wxBitmap& bitmap); | |
61 | virtual void SetIcon(const wxIcon& icon); | |
62 | virtual wxBitmap GetBitmap() const { return m_bitmap; } | |
63 | ||
64 | wxIcon GetIcon() const; | |
65 | ||
66 | private: | |
67 | virtual void DoDraw(wxControlRenderer *renderer); | |
68 | ||
69 | // the bitmap which we show | |
70 | wxBitmap m_bitmap; | |
71 | ||
72 | DECLARE_DYNAMIC_CLASS(wxStaticBitmap) | |
73 | }; | |
74 | ||
75 | #endif // _WX_UNIV_STATBMP_H_ |