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

📄 box.h

📁 一个很有名的浏览器
💻 H
字号:
/* $Id: box.h,v 1.1.6.1 2005/01/04 00:32:29 jonas Exp $ */#ifndef EL__UTIL_BOX_H#define EL__UTIL_BOX_Hstruct box {	int x;	int y;	int width;	int height;};static inline intis_in_box(struct box *box, int x, int y){	return (x >= box->x && y >= box->y		&& x < box->x + box->width		&& y < box->y + box->height);}static inline introw_is_in_box(struct box *box, int y){	return (y >= box->y && y < box->y + box->height);}static inline intcol_is_in_box(struct box *box, int x){	return (x >= box->x && x < box->x + box->width);}static inline voidset_box(struct box *box, int x, int y, int width, int height){	box->x = x;	box->y = y;	box->width = width;	box->height = height;}static inline voidcopy_box(struct box *dst, struct box *src){	copy_struct(dst, src);}#define dbg_show_box(box) DBG("x=%i y=%i width=%i height=%i", (box)->x, (box)->y, (box)->width, (box)->height)#define dbg_show_xy(x_, y_) DBG("x=%i y=%i", x_, y_)#endif

⌨️ 快捷键说明

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