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

Method Paint

Applications/Shell/menu.cpp:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 void Paint(surface_t* surface){
149 if(Lemon::Graphics::PointInRect(fixedBounds, menuWindow->lastMousePos)){
150 Lemon::Graphics::DrawRect(fixedBounds, Lemon::colours[Lemon::Colour::Foreground], surface);
151 }
152
153 label.Render(surface);
154 }
155
156 void OnMouseUp(vector2i_t pos){
157 obj->Open(fixedBounds.pos + (vector2i_t){fixedBounds.size.x, 0});

Callers 3

mainFunction · 0.45
InitializeMenuFunction · 0.45
PollMenuFunction · 0.45

Calls 3

PointInRectFunction · 0.85
RenderMethod · 0.80
DrawRectFunction · 0.50

Tested by

no test coverage detected