home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made vertical scroll hint more informative.
[plomrogue]
/
windows.h
diff --git
a/windows.h
b/windows.h
index b5df4981e98fe13a7d9f3cc9ed2e19e44692c02b..522f26f37b882dd0eba3049327768930287e89ac 100644
(file)
--- a/
windows.h
+++ b/
windows.h
@@
-1,26
+1,26
@@
struct WinMeta {
WINDOW * screen;
WINDOW * pad;
struct WinMeta {
WINDOW * screen;
WINDOW * pad;
-
int
pad_offset;
+
uint16_t
pad_offset;
struct Win * chain_start;
struct Win * chain_end;
struct Win * active;
struct Win * chain_start;
struct Win * chain_end;
struct Win * active;
-
in
t width;
-
in
t height; };
+
uint16_
t width;
+
uint16_
t height; };
struct Win {
struct Win * prev;
struct Win * next;
struct Win {
struct Win * prev;
struct Win * next;
-
in
t width;
-
in
t height;
+
uint16_
t width;
+
uint16_
t height;
WINDOW * curses;
char * title;
void (* draw) (struct Win *);
void * data; };
struct yx {
WINDOW * curses;
char * title;
void (* draw) (struct Win *);
void * data; };
struct yx {
-
in
t y;
-
in
t x; };
+
uint16_
t y;
+
uint16_
t x; };
struct Corners {
struct yx tl;
struct Corners {
struct yx tl;
@@
-37,9
+37,10
@@
struct yx place_window (struct WinMeta *, struct Win *);
void update_windows (struct WinMeta *, struct Win *);
void destroy_window (struct Win *);
void draw_windows (struct Win *);
void update_windows (struct WinMeta *, struct Win *);
void destroy_window (struct Win *);
void draw_windows (struct Win *);
-void draw_windows_borders (struct Win *, struct Win *, struct Corners *,
in
t);
+void draw_windows_borders (struct Win *, struct Win *, struct Corners *,
uint16_
t);
void draw_window_borders (struct Win *, char);
void draw_window_borders (struct Win *, char);
+void draw_vertical_scroll_hint (struct WinMeta *, uint16_t, uint32_t, char);
void draw_all_windows (struct WinMeta *);
void draw_all_windows (struct WinMeta *);
-void resize_active_window (struct WinMeta *,
int, in
t);
+void resize_active_window (struct WinMeta *,
uint16_t, uint16_
t);
void cycle_active_window (struct WinMeta *, char);
void shift_active_window (struct WinMeta *, char);
void cycle_active_window (struct WinMeta *, char);
void shift_active_window (struct WinMeta *, char);