From 2a4a20beefa533730d85a75bbc2dc6676fa247b5 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 5 Jun 2023 13:48:29 +0200 Subject: Introduce move based focusing --- src/components/Scrollbar.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/Scrollbar.hpp') diff --git a/src/components/Scrollbar.hpp b/src/components/Scrollbar.hpp index 3ed97ae..fa49eca 100644 --- a/src/components/Scrollbar.hpp +++ b/src/components/Scrollbar.hpp @@ -12,5 +12,7 @@ class Scrollbar : public Component { public: Scrollbar(Status* s,bool IsHorizontal); void Refresh(); + /// @brief Goto a given graphical coordinate (if possible using current scroll range) + void Focus(double XorY); }; } // namespace cgeditor \ No newline at end of file -- cgit v1.2.3