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.

55 lines
1.2 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: CGradients.h
  3. *
  4. * This file contains the code to support the functionality test harness
  5. * for GDI+. This includes menu options and calling the appropriate
  6. * functions for execution.
  7. *
  8. * Created: 05-May-2000 - Jeff Vezina [t-jfvez]
  9. *
  10. * Copyright (c) 2000 Microsoft Corporation
  11. *
  12. \**************************************************************************/
  13. #ifndef __CGRADIENTS_H
  14. #define __CGRADIENTS_H
  15. #include "CPrimitive.h"
  16. GraphicsPath *CreateHeartPath(const RectF& rect);
  17. class CGradients : public CPrimitive
  18. {
  19. public:
  20. CGradients(BOOL bRegression);
  21. void Draw(Graphics *g);
  22. };
  23. class CScaledGradients : public CPrimitive
  24. {
  25. public:
  26. CScaledGradients(BOOL bRegression);
  27. void Draw(Graphics *g);
  28. };
  29. class CAlphaGradient : public CPrimitive
  30. {
  31. public:
  32. CAlphaGradient(BOOL bRegression);
  33. void Draw(Graphics *g);
  34. };
  35. #define GRADIENT_GLOBALS \
  36. CGradients g_Gradients(true); \
  37. CScaledGradients g_ScaledGradients(true); \
  38. CAlphaGradient g_AlphaGradient(true);
  39. #define GRADIENT_INIT \
  40. g_Gradients.Init();\
  41. g_ScaledGradients.Init();\
  42. g_AlphaGradient.Init();
  43. #endif