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

📄 screen.h

📁 XOSL 多操作系统管理工具 源代码 多系统引导工具
💻 H
字号:
/*
 * Extended Operating System Loader (XOSL)
 * Copyright (c) 1999 by Geurt Vos
 *
 * This code is distributed under GNU General Public License (GPL)
 *
 * The full text of the license can be found in the GPL.TXT file,
 * or at http://www.gnu.org
 */

#ifndef __screen__
#define __screen__

#include <cursor.h>
#include <wndlist.h>
#include <backgnd.h>
#include <graph.h>

class CControl;

class CScreen {
	public:
		CScreen();
		~CScreen();
		int ShowSplashScreen(TGraphMode &Mode, bool &LinearFB);
		void ShowSubTitle();

		void AddWindow(CControl *Wnd);
		void RemoveWindow(CControl *Wnd);
		int SetGraphicsMode(TGraphMode Mode, bool LinearFB);
		int TestGraphicsMode(TGraphMode Mode, bool LinearFB);
		void GetScreenSize(int &Width, int &Height);
		void SetFocusWnd(CControl *Wnd);
		CControl *GetFocusWnd();
		void FocusNext();
		void FocusPrev();

		void BeforeFix(int Left, int Top, int Width, int Height);
		void AfterFix(int Left, int Top, int Width, int Height);
		void Refresh();

		void MouseStatus(int Left, int Top, int ButtonDown);
		void KeyPress(int Key);

		void SetUseWallpaper(int UseWallpaper, int ScrnRefresh = 1);
		void SetWallpaper(int Width, int Height, const unsigned char *Wallpaper);
		void SetSplashLogo(int Width, int Height, const unsigned char *LogoBitmap);
		void SetIgnoreSU(int IgnoreSU);
		void InitScreen();

		void CenterWindow(CControl *Wnd, int dX = 0, int dY = 0);
	private:
		int AdjustArea(int &Left, int &Top, int &Width, int &Height);
		CWindowList *WindowList;
		int ScrnWidth, ScrnHeight;
		int ScrnBottom, ScrnRight;

		int MouseX, MouseY, MouseDown;

		int UseWallpaper;
		CBackground *Background;

		// Ignore Screen Update
		int IgnoreSU;
};


#endif

⌨️ 快捷键说明

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