]>
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" | |
19 | #include "wx/object.h" | |
c801d85f KB |
20 | #include "wx/control.h" |
21 | ||
22 | //----------------------------------------------------------------------------- | |
23 | // classes | |
24 | //----------------------------------------------------------------------------- | |
25 | ||
26 | class wxStaticBitmap; | |
27 | ||
1a56f55c RR |
28 | //----------------------------------------------------------------------------- |
29 | // global data | |
30 | //----------------------------------------------------------------------------- | |
31 | ||
32 | extern const char* wxStaticBitmapNameStr; | |
33 | ||
c801d85f KB |
34 | //----------------------------------------------------------------------------- |
35 | // wxStaticBitmap | |
36 | //----------------------------------------------------------------------------- | |
37 | ||
1a56f55c RR |
38 | class wxStaticBitmap: public wxControl |
39 | { | |
40 | DECLARE_DYNAMIC_CLASS(wxStaticBitmap) | |
41 | ||
42 | public: | |
43 | ||
44 | wxStaticBitmap(void); | |
debe6624 | 45 | wxStaticBitmap( wxWindow *parent, wxWindowID id, const wxBitmap& label, |
1a56f55c | 46 | const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, |
debe6624 JS |
47 | long style = 0, const wxString& name = wxStaticBitmapNameStr ); |
48 | bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& label, | |
1a56f55c | 49 | const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, |
debe6624 | 50 | long style = 0, const wxString& name = wxStaticBitmapNameStr); |
1a56f55c RR |
51 | virtual void SetBitmap( const wxBitmap& bitmap ); |
52 | wxBitmap& GetBitmap(void) const { return (wxBitmap&)m_bitmap; } | |
58614078 | 53 | |
1a56f55c RR |
54 | private: |
55 | ||
56 | wxBitmap m_bitmap; | |
57 | }; | |
58 | ||
c801d85f | 59 | #endif // __GTKSTATICBITMAPH__ |