MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / CreateMenuBar

Method CreateMenuBar

LibLemon/src/gui/window.cpp:300–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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};

Callers 3

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

SetBoundsMethod · 0.80

Tested by

no test coverage detected