GOLSetScheme Macro

Microchip Graphics Library

Microchip Graphics Library
GOLSetScheme Macro
C
#define GOLSetScheme(pObj, pScheme) ((OBJ_HEADER *)pObj)->pGolScheme = pScheme
Overview

This macro sets the GOL scheme to be used for the object.

Input Parameters
Input Parameters 
Description 
pObj 
Pointer to the object of interest. 
pScheme 
Pointer to the style scheme to be used. 
Returns

none

Preconditions

none

Side Effects

none

Example
extern FONT_FLASH Gentium12;
GOL_SCHEME *pScheme1;
BUTTON *pButton;

pScheme1 = GOLCreateScheme();
pScheme1->pFont = &Gentium12;

// assume button is created and initialized

// reassign the scheme used by pButton to pScheme1
GOLSetScheme(pButton, pScheme1);
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved