GOLFindObject Function

Microchip Graphics Library

Microchip Graphics Library
GOLFindObject Function
C
OBJ_HEADER * GOLFindObject(
    WORD ID
);
Overview

This function finds an object in the active list pointed to by _pGolObjects using the given object ID.

Input Parameters
Input Parameters 
Description 
WORD ID 
User assigned value set during the creation of the object. 
Returns

Pointer to the object with the given ID.

Preconditions

none

Side Effects

none

Example
void CopyObject(OBJ_HEADER *pSrcList, OBJ_HEADER *pDstList, WORD ID) 
{
    OBJ_HEADER *pTemp;
    
    pTemp = GOLFindObject(ID);              // find the object
    if (pTemp != NULL) {
        GOLSetList(pDstList);               // destination as active list
        GOLAddObject(pObj);                 // add object to active list
    }
}
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved