X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=src%2Fclient%2Fwindows.h;h=0a46192beaa89adca4877ba17cbbc41c7e6322cd;hb=928ef02c73842f80cbf287bfb24fa97dff59072e;hp=92a35a1d93b96ca00e1efc645e81d9b22f00ee16;hpb=f9c94db47aa883149aa762fa128ac1ff1b3f92e1;p=plomrogue diff --git a/src/client/windows.h b/src/client/windows.h index 92a35a1..0a46192 100644 --- a/src/client/windows.h +++ b/src/client/windows.h @@ -25,7 +25,7 @@ #define WINDOWS_H #include /* WINDOW, chtype */ -#include /* uint8_t, int16_t, uint16_t */ +#include /* uint8_t, int16_t, uint16_t, uint32_t */ #include "../common/yx_uint16.h" /* yx_uint16 struct */ #include "keybindings.h" /* struct KeyBindingDB */ @@ -59,14 +59,15 @@ struct Win char id; /* Win identifier; also maps to default window drawing function. */ uint8_t target_height_type; /* 0: read .height/.width as positive size; */ uint8_t target_width_type; /* 1: as negative diff to v_screen size */ - uint8_t view; /* winde view mode: 0: use default draw function set by .id */ + uint8_t linebreak; /* linebreaking modes: 0: wide; 1: long; 1: compact */ + uint8_t view; /* window view mode: 0: use .id- set default draw function */ }; /* 1/2: use one of the two config view draw function */ /* Return yx offset to focus map of "mapsize" on "position" in "frame_size". */ extern uint16_t center_offset(uint16_t position, - uint16_t mapsize, uint16_t frame_size); + uint32_t mapsize, uint32_t frame_size); /* Get Win of "id". */ extern struct Win * get_win_by_id(char id); @@ -127,6 +128,8 @@ extern void toggle_winconfig(); */ extern void toggle_win_size_type(char axis); +extern void toggle_linebreak_type(); + /* Grow or shrink active window horizontally ("change" = "*"/"_") or vertically * ("change" = "+"/"-") if the new size was at least 1x1, the height at least * one cell smaller than .v_screen's vertical hight (to provide space for the