cross_animation.h 703 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file is part of Desktop App Toolkit,
  2. // a set of libraries for developing nice desktop applications.
  3. //
  4. // For license and copyright information please follow this link:
  5. // https://github.com/desktop-app/legal/blob/master/LEGAL
  6. //
  7. #pragma once
  8. #include "styles/style_widgets.h"
  9. class Painter;
  10. namespace Ui {
  11. class CrossAnimation {
  12. public:
  13. static void paint(
  14. QPainter &p,
  15. const style::CrossAnimation &st,
  16. style::color color,
  17. int x,
  18. int y,
  19. int outerWidth,
  20. float64 shown,
  21. float64 loading = 0.);
  22. static void paintStaticLoading(
  23. QPainter &p,
  24. const style::CrossAnimation &st,
  25. style::color color,
  26. int x,
  27. int y,
  28. int outerWidth,
  29. float64 shown);
  30. };
  31. } // namespace Ui