3 #include "wincontrol.h"
4 #include <stdint.h> /* for uint8_t */
5 #include "windows.h" /* for suspend_win(), append_win(), reset_pad_offset(),
6 * resize_active_win(), struct Win, struct WinMeta
8 #include "yx_uint16.h" /* for yx_uint16 struct */
11 extern uint8_t toggle_window(struct WinMeta * win_meta, struct Win * win)
13 if (0 != win->frame.curses_win)
15 return suspend_win(win_meta, win);
19 return append_win(win_meta, win);
25 extern void scroll_pad(struct WinMeta * win_meta, char dir)
29 reset_pad_offset(win_meta, win_meta->pad_offset + 1);
33 reset_pad_offset(win_meta, win_meta->pad_offset - 1);
39 extern uint8_t growshrink_active_window(struct WinMeta * win_meta, char change)
41 if (0 != win_meta->active)
43 struct yx_uint16 size = win_meta->active->frame.size;
48 else if (change == '+')
52 else if (change == '_')
56 else if (change == '*')
60 return resize_active_win (win_meta, size);