A barely working tool to find font characters and pick their color.
This commit is contained in:
parent
6b3ce5eb3d
commit
0edd948101
17 changed files with 406 additions and 72 deletions
10
panel.cpp
10
panel.cpp
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue