wmvcore/tests: Make test_profile_manager_interfaces() static.
[wine.git] / dlls / krnl386.exe16 / vga.h
blob03ec11ca2204a46270f234030c95bee67b2c18c1
1 /*
2 * VGA emulation
4 * Copyright 1998 Ove Kåven
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_VGA_H
22 #define __WINE_VGA_H
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
31 * VGA VESA definitions
33 /* mode descriptor */
34 enum modetype {TEXT=0, GRAPHIC=1};
35 /* Wine internal information about video modes */
36 typedef struct {
37 WORD Mode;
38 BOOL ModeType;
39 WORD TextCols; /* columns of text in display */
40 WORD TextRows; /* rows of text in display */
41 WORD CharWidth;
42 WORD CharHeight;
43 WORD Width; /* width of display in pixels */
44 WORD Height; /* height of display in pixels */
45 WORD Depth; /* bits per pixel */
46 WORD Colors; /* total available colors */
47 WORD ScreenPages;
48 BOOL Supported;
49 } VGA_MODE;
51 extern const VGA_MODE VGA_modelist[] DECLSPEC_HIDDEN;
53 /* all vga modes */
54 const VGA_MODE *VGA_GetModeInfo(WORD mode) DECLSPEC_HIDDEN;
55 BOOL VGA_SetMode(WORD mode) DECLSPEC_HIDDEN;
57 /* graphics mode */
58 BOOL VGA_GetMode(unsigned *Height, unsigned *Width, unsigned *Depth) DECLSPEC_HIDDEN;
59 void VGA_SetPalette(PALETTEENTRY*pal,int start,int len) DECLSPEC_HIDDEN;
60 void VGA_SetColor16(int reg,int color) DECLSPEC_HIDDEN;
61 char VGA_GetColor16(int reg) DECLSPEC_HIDDEN;
62 void VGA_Set16Palette(char *Table) DECLSPEC_HIDDEN;
63 void VGA_Get16Palette(char *Table) DECLSPEC_HIDDEN;
64 void VGA_SetWindowStart(int start) DECLSPEC_HIDDEN;
65 int VGA_GetWindowStart(void) DECLSPEC_HIDDEN;
66 void VGA_ShowMouse(BOOL show) DECLSPEC_HIDDEN;
67 void VGA_UpdatePalette(void) DECLSPEC_HIDDEN;
68 void VGA_SetPaletteIndex(unsigned index) DECLSPEC_HIDDEN;
69 void VGA_SetBright(BOOL bright) DECLSPEC_HIDDEN;
70 void VGA_WritePixel(unsigned color, unsigned page, unsigned col, unsigned row) DECLSPEC_HIDDEN;
72 /* text mode */
73 void VGA_InitAlphaMode(unsigned*Xres,unsigned*Yres) DECLSPEC_HIDDEN;
74 void VGA_SetAlphaMode(unsigned Xres,unsigned Yres) DECLSPEC_HIDDEN;
75 BOOL VGA_GetAlphaMode(unsigned*Xres,unsigned*Yres) DECLSPEC_HIDDEN;
76 void VGA_SetCursorShape(unsigned char start_options,unsigned char end) DECLSPEC_HIDDEN;
77 void VGA_SetCursorPos(unsigned X,unsigned Y) DECLSPEC_HIDDEN;
78 void VGA_GetCursorPos(unsigned*X,unsigned*Y) DECLSPEC_HIDDEN;
79 void VGA_WriteChars(unsigned X,unsigned Y,unsigned ch,int attr,int count) DECLSPEC_HIDDEN;
80 void VGA_PutChar(BYTE ascii) DECLSPEC_HIDDEN;
81 void VGA_ClearText(unsigned row1, unsigned col1,
82 unsigned row2, unsigned col2,
83 BYTE attr) DECLSPEC_HIDDEN;
84 void VGA_ScrollUpText(unsigned row1, unsigned col1,
85 unsigned row2, unsigned col2,
86 unsigned lines, BYTE attr) DECLSPEC_HIDDEN;
87 void VGA_ScrollDownText(unsigned row1, unsigned col1,
88 unsigned row2, unsigned col2,
89 unsigned lines, BYTE attr) DECLSPEC_HIDDEN;
90 void VGA_GetCharacterAtCursor(BYTE *ascii, BYTE *attr) DECLSPEC_HIDDEN;
92 /* control */
93 void VGA_ioport_out(WORD port, BYTE val) DECLSPEC_HIDDEN;
94 BYTE VGA_ioport_in(WORD port) DECLSPEC_HIDDEN;
95 void VGA_Clean(void) DECLSPEC_HIDDEN;
97 #endif /* __WINE_VGA_H */