aboutsummaryrefslogtreecommitdiff
path: root/lib/ui.h
diff options
context:
space:
mode:
authorgabrielgio <gabrielgio@workstation.lan>2024-02-17 17:13:07 +0100
committergabrielgio <gabrielgio@workstation.lan>2024-02-17 17:13:07 +0100
commit0a2e62f57734f820cd20e151d1150342408552ed (patch)
treee1e9c786571bf1d856ba42c4c6cf014b008822c4 /lib/ui.h
parent78b0ba12073b0940541d91a7568e8b7ada572848 (diff)
downloaddict-0a2e62f57734f820cd20e151d1150342408552ed.tar.gz
dict-0a2e62f57734f820cd20e151d1150342408552ed.tar.bz2
dict-0a2e62f57734f820cd20e151d1150342408552ed.zip
ref: Apply astyle --style=linux
Diffstat (limited to 'lib/ui.h')
-rw-r--r--lib/ui.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ui.h b/lib/ui.h
index 90b352f..12ee2f4 100644
--- a/lib/ui.h
+++ b/lib/ui.h
@@ -1,7 +1,8 @@
#pragma once
#include <ncurses.h>
-typedef struct progress_bar {
+typedef struct progress_bar
+{
float total;
float current;
WINDOW *scr;
@@ -10,8 +11,8 @@ typedef struct progress_bar {
PROGRESS_BAR* new_progress_bar(WINDOW*, float);
void bar_step(PROGRESS_BAR*, float);
-
-typedef struct text_box {
+typedef struct text_box
+{
wchar_t *text;
int length;
int current;
@@ -20,4 +21,3 @@ typedef struct text_box {
TEXT_BOX* new_text_box(WINDOW*, int);
void get_char(TEXT_BOX* text, void (*sch)(char*, int));
-