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> Classes5.1 Overview of the Lotion source codeThis section describes the code organization and execution sequence:• Directory organization• Overview of initialization in main.cpp on page 5-6• Interaction between the Lotion classes on page 5-7.5.1.1 Directory organizationThis section describes the files and directories that contain the source code for the lotionexample.Lotion directoryThe following files are in the lotion directory:• applet.cpp and applet.h are for applet instantiation and drawing. See also appletssubdirectory on page 5-3.• calibration_applet.h contains code for calibrating touch screens. The user taps on eachof the corner of the screen and the software adjusts the display coordinates.• application.cpp and application.h to provide the user interface and manage appletselection and display. These are used by main.cpp.• common.h contains some enumerations and utility code.• double_transition.h contains code for fading one image in while another image is fadedout. provide the user interface and manage applet selection and display.• etc_bitmap_demo_loader.cpp and etc_bitmap_demo_loader.h load a bitmap asset from aproxy.• etc_texture_demo_loader.cpp and etc_texture_demo_loader.h load a pkm asset from aproxy.• lotion.h contains the #include statements for the header files.• main.cpp reads the command-line parameters and initializes the application.• radio_button_group.cpp and radio_button_group.h add or remove radio buttons from awidget. The widget and theme code implement the radio button events.• render_target.cpp and render_target.h manage the render buffers.• theme.h contains the enumeration of the applets and the declaration of the virtual Themeclass.• transition.cpp and transition.h describe which special transitions are available. Nospecial transitions are enabled in this example.• widget.cpp and widget.h manage the creation and update of widgets.• widget_group.cpp and widget_group.h groups applets with the application.ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 5-2ID070710Non-Confidential - Draft - Beta

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

Saved successfully!

Ooh no, something went wrong!