]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/icon.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxIcon class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "icon.h"
18 #if !USE_SHARED_LIBRARIES
19 IMPLEMENT_DYNAMIC_CLASS(wxIcon
, wxBitmap
)
27 wxIconRefData::wxIconRefData()
29 // TODO: init icon handle
32 wxIconRefData::~wxIconRefData()
34 // TODO: destroy icon handle
41 wxIcon::wxIcon(const char WXUNUSED(bits
)[], int WXUNUSED(width
), int WXUNUSED(height
))
45 wxIcon::wxIcon(const wxString
& icon_file
, long flags
,
46 int desiredWidth
, int desiredHeight
)
49 LoadFile(icon_file
, flags
, desiredWidth
, desiredHeight
);
56 bool wxIcon::LoadFile(const wxString
& filename
, long type
,
57 int desiredWidth
, int desiredHeight
)
61 m_refData
= new wxIconRefData
;
63 wxBitmapHandler
*handler
= FindHandler(type
);
66 return handler
->LoadFile(this, filename
, type
, desiredWidth
, desiredHeight
);