if I create my own Widget sized 200x100 and I try to draw any stuff using NanoVG (i.e. a circle at nvgCircle(vg, this->box.size.x, this->box.size.y, 10);, it draws outside the size of the widget.
Is there a way to crop it? i.e. draw only within the area of the widget?
ModuleWidget already scissors, so this is probably a bug with NanoVG. Or, you’re overriding ModuleWidget::draw(), which misses the scissor context. I wouldn’t do that. Instead, add child widgets.
Almost always, post screenshot(s) when talking about graphics.