surface.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Flexlay - A Generic 2D Game Editor
  2. # Copyright (C) 2014 Ingo Ruhnke <grumbel@gmail.com>
  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. from flexlay.math import Rect
  17. from flexlay.pixel_buffer import PixelBuffer
  18. class Surface:
  19. def __init__(self, pixelbuffer: PixelBuffer) -> None:
  20. pass
  21. def draw_stretched(self, rect: Rect) -> None:
  22. pass
  23. def draw(self, x: int, y: int) -> None:
  24. pass
  25. def set_alignment(self, origin: int, x: int = 0, y: int = 0) -> None:
  26. pass
  27. def set_alpha(self, alpha: int) -> None:
  28. pass
  29. def set_scale(self, x: float, y: float) -> None:
  30. pass
  31. def set_blend_func(self, src, dest) -> None:
  32. pass
  33. @property
  34. def width(self) -> int:
  35. return 0
  36. @property
  37. def height(self) -> int:
  38. return 0
  39. # EOF #