temp poti

Dependents:   2016-01-28_TINF_Temperatur_einlesen

Committer:
tauchi88
Date:
Thu Jan 28 19:53:13 2016 +0000
Revision:
0:4a09a5e0d6d8
temp

Who changed what in which revision?

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