WindowsWindowEffect.h 974 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef WINDOWSWINDOWEFFECT_H
  2. #define WINDOWSWINDOWEFFECT_H
  3. #include "WindowCompositionAttribute.h"
  4. #include <QWidget>
  5. struct ACCENT_POLICY;
  6. struct WINDOWCOMPOSITIONATTRIBDATA;
  7. class WindowsWindowEffect : public QWidget
  8. {
  9. Q_OBJECT
  10. public:
  11. WindowsWindowEffect(QWidget *parent);
  12. bool setAcrylicEffect(HWND hWnd, std::string gradientColor = "F2F2F299", bool enableShadow = true,
  13. uint32_t animationId = 0);
  14. bool setMicaEffect(HWND hWnd, bool isDarkMode = true);
  15. bool setAeroEffect(HWND hWnd);
  16. bool removeBackgroundEffect(HWND hWnd);
  17. static void moveWindow(HWND hWnd);
  18. bool addShadowEffect(HWND hWnd);
  19. bool addMenuShadowEffect(HWND hWnd);
  20. bool removeShadowEffect(HWND hWnd);
  21. static void removeMenuShadowEffect(HWND hWnd);
  22. static void addWindowAnimation(HWND hWnd);
  23. private:
  24. ACCENT_POLICY accentPolicy;
  25. WINDOWCOMPOSITIONATTRIBDATA winCompAttrData;
  26. };
  27. #endif // WINDOWSWINDOWEFFECT_H