ClrState Macro

Microchip Graphics Library

Microchip Graphics Library
ClrState Macro
C
#define ClrState(pObj, stateBits) ((OBJ_HEADER *)pObj)->state &= (~(stateBits))
Overview

This macro clear the state bits of an object. Object must be redrawn to display the changes. It is possible to clear several state bits with this macro.

Input Parameters
Input Parameters 
Description 
pObj 
Pointer to the object of interest. 
stateBits 
Defines which state bits are to be cleared. Please refer to specific objects for object state bits definition for details 
Returns

none

Preconditions

none

Side Effects

none

Example

See example for SetState().

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