Tiny graphics library for STM32F746G-DISCO board

Dependents:   RadarDemo 3DDemo RadarDemoT

Committer:
karpent
Date:
Fri Nov 11 12:05:16 2016 +0000
Revision:
3:1ddc4aa1e5cb
Parent:
2:02b7b78e8510
Missing method DrawChar() added, DrawText() corrected.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
karpent 0:566855d63a2f 1 /*
karpent 0:566855d63a2f 2 Display.h - Generic display declaration
karpent 0:566855d63a2f 3
karpent 0:566855d63a2f 4 Copyright(c) 2016 karpent at gmail.com, MIT License
karpent 0:566855d63a2f 5
karpent 0:566855d63a2f 6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"),
karpent 0:566855d63a2f 7 to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
karpent 0:566855d63a2f 8 and / or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
karpent 0:566855d63a2f 9
karpent 0:566855d63a2f 10 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
karpent 0:566855d63a2f 11
karpent 0:566855d63a2f 12 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
karpent 0:566855d63a2f 13 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
karpent 0:566855d63a2f 14 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
karpent 0:566855d63a2f 15 THE USE OR OTHER DEALINGS IN THE SOFTWARE.
karpent 0:566855d63a2f 16 */
karpent 0:566855d63a2f 17
karpent 0:566855d63a2f 18 #pragma once
karpent 0:566855d63a2f 19
karpent 0:566855d63a2f 20 #include "DisplayBase.h"
karpent 0:566855d63a2f 21 #include "GeometricPrim.h"
karpent 0:566855d63a2f 22
karpent 0:566855d63a2f 23 /// <summary>
karpent 0:566855d63a2f 24 /// Generic display definition class
karpent 0:566855d63a2f 25 /// </summary>
karpent 0:566855d63a2f 26 /// <seealso cref="DisplayBase" />
karpent 0:566855d63a2f 27 /// <seealso cref="GeometricPrim" />
karpent 0:566855d63a2f 28 class Display : public DisplayBase, public GeometricPrim
karpent 0:566855d63a2f 29 {
karpent 0:566855d63a2f 30 public:
karpent 0:566855d63a2f 31 /// <summary>
karpent 0:566855d63a2f 32 /// Initializes a new instance of the <see cref="Display"/> class.
karpent 0:566855d63a2f 33 /// </summary>
karpent 0:566855d63a2f 34 Display();
karpent 0:566855d63a2f 35
karpent 0:566855d63a2f 36 /// <summary>
karpent 0:566855d63a2f 37 /// Finalizes an instance of the <see cref="Display"/> class.
karpent 0:566855d63a2f 38 /// </summary>
karpent 0:566855d63a2f 39 ~Display();
karpent 2:02b7b78e8510 40
karpent 2:02b7b78e8510 41 /// <summary>
karpent 2:02b7b78e8510 42 /// Draws the text using actual font type and size.
karpent 2:02b7b78e8510 43 /// </summary>
karpent 2:02b7b78e8510 44 /// <param name="posX">The position x.</param>
karpent 2:02b7b78e8510 45 /// <param name="posY">The position y.</param>
karpent 2:02b7b78e8510 46 /// <param name="str">The string.</param>
karpent 2:02b7b78e8510 47 void virtual DrawText(int posX, int posY, char * str) = 0;
karpent 0:566855d63a2f 48 };
karpent 0:566855d63a2f 49