MCPcopy Create free account
hub / github.com/VCVRack/Rack / draw

Method draw

src/app/MenuBar.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 Widget::step();
39 }
40 void draw(const DrawArgs& args) override {
41 BNDwidgetState state = BND_DEFAULT;
42 if (APP->event->hoveredWidget == this)
43 state = BND_HOVER;
44 if (APP->event->draggedWidget == this)
45 state = BND_ACTIVE;
46 bndMenuItem(args.vg, 0.0, 0.0, box.size.x, box.size.y, state, -1, text.c_str());
47 Widget::draw(args);
48 }
49};
50
51

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected