]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/icon.cpp
fixed typo
[wxWidgets.git] / src / cocoa / icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: icon.cpp
3 // Purpose: wxIcon class
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "icon.h"
14 #endif
15
16 #include "wx/icon.h"
17
18 #if !USE_SHARED_LIBRARIES
19 IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
20 #endif
21
22 /*
23 * Icons
24 */
25
26
27 wxIcon::wxIcon()
28 {
29 }
30
31 wxIcon::wxIcon(const char **xpm)
32 {
33 }
34
35 wxIcon::wxIcon(const char WXUNUSED(bits)[], int WXUNUSED(width), int WXUNUSED(height))
36 {
37 }
38
39 wxIcon::wxIcon(const wxString& icon_file, int flags,
40 int desiredWidth, int desiredHeight)
41
42 {
43 LoadFile(icon_file, (wxBitmapType)flags, desiredWidth, desiredHeight);
44 }
45
46 wxIcon::~wxIcon()
47 {
48 }
49
50 bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
51 int desiredWidth, int desiredHeight)
52 {
53 UnRef();
54
55 wxBitmapHandler *handler = FindHandler(type);
56
57 if ( handler )
58 return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight);
59 else
60 return FALSE;
61 }
62
63 void wxIcon::CopyFromBitmap(const wxBitmap& icno)
64 {
65 }
66