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

Method LeftSideWidget

tests/Demo.cpp:82–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 };
81
82 LeftSideWidget(Widget* parent, Callback* const cb)
83 : SubWidget(parent),
84 callback(cb),
85 curPage(0),
86 curHover(-1)
87 {
88
89 using namespace DemoArtwork;
90 img1.loadFromMemory(ico1Data, ico1Width, ico1Height, kImageFormatBGR);
91 img2.loadFromMemory(ico2Data, ico2Width, ico2Height, kImageFormatBGR);
92 img3.loadFromMemory(ico3Data, ico3Width, ico2Height, kImageFormatBGR);
93 img4.loadFromMemory(ico4Data, ico4Width, ico4Height, kImageFormatBGR);
94
95 #ifdef DGL_OPENGL
96 img5.loadFromMemory(ico5Data, ico5Width, ico5Height, kImageFormatBGR);
97
98 // for text
99 nvg.loadSharedResources();
100 #endif
101 }
102
103protected:
104 void onDisplay() override

Callers

nothing calls this directly

Calls 2

loadSharedResourcesMethod · 0.80
loadFromMemoryMethod · 0.45

Tested by

no test coverage detected