diff --git a/src/Widget.cpp b/src/Widget.cpp index 5beeb32..84cbb91 100644 --- a/src/Widget.cpp +++ b/src/Widget.cpp @@ -121,7 +121,7 @@ void Widget::handle_repaint_rect(RepaintRectEvent &event) { cr->save(); - // clip this widget. this ensuers that the background fill or children won't overflow the bounds of it + // clip this widget. this ensures that the background fill or children won't overflow the bounds of it painter.rounded_rectangle(m_current_geometry, m_background_border_radius); cr->clip(); diff --git a/src/Window.cpp b/src/Window.cpp index 75fb463..5488eeb 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -82,7 +82,6 @@ void Window::repaint(Box geometry) { } void Window::repaint(Widget *target) { - std::cout << target->window_relative().x() << ", " << target->window_relative().y() << std::endl; repaint(target->current_geometry().offset(target->window_relative().x(), target->window_relative().y())); } diff --git a/src/main.cpp b/src/main.cpp index 07dcc19..7741831 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -17,9 +17,10 @@ int main() { window.spawn_window(); auto main_widget = window.set_main_widget(); + main_widget->set_layout(10.0); auto second_widget = main_widget->add(); - second_widget->set_layout(16.0); + second_widget->set_layout(20.0); second_widget->resize(800, 800); auto inner_widget = second_widget->add();