shape.h

来自「一个ascii 码值计算原代码的例子」· C头文件 代码 · 共 46 行

H
46
字号
/* !! DO NOT REMOVE THIS COMMENT !!
 *
 * Author: Ga歱er Raj歟k
 * E-mail, updates & bugs report: gape.korn@volja.net
 *
 * Created: 21.8.2002 at 21.59
 *
 * Description: structure and prototype function for the SHAPE component source
 *
 */

# ifndef SHAPE_H
# define SHAPE_H


// structure for the SHAPE component
typedef struct SHAPE
{
	UINT InputCodePage, OutputCodePage;
	// structure for FRAME component
	struct
	{
		short x, y, Length, Height, DoubleLine, WithStatusLine;
		WORD Color;
	} FRAME;
	// structure for LINE component
	struct
	{
		short x, y, Length, Height, Horizontal, DoubleLine;
		WORD Color;
	} LINE;
	// structure for BAR component
	struct
	{
		short x, y, Length, Height;
		char Pattern;
		WORD Color;
	} BAR;
} SHAPE_COMPONENT;

// function prototypes
void FrameComponent (SHAPE_COMPONENT *Frame);
void LineComponent  (SHAPE_COMPONENT *Line);
void BarComponent   (SHAPE_COMPONENT *Bar);

# endif // SHAPE_H

⌨️ 快捷键说明

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