Skip to content

Commit

Permalink
Merge pull request pygame-community#3295 from damusss/window-expand-i…
Browse files Browse the repository at this point in the history
…nit-stubs

Expand __init__ parameters for `Window`
  • Loading branch information
ankith26 authored Jan 21, 2025
2 parents 452665c + 075d959 commit 645cda1
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion buildconfig/stubs/pygame/window.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,24 @@ class Window:
title: str = "pygame window",
size: Point = (640, 480),
position: Union[int, Point] = WINDOWPOS_UNDEFINED,
**flags: bool
*,
fullscreen: bool = ...,
fullscreen_desktop: bool = ...,
opengl: bool = ...,
vulkan: bool = ...,
hidden: bool = ...,
borderless: bool = ...,
resizable: bool = ...,
minimized: bool = ...,
maximized: bool = ...,
mouse_grabbed: bool = ...,
keyboard_grabbed: bool = ...,
input_focus: bool = ...,
mouse_focus: bool = ...,
allow_high_dpi: bool = ...,
mouse_capture: bool = ...,
always_on_top: bool = ...,
utility: bool = ...,
) -> None: ...
def destroy(self) -> None: ...
def set_windowed(self) -> None: ...
Expand Down

0 comments on commit 645cda1

Please sign in to comment.