1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBitmap class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATBMP_H_
13 #define _WX_STATBMP_H_
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "statbmp.h"
21 class WXDLLEXPORT wxStaticBitmap
: public wxStaticBitmapBase
23 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
25 inline wxStaticBitmap() { }
27 inline wxStaticBitmap(wxWindow
*parent
, wxWindowID id
,
28 const wxBitmap
& label
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
32 const wxString
& name
= wxStaticBitmapNameStr
)
34 Create(parent
, id
, label
, pos
, size
, style
, name
);
37 bool Create(wxWindow
*parent
, wxWindowID id
,
38 const wxBitmap
& label
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
42 const wxString
& name
= wxStaticBitmapNameStr
);
44 virtual void SetBitmap(const wxBitmap
& bitmap
);
46 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {};
47 virtual void ProcessCommand(wxCommandEvent
& WXUNUSED(event
)) {};
48 void OnPaint( wxPaintEvent
&event
) ;
50 wxBitmap
GetBitmap() const { return m_bitmap
; }
51 wxIcon
GetIcon() const
53 // icons and bitmaps are really the same thing in wxMac
54 return (const wxIcon
&)m_bitmap
;
56 void SetIcon(const wxIcon
& icon
) { SetBitmap( (const wxBitmap
&)icon
) ; }
58 // overriden base class virtuals
59 virtual bool AcceptsFocus() const { return FALSE
; }
60 virtual wxSize
DoGetBestSize() const ;