ELinks 0.18.0
|
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"
Functions | |
struct window * | init_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 window * | get_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) |
Tab-style (those containing real documents) windows infrastructure.
void close_all_tabs_but_current | ( | struct session * | ses | ) |
void delayed_open | ( | void * | data | ) |
Get tab of an according index.
int get_tab_number | ( | struct window * | window | ) |
Number of tab.
int get_tab_number_by_xpos | ( | struct terminal * | term, |
int | xpos ) |
Returns number of the tab at xpos, or -1 if none.
struct window * init_tab | ( | struct terminal * | term, |
void * | data, | ||
window_handler_T | handler ) |
void move_current_tab | ( | struct session * | ses, |
int | direction ) |
NONSTATIC_INLINE int number_of_tabs | ( | struct terminal * | term | ) |
Number of tabs at the terminal (in term->windows)
void open_current_link_in_new_tab | ( | struct session * | ses, |
int | in_background ) |
|
static |
|
static |
void switch_current_tab | ( | struct session * | ses, |
int | direction ) |
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.
NONSTATIC_INLINE int tabs_are_on_top | ( | struct terminal * | term | ) |
If the topmost window is a tab, return 1; else, return 0.