| 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 | |
| 103 | protected: |
| 104 | void onDisplay() override |
nothing calls this directly
no test coverage detected