]>
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 **xpm
) 
  35 wxIcon::wxIcon(const char WXUNUSED(bits
)[], int WXUNUSED(width
), int WXUNUSED(height
)) 
  39 wxIcon::wxIcon(const wxString
& icon_file
, int flags
, 
  40     int desiredWidth
, int desiredHeight
) 
  43     LoadFile(icon_file
, (wxBitmapType
)flags
, desiredWidth
, desiredHeight
); 
  50 bool wxIcon::LoadFile(const wxString
& filename
, wxBitmapType type
, 
  51     int desiredWidth
, int desiredHeight
) 
  55   wxBitmapHandler 
*handler 
= FindHandler(type
); 
  58         return handler
->LoadFile(this, filename
, type
, desiredWidth
, desiredHeight
); 
  63 void wxIcon::CopyFromBitmap(const wxBitmap
& icno
)