]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/statbmp.h
wxString::IsSameAs(char) added and documented as well as operator==(char)
[wxWidgets.git] / include / wx / gtk / statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: statbmp.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
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
20 #if wxUSE_STATBMP
21
22 #include "wx/object.h"
23 #include "wx/control.h"
24 #include "wx/bitmap.h"
25
26 //-----------------------------------------------------------------------------
27 // classes
28 //-----------------------------------------------------------------------------
29
30 class wxStaticBitmap;
31
32 //-----------------------------------------------------------------------------
33 // global data
34 //-----------------------------------------------------------------------------
35
36 extern const char* wxStaticBitmapNameStr;
37
38 //-----------------------------------------------------------------------------
39 // wxStaticBitmap
40 //-----------------------------------------------------------------------------
41
42 class wxStaticBitmap: public wxControl
43 {
44 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
45
46 public:
47
48 wxStaticBitmap(void);
49 wxStaticBitmap( wxWindow *parent, wxWindowID id, const wxBitmap& label,
50 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
51 long style = 0, const wxString& name = wxStaticBitmapNameStr );
52 bool Create( wxWindow *parent, wxWindowID id, const wxBitmap& label,
53 const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
54 long style = 0, const wxString& name = wxStaticBitmapNameStr);
55 virtual void SetBitmap( const wxBitmap& bitmap );
56 wxBitmap& GetBitmap(void) const { return (wxBitmap&)m_bitmap; }
57
58 private:
59
60 wxBitmap m_bitmap;
61 };
62
63 #endif
64
65 #endif // __GTKSTATICBITMAPH__