| 23 | math::Vec size; |
| 24 | |
| 25 | void draw(const DrawArgs& args) override { |
| 26 | nvgBeginPath(args.vg); |
| 27 | nvgMoveTo(args.vg, box.size.x, box.size.y); |
| 28 | nvgLineTo(args.vg, 0, box.size.y); |
| 29 | nvgLineTo(args.vg, box.size.x, 0); |
| 30 | nvgClosePath(args.vg); |
| 31 | nvgFillColor(args.vg, nvgRGBAf(1, 1, 1, 0.15)); |
| 32 | nvgFill(args.vg); |
| 33 | } |
| 34 | |
| 35 | void onDragStart(const DragStartEvent& e) override { |
| 36 | size = APP->window->getSize(); |
nothing calls this directly
no outgoing calls
no test coverage detected