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

📄 basewin.h

📁 linux 下类似于TC功能的编译器,但还没有完成,希望大家共同研究
💻 H
字号:
class BaseWindow{protected:	int 	y;	int 	x;	int 	width;	int 	height;	int 	color;			//colorpair	int 	shadow;			//1:show shadow 0:hide shadow	int 	fontstyle;		//such as A_BOLD,A_UNDERLINE	int 	wintype;		//such as menuwin,formwin	char 	title[MAX_CHARS];	//window's title,80 characters at most	char	**content;		//window's content allocated by mallocprotected:	WINDOW *basewin;public:	int  InitBaseWindow(int Y,int X,int Height,int Width,int Color,int Shadow,int FontStyle,int WinType,char *Title);	void DestroyBaseWindow();	void GetPosition(int &Y,int &X,int &Height,int &Width);	void SetPosition(int Y,int X,int Height,int Width);	void draw_box(int y, int x, int height, int width, chtype box, chtype border);	int  GetHeight();	int  GetWidth();	int  GetY();	int  GetX();	int  SetColor(int Color);	int  SetColor();	int  GetColor();	int  CloseColor();	int  SetTitle(char *Title);	char*  GetTitle();	int  SetShadow(int Show);	int  GetShadow();	int  SetFontStyle(int FontStyle);	int  GetFontStyle();	int  SetWinType(int WinType);	int  GetWinType();	int  Getach();	void Refresh();};

⌨️ 快捷键说明

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