| 93 | } |
| 94 | |
| 95 | void 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 | |
| 101 | void Canvas::ResetScrollbars(){ |
| 102 | sBarVert.ResetScrollBar(bounds.size.y - 16, surface.height); |
no test coverage detected