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

Method Paint

LibLemon/src/gui/window.cpp:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 void Window::Paint(){
149 if(OnPaint) OnPaint(&surface);
150
151 if(windowType == WindowType::GUI) {
152 if(menuBar){
153 menuBar->Paint(&surface);
154 }
155
156 rootContainer.Paint(&surface);
157 }
158
159 SwapBuffers();
160 }
161
162 bool Window::PollEvent(LemonEvent& ev){
163 Message m;

Callers 2

DisplayMessageBoxFunction · 0.45
FileDialogFunction · 0.45

Calls 4

OnPaintFunction · 0.50
DrawRectFunction · 0.50
DrawStringFunction · 0.50
GetSizeMethod · 0.45

Tested by

no test coverage detected