]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/statbmp.h
940827f806dad40958053ace76eefe57d54cd7b7
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_
16 #pragma interface "statbmp.h"
19 #include "wx/bitmap.h"
21 // ----------------------------------------------------------------------------
23 // ----------------------------------------------------------------------------
25 class 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;
67 virtual void DoDraw(wxControlRenderer
*renderer
);
69 // the bitmap which we show
72 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
75 #endif // _WX_UNIV_STATBMP_H_