ELinks 0.18.0
tab.c File Reference

Tab-style (those containing real documents) windows infrastructure. More...

#include "elinks.h"
#include "bfu/dialog.h"
#include "config/options.h"
#include "dialogs/menu.h"
#include "document/document.h"
#include "document/view.h"
#include "intl/libintl.h"
#include "main/select.h"
#include "protocol/uri.h"
#include "session/location.h"
#include "session/session.h"
#include "terminal/screen.h"
#include "terminal/tab.h"
#include "terminal/terminal.h"
#include "terminal/window.h"
#include "util/error.h"
#include "util/memory.h"
#include "util/lists.h"
#include "viewer/text/link.h"
#include "viewer/text/view.h"
Include dependency graph for tab.c:

Functions

struct windowinit_tab (struct terminal *term, void *data, window_handler_T handler)
NONSTATIC_INLINE int tabs_are_on_top (struct terminal *term)
 If the topmost window is a tab, return 1; else, return 0.
NONSTATIC_INLINE int number_of_tabs (struct terminal *term)
 Number of tabs at the terminal (in term->windows)
int get_tab_number (struct window *window)
 Number of tab.
struct windowget_tab_by_number (struct terminal *term, int num)
 Get tab of an according index.
int get_tab_number_by_xpos (struct terminal *term, int xpos)
 Returns number of the tab at xpos, or -1 if none.
void switch_to_tab (struct terminal *term, int tab, int tabs_count)
void switch_current_tab (struct session *ses, int direction)
static void really_close_tab (void *ses_)
void close_tab (struct terminal *term, struct session *ses)
static void really_close_tabs (void *ses_)
void close_all_tabs_but_current (struct session *ses)
void open_uri_in_new_tab (struct session *ses, struct uri *uri, int in_background, int based)
void delayed_open (void *data)
void open_current_link_in_new_tab (struct session *ses, int in_background)
void move_current_tab (struct session *ses, int direction)

Detailed Description

Tab-style (those containing real documents) windows infrastructure.

Function Documentation

◆ close_all_tabs_but_current()

void close_all_tabs_but_current ( struct session * ses)

◆ close_tab()

void close_tab ( struct terminal * term,
struct session * ses )

◆ delayed_open()

void delayed_open ( void * data)

◆ get_tab_by_number()

struct window * get_tab_by_number ( struct terminal * term,
int num )

Get tab of an according index.

◆ get_tab_number()

int get_tab_number ( struct window * window)

Number of tab.

◆ get_tab_number_by_xpos()

int get_tab_number_by_xpos ( struct terminal * term,
int xpos )

Returns number of the tab at xpos, or -1 if none.

◆ init_tab()

struct window * init_tab ( struct terminal * term,
void * data,
window_handler_T handler )

◆ move_current_tab()

void move_current_tab ( struct session * ses,
int direction )

◆ number_of_tabs()

NONSTATIC_INLINE int number_of_tabs ( struct terminal * term)

Number of tabs at the terminal (in term->windows)

◆ open_current_link_in_new_tab()

void open_current_link_in_new_tab ( struct session * ses,
int in_background )

◆ open_uri_in_new_tab()

void open_uri_in_new_tab ( struct session * ses,
struct uri * uri,
int in_background,
int based )

◆ really_close_tab()

void really_close_tab ( void * ses_)
static

◆ really_close_tabs()

void really_close_tabs ( void * ses_)
static

◆ switch_current_tab()

void switch_current_tab ( struct session * ses,
int direction )

◆ switch_to_tab()

void switch_to_tab ( struct terminal * term,
int tab,
int tabs_count )

If tabs_count > 0, then it is taken as the result of a recent call to number_of_tabs() so it just uses this value.

◆ tabs_are_on_top()

NONSTATIC_INLINE int tabs_are_on_top ( struct terminal * term)

If the topmost window is a tab, return 1; else, return 0.