]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/statbmp.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / cocoa / statbmp.h
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/statbmp.h
3// Purpose: wxStaticBitmap class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/16
da0634c1 7// Copyright: (c) 2003 David Elliott
1c4e8f38 8// Licence: wxWindows licence
da0634c1
DE
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef __WX_COCOA_STATBMP_H__
12#define __WX_COCOA_STATBMP_H__
13
9cce71a0 14DECLARE_WXCOCOA_OBJC_CLASS(NSImageView);
da0634c1
DE
15
16// ========================================================================
17// wxStaticBitmap
18// ========================================================================
53a2db12 19class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase //, protected wxCocoaNSxxx
da0634c1
DE
20{
21 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
22 DECLARE_EVENT_TABLE()
23// WX_DECLARE_COCOA_OWNER(NSxxx,NSControl,NSView)
24// ------------------------------------------------------------------------
25// initialization
26// ------------------------------------------------------------------------
27public:
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// ------------------------------------------------------------------------
9cce71a0
DE
48 WX_NSImageView GetNSImageView() { return (WX_NSImageView)m_cocoaNSView; }
49 wxBitmap m_bitmap;
50
da0634c1
DE
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__