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

Method Label

LibLemon/src/gui/widgets.cpp:336–338  ·  view source on GitHub ↗

///////////////////// Label /////////////////////

Source from the content-addressed store, hash-verified

334 // Label
335 //////////////////////////
336 Label::Label(const char* _label, rect_t _bounds) : Widget(_bounds) {
337 label = _label;
338 }
339
340 void Label::Paint(surface_t* surface){
341 Graphics::DrawString(label.c_str(), fixedBounds.pos.x, fixedBounds.pos.y, textColour.r, textColour.g, textColour.b, surface);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected