]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/gdicmn.cpp
avoid using deprecated gdk_image_new_bitmap()
[wxWidgets.git] / src / common / gdicmn.cpp
index 512fa5e23ea53d66400e2b28a10c804796f7d665..d8cb7546322cd83936f949c88d2e7ede48f9e614 100644 (file)
     #include "wx/icon.h"
     #include "wx/cursor.h"
     #include "wx/settings.h"
+    #include "wx/bitmap.h"
+    #include "wx/colour.h"
+    #include "wx/font.h"
 #endif
 
-#include "wx/colour.h"
-#include "wx/bitmap.h"
-#include "wx/font.h"
-
 WXDLLIMPEXP_DATA_CORE(wxBrushList*) wxTheBrushList;
 WXDLLIMPEXP_DATA_CORE(wxFontList*)  wxTheFontList;
 WXDLLIMPEXP_DATA_CORE(wxPenList*)   wxThePenList;
@@ -187,6 +186,11 @@ bool wxRect::Inside(int cx, int cy) const
           );
 }
 
+bool wxRect::Inside(const wxRect& rect) const
+{
+    return Inside(rect.GetTopLeft()) && Inside(rect.GetBottomRight());
+}
+
 wxRect& wxRect::Intersect(const wxRect& rect)
 {
     int x2 = GetRight(),