This commit is contained in:
chenhuan 2019-11-28 13:23:48 +01:00
parent d711066980
commit 3b89560fef
1 changed files with 4 additions and 0 deletions

View File

@ -17,9 +17,13 @@ auto GUI_run(int argc, char **argv) -> int {
//Dummy-Values TBD
window->begin();
Image *image = new Image(0, 30, window_width, window_height);
status[0] = new Statusbar(0, 0, 300, 30, resolusion);
status[1] = new Statusbar(300, 0, 170, 30, "Event:");
status[2] = new Statusbar(470, 0, 200, 30, "Mouse Position:");
vkvm::registerEvent(vkvm::EventType::Redraw, [image](){
image->redraw();
});
Fl::repeat_timeout(0.5, refresh_image, image);
window->end();
window->show(argc, argv);