ELinks 0.18.0
Data Structures | Macros | Typedefs | Enumerations | Functions
window.h File Reference
#include "util/lists.h"
Include dependency graph for window.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  window
 A window in the terminal screen. More...
 

Macros

#define set_window_ptr(window, x_, y_)   do { (window)->x = (x_); (window)->y = (y_); } while (0)
 

Typedefs

typedef void() window_handler_T(struct window *, struct term_event *)
 

Enumerations

enum  window_type { WINDOW_NORMAL , WINDOW_TAB }
 
enum  windows_to_redraw { REDRAW_IN_FRONT_OF_WINDOW , REDRAW_WINDOW_AND_FRONT , REDRAW_BEHIND_WINDOW }
 Which windows redraw_windows() should redraw. More...
 

Functions

void redraw_windows (enum windows_to_redraw, struct window *)
 
void add_window (struct terminal *, window_handler_T, void *)
 
void delete_window (struct window *)
 
void delete_window_ev (struct window *, struct term_event *ev)
 
void set_dlg_window_ptr (struct dialog_data *dlg_data, struct window *window, int x, int y)
 
void get_parent_ptr (struct window *, int *, int *)
 
void add_empty_window (struct terminal *, void(*)(void *), void *)
 
void assert_window_stacking (struct terminal *)
 Check that terminal.windows are in the documented order.
 

Macro Definition Documentation

◆ set_window_ptr

#define set_window_ptr (   window,
  x_,
  y_ 
)    do { (window)->x = (x_); (window)->y = (y_); } while (0)

Typedef Documentation

◆ window_handler_T

typedef void() window_handler_T(struct window *, struct term_event *)

Enumeration Type Documentation

◆ window_type

Enumerator
WINDOW_NORMAL 

Normal windows.

Used for things like dialogs. The default type when adding windows with add_window().

WINDOW_TAB 

Tab windows.

Tabs are a separate session and has separate history, current document and action-in-progress .. basically a separate browsing state.

◆ windows_to_redraw

Which windows redraw_windows() should redraw.


Enumerator
REDRAW_IN_FRONT_OF_WINDOW 

Redraw the windows in front of the specified window, but not the specified window itself.


REDRAW_WINDOW_AND_FRONT 

Redraw the specified window, and the windows in front of it.


REDRAW_BEHIND_WINDOW 

Redraw the windows behind the specified window, but not the specified window itself.

Do that even if terminal.redrawing is TREDRAW_BUSY.

Function Documentation

◆ add_empty_window()

void add_empty_window ( struct terminal *  term,
void(*)(void *)  fn,
void *  data 
)

◆ add_window()

void add_window ( struct terminal *  term,
window_handler_T  handler,
void *  data 
)

◆ assert_window_stacking()

void assert_window_stacking ( struct terminal *  term)

Check that terminal.windows are in the documented order.


◆ delete_window()

void delete_window ( struct window *  win)

◆ delete_window_ev()

void delete_window_ev ( struct window *  win,
struct term_event *  ev 
)

◆ get_parent_ptr()

void get_parent_ptr ( struct window *  win,
int *  x,
int *  y 
)

◆ redraw_windows()

void redraw_windows ( enum  windows_to_redraw,
struct window *  win 
)

◆ set_dlg_window_ptr()

void set_dlg_window_ptr ( struct dialog_data *  dlg_data,
struct window *  window,
int  x,
int  y 
)