]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/iconbndl.h
made wxTLW::SetIcon() non-virtual, it was already implemented in terms of
[wxWidgets.git] / include / wx / iconbndl.h
index 8a76d39eb5fa28b3dbf6fa1f0d86d80db700205b..8f8e3d1f5b98afff50be4a3925ff2e2fb60139ab 100644 (file)
@@ -78,6 +78,9 @@ public:
     // return the icon at index (must be < GetIconCount())
     wxIcon GetIconByIndex(size_t n) const;
 
+    // check if we have any icons at all
+    bool IsEmpty() const { return GetIconCount() == 0; }
+
 protected:
     virtual wxObjectRefData *CreateRefData() const;
     virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;