| 298 | } |
| 299 | |
| 300 | void Window::CreateMenuBar(){ |
| 301 | menuBar = new WindowMenuBar(); |
| 302 | menuBar->window = this; |
| 303 | |
| 304 | rootContainer.SetBounds({0, WINDOW_MENUBAR_HEIGHT, surface.width, surface.height - WINDOW_MENUBAR_HEIGHT}); |
| 305 | } |
| 306 | |
| 307 | void WindowMenuBar::Paint(surface_t* surface){ |
| 308 | fixedBounds = {0, 0, window->GetSize().x, WINDOW_MENUBAR_HEIGHT}; |