![]() |
Software Reference Manual 9.2.2
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Generic buffered screen class. More...
#include <hV_Screen_Buffer.h>
Public Member Functions | |
| hV_Screen_Buffer () | |
| Constructor. | |
General | |
| virtual void | begin () |
| Initialisation. | |
| virtual STRING_TYPE | WhoAmI ()=0 |
| Request information about the screen. More... | |
| virtual void | clear (uint16_t colour=myColours.black) |
| Clear the screen. More... | |
| virtual void | flush ()=0 |
| Send frame-buffer to display. | |
| virtual void | setOrientation (uint8_t orientation) |
| Set orientation. More... | |
| uint8_t | getOrientation () |
| Get orientation. More... | |
| virtual uint16_t | screenSizeX () |
| Screen size, x-axis of logical screen. More... | |
| virtual uint16_t | screenSizeY () |
| Screen size, y-axis of logical screen. More... | |
| virtual uint16_t | screenDiagonal () |
| Screen size, diagonal. More... | |
| virtual uint8_t | screenColourBits () |
| Screen colour depth. More... | |
Graphics | |
| virtual void | circle (uint16_t x0, uint16_t y0, uint16_t radius, uint16_t colour) |
| Draw circle. More... | |
| virtual void | line (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t colour) |
| Draw line, rectangle coordinates. More... | |
| virtual void | dLine (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t colour) |
| Draw line, vector coordinates. More... | |
| virtual void | setPenSolid (bool flag=true) |
| Set pen opaque. More... | |
| 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. More... | |
| virtual void | rectangle (uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t colour) |
| Draw rectangle, rectangle coordinates. More... | |
| virtual void | dRectangle (uint16_t x0, uint16_t y0, uint16_t dx, uint16_t dy, uint16_t colour) |
| Draw rectangle, vector coordinates. More... | |
| virtual void | point (uint16_t x1, uint16_t y1, uint16_t colour) |
| Draw pixel. More... | |
Text | |
| virtual void | selectFont (uint8_t font) |
| Select font number. More... | |
| virtual uint8_t | getFont () |
| Get font number. More... | |
| virtual uint8_t | addFont (font_s fontName) |
| Add a font. More... | |
| virtual void | setFontSolid (bool flag=true) |
| Set transparent or opaque text. More... | |
| virtual void | setFontSpaceX (uint8_t number=1) |
| Set additional spaces between two characters, horizontal axis. More... | |
| virtual void | setFontSpaceY (uint8_t number=1) |
| Set additional spaces between two characters, vertical axis. More... | |
| virtual uint16_t | characterSizeX (uint8_t character=0x00) |
| Character size, x-axis. More... | |
| virtual uint16_t | characterSizeY () |
| Character size, y-axis. More... | |
| virtual uint16_t | stringSizeX (STRING_CONST_TYPE text) |
| String size, x-axis. More... | |
| virtual uint8_t | stringLengthToFitX (STRING_CONST_TYPE text, uint16_t pixels) |
| Number of characters to fit a size, x-axis. More... | |
| virtual uint8_t | fontMax () |
| Number of fonts. More... | |
| virtual void | gText (uint16_t x0, uint16_t y0, STRING_CONST_TYPE text, uint16_t textColour=myColours.black, uint16_t backColour=myColours.white) |
| Draw ASCII Text (pixel coordinates) More... | |
| virtual void | gTextLarge (uint16_t x0, uint16_t y0, STRING_CONST_TYPE text, uint16_t textColour=myColours.black, uint16_t backColour=myColours.white) |
| Draw ASCII Text (pixel coordinates) More... | |
Touch | |
| |
| bool | isTouch () |
| Is touch available? More... | |
| bool | isTouchEvent () |
| Are touch events available? More... | |
| bool | getTouch (touch_t &touch) |
| Poll touch. More... | |
| void | clearTouch () |
| Clear touch. | |
| bool | getTouchInterrupt () |
| Check touch interrupt. More... | |
| 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 |
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 |
|
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
|
virtual |
Number of fonts.
|
virtual |
Get font number.
| uint8_t hV_Screen_Buffer::getOrientation | ( | ) |
Get orientation.
| bool hV_Screen_Buffer::getTouch | ( | touch_t & | touch | ) |
Poll touch.
| [out] | touch | touch structure |
More: Coordinate, Touch
| bool hV_Screen_Buffer::getTouchInterrupt | ( | ) |
Check touch interrupt.
|
virtual |
Draw ASCII Text (pixel coordinates)
| x0 | point coordinate, x-axis |
| y0 | point coordinate, y-axis |
| text | text string |
| textColour | 16-bit colour, default = white |
| backColour | 16-bit colour, default = black |
More: Colour, Fonts, Coordinate
|
virtual |
Draw ASCII Text (pixel coordinates)
| x0 | point coordinate, x-axis |
| y0 | point coordinate, y-axis |
| text | text string |
| textColour | 16-bit colour, default = white |
| backColour | 16-bit colour, default = black |
More: Colour, Fonts, Coordinate
| 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.