IMPLEMENT_DYNAMIC_CLASS(wxIcon, wxBitmap)
#endif
+#include "wx/mac/private.h"
+
+
/*
* Icons
*/
}
wxIcon::wxIcon(const char bits[], int width, int height) :
- wxBitmap(bits,width,height )
+ wxBitmap(bits, width, height)
{
}
wxIcon::wxIcon( const char **bits ) :
- wxBitmap(bits )
+ wxBitmap(bits)
{
}
wxIcon::wxIcon( char **bits ) :
- wxBitmap(bits )
+ wxBitmap(bits)
{
}
-wxIcon::wxIcon(const wxString& icon_file, long flags,
+wxIcon::wxIcon(const wxString& icon_file, int flags,
int desiredWidth, int desiredHeight)
-
{
- LoadFile(icon_file, flags, desiredWidth, desiredHeight);
+ LoadFile(icon_file, (wxBitmapType) flags, desiredWidth, desiredHeight);
}
wxIcon::~wxIcon()
{
}
-bool wxIcon::LoadFile(const wxString& filename, long type,
+bool wxIcon::LoadFile(const wxString& filename, wxBitmapType type,
int desiredWidth, int desiredHeight)
{
UnRef();
int desiredWidth, int desiredHeight)
{
short theId = -1 ;
- if ( name == "wxICON_INFO" )
+ if ( name == "wxICON_INFORMATION" )
{
theId = kNoteIcon ;
}