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

Method MenuWidget

Applications/Shell/menu.cpp:141–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140public:
141 MenuWidget(MenuObject& obj, rect_t bounds) : Widget(bounds){
142 this->obj = &obj;
143
144 label = Lemon::Graphics::TextObject(fixedBounds.pos + (vector2i_t){0, fixedBounds.size.y / 2}, this->obj->name);
145 label.SetColour({255, 255, 255, 255});
146 }
147
148 void Paint(surface_t* surface){
149 if(Lemon::Graphics::PointInRect(fixedBounds, menuWindow->lastMousePos)){

Callers

nothing calls this directly

Calls 2

TextObjectClass · 0.85
SetColourMethod · 0.80

Tested by

no test coverage detected