frodo-wii/Src/menu.h

45 lines
1.0 KiB
C
Raw Normal View History

2009-01-13 19:46:42 +01:00
/*********************************************************************
*
* Copyright (C) 2004, 2008, Simon Kagstrom
*
* Filename: menu.h
* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
* Description:
*
* $Id$
*
********************************************************************/
#ifndef __MENU_H__
#define __MENU_H__
#include <SDL.h>
#include <SDL_ttf.h>
#include <stdint.h>
#if defined(__cplusplus)
extern "C" {
#endif /* __cplusplus */
2009-01-22 21:34:33 +01:00
#define KEY_UP 1
#define KEY_DOWN 2
#define KEY_LEFT 4
#define KEY_RIGHT 8
#define KEY_SELECT 16
#define KEY_ESCAPE 32
#define KEY_PAGEDOWN 64
#define KEY_PAGEUP 128
void menu_print_font(SDL_Surface *screen, TTF_Font *font, int r, int g, int b,
int x, int y, const char *msg);
2009-01-24 09:54:38 +01:00
int menu_select(SDL_Surface *screen, TTF_Font *font, const char **pp_msgs,
2009-01-13 19:46:42 +01:00
int *p_submenus);
2009-01-22 21:34:33 +01:00
uint32_t menu_wait_key_press(void);
2009-01-13 19:46:42 +01:00
#if defined(__cplusplus)
};
#endif /* __cplusplus */
#endif /* !__MENU_H__ */