1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/statbmp.h
3 // Purpose: wxStaticBitmap class
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_STATBMP_H__
12 #define __WX_COCOA_STATBMP_H__
14 DECLARE_WXCOCOA_OBJC_CLASS(NSImageView
);
16 // ========================================================================
18 // ========================================================================
19 class WXDLLIMPEXP_CORE wxStaticBitmap
: public wxStaticBitmapBase
//, protected wxCocoaNSxxx
21 DECLARE_DYNAMIC_CLASS(wxStaticBitmap
)
23 // WX_DECLARE_COCOA_OWNER(NSxxx,NSControl,NSView)
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
29 wxStaticBitmap(wxWindow
*parent
, wxWindowID winid
,
30 const wxBitmap
& bitmap
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
, long style
= 0,
33 const wxString
& name
= wxStaticBitmapNameStr
)
35 Create(parent
, winid
, bitmap
, pos
, size
, style
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID winid
,
39 const wxBitmap
& bitmap
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
, long style
= 0,
42 const wxString
& name
= wxStaticBitmapNameStr
);
43 virtual ~wxStaticBitmap();
45 // ------------------------------------------------------------------------
47 // ------------------------------------------------------------------------
48 WX_NSImageView
GetNSImageView() { return (WX_NSImageView
)m_cocoaNSView
; }
51 // ------------------------------------------------------------------------
53 // ------------------------------------------------------------------------
54 virtual void SetIcon(const wxIcon
& icon
);
55 virtual void SetBitmap(const wxBitmap
& bitmap
);
56 virtual wxBitmap
GetBitmap() const;
59 #endif // __WX_COCOA_STATBMP_H__