blob: ca9200f34858d5a4e703628d006fd1d08ea6b015 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/******************************************************************************
* Copyright (C) 2015 Alejandro Colomar Andrés *
******************************************************************************/
/******************************************************************************
******* include guard ********************************************************
******************************************************************************/
#ifndef MSW_MENU_IFACE_H
#define MSW_MENU_IFACE_H
/******************************************************************************
******* headers **************************************************************
******************************************************************************/
#include <stdbool.h>
#include <stddef.h>
/******************************************************************************
******* enums ****************************************************************
******************************************************************************/
enum Menu_Iface_Mode {
MENU_IFACE_FOO = 0,
MENU_IFACE_CLUI,
MENU_IFACE_TUI,
MENU_IFACE_GUI
};
/******************************************************************************
******* structs **************************************************************
******************************************************************************/
struct Menu_Iface_Variables {
int level;
ptrdiff_t rows;
ptrdiff_t cols;
double p;
};
/******************************************************************************
******* variables ************************************************************
******************************************************************************/
extern bool flag_exit;
extern int menu_iface_mode;
extern struct Menu_Iface_Variables menu_iface_variables;
/******************************************************************************
******* functions ************************************************************
******************************************************************************/
void menu_iface_init (void);
void menu_iface_board (int *level, ptrdiff_t *rows, ptrdiff_t *cols,
int *mines);
void menu_iface (void);
/******************************************************************************
******* include guard ********************************************************
******************************************************************************/
# endif /* menu_iface.h */
/******************************************************************************
******* end of file **********************************************************
******************************************************************************/
|