Travis Doxygen enhappiment
This commit is contained in:
parent
fda3bfd2d2
commit
4b4a2b7e95
2 changed files with 17 additions and 9 deletions
|
|
@ -136,6 +136,14 @@ int16_t Adafruit_Image::height(void) {
|
|||
|
||||
/*!
|
||||
@brief Draw image to an Adafruit_SPITFT-type display.
|
||||
@param tft
|
||||
Screen to draw to (any Adafruit_SPITFT-derived class).
|
||||
@param x
|
||||
Horizontal offset in pixels; left edge = 0, positive = right.
|
||||
Value is signed, image will be clipped if all or part is off
|
||||
the screen edges. Screen rotation setting is observed.
|
||||
@param y
|
||||
Vertical offset in pixels; top edge = 0, positive = down.
|
||||
@return None (void).
|
||||
*/
|
||||
void Adafruit_Image::draw(Adafruit_SPITFT &tft, int16_t x, int16_t y) {
|
||||
|
|
|
|||
|
|
@ -46,15 +46,15 @@ class Adafruit_Image {
|
|||
protected:
|
||||
// MOST OF THESE ARE NOT SUPPORTED YET -- WIP
|
||||
union { // Single pointer, only one variant is used:
|
||||
GFXcanvas1 *canvas1; // Canvas object if 1bpp format
|
||||
GFXcanvas8 *canvas8; // Canvas object if 8bpp format
|
||||
GFXcanvas16 *canvas16; // Canvas object if 16bpp
|
||||
} canvas;
|
||||
GFXcanvas1 *mask; // 1bpp image mask (or NULL)
|
||||
uint16_t *palette; // Color palette for 8bpp image (or NULL)
|
||||
uint8_t format; // Canvas bundle type in use
|
||||
void dealloc(void); // Free/deinitialize variables
|
||||
friend class Adafruit_ImageReader;
|
||||
GFXcanvas1 *canvas1; ///< Canvas object if 1bpp format
|
||||
GFXcanvas8 *canvas8; ///< Canvas object if 8bpp format
|
||||
GFXcanvas16 *canvas16; ///< Canvas object if 16bpp
|
||||
} canvas; ///< Union of different GFXcanvas types
|
||||
GFXcanvas1 *mask; ///< 1bpp image mask (or NULL)
|
||||
uint16_t *palette; ///< Color palette for 8bpp image (or NULL)
|
||||
uint8_t format; ///< Canvas bundle type in use
|
||||
void dealloc(void); ///< Free/deinitialize variables
|
||||
friend class Adafruit_ImageReader; ///< Loading occurs here
|
||||
};
|
||||
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Reference in a new issue