summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GlyphMapWidget.h
diff options
context:
space:
mode:
authorMaciej <sppmacd@pm.me>2022-03-01 21:17:57 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-17 17:05:56 +0100
commita95794a35624e48a2bc4357a6c47da09801355b1 (patch)
tree2298e281b1fce74d134fce280e96c3f20b95c904 /Userland/Libraries/LibGUI/GlyphMapWidget.h
parentbee9cd21136308003fe932bb02e2729af12e2458 (diff)
downloadserenity-a95794a35624e48a2bc4357a6c47da09801355b1.zip
LibGUI: Clamp selection when drag-selecting over out of range area
Diffstat (limited to 'Userland/Libraries/LibGUI/GlyphMapWidget.h')
-rw-r--r--Userland/Libraries/LibGUI/GlyphMapWidget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.h b/Userland/Libraries/LibGUI/GlyphMapWidget.h
index 7fc07e1f50..b5ac0b8df5 100644
--- a/Userland/Libraries/LibGUI/GlyphMapWidget.h
+++ b/Userland/Libraries/LibGUI/GlyphMapWidget.h
@@ -80,6 +80,7 @@ private:
Gfx::IntRect get_outer_rect(int glyph) const;
Optional<int> glyph_at_position(Gfx::IntPoint) const;
+ int glyph_at_position_clamped(Gfx::IntPoint) const;
void recalculate_content_size();