xbmc
DispResource.h
1 /*
2  * Copyright (C) 2005-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 // interface for registering into windowing
12 // to get notified about display events
13 // interface only, does not control lifetime of the object
15 {
16 public:
17  virtual ~IDispResource() = default;
18 
19  virtual void OnLostDisplay() {}
20  virtual void OnResetDisplay() {}
21  virtual void OnAppFocusChange(bool focus) {}
22 };
23 
24 // interface used by clients to register into render loop
25 // interface only, does not control lifetime of the object
27 {
28 public:
29  virtual ~IRenderLoop() = default;
30 
31  virtual void FrameMove() = 0;
32 };
Definition: DispResource.h:26
Definition: DispResource.h:14