MCPcopy Create free account
hub / github.com/DISTRHO/DPF / getStateKeyFromIndex

Function getStateKeyFromIndex

examples/States/ExampleUIStates.cpp:37–53  ·  view source on GitHub ↗

Get key name from an index. */

Source from the content-addressed store, hash-verified

35 Get key name from an index.
36 */
37 static const char* getStateKeyFromIndex(const uint32_t index) noexcept
38 {
39 switch (index)
40 {
41 case 0: return "top-left";
42 case 1: return "top-center";
43 case 2: return "top-right";
44 case 3: return "middle-left";
45 case 4: return "middle-center";
46 case 5: return "middle-right";
47 case 6: return "bottom-left";
48 case 7: return "bottom-center";
49 case 8: return "bottom-right";
50 }
51
52 return "unknown";
53 }
54
55 /* constructor */
56 ExampleUIParameters()

Callers 1

onMouseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected