VgaGames 3 - System-menu man-pages

[.. upper level ..]

VG3_sysmenu_insert_callentry()

[added in version 1.2]

Insert an entry into the system-menu, which calls a self-defined function.
SYNTAX
void VG3_sysmenu_insert_callentry(struct vg3_sysmenu *sysm, struct vg3_sysmenu_submenu *submenu, struct vg3_text *title, int (*callf)(void *), void *vdata)

FUNCTION PARAMETERS
sysm System-menu-struct
submenu Where to put it: sub-menu or NULL = main menu
title Title of the text
callf Function to call
vdata Arbitrary parameter for function callf()

DESCRIPTION
Insert an entry into the system-menu, which calls a self-defined function. The entry is inserted into the sub-menu submenu. The function must return an integer value: - 0: OK - 1: Close the window and exit

SEE ALSO
VG3_sysmenu_insert_menuentry() VG3_sysmenu_insert_dataentry() VG3_sysmenu_insert_textentry()