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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "univstatbmp.h"
19 #include "wx/bitmap.h"
21 // ----------------------------------------------------------------------------
23 // ----------------------------------------------------------------------------
25 class WXDLLEXPORT wxStaticBitmap
: public wxStaticBitmapBase
32 wxStaticBitmap(wxWindow
*parent
,
33 const wxBitmap
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
38 Create(parent
, -1, label
, pos
, size
, style
);
41 wxStaticBitmap(wxWindow
*parent
,
43 const wxBitmap
& label
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
47 const wxString
& name
= wxStaticBitmapNameStr
)
49 Create(parent
, id
, label
, pos
, size
, style
, name
);
52 bool Create(wxWindow
*parent
,
54 const wxBitmap
& label
,
55 const wxPoint
& pos
= wxDefaultPosition
,
56 const wxSize
& size
= wxDefaultSize
,
58 const wxString
& name
= wxStaticBitmapNameStr
);
60 virtual void SetBitmap(const wxBitmap
& bitmap
);
61 virtual void SetIcon(const wxIcon
& icon
);
62 virtual wxBitmap
GetBitmap() const { return m_bitmap
; }
64 wxIcon
GetIcon() const;
66 virtual bool HasTransparentBackground() { return TRUE
; }
69 virtual void DoDraw(wxControlRenderer
*renderer
);
71 // the bitmap which we show
74 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
77 #endif // _WX_UNIV_STATBMP_H_