mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 12:04:51 +00:00
70d2e3812d
- EXT2/EXT3 file system support. - Does not yet support symbolic links or booting from an EXT2/3 partition. - Fixed bug in UI code. - Added '%%' format specifier to printf()-like functions. - Added functions __udivdi3 & __umoddi3 so that 64-bit division is now supported. - Changed types BYTE, WORD, DWORD, LONG, ULONG to U8, U16, U32, S32, U32 so that you know the size of the variable across different architectures with different sized words & dwords, etc. - Types CHAR, UCHAR, PCHAR, PUCHAR, WCHAR, PWCHAR have not been changed yet (I haven't decided exactly how I'm going to handle unicode) (isn't this an awesome commit? ;-) Just look at that list of files) svn path=/trunk/; revision=3318
56 lines
2.9 KiB
C
56 lines
2.9 KiB
C
/*
|
|
* FreeLoader
|
|
* Copyright (C) 1998-2002 Brian Palmer <brianp@sginet.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*/
|
|
|
|
#ifndef __GUI_H
|
|
#define __GUI_H
|
|
|
|
#define TUI_SCREEN_MEM 0xB8000
|
|
#define TITLE_BOX_CHAR_HEIGHT 5
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Graphical User Interface Functions
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
VOID GuiDrawBackdrop(VOID); // Fills the entire screen with a backdrop
|
|
VOID GuiFillArea(U32 Left, U32 Top, U32 Right, U32 Bottom, UCHAR FillChar, UCHAR Attr /* Color Attributes */); // Fills the area specified with FillChar and Attr
|
|
VOID GuiDrawShadow(U32 Left, U32 Top, U32 Right, U32 Bottom); // Draws a shadow on the bottom and right sides of the area specified
|
|
VOID GuiDrawBox(U32 Left, U32 Top, U32 Right, U32 Bottom, UCHAR VertStyle, UCHAR HorzStyle, BOOL Fill, BOOL Shadow, UCHAR Attr); // Draws a box around the area specified
|
|
VOID GuiDrawText(U32 X, U32 Y, PUCHAR Text, UCHAR Attr); // Draws text at coordinates specified
|
|
VOID GuiDrawStatusText(PUCHAR StatusText); // Draws text at the very bottom line on the screen
|
|
VOID GuiUpdateDateTime(VOID); // Updates the date and time
|
|
VOID GuiSaveScreen(PUCHAR Buffer); // Saves the screen so that it can be restored later
|
|
VOID GuiRestoreScreen(PUCHAR Buffer); // Restores the screen from a previous save
|
|
VOID GuiMessageBox(PUCHAR MessageText); // Displays a message box on the screen with an ok button
|
|
VOID GuiMessageBoxCritical(PUCHAR MessageText); // Displays a message box on the screen with an ok button using no system resources
|
|
VOID GuiDrawProgressBar(U32 Position, U32 Range); // Draws the progress bar showing nPos percent filled
|
|
|
|
UCHAR GuiTextToColor(PUCHAR ColorText); // Converts the text color into it's equivalent color value
|
|
UCHAR GuiTextToFillStyle(PUCHAR FillStyleText); // Converts the text fill into it's equivalent fill value
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Menu Functions
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////////////
|
|
BOOL GuiDisplayMenu(PUCHAR MenuItemList[], U32 MenuItemCount, U32 DefaultMenuItem, S32 MenuTimeOut, U32* SelectedMenuItem);
|
|
|
|
|
|
|
|
#endif // #defined __GUI_H
|