IStatusBar.h 666 B

123456789101112131415161718192021222324
  1. #pragma once
  2. struct SDL_Surface;
  3. /*
  4. * IStatusBar.h, part of VCMI engine
  5. *
  6. * Authors: listed in file AUTHORS in main folder
  7. *
  8. * License: GNU General Public License v2.0 or later
  9. * Full text of license available in license.txt file, in main folder
  10. *
  11. */
  12. // Status bar interface
  13. class IStatusBar
  14. {
  15. public:
  16. virtual ~IStatusBar(){}; //d-tor
  17. virtual void print(const std::string & text)=0; //prints text and refreshes statusbar
  18. virtual void clear()=0;//clears statusbar and refreshes
  19. virtual void show(SDL_Surface * to)=0; //shows statusbar (with current text)
  20. virtual std::string getCurrent()=0; //returns currently displayed text
  21. };