]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/icon.cpp
info about digitalmars in header
[wxWidgets.git] / src / cocoa / icon.cpp
CommitLineData
a24aff65
DE
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
19IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
20#endif
21
22/*
23 * Icons
24 */
25
26
27wxIcon::wxIcon()
28{
29}
30
ce50c4d1
DE
31wxIcon::wxIcon(const char **xpm)
32{
33}
34
a24aff65
DE
35wxIcon::wxIcon(const char WXUNUSED(bits)[], int WXUNUSED(width), int WXUNUSED(height))
36{
37}
38
39wxIcon::wxIcon(const wxString& icon_file, int flags,
40 int desiredWidth, int desiredHeight)
41
42{
43 LoadFile(icon_file, (wxBitmapType)flags, desiredWidth, desiredHeight);
44}
45
46wxIcon::~wxIcon()
47{
48}
49
50bool 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
63void wxIcon::CopyFromBitmap(const wxBitmap& icno)
64{
65}
66