Add a MoveInfo
parsing proxy between SidePanel
and MoveTreeDisplayHandler
#67
Labels
MoveInfo
parsing proxy between SidePanel
and MoveTreeDisplayHandler
#67
MoveTreeDisplayHandler
currently returns anstd::vector<MoveInfo>
throughgenerateMoveInfo()
. This struct is generic in that it has no UI-related specifications. It only indicates the row, indent, content, etc., of the move that shall be displayed on theSidePanel
. When we draw the side panel, ideally, the process would beconst
but it currently isn't because ofdrawMoves()
which is a non-trivial process in itself.In this task, I want to inject a proxy that would take the
std::vector<MoveInfo>
and output anstd::vector<MoveInfoDisplay>
. HereMoveInfoDisplay
is a struct that holds a reference toMoveInfo
but also has the necessary information to draw the move, i.e., position, dimensions, etc.With this, we could do
SidePanel::draw() const { drawMoves(); /* ... other const draw methods */ }
#66
The text was updated successfully, but these errors were encountered: