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

Method Button

LibLemon/src/gui/widgets.cpp:224–227  ·  view source on GitHub ↗

///////////////////// Button /////////////////////

Source from the content-addressed store, hash-verified

222 // Button
223 //////////////////////////
224 Button::Button(const char* _label, rect_t _bounds) : Widget(_bounds) {
225 label = _label;
226 labelLength = Graphics::GetTextLength(label.c_str());
227 }
228
229 void Button::DrawButtonBorders(surface_t* surface, bool white){
230 vector2i_t btnPos = fixedBounds.pos;

Callers

nothing calls this directly

Calls 1

GetTextLengthFunction · 0.85

Tested by

no test coverage detected