summaryrefslogtreecommitdiff
path: root/FL/Fl_Rect.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-07-02 20:45:49 +0200
committerMatthias Melcher <github@matthiasm.com>2025-07-02 20:45:54 +0200
commit69431ef51fb18aab9ff8f3f5c34b726b5efac893 (patch)
tree0d3c2ecc2a2fb234d35c8a94ece9777f25350364 /FL/Fl_Rect.H
parente4d43a395131a456ca36dbb58b541fddb7c281b2 (diff)
Fl_Help_View: Refactor Fl_Help_Link to C++11
Diffstat (limited to 'FL/Fl_Rect.H')
-rw-r--r--FL/Fl_Rect.H4
1 files changed, 4 insertions, 0 deletions
diff --git a/FL/Fl_Rect.H b/FL/Fl_Rect.H
index 386deb427..f11e1c5eb 100644
--- a/FL/Fl_Rect.H
+++ b/FL/Fl_Rect.H
@@ -154,6 +154,10 @@ public:
return !(lhs==rhs);
}
+ bool contains(int X, int Y) const {
+ return (X >= x_ && X < r() && Y >= y_ && Y < b());
+ }
+
}; // class Fl_Rect
#endif // Fl_Rect_H