A basic graphics package for the LPC4088 Display Module.

Dependents:   lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more

Fork of DMBasicGUI by EmbeddedArtists AB

SlideShow/AppSlideShow.h

Committer:
embeddedartists
Date:
2015-02-17
Revision:
11:265884fa7fdd
Parent:
10:651861441108
Child:
13:bff2288c2c61

File content as of revision 11:265884fa7fdd:

/*
 *  Copyright 2014 Embedded Artists AB
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
 
#ifndef APP_SLIDESHOW_H
#define APP_SLIDESHOW_H

#include "App.h"
#include "DMBoard.h"
#include "SlideShow.h"
#include "rtos.h"
#include "ImageButton.h"

/**
 * An App example. Slideshow.
 *
 * The purpose of this example is to show how the SlideShow class can be used.
 */
class AppSlideShow : public App {
public:

	AppSlideShow(const char* scriptFile, const char* pathPrefix=NULL, int xoff=0, int yoff=0);
	virtual ~AppSlideShow();

    virtual bool setup();
    virtual void runToCompletion();
    virtual bool teardown();

private:
    void* _fb;
    Display* _disp;
    SlideShow* _show;
    Renderer* _rend;
    Mutex _fileMutex;
    ImageButton* _btnDone;
    ImageButton* _btnRepeat;
    char* _script;
    char* _path;
    int _xoff;
    int _yoff;
};

#endif