DEVICESURFACE: Difference between revisions
Appearance
Created page with "Pointer to information needed by the graphics engine that represents the device's physical surface. ==Type== typedef struct _DEVICESURFACE { ULONG ulLength; ..." |
mNo edit summary |
||
| Line 2: | Line 2: | ||
==Type== | ==Type== | ||
typedef struct _DEVICESURFACE { | typedef struct _DEVICESURFACE { | ||
ULONG ulLength; | ULONG ulLength; /* Length of the DEVICESURFACE data structure. */ | ||
BMAPINFO SurfaceBmapInfo; | BMAPINFO SurfaceBmapInfo; /* Information for rastering to a linear address. */ | ||
ULONG ulDSFlgs; | ULONG ulDSFlgs; /* Flags for rendering of rasterized data. */ | ||
ULONG ulStyleRatio; | ULONG ulStyleRatio; /* Default style ratio used by the current device. */ | ||
BMAPINFO abmapinfoDefPattern[DEFAULT_PATTERNS_NUMBER]; | BMAPINFO abmapinfoDefPattern[DEFAULT_PATTERNS_NUMBER]; /* Set of default patterns. */ | ||
PVOID pHWPalette; | PVOID pHWPalette; /* Default hardware palette for the current device. */ | ||
DITHERMATRIX DitherMatrix; | DITHERMATRIX DitherMatrix; /* Default to generic dither support. */ | ||
PFN pfnDevLockDC; | PFN pfnDevLockDC; /* Default pointer to device-specific information. */ | ||
PFN pfnDevUnLockDC; | PFN pfnDevUnLockDC; /* Default pointer to release DC lock. */ | ||
PFN pfnBitBlt; | PFN pfnBitBlt; /* Pointer defaults to SOFTDRAW's handling of the SDBitBlt function. */ | ||
PFN pfnLine; | PFN pfnLine; /* Pointer defaults to SOFTDRAW's handling of the SDLINE function. */ | ||
PFN pfnReserved; | PFN pfnReserved; /* Reserved by system. */ | ||
PFN pfnLockPhysDev; | PFN pfnLockPhysDev; /* Prevents access to physical device. */ | ||
PFN pfnUnLockPhysDev; | PFN pfnUnLockPhysDev; /* Releases the physical device. */ | ||
ULONG ulReserved[5]; | ULONG ulReserved[5]; /* Reserved by system. */ | ||
ULONG ulCapsCnt; | ULONG ulCapsCnt; /* Size in ULONGs of the DevCaps field. */ | ||
ULONG DevCaps[CAPS_MAX_CAPS + 1]; | ULONG DevCaps[CAPS_MAX_CAPS + 1]; /* The device capabilities array in OS/2 2.0 and previous versions. */ | ||
} DEVICESURFACE; | } DEVICESURFACE; | ||
==C Declaration Method== | ==C Declaration Method== | ||
typedef DEVICESURFACE *PDEVICESURFACE; | typedef DEVICESURFACE *PDEVICESURFACE; | ||
[[Category:Data type]] | [[Category:Data type]] | ||
Revision as of 15:04, 27 December 2019
Pointer to information needed by the graphics engine that represents the device's physical surface.
Type
typedef struct _DEVICESURFACE {
ULONG ulLength; /* Length of the DEVICESURFACE data structure. */
BMAPINFO SurfaceBmapInfo; /* Information for rastering to a linear address. */
ULONG ulDSFlgs; /* Flags for rendering of rasterized data. */
ULONG ulStyleRatio; /* Default style ratio used by the current device. */
BMAPINFO abmapinfoDefPattern[DEFAULT_PATTERNS_NUMBER]; /* Set of default patterns. */
PVOID pHWPalette; /* Default hardware palette for the current device. */
DITHERMATRIX DitherMatrix; /* Default to generic dither support. */
PFN pfnDevLockDC; /* Default pointer to device-specific information. */
PFN pfnDevUnLockDC; /* Default pointer to release DC lock. */
PFN pfnBitBlt; /* Pointer defaults to SOFTDRAW's handling of the SDBitBlt function. */
PFN pfnLine; /* Pointer defaults to SOFTDRAW's handling of the SDLINE function. */
PFN pfnReserved; /* Reserved by system. */
PFN pfnLockPhysDev; /* Prevents access to physical device. */
PFN pfnUnLockPhysDev; /* Releases the physical device. */
ULONG ulReserved[5]; /* Reserved by system. */
ULONG ulCapsCnt; /* Size in ULONGs of the DevCaps field. */
ULONG DevCaps[CAPS_MAX_CAPS + 1]; /* The device capabilities array in OS/2 2.0 and previous versions. */
} DEVICESURFACE;
C Declaration Method
typedef DEVICESURFACE *PDEVICESURFACE;