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.

34 lines
923 B

  1. #if !defined(RENDERUTIL__Public_h__INCLUDED)
  2. #define RENDERUTIL__Public_h__INCLUDED
  3. #pragma once
  4. namespace DUser
  5. {
  6. namespace RenderUtil
  7. {
  8. enum EBorderAlignment
  9. {
  10. baOutside,
  11. baCenter,
  12. baInside
  13. };
  14. void ComputeBorder(Gdiplus::Pen * pgppen, const Gdiplus::RectF * prcGadgetPxl,
  15. EBorderAlignment ba, Gdiplus::RectF * prcBorderPxl);
  16. void ComputeRoundRect(const Gdiplus::RectF * prc, const Gdiplus::SizeF sizeCorner,
  17. Gdiplus::GraphicsPath * pgppath);
  18. void DrawRoundRect(Gdiplus::Graphics * pgpgr, Gdiplus::Pen * pgppenBorder,
  19. const Gdiplus::RectF & rc, const Gdiplus::SizeF sizeCorner, EBorderAlignment ba = baCenter);
  20. void FillRoundRect(Gdiplus::Graphics * pgpgr, Gdiplus::Brush * pgpbrFill,
  21. const Gdiplus::RectF & rc, const Gdiplus::SizeF sizeCorner);
  22. } // namespace DUser
  23. } // namespace RenderUtil
  24. #endif // RENDERUTIL__Public_h__INCLUDED