menu.h File Reference
#include <string>
#include <vector>
#include <algorithm>
#include <time.h>
#include "externs.h"
#include "format.h"
#include "defines.h"
#include "libutil.h"
Go to the source code of this file.
|
Classes |
struct | menu_letter |
class | MenuEntry |
class | ToggleableMenuEntry |
class | MonsterMenuEntry |
class | FeatureMenuEntry |
class | MenuHighlighter |
class | MenuDisplay |
class | MenuDisplayText |
class | MenuDisplayTile |
class | Menu |
class | ToggleableMenu |
class | column_composer |
struct | column_composer::column |
class | formatted_scroller |
class | MenuItem |
class | TextItem |
class | NoSelectTextItem |
class | FormattedTextItem |
class | MenuObject |
class | MenuFreeform |
class | MenuScroller |
class | MenuDescriptor |
class | MenuTooltip |
class | BoxMenuHighlighter |
class | BlackWhiteHighlighter |
class | MenuButton |
class | PrecisionMenu |
Defines |
#define | NUMBUFSIZ 10 |
Enumerations |
enum | MenuEntryLevel { MEL_NONE = -1,
MEL_TITLE,
MEL_SUBTITLE,
MEL_ITEM
} |
enum | MenuFlag {
MF_NOSELECT = 0x0000,
MF_SINGLESELECT = 0x0001,
MF_MULTISELECT = 0x0002,
MF_NO_SELECT_QTY = 0x0004,
MF_ANYPRINTABLE = 0x0008,
MF_SELECT_BY_PAGE = 0x0010,
MF_ALWAYS_SHOW_MORE = 0x0020,
MF_NOWRAP = 0x0040,
MF_ALLOW_FILTER = 0x0080,
MF_ALLOW_FORMATTING = 0x0100,
MF_SHOW_PAGENUMBERS = 0x0200,
MF_EASY_EXIT = 0x1000,
MF_START_AT_END = 0x2000
} |
Functions |
int | menu_colour (const std::string &itemtext, const std::string &prefix="", const std::string &tag="") |
int | linebreak_string (std::string &s, int wrapcol, int maxcol) |
int | linebreak_string2 (std::string &s, int maxcol) |
std::string | get_linebreak_string (const std::string &s, int maxcol) |
Define Documentation
Enumeration Type Documentation
- Enumerator:
-
MEL_NONE |
|
MEL_TITLE |
|
MEL_SUBTITLE |
|
MEL_ITEM |
|
- Enumerator:
-
MF_NOSELECT |
|
MF_SINGLESELECT |
|
MF_MULTISELECT |
|
MF_NO_SELECT_QTY |
|
MF_ANYPRINTABLE |
|
MF_SELECT_BY_PAGE |
|
MF_ALWAYS_SHOW_MORE |
|
MF_NOWRAP |
|
MF_ALLOW_FILTER |
|
MF_ALLOW_FORMATTING |
|
MF_SHOW_PAGENUMBERS |
|
MF_EASY_EXIT |
|
MF_START_AT_END |
|
Function Documentation
int linebreak_string |
( |
std::string & |
s, |
|
|
int |
wrapcol, |
|
|
int |
maxcol | |
|
) |
| | |