Skip to content
Merged
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
25 changes: 13 additions & 12 deletions stubs/pywin32/win32/lib/win32gui_struct.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from _typeshed import Incomplete, ReadableBuffer
from array import array
from typing import NamedTuple
from typing import NamedTuple, type_check_only

is64bit: bool

@type_check_only
class _WMNOTIFY(NamedTuple):
hwndFrom: Incomplete
idFrom: Incomplete
code: Incomplete

def UnpackWMNOTIFY(lparam: int) -> _WMNOTIFY: ...

@type_check_only
class _NMITEMACTIVATE(NamedTuple):
hwndFrom: Incomplete
idFrom: Incomplete
Expand All @@ -37,7 +38,7 @@ def PackMENUITEMINFO(
hbmpItem: Incomplete | None = ...,
dwTypeData: Incomplete | None = ...,
) -> tuple[array[int], list[Incomplete]]: ...

@type_check_only
class _MENUITEMINFO(NamedTuple):
fType: int | None
fState: int | None
Expand All @@ -59,7 +60,7 @@ def PackMENUINFO(
dwMenuData: Incomplete | None = ...,
fMask: int = ...,
) -> array[int]: ...

@type_check_only
class _MENUINFO(NamedTuple):
dwStyle: Incomplete | None
cyMax: Incomplete | None
Expand All @@ -72,7 +73,7 @@ def EmptyMENUINFO(mask: Incomplete | None = ...) -> array[int]: ...
def PackTVINSERTSTRUCT(parent, insertAfter, tvitem) -> tuple[bytes, list[Incomplete]]: ...
def PackTVITEM(hitem, state, stateMask, text, image, selimage, citems, param) -> tuple[array[int], list[Incomplete]]: ...
def EmptyTVITEM(hitem, mask: Incomplete | None = ..., text_buf_size: int = ...) -> tuple[array[int], list[Incomplete]]: ...

@type_check_only
class _TVITEM(NamedTuple):
item_hItem: Incomplete
item_state: Incomplete | None
Expand All @@ -84,7 +85,7 @@ class _TVITEM(NamedTuple):
item_param: Incomplete | None

def UnpackTVITEM(buffer: ReadableBuffer) -> _TVITEM: ...

@type_check_only
class _TVNOTIFY(NamedTuple):
hwndFrom: Incomplete
id: Incomplete
Expand All @@ -94,7 +95,7 @@ class _TVNOTIFY(NamedTuple):
item_new: _TVITEM

def UnpackTVNOTIFY(lparam: int) -> _TVNOTIFY: ...

@type_check_only
class _TVDISPINFO(NamedTuple):
hwndFrom: Incomplete
id: Incomplete
Expand All @@ -112,7 +113,7 @@ def PackLVITEM(
param: Incomplete | None = ...,
indent: Incomplete | None = ...,
) -> tuple[array[int], list[Incomplete]]: ...

@type_check_only
class _LVITEM(NamedTuple):
item_item: Incomplete
item_subItem: Incomplete
Expand All @@ -124,15 +125,15 @@ class _LVITEM(NamedTuple):
item_indent: Incomplete | None

def UnpackLVITEM(buffer: ReadableBuffer) -> _LVITEM: ...

@type_check_only
class _LVDISPINFO(NamedTuple):
hwndFrom: Incomplete
id: Incomplete
code: Incomplete
item: _LVITEM

def UnpackLVDISPINFO(lparam: int) -> _LVDISPINFO: ...

@type_check_only
class _UnpackLVNOTIFY(NamedTuple):
hwndFrom: Incomplete
id: Incomplete
Expand All @@ -157,7 +158,7 @@ def PackLVCOLUMN(
image: Incomplete | None = ...,
order: Incomplete | None = ...,
) -> tuple[array[int], list[Incomplete]]: ...

@type_check_only
class _LVCOLUMN(NamedTuple):
fmt: Incomplete | None
cx: Incomplete | None
Expand All @@ -169,7 +170,7 @@ class _LVCOLUMN(NamedTuple):
def UnpackLVCOLUMN(lparam: ReadableBuffer) -> _LVCOLUMN: ...
def EmptyLVCOLUMN(mask: Incomplete | None = ..., text_buf_size: int = ...) -> tuple[array[int], list[Incomplete]]: ...
def PackLVHITTEST(pt) -> tuple[array[int], None]: ...

@type_check_only
class _LVHITTEST(NamedTuple):
pt: tuple[Incomplete, Incomplete]
flags: Incomplete
Expand Down
Loading