diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-07-02 20:45:49 +0200 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-07-02 20:45:54 +0200 |
| commit | 69431ef51fb18aab9ff8f3f5c34b726b5efac893 (patch) | |
| tree | 0d3c2ecc2a2fb234d35c8a94ece9777f25350364 /FL/Fl_Rect.H | |
| parent | e4d43a395131a456ca36dbb58b541fddb7c281b2 (diff) | |
Fl_Help_View: Refactor Fl_Help_Link to C++11
Diffstat (limited to 'FL/Fl_Rect.H')
| -rw-r--r-- | FL/Fl_Rect.H | 4 |
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 |
