Collection of DPF-based plugins for packaging
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.

53 lines
2.0KB

  1. /*
  2. * projectM -- Milkdrop-esque visualisation SDK
  3. * Copyright (C)2003-2021 projectM Team
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. * See 'LICENSE.txt' included within this release
  19. *
  20. */
  21. #pragma once
  22. #include "projectM.hpp"
  23. #include "projectM.h"
  24. class projectMWrapper : public projectM
  25. {
  26. public:
  27. projectMWrapper(std::string configFile, int flags);
  28. projectMWrapper(Settings settings, int flags);
  29. void presetSwitchedEvent(bool isHardCut, size_t presetIndex) const override;
  30. void shuffleEnabledValueChanged(bool shuffle_enabled) const override;
  31. void presetSwitchFailedEvent(bool isHardCut, unsigned int presetIndex,
  32. const std::string& failureMessage) const override;
  33. void presetRatingChanged(unsigned int presetIndex, int rating, PresetRatingType ratingType) const override;
  34. projectm_preset_switched_event _presetSwitchedEventCallback{ nullptr };
  35. projectm_shuffle_enable_changed_event _shuffleEnableChangedEventCallback{ nullptr };
  36. projectm_preset_switch_failed_event _presetSwitchFailedEventCallback{ nullptr };
  37. projectm_preset_rating_changed_event _presetRatingChangedEventCallback{ nullptr };
  38. void* _presetSwitchedEventUserData{ nullptr };
  39. void* _shuffleEnableChangedEventUserData{ nullptr };
  40. void* _presetSwitchFailedEventUserData{ nullptr };
  41. void* _presetRatingChangedEventUserData{ nullptr };
  42. };