Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion buildconfig/stubs/pygame/_render.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,25 @@ class Texture:

@final
class Image:
pass
def __init__(
self,
texture_or_image: Union[Texture, Image],
srcrect: Optional[RectLike] = None,
) -> None: ...
def get_rect(self) -> Rect: ...
def draw(
self, srcrect: Optional[RectLike] = None, dstrect: Optional[RectLike] = None
) -> None: ...
angle: float
origin: Optional[Iterable[float]]
flip_x: bool
flip_y: bool
alpha: int
blend_mode: int
texture: Texture
srcrect: Rect

@property
def color(self) -> Color: ...
@color.setter
def color(self, value: ColorLike) -> None: ...
1 change: 1 addition & 0 deletions src_c/include/_pygame.h
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ typedef struct {
SDL_bool flip_x;
SDL_bool flip_y;
SDL_BlendMode blend_mode;
PyObject *weakreflist;
} pgImageObject;

#ifndef PYGAMEAPI_RENDER_INTERNAL
Expand Down
Loading
Loading