WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
Menu.h
1
#ifndef _WINC_MENU
2
#define _WINC_MENU
3
4
#include <WXP/MenuItem.h>
5
#include <WXP/String.h>
6
7
namespace
WXP
{
8
class
Menu
{
9
MenuItem
*items;
10
int
*index;
11
int
num;
12
int
shown;
13
int
main_menu;
14
int
exit_menu;
15
int
help_menu;
16
int
min_item;
17
char
title[50];
18
19
public
:
20
Menu
();
21
Menu
(
const
char
*title,
MenuItem
*menu,
int
flag );
22
int
init
();
23
int
set
(
const
char
*title,
MenuItem
*menu,
int
flag );
24
int
display
();
25
int
prompt
(
const
char
*
prompt
,
String
&str );
26
int
search
(
const
char
*item );
27
const
char
*
getAbbr
(
int
index );
28
int
check
(
int
index );
29
/*
30
menu types
31
*/
32
static
const
int
EXIT = 1;
33
static
const
int
MAIN = 2;
34
static
const
int
HELP = 4;
35
};
36
}
37
#endif
WXP::Menu
This class creates a menu system.
Definition
Menu.h:8
WXP::Menu::getAbbr
const char * getAbbr(int index)
Definition
Menu.cc:287
WXP::Menu::init
int init()
Definition
Menu.cc:45
WXP::Menu::prompt
int prompt(const char *prompt, String &str)
Definition
Menu.cc:180
WXP::Menu::search
int search(const char *item)
Definition
Menu.cc:267
WXP::Menu::set
int set(const char *title, MenuItem *menu, int flag)
Definition
Menu.cc:61
WXP::Menu::display
int display()
Definition
Menu.cc:85
WXP::Menu::check
int check(int index)
Definition
Menu.cc:301
WXP::Menu::Menu
Menu()
Definition
Menu.cc:25
WXP::String
This is a variable length string class.
Definition
String.h:5
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
WXP::MenuItem
This struct defines menu item parameters.
Definition
MenuItem.h:11
Generated on Sun Jul 28 2024 18:05:35 for WXP C++ Library by
1.9.7