/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. #pragma once
  9. // interface for registering into windowing
  10. // to get notified about display events
  11. // interface only, does not control lifetime of the object
  12. class IDispResource
  13. {
  14. public:
  15. virtual void OnLostDisplay() {};
  16. virtual void OnResetDisplay() {};
  17. virtual void OnAppFocusChange(bool focus) {};
  18. };
  19. // interface used by clients to register into render loop
  20. // interface only, does not control lifetime of the object
  21. class IRenderLoop
  22. {
  23. public:
  24. virtual void FrameMove() = 0;
  25. };