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

Function OnPaint

Applications/GUITest/main.cpp:15–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13std::vector<Lemon::GUI::ContextMenuEntry> cxt;
14
15void OnPaint(surface_t* surface){
16 Lemon::Graphics::DrawRect(0, 0, 640, 480, 255, 0, 0, surface);
17}
18
19int main(){
20 Lemon::GUI::Window* win = new Lemon::GUI::Window("Test Window", {640, 480}, WINDOW_FLAGS_RESIZABLE, Lemon::GUI::WindowType::GUI);

Callers

nothing calls this directly

Calls 1

DrawRectFunction · 0.50

Tested by

no test coverage detected