PageRenderTime 25ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/xbmc/guilib/DispResource.h

http://github.com/xbmc/xbmc
C Header | 28 lines | 13 code | 3 blank | 12 comment | 0 complexity | 6a61a4619e25de4b571b6451562715d4 MD5 | raw file
 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
14class IDispResource
15{
16public:
17  virtual void OnLostDisplay() {};
18  virtual void OnResetDisplay() {};
19  virtual void OnAppFocusChange(bool focus) {};
20};
21
22// interface used by clients to register into render loop
23// interface only, does not control lifetime of the object
24class IRenderLoop
25{
26public:
27  virtual void FrameMove() = 0;
28};