xbmc
WinEventsOSX.h
1 /*
2  * Copyright (C) 2011-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "threads/Thread.h"
12 #include "windowing/WinEvents.h"
13 #include "windowing/XBMC_events.h"
14 
15 #include <memory>
16 
18 
19 class CWinEventsOSX : public IWinEvents, public CThread
20 {
21 public:
22  CWinEventsOSX();
23  ~CWinEventsOSX();
24 
25  void MessagePush(XBMC_Event* newEvent);
26  bool MessagePump();
27  size_t GetQueueSize();
28 
29  void enableInputEvents();
30  void disableInputEvents();
31 
32 private:
33  std::unique_ptr<CWinEventsOSXImplWrapper> m_eventsImplWrapper;
34 };
Definition: WinEventsSDL.h:15
Definition: Thread.h:44
Definition: XBMC_events.h:109
Definition: WinEvents.h:13
Definition: WinEventsOSX.mm:13