VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/vidmodeproc.h@ 67129

最後變更 在這個檔案從67129是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.5 KB
 
1/* $XFree86: xc/programs/Xserver/Xext/vidmodeproc.h,v 1.4 1999/12/13 01:39:40 robin Exp $ */
2
3/* Prototypes for DGA functions that the DDX must provide */
4
5#ifdef HAVE_DIX_CONFIG_H
6#include <dix-config.h>
7#endif
8
9#ifndef _VIDMODEPROC_H_
10#define _VIDMODEPROC_H_
11
12
13typedef enum {
14 VIDMODE_H_DISPLAY,
15 VIDMODE_H_SYNCSTART,
16 VIDMODE_H_SYNCEND,
17 VIDMODE_H_TOTAL,
18 VIDMODE_H_SKEW,
19 VIDMODE_V_DISPLAY,
20 VIDMODE_V_SYNCSTART,
21 VIDMODE_V_SYNCEND,
22 VIDMODE_V_TOTAL,
23 VIDMODE_FLAGS,
24 VIDMODE_CLOCK
25} VidModeSelectMode;
26
27typedef enum {
28 VIDMODE_MON_VENDOR,
29 VIDMODE_MON_MODEL,
30 VIDMODE_MON_NHSYNC,
31 VIDMODE_MON_NVREFRESH,
32 VIDMODE_MON_HSYNC_LO,
33 VIDMODE_MON_HSYNC_HI,
34 VIDMODE_MON_VREFRESH_LO,
35 VIDMODE_MON_VREFRESH_HI
36} VidModeSelectMonitor;
37
38typedef union {
39 pointer ptr;
40 int i;
41 float f;
42} vidMonitorValue;
43
44void XFree86VidModeExtensionInit(void);
45
46Bool VidModeAvailable(int scrnIndex);
47Bool VidModeGetCurrentModeline(int scrnIndex, pointer *mode, int *dotClock);
48Bool VidModeGetFirstModeline(int scrnIndex, pointer *mode, int *dotClock);
49Bool VidModeGetNextModeline(int scrnIndex, pointer *mode, int *dotClock);
50Bool VidModeDeleteModeline(int scrnIndex, pointer mode);
51Bool VidModeZoomViewport(int scrnIndex, int zoom);
52Bool VidModeGetViewPort(int scrnIndex, int *x, int *y);
53Bool VidModeSetViewPort(int scrnIndex, int x, int y);
54Bool VidModeSwitchMode(int scrnIndex, pointer mode);
55Bool VidModeLockZoom(int scrnIndex, Bool lock);
56Bool VidModeGetMonitor(int scrnIndex, pointer *monitor);
57int VidModeGetNumOfClocks(int scrnIndex, Bool *progClock);
58Bool VidModeGetClocks(int scrnIndex, int *Clocks);
59ModeStatus VidModeCheckModeForMonitor(int scrnIndex, pointer mode);
60ModeStatus VidModeCheckModeForDriver(int scrnIndex, pointer mode);
61void VidModeSetCrtcForMode(int scrnIndex, pointer mode);
62Bool VidModeAddModeline(int scrnIndex, pointer mode);
63int VidModeGetDotClock(int scrnIndex, int Clock);
64int VidModeGetNumOfModes(int scrnIndex);
65Bool VidModeSetGamma(int scrnIndex, float red, float green, float blue);
66Bool VidModeGetGamma(int scrnIndex, float *red, float *green, float *blue);
67pointer VidModeCreateMode(void);
68void VidModeCopyMode(pointer modefrom, pointer modeto);
69int VidModeGetModeValue(pointer mode, int valtyp);
70void VidModeSetModeValue(pointer mode, int valtyp, int val);
71vidMonitorValue VidModeGetMonitorValue(pointer monitor, int valtyp, int indx);
72Bool VidModeSetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *);
73Bool VidModeGetGammaRamp(int, int, CARD16 *, CARD16 *, CARD16 *);
74int VidModeGetGammaRampSize(int scrnIndex);
75
76#endif
77
78
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette