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/MoveTable.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/components/MoveTable.hpp') diff --git a/src/components/MoveTable.hpp b/src/components/MoveTable.hpp index 1b6323e..3a50a8d 100644 --- a/src/components/MoveTable.hpp +++ b/src/components/MoveTable.hpp @@ -50,6 +50,8 @@ class MoveTable : public Component { typedef struct MoveState { bool IsFolded=false; bool IsHidden=false; + int Line=0; + Element Bound; } MoveState; std::uint32_t UpdateMoves(CMI::HalfMove *, std::uint32_t, std::uint32_t,bool only_black); std::int32_t CurrentMove; @@ -66,5 +68,6 @@ public: void Refresh(); std::vector GetVariationsMarging() { return (VariationMargins); } void SyncCache(); + void GetMoveXY(CMI::HalfMove* m, double &X, double &Y); }; } // namespace cgeditor \ No newline at end of file -- cgit v1.2.3