]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/statbmp.h
added wxFlexGridSizer::Add{Row,Col}Growable() (#2603)
[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
1c4e8f38 7// RCS-ID: $Id$
da0634c1 8// Copyright: (c) 2003 David Elliott
1c4e8f38 9// Licence: wxWindows licence
da0634c1
DE
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_STATBMP_H__
13#define __WX_COCOA_STATBMP_H__
14
9cce71a0 15DECLARE_WXCOCOA_OBJC_CLASS(NSImageView);
da0634c1
DE
16
17// ========================================================================
18// wxStaticBitmap
19// ========================================================================
53a2db12 20class WXDLLIMPEXP_CORE wxStaticBitmap : public wxStaticBitmapBase //, protected wxCocoaNSxxx
da0634c1
DE
21{
22 DECLARE_DYNAMIC_CLASS(wxStaticBitmap)
23 DECLARE_EVENT_TABLE()
24// WX_DECLARE_COCOA_OWNER(NSxxx,NSControl,NSView)
25// ------------------------------------------------------------------------
26// initialization
27// ------------------------------------------------------------------------
28public:
29 wxStaticBitmap() {}
30 wxStaticBitmap(wxWindow *parent, wxWindowID winid,
31 const wxBitmap& bitmap,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize, long style = 0,
34 const wxString& name = wxStaticBitmapNameStr)
35 {
36 Create(parent, winid, bitmap, pos, size, style, name);
37 }
38
39 bool Create(wxWindow *parent, wxWindowID winid,
40 const wxBitmap& bitmap,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize, long style = 0,
43 const wxString& name = wxStaticBitmapNameStr);
44 virtual ~wxStaticBitmap();
45
46// ------------------------------------------------------------------------
47// Cocoa specifics
48// ------------------------------------------------------------------------
9cce71a0
DE
49 WX_NSImageView GetNSImageView() { return (WX_NSImageView)m_cocoaNSView; }
50 wxBitmap m_bitmap;
51
da0634c1
DE
52// ------------------------------------------------------------------------
53// Implementation
54// ------------------------------------------------------------------------
55 virtual void SetIcon(const wxIcon& icon);
56 virtual void SetBitmap(const wxBitmap& bitmap);
57 virtual wxBitmap GetBitmap() const;
58};
59
60#endif // __WX_COCOA_STATBMP_H__