]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/statbmp.h
GTK
[wxWidgets.git] / include / wx / gtk1 / statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: statbmp.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifndef __GTKSTATICBITMAPH__
13 #define __GTKSTATICBITMAPH__
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/object.h"
21 #include "wx/control.h"
22
23 //-----------------------------------------------------------------------------
24 // classes
25 //-----------------------------------------------------------------------------
26
27 class wxStaticBitmap;
28
29 //-----------------------------------------------------------------------------
30 // global data
31 //-----------------------------------------------------------------------------
32
33 extern const char* wxStaticBitmapNameStr;
34
35 //-----------------------------------------------------------------------------
36 // wxStaticBitmap
37 //-----------------------------------------------------------------------------
38
39 class wxStaticBitmap: public wxControl
40 {
41 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
42
43 public:
44
45 wxStaticBitmap(void);
46 wxStaticBitmap( wxWindow *parent, const wxWindowID id, const wxBitmap& label,
47 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
48 const long style = 0, const wxString& name = wxStaticBitmapNameStr );
49 bool Create( wxWindow *parent, const wxWindowID id, const wxBitmap& label,
50 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
51 const long style = 0, const wxString& name = wxStaticBitmapNameStr);
52 virtual void SetBitmap( const wxBitmap& bitmap );
53 wxBitmap& GetBitmap(void) const { return (wxBitmap&)m_bitmap; }
54
55 private:
56
57 wxBitmap m_bitmap;
58 };
59
60 #endif // __GTKSTATICBITMAPH__