[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / windowing / wayland / WindowDecorationHandler.h
blobb02f39bcc95dc37aa03ed8acee5df4f7cc68b055
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include <cstdint>
13 #include <wayland-client-protocol.hpp>
15 namespace KODI
17 namespace WINDOWING
19 namespace WAYLAND
22 /**
23 * Handler for reacting to events originating in window decorations, such as
24 * moving the window by clicking and dragging
26 class IWindowDecorationHandler
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;
36 virtual ~IWindowDecorationHandler() = default;