- // Copy constructors
- inline wxIcon(const wxIcon& icon) { Ref(icon); }
- inline wxIcon(const wxIcon* icon) { if (icon) Ref(*icon); }
+ wxIcon(const wxString& name, wxBitmapType type = wxICON_DEFAULT_TYPE,
+ int desiredWidth = -1, int desiredHeight = -1)
+ {
+ LoadFile(name, type, desiredWidth, desiredHeight);
+ }