MtrSetScaleColors Macro

Microchip Graphics Library

Microchip Graphics Library
MtrSetScaleColors Macro
C
#define MtrSetScaleColors(pMtr, arc1, arc2, arc3, arc4, arc5, arc6) \
    {                                                                   \
        pMtr->arcColor6 = arc6;                                         \
        pMtr->arcColor5 = arc5;                                         \
        pMtr->arcColor4 = arc4;                                         \
        pMtr->arcColor3 = arc3;                                         \
        pMtr->arcColor2 = arc2;                                         \
        pMtr->arcColor1 = arc1;                                         \
    }
Overview

Scale colors can be used to highlight values of the meter. User can set these colors to define the arc colors and scale colors. This also sets the color of the meter value when displayed. Limitation is that color settings are set to the following angles: Color Boundaries Type Whole Type Half Type Quarter Arc 6 225 to 180 not used not used Arc 5 179 to 135 179 to 135 not used Arc 4 134 to 90 134 to 90 not used Arc 3 89 to 45 89 to 45 89 to 45 Arc 2 44 to 0 44 to 0 44 to 0 Arc 1 -45 to -1 not used not used As the meter is drawn colors are changed depending on the angle of the scale and label being drawn.

Input Parameters
Input Parameters 
Description 
pMtr 
Pointer to the object. 
arc1 
color for arc 1. 
arc2 
color for arc 2. 
arc3 
color for arc 3. 
arc4 
color for arc 4. 
arc5 
color for arc 5. 
arc6 
color for arc 6. 
Returns

none

Preconditions

The object must be created (using MtrCreate()) before a call to this macro is performed.

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved