X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..9c039d08bfbb59c0abcbc705fb49f9b2cb321edf:/src/gtk1/icon.cpp?ds=inline diff --git a/src/gtk1/icon.cpp b/src/gtk1/icon.cpp index a65627746c..33d85df2ac 100644 --- a/src/gtk1/icon.cpp +++ b/src/gtk1/icon.cpp @@ -20,3 +20,29 @@ IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap) +wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) : + wxBitmap( bits ) +{ +} + +wxIcon::wxIcon() : wxBitmap() +{ +} + +wxIcon::wxIcon(const wxIcon& icon) : wxBitmap() +{ + Ref(icon); +} + +wxIcon::wxIcon(const wxIcon* icon) : wxBitmap() +{ + if (icon) Ref(*icon); +} + +wxIcon& wxIcon::operator = (const wxIcon& icon) +{ + if (*this == icon) return (*this); + Ref(icon); + return *this; +} +