Files @ c921e1cae0af
Branch filter:

Location: light9/stubs/PIL/ImageWin.pyi

drewp@bigasterisk.com
fix `make show_data_checkpoint`
# Stubs for PIL.ImageWin (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from typing import Any, Optional

class HDC:
    dc: Any = ...
    def __init__(self, dc: Any) -> None: ...
    def __int__(self): ...

class HWND:
    wnd: Any = ...
    def __init__(self, wnd: Any) -> None: ...
    def __int__(self): ...

class Dib:
    image: Any = ...
    mode: Any = ...
    size: Any = ...
    def __init__(self, image: Any, size: Optional[Any] = ...) -> None: ...
    def expose(self, handle: Any): ...
    def draw(self, handle: Any, dst: Any, src: Optional[Any] = ...): ...
    def query_palette(self, handle: Any): ...
    def paste(self, im: Any, box: Optional[Any] = ...) -> None: ...
    def frombytes(self, buffer: Any): ...
    def tobytes(self): ...
    def fromstring(self, *args: Any, **kw: Any) -> None: ...
    def tostring(self, *args: Any, **kw: Any) -> None: ...

class Window:
    hwnd: Any = ...
    def __init__(self, title: str = ..., width: Optional[Any] = ..., height: Optional[Any] = ...) -> None: ...
    def ui_handle_clear(self, dc: Any, x0: Any, y0: Any, x1: Any, y1: Any) -> None: ...
    def ui_handle_damage(self, x0: Any, y0: Any, x1: Any, y1: Any) -> None: ...
    def ui_handle_destroy(self) -> None: ...
    def ui_handle_repair(self, dc: Any, x0: Any, y0: Any, x1: Any, y1: Any) -> None: ...
    def ui_handle_resize(self, width: Any, height: Any) -> None: ...
    def mainloop(self) -> None: ...

class ImageWindow(Window):
    image: Any = ...
    def __init__(self, image: Any, title: str = ...) -> None: ...
    def ui_handle_repair(self, dc: Any, x0: Any, y0: Any, x1: Any, y1: Any) -> None: ...