1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/statbmp.h
3 // Purpose: wxStaticBitmap class for wxUniversal
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_STATBMP_H_
13 #define _WX_UNIV_STATBMP_H_
15 #include "wx/bitmap.h"
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 class WXDLLEXPORT wxStaticBitmap
: public wxStaticBitmapBase
28 wxStaticBitmap(wxWindow
*parent
,
29 const wxBitmap
& label
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
34 Create(parent
, wxID_ANY
, label
, pos
, size
, style
);
37 wxStaticBitmap(wxWindow
*parent
,
39 const wxBitmap
& label
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
43 const wxString
& name
= wxStaticBitmapNameStr
)
45 Create(parent
, id
, label
, pos
, size
, style
, name
);
48 bool Create(wxWindow
*parent
,
50 const wxBitmap
& label
,
51 const wxPoint
& pos
= wxDefaultPosition
,
52 const wxSize
& size
= wxDefaultSize
,
54 const wxString
& name
= wxStaticBitmapNameStr
);
56 virtual void SetBitmap(const wxBitmap
& bitmap
);
57 virtual void SetIcon(const wxIcon
& icon
);
58 virtual wxBitmap
GetBitmap() const { return m_bitmap
; }
60 wxIcon
GetIcon() const;
62 virtual bool HasTransparentBackground() { return true; }
65 virtual void DoDraw(wxControlRenderer
*renderer
);
67 // the bitmap which we show
70 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
73 #endif // _WX_UNIV_STATBMP_H_