kodi
WindowDecorationHandler.h
1 /*
2  * Copyright (C) 2017-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 <cstdint>
12 
13 #include <wayland-client-protocol.hpp>
14 
15 namespace KODI
16 {
17 namespace WINDOWING
18 {
19 namespace WAYLAND
20 {
21 
27 {
28 public:
29  virtual void OnWindowMove(wayland::seat_t const& seat, std::uint32_t serial) = 0;
30  virtual void OnWindowResize(wayland::seat_t const& seat, std::uint32_t serial, wayland::shell_surface_resize edge) = 0;
31  virtual void OnWindowShowContextMenu(wayland::seat_t const& seat, std::uint32_t serial, CPointInt position) = 0;
32  virtual void OnWindowMinimize() = 0;
33  virtual void OnWindowMaximize() = 0;
34  virtual void OnWindowClose() = 0;
35 
36  virtual ~IWindowDecorationHandler() = default;
37 };
38 
39 }
40 }
41 }
Definition: AudioDecoder.h:18
Handler for reacting to events originating in window decorations, such as moving the window by clicki...
Definition: WindowDecorationHandler.h:26