/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
- /*
- * Copyright (C) 2005-2018 Team Kodi
- * This file is part of Kodi - https://kodi.tv
- *
- * SPDX-License-Identifier: GPL-2.0-or-later
- * See LICENSES/README.md for more information.
- */
- #pragma once
- // interface for registering into windowing
- // to get notified about display events
- // interface only, does not control lifetime of the object
- class IDispResource
- {
- public:
- virtual void OnLostDisplay() {};
- virtual void OnResetDisplay() {};
- virtual void OnAppFocusChange(bool focus) {};
- };
- // interface used by clients to register into render loop
- // interface only, does not control lifetime of the object
- class IRenderLoop
- {
- public:
- virtual void FrameMove() = 0;
- };