aboutsummaryrefslogtreecommitdiff
path: root/ui_nwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui_nwindow.h')
-rw-r--r--ui_nwindow.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/ui_nwindow.h b/ui_nwindow.h
index ee2b810..198481b 100644
--- a/ui_nwindow.h
+++ b/ui_nwindow.h
@@ -3,21 +3,25 @@
#include <ncurses.h>
+#include "ui.h"
#define INITIAL_TITLE_LEN 32
+#define set_txtwindow_active(wnd, activate) wnd->active = activate; ui_thrd_force_update()
+
struct txtwindow {
unsigned int y;
unsigned int x;
unsigned int width;
unsigned int height;
- bool scrollable;
+ bool active;
char *title;
size_t title_len;
char **text;
int (*window_func)(WINDOW *, struct txtwindow *);
chtype attrs;
chtype text_attrs;
+ void *userptr;
};
typedef int (*window_func)(WINDOW *, struct txtwindow *);
@@ -28,9 +32,6 @@ init_txtwindow(unsigned int, unsigned int y, unsigned int width, unsigned int he
void
free_txtwindow(struct txtwindow *a);
-int
-txtwindow_cb(WINDOW *win, void *data, bool timedout);
-
void
register_txtwindow(struct txtwindow *a);
@@ -38,9 +39,6 @@ void
set_txtwindow_text(struct txtwindow *a, char *text);
void
-set_txtwindow_scrollable(struct txtwindow *a, bool scrollable);
-
-void
set_txtwindow_title(struct txtwindow *a, const char *title);
#endif