| 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 | |
| 75 | protected: |
| 76 | /* -------------------------------------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected