menu.h File Reference

Defines the data type and functions used by the menu system. More...

#include "render.h"
#include "text.h"

Include dependency graph for menu.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MenuItem_t
 Represents a user interface component on a menu. More...


typedef MenuItem_t MenuItem
typedef void(*) MenuItemFocus (MenuItem *item)
 Responds to a change in focus for an item.
typedef int(*) MenuItemInput (MenuItem *item, Uint8 *ec, rtsa_char keyval)
 Responds to player input for the menu item.
typedef int(*) MenuItemUpdate (MenuItem *item)
 Called once per frame to update the graphics on a menu item.


int MenuRun ()
 Runs a menu operating state.
void RemoveMenu ()
 Removes intenal menu system data and prepares for a new menu.
void SetupMenu (MenuItem *menu, int first, int count)
 Initalizes the menu system's internal data for a new menu.

Detailed Description

Defines the data type and functions used by the menu system.

Jeff Jackowski (
Copyright (C) 2007 Jeff Jackowski

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Or visit their website at:

Definition in file menu.h.

Generated on Mon May 28 04:41:39 2007 for Retro Tank Super Attack by  doxygen 1.5.2