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.

70 lines
2.0 KiB

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 1998-2000 Microsoft Corporation
  4. *
  5. * Abstract:
  6. *
  7. * Contains the definiton of the DpBrush structure which stores all of the
  8. * state needed by drivers to render with a brush.
  9. *
  10. * Notes:
  11. *
  12. * History:
  13. *
  14. * 12/01/1998 andrewgo
  15. * Created it.
  16. * 03/24/1999 agodfrey
  17. * Moved into separate file.
  18. * 12/08/1999 bhouse
  19. * Major overhaul of DpBrush. No longer used as base class of GpBrush.
  20. * Moved all driver required state into DpBrush. Changed to struct.
  21. *
  22. \**************************************************************************/
  23. #ifndef _DPBRUSH_HPP
  24. #define _DPBRUSH_HPP
  25. //--------------------------------------------------------------------------
  26. // Represent brush information
  27. //--------------------------------------------------------------------------
  28. struct DpBrush
  29. {
  30. GpBrushType Type;
  31. GpColor SolidColor; // Set if GpBrushType::SolidBrush
  32. GpMatrix Xform; // brush transform
  33. GpWrapMode Wrap; // wrap mode
  34. GpRectF Rect;
  35. DpBitmap * texture;
  36. ARGB* PresetColors; // NON-Premultiplied colors.
  37. BOOL UsesPresetColors;
  38. BOOL IsGammaCorrected; // use gamma correction of 2.2
  39. BOOL IsAngleScalable;
  40. DpPath * Path;
  41. mutable GpPointF * PointsPtr;
  42. GpColor * ColorsPtr;
  43. mutable INT Count;
  44. mutable BOOL OneSurroundColor;
  45. REAL FocusScaleX;
  46. REAL FocusScaleY;
  47. GpHatchStyle Style;
  48. GpColor Colors[4];
  49. REAL Falloffs[3];
  50. INT BlendCounts[3];
  51. REAL* BlendFactors[3];
  52. REAL* BlendPositions[3];
  53. GpPointF Points[3];
  54. BYTE Data[8][8];
  55. };
  56. #endif