1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBitmap class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATBMP_H_
13 #define _WX_STATBMP_H_
17 class WXDLLIMPEXP_CORE wxStaticBitmap
: public wxStaticBitmapBase
19 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
23 wxStaticBitmap(wxWindow
*parent
, wxWindowID id
,
24 const wxBitmap
& label
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
28 const wxString
& name
= wxStaticBitmapNameStr
)
30 Create(parent
, id
, label
, pos
, size
, style
, name
);
33 bool Create(wxWindow
*parent
, wxWindowID id
,
34 const wxBitmap
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxString
& name
= wxStaticBitmapNameStr
);
40 virtual void SetBitmap(const wxBitmap
& bitmap
);
42 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {};
43 virtual void ProcessCommand(wxCommandEvent
& WXUNUSED(event
)) {};
44 void OnPaint( wxPaintEvent
&event
) ;
46 wxBitmap
GetBitmap() const { return m_bitmap
; }
47 wxIcon
GetIcon() const
49 // icons and bitmaps are really the same thing in wxMac
50 return (const wxIcon
&)m_bitmap
;
52 void SetIcon(const wxIcon
& icon
) { SetBitmap( (const wxBitmap
&)icon
) ; }
54 // overriden base class virtuals
55 virtual bool AcceptsFocus() const { return false; }
58 virtual wxSize
DoGetBestSize() const;