📄 browser.h
字号:
#ifndef __BROWSER_H__#define __BROWSER_H__#include "mgwidget.h"#include "url.h"typedef struct _BrowserWindow BrowserWindow;typedef struct { DilloUrl *Url; /* URL-key for this cache connection */ gint Flags; /* {WEB_RootUrl, WEB_Image, WEB_Download} */} BwUrls;/* browser_window contains all widgets to create a single window */struct _BrowserWindow{ /* widgets for the main window */ HWND main_window; HWND docwin; void* viewport; gint status_is_link;#if 0 MGWidget *back_button; MGWidget *forw_button; MGWidget *home_button; MGWidget *reload_button; MGWidget *save_button; MGWidget *stop_button; MGWidget *bookmarks_button; MGWidget *menubar; MGWidget *clear_url_button; MGWidget *location; MGWidget *search_button; MGWidget *progress_box; MGWidget *status_box; MGWidget *status; MGWidget *status_bug_meter; MGWidget *imgprogress; MGWidget *progress; /* A list of active cache clients in the window (The primary Key) */ gint *RootClients; gint NumRootClients; gint MaxRootClients; /* Image Keys for all active connections in the window */ gint *ImageClients; gint NumImageClients; gint MaxImageClients; /* Number of different images in the page */ gint NumImages; /* Number of different images already loaded */ gint NumImagesGot; /* List of all Urls requested by this page (and its types) */ BwUrls *PageUrls; gint NumPageUrls; gint MaxPageUrls; /* The id for the idle function that sets button sensitivity. */ guint sens_idle_id;#endif /* Dillo navigation stack (holds indexes to history list) */ gint *nav_stack; gint nav_stack_size; /* [1 based] */ gint nav_stack_size_max; /* 'nav_stack_ptr' refers to what's being displayed */ gint nav_stack_ptr; /* [0 based] */ /* When the user clicks a link, the URL isn't pushed directly to history; * nav_expect_url holds it until the first answer-bytes are got. Only then * it is sent to history and referenced in 'nav_stack[++nav_stack_ptr]' */ DilloUrl *nav_expect_url; /* 'nav_expecting' is true if the last URL is being loaded for * the first time and has not gotten the dw yet. */ gboolean nav_expecting;};#endif /* __BROWSER_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -