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

📄 emgui.h

📁 microwindows上的修改的GUI
💻 H
字号:
/*
 *  Application implement
 *
 *
 *  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
 */
 
#ifndef __EMGUI_h
#define __EMGUI_h

typedef struct
{
	int x, y;
} POINT, *LPPOINT;

typedef struct
{
	int left, top, right, bottom;
} RECT, *LPRECT;

typedef struct _mwfont *PMWFONT;

#define GR_SET		0
#define GR_XOR		1

struct GC
{
	int		x;
	int		y;
	
	int 	mode;			/*	XOR / SET */
	int		bkcolor;		/*	back ground */
	int		fcolor;			/*	fore color */

	int		penwidth;		/*	0 for normal */

	PMWFONT	gr_font;	
};

#include "emGUI-sys.h"


typedef struct GC *GID;
typedef struct GC *GC_ID;

void GrPoint(
	WndID id, 
	GC_ID gc, 
	int x, 
	int y
);

void GrLine(
	WndID 		id, 
	GC_ID 		gc, 
	int 		x1, 
	int 		y1, 
	int 		x2, 
	int 		y2,
	boolean 	bDrawLastPoint
);

void GrRect(
	WndID id, 
	GC_ID gc, 
	int x, 
	int y,
	int width, 
	int height
);

void GrFillRect(
	WndID id, 
	GC_ID gc, 
	int x, 
	int y,
	int width, 
	int height
);

void GrPoly(
	WndID 	wId, 
	GID 	gId, 
	int 	count, 
	LPPOINT points
);

void GrFillPoly(
	WndID 	wId, 
	GID 	gId, 
	int 	count, 
	LPPOINT points
);

void GrArc(
	WndID id, 
	GC_ID gc, 
	int x0, 
	int y0,
	int rx, 
	int ry, 
	int ax, 
	int ay,
	int bx, 
	int by, 
	int type
);

int 
GrGCSetMode(
	GID gId, 
	int mode
);

int
GrGCSetForeColor(
	GID	gId,
	int fcolor
);

int
GrGCSetBackColor(	
	GID	gId,
	int fcolor
);
#endif

⌨️ 快捷键说明

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