MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Hardware Abstraction Layer (HAL) > Library Interface > b) Data Types and Constants > GFX_DrawState Structure
MPLAB® Harmony Graphics Suite
GFX_DrawState Structure

Structure: GFX_DrawState_t 

mode - the shape drawing mode 

color - the draw color 

gradient - the list of gradient colors 

palette - the palette lookup table for blits 

alphaEnable - indicates if alpha blending is enabled alphaValue - the desired alpha blending amount 

maskEnable - indicates if pixel masking is enabled maskValue - the mask/transparency color value 

clipEnable - indicate of pixel clipping is enabled clipRect - the pixel clipping rectangle

C
typedef struct GFX_DrawState_t {
  GFX_DrawMode mode;
  GFX_Color color;
  GFX_ColorMode colorMode;
  struct {
    GFX_Color c0;
    GFX_Color c1;
    GFX_Color c2;
    GFX_Color c3;
  } gradient;
  GFX_PixelBuffer palette;
  const GFX_PixelBuffer* target;
  GFX_Rect targetClipRect;
  GFX_BlendMode blendMode;
  GFX_Bool alphaEnable;
  uint32_t globalAlphaValue;
  GFX_Bool maskEnable;
  uint32_t maskValue;
  GFX_Bool antialias;
  uint32_t thickness;
  GFX_Bool clipEnable;
  GFX_Rect clipRect;
  GFX_ResizeMode resizeMode;
  GFX_PipelineMode pipelineMode;
  GFX_DrawPipeline* pipeline;
} GFX_DrawState;
Remarks

None.

MPLAB® Harmony Graphics Suite