Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: RadarDemo 3DDemo RadarDemoT
Display.h
00001 /* 00002 Display.h - Generic display declaration 00003 00004 Copyright(c) 2016 karpent at gmail.com, MIT License 00005 00006 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), 00007 to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 00008 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 : 00009 00010 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 00011 00012 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00013 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 00014 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR 00015 THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00016 */ 00017 00018 #pragma once 00019 00020 #include "DisplayBase.h" 00021 #include "GeometricPrim.h" 00022 00023 /// <summary> 00024 /// Generic display definition class 00025 /// </summary> 00026 /// <seealso cref="DisplayBase" /> 00027 /// <seealso cref="GeometricPrim" /> 00028 class Display : public DisplayBase, public GeometricPrim 00029 { 00030 public: 00031 /// <summary> 00032 /// Initializes a new instance of the <see cref="Display"/> class. 00033 /// </summary> 00034 Display(); 00035 00036 /// <summary> 00037 /// Finalizes an instance of the <see cref="Display"/> class. 00038 /// </summary> 00039 ~Display(); 00040 00041 /// <summary> 00042 /// Draws the text using actual font type and size. 00043 /// </summary> 00044 /// <param name="posX">The position x.</param> 00045 /// <param name="posY">The position y.</param> 00046 /// <param name="str">The string.</param> 00047 void virtual DrawText(int posX, int posY, char * str) = 0; 00048 }; 00049
Generated on Thu Jul 14 2022 02:25:58 by
