⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 window.h

📁 一个很有名的浏览器
💻 H
字号:
/* $Id: window.h,v 1.11 2004/07/31 11:23:44 miciah Exp $ */#ifndef EL__TERMINAL_WINDOW_H#define EL__TERMINAL_WINDOW_H#include "util/lists.h"struct term_event;struct terminal;struct window;enum window_type {	/* Normal windows: */	/* Used for things like dialogs. The default type when adding windows	 * with add_window(). */	WINDOW_NORMAL,	/* Tab windows: */	/* Tabs are a separate session and has separate history, current	 * document and action-in-progress .. basically a separate browsing	 * state. */	WINDOW_TAB,};typedef void (window_handler)(struct window *, struct term_event *);struct window {	LIST_HEAD(struct window);	enum window_type type;	/* The window event handler */	window_handler *handler;	/* For tab windows the session is stored in @data. For normal windows	 * it can contain dialog data. */	/* It is free()'d by delete_window() */	void *data;	/* The terminal (and screen) that hosts the window */	struct terminal *term;	/* Used for tabs focus detection. */	int xpos, width;	int x, y;	/* For delayed tab resizing */	unsigned int resize:1;};void redraw_from_window(struct window *);void redraw_below_window(struct window *);void add_window(struct terminal *, window_handler, void *);void delete_window(struct window *);void delete_window_ev(struct window *, struct term_event *ev);#define set_window_ptr(window, x_, y_) do { (window)->x = (x_); (window)->y = (y_); } while (0)void get_parent_ptr(struct window *, int *, int *);void add_empty_window(struct terminal *, void (*)(void *), void *);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -