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: SignalProcessLab DigitalSignalAlgorithm_Lab DigitalSignal_Lab
Display Class Reference
Generic display definition class. More...
#include <Display.h>
Inherits DisplayBase, and GeometricPrim.
Inherited by Canvas, and RK043FN48H.
Public Member Functions | |
| Display () | |
| Initializes a new instance of the Display class. | |
| ~Display () | |
| Finalizes an instance of the Display class. | |
| virtual uint16_t | DisplayWidth ()=0 |
| Returns screen width. | |
| virtual uint16_t | DisplayHeight ()=0 |
| Redurns screen height. | |
| virtual void | SetDrawColor (uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)=0 |
| Sets the color of the draw. | |
| virtual void | DrawLine (int startX, int startY, int endX, int endY) |
| Draws the line. | |
| virtual void | DrawCircle (int posX, int posY, uint16_t radius) |
| Draws the circle. | |
| virtual void | DrawRectangle (int startX, int startY, int endX, int endY) |
| Draws the rectangle. | |
| virtual void | DrawTriangle (int x1, int y1, int x2, int y2, int x3, int y3) |
| Draws the triangle. | |
| virtual void | DrawPoint (int posX, int posY, uint32_t colorMask)=0 |
| Draws the point. | |
Detailed Description
Generic display definition class.
- See also:
- DisplayBase, GeometricPrim
Definition at line 28 of file Display.h.
Constructor & Destructor Documentation
| Display | ( | ) |
Initializes a new instance of the Display class.
Definition at line 8 of file Display.cpp.
| ~Display | ( | ) |
Finalizes an instance of the Display class.
Definition at line 13 of file Display.cpp.
Member Function Documentation
| virtual uint16_t DisplayHeight | ( | ) | [pure virtual, inherited] |
| virtual uint16_t DisplayWidth | ( | ) | [pure virtual, inherited] |
| void DrawCircle | ( | int | posX, |
| int | posY, | ||
| uint16_t | radius | ||
| ) | [virtual, inherited] |
Draws the circle.
- Parameters:
-
posX The position x. posY The position y. radius The radius.
Definition at line 59 of file GeometricPrim.cpp.
| void DrawLine | ( | int | startX, |
| int | startY, | ||
| int | endX, | ||
| int | endY | ||
| ) | [virtual, inherited] |
Draws the line.
- Parameters:
-
startX The start x. startY The start y. endX The end x. endY The end y.
Definition at line 20 of file GeometricPrim.cpp.
| virtual void DrawPoint | ( | int | posX, |
| int | posY, | ||
| uint32_t | colorMask | ||
| ) | [pure virtual, inherited] |
Draws the point.
- Parameters:
-
posX The position x. posY The position y. colorMask The color mask.
| void DrawRectangle | ( | int | startX, |
| int | startY, | ||
| int | endX, | ||
| int | endY | ||
| ) | [virtual, inherited] |
Draws the rectangle.
- Parameters:
-
startX The start x. startY The start y. endX The end x. endY The end y.
Definition at line 103 of file GeometricPrim.cpp.
| void DrawTriangle | ( | int | x1, |
| int | y1, | ||
| int | x2, | ||
| int | y2, | ||
| int | x3, | ||
| int | y3 | ||
| ) | [virtual, inherited] |
Draws the triangle.
- Parameters:
-
x1 The x1. y1 The y1. x2 The x2. y2 The y2. x3 The x3. y3 The y3.
Definition at line 112 of file GeometricPrim.cpp.
| virtual void SetDrawColor | ( | uint8_t | red, |
| uint8_t | green, | ||
| uint8_t | blue, | ||
| uint8_t | alpha | ||
| ) | [pure virtual, inherited] |
Sets the color of the draw.
- Parameters:
-
red The red. green The green. blue The blue. alpha The alpha.
Implemented in RK043FN48H.
Generated on Sat Jul 23 2022 05:49:00 by
1.7.2