GOLDraw Function

Microchip Graphics Library

Microchip Graphics Library
GOLDraw Function
C
WORD GOLDraw();
Overview

This function loops through the active list and redraws objects that need to be redrawn. Partial redrawing or full redraw is performed depending on the drawing states of the objects. GOLDrawCallback() function is called by GOLDraw() when drawing of objects in the active list is completed.

Returns

Non-zero if the active link list drawing is completed.

Preconditions

none

Side Effects

none

Example
// Assume objects are created & states are set to draw objects
while(1){
    if(GOLDraw()){              // parse active list and redraw objects that needs to be redrawn
 
        // here GOL drawing is completed
        // it is safe to modify objects states and linked list

        TouchGetMsg(&msg);      // evaluate messages from touch screen device

        GOLMsg(&msg);           // evaluate each object is affected by the message
    }
}
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved