]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/statbmp.mm
Digital Mars compilation warnings and Unicode fixes (patch 884587)
[wxWidgets.git] / src / cocoa / statbmp.mm
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/statbmp.mm
3// Purpose: wxStaticBitmap
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
449c5673
DE
12#include "wx/wxprec.h"
13#ifndef WX_PRECOMP
14 #include "wx/app.h"
15 #include "wx/statbmp.h"
16#endif //WX_PRECOMP
da0634c1 17
0ca6987d 18#import <AppKit/NSImageView.h>
a8c80eb1 19
da0634c1
DE
20IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
21BEGIN_EVENT_TABLE(wxStaticBitmap, wxControl)
22END_EVENT_TABLE()
23// WX_IMPLEMENT_COCOA_OWNER(wxStaticBitmap,NSTextField,NSControl,NSView)
24
25bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID winid,
26 const wxBitmap& bitmap,
27 const wxPoint& pos,
28 const wxSize& size,
29 long style,
30 const wxString& name)
31{
32 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
33 return false;
34 m_cocoaNSView = NULL;
0ca6987d 35 SetNSView([[NSImageView alloc] initWithFrame: MakeDefaultNSRect(size)]);
a8c80eb1 36 [m_cocoaNSView release];
da0634c1
DE
37 if(m_parent)
38 m_parent->CocoaAddChild(this);
8d656ea9
DE
39 SetInitialFrameRect(pos,size);
40
da0634c1
DE
41 return true;
42}
43
44wxStaticBitmap::~wxStaticBitmap()
45{
da0634c1
DE
46}
47
48void wxStaticBitmap::SetIcon(const wxIcon& icon)
49{
50}
51
52void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap)
53{
54}
55
56wxBitmap wxStaticBitmap::GetBitmap() const
57{
58 return wxNullBitmap;
59}
60