OBJ_HEADER Structure

Microchip Graphics Library

Microchip Graphics Library
OBJ_HEADER Structure
C
typedef struct {
  WORD ID;
  void * pNxtObj;
  GOL_OBJ_TYPE type;
  WORD state;
  SHORT left;
  SHORT top;
  SHORT right;
  SHORT bottom;
  GOL_SCHEME * pGolScheme;
  DRAW_FUNC DrawObj;
  FREE_FUNC FreeObj;
  MSG_FUNC MsgObj;
  MSG_DEFAULT_FUNC MsgDefaultObj;
} OBJ_HEADER;
Overview

This structure defines the first nine fields of the Objects structure. This allows generic operations on library Objects.

Members
Members 
Description 
WORD ID; 
Unique id assigned for referencing. 
void * pNxtObj; 
A pointer to the next object. 
GOL_OBJ_TYPE type; 
Identifies the type of GOL object. 
WORD state; 
State of object. 
SHORT left; 
Left position of the Object. 
SHORT top; 
Top position of the Object. 
SHORT right; 
Right position of the Object. 
SHORT bottom; 
Bottom position of the Object. 
GOL_SCHEME * pGolScheme; 
Pointer to the scheme used. 
DRAW_FUNC DrawObj; 
function pointer to the object draw function 
FREE_FUNC FreeObj; 
function pointer to the object free function 
MSG_FUNC MsgObj; 
function pointer to the object message function 
MSG_DEFAULT_FUNC MsgDefaultObj; 
function pointer to the object default message function 
Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved