]>
git.saurik.com Git - wxWidgets.git/blob - src/cocoa/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
)
31 wxIcon::wxIcon(const char WXUNUSED(bits
)[], int WXUNUSED(width
), int WXUNUSED(height
))
35 wxIcon::wxIcon(const wxString
& icon_file
, int flags
,
36 int desiredWidth
, int desiredHeight
)
39 LoadFile(icon_file
, (wxBitmapType
)flags
, desiredWidth
, desiredHeight
);
46 bool wxIcon::LoadFile(const wxString
& filename
, wxBitmapType type
,
47 int desiredWidth
, int desiredHeight
)
51 wxBitmapHandler
*handler
= FindHandler(type
);
54 return handler
->LoadFile(this, filename
, type
, desiredWidth
, desiredHeight
);
59 void wxIcon::CopyFromBitmap(const wxBitmap
& icno
)