-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.h
37 lines (33 loc) · 1 KB
/
interface.h
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
#ifndef CODE_WIKI_INTERFACE_H
#define CODE_WIKI_INTERFACE_H
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <windows.h>
#define TEC_ENTER 13
#define TEC_TAB 9
#define TEC_BACKSPACE 8
#define TEC_ESC 27
#define TEC_DIR 1077
#define TEC_ESQ 1075
#define TEC_BAIXO 1080
#define TEC_CIMA 1072
#define TEC_DEL 1083
#define TEC_END 1079
#define TEC_INSERT 1082
#define TEC_HOME 1071
#define TEC_PAGE_UP 1073
#define TEC_PAGE_DOWN 1081
enum DOS_COLORS {
BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN,
LIGHT_GRAY, DARK_GRAY, LIGHT_BLUE, LIGHT_GREEN, LIGHT_CYAN,
LIGHT_RED, LIGHT_MAGENTA, YELLOW, WHITE
};
char* word_wrap(char* buffer, char* string, int line_width);
int Selecao(int x, int y, int Largura, int Altura, char *Opcoes[], int n);
int GetTecla();
void GotoXY(int x, int y);
void TextColoreback(int letras, int fundo);
void Borda(int x, int y, int largura, int altura, int tipo, int sombra);
int Menu(char opcoes[][51], int x[], int y[], int opcao, int n);
#endif //CODE_WIKI_INTERFACE_H