/pingus-0.7.6/src/pingus/screens/font_test_screen.hpp

# · C++ Header · 47 lines · 22 code · 9 blank · 16 comment · 0 complexity · e114d1369fe14264983dc632a692215c MD5 · raw file

  1. // Pingus - A free Lemmings clone
  2. // Copyright (C) 2007 Ingo Ruhnke <grumbel@gmx.de>
  3. //
  4. // This program is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU General Public License
  15. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. #ifndef HEADER_PINGUS_PINGUS_SCREENS_FONT_TEST_SCREEN_HPP
  17. #define HEADER_PINGUS_PINGUS_SCREENS_FONT_TEST_SCREEN_HPP
  18. #include "engine/display/font.hpp"
  19. #include "engine/screen/screen.hpp"
  20. class Pathname;
  21. class FontTestScreen : public Screen
  22. {
  23. private:
  24. Font font;
  25. Font reference;
  26. Vector2i scroll;
  27. bool dark;
  28. public:
  29. FontTestScreen(const Pathname& fontfile);
  30. void draw(DrawingContext& gc);
  31. void update(const Input::Event& event);
  32. void update(float delta) {}
  33. private:
  34. FontTestScreen (const FontTestScreen&);
  35. FontTestScreen& operator= (const FontTestScreen&);
  36. };
  37. #endif
  38. /* EOF */