]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/icon.cpp
merged 2 overloaded functions into a single membersections
[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 WXUNUSED(bits)[], int WXUNUSED(width), int WXUNUSED(height))
32 {
33 }
34
35 wxIcon::wxIcon(const wxString& icon_file, int flags,
36 int desiredWidth, int desiredHeight)
37
38 {
39 LoadFile(icon_file, (wxBitmapType)flags, desiredWidth, desiredHeight);
40 }
41
42 wxIcon::~wxIcon()
43 {
44 }
45
46 bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
47 int desiredWidth, int desiredHeight)
48 {
49 UnRef();
50
51 wxBitmapHandler *handler = FindHandler(type);
52
53 if ( handler )
54 return handler->LoadFile(this, filename, type, desiredWidth, desiredHeight);
55 else
56 return FALSE;
57 }
58
59 void wxIcon::CopyFromBitmap(const wxBitmap& icno)
60 {
61 }
62