/* src/client/windows.h
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
*
* A tiled window manager for the terminal.
*
#include <ncurses.h> /* WINDOW, chtype */
#include <stdint.h> /* uint8_t, int16_t, uint16_t, uint32_t */
-#include "../common/yx_uint16.h" /* yx_uint16 struct */
#include "keybindings.h" /* struct KeyBindingDB */
+struct yx_uint16
+{
+ uint16_t y;
+ uint16_t x;
+};
+
struct WinDB
{
WINDOW * t_screen; /* ncurses' pointer to the terminal screen */
struct yx_uint16 target_center; /* saves .center when toggling .view */
struct yx_uint16 frame_size; /* size of window/frame to see winmap through*/
struct yx_uint16 start; /* upper left corner of window in v_screen */
- struct yx_uint16 center; /* winnap cell to center frame on if < winmap */
+ struct yx_uint16 center; /* winmap cell to center frame on if < winmap */
struct yx_uint16 winmap_size; /* delimits .winmap, sorts it into lines */
chtype * winmap; /* window content in sequence of chtype's to write */
int16_t target_height; /* window size / .frame_size description in config */