Jump to content

DEVICESURFACE: Difference between revisions

From EDM2
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;                                                       /*  Length of the DEVICESURFACE data structure. */
   ULONG            ulLength;                                       /*  Length of the DEVICESURFACE data structure. */
   BMAPINFO        SurfaceBmapInfo;                                                 /*  Information for rastering to a linear address. */
   BMAPINFO        SurfaceBmapInfo;                               /*  Information for rastering to a linear address. */
   ULONG            ulDSFlgs;                                                       /*  Flags for rendering of rasterized data. */
   ULONG            ulDSFlgs;                                       /*  Flags for rendering of rasterized data. */
   ULONG            ulStyleRatio;                                                   /*  Default style ratio used by the current device. */
   ULONG            ulStyleRatio;                                   /*  Default style ratio used by the current device. */
   BMAPINFO        abmapinfoDefPattern[DEFAULT_PATTERNS_NUMBER]; /*  Set of default patterns. */
   BMAPINFO        abmapinfoDefPattern[DEFAULT_PATTERNS_NUMBER];   /*  Set of default patterns. */
   PVOID            pHWPalette;                                                     /*  Default hardware palette for the current device. */
   PVOID            pHWPalette;                                     /*  Default hardware palette for the current device. */
   DITHERMATRIX    DitherMatrix;                                                   /*  Default to generic dither support. */
   DITHERMATRIX    DitherMatrix;                                   /*  Default to generic dither support. */
   PFN              pfnDevLockDC;                                                   /*  Default pointer to device-specific information. */
   PFN              pfnDevLockDC;                                   /*  Default pointer to device-specific information. */
   PFN              pfnDevUnLockDC;                                                 /*  Default pointer to release DC lock. */
   PFN              pfnDevUnLockDC;                                 /*  Default pointer to release DC lock. */
   PFN              pfnBitBlt;                                                       /*  Pointer defaults to SOFTDRAW's handling of the SDBitBlt function. */
   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              pfnLine;                                       /*  Pointer defaults to SOFTDRAW's handling of the SDLINE function. */
   PFN              pfnReserved;                                                     /*  Reserved by system. */
   PFN              pfnReserved;                                   /*  Reserved by system. */
   PFN              pfnLockPhysDev;                                                 /*  Prevents access to physical device. */
   PFN              pfnLockPhysDev;                                 /*  Prevents access to physical device. */
   PFN              pfnUnLockPhysDev;                                               /*  Releases the physical device. */
   PFN              pfnUnLockPhysDev;                               /*  Releases the physical device. */
   ULONG            ulReserved[5];                                 /*  Reserved by system. */
   ULONG            ulReserved[5];                                 /*  Reserved by system. */
   ULONG            ulCapsCnt;                                                       /*  Size in ULONGs of the DevCaps field. */
   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 prev
   ULONG            DevCaps[CAPS_MAX_CAPS + 1];                     /*  The device capabilities array in OS/2 2.0 and previous versions. */
ious versions. */
  } DEVICESURFACE;
  } DEVICESURFACE;
==C Declaration Method==
==C Declaration Method==
  typedef DEVICESURFACE *PDEVICESURFACE;
  typedef DEVICESURFACE *PDEVICESURFACE;
[[Category:Data type]]
[[Category:Data type]]

Revision as of 16: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;