Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1996 - 1999 Microsoft Corporation
  3. Module Name:
  4. state.h
  5. Abstract:
  6. Graphic state tracking header file.
  7. Environment:
  8. Windows NT Unidrv driver
  9. Revision History:
  10. 05/14/96 -amandan-
  11. Created
  12. --*/
  13. #ifndef _STATE_H_
  14. #define _STATE_H_
  15. typedef struct _DEVBRUSH{
  16. DWORD dwBrushType; // One of BRUSH_XXX types listed above
  17. INT iColor; // Color of the brush, depending on the type
  18. // it could be one of the following:
  19. // 2. RGB Color
  20. // 3. User define pattern ID
  21. // 4. Shading percentage
  22. PVOID pNext; // Pointed to next brush in list
  23. }DEVBRUSH, *PDEVBRUSH;
  24. typedef struct _GSTATE {
  25. //
  26. // Current Brush Information
  27. //
  28. DEVBRUSH CurrentBrush;
  29. PDEVBRUSH pRealizedBrush;
  30. PWORD pCachedPatterns;
  31. } GSTATE, * PGSTATE;
  32. PDEVBRUSH
  33. GSRealizeBrush(
  34. IN OUT PDEV *pPDev,
  35. IN SURFOBJ *pso,
  36. IN BRUSHOBJ *pbo
  37. );
  38. BOOL
  39. GSSelectBrush(
  40. IN PDEV *pPDev,
  41. IN PDEVBRUSH pDevBrush
  42. );
  43. VOID
  44. GSResetBrush(
  45. IN OUT PDEV *pPDev
  46. );
  47. VOID
  48. GSUnRealizeBrush(
  49. IN PDEV *pPDev
  50. );
  51. #endif // _STATE_H_