aboutsummaryrefslogtreecommitdiff
path: root/src/components/Scrollbar.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-06-05 13:48:29 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-06-05 13:48:29 +0200
commit2a4a20beefa533730d85a75bbc2dc6676fa247b5 (patch)
tree987bea897030e3f5a6114f30acccaef56bb01768 /src/components/Scrollbar.hpp
parent298714449a7c19c7a0f85d2f06305432f8a5251c (diff)
Introduce move based focusing
Diffstat (limited to 'src/components/Scrollbar.hpp')
-rw-r--r--src/components/Scrollbar.hpp2
1 files changed, 2 insertions, 0 deletions
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