selection.h

来自「操作系统SunOS 4.1.3版本的源码」· C头文件 代码 · 共 63 行

H
63
字号
/*	@(#)selection.h 1.1 92/07/30 SMI	*//* * Copyright (c) 1983 by Sun Microsystems, Inc. */struct	selection {	int	sel_type,		sel_items,		sel_itembytes,		sel_pubflags;	caddr_t	sel_privdata;};extern	struct selection	selnull;/* * sel_type values */#define	SELTYPE_NULL	0#define	SELTYPE_CHAR	1/* * sel_itembytes values */#define	SEL_UNKNOWNITEMS	-1	/* Don't know how many items *//* * sel_pubflags values */#define	SEL_PRIMARY	0X01	/* Primary selection */#define	SEL_SECONDARY	0X02	/* Secondary selection */#ifdef	cplus/* * Create the selection */void	selection_set(struct selection *sel, int (*sel_write)(), (*sel_clear)(),	    windowfd);/* * Fetch the selection */void	selection_get(int (*sel_read)(), windowfd);/* * Clear the selection */void	selection_clear(windowfd);/* * Write the bits of the selection */void	sel_write(struct selection *sel, FILE *file);/* * Read the bits of the selection */void	sel_read(struct selection *sel, FILE *file);/* * As the owner of the selection you should clear your hiliting because * you are no longer the selection owner. */void	sel_clear(struct selection *sel, int windowfd);#endif	cplus

⌨️ 快捷键说明

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