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

📄 selection.h

📁 基于minigui的浏览器. 这是最新版本.
💻 H
字号:
#ifndef __SELECTION_H__#define __SELECTION_H__#include "dw_ext_iterator.h"#define SELECTION_EOW (1 << 30)typedef struct{   /* selection */   enum {      SELECTION_NONE,      SELECTION_SELECTING,      SELECTION_SELECTED   } selection_state;   DwExtIterator *from, *to;   gint from_char, to_char;   /* link handling */   enum {      SELECTION_LINK_NONE,      SELECTION_LINK_PRESSED   } link_state;   guint link_button;   DwExtIterator *link;   gint link_char, link_number;   /* "full screen" feature */   void (*dclick_callback) (gpointer data);   gpointer callback_data;   /* widget that owns this selection */   gpointer owner;} Selection;Selection* a_Selection_new                 (void);void       a_Selection_free                (Selection *selection);void       a_Selection_reset               (Selection *selection);void       a_Selection_set_dclick_callback (Selection *selection,                                            void (*fn) (gpointer data),                                            gpointer callback_data);void       a_Selection_set_owner           (Selection *selection,                                            gpointer owner);gint       a_Selection_button_press        (Selection *selection,                                            DwIterator *it,                                            gint char_pos,                                            gint link,                                            GdkEventButton *event,                                            gboolean within_content);gint       a_Selection_button_release      (Selection *selection,                                            DwIterator *it,                                            gint char_pos,                                            gint link,                                            GdkEventButton *event,                                            gboolean within_content);gint       a_Selection_button_motion       (Selection *selection,                                            DwIterator *it,                                            gint char_pos,                                            gint link,                                            GdkEventButton *event,                                            gboolean within_content);void       a_Selection_init_selection           (GtkWidget *widget);void       a_Selection_set_selection            (GtkWidget *widget,                                                 gchar* str);void       a_Selection_give_selection_callback  (GtkWidget *widget,                                                 GtkSelectionData *data,                                                 guint info,                                                 guint time);gint       a_Selection_clear_selection_callback (GtkWidget *,                                                 GdkEventSelection *);#endif /* __SELECTION_H__ */

⌨️ 快捷键说明

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