blob: 271105ae2c3e97e61eae9831a863fd9c4fc3638f (
plain)
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
|
#pragma once
#include <ncurses.h>
typedef struct progress_bar
{
float total;
float current;
WINDOW *scr;
} PROGRESS_BAR;
PROGRESS_BAR* new_progress_bar(WINDOW*, float);
void bar_step(PROGRESS_BAR*, float);
typedef struct text_box
{
wchar_t *text;
int length;
int current;
WINDOW *scr;
} TEXT_BOX;
TEXT_BOX* new_text_box(WINDOW*, int);
void get_char(TEXT_BOX* text, void (*sch)(char*, int));
typedef struct panel
{
WINDOW *scr;
} PANEL;
PANEL* new_panel(WINDOW*);
void write_char(PANEL*, int, char*);
|