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

Function FileHandlingExampleUI

examples/FileHandling/FileHandlingUI.cpp:52–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 static const uint kInitialHeight = 350;
51
52 FileHandlingExampleUI()
53 : UI(kInitialWidth, kInitialHeight),
54 fButton1(this, this),
55 fButton2(this, this),
56 fButton3(this, this),
57 fScale(1.0f)
58 {
59 std::memset(fParameters, 0, sizeof(fParameters));
60 std::memset(fStrBuf, 0, sizeof(fStrBuf));
61
62 setupButton(fButton1, 5);
63 setupButton(fButton2, 105);
64 setupButton(fButton3, 205);
65
66#ifdef DGL_NO_SHARED_RESOURCES
67 createFontFromFile("sans", "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf");
68#else
69 loadSharedResources();
70#endif
71
72 setGeometryConstraints(kInitialWidth, kInitialHeight, false);
73 }
74
75protected:
76 /* --------------------------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

setupButtonFunction · 0.85
setGeometryConstraintsFunction · 0.50

Tested by

no test coverage detected