NAP
sequenceaudioguiservice.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 // nap Includes
8 #include <sequenceguiservice.h>
9 
10 namespace nap
11 {
13 
18  class NAPAPI SequenceAudioGUIService final : public Service
19  {
20  RTTI_ENABLE(Service)
21  public:
25  struct Colors
26  {
31  void init(const SequenceGUIService::Colors& palette);
32 
33  ImU32 mAudioSegmentBackground = 0;
34  ImU32 mAudioSegmentBackgroundHovering = 0;
35  ImU32 mAudioSegmentBackgroundClipboard = 0;
36  ImU32 mAudioSegmentBackgroundClipboardHovering = 0;
37  };
38 
44 
48  ~SequenceAudioGUIService() override;
49 
50 
55  {
56  return mColors;
57  }
58  protected:
63  void registerObjectCreators(rtti::Factory& factory) override;
64 
70  bool init(nap::utility::ErrorState& errorState) override;
71 
79  virtual void getDependentServices(std::vector<rtti::TypeInfo>& dependencies);
80 
81  private:
83  };
84 }
nap::SequenceAudioGUIService::getColors
const SequenceAudioGUIService::Colors & getColors() const
Definition: sequenceaudioguiservice.h:54
nap::utility::ErrorState
Definition: errorstate.h:19
nap::SequenceGUIService::Colors
Definition: sequenceguiservice.h:69
nap::ServiceConfiguration
Definition: service.h:28
nap::SequenceAudioGUIService
Definition: sequenceaudioguiservice.h:18
nap::Service
Definition: templateservice.h:8
nap::SequenceAudioGUIService::Colors
Definition: sequenceaudioguiservice.h:25
nap::rtti::Factory
Definition: factory.h:78
nap
Definition: templateapp.h:17