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

📄 gcontext.c

📁 microwindows上的修改的GUI
💻 C
字号:
/*
 *  Graphics Context
 *
 *
 *  COPYRIGHT (c) 2001 - 2010.
 *  emTech System Corporation.
 *
 *  The license and distribution terms for this file may be
 *  found in found in the file LICENSE.
 */

/*	Huangf emcore@263.net
 */
#include "emGUI.h"

/*
 * Set the drawing mode for future calls.
 */
int 
GrGCSetMode(
	GID gId, 
	int mode
)
{
	int	oldmode;
	
	oldmode 	= gId->mode;
	gId->mode 	= mode;
	return oldmode;
}

/*
 * Set the foreground color for drawing.
 */
int
GrGCSetForeColor(
	GID	gId,
	int fcolor
)
{
	int old;
	
	old 		= gId->fcolor;
	gId->fcolor = fcolor;
	return old;
}

/*
 * Set the background color for bitmap and text backgrounds.
 */
int
GrGCSetBackColor(	
	GID	gId,
	int fcolor
)
{
	int old;
	
	old 		= gId->bkcolor;
	gId->bkcolor = fcolor;
	return old;
}

⌨️ 快捷键说明

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