File: menu.h

package info (click to toggle)
dhex 0.69-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 512 kB
  • sloc: ansic: 5,482; makefile: 71; sh: 46
file content (19 lines) | stat: -rw-r--r-- 604 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef MENU_H
#define	MENU_H
#include <stdio.h>
#include "machine_type.h"
#include "config.h"
#include "output.h"
#include "datatypes.h"


void clearMenu(tMenu* Menu);
void newMenuItem(tMenu* Menu,char* text,tUInt16 y,tUInt16 x,char hotkey,tBool active,tInt8* itemnum);
void printMenu(tOutput* output,tMenu* Menu,tUInt16 offsy,tUInt16 offsx);
void MenuMoveLeft(tMenu* Menu);
void MenuMoveRight(tMenu* Menu);
void MenuMoveUp(tMenu* Menu);
void MenuMoveDown(tMenu* Menu);
void MenuSetActiveItem(tMenu* Menu,tInt8 itemnum);
tInt8 MenuInteract(tOutput* output,tMenu* Menu,tInt16 offsy,tInt16 offsx);
#endif