Pervasive Displays Library Suite - Basic edition 8.0.8
Library for Pervasive Displays e-paper screens and EXT3 extension board
|
Generic buffered screen class. More...
#include <hV_Screen_Buffer.h>
Public Member Functions | |
hV_Screen_Buffer () | |
Constructor. | |
General | |
virtual void | begin () |
Initialisation. | |
virtual String | WhoAmI ()=0 |
Request information about the screen. | |
virtual void | clear (uint16_t colour=myColours.black) |
Clear the screen. | |
virtual void | flush ()=0 |
Send frame-buffer to display. | |
virtual void | setOrientation (uint8_t orientation) |
Set orientation. | |
uint8_t | getOrientation () |
Get orientation. | |
virtual uint16_t | screenSizeX () |
Screen size, x-axis of logical screen. | |
virtual uint16_t | screenSizeY () |
Screen size, y-axis of logical screen. | |
virtual uint16_t | screenDiagonal () |
Screen size, diagonal. | |
virtual uint8_t | screenColourBits () |
Screen colour depth. | |
Graphics | |
virtual void | circle (uint16_t x0, uint16_t y0, uint16_t radius, uint16_t colour) |
Draw circle. | |
virtual void | line (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t colour) |
Draw line, rectangle coordinates. | |
virtual void | dLine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t colour) |
Draw line, vector coordinates. | |
virtual void | setPenSolid (bool flag=true) |
Set pen opaque. | |
virtual void | triangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t x3, uint16_t y3, uint16_t colour) |
Draw triangle, rectangle coordinates. | |
virtual void | rectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t colour) |
Draw rectangle, rectangle coordinates. | |
virtual void | dRectangle (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t colour) |
Draw rectangle, vector coordinates. | |
virtual void | point (uint16_t x1, uint16_t y1, uint16_t colour) |
Draw pixel. | |
Text | |
virtual void | selectFont (uint8_t font) |
Select font number. | |
virtual uint8_t | getFont () |
Get font number. | |
virtual uint8_t | addFont (font_s fontName) |
Add a font. | |
virtual void | setFontSolid (bool flag=true) |
Set transparent or opaque text. | |
virtual void | setFontSpaceX (uint8_t number=1) |
Set additional spaces between two characters, horizontal axis. | |
virtual void | setFontSpaceY (uint8_t number=1) |
Set additional spaces between two characters, vertical axis. | |
virtual uint16_t | characterSizeX (uint8_t character=0x00) |
Character size, x-axis. | |
virtual uint16_t | characterSizeY () |
Character size, y-axis. | |
virtual uint16_t | stringSizeX (String text) |
String size, x-axis. | |
virtual uint8_t | stringLengthToFitX (String text, uint16_t pixels) |
Number of characters to fit a size, x-axis. | |
virtual uint8_t | fontMax () |
Number of fonts. | |
virtual void | gText (uint16_t x0, uint16_t y0, String text, uint16_t textColour=myColours.black, uint16_t backColour=myColours.white) |
Draw ASCII Text (pixel coordinates) with selection of size. | |
virtual void | gTextLarge (uint16_t x0, uint16_t y0, String text, uint16_t textColour=myColours.black, uint16_t backColour=myColours.white) |
Draw ASCII Text (pixel coordinates) with selection of size. | |
Touch | |
| |
bool | isTouch () |
Is touch available? | |
bool | isTouchEvent () |
Are touch events available? | |
bool | getTouch (uint16_t &x, uint16_t &y, uint16_t &z, uint16_t &t) |
Poll touch. | |
void | clearTouch () |
Clear touch. | |
bool | getTouchInterrupt () |
Check touch interrupt. | |
void | calibrateTouch () |
Calibrate the touch. | |
Generic buffered screen class.
This class provides the text and graphic primitives for the buffered screen
|
virtual |
Add a font.
fontName | name of the font |
|
virtual |
Initialisation.
Reimplemented in Screen_EPD_EXT3_Fast.
|
virtual |
Character size, x-axis.
character | character to evaluate, default = 0 = font general size |
|
virtual |
Character size, y-axis.
|
virtual |
Draw circle.
x0 | center, point coordinate, x-axis |
y0 | center, point coordinate, y-axis |
radius | radius |
colour | 16-bit colour |
More: Coordinate, Colour
|
virtual |
Clear the screen.
colour | 16-bit colour, default = white |
Reimplemented in Screen_EPD_EXT3_Fast.
|
virtual |
Draw line, vector coordinates.
x0 | point coordinate, x-axis |
y0 | point coordinate, y-axis |
dx | length, x-axis |
dy | height, y-axis |
colour | 16-bit colour |
More: Coordinate, Colour
|
virtual |
Draw rectangle, vector coordinates.
x0 | point coordinate, x-axis |
y0 | point coordinate, y-axis |
dx | length, x-axis |
dy | height, y-axis |
colour | 16-bit colour |
More: Coordinate, Colour
|
pure virtual |
Send frame-buffer to display.
Implemented in Screen_EPD_EXT3_Fast.
|
virtual |
Number of fonts.
|
virtual |
Get font number.
uint8_t hV_Screen_Buffer::getOrientation | ( | ) |
Get orientation.
bool hV_Screen_Buffer::getTouch | ( | uint16_t & | x, |
uint16_t & | y, | ||
uint16_t & | z, | ||
uint16_t & | t ) |
Poll touch.
[out] | x | x coordinate |
[out] | y | y coordinate |
[out] | z | z coordinate=pressure |
[out] | t | event if available, otherwise 0 |
More: Coordinate, Touch
bool hV_Screen_Buffer::getTouchInterrupt | ( | ) |
Check touch interrupt.
|
virtual |
|
virtual |
bool hV_Screen_Buffer::isTouch | ( | ) |
Is touch available?
bool hV_Screen_Buffer::isTouchEvent | ( | ) |
Are touch events available?
|
virtual |
Draw line, rectangle coordinates.
x1 | top left coordinate, x-axis |
y1 | top left coordinate, y-axis |
x2 | bottom right coordinate, x-axis |
y2 | bottom right coordinate, y-axis |
colour | 16-bit colour |
More: Coordinate, Colour
|
virtual |
Draw pixel.
x1 | point coordinate, x-axis |
y1 | point coordinate, y-axis |
colour | 16-bit colour |
More: Coordinate, Colour
|
virtual |
Draw rectangle, rectangle coordinates.
x1 | top left coordinate, x-axis |
y1 | top left coordinate, y-axis |
x2 | bottom right coordinate, x-axis |
y2 | bottom right coordinate, y-axis |
colour | 16-bit colour |
More: Coordinate, Colour
|
virtual |
Screen colour depth.
More: Coordinate
|
virtual |
Screen size, diagonal.
|
virtual |
Screen size, x-axis of logical screen.
|
virtual |
Screen size, y-axis of logical screen.
|
virtual |
Select font number.
font | default = 0, 0..fontMax()-1 |
|
virtual |
Set transparent or opaque text.
flag | default = 1 = opaque = solid, false = transparent |
|
virtual |
Set additional spaces between two characters, horizontal axis.
number | of spaces default = 1 pixel |
|
virtual |
Set additional spaces between two characters, vertical axis.
number | of spaces default = 1 pixel |
|
virtual |
Set orientation.
orientation | orientation,
|
|
virtual |
Set pen opaque.
flag | default = true = opaque = solid, false = wire frame |
|
virtual |
Number of characters to fit a size, x-axis.
text | string to evaluate |
pixels | number of pixels to fit in |
|
virtual |
String size, x-axis.
text | string to evaluate |
|
virtual |
Draw triangle, rectangle coordinates.
x1 | first point coordinate, x-axis |
y1 | first point coordinate, y-axis |
x2 | second point coordinate, x-axis |
y2 | second point coordinate, y-axis |
x3 | third point coordinate, x-axis |
y3 | third point coordinate, y-axis |
colour | 16-bit colour |
More: Coordinate, Colour
|
pure virtual |
Request information about the screen.
Implemented in Screen_EPD_EXT3_Fast.