]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
8ef94bfc | 2 | // Name: wx/gtk1/statbmp.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
58614078 | 5 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 6 | // Licence: wxWindows licence |
c801d85f KB |
7 | ///////////////////////////////////////////////////////////////////////////// |
8 | ||
c801d85f KB |
9 | #ifndef __GTKSTATICBITMAPH__ |
10 | #define __GTKSTATICBITMAPH__ | |
11 | ||
2df7be7f | 12 | #include "wx/icon.h" |
c801d85f | 13 | |
c801d85f KB |
14 | //----------------------------------------------------------------------------- |
15 | // wxStaticBitmap | |
16 | //----------------------------------------------------------------------------- | |
17 | ||
20123d49 | 18 | class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase |
1a56f55c | 19 | { |
7f24bd19 VZ |
20 | public: |
21 | wxStaticBitmap(); | |
22 | wxStaticBitmap( wxWindow *parent, | |
23 | wxWindowID id, | |
24 | const wxBitmap& label, | |
25 | const wxPoint& pos = wxDefaultPosition, | |
26 | const wxSize& size = wxDefaultSize, | |
27 | long style = 0, | |
28 | const wxString& name = wxStaticBitmapNameStr ); | |
29 | bool Create( wxWindow *parent, | |
30 | wxWindowID id, | |
31 | const wxBitmap& label, | |
32 | const wxPoint& pos = wxDefaultPosition, | |
33 | const wxSize& size = wxDefaultSize, | |
34 | long style = 0, | |
35 | const wxString& name = wxStaticBitmapNameStr); | |
36 | ||
1e6feb95 | 37 | virtual void SetIcon(const wxIcon& icon) { SetBitmap( icon ); } |
1a56f55c | 38 | virtual void SetBitmap( const wxBitmap& bitmap ); |
1e6feb95 | 39 | virtual wxBitmap GetBitmap() const { return m_bitmap; } |
7f24bd19 VZ |
40 | |
41 | // for compatibility with wxMSW | |
1e6feb95 | 42 | wxIcon GetIcon() const |
c35414db VZ |
43 | { |
44 | // don't use wxDynamicCast, icons and bitmaps are really the same thing | |
45 | // in wxGTK | |
46 | return (const wxIcon &)m_bitmap; | |
47 | } | |
7f24bd19 | 48 | |
9d522606 RD |
49 | static wxVisualAttributes |
50 | GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); | |
8ef94bfc | 51 | |
7f24bd19 VZ |
52 | private: |
53 | wxBitmap m_bitmap; | |
1a56f55c | 54 | |
1e6feb95 VZ |
55 | DECLARE_DYNAMIC_CLASS(wxStaticBitmap) |
56 | }; | |
dcf924a3 | 57 | |
c801d85f | 58 | #endif // __GTKSTATICBITMAPH__ |