Basic swim GUI for LPC4088

Fork of DMBasicGUI by Embedded Artists

Committer:
embeddedartists
Date:
Mon Mar 09 10:50:17 2015 +0100
Revision:
14:647b1896ed84
Parent:
13:bff2288c2c61
Child:
17:6e2abf107800
Updated code documentation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
embeddedartists 5:f4de114c31c3 1 /*
embeddedartists 5:f4de114c31c3 2 * Copyright 2014 Embedded Artists AB
embeddedartists 5:f4de114c31c3 3 *
embeddedartists 5:f4de114c31c3 4 * Licensed under the Apache License, Version 2.0 (the "License");
embeddedartists 5:f4de114c31c3 5 * you may not use this file except in compliance with the License.
embeddedartists 5:f4de114c31c3 6 * You may obtain a copy of the License at
embeddedartists 5:f4de114c31c3 7 *
embeddedartists 5:f4de114c31c3 8 * http://www.apache.org/licenses/LICENSE-2.0
embeddedartists 5:f4de114c31c3 9 *
embeddedartists 5:f4de114c31c3 10 * Unless required by applicable law or agreed to in writing, software
embeddedartists 5:f4de114c31c3 11 * distributed under the License is distributed on an "AS IS" BASIS,
embeddedartists 5:f4de114c31c3 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
embeddedartists 5:f4de114c31c3 13 * See the License for the specific language governing permissions and
embeddedartists 5:f4de114c31c3 14 * limitations under the License.
embeddedartists 5:f4de114c31c3 15 */
embeddedartists 5:f4de114c31c3 16
embeddedartists 5:f4de114c31c3 17 #ifndef APP_SLIDESHOW_H
embeddedartists 5:f4de114c31c3 18 #define APP_SLIDESHOW_H
embeddedartists 5:f4de114c31c3 19
embeddedartists 5:f4de114c31c3 20 #include "App.h"
embeddedartists 5:f4de114c31c3 21 #include "DMBoard.h"
embeddedartists 5:f4de114c31c3 22 #include "SlideShow.h"
embeddedartists 5:f4de114c31c3 23 #include "rtos.h"
embeddedartists 11:265884fa7fdd 24 #include "ImageButton.h"
embeddedartists 5:f4de114c31c3 25
embeddedartists 5:f4de114c31c3 26 /**
embeddedartists 14:647b1896ed84 27 * An App example showing how to use the SlideShow engine.
embeddedartists 5:f4de114c31c3 28 *
embeddedartists 5:f4de114c31c3 29 * The purpose of this example is to show how the SlideShow class can be used.
embeddedartists 5:f4de114c31c3 30 */
embeddedartists 5:f4de114c31c3 31 class AppSlideShow : public App {
embeddedartists 5:f4de114c31c3 32 public:
embeddedartists 5:f4de114c31c3 33
embeddedartists 13:bff2288c2c61 34 /** Create a new App based on the specified slideshow
embeddedartists 13:bff2288c2c61 35 *
embeddedartists 13:bff2288c2c61 36 * @param scriptFile path and filename of the script to run
embeddedartists 13:bff2288c2c61 37 * @param pathPrefix optional path to prepend to all paths in the script file
embeddedartists 13:bff2288c2c61 38 * @param x optional x coordinate to draw the slideshow at, default is 0
embeddedartists 13:bff2288c2c61 39 * @param y optional y coordinate to draw the slideshow at, default is 0
embeddedartists 13:bff2288c2c61 40 */
embeddedartists 11:265884fa7fdd 41 AppSlideShow(const char* scriptFile, const char* pathPrefix=NULL, int xoff=0, int yoff=0);
embeddedartists 10:651861441108 42 virtual ~AppSlideShow();
embeddedartists 5:f4de114c31c3 43
embeddedartists 5:f4de114c31c3 44 virtual bool setup();
embeddedartists 5:f4de114c31c3 45 virtual void runToCompletion();
embeddedartists 5:f4de114c31c3 46 virtual bool teardown();
embeddedartists 5:f4de114c31c3 47
embeddedartists 5:f4de114c31c3 48 private:
embeddedartists 5:f4de114c31c3 49 void* _fb;
embeddedartists 5:f4de114c31c3 50 Display* _disp;
embeddedartists 5:f4de114c31c3 51 SlideShow* _show;
embeddedartists 5:f4de114c31c3 52 Renderer* _rend;
embeddedartists 5:f4de114c31c3 53 Mutex _fileMutex;
embeddedartists 11:265884fa7fdd 54 ImageButton* _btnDone;
embeddedartists 11:265884fa7fdd 55 ImageButton* _btnRepeat;
embeddedartists 11:265884fa7fdd 56 char* _script;
embeddedartists 11:265884fa7fdd 57 char* _path;
embeddedartists 11:265884fa7fdd 58 int _xoff;
embeddedartists 11:265884fa7fdd 59 int _yoff;
embeddedartists 5:f4de114c31c3 60 };
embeddedartists 5:f4de114c31c3 61
embeddedartists 5:f4de114c31c3 62 #endif