Chris Womack / DMBasicGUI

Fork of DMBasicGUI by Embedded Artists

Committer:
embeddedartists
Date:
Tue Feb 17 10:34:13 2015 +0100
Revision:
11:265884fa7fdd
Parent:
10:651861441108
Child:
13:bff2288c2c61
- Replaced wait_ms with Thread::wait in SlideShow
- Fixed fade transition in SlideShow
- Added repeat/end buttons to AppSlideShow
- Added very basic transparent image rendering to SWIM
- Fixed errors in lpc_colors.h
- Added support for button captions to the ImageButton
- Added back buffering to the AppColorPicker
- Added basic_image_data.h/c with the ok/cancel/repeat buttons
- Moved the slideshow parameters to the constructor of AppSlideShow

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 5:f4de114c31c3 27 * An App example. Slideshow.
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 11:265884fa7fdd 34 AppSlideShow(const char* scriptFile, const char* pathPrefix=NULL, int xoff=0, int yoff=0);
embeddedartists 10:651861441108 35 virtual ~AppSlideShow();
embeddedartists 5:f4de114c31c3 36
embeddedartists 5:f4de114c31c3 37 virtual bool setup();
embeddedartists 5:f4de114c31c3 38 virtual void runToCompletion();
embeddedartists 5:f4de114c31c3 39 virtual bool teardown();
embeddedartists 5:f4de114c31c3 40
embeddedartists 5:f4de114c31c3 41 private:
embeddedartists 5:f4de114c31c3 42 void* _fb;
embeddedartists 5:f4de114c31c3 43 Display* _disp;
embeddedartists 5:f4de114c31c3 44 SlideShow* _show;
embeddedartists 5:f4de114c31c3 45 Renderer* _rend;
embeddedartists 5:f4de114c31c3 46 Mutex _fileMutex;
embeddedartists 11:265884fa7fdd 47 ImageButton* _btnDone;
embeddedartists 11:265884fa7fdd 48 ImageButton* _btnRepeat;
embeddedartists 11:265884fa7fdd 49 char* _script;
embeddedartists 11:265884fa7fdd 50 char* _path;
embeddedartists 11:265884fa7fdd 51 int _xoff;
embeddedartists 11:265884fa7fdd 52 int _yoff;
embeddedartists 5:f4de114c31c3 53 };
embeddedartists 5:f4de114c31c3 54
embeddedartists 5:f4de114c31c3 55 #endif