#include "Label.hpp" #include "Window.hpp" #include "Widget.hpp" #include "Button.hpp" #include "Box.hpp" #include "Label.hpp" int main() { Raven::Window window {}; Raven::Widget main_widget {}; Raven::Button button {"click me!"}; Raven::Label label {"you have not yet clicked the button..."}; window.spawn_window(); button.set_current_geometry(Raven::Box(10, 10, 100, 30)); label.set_current_geometry(Raven::Box(10, 45, 100, 20)); main_widget.set_background_fill_color(window.get_top_level_styles()->get_background_color()); main_widget.set_do_background_fill(true); window.set_main_widget(&main_widget); button.on_click = [&label]() { label.set_text("you clicked it!!!!!"); }; main_widget.add_child(&button); main_widget.add_child(&label); window.run(true); return 0; }