]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/statbmp.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / cocoa / statbmp.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/statbmp.h
3 // Purpose: wxStaticBitmap class
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2003/03/16
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __WX_COCOA_STATBMP_H__
12 #define __WX_COCOA_STATBMP_H__
13
14 DECLARE_WXCOCOA_OBJC_CLASS(NSImageView);
15
16 // ========================================================================
17 // wxStaticBitmap
18 // ========================================================================
19 class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase //, protected wxCocoaNSxxx
20 {
21 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
22 DECLARE_EVENT_TABLE()
23 // WX_DECLARE_COCOA_OWNER(NSxxx,NSControl,NSView)
24 // ------------------------------------------------------------------------
25 // initialization
26 // ------------------------------------------------------------------------
27 public:
28 wxStaticBitmap() {}
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)
34 {
35 Create(parent, winid, bitmap, pos, size, style, name);
36 }
37
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();
44
45 // ------------------------------------------------------------------------
46 // Cocoa specifics
47 // ------------------------------------------------------------------------
48 WX_NSImageView GetNSImageView() { return (WX_NSImageView)m_cocoaNSView; }
49 wxBitmap m_bitmap;
50
51 // ------------------------------------------------------------------------
52 // Implementation
53 // ------------------------------------------------------------------------
54 virtual void SetIcon(const wxIcon& icon);
55 virtual void SetBitmap(const wxBitmap& bitmap);
56 virtual wxBitmap GetBitmap() const;
57 };
58
59 #endif // __WX_COCOA_STATBMP_H__