- wxIcon();
-
- // Copy constructors
- inline wxIcon(const wxIcon& icon) { Ref(icon); }
- inline wxIcon(const wxIcon* icon) { if (icon) Ref(*icon); }
+ wxIcon();
+
+ // Copy constructors
+ inline wxIcon(const wxIcon& icon) { Ref(icon); }
+
+ // Initialize with XBM data
+ wxIcon(const char bits[], int width, int height);
+
+ // Initialize with XPM data
+ wxIcon(const char **data);
+ wxIcon(char **data);
+
+ wxIcon(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_XPM,
+ int desiredWidth = -1, int desiredHeight = -1)
+ {
+ LoadFile(name, type, desiredWidth, desiredHeight);
+ }