mav_objListObjectAdd(3)

NAME
mav_objListObjectAdd - SMS management: object list.

LEVEL
Maverik Level 3

SYNTAX
int mav_objListObjectAdd(MAV_SMS *s, MAV_object *o);

int mav_objListObjectRmv(MAV_SMS *s, MAV_object *o);

int mav_objListEmpty(MAV_SMS *s, int *o);

int mav_objListIntersect(MAV_SMS *s, MAV_window *w, MAV_line *ln, MAV_objectIntersection *oi, MAV_object **o);

int mav_objListPointerReset(MAV_SMS *s);

int mav_objListPointerPush(MAV_SMS *s);

int mav_objListPointerPop(MAV_SMS *s);

int mav_objListObjectNext(MAV_SMS *s, MAV_object **o);

int mav_objListExecFn(MAV_SMS *s, MAV_drawInfo *di, MAV_SMSExecFn *fn);

int mav_objListDelete(MAV_SMS *s, int *o);

int mav_objListSize(MAV_SMS *s, int *sz);

DESCRIPTION
These are the callback routines for the Object List class of SMS. Each of these functions is registered for an SMS of this class on Maverik initialisation. adds object o to SMS s. removes object o from SMS s. empties SMS s. returns in o the object in the SMS with the closest intersection with line ln. If an intersection is detected, the closest intersection point is returned in oi, and the result of the function is MAV_TRUE. If no intersection is detected, the result of the function is MAV_FALSE. resets the SMS pointer to the start of the SMS. pushes the SMS pointer onto the pointer stack. pops the SMS pointer off the pointer stack. returns in o the object at the current pointer position in the SMS. executes the callback function fn, passing it drawing information di. deletes object o from SMS s. returns in sz the number of objects in SMS s.