1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/statbmp.h
3 // Purpose: wxStaticBitmap class for wxUniversal
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_STATBMP_H_
12 #define _WX_UNIV_STATBMP_H_
14 #include "wx/bitmap.h"
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxStaticBitmap
: public wxStaticBitmapBase
27 wxStaticBitmap(wxWindow
*parent
,
28 const wxBitmap
& label
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
33 Create(parent
, wxID_ANY
, label
, pos
, size
, style
);
36 wxStaticBitmap(wxWindow
*parent
,
38 const wxBitmap
& label
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
42 const wxString
& name
= wxStaticBitmapNameStr
)
44 Create(parent
, id
, label
, pos
, size
, style
, name
);
47 bool Create(wxWindow
*parent
,
49 const wxBitmap
& label
,
50 const wxPoint
& pos
= wxDefaultPosition
,
51 const wxSize
& size
= wxDefaultSize
,
53 const wxString
& name
= wxStaticBitmapNameStr
);
55 virtual void SetBitmap(const wxBitmap
& bitmap
);
56 virtual void SetIcon(const wxIcon
& icon
);
57 virtual wxBitmap
GetBitmap() const { return m_bitmap
; }
59 wxIcon
GetIcon() const;
61 virtual bool HasTransparentBackground() { return true; }
64 virtual void DoDraw(wxControlRenderer
*renderer
);
67 // the bitmap which we show
70 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
73 #endif // _WX_UNIV_STATBMP_H_