Mali GPU User Interface Engine Application Development Guide
Mali GPU User Interface Engine Application Development Guide
Mali GPU User Interface Engine Application Development Guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Tutorial on the Lotion <strong>User</strong> <strong>Interface</strong> ClassesExample 5-12 Creating the applets...// create the applet and add it to the themeif (configApplets & APPLET_PHOTO_BROWSER) {photo->create(app, photo, theme);theme->addApplet(photo, Lotion::AppletCategoryPhotos);}if (configApplets & APPLET_PRESENTATION) {presentation->create(app, presentation, theme);theme->addApplet(presentation, Lotion::AppletCategoryPresentations);}if (configApplets & APPLET_SLIDESHOW_PRESENTATION) {slideshow_presentation->create(app, slideshow_presentation, theme);theme->addApplet(slideshow_presentation,Lotion::AppletCategoryPresentations);}if (configApplets & APPLET_BUZZWORD) {buzzword->create(app, buzzword, theme);theme->addApplet(buzzword, Lotion::AppletCategoryTechdemos);}if (configApplets & APPLET_PLANET) {planet->create(app, planet, theme);theme->addApplet(planet, Lotion::AppletCategoryTechdemos);}if (configApplets & APPLET_LIGHTSHOW) {lightshow->create(app, lightshow, theme);theme->addApplet(lightshow, Lotion::AppletCategoryTechdemos);}if (configApplets & APPLET_BROWSER) {browser->create(app, browser, theme);theme->addApplet(browser, Lotion::AppletCategoryBrowser);}// Calibration - MUST BE THE LAST APPLET ADDEDLotion::CalibrationApplet* calibration =new Lotion::CalibrationApplet();calibration->create(app, calibration, theme);theme->addApplet(calibration, Lotion::AppletCategoryTechdemos);...theme->prepare();5.2.5 Starting the applicationThe application is started shown in Example 5-13. Any exceptions are trapped.Example 5-13 Starting the application...app->run();} catch (MDE::Exception e) {argErrorExit("%s\n", e.getMessage().getCharString());} catch (std::exception e) {argErrorExit("Standard Library Exception?\n", NULL);} catch (...) {argErrorExit("Non MDE Exception\n", NULL);ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 5-17ID070710Non-Confidential - Draft - Beta