]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/statbmp.h
wxPython 2.1b1 for wxMSW (wxGTK coming soon)
[wxWidgets.git] / include / wx / gtk / statbmp.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: statbmp.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7f24bd19 7// Licence: wxWindows licence
c801d85f
KB
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
30class wxStaticBitmap;
31
1a56f55c
RR
32//-----------------------------------------------------------------------------
33// global data
34//-----------------------------------------------------------------------------
35
36extern const char* wxStaticBitmapNameStr;
37
c801d85f
KB
38//-----------------------------------------------------------------------------
39// wxStaticBitmap
40//-----------------------------------------------------------------------------
41
1a56f55c
RR
42class wxStaticBitmap: public wxControl
43{
7f24bd19
VZ
44 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
45
46public:
47 wxStaticBitmap();
48 wxStaticBitmap( wxWindow *parent,
49 wxWindowID id,
50 const wxBitmap& label,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 long style = 0,
54 const wxString& name = wxStaticBitmapNameStr );
55 bool Create( wxWindow *parent,
56 wxWindowID id,
57 const wxBitmap& label,
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize& size = wxDefaultSize,
60 long style = 0,
61 const wxString& name = wxStaticBitmapNameStr);
62
1a56f55c 63 virtual void SetBitmap( const wxBitmap& bitmap );
7f24bd19
VZ
64
65 wxBitmap& GetBitmap() { return m_bitmap; }
66 const wxBitmap& GetBitmap() const { return m_bitmap; }
67
68 // for compatibility with wxMSW
69 wxIcon& GetIcon()
70 { return *(wxDynamicCast(&m_bitmap, wxIcon)); }
71
72private:
73 wxBitmap m_bitmap;
1a56f55c
RR
74};
75
dcf924a3
RR
76#endif
77
c801d85f 78#endif // __GTKSTATICBITMAPH__