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

Function drawLeft

examples/Info/InfoExampleUI.cpp:258–267  ·  view source on GitHub ↗

helpers for drawing text

Source from the content-addressed store, hash-verified

256
257 // helpers for drawing text
258 void drawLeft(float x, const float y, const char* const text, const int offset = 0)
259 {
260 const float width = (100.0f + offset) * fScale;
261 x += offset * fScale;
262 beginPath();
263 fillColor(200, 200, 200);
264 textAlign(ALIGN_RIGHT|ALIGN_TOP);
265 textBox(x, y, width, text);
266 closePath();
267 }
268
269 void drawRight(float x, const float y, const char* const text, const int offset = 0)
270 {

Callers 1

onNanoDisplayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected