]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: statbmp.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
58614078 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
c801d85f KB |
7 | // Licence: wxWindows licence |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | ||
11 | #ifndef __GTKSTATICBITMAPH__ | |
12 | #define __GTKSTATICBITMAPH__ | |
13 | ||
14 | #ifdef __GNUG__ | |
15 | #pragma interface | |
16 | #endif | |
17 | ||
18 | #include "wx/defs.h" | |
dcf924a3 RR |
19 | |
20 | #if wxUSE_STATBMP | |
21 | ||
c801d85f | 22 | #include "wx/object.h" |
c801d85f | 23 | #include "wx/control.h" |
ac57418f | 24 | #include "wx/bitmap.h" |
c801d85f KB |
25 | |
26 | //----------------------------------------------------------------------------- | |
27 | // classes | |
28 | //----------------------------------------------------------------------------- | |
29 | ||
30 | class wxStaticBitmap; | |
31 | ||
1a56f55c RR |
32 | //----------------------------------------------------------------------------- |
33 | // global data | |
34 | //----------------------------------------------------------------------------- | |
35 | ||
36 | extern const char* wxStaticBitmapNameStr; | |
37 | ||
c801d85f KB |
38 | //----------------------------------------------------------------------------- |
39 | // wxStaticBitmap | |
40 | //----------------------------------------------------------------------------- | |
41 | ||
1a56f55c RR |
42 | class wxStaticBitmap: public wxControl |
43 | { | |
44 | DECLARE_DYNAMIC_CLASS(wxStaticBitmap) | |
45 | ||
46 | public: | |
47 | ||
48 | wxStaticBitmap(void); | |
debe6624 | 49 | wxStaticBitmap( wxWindow *parent, wxWindowID id, const wxBitmap& label, |
1a56f55c | 50 | const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, |
debe6624 JS |
51 | long style = 0, const wxString& name = wxStaticBitmapNameStr ); |
52 | bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& label, | |
1a56f55c | 53 | const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, |
debe6624 | 54 | long style = 0, const wxString& name = wxStaticBitmapNameStr); |
1a56f55c RR |
55 | virtual void SetBitmap( const wxBitmap& bitmap ); |
56 | wxBitmap& GetBitmap(void) const { return (wxBitmap&)m_bitmap; } | |
58614078 | 57 | |
1a56f55c RR |
58 | private: |
59 | ||
60 | wxBitmap m_bitmap; | |
61 | }; | |
62 | ||
dcf924a3 RR |
63 | #endif |
64 | ||
c801d85f | 65 | #endif // __GTKSTATICBITMAPH__ |