NAP
guiappeventhandler.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 // External includes
8 #include <appeventhandler.h>
9 #include <sdleventconverter.h>
10 
11 namespace nap
12 {
13  // Forward Declares
14  class IMGuiService;
15 
22  class NAPAPI GUIAppEventHandler : public AppEventHandler
23  {
24  RTTI_ENABLE(AppEventHandler)
25  public:
26  GUIAppEventHandler(App& app);
27 
31  virtual void start() override;
32 
37  virtual void process() override;
38 
42  virtual void shutdown() override;
43 
52  bool setTouchGeneratesMouseEvents(bool value);
53 
54  private:
55  std::unique_ptr<SDLEventConverter> mEventConverter = nullptr;
56  IMGuiService* mGuiService = nullptr;
57  bool mTouchGeneratesMouseEvents = true;
58  };
59 }
nap::AppEventHandler
Definition: appeventhandler.h:19
nap::App
Definition: templateapp.h:24
nap::IMGuiService
Definition: imguiservice.h:165
nap
Definition: templateapp.h:17
nap::GUIAppEventHandler
Definition: guiappeventhandler.h:22