summaryrefslogtreecommitdiffstats
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2019-11-28 09:45:15 +0000
committernicm <nicm>2019-11-28 09:45:15 +0000
commit2349b1dbef7cd0b4a165cd234d6757c34d5e02e6 (patch)
tree7d051ac6498399b82bb4418c87bad8fb01d831ec /tmux.h
parent067604bf8cb23c1a208d26d94dbae7c2ab46dabf (diff)
Make a best effort to set xpixel and ypixel for each pane and add
formats for them.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/tmux.h b/tmux.h
index d2a4196a..6d142ab9 100644
--- a/tmux.h
+++ b/tmux.h
@@ -78,6 +78,10 @@ struct winlink;
/* Maximum size of data to hold from a pane. */
#define READ_SIZE 4096
+/* Default pixel cell sizes. */
+#define DEFAULT_XPIXEL 16
+#define DEFAULT_YPIXEL 32
+
/* Attribute to make GCC check printf-like arguments. */
#define printflike(a, b) __attribute__ ((format (printf, a, b)))
@@ -928,6 +932,8 @@ struct window {
u_int sx;
u_int sy;
+ u_int xpixel;
+ u_int ypixel;
int flags;
#define WINDOW_BELL 0x1
@@ -2208,9 +2214,9 @@ void status_prompt_load_history(void);
void status_prompt_save_history(void);
/* resize.c */
-void resize_window(struct window *, u_int, u_int);
+void resize_window(struct window *, u_int, u_int, int, int);
void default_window_size(struct client *, struct session *, struct window *,
- u_int *, u_int *, int);
+ u_int *, u_int *, u_int *, u_int *, int);
void recalculate_size(struct window *);
void recalculate_sizes(void);
@@ -2402,7 +2408,7 @@ void winlink_stack_remove(struct winlink_stack *, struct winlink *);
struct window *window_find_by_id_str(const char *);
struct window *window_find_by_id(u_int);
void window_update_activity(struct window *);
-struct window *window_create(u_int, u_int);
+struct window *window_create(u_int, u_int, u_int, u_int);
void window_pane_set_event(struct window_pane *);
struct window_pane *window_get_active_at(struct window *, u_int, u_int);
struct window_pane *window_find_string(struct window *, const char *);
@@ -2413,7 +2419,8 @@ void window_redraw_active_switch(struct window *,
struct window_pane *);
struct window_pane *window_add_pane(struct window *, struct window_pane *,
u_int, int);
-void window_resize(struct window *, u_int, u_int);
+void window_resize(struct window *, u_int, u_int, int, int);
+void window_pane_send_resize(struct window_pane *, int);
int window_zoom(struct window_pane *);
int window_unzoom(struct window *);
int window_push_zoom(struct window *, int);