A barely working tool to find font characters and pick their color.

This commit is contained in:
Zed A. Shaw 2024-12-07 13:42:30 -05:00
parent 6b3ce5eb3d
commit 0edd948101
17 changed files with 406 additions and 72 deletions

View file

@ -35,6 +35,16 @@ const std::wstring& Panel::to_string() {
return $screenout;
}
void Panel::mouse_click(ftxui::Mouse::Button btn, Point pos) {
ftxui::Mouse mev{
.button=btn,
.x=int(pos.x), .y=int(pos.y)
};
$component->OnEvent(ftxui::Event::Mouse("", mev));
}
const Screen &Panel::screen() {
return $screen;
}