]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/icon.cpp
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     wxIcon class 
   8 // Copyright:   (c) AUTHOR 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  13 #pragma implementation "icon.h" 
  18 IMPLEMENT_DYNAMIC_CLASS(wxIcon
, wxBitmap
) 
  25 wxIconRefData::wxIconRefData() 
  27     // TODO: init icon handle 
  30 wxIconRefData::~wxIconRefData() 
  32     // TODO: destroy icon handle 
  39 wxIcon::wxIcon(const char WXUNUSED(bits
)[], int WXUNUSED(width
), int WXUNUSED(height
)) 
  43 wxIcon::wxIcon(const wxString
& icon_file
, long flags
, 
  44     int desiredWidth
, int desiredHeight
) 
  47     LoadFile(icon_file
, flags
, desiredWidth
, desiredHeight
); 
  54 bool wxIcon::LoadFile(const wxString
& filename
, long type
, 
  55     int desiredWidth
, int desiredHeight
) 
  59   m_refData 
= new wxIconRefData
; 
  61   wxBitmapHandler 
*handler 
= FindHandler(type
); 
  64         return handler
->LoadFile(this, filename
, type
, desiredWidth
, desiredHeight
);