12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- # Flexlay - A Generic 2D Game Editor
- # Copyright (C) 2014 Ingo Ruhnke <grumbel@gmail.com>
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation, either version 3 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- from flexlay.math import Rect
- from flexlay.pixel_buffer import PixelBuffer
- class Surface:
- def __init__(self, pixelbuffer: PixelBuffer) -> None:
- pass
- def draw_stretched(self, rect: Rect) -> None:
- pass
- def draw(self, x: int, y: int) -> None:
- pass
- def set_alignment(self, origin: int, x: int = 0, y: int = 0) -> None:
- pass
- def set_alpha(self, alpha: int) -> None:
- pass
- def set_scale(self, x: float, y: float) -> None:
- pass
- def set_blend_func(self, src, dest) -> None:
- pass
- @property
- def width(self) -> int:
- return 0
- @property
- def height(self) -> int:
- return 0
- # EOF #
|