Pixels
Public Member Functions | Protected Member Functions | List of all members
Pixels Class Reference

Inherits PixelsBase.

Public Member Functions

 Pixels (uint16_t width, uint16_t height)
 
void init ()
 
- Public Member Functions inherited from PixelsBase
 PixelsBase (uint16_t width, uint16_t height)
 
void setOrientation (uint8_t orientation)
 
uint8_t getOrientation ()
 
virtual void enableAntialiasing (boolean enable)
 
boolean isAntialiased ()
 
void enableScroll (boolean enable)
 
boolean canScroll ()
 
void setLineWidth (double width)
 
double getLineWidth ()
 
int16_t getWidth ()
 
int16_t getHeight ()
 
void setOriginRelative ()
 
void setOriginAbsolute ()
 
boolean isOriginRelative ()
 
void clear ()
 
void setBackground (uint8_t r, uint8_t g, uint8_t b)
 
void setColor (uint8_t r, uint8_t g, uint8_t b)
 
void setBackground (RGB color)
 
void setColor (RGB color)
 
RGB getBackground ()
 
RGB getColor ()
 
RGB getPixel (int16_t x, int16_t y)
 
void drawPixel (int16_t x, int16_t y)
 
void drawLine (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void drawCircle (int16_t x, int16_t y, int16_t radius)
 
void drawOval (int16_t x, int16_t y, int16_t width, int16_t height)
 
void drawRectangle (int16_t x, int16_t y, int16_t width, int16_t height)
 
void drawRoundRectangle (int16_t x, int16_t y, int16_t width, int16_t height, int16_t r)
 
void fillCircle (int16_t x, int16_t y, int16_t radius)
 
void fillOval (int16_t x, int16_t y, int16_t width, int16_t height)
 
void fillRectangle (int16_t x, int16_t y, int16_t width, int16_t height)
 
void fillRoundRectangle (int16_t x, int16_t y, int16_t width, int16_t height, int16_t r)
 
int8_t drawBitmap (int16_t x, int16_t y, int16_t width, int16_t height, prog_uint16_t *data)
 
int8_t drawCompressedBitmap (int16_t x, int16_t y, uint8_t *data)
 
void drawIcon (int16_t xx, int16_t yy, prog_uchar data[])
 
void cleanIcon (int16_t xx, int16_t yy, prog_uchar data[])
 
int8_t loadBitmap (int16_t x, int16_t y, int16_t width, int16_t height, String path)
 
void scroll (int16_t dy, int16_t x1, int16_t x2, int8_t flags)
 
void scroll (int16_t dy, int8_t flags)
 
int setFont (prog_uchar font[])
 
void print (int16_t xx, int16_t yy, String text, int8_t kerning[]=NULL)
 
void cleanText (int16_t xx, int16_t yy, String text, int8_t kerning[]=NULL)
 
int16_t getTextLineHeight ()
 
int16_t getTextBaseline ()
 
int16_t getTextWidth (String text, int8_t kerning[]=NULL)
 

Protected Member Functions

void deviceWriteData (uint8_t high, uint8_t low)
 
void setRegion (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void quickFill (int b, int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void setFillDirection (uint8_t direction)
 
void scrollCmd ()
 
- Protected Member Functions inherited from PixelsBase
void printString (int16_t xx, int16_t yy, String text, boolean clean, int8_t kerning[]=NULL)
 
void drawGlyph (int16_t fontType, boolean clean, int16_t xx, int16_t yy, int16_t height, prog_uchar *data, int16_t ptr, int16_t length)
 
void setCurrentPixel (RGB color)
 
void setCurrentPixel (int16_t color)
 
void fill (int b, int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
void putColor (int16_t x, int16_t y, boolean steep, double weight)
 
RGB computeColor (RGB, double weight)
 
RGB computeColor (RGB fg, uint8_t opacity)
 
void resetRegion ()
 
void hLine (int16_t x1, int16_t y1, int16_t x2)
 
void vLine (int16_t x1, int16_t y1, int16_t y2)
 
virtual void drawCircleAntialiaced (int16_t x, int16_t y, int16_t radius, boolean bordermode)
 
virtual void drawFatLineAntialiased (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
virtual void drawLineAntialiased (int16_t x1, int16_t y1, int16_t x2, int16_t y2)
 
virtual void drawRoundRectangleAntialiased (int16_t x, int16_t y, int16_t width, int16_t height, int16_t rx, int16_t ry, boolean bordermode)
 
int16_t * loadFileBytes (String)
 

Additional Inherited Members

- Protected Attributes inherited from PixelsBase
int16_t deviceWidth
 
int16_t deviceHeight
 
int16_t width
 
int16_t height
 
boolean landscape
 
uint8_t orientation
 
boolean relativeOrigin
 
prog_uchar * currentFont
 
RGB foreground
 
RGB background
 
double lineWidth
 
uint8_t fillDirection
 
boolean antialiasing
 
boolean scrollSupported
 
boolean scrollEnabled
 
int16_t currentScroll
 
int16_t flipScroll
 
boolean scrollCleanMode
 

Detailed Description

Definition at line 36 of file Pixels_TEMPLATE.h.

Member Function Documentation

void Pixels::init ( )
virtual

Initializes hardware with defaults.

Reimplemented from PixelsBase.

Definition at line 81 of file Pixels_TEMPLATE.h.

void Pixels::setFillDirection ( uint8_t  direction)
protectedvirtual

Outout fine tuning method for slow devices

Parameters
directionaccepts FILL_TOPDOWN, FILL_LEFTRIGHT, FILL_DOWNTOP or FILL_RIGHTLEFT

Reimplemented from PixelsBase.

Definition at line 103 of file Pixels_TEMPLATE.h.


The documentation for this class was generated from the following file: