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

Function OnTaskbarPaint

Applications/Shell/main.cpp:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void OnTaskbarPaint(surface_t* surface){
97 Lemon::Graphics::DrawGradientVertical(0,0,surface->width, surface->height, {0x33, 0x2c, 0x29, 255}, {0x2e, 0x29, 0x29, 255},surface);
98
99 if(showMenu){
100 Lemon::Graphics::surfacecpyTransparent(surface, &menuButton, {0, 1}, {0, menuButton.height / 2, menuButton.width, 30});
101 } else {
102 Lemon::Graphics::surfacecpyTransparent(surface, &menuButton, {0, 1}, {0, 0, menuButton.width, 30});
103 }
104
105 sprintf(memString, "Used Memory: %lu/%lu KB", sysInfo.usedMem, sysInfo.totalMem);
106 Lemon::Graphics::DrawString(memString, surface->width - Lemon::Graphics::GetTextLength(memString) - 8, 10, 255, 255, 255, surface);
107}
108
109void InitializeMenu();
110void PollMenu();

Callers

nothing calls this directly

Calls 4

DrawGradientVerticalFunction · 0.85
surfacecpyTransparentFunction · 0.85
GetTextLengthFunction · 0.85
DrawStringFunction · 0.50

Tested by

no test coverage detected