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

📄 widget.h

📁 一个很有名的浏览器
💻 H
字号:
/* $Id: widget.h,v 1.90.4.2 2005/04/05 21:04:19 jonas Exp $ */#ifndef EL__BFU_WIDGET_H#define EL__BFU_WIDGET_H/* XXX: Include common definitions first */#include "bfu/common.h"#include "bfu/button.h"#include "bfu/checkbox.h"#include "bfu/group.h"#include "bfu/inpfield.h"#include "bfu/inphist.h"#include "bfu/leds.h"#include "bfu/listbox.h"#include "bfu/msgbox.h"#include "bfu/text.h"#include "util/lists.h"#include "util/box.h"struct dialog_data;struct widget_ops {	/* XXX: Order matters here. --Zas */	t_widget_handler *display;	t_widget_handler *init;	t_widget_handler *mouse;	t_widget_handler *kbd;	t_widget_handler *select;	t_widget_handler *clear;};struct widget {	struct widget_ops *ops;	unsigned char *text;	t_widget_handler *handler;	void *data;	int datalen;	/* 0 = no alloc/copy to cdata. */	union {		struct widget_info_checkbox checkbox;		struct widget_info_field field;		struct widget_info_listbox listbox;		struct widget_info_button button;		struct widget_info_text text;	} info;	enum widget_type type;};struct widget_data {	struct widget *widget;	unsigned char *cdata;	struct box box;	union {		struct widget_data_info_field field;		struct widget_data_info_checkbox checkbox;		struct widget_data_info_text text;	} info;};void display_widget(struct dialog_data *, struct widget_data *);static inline intwidget_is_focusable(struct widget_data *widget_data){	switch (widget_data->widget->type) {		case WIDGET_LISTBOX: return 0;		case WIDGET_TEXT: return text_is_scrollable(widget_data);		default: return 1;	}}#endif

⌨️ 快捷键说明

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