gfxsw_nocur.c

来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 57 行

C
57
字号
#ifndef lint#ifdef sccsstatic	char sccsid[] = "@(#)gfxsw_nocur.c 1.1 92/07/30 Copyr 1983 Sun Micro";#endif#endif/* * Copyright (c) 1983 by Sun Microsystems, Inc. *//* * Overview: Implement the abstraction defined in gfxsw.h */#include <sys/types.h>#include <sys/file.h>#include <signal.h>#include <pixrect/pixrect.h>#include <pixrect/pr_util.h>#include <pixrect/memvar.h>#include <sunwindow/rect.h>#include <sunwindow/rectlist.h>#include <sunwindow/pixwin.h>#include <sunwindow/win_struct.h>#include <sunwindow/win_environ.h>#include <sunwindow/win_cursor.h>#include <suntool/tool.h>#include <suntool/gfxsw.h>#include <suntool/gfxswimpl.h>mpr_static(blank_mpr, 0, 0, 0, 0);struct  cursor blank_cursor = { 0, 0, PIX_SRC^PIX_DST, &blank_mpr};gfxsw_notusingmouse(gfx)	struct	gfxsubwindow *gfx;{	struct	gfx_takeover *gt = (struct gfx_takeover *) 0;	if (gt && gfxmadescreen(gt)) {		int	pwco_1win0mouselock(), pwco_1win0mouseunlock(),			    pwco_1win0mousereset();		/*		 * Caller is not using the mouse so we can turn off		 * the image and thusly can safely avoid doing locking.		 */		(void)win_setcursor(gfx->gfx_windowfd, &blank_cursor);		gfx->gfx_pixwin->pw_clipops->pwco_lock =		    (int (*)()) pwco_1win0mouselock;		gfx->gfx_pixwin->pw_clipops->pwco_unlock =		    (int (*)()) pwco_1win0mouseunlock;		gfx->gfx_pixwin->pw_clipops->pwco_reset =		    (int (*)()) pwco_1win0mousereset;	}}

⌨️ 快捷键说明

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