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

📄 interface.h

📁 嵌入式下基于MiniGUI的Web Browser
💻 H
字号:
#ifndef __INTERFACE_H__#define __INTERFACE_H__#include "browser.h"#include <minigui/common.h>#include <minigui/minigui.h>#include <minigui/gdi.h>#include <minigui/window.h>#include <minigui/control.h>typedef enum {    WITH_NONE        = 1 << 0,    WITH_LOCATION    = 1 << 1,    WITH_MENUBAR     = 1 << 2,    WITH_TOOLBAR     = 1 << 3,    WITH_STATUSBAR   = 1 << 4,    WITH_PROGRESSBAR = 1 << 5,} BrowserWindowType;void a_Interface_init(void);void a_Interface_stop(BrowserWindow *bw);void a_Interface_clean(BrowserWindow *bw);void a_Interface_quit_all(void);void a_Interface_add_client(BrowserWindow *bw, gint Key, gint Root);void a_Interface_remove_client(BrowserWindow *bw, gint ClientKey);void a_Interface_add_url(BrowserWindow *bw, const DilloUrl *Url, gint Flags);void a_Interface_close_client(BrowserWindow *bw, gint ClientKey);void a_Interface_msg(BrowserWindow *bw, const char *format, ... );void a_Interface_bug_meter_update(BrowserWindow *bw, gint num_err);void a_Interface_open_url_string(gchar *text, BrowserWindow *bw);#if 0void a_Interface_openfile_dialog(BrowserWindow *bw);void a_Interface_open_dialog(GtkWidget *widget, BrowserWindow *bw);void a_Interface_save_dialog(GtkWidget *widget, BrowserWindow *bw);void a_Interface_save_link_dialog(GtkWidget *widget, BrowserWindow *bw);void a_Interface_search_dialog(GtkWidget *widget, BrowserWindow *bw);void a_Interface_findtext_dialog(BrowserWindow *bw);void a_Interface_quit_dialog(BrowserWindow *bw);void a_Interface_entry_open_url(GtkWidget *widget, BrowserWindow *bw);#endifvoid a_Interface_set_page_title(BrowserWindow *bw, char *title);void a_Interface_set_location_text(BrowserWindow *bw, char *text);gchar *a_Interface_get_location_text(BrowserWindow *bw);void a_Interface_reset_progress_bars(BrowserWindow *bw);void a_Interface_set_cursor (BrowserWindow *bw, HCURSOR CursorType);BrowserWindow*a_Interface_browser_window_new(HWND hwnd_parent, int width, int height,                               char* start_page, BrowserWindowType bw_type);gboolean a_Interface_quit(BrowserWindow *bw);//BrowserWindow *//a_Interface_browser_window_new(gint width, gint height, guint32 xid);void a_Interface_set_button_sens(BrowserWindow *bw);extern void a_Dns_init (void);extern void a_Dns_freeall(void);extern void a_Prefs_init(void);extern void a_Prefs_freeall(void);extern gint a_Http_init(void);extern void a_Http_freeall(void);extern void a_Mime_init(void);extern void a_Cache_init(void);extern void a_Cache_freeall(void);extern void a_Dicache_init (void);extern void a_Dicache_freeall(void);extern void a_Dw_style_init    (void);extern void a_Dw_style_freeall (void);#if 0void a_Interface_scroll_popup(GtkWidget *widget);void a_Interface_question_dialog(        BrowserWindow *bw, gchar *QuestionTxt,        GtkSignalFunc OkCallback, void *OkCbData,        GtkSignalFunc CancelCallback, void *CancelCbData);void a_Interface_message_window(const char *title, const char *format, ... );void a_Interface_text_window (GtkWidget **text_widget,                              gchar *title, gchar *wm_class,                              gchar *buf, gint buf_size,                              gint xsize_max, gint ysize_max);void a_Interface_set_nice_window_pos(GtkWidget *win1, GtkWidget *win2);#endif#endif /* __INTERFACE_H__ */

⌨️ 快捷键说明

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