Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

sys/curses/menu.c File Reference

#include "crogue.h"

Go to the source code of this file.

Functions

sint UI_Menu_Hotkey (char key, int numchoices, void(*getchoice)(int N, char *buf))
void UI_Menu_Set_Persist (ushort p)
void UI_Menu_Redraw (coord pos, coord size, int numchoices, void(*getchoice)(int N, char *buf), int scrollpos)
int UI_Menu_Pick (rect r, int numchoices, void(*getchoice)(int N, char *buf), int viewonly)

Variables

int offset = 0
int persistence = 0


Function Documentation

sint UI_Menu_Hotkey char  key,
int  numchoices,
void(*  getchoice)(int N, char *buf)
[static]
 

Definition at line 33 of file menu.c.

References sint.

Referenced by UI_Menu_Pick().

int UI_Menu_Pick rect  r,
int  numchoices,
void(*  getchoice)(int N, char *buf),
int  viewonly
 

Definition at line 91 of file menu.c.

References rect::extent, KEY_ESC, offset, persistence, read_char(), rect::topleft, UI_Menu_Hotkey(), UI_Menu_Redraw(), and coord::y.

Referenced by actions_menu(), cast_spell(), help(), init_player(), items_menu(), main_menu(), options_menu(), and study_book().

void UI_Menu_Redraw coord  pos,
coord  size,
int  numchoices,
void(*  getchoice)(int N, char *buf),
int  scrollpos
[static]
 

Definition at line 49 of file menu.c.

References draw_string(), FontHeight(), SCREEN_WIDTH, coord::x, and coord::y.

Referenced by UI_Menu_Pick().

void UI_Menu_Set_Persist ushort  p  ) 
 

Definition at line 23 of file menu.c.

References offset, and persistence.

Referenced by options_menu(), and pick_multiple().


Variable Documentation

int offset = 0 [static]
 

Definition at line 19 of file menu.c.

Referenced by UI_Menu_Pick(), and UI_Menu_Set_Persist().

int persistence = 0 [static]
 

Definition at line 20 of file menu.c.

Referenced by UI_Menu_Pick(), and UI_Menu_Set_Persist().


Generated on Thu May 20 13:12:13 2004 for CalcRogue by doxygen 1.3.6