]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/private/fswatcher.h
activating DrawRectangle optimization
[wxWidgets.git] / include / wx / private / fswatcher.h
index abdc8e244c9ade20e01068480fac2297bd22761d..4b7a894428a1505bda5ba19c0890e5f7683a91e0 100644 (file)
@@ -89,6 +89,12 @@ public:
         return true;
     }
 
+    // Check whether any filespec matches the file's ext (if present)
+    bool MatchesFilespec(const wxFileName& fn, const wxString& filespec) const
+    {
+        return filespec.empty() || wxMatchWild(filespec, fn.GetFullName());
+    }
+
 protected:
     virtual bool DoAdd(wxSharedPtr<wxFSWatchEntry> watch) = 0;