Microchip® Advanced Software Framework

gfx_mono.h File Reference

Monochrome graphic library API header file.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include <stdint.h>
#include "compiler.h"
#include "gfx_mono_ug_2832hsweg04.h"
#include "gfx_mono_generic.h"

Macros

#define PROGMEM_DECLARE(type, name)   const type name
 
#define PROGMEM_PTR_T   const *
 
#define PROGMEM_READ_BYTE(x)   *(x)
 
#define PROGMEM_STRING_T   const char*
 
#define PROGMEM_T   const
 
Circle Sector Definitions
#define GFX_OCTANT0   (1 << 0)
 Bitmask for drawing circle octant 0. More...
 
#define GFX_OCTANT1   (1 << 1)
 Bitmask for drawing circle octant 1. More...
 
#define GFX_OCTANT2   (1 << 2)
 Bitmask for drawing circle octant 2. More...
 
#define GFX_OCTANT3   (1 << 3)
 Bitmask for drawing circle octant 3. More...
 
#define GFX_OCTANT4   (1 << 4)
 Bitmask for drawing circle octant 4. More...
 
#define GFX_OCTANT5   (1 << 5)
 Bitmask for drawing circle octant 5. More...
 
#define GFX_OCTANT6   (1 << 6)
 Bitmask for drawing circle octant 6. More...
 
#define GFX_OCTANT7   (1 << 7)
 Bitmask for drawing circle octant 7. More...
 
#define GFX_QUADRANT0   (GFX_OCTANT0 | GFX_OCTANT1)
 Bitmask for drawing circle quadrant 0. More...
 
#define GFX_QUADRANT1   (GFX_OCTANT2 | GFX_OCTANT3)
 Bitmask for drawing circle quadrant 1. More...
 
#define GFX_QUADRANT2   (GFX_OCTANT4 | GFX_OCTANT5)
 Bitmask for drawing circle quadrant 2. More...
 
#define GFX_QUADRANT3   (GFX_OCTANT6 | GFX_OCTANT7)
 Bitmask for drawing circle quadrant 3. More...
 
#define GFX_LEFTHALF   (GFX_QUADRANT3 | GFX_QUADRANT0)
 Bitmask for drawing left half of circle. More...
 
#define GFX_TOPHALF   (GFX_QUADRANT0 | GFX_QUADRANT1)
 Bitmask for drawing top half of circle. More...
 
#define GFX_RIGHTHALF   (GFX_QUADRANT1 | GFX_QUADRANT2)
 Bitmask for drawing right half of circle. More...
 
#define GFX_BOTTOMHALF   (GFX_QUADRANT2 | GFX_QUADRANT3)
 Bitmask for drawing bottom half of circle. More...
 
#define GFX_WHOLE   0xFF
 Bitmask for drawing whole circle. More...
 

Typedefs

typedef uint8_t gfx_coord_t
 
typedef uint8_t gfx_mono_color_t
 

Enumerations

enum  gfx_mono_bitmap_type {
  GFX_MONO_BITMAP_RAM,
  GFX_MONO_BITMAP_PROGMEM
}
 Bitmap types. More...
 
enum  gfx_mono_color {
  GFX_PIXEL_CLR = 0,
  GFX_PIXEL_SET = 1,
  GFX_PIXEL_XOR = 2
}
 Pixel operations. More...
 

#define PROGMEM_DECLARE (   type,
  name 
)    const type name
#define PROGMEM_STRING_T   const char*
#define PROGMEM_T   const