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

Method Paint

Applications/LemonPaint/canvas.cpp:95–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void Canvas::Paint(surface_t* surface){
96 Lemon::Graphics::surfacecpy(surface, &this->surface, bounds.pos, {{sBarHor.scrollPos, sBarVert.scrollPos},{bounds.size - (vector2i_t){16, 16}}});
97 sBarVert.Paint(surface, {bounds.pos + (vector2i_t){bounds.size.x - 16, 0}});
98 sBarHor.Paint(surface, {bounds.pos + (vector2i_t){0, bounds.size.y - 16}});
99}
100
101void Canvas::ResetScrollbars(){
102 sBarVert.ResetScrollBar(bounds.size.y - 16, surface.height);

Callers 3

DragBrushMethod · 0.45
OnMouseDownMethod · 0.45
OnMouseMoveMethod · 0.45

Calls 1

surfacecpyFunction · 0.85

Tested by

no test coverage detected