version 1.220, 2010/05/05 23:24:23 |
version 1.221, 2010/05/23 19:42:19 |
|
|
* Window mode. Windows can be in several modes and this is used to call the |
* Window mode. Windows can be in several modes and this is used to call the |
* right function to handle input and output. |
* right function to handle input and output. |
*/ |
*/ |
struct client; |
struct session; |
struct window; |
struct window; |
struct mouse_event; |
struct mouse_event; |
struct window_mode { |
struct window_mode { |
struct screen *(*init)(struct window_pane *); |
struct screen *(*init)(struct window_pane *); |
void (*free)(struct window_pane *); |
void (*free)(struct window_pane *); |
void (*resize)(struct window_pane *, u_int, u_int); |
void (*resize)(struct window_pane *, u_int, u_int); |
void (*key)(struct window_pane *, struct client *, int); |
void (*key)(struct window_pane *, struct session *, int); |
void (*mouse)(struct window_pane *, |
void (*mouse)(struct window_pane *, |
struct client *, struct mouse_event *); |
struct session *, struct mouse_event *); |
void (*timer)(struct window_pane *); |
void (*timer)(struct window_pane *); |
}; |
}; |
|
|
|
|
int window_pane_set_mode( |
int window_pane_set_mode( |
struct window_pane *, const struct window_mode *); |
struct window_pane *, const struct window_mode *); |
void window_pane_reset_mode(struct window_pane *); |
void window_pane_reset_mode(struct window_pane *); |
void window_pane_key(struct window_pane *, struct client *, int); |
void window_pane_key(struct window_pane *, struct session *, int); |
void window_pane_mouse(struct window_pane *, |
void window_pane_mouse(struct window_pane *, |
struct client *, struct mouse_event *); |
struct session *, struct mouse_event *); |
int window_pane_visible(struct window_pane *); |
int window_pane_visible(struct window_pane *); |
char *window_pane_search( |
char *window_pane_search( |
struct window_pane *, const char *, u_int *); |
struct window_pane *, const char *, u_int *); |