TINF_MittelwerteUeberwachung

Dependencies:   mbed

Committer:
martwerl
Date:
Thu Nov 15 18:24:11 2018 +0000
Revision:
0:fb8791842ef8
TINF_MittelwerteUeberwachung

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martwerl 0:fb8791842ef8 1 /* mbed GraphicsDisplay Display Library Base Class
martwerl 0:fb8791842ef8 2 * Copyright (c) 2007-2009 sford
martwerl 0:fb8791842ef8 3 * Released under the MIT License: http://mbed.org/license/mit
martwerl 0:fb8791842ef8 4 *
martwerl 0:fb8791842ef8 5 * A library for providing a common base class for Graphics displays
martwerl 0:fb8791842ef8 6 * To port a new display, derive from this class and implement
martwerl 0:fb8791842ef8 7 * the constructor (setup the display), pixel (put a pixel
martwerl 0:fb8791842ef8 8 * at a location), width and height functions. Everything else
martwerl 0:fb8791842ef8 9 * (locate, printf, putc, cls, window, putp, fill, blit, blitbit)
martwerl 0:fb8791842ef8 10 * will come for free. You can also provide a specialised implementation
martwerl 0:fb8791842ef8 11 * of window and putp to speed up the results
martwerl 0:fb8791842ef8 12 */
martwerl 0:fb8791842ef8 13
martwerl 0:fb8791842ef8 14 #ifndef MBED_GRAPHICSDISPLAY_H
martwerl 0:fb8791842ef8 15 #define MBED_GRAPHICSDISPLAY_H
martwerl 0:fb8791842ef8 16
martwerl 0:fb8791842ef8 17 #include "TextDisplay.h"
martwerl 0:fb8791842ef8 18
martwerl 0:fb8791842ef8 19 class GraphicsDisplay : public TextDisplay {
martwerl 0:fb8791842ef8 20
martwerl 0:fb8791842ef8 21 public:
martwerl 0:fb8791842ef8 22
martwerl 0:fb8791842ef8 23 GraphicsDisplay(const char* name);
martwerl 0:fb8791842ef8 24
martwerl 0:fb8791842ef8 25 virtual void pixel(int x, int y, int colour) = 0;
martwerl 0:fb8791842ef8 26 virtual int width() = 0;
martwerl 0:fb8791842ef8 27 virtual int height() = 0;
martwerl 0:fb8791842ef8 28
martwerl 0:fb8791842ef8 29 virtual void window(int x, int y, int w, int h);
martwerl 0:fb8791842ef8 30 virtual void putp(int colour);
martwerl 0:fb8791842ef8 31
martwerl 0:fb8791842ef8 32 virtual void cls();
martwerl 0:fb8791842ef8 33 virtual void fill(int x, int y, int w, int h, int colour);
martwerl 0:fb8791842ef8 34 virtual void blit(int x, int y, int w, int h, const int *colour);
martwerl 0:fb8791842ef8 35 virtual void blitbit(int x, int y, int w, int h, const char* colour);
martwerl 0:fb8791842ef8 36
martwerl 0:fb8791842ef8 37 virtual void character(int column, int row, int value);
martwerl 0:fb8791842ef8 38 virtual int columns();
martwerl 0:fb8791842ef8 39 virtual int rows();
martwerl 0:fb8791842ef8 40
martwerl 0:fb8791842ef8 41 protected:
martwerl 0:fb8791842ef8 42
martwerl 0:fb8791842ef8 43 // pixel location
martwerl 0:fb8791842ef8 44 short _x;
martwerl 0:fb8791842ef8 45 short _y;
martwerl 0:fb8791842ef8 46
martwerl 0:fb8791842ef8 47 // window location
martwerl 0:fb8791842ef8 48 short _x1;
martwerl 0:fb8791842ef8 49 short _x2;
martwerl 0:fb8791842ef8 50 short _y1;
martwerl 0:fb8791842ef8 51 short _y2;
martwerl 0:fb8791842ef8 52
martwerl 0:fb8791842ef8 53 };
martwerl 0:fb8791842ef8 54
martwerl 0:fb8791842ef8 55 #endif