0x004CB164
| 9 | { |
| 10 | // 0x004CB164 |
| 11 | void Button::draw(Gfx::DrawingContext& drawingCtx, const Widget& widget, const WidgetState& widgetState) |
| 12 | { |
| 13 | const auto* window = widgetState.window; |
| 14 | |
| 15 | auto flags = widgetState.flags; |
| 16 | if (widgetState.activated) |
| 17 | { |
| 18 | flags |= Gfx::RectInsetFlags::borderInset; |
| 19 | } |
| 20 | |
| 21 | drawingCtx.fillRectInset(window->position() + widget.position(), widget.size(), widgetState.colour, flags); |
| 22 | |
| 23 | Label::draw(drawingCtx, widget, widgetState); |
| 24 | } |
| 25 | } |
nothing calls this directly
no test coverage detected