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

Class Button

include/ui/Button.hpp:18–28  ·  view source on GitHub ↗

A clickable button with text. Dispatches Action event when clicked. If quantity is set, its value is set to 1.0 when pressed, 0.0 when released. If text is not set, the quantity label is used. */

Source from the content-addressed store, hash-verified

16If text is not set, the quantity label is used.
17*/
18struct Button : widget::OpaqueWidget {
19 std::string text;
20 /** Not owned. Tracks the pressed state of the button.*/
21 Quantity* quantity = NULL;
22
23 Button();
24 void draw(const DrawArgs& args) override;
25 void onDragStart(const DragStartEvent& e) override;
26 void onDragEnd(const DragEndEvent& e) override;
27 void onDragDrop(const DragDropEvent& e) override;
28};
29
30
31} // namespace ui

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected