13.07.2015 Views

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tutorial on the Lotion <strong>User</strong> <strong>Interface</strong> Classesrun() calledSet Widget groupGet mouse pointerBuild Widget groupwg = currentTheme->createWidgeGroup()wg->createImage()wg->build() calls layers[]->build()context->update();Falserun() returnsTrueUpdate timers and frame-ratecounterscurrentTheme->touchevent(e)results in call tocurrentApplet->update()Check for multitouch events and passevent to current themeReset viewportcurrentTheme->update()results in call tocurrentApplet->update()Update current themeDraw current themeDraw widget groupcurrentTheme->draw()results in call to Applet->draw() orcurrentApplet->draw()wg->draw()results in call to the theme widget group tocall draw() for each of the layersFigure 5-2 <strong>Application</strong> run() method5.1.3 Interaction between the Lotion classesA simplified view of the interaction during startup is shown in Figure 5-3 on page 5-8:ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 5-7ID070710Non-Confidential - Draft - Beta

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!