VideoWidget.h 777 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * VideoWidget.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../gui/CIntObject.h"
  12. #include "../lib/filesystem/ResourcePath.h"
  13. class VideoWidget final : public CIntObject
  14. {
  15. VideoPath current;
  16. VideoPath next;
  17. int videoSoundHandle;
  18. public:
  19. VideoWidget(const Point & position, const VideoPath & prologue, const VideoPath & looped);
  20. VideoWidget(const Point & position, const VideoPath & looped);
  21. ~VideoWidget();
  22. void activate() override;
  23. void deactivate() override;
  24. void show(Canvas & to) override;
  25. void showAll(Canvas & to) override;
  26. void tick(uint32_t msPassed) override;
  27. };