From e085d3233ccbac8cb29e3c9e864a2268b569e330 Mon Sep 17 00:00:00 2001 From: Bryan Forbes Date: Tue, 12 May 2026 08:24:01 -0500 Subject: [PATCH] imprv: property and enum stub generation Generate property stubs with separate getter/setter annotations based on readability, writability, and nullability of the underlying GObject getter/setter. Read-only and write-only props now use @property and @name.setter respectively, with typing.Never for the unreadable side. Emit enum/flag value type aliases (_NameLiteralType and _NameValueType) so APIs accepting enum values can also accept their string nicks/names, and consolidate the flag/enum builders into a single helper. Fixes #259 --- pyproject.toml | 31 +- src/gi-stubs/repository/Adw.pyi | 2132 ++-- src/gi-stubs/repository/Atk.pyi | 972 +- src/gi-stubs/repository/GLib.pyi | 568 +- src/gi-stubs/repository/GLibUnix.pyi | 31 +- src/gi-stubs/repository/GObject.pyi | 30 +- src/gi-stubs/repository/GdkPixbuf.pyi | 76 +- src/gi-stubs/repository/GdkWayland.pyi | 218 +- src/gi-stubs/repository/GdkX11.pyi | 44 +- src/gi-stubs/repository/Gio.pyi | 2468 ++++- src/gi-stubs/repository/GioUnix.pyi | 4 +- src/gi-stubs/repository/Gly.pyi | 198 +- src/gi-stubs/repository/Gsk.pyi | 317 +- src/gi-stubs/repository/Gst.pyi | 2129 +++- src/gi-stubs/repository/GstApp.pyi | 56 +- src/gi-stubs/repository/GstAudio.pyi | 631 +- src/gi-stubs/repository/GstBase.pyi | 97 +- src/gi-stubs/repository/GstPbutils.pyi | 144 +- src/gi-stubs/repository/GstRtp.pyi | 288 +- src/gi-stubs/repository/GstRtsp.pyi | 582 +- src/gi-stubs/repository/GstRtspServer.pyi | 266 +- src/gi-stubs/repository/GstVideo.pyi | 1496 ++- src/gi-stubs/repository/GstWebRTC.pyi | 415 +- src/gi-stubs/repository/Pango.pyi | 850 +- src/gi-stubs/repository/Rsvg.pyi | 25 +- src/gi-stubs/repository/_Gdk3.pyi | 1274 ++- src/gi-stubs/repository/_Gdk4.pyi | 949 +- src/gi-stubs/repository/_Gtk3.pyi | 8826 +++++++++++------ src/gi-stubs/repository/_Gtk4.pyi | 6758 +++++++++---- src/pygobject_stub_generator/class_info.py | 16 +- src/pygobject_stub_generator/property_info.py | 79 +- src/pygobject_stub_generator/stub.py | 225 +- src/pygobject_stub_generator/utils.py | 41 + 33 files changed, 25092 insertions(+), 7144 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 00e40294..97c7a991 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,25 +62,25 @@ exclude = [ [tool.ruff.lint] select = [ "ANN", # flake8-annotations - "B", # flake8-bugbear - "C4", # flake8-comprehensions - "E", # pycodestyle errors - "EXE", # flake8-executable - "F", # pyflakes + "B", # flake8-bugbear + "C4", # flake8-comprehensions + "E", # pycodestyle errors + "EXE", # flake8-executable + "F", # pyflakes "I", # isort - "INP", # flake8-no-pep420 - "ISC", # flake8-implicit-str-concat - "PIE", # flake8-pie - "PTH", # flake8-use-pathlib + "INP", # flake8-no-pep420 + "ISC", # flake8-implicit-str-concat + "PIE", # flake8-pie + "PTH", # flake8-use-pathlib "PYI", # flake8-pyi - "Q", # flake8-quotes - "RET", # flake8-return - "RSE", # flake8-raise - "SIM", # flake8-simplify + "Q", # flake8-quotes + "RET", # flake8-return + "RSE", # flake8-raise + "SIM", # flake8-simplify "T10", # flake8-debugger "TC", # flake8-type-checking "UP", # pyupgrade - "W", # pycodestyle warnings + "W", # pycodestyle warnings "RUF", # ruff-specific rules ] ignore = [ @@ -89,6 +89,7 @@ ignore = [ "PYI019", # Methods like `__or__` should return `typing.Self` instead of a custom `TypeVar` "PYI021", # Docstrings should not be included in stubs "PYI026", # Use `typing_extensions.TypeAlias` + "PYI047", # Private `TypeAlias` is never used "PYI052", # Need type annotation "PYI054", # Numeric literals with a string representation longer than ten characters are not permitted "PYI016", # Duplicate union member `None` @@ -110,3 +111,5 @@ typing = ["_typeshed", "typing", "typing_extensions"] [tool.pyright] pythonVersion = "3.10" + +reportMissingModuleSource = "none" diff --git a/src/gi-stubs/repository/Adw.pyi b/src/gi-stubs/repository/Adw.pyi index cf10afcd..b496bd82 100644 --- a/src/gi-stubs/repository/Adw.pyi +++ b/src/gi-stubs/repository/Adw.pyi @@ -1,7 +1,9 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -24,10 +26,12 @@ MICRO_VERSION: Final[int] MINOR_VERSION: Final[int] VERSION_S: Final = "1.8.5.1" -def accent_color_to_rgba(self: AccentColor) -> _Gdk4.RGBA: ... -def accent_color_to_standalone_rgba(self: AccentColor, dark: bool) -> _Gdk4.RGBA: ... +def accent_color_to_rgba(self: _AccentColorValueType) -> _Gdk4.RGBA: ... +def accent_color_to_standalone_rgba( + self: _AccentColorValueType, dark: bool +) -> _Gdk4.RGBA: ... def breakpoint_condition_parse(str: str) -> BreakpointCondition: ... -def easing_ease(self: Easing, value: float) -> float: ... +def easing_ease(self: _EasingValueType, value: float) -> float: ... def get_enable_animations(widget: _Gtk4.Widget) -> bool: ... def get_major_version() -> int: ... def get_micro_version() -> int: ... @@ -35,10 +39,10 @@ def get_minor_version() -> int: ... def init() -> None: ... def is_initialized() -> bool: ... def length_unit_from_px( - unit: LengthUnit, value: float, settings: _Gtk4.Settings | None = None + unit: _LengthUnitValueType, value: float, settings: _Gtk4.Settings | None = None ) -> float: ... def length_unit_to_px( - unit: LengthUnit, value: float, settings: _Gtk4.Settings | None = None + unit: _LengthUnitValueType, value: float, settings: _Gtk4.Settings | None = None ) -> float: ... def lerp(a: float, b: float, t: float) -> float: ... def rgba_to_standalone(rgba: _Gdk4.RGBA, dark: bool) -> _Gdk4.RGBA: ... @@ -155,25 +159,43 @@ class AboutDialog(Dialog): class Props(Dialog.Props): application_icon: str application_name: str - artists: list[str] | None + @property + def artists(self) -> list[str]: ... + @artists.setter + def artists(self, value: Sequence[str] | None) -> None: ... comments: str copyright: str debug_info: str debug_info_filename: str - designers: list[str] | None + @property + def designers(self) -> list[str]: ... + @designers.setter + def designers(self, value: Sequence[str] | None) -> None: ... developer_name: str - developers: list[str] | None - documenters: list[str] | None + @property + def developers(self) -> list[str]: ... + @developers.setter + def developers(self, value: Sequence[str] | None) -> None: ... + @property + def documenters(self) -> list[str]: ... + @documenters.setter + def documenters(self, value: Sequence[str] | None) -> None: ... issue_url: str license: str - license_type: _Gtk4.License + @property + def license_type(self) -> _Gtk4.License: ... + @license_type.setter + def license_type(self, value: _Gtk4._LicenseValueType) -> None: ... release_notes: str release_notes_version: str support_url: str translator_credits: str version: str website: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -193,14 +215,14 @@ class AboutDialog(Dialog): documenters: Sequence[str] | None = ..., issue_url: str = ..., license: str = ..., - license_type: _Gtk4.License = ..., + license_type: _Gtk4._LicenseValueType = ..., release_notes: str = ..., release_notes_version: str = ..., support_url: str = ..., translator_credits: str = ..., version: str = ..., website: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_close: bool = ..., child: _Gtk4.Widget | None = ..., content_height: int = ..., @@ -208,16 +230,16 @@ class AboutDialog(Dialog): default_widget: _Gtk4.Widget | None = ..., focus_widget: _Gtk4.Widget | None = ..., follows_content_size: bool = ..., - presentation_mode: DialogPresentationMode = ..., + presentation_mode: _DialogPresentationModeValueType = ..., title: str = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -230,12 +252,12 @@ class AboutDialog(Dialog): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -249,7 +271,7 @@ class AboutDialog(Dialog): self, title: str, copyright: str | None, - license_type: _Gtk4.License, + license_type: _Gtk4._LicenseValueType, license: str | None = None, ) -> None: ... def add_link(self, title: str, url: str) -> None: ... @@ -293,7 +315,7 @@ class AboutDialog(Dialog): def set_documenters(self, documenters: Sequence[str] | None = None) -> None: ... def set_issue_url(self, issue_url: str) -> None: ... def set_license(self, license: str) -> None: ... - def set_license_type(self, license_type: _Gtk4.License) -> None: ... + def set_license_type(self, license_type: _Gtk4._LicenseValueType) -> None: ... def set_release_notes(self, release_notes: str) -> None: ... def set_release_notes_version(self, version: str) -> None: ... def set_support_url(self, support_url: str) -> None: ... @@ -450,25 +472,43 @@ class AboutWindow(Window): class Props(Window.Props): application_icon: str application_name: str - artists: list[str] | None + @property + def artists(self) -> list[str]: ... + @artists.setter + def artists(self, value: Sequence[str] | None) -> None: ... comments: str copyright: str debug_info: str debug_info_filename: str - designers: list[str] | None + @property + def designers(self) -> list[str]: ... + @designers.setter + def designers(self, value: Sequence[str] | None) -> None: ... developer_name: str - developers: list[str] | None - documenters: list[str] | None + @property + def developers(self) -> list[str]: ... + @developers.setter + def developers(self, value: Sequence[str] | None) -> None: ... + @property + def documenters(self) -> list[str]: ... + @documenters.setter + def documenters(self, value: Sequence[str] | None) -> None: ... issue_url: str license: str - license_type: _Gtk4.License + @property + def license_type(self) -> _Gtk4.License: ... + @license_type.setter + def license_type(self, value: _Gtk4._LicenseValueType) -> None: ... release_notes: str release_notes_version: str support_url: str translator_credits: str version: str website: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -488,14 +528,14 @@ class AboutWindow(Window): documenters: Sequence[str] | None = ..., issue_url: str = ..., license: str = ..., - license_type: _Gtk4.License = ..., + license_type: _Gtk4._LicenseValueType = ..., release_notes: str = ..., release_notes_version: str = ..., support_url: str = ..., translator_credits: str = ..., version: str = ..., website: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., adaptive_preview: bool = ..., content: _Gtk4.Widget | None = ..., application: _Gtk4.Application | None = ..., @@ -510,7 +550,7 @@ class AboutWindow(Window): focus_visible: bool = ..., focus_widget: _Gtk4.Widget | None = ..., fullscreened: bool = ..., - gravity: _Gtk4.WindowGravity = ..., + gravity: _Gtk4._WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -525,11 +565,11 @@ class AboutWindow(Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -542,12 +582,12 @@ class AboutWindow(Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -561,7 +601,7 @@ class AboutWindow(Window): self, title: str, copyright: str | None, - license_type: _Gtk4.License, + license_type: _Gtk4._LicenseValueType, license: str | None = None, ) -> None: ... def add_link(self, title: str, url: str) -> None: ... @@ -604,7 +644,7 @@ class AboutWindow(Window): def set_documenters(self, documenters: Sequence[str] | None = None) -> None: ... def set_issue_url(self, issue_url: str) -> None: ... def set_license(self, license: str) -> None: ... - def set_license_type(self, license_type: _Gtk4.License) -> None: ... + def set_license_type(self, license_type: _Gtk4._LicenseValueType) -> None: ... def set_release_notes(self, release_notes: str) -> None: ... def set_release_notes_version(self, version: str) -> None: ... def set_support_url(self, support_url: str) -> None: ... @@ -718,13 +758,22 @@ class ActionRow(PreferencesRow): class Props(PreferencesRow.Props): activatable_widget: _Gtk4.Widget | None icon_name: str | None - subtitle: str | None + @property + def subtitle(self) -> str | None: ... + @subtitle.setter + def subtitle(self, value: str) -> None: ... subtitle_lines: int subtitle_selectable: bool title_lines: int - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -739,7 +788,7 @@ class ActionRow(PreferencesRow): subtitle_lines: int = ..., subtitle_selectable: bool = ..., title_lines: int = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., title: str = ..., @@ -752,11 +801,11 @@ class ActionRow(PreferencesRow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -769,12 +818,12 @@ class ActionRow(PreferencesRow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -920,7 +969,10 @@ class AlertDialog(Dialog): heading: str | None heading_use_markup: bool prefer_wide_layout: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -937,7 +989,7 @@ class AlertDialog(Dialog): heading: str | None = ..., heading_use_markup: bool = ..., prefer_wide_layout: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_close: bool = ..., child: _Gtk4.Widget | None = ..., content_height: int = ..., @@ -945,16 +997,16 @@ class AlertDialog(Dialog): default_widget: _Gtk4.Widget | None = ..., focus_widget: _Gtk4.Widget | None = ..., follows_content_size: bool = ..., - presentation_mode: DialogPresentationMode = ..., + presentation_mode: _DialogPresentationModeValueType = ..., title: str = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -967,12 +1019,12 @@ class AlertDialog(Dialog): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1017,7 +1069,7 @@ class AlertDialog(Dialog): def set_heading_use_markup(self, use_markup: bool) -> None: ... def set_prefer_wide_layout(self, prefer_wide_layout: bool) -> None: ... def set_response_appearance( - self, response: str, appearance: ResponseAppearance + self, response: str, appearance: _ResponseAppearanceValueType ) -> None: ... def set_response_enabled(self, response: str, enabled: bool) -> None: ... def set_response_label(self, response: str, label: str) -> None: ... @@ -1080,7 +1132,7 @@ class Animation(GObject.Object): *, follow_enable_animations_setting: bool = ..., target: AnimationTarget = ..., - widget: _Gtk4.Widget = ..., + widget: _Gtk4.Widget | None = ..., ) -> None: ... def get_follow_enable_animations_setting(self) -> bool: ... def get_state(self) -> AnimationState: ... @@ -1195,7 +1247,7 @@ class Application(_Gtk4.Application): register_session: bool = ..., action_group: Gio.ActionGroup | None = ..., application_id: str | None = ..., - flags: Gio.ApplicationFlags = ..., + flags: Gio._ApplicationFlagsValueType = ..., inactivity_timeout: int = ..., resource_base_path: str | None = ..., version: str = ..., @@ -1203,7 +1255,7 @@ class Application(_Gtk4.Application): def get_style_manager(self) -> StyleManager: ... @classmethod def new( - cls, application_id: str | None, flags: Gio.ApplicationFlags + cls, application_id: str | None, flags: Gio._ApplicationFlagsValueType ) -> Application: ... class ApplicationClass(_gi.Struct): @@ -1352,7 +1404,10 @@ class ApplicationWindow(_Gtk4.ApplicationWindow): def dialogs(self) -> Gio.ListModel: ... @property def visible_dialog(self) -> Dialog | None: ... - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -1363,7 +1418,7 @@ class ApplicationWindow(_Gtk4.ApplicationWindow): *, adaptive_preview: bool = ..., content: _Gtk4.Widget | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., show_menubar: bool = ..., application: _Gtk4.Application | None = ..., child: _Gtk4.Widget | None = ..., @@ -1377,7 +1432,7 @@ class ApplicationWindow(_Gtk4.ApplicationWindow): focus_visible: bool = ..., focus_widget: _Gtk4.Widget | None = ..., fullscreened: bool = ..., - gravity: _Gtk4.WindowGravity = ..., + gravity: _Gtk4._WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -1392,11 +1447,11 @@ class ApplicationWindow(_Gtk4.ApplicationWindow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -1409,12 +1464,12 @@ class ApplicationWindow(_Gtk4.ApplicationWindow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1524,7 +1579,10 @@ class Avatar(_Gtk4.Widget): show_initials: bool size: int text: str | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -1536,15 +1594,15 @@ class Avatar(_Gtk4.Widget): show_initials: bool = ..., size: int = ..., text: str | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -1557,12 +1615,12 @@ class Avatar(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1672,13 +1730,22 @@ class Banner(_Gtk4.Widget, _Gtk4.Actionable): @type_check_only class Props(_Gtk4.Widget.Props): button_label: str | None - button_style: BannerButtonStyle + @property + def button_style(self) -> BannerButtonStyle: ... + @button_style.setter + def button_style(self, value: _BannerButtonStyleValueType) -> None: ... revealed: bool title: str use_markup: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -1686,21 +1753,21 @@ class Banner(_Gtk4.Widget, _Gtk4.Actionable): self, *, button_label: str | None = ..., - button_style: BannerButtonStyle = ..., + button_style: _BannerButtonStyleValueType = ..., revealed: bool = ..., title: str = ..., use_markup: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -1713,12 +1780,12 @@ class Banner(_Gtk4.Widget, _Gtk4.Actionable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1732,7 +1799,7 @@ class Banner(_Gtk4.Widget, _Gtk4.Actionable): @classmethod def new(cls, title: str) -> Banner: ... def set_button_label(self, label: str | None = None) -> None: ... - def set_button_style(self, style: BannerButtonStyle) -> None: ... + def set_button_style(self, style: _BannerButtonStyleValueType) -> None: ... def set_revealed(self, revealed: bool) -> None: ... def set_title(self, title: str) -> None: ... def set_use_markup(self, use_markup: bool) -> None: ... @@ -1820,7 +1887,10 @@ class Bin(_Gtk4.Widget): @type_check_only class Props(_Gtk4.Widget.Props): child: _Gtk4.Widget | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -1830,15 +1900,15 @@ class Bin(_Gtk4.Widget): self, *, child: _Gtk4.Widget | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -1851,12 +1921,12 @@ class Bin(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1979,7 +2049,10 @@ class BottomSheet(_Gtk4.Widget, Swipeable): @property def sheet_height(self) -> int: ... show_drag_handle: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -1997,15 +2070,15 @@ class BottomSheet(_Gtk4.Widget, Swipeable): reveal_bottom_bar: bool = ..., sheet: _Gtk4.Widget | None = ..., show_drag_handle: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2018,12 +2091,12 @@ class BottomSheet(_Gtk4.Widget, Swipeable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2184,7 +2257,10 @@ class BreakpointBin(_Gtk4.Widget): child: _Gtk4.Widget | None @property def current_breakpoint(self) -> Breakpoint | None: ... - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -2194,15 +2270,15 @@ class BreakpointBin(_Gtk4.Widget): self, *, child: _Gtk4.Widget | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2215,12 +2291,12 @@ class BreakpointBin(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2277,7 +2353,10 @@ class BreakpointCondition(GObject.GBoxed): ) -> BreakpointCondition: ... @classmethod def new_length( - cls, type: BreakpointConditionLengthType, value: float, unit: LengthUnit + cls, + type: _BreakpointConditionLengthTypeValueType, + value: float, + unit: _LengthUnitValueType, ) -> BreakpointCondition: ... @classmethod def new_or( @@ -2285,7 +2364,7 @@ class BreakpointCondition(GObject.GBoxed): ) -> BreakpointCondition: ... @classmethod def new_ratio( - cls, type: BreakpointConditionRatioType, width: int, height: int + cls, type: _BreakpointConditionRatioTypeValueType, width: int, height: int ) -> BreakpointCondition: ... @staticmethod def parse(str: str) -> BreakpointCondition: ... @@ -2369,7 +2448,10 @@ class ButtonContent(_Gtk4.Widget): icon_name: str label: str use_underline: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -2380,15 +2462,15 @@ class ButtonContent(_Gtk4.Widget): icon_name: str = ..., label: str = ..., use_underline: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2401,12 +2483,12 @@ class ButtonContent(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2525,9 +2607,15 @@ class ButtonRow(PreferencesRow): class Props(PreferencesRow.Props): end_icon_name: str | None start_icon_name: str | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -2536,7 +2624,7 @@ class ButtonRow(PreferencesRow): *, end_icon_name: str | None = ..., start_icon_name: str | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., title: str = ..., @@ -2549,11 +2637,11 @@ class ButtonRow(PreferencesRow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2566,12 +2654,12 @@ class ButtonRow(PreferencesRow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2711,8 +2799,14 @@ class Carousel(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): reveal_duration: int scroll_params: SpringParams spacing: int - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -2726,16 +2820,16 @@ class Carousel(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): reveal_duration: int = ..., scroll_params: SpringParams = ..., spacing: int = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2748,12 +2842,12 @@ class Carousel(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2868,8 +2962,14 @@ class CarouselIndicatorDots(_Gtk4.Widget, _Gtk4.Orientable): @type_check_only class Props(_Gtk4.Widget.Props): carousel: Carousel | None - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -2877,16 +2977,16 @@ class CarouselIndicatorDots(_Gtk4.Widget, _Gtk4.Orientable): self, *, carousel: Carousel | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2899,12 +2999,12 @@ class CarouselIndicatorDots(_Gtk4.Widget, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2998,8 +3098,14 @@ class CarouselIndicatorLines(_Gtk4.Widget, _Gtk4.Orientable): @type_check_only class Props(_Gtk4.Widget.Props): carousel: Carousel | None - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -3007,16 +3113,16 @@ class CarouselIndicatorLines(_Gtk4.Widget, _Gtk4.Orientable): self, *, carousel: Carousel | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -3029,12 +3135,12 @@ class CarouselIndicatorLines(_Gtk4.Widget, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3133,9 +3239,18 @@ class Clamp(_Gtk4.Widget, _Gtk4.Orientable): child: _Gtk4.Widget | None maximum_size: int tightening_threshold: int - unit: LengthUnit - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def unit(self) -> LengthUnit: ... + @unit.setter + def unit(self, value: _LengthUnitValueType) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -3145,17 +3260,17 @@ class Clamp(_Gtk4.Widget, _Gtk4.Orientable): child: _Gtk4.Widget | None = ..., maximum_size: int = ..., tightening_threshold: int = ..., - unit: LengthUnit = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + unit: _LengthUnitValueType = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -3168,12 +3283,12 @@ class Clamp(_Gtk4.Widget, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3188,7 +3303,7 @@ class Clamp(_Gtk4.Widget, _Gtk4.Orientable): def set_child(self, child: _Gtk4.Widget | None = None) -> None: ... def set_maximum_size(self, maximum_size: int) -> None: ... def set_tightening_threshold(self, tightening_threshold: int) -> None: ... - def set_unit(self, unit: LengthUnit) -> None: ... + def set_unit(self, unit: _LengthUnitValueType) -> None: ... class ClampClass(_gi.Struct): """ @@ -3224,8 +3339,14 @@ class ClampLayout(_Gtk4.LayoutManager, _Gtk4.Orientable): class Props(_Gtk4.LayoutManager.Props): maximum_size: int tightening_threshold: int - unit: LengthUnit - orientation: _Gtk4.Orientation + @property + def unit(self) -> LengthUnit: ... + @unit.setter + def unit(self, value: _LengthUnitValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -3234,8 +3355,8 @@ class ClampLayout(_Gtk4.LayoutManager, _Gtk4.Orientable): *, maximum_size: int = ..., tightening_threshold: int = ..., - unit: LengthUnit = ..., - orientation: _Gtk4.Orientation = ..., + unit: _LengthUnitValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., ) -> None: ... def get_maximum_size(self) -> int: ... def get_tightening_threshold(self) -> int: ... @@ -3244,7 +3365,7 @@ class ClampLayout(_Gtk4.LayoutManager, _Gtk4.Orientable): def new(cls) -> ClampLayout: ... def set_maximum_size(self, maximum_size: int) -> None: ... def set_tightening_threshold(self, tightening_threshold: int) -> None: ... - def set_unit(self, unit: LengthUnit) -> None: ... + def set_unit(self, unit: _LengthUnitValueType) -> None: ... class ClampLayoutClass(_gi.Struct): """ @@ -3334,13 +3455,28 @@ class ClampScrollable(_Gtk4.Widget, _Gtk4.Orientable, _Gtk4.Scrollable): child: _Gtk4.Widget | None maximum_size: int tightening_threshold: int - unit: LengthUnit - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def unit(self) -> LengthUnit: ... + @unit.setter + def unit(self, value: _LengthUnitValueType) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... hadjustment: _Gtk4.Adjustment | None - hscroll_policy: _Gtk4.ScrollablePolicy + @property + def hscroll_policy(self) -> _Gtk4.ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _Gtk4._ScrollablePolicyValueType) -> None: ... vadjustment: _Gtk4.Adjustment | None - vscroll_policy: _Gtk4.ScrollablePolicy + @property + def vscroll_policy(self) -> _Gtk4.ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _Gtk4._ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -3350,21 +3486,21 @@ class ClampScrollable(_Gtk4.Widget, _Gtk4.Orientable, _Gtk4.Scrollable): child: _Gtk4.Widget | None = ..., maximum_size: int = ..., tightening_threshold: int = ..., - unit: LengthUnit = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + unit: _LengthUnitValueType = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., hadjustment: _Gtk4.Adjustment | None = ..., - hscroll_policy: _Gtk4.ScrollablePolicy = ..., + hscroll_policy: _Gtk4._ScrollablePolicyValueType = ..., vadjustment: _Gtk4.Adjustment | None = ..., - vscroll_policy: _Gtk4.ScrollablePolicy = ..., + vscroll_policy: _Gtk4._ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -3377,12 +3513,12 @@ class ClampScrollable(_Gtk4.Widget, _Gtk4.Orientable, _Gtk4.Scrollable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3397,7 +3533,7 @@ class ClampScrollable(_Gtk4.Widget, _Gtk4.Orientable, _Gtk4.Scrollable): def set_child(self, child: _Gtk4.Widget | None = None) -> None: ... def set_maximum_size(self, maximum_size: int) -> None: ... def set_tightening_threshold(self, tightening_threshold: int) -> None: ... - def set_unit(self, unit: LengthUnit) -> None: ... + def set_unit(self, unit: _LengthUnitValueType) -> None: ... class ClampScrollableClass(_gi.Struct): """ @@ -3522,14 +3658,25 @@ class ComboRow(ActionRow): header_factory: _Gtk4.ListItemFactory | None list_factory: _Gtk4.ListItemFactory | None model: Gio.ListModel | None - search_match_mode: _Gtk4.StringFilterMatchMode + @property + def search_match_mode(self) -> _Gtk4.StringFilterMatchMode: ... + @search_match_mode.setter + def search_match_mode( + self, value: _Gtk4._StringFilterMatchModeValueType + ) -> None: ... selected: int @property def selected_item(self) -> GObject.Object | None: ... use_subtitle: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -3544,10 +3691,10 @@ class ComboRow(ActionRow): header_factory: _Gtk4.ListItemFactory | None = ..., list_factory: _Gtk4.ListItemFactory | None = ..., model: Gio.ListModel | None = ..., - search_match_mode: _Gtk4.StringFilterMatchMode = ..., + search_match_mode: _Gtk4._StringFilterMatchModeValueType = ..., selected: int = ..., use_subtitle: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., activatable_widget: _Gtk4.Widget | None = ..., @@ -3566,11 +3713,11 @@ class ComboRow(ActionRow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -3583,12 +3730,12 @@ class ComboRow(ActionRow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3617,7 +3764,7 @@ class ComboRow(ActionRow): ) -> None: ... def set_model(self, model: Gio.ListModel | None = None) -> None: ... def set_search_match_mode( - self, search_match_mode: _Gtk4.StringFilterMatchMode + self, search_match_mode: _Gtk4._StringFilterMatchModeValueType ) -> None: ... def set_selected(self, position: int) -> None: ... def set_use_subtitle(self, use_subtitle: bool) -> None: ... @@ -3728,9 +3875,17 @@ class Dialog(_Gtk4.Widget, _Gtk4.ShortcutManager): default_widget: _Gtk4.Widget | None focus_widget: _Gtk4.Widget | None follows_content_size: bool - presentation_mode: DialogPresentationMode + @property + def presentation_mode(self) -> DialogPresentationMode: ... + @presentation_mode.setter + def presentation_mode( + self, value: _DialogPresentationModeValueType + ) -> None: ... title: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -3746,17 +3901,17 @@ class Dialog(_Gtk4.Widget, _Gtk4.ShortcutManager): default_widget: _Gtk4.Widget | None = ..., focus_widget: _Gtk4.Widget | None = ..., follows_content_size: bool = ..., - presentation_mode: DialogPresentationMode = ..., + presentation_mode: _DialogPresentationModeValueType = ..., title: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -3769,12 +3924,12 @@ class Dialog(_Gtk4.Widget, _Gtk4.ShortcutManager): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3808,7 +3963,7 @@ class Dialog(_Gtk4.Widget, _Gtk4.ShortcutManager): def set_focus(self, focus: _Gtk4.Widget | None = None) -> None: ... def set_follows_content_size(self, follows_content_size: bool) -> None: ... def set_presentation_mode( - self, presentation_mode: DialogPresentationMode + self, presentation_mode: _DialogPresentationModeValueType ) -> None: ... def set_title(self, title: str) -> None: ... @@ -3933,15 +4088,27 @@ class EntryRow(PreferencesRow, _Gtk4.Editable): activates_default: bool attributes: Pango.AttrList | None enable_emoji_completion: bool - input_hints: _Gtk4.InputHints - input_purpose: _Gtk4.InputPurpose + @property + def input_hints(self) -> _Gtk4.InputHints: ... + @input_hints.setter + def input_hints(self, value: _Gtk4._InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> _Gtk4.InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _Gtk4._InputPurposeValueType) -> None: ... max_length: int show_apply_button: bool @property def text_length(self) -> int: ... - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def cursor_position(self) -> int: ... editable: bool @@ -3963,11 +4130,11 @@ class EntryRow(PreferencesRow, _Gtk4.Editable): activates_default: bool = ..., attributes: Pango.AttrList | None = ..., enable_emoji_completion: bool = ..., - input_hints: _Gtk4.InputHints = ..., - input_purpose: _Gtk4.InputPurpose = ..., + input_hints: _Gtk4._InputHintsValueType = ..., + input_purpose: _Gtk4._InputPurposeValueType = ..., max_length: int = ..., show_apply_button: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., editable: bool = ..., @@ -3986,11 +4153,11 @@ class EntryRow(PreferencesRow, _Gtk4.Editable): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -4003,12 +4170,12 @@ class EntryRow(PreferencesRow, _Gtk4.Editable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -4031,8 +4198,8 @@ class EntryRow(PreferencesRow, _Gtk4.Editable): def set_activates_default(self, activates: bool) -> None: ... def set_attributes(self, attributes: Pango.AttrList | None = None) -> None: ... def set_enable_emoji_completion(self, enable_emoji_completion: bool) -> None: ... - def set_input_hints(self, hints: _Gtk4.InputHints) -> None: ... - def set_input_purpose(self, purpose: _Gtk4.InputPurpose) -> None: ... + def set_input_hints(self, hints: _Gtk4._InputHintsValueType) -> None: ... + def set_input_purpose(self, purpose: _Gtk4._InputPurposeValueType) -> None: ... def set_max_length(self, max_length: int) -> None: ... def set_show_apply_button(self, show_apply_button: bool) -> None: ... @@ -4233,9 +4400,15 @@ class ExpanderRow(PreferencesRow): subtitle: str subtitle_lines: int title_lines: int - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -4251,7 +4424,7 @@ class ExpanderRow(PreferencesRow): subtitle: str = ..., subtitle_lines: int = ..., title_lines: int = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., title: str = ..., @@ -4264,11 +4437,11 @@ class ExpanderRow(PreferencesRow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -4281,12 +4454,12 @@ class ExpanderRow(PreferencesRow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -4415,10 +4588,21 @@ class Flap(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): class Props(_Gtk4.Widget.Props): content: _Gtk4.Widget | None flap: _Gtk4.Widget | None - flap_position: _Gtk4.PackType + @property + def flap_position(self) -> _Gtk4.PackType: ... + @flap_position.setter + def flap_position(self, value: _Gtk4._PackTypeValueType) -> None: ... fold_duration: int - fold_policy: FlapFoldPolicy - fold_threshold_policy: FoldThresholdPolicy + @property + def fold_policy(self) -> FlapFoldPolicy: ... + @fold_policy.setter + def fold_policy(self, value: _FlapFoldPolicyValueType) -> None: ... + @property + def fold_threshold_policy(self) -> FoldThresholdPolicy: ... + @fold_threshold_policy.setter + def fold_threshold_policy( + self, value: _FoldThresholdPolicyValueType + ) -> None: ... @property def folded(self) -> bool: ... locked: bool @@ -4430,9 +4614,18 @@ class Flap(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): separator: _Gtk4.Widget | None swipe_to_close: bool swipe_to_open: bool - transition_type: FlapTransitionType - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def transition_type(self) -> FlapTransitionType: ... + @transition_type.setter + def transition_type(self, value: _FlapTransitionTypeValueType) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -4441,10 +4634,10 @@ class Flap(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): *, content: _Gtk4.Widget | None = ..., flap: _Gtk4.Widget | None = ..., - flap_position: _Gtk4.PackType = ..., + flap_position: _Gtk4._PackTypeValueType = ..., fold_duration: int = ..., - fold_policy: FlapFoldPolicy = ..., - fold_threshold_policy: FoldThresholdPolicy = ..., + fold_policy: _FlapFoldPolicyValueType = ..., + fold_threshold_policy: _FoldThresholdPolicyValueType = ..., locked: bool = ..., modal: bool = ..., reveal_flap: bool = ..., @@ -4452,17 +4645,17 @@ class Flap(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): separator: _Gtk4.Widget | None = ..., swipe_to_close: bool = ..., swipe_to_open: bool = ..., - transition_type: FlapTransitionType = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + transition_type: _FlapTransitionTypeValueType = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -4475,12 +4668,12 @@ class Flap(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -4506,10 +4699,12 @@ class Flap(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): def new(cls) -> Flap: ... def set_content(self, content: _Gtk4.Widget | None = None) -> None: ... def set_flap(self, flap: _Gtk4.Widget | None = None) -> None: ... - def set_flap_position(self, position: _Gtk4.PackType) -> None: ... + def set_flap_position(self, position: _Gtk4._PackTypeValueType) -> None: ... def set_fold_duration(self, duration: int) -> None: ... - def set_fold_policy(self, policy: FlapFoldPolicy) -> None: ... - def set_fold_threshold_policy(self, policy: FoldThresholdPolicy) -> None: ... + def set_fold_policy(self, policy: _FlapFoldPolicyValueType) -> None: ... + def set_fold_threshold_policy( + self, policy: _FoldThresholdPolicyValueType + ) -> None: ... def set_locked(self, locked: bool) -> None: ... def set_modal(self, modal: bool) -> None: ... def set_reveal_flap(self, reveal_flap: bool) -> None: ... @@ -4517,7 +4712,9 @@ class Flap(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): def set_separator(self, separator: _Gtk4.Widget | None = None) -> None: ... def set_swipe_to_close(self, swipe_to_close: bool) -> None: ... def set_swipe_to_open(self, swipe_to_open: bool) -> None: ... - def set_transition_type(self, transition_type: FlapTransitionType) -> None: ... + def set_transition_type( + self, transition_type: _FlapTransitionTypeValueType + ) -> None: ... class FlapClass(_gi.Struct): """ @@ -4607,36 +4804,42 @@ class HeaderBar(_Gtk4.Widget): """ @type_check_only class Props(_Gtk4.Widget.Props): - centering_policy: CenteringPolicy + @property + def centering_policy(self) -> CenteringPolicy: ... + @centering_policy.setter + def centering_policy(self, value: _CenteringPolicyValueType) -> None: ... decoration_layout: str | None show_back_button: bool show_end_title_buttons: bool show_start_title_buttons: bool show_title: bool title_widget: _Gtk4.Widget | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - centering_policy: CenteringPolicy = ..., + centering_policy: _CenteringPolicyValueType = ..., decoration_layout: str | None = ..., show_back_button: bool = ..., show_end_title_buttons: bool = ..., show_start_title_buttons: bool = ..., show_title: bool = ..., title_widget: _Gtk4.Widget | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -4649,12 +4852,12 @@ class HeaderBar(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -4672,7 +4875,9 @@ class HeaderBar(_Gtk4.Widget): def pack_end(self, child: _Gtk4.Widget) -> None: ... def pack_start(self, child: _Gtk4.Widget) -> None: ... def remove(self, child: _Gtk4.Widget) -> None: ... - def set_centering_policy(self, centering_policy: CenteringPolicy) -> None: ... + def set_centering_policy( + self, centering_policy: _CenteringPolicyValueType + ) -> None: ... def set_decoration_layout(self, layout: str | None = None) -> None: ... def set_show_back_button(self, show_back_button: bool) -> None: ... def set_show_end_title_buttons(self, setting: bool) -> None: ... @@ -4766,11 +4971,22 @@ class InlineViewSwitcher(_Gtk4.Widget, _Gtk4.Orientable): @type_check_only class Props(_Gtk4.Widget.Props): can_shrink: bool - display_mode: InlineViewSwitcherDisplayMode + @property + def display_mode(self) -> InlineViewSwitcherDisplayMode: ... + @display_mode.setter + def display_mode( + self, value: _InlineViewSwitcherDisplayModeValueType + ) -> None: ... homogeneous: bool stack: ViewStack | None - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -4778,19 +4994,19 @@ class InlineViewSwitcher(_Gtk4.Widget, _Gtk4.Orientable): self, *, can_shrink: bool = ..., - display_mode: InlineViewSwitcherDisplayMode = ..., + display_mode: _InlineViewSwitcherDisplayModeValueType = ..., homogeneous: bool = ..., stack: ViewStack | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -4803,12 +5019,12 @@ class InlineViewSwitcher(_Gtk4.Widget, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -4821,7 +5037,9 @@ class InlineViewSwitcher(_Gtk4.Widget, _Gtk4.Orientable): @classmethod def new(cls) -> InlineViewSwitcher: ... def set_can_shrink(self, can_shrink: bool) -> None: ... - def set_display_mode(self, mode: InlineViewSwitcherDisplayMode) -> None: ... + def set_display_mode( + self, mode: _InlineViewSwitcherDisplayModeValueType + ) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_stack(self, stack: ViewStack | None = None) -> None: ... @@ -4863,7 +5081,7 @@ class Layout(GObject.Object, _Gtk4.Buildable): @property def props(self) -> Props: ... def __init__( - self, *, content: _Gtk4.Widget = ..., name: str | None = ... + self, *, content: _Gtk4.Widget | None = ..., name: str | None = ... ) -> None: ... def get_content(self) -> _Gtk4.Widget: ... def get_name(self) -> str | None: ... @@ -4955,23 +5173,26 @@ class LayoutSlot(_Gtk4.Widget): class Props(_Gtk4.Widget.Props): @property def id(self) -> str: ... - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - id: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + id: str | None = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -4984,12 +5205,12 @@ class LayoutSlot(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5099,18 +5320,38 @@ class Leaflet(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): child_transition_params: SpringParams @property def child_transition_running(self) -> bool: ... - fold_threshold_policy: FoldThresholdPolicy + @property + def fold_threshold_policy(self) -> FoldThresholdPolicy: ... + @fold_threshold_policy.setter + def fold_threshold_policy( + self, value: _FoldThresholdPolicyValueType + ) -> None: ... @property def folded(self) -> bool: ... homogeneous: bool mode_transition_duration: int @property def pages(self) -> _Gtk4.SelectionModel: ... - transition_type: LeafletTransitionType - visible_child: _Gtk4.Widget | None - visible_child_name: str | None - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def transition_type(self) -> LeafletTransitionType: ... + @transition_type.setter + def transition_type(self, value: _LeafletTransitionTypeValueType) -> None: ... + @property + def visible_child(self) -> _Gtk4.Widget | None: ... + @visible_child.setter + def visible_child(self, value: _Gtk4.Widget) -> None: ... + @property + def visible_child_name(self) -> str | None: ... + @visible_child_name.setter + def visible_child_name(self, value: str) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -5121,22 +5362,22 @@ class Leaflet(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): can_navigate_forward: bool = ..., can_unfold: bool = ..., child_transition_params: SpringParams = ..., - fold_threshold_policy: FoldThresholdPolicy = ..., + fold_threshold_policy: _FoldThresholdPolicyValueType = ..., homogeneous: bool = ..., mode_transition_duration: int = ..., - transition_type: LeafletTransitionType = ..., + transition_type: _LeafletTransitionTypeValueType = ..., visible_child: _Gtk4.Widget = ..., visible_child_name: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -5149,12 +5390,12 @@ class Leaflet(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5162,7 +5403,7 @@ class Leaflet(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): ) -> None: ... def append(self, child: _Gtk4.Widget) -> LeafletPage: ... def get_adjacent_child( - self, direction: NavigationDirection + self, direction: _NavigationDirectionValueType ) -> _Gtk4.Widget | None: ... def get_can_navigate_back(self) -> bool: ... def get_can_navigate_forward(self) -> bool: ... @@ -5182,7 +5423,7 @@ class Leaflet(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): def insert_child_after( self, child: _Gtk4.Widget, sibling: _Gtk4.Widget | None = None ) -> LeafletPage: ... - def navigate(self, direction: NavigationDirection) -> bool: ... + def navigate(self, direction: _NavigationDirectionValueType) -> bool: ... @classmethod def new(cls) -> Leaflet: ... def prepend(self, child: _Gtk4.Widget) -> LeafletPage: ... @@ -5194,10 +5435,14 @@ class Leaflet(_Gtk4.Widget, Swipeable, _Gtk4.Orientable): def set_can_navigate_forward(self, can_navigate_forward: bool) -> None: ... def set_can_unfold(self, can_unfold: bool) -> None: ... def set_child_transition_params(self, params: SpringParams) -> None: ... - def set_fold_threshold_policy(self, policy: FoldThresholdPolicy) -> None: ... + def set_fold_threshold_policy( + self, policy: _FoldThresholdPolicyValueType + ) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_mode_transition_duration(self, duration: int) -> None: ... - def set_transition_type(self, transition: LeafletTransitionType) -> None: ... + def set_transition_type( + self, transition: _LeafletTransitionTypeValueType + ) -> None: ... def set_visible_child(self, visible_child: _Gtk4.Widget) -> None: ... def set_visible_child_name(self, name: str) -> None: ... @@ -5242,7 +5487,7 @@ class LeafletPage(GObject.Object): def __init__( self, *, - child: _Gtk4.Widget = ..., + child: _Gtk4.Widget | None = ..., name: str | None = ..., navigatable: bool = ..., ) -> None: ... @@ -5385,7 +5630,10 @@ class MessageDialog(_Gtk4.Window): extra_child: _Gtk4.Widget | None heading: str | None heading_use_markup: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -5401,7 +5649,7 @@ class MessageDialog(_Gtk4.Window): extra_child: _Gtk4.Widget | None = ..., heading: str | None = ..., heading_use_markup: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., application: _Gtk4.Application | None = ..., child: _Gtk4.Widget | None = ..., decorated: bool = ..., @@ -5414,7 +5662,7 @@ class MessageDialog(_Gtk4.Window): focus_visible: bool = ..., focus_widget: _Gtk4.Widget | None = ..., fullscreened: bool = ..., - gravity: _Gtk4.WindowGravity = ..., + gravity: _Gtk4._WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -5429,11 +5677,11 @@ class MessageDialog(_Gtk4.Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -5446,12 +5694,12 @@ class MessageDialog(_Gtk4.Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5497,7 +5745,7 @@ class MessageDialog(_Gtk4.Window): def set_heading(self, heading: str | None = None) -> None: ... def set_heading_use_markup(self, use_markup: bool) -> None: ... def set_response_appearance( - self, response: str, appearance: ResponseAppearance + self, response: str, appearance: _ResponseAppearanceValueType ) -> None: ... def set_response_enabled(self, response: str, enabled: bool) -> None: ... def set_response_label(self, response: str, label: str) -> None: ... @@ -5589,9 +5837,18 @@ class MultiLayoutView(_Gtk4.Widget): """ @type_check_only class Props(_Gtk4.Widget.Props): - layout: Layout | None - layout_name: str | None - accessible_role: _Gtk4.AccessibleRole + @property + def layout(self) -> Layout | None: ... + @layout.setter + def layout(self, value: Layout) -> None: ... + @property + def layout_name(self) -> str | None: ... + @layout_name.setter + def layout_name(self, value: str) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -5600,15 +5857,15 @@ class MultiLayoutView(_Gtk4.Widget): *, layout: Layout = ..., layout_name: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -5621,12 +5878,12 @@ class MultiLayoutView(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5740,7 +5997,10 @@ class NavigationPage(_Gtk4.Widget): child: _Gtk4.Widget | None tag: str | None title: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -5753,15 +6013,15 @@ class NavigationPage(_Gtk4.Widget): child: _Gtk4.Widget | None = ..., tag: str | None = ..., title: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -5774,12 +6034,12 @@ class NavigationPage(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5910,10 +6170,19 @@ class NavigationSplitView(_Gtk4.Widget): min_sidebar_width: float show_content: bool sidebar: NavigationPage | None - sidebar_position: _Gtk4.PackType + @property + def sidebar_position(self) -> _Gtk4.PackType: ... + @sidebar_position.setter + def sidebar_position(self, value: _Gtk4._PackTypeValueType) -> None: ... sidebar_width_fraction: float - sidebar_width_unit: LengthUnit - accessible_role: _Gtk4.AccessibleRole + @property + def sidebar_width_unit(self) -> LengthUnit: ... + @sidebar_width_unit.setter + def sidebar_width_unit(self, value: _LengthUnitValueType) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -5926,18 +6195,18 @@ class NavigationSplitView(_Gtk4.Widget): min_sidebar_width: float = ..., show_content: bool = ..., sidebar: NavigationPage | None = ..., - sidebar_position: _Gtk4.PackType = ..., + sidebar_position: _Gtk4._PackTypeValueType = ..., sidebar_width_fraction: float = ..., - sidebar_width_unit: LengthUnit = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + sidebar_width_unit: _LengthUnitValueType = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -5950,12 +6219,12 @@ class NavigationSplitView(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5978,9 +6247,9 @@ class NavigationSplitView(_Gtk4.Widget): def set_min_sidebar_width(self, width: float) -> None: ... def set_show_content(self, show_content: bool) -> None: ... def set_sidebar(self, sidebar: NavigationPage | None = None) -> None: ... - def set_sidebar_position(self, position: _Gtk4.PackType) -> None: ... + def set_sidebar_position(self, position: _Gtk4._PackTypeValueType) -> None: ... def set_sidebar_width_fraction(self, fraction: float) -> None: ... - def set_sidebar_width_unit(self, unit: LengthUnit) -> None: ... + def set_sidebar_width_unit(self, unit: _LengthUnitValueType) -> None: ... class NavigationSplitViewClass(_gi.Struct): """ @@ -6086,7 +6355,10 @@ class NavigationView(_Gtk4.Widget, Swipeable): def visible_page(self) -> NavigationPage | None: ... @property def visible_page_tag(self) -> str | None: ... - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -6097,15 +6369,15 @@ class NavigationView(_Gtk4.Widget, Swipeable): hhomogeneous: bool = ..., pop_on_escape: bool = ..., vhomogeneous: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6118,12 +6390,12 @@ class NavigationView(_Gtk4.Widget, Swipeable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6256,10 +6528,19 @@ class OverlaySplitView(_Gtk4.Widget, Swipeable): pin_sidebar: bool show_sidebar: bool sidebar: _Gtk4.Widget | None - sidebar_position: _Gtk4.PackType + @property + def sidebar_position(self) -> _Gtk4.PackType: ... + @sidebar_position.setter + def sidebar_position(self, value: _Gtk4._PackTypeValueType) -> None: ... sidebar_width_fraction: float - sidebar_width_unit: LengthUnit - accessible_role: _Gtk4.AccessibleRole + @property + def sidebar_width_unit(self) -> LengthUnit: ... + @sidebar_width_unit.setter + def sidebar_width_unit(self, value: _LengthUnitValueType) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -6275,18 +6556,18 @@ class OverlaySplitView(_Gtk4.Widget, Swipeable): pin_sidebar: bool = ..., show_sidebar: bool = ..., sidebar: _Gtk4.Widget | None = ..., - sidebar_position: _Gtk4.PackType = ..., + sidebar_position: _Gtk4._PackTypeValueType = ..., sidebar_width_fraction: float = ..., - sidebar_width_unit: LengthUnit = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + sidebar_width_unit: _LengthUnitValueType = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6299,12 +6580,12 @@ class OverlaySplitView(_Gtk4.Widget, Swipeable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6333,9 +6614,9 @@ class OverlaySplitView(_Gtk4.Widget, Swipeable): def set_pin_sidebar(self, pin_sidebar: bool) -> None: ... def set_show_sidebar(self, show_sidebar: bool) -> None: ... def set_sidebar(self, sidebar: _Gtk4.Widget | None = None) -> None: ... - def set_sidebar_position(self, position: _Gtk4.PackType) -> None: ... + def set_sidebar_position(self, position: _Gtk4._PackTypeValueType) -> None: ... def set_sidebar_width_fraction(self, fraction: float) -> None: ... - def set_sidebar_width_unit(self, unit: LengthUnit) -> None: ... + def set_sidebar_width_unit(self, unit: _LengthUnitValueType) -> None: ... class OverlaySplitViewClass(_gi.Struct): """ @@ -6454,9 +6735,15 @@ class PasswordEntryRow(EntryRow): """ @type_check_only class Props(EntryRow.Props): - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def cursor_position(self) -> int: ... editable: bool @@ -6473,7 +6760,7 @@ class PasswordEntryRow(EntryRow): def __init__( self, *, - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., editable: bool = ..., @@ -6485,8 +6772,8 @@ class PasswordEntryRow(EntryRow): activates_default: bool = ..., attributes: Pango.AttrList | None = ..., enable_emoji_completion: bool = ..., - input_hints: _Gtk4.InputHints = ..., - input_purpose: _Gtk4.InputPurpose = ..., + input_hints: _Gtk4._InputHintsValueType = ..., + input_purpose: _Gtk4._InputPurposeValueType = ..., max_length: int = ..., show_apply_button: bool = ..., title: str = ..., @@ -6499,11 +6786,11 @@ class PasswordEntryRow(EntryRow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6516,12 +6803,12 @@ class PasswordEntryRow(EntryRow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6631,9 +6918,18 @@ class PreferencesDialog(Dialog): @type_check_only class Props(Dialog.Props): search_enabled: bool - visible_page: _Gtk4.Widget | None - visible_page_name: str | None - accessible_role: _Gtk4.AccessibleRole + @property + def visible_page(self) -> _Gtk4.Widget | None: ... + @visible_page.setter + def visible_page(self, value: _Gtk4.Widget) -> None: ... + @property + def visible_page_name(self) -> str | None: ... + @visible_page_name.setter + def visible_page_name(self, value: str) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -6645,7 +6941,7 @@ class PreferencesDialog(Dialog): search_enabled: bool = ..., visible_page: _Gtk4.Widget = ..., visible_page_name: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_close: bool = ..., child: _Gtk4.Widget | None = ..., content_height: int = ..., @@ -6653,16 +6949,16 @@ class PreferencesDialog(Dialog): default_widget: _Gtk4.Widget | None = ..., focus_widget: _Gtk4.Widget | None = ..., follows_content_size: bool = ..., - presentation_mode: DialogPresentationMode = ..., + presentation_mode: _DialogPresentationModeValueType = ..., title: str = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6675,12 +6971,12 @@ class PreferencesDialog(Dialog): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6791,7 +7087,10 @@ class PreferencesGroup(_Gtk4.Widget): header_suffix: _Gtk4.Widget | None separate_rows: bool title: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -6804,15 +7103,15 @@ class PreferencesGroup(_Gtk4.Widget): header_suffix: _Gtk4.Widget | None = ..., separate_rows: bool = ..., title: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6825,12 +7124,12 @@ class PreferencesGroup(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6954,7 +7253,10 @@ class PreferencesPage(_Gtk4.Widget): name: str | None title: str use_underline: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -6970,15 +7272,15 @@ class PreferencesPage(_Gtk4.Widget): name: str | None = ..., title: str = ..., use_underline: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6990,12 +7292,12 @@ class PreferencesPage(_Gtk4.Widget): margin_start: int = ..., margin_top: int = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7122,9 +7424,15 @@ class PreferencesRow(_Gtk4.ListBoxRow): title_selectable: bool use_markup: bool use_underline: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -7137,7 +7445,7 @@ class PreferencesRow(_Gtk4.ListBoxRow): title_selectable: bool = ..., use_markup: bool = ..., use_underline: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., activatable: bool = ..., @@ -7146,11 +7454,11 @@ class PreferencesRow(_Gtk4.ListBoxRow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -7163,12 +7471,12 @@ class PreferencesRow(_Gtk4.ListBoxRow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7316,9 +7624,18 @@ class PreferencesWindow(Window): class Props(Window.Props): can_navigate_back: bool search_enabled: bool - visible_page: _Gtk4.Widget | None - visible_page_name: str | None - accessible_role: _Gtk4.AccessibleRole + @property + def visible_page(self) -> _Gtk4.Widget | None: ... + @visible_page.setter + def visible_page(self, value: _Gtk4.Widget) -> None: ... + @property + def visible_page_name(self) -> str | None: ... + @visible_page_name.setter + def visible_page_name(self, value: str) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -7331,7 +7648,7 @@ class PreferencesWindow(Window): search_enabled: bool = ..., visible_page: _Gtk4.Widget = ..., visible_page_name: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., adaptive_preview: bool = ..., content: _Gtk4.Widget | None = ..., application: _Gtk4.Application | None = ..., @@ -7346,7 +7663,7 @@ class PreferencesWindow(Window): focus_visible: bool = ..., focus_widget: _Gtk4.Widget | None = ..., fullscreened: bool = ..., - gravity: _Gtk4.WindowGravity = ..., + gravity: _Gtk4._WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -7361,11 +7678,11 @@ class PreferencesWindow(Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -7378,12 +7695,12 @@ class PreferencesWindow(Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7449,7 +7766,10 @@ class PropertyAnimationTarget(AnimationTarget): @property def props(self) -> Props: ... def __init__( - self, *, object: GObject.Object = ..., pspec: GObject.ParamSpec = ... + self, + *, + object: GObject.Object | None = ..., + pspec: GObject.ParamSpec | None = ..., ) -> None: ... def get_object(self) -> GObject.Object: ... def get_pspec(self) -> GObject.ParamSpec: ... @@ -7538,7 +7858,10 @@ class ShortcutLabel(_Gtk4.Widget): class Props(_Gtk4.Widget.Props): accelerator: str disabled_text: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -7547,15 +7870,15 @@ class ShortcutLabel(_Gtk4.Widget): *, accelerator: str = ..., disabled_text: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -7568,12 +7891,12 @@ class ShortcutLabel(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7681,14 +8004,17 @@ class ShortcutsDialog(Dialog): """ @type_check_only class Props(Dialog.Props): - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_close: bool = ..., child: _Gtk4.Widget | None = ..., content_height: int = ..., @@ -7696,16 +8022,16 @@ class ShortcutsDialog(Dialog): default_widget: _Gtk4.Widget | None = ..., focus_widget: _Gtk4.Widget | None = ..., follows_content_size: bool = ..., - presentation_mode: DialogPresentationMode = ..., + presentation_mode: _DialogPresentationModeValueType = ..., title: str = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -7718,12 +8044,12 @@ class ShortcutsDialog(Dialog): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7770,7 +8096,10 @@ class ShortcutsItem(GObject.Object): class Props(GObject.Object.Props): accelerator: str action_name: str - direction: _Gtk4.TextDirection + @property + def direction(self) -> _Gtk4.TextDirection: ... + @direction.setter + def direction(self, value: _Gtk4._TextDirectionValueType) -> None: ... subtitle: str title: str @@ -7781,7 +8110,7 @@ class ShortcutsItem(GObject.Object): *, accelerator: str = ..., action_name: str = ..., - direction: _Gtk4.TextDirection = ..., + direction: _Gtk4._TextDirectionValueType = ..., subtitle: str = ..., title: str = ..., ) -> None: ... @@ -7796,7 +8125,7 @@ class ShortcutsItem(GObject.Object): def new_from_action(cls, title: str, action_name: str) -> ShortcutsItem: ... def set_accelerator(self, accelerator: str) -> None: ... def set_action_name(self, action_name: str) -> None: ... - def set_direction(self, direction: _Gtk4.TextDirection) -> None: ... + def set_direction(self, direction: _Gtk4._TextDirectionValueType) -> None: ... def set_subtitle(self, subtitle: str) -> None: ... def set_title(self, title: str) -> None: ... @@ -7969,17 +8298,31 @@ class SpinRow(ActionRow, _Gtk4.Editable): """ @type_check_only class Props(ActionRow.Props): - adjustment: _Gtk4.Adjustment | None + @property + def adjustment(self) -> _Gtk4.Adjustment: ... + @adjustment.setter + def adjustment(self, value: _Gtk4.Adjustment | None) -> None: ... climb_rate: float digits: int numeric: bool snap_to_ticks: bool - update_policy: _Gtk4.SpinButtonUpdatePolicy + @property + def update_policy(self) -> _Gtk4.SpinButtonUpdatePolicy: ... + @update_policy.setter + def update_policy( + self, value: _Gtk4._SpinButtonUpdatePolicyValueType + ) -> None: ... value: float wrap: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def cursor_position(self) -> int: ... editable: bool @@ -8001,10 +8344,10 @@ class SpinRow(ActionRow, _Gtk4.Editable): digits: int = ..., numeric: bool = ..., snap_to_ticks: bool = ..., - update_policy: _Gtk4.SpinButtonUpdatePolicy = ..., + update_policy: _Gtk4._SpinButtonUpdatePolicyValueType = ..., value: float = ..., wrap: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., editable: bool = ..., @@ -8029,11 +8372,11 @@ class SpinRow(ActionRow, _Gtk4.Editable): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8046,12 +8389,12 @@ class SpinRow(ActionRow, _Gtk4.Editable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8080,7 +8423,9 @@ class SpinRow(ActionRow, _Gtk4.Editable): def set_numeric(self, numeric: bool) -> None: ... def set_range(self, min: float, max: float) -> None: ... def set_snap_to_ticks(self, snap_to_ticks: bool) -> None: ... - def set_update_policy(self, policy: _Gtk4.SpinButtonUpdatePolicy) -> None: ... + def set_update_policy( + self, policy: _Gtk4._SpinButtonUpdatePolicyValueType + ) -> None: ... def set_value(self, value: float) -> None: ... def set_wrap(self, wrap: bool) -> None: ... def update(self) -> None: ... @@ -8164,22 +8509,25 @@ class Spinner(_Gtk4.Widget): """ @type_check_only class Props(_Gtk4.Widget.Props): - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8192,12 +8540,12 @@ class Spinner(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8346,16 +8694,31 @@ class SplitButton(_Gtk4.Widget, _Gtk4.Actionable): class Props(_Gtk4.Widget.Props): can_shrink: bool child: _Gtk4.Widget | None - direction: _Gtk4.ArrowType + @property + def direction(self) -> _Gtk4.ArrowType: ... + @direction.setter + def direction(self, value: _Gtk4._ArrowTypeValueType) -> None: ... dropdown_tooltip: str - icon_name: str | None - label: str | None + @property + def icon_name(self) -> str | None: ... + @icon_name.setter + def icon_name(self, value: str) -> None: ... + @property + def label(self) -> str | None: ... + @label.setter + def label(self, value: str) -> None: ... menu_model: Gio.MenuModel | None popover: _Gtk4.Popover | None use_underline: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -8364,24 +8727,24 @@ class SplitButton(_Gtk4.Widget, _Gtk4.Actionable): *, can_shrink: bool = ..., child: _Gtk4.Widget | None = ..., - direction: _Gtk4.ArrowType = ..., + direction: _Gtk4._ArrowTypeValueType = ..., dropdown_tooltip: str = ..., icon_name: str = ..., label: str = ..., menu_model: Gio.MenuModel | None = ..., popover: _Gtk4.Popover | None = ..., use_underline: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8394,12 +8757,12 @@ class SplitButton(_Gtk4.Widget, _Gtk4.Actionable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8420,7 +8783,7 @@ class SplitButton(_Gtk4.Widget, _Gtk4.Actionable): def popup(self) -> None: ... def set_can_shrink(self, can_shrink: bool) -> None: ... def set_child(self, child: _Gtk4.Widget | None = None) -> None: ... - def set_direction(self, direction: _Gtk4.ArrowType) -> None: ... + def set_direction(self, direction: _Gtk4._ArrowTypeValueType) -> None: ... def set_dropdown_tooltip(self, tooltip: str) -> None: ... def set_icon_name(self, icon_name: str) -> None: ... def set_label(self, label: str) -> None: ... @@ -8499,7 +8862,7 @@ class SpringAnimation(Animation): value_to: float = ..., follow_enable_animations_setting: bool = ..., target: AnimationTarget = ..., - widget: _Gtk4.Widget = ..., + widget: _Gtk4.Widget | None = ..., ) -> None: ... def calculate_value(self, time: int) -> float: ... def calculate_velocity(self, time: int) -> float: ... @@ -8640,17 +9003,31 @@ class Squeezer(_Gtk4.Widget, _Gtk4.Orientable): interpolate_size: bool @property def pages(self) -> _Gtk4.SelectionModel: ... - switch_threshold_policy: FoldThresholdPolicy + @property + def switch_threshold_policy(self) -> FoldThresholdPolicy: ... + @switch_threshold_policy.setter + def switch_threshold_policy( + self, value: _FoldThresholdPolicyValueType + ) -> None: ... transition_duration: int @property def transition_running(self) -> bool: ... - transition_type: SqueezerTransitionType + @property + def transition_type(self) -> SqueezerTransitionType: ... + @transition_type.setter + def transition_type(self, value: _SqueezerTransitionTypeValueType) -> None: ... @property def visible_child(self) -> _Gtk4.Widget | None: ... xalign: float yalign: float - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -8660,21 +9037,21 @@ class Squeezer(_Gtk4.Widget, _Gtk4.Orientable): allow_none: bool = ..., homogeneous: bool = ..., interpolate_size: bool = ..., - switch_threshold_policy: FoldThresholdPolicy = ..., + switch_threshold_policy: _FoldThresholdPolicyValueType = ..., transition_duration: int = ..., - transition_type: SqueezerTransitionType = ..., + transition_type: _SqueezerTransitionTypeValueType = ..., xalign: float = ..., yalign: float = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8687,12 +9064,12 @@ class Squeezer(_Gtk4.Widget, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8717,9 +9094,13 @@ class Squeezer(_Gtk4.Widget, _Gtk4.Orientable): def set_allow_none(self, allow_none: bool) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_interpolate_size(self, interpolate_size: bool) -> None: ... - def set_switch_threshold_policy(self, policy: FoldThresholdPolicy) -> None: ... + def set_switch_threshold_policy( + self, policy: _FoldThresholdPolicyValueType + ) -> None: ... def set_transition_duration(self, duration: int) -> None: ... - def set_transition_type(self, transition: SqueezerTransitionType) -> None: ... + def set_transition_type( + self, transition: _SqueezerTransitionTypeValueType + ) -> None: ... def set_xalign(self, xalign: float) -> None: ... def set_yalign(self, yalign: float) -> None: ... @@ -8759,7 +9140,9 @@ class SqueezerPage(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, child: _Gtk4.Widget = ..., enabled: bool = ...) -> None: ... + def __init__( + self, *, child: _Gtk4.Widget | None = ..., enabled: bool = ... + ) -> None: ... def get_child(self) -> _Gtk4.Widget: ... def get_enabled(self) -> bool: ... def set_enabled(self, enabled: bool) -> None: ... @@ -8855,7 +9238,10 @@ class StatusPage(_Gtk4.Widget): icon_name: str | None paintable: _Gdk4.Paintable | None title: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -8867,15 +9253,15 @@ class StatusPage(_Gtk4.Widget): icon_name: str | None = ..., paintable: _Gdk4.Paintable | None = ..., title: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8888,12 +9274,12 @@ class StatusPage(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8954,7 +9340,10 @@ class StyleManager(GObject.Object): def accent_color(self) -> AccentColor: ... @property def accent_color_rgba(self) -> _Gdk4.RGBA: ... - color_scheme: ColorScheme + @property + def color_scheme(self) -> ColorScheme: ... + @color_scheme.setter + def color_scheme(self, value: _ColorSchemeValueType) -> None: ... @property def dark(self) -> bool: ... @property @@ -8973,7 +9362,10 @@ class StyleManager(GObject.Object): @property def props(self) -> Props: ... def __init__( - self, *, color_scheme: ColorScheme = ..., display: _Gdk4.Display = ... + self, + *, + color_scheme: _ColorSchemeValueType = ..., + display: _Gdk4.Display | None = ..., ) -> None: ... def get_accent_color(self) -> AccentColor: ... def get_accent_color_rgba(self) -> _Gdk4.RGBA: ... @@ -8989,7 +9381,7 @@ class StyleManager(GObject.Object): def get_monospace_font_name(self) -> str: ... def get_system_supports_accent_colors(self) -> bool: ... def get_system_supports_color_schemes(self) -> bool: ... - def set_color_scheme(self, color_scheme: ColorScheme) -> None: ... + def set_color_scheme(self, color_scheme: _ColorSchemeValueType) -> None: ... class StyleManagerClass(_gi.Struct): """ @@ -9043,7 +9435,10 @@ class SwipeTracker(GObject.Object, _Gtk4.Orientable): @property def swipeable(self) -> Swipeable: ... upper_overshoot: bool - orientation: _Gtk4.Orientation + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -9056,9 +9451,9 @@ class SwipeTracker(GObject.Object, _Gtk4.Orientable): enabled: bool = ..., lower_overshoot: bool = ..., reversed: bool = ..., - swipeable: Swipeable = ..., + swipeable: Swipeable | None = ..., upper_overshoot: bool = ..., - orientation: _Gtk4.Orientation = ..., + orientation: _Gtk4._OrientationValueType = ..., ) -> None: ... def get_allow_long_swipes(self) -> bool: ... def get_allow_mouse_drag(self) -> bool: ... @@ -9102,7 +9497,7 @@ class Swipeable(GObject.GInterface, Protocol): def get_progress(self) -> float: ... def get_snap_points(self) -> list[float]: ... def get_swipe_area( - self, navigation_direction: NavigationDirection, is_drag: bool + self, navigation_direction: _NavigationDirectionValueType, is_drag: bool ) -> _Gdk4.Rectangle: ... class SwipeableInterface(_gi.Struct): @@ -9126,7 +9521,9 @@ class SwipeableInterface(_gi.Struct): @property def get_swipe_area( self, - ) -> Callable[[Swipeable, NavigationDirection, bool], _Gdk4.Rectangle]: ... + ) -> Callable[ + [Swipeable, _NavigationDirectionValueType, bool], _Gdk4.Rectangle + ]: ... @property def padding(self) -> list[int]: ... @@ -9227,9 +9624,15 @@ class SwitchRow(ActionRow): @type_check_only class Props(ActionRow.Props): active: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -9237,7 +9640,7 @@ class SwitchRow(ActionRow): self, *, active: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., activatable_widget: _Gtk4.Widget | None = ..., @@ -9256,11 +9659,11 @@ class SwitchRow(ActionRow): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -9273,12 +9676,12 @@ class SwitchRow(ActionRow): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9397,7 +9800,10 @@ class TabBar(_Gtk4.Widget): @property def tabs_revealed(self) -> bool: ... view: TabView | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -9411,15 +9817,15 @@ class TabBar(_Gtk4.Widget): inverted: bool = ..., start_action_widget: _Gtk4.Widget | None = ..., view: TabView | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -9432,12 +9838,12 @@ class TabBar(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9463,7 +9869,9 @@ class TabBar(_Gtk4.Widget): def set_start_action_widget(self, widget: _Gtk4.Widget | None = None) -> None: ... def set_view(self, view: TabView | None = None) -> None: ... def setup_extra_drop_target( - self, actions: _Gdk4.DragAction, types: Sequence[type[Any]] | None = None + self, + actions: _Gdk4._DragActionValueType, + types: Sequence[type[Any]] | None = None, ) -> None: ... class TabBarClass(_gi.Struct): @@ -9553,9 +9961,15 @@ class TabButton(_Gtk4.Widget, _Gtk4.Actionable): @type_check_only class Props(_Gtk4.Widget.Props): view: TabView | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -9563,17 +9977,17 @@ class TabButton(_Gtk4.Widget, _Gtk4.Actionable): self, *, view: TabView | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -9586,12 +10000,12 @@ class TabButton(_Gtk4.Widget, _Gtk4.Actionable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9714,7 +10128,10 @@ class TabOverview(_Gtk4.Widget): show_end_title_buttons: bool show_start_title_buttons: bool view: TabView | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -9731,15 +10148,15 @@ class TabOverview(_Gtk4.Widget): show_end_title_buttons: bool = ..., show_start_title_buttons: bool = ..., view: TabView | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -9752,12 +10169,12 @@ class TabOverview(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9790,7 +10207,9 @@ class TabOverview(_Gtk4.Widget): def set_show_start_title_buttons(self, show_start_title_buttons: bool) -> None: ... def set_view(self, view: TabView | None = None) -> None: ... def setup_extra_drop_target( - self, actions: _Gdk4.DragAction, types: Sequence[type[Any]] | None = None + self, + actions: _Gdk4._DragActionValueType, + types: Sequence[type[Any]] | None = None, ) -> None: ... class TabOverviewClass(_gi.Struct): @@ -9843,7 +10262,10 @@ class TabPage(GObject.Object, _Gtk4.Accessible): indicator_activatable: bool indicator_icon: Gio.Icon | None indicator_tooltip: str - keyword: str | None + @property + def keyword(self) -> str | None: ... + @keyword.setter + def keyword(self, value: str) -> None: ... live_thumbnail: bool loading: bool needs_attention: bool @@ -9856,15 +10278,21 @@ class TabPage(GObject.Object, _Gtk4.Accessible): thumbnail_xalign: float thumbnail_yalign: float title: str - tooltip: str | None - accessible_role: _Gtk4.AccessibleRole + @property + def tooltip(self) -> str | None: ... + @tooltip.setter + def tooltip(self, value: str) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - child: _Gtk4.Widget = ..., + child: _Gtk4.Widget | None = ..., icon: Gio.Icon | None = ..., indicator_activatable: bool = ..., indicator_icon: Gio.Icon | None = ..., @@ -9873,12 +10301,12 @@ class TabPage(GObject.Object, _Gtk4.Accessible): live_thumbnail: bool = ..., loading: bool = ..., needs_attention: bool = ..., - parent: TabPage = ..., + parent: TabPage | None = ..., thumbnail_xalign: float = ..., thumbnail_yalign: float = ..., title: str = ..., tooltip: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., ) -> None: ... def get_child(self) -> _Gtk4.Widget: ... def get_icon(self) -> Gio.Icon | None: ... @@ -10018,9 +10446,18 @@ class TabView(_Gtk4.Widget): def n_pinned_pages(self) -> int: ... @property def pages(self) -> _Gtk4.SelectionModel: ... - selected_page: TabPage | None - shortcuts: TabViewShortcuts - accessible_role: _Gtk4.AccessibleRole + @property + def selected_page(self) -> TabPage | None: ... + @selected_page.setter + def selected_page(self, value: TabPage) -> None: ... + @property + def shortcuts(self) -> TabViewShortcuts: ... + @shortcuts.setter + def shortcuts(self, value: _TabViewShortcutsValueType) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -10030,16 +10467,16 @@ class TabView(_Gtk4.Widget): default_icon: Gio.Icon = ..., menu_model: Gio.MenuModel | None = ..., selected_page: TabPage = ..., - shortcuts: TabViewShortcuts = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + shortcuts: _TabViewShortcutsValueType = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -10052,12 +10489,12 @@ class TabView(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -10066,7 +10503,7 @@ class TabView(_Gtk4.Widget): def add_page( self, child: _Gtk4.Widget, parent: TabPage | None = None ) -> TabPage: ... - def add_shortcuts(self, shortcuts: TabViewShortcuts) -> None: ... + def add_shortcuts(self, shortcuts: _TabViewShortcutsValueType) -> None: ... def append(self, child: _Gtk4.Widget) -> TabPage: ... def append_pinned(self, child: _Gtk4.Widget) -> TabPage: ... def close_other_pages(self, page: TabPage) -> None: ... @@ -10092,7 +10529,7 @@ class TabView(_Gtk4.Widget): def new(cls) -> TabView: ... def prepend(self, child: _Gtk4.Widget) -> TabPage: ... def prepend_pinned(self, child: _Gtk4.Widget) -> TabPage: ... - def remove_shortcuts(self, shortcuts: TabViewShortcuts) -> None: ... + def remove_shortcuts(self, shortcuts: _TabViewShortcutsValueType) -> None: ... def reorder_backward(self, page: TabPage) -> bool: ... def reorder_first(self, page: TabPage) -> bool: ... def reorder_forward(self, page: TabPage) -> bool: ... @@ -10104,7 +10541,7 @@ class TabView(_Gtk4.Widget): def set_menu_model(self, menu_model: Gio.MenuModel | None = None) -> None: ... def set_page_pinned(self, page: TabPage, pinned: bool) -> None: ... def set_selected_page(self, selected_page: TabPage) -> None: ... - def set_shortcuts(self, shortcuts: TabViewShortcuts) -> None: ... + def set_shortcuts(self, shortcuts: _TabViewShortcutsValueType) -> None: ... def transfer_page( self, page: TabPage, other_view: TabView, position: int ) -> None: ... @@ -10157,7 +10594,10 @@ class TimedAnimation(Animation): class Props(Animation.Props): alternate: bool duration: int - easing: Easing + @property + def easing(self) -> Easing: ... + @easing.setter + def easing(self, value: _EasingValueType) -> None: ... repeat_count: int reverse: bool value_from: float @@ -10170,14 +10610,14 @@ class TimedAnimation(Animation): *, alternate: bool = ..., duration: int = ..., - easing: Easing = ..., + easing: _EasingValueType = ..., repeat_count: int = ..., reverse: bool = ..., value_from: float = ..., value_to: float = ..., follow_enable_animations_setting: bool = ..., target: AnimationTarget = ..., - widget: _Gtk4.Widget = ..., + widget: _Gtk4.Widget | None = ..., ) -> None: ... def get_alternate(self) -> bool: ... def get_duration(self) -> int: ... @@ -10197,7 +10637,7 @@ class TimedAnimation(Animation): ) -> TimedAnimation: ... def set_alternate(self, alternate: bool) -> None: ... def set_duration(self, duration: int) -> None: ... - def set_easing(self, easing: Easing) -> None: ... + def set_easing(self, easing: _EasingValueType) -> None: ... def set_repeat_count(self, repeat_count: int) -> None: ... def set_reverse(self, reverse: bool) -> None: ... def set_value_from(self, value: float) -> None: ... @@ -10239,9 +10679,15 @@ class Toast(GObject.Object): action_target: GLib.Variant | None button_label: str | None custom_title: _Gtk4.Widget | None - priority: ToastPriority + @property + def priority(self) -> ToastPriority: ... + @priority.setter + def priority(self, value: _ToastPriorityValueType) -> None: ... timeout: int - title: str | None + @property + def title(self) -> str | None: ... + @title.setter + def title(self, value: str) -> None: ... use_markup: bool @property @@ -10253,7 +10699,7 @@ class Toast(GObject.Object): action_target: GLib.Variant | None = ..., button_label: str | None = ..., custom_title: _Gtk4.Widget | None = ..., - priority: ToastPriority = ..., + priority: _ToastPriorityValueType = ..., timeout: int = ..., title: str = ..., use_markup: bool = ..., @@ -10278,7 +10724,7 @@ class Toast(GObject.Object): def set_detailed_action_name( self, detailed_action_name: str | None = None ) -> None: ... - def set_priority(self, priority: ToastPriority) -> None: ... + def set_priority(self, priority: _ToastPriorityValueType) -> None: ... def set_timeout(self, timeout: int) -> None: ... def set_title(self, title: str) -> None: ... def set_use_markup(self, use_markup: bool) -> None: ... @@ -10366,7 +10812,10 @@ class ToastOverlay(_Gtk4.Widget): @type_check_only class Props(_Gtk4.Widget.Props): child: _Gtk4.Widget | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -10374,15 +10823,15 @@ class ToastOverlay(_Gtk4.Widget): self, *, child: _Gtk4.Widget | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -10395,12 +10844,12 @@ class ToastOverlay(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -10453,7 +10902,10 @@ class Toggle(GObject.Object): enabled: bool icon_name: str | None label: str | None - name: str | None + @property + def name(self) -> str: ... + @name.setter + def name(self, value: str | None) -> None: ... tooltip: str use_underline: bool @@ -10583,8 +11035,14 @@ class ToggleGroup(_Gtk4.Widget, _Gtk4.Orientable): def n_toggles(self) -> int: ... @property def toggles(self) -> _Gtk4.SelectionModel: ... - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -10595,16 +11053,16 @@ class ToggleGroup(_Gtk4.Widget, _Gtk4.Orientable): active_name: str | None = ..., can_shrink: bool = ..., homogeneous: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -10617,12 +11075,12 @@ class ToggleGroup(_Gtk4.Widget, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -10738,7 +11196,10 @@ class ToolbarView(_Gtk4.Widget): class Props(_Gtk4.Widget.Props): @property def bottom_bar_height(self) -> int: ... - bottom_bar_style: ToolbarStyle + @property + def bottom_bar_style(self) -> ToolbarStyle: ... + @bottom_bar_style.setter + def bottom_bar_style(self, value: _ToolbarStyleValueType) -> None: ... content: _Gtk4.Widget | None extend_content_to_bottom_edge: bool extend_content_to_top_edge: bool @@ -10746,30 +11207,36 @@ class ToolbarView(_Gtk4.Widget): reveal_top_bars: bool @property def top_bar_height(self) -> int: ... - top_bar_style: ToolbarStyle - accessible_role: _Gtk4.AccessibleRole + @property + def top_bar_style(self) -> ToolbarStyle: ... + @top_bar_style.setter + def top_bar_style(self, value: _ToolbarStyleValueType) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - bottom_bar_style: ToolbarStyle = ..., + bottom_bar_style: _ToolbarStyleValueType = ..., content: _Gtk4.Widget | None = ..., extend_content_to_bottom_edge: bool = ..., extend_content_to_top_edge: bool = ..., reveal_bottom_bars: bool = ..., reveal_top_bars: bool = ..., - top_bar_style: ToolbarStyle = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + top_bar_style: _ToolbarStyleValueType = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -10782,12 +11249,12 @@ class ToolbarView(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -10807,13 +11274,13 @@ class ToolbarView(_Gtk4.Widget): @classmethod def new(cls) -> ToolbarView: ... def remove(self, widget: _Gtk4.Widget) -> None: ... - def set_bottom_bar_style(self, style: ToolbarStyle) -> None: ... + def set_bottom_bar_style(self, style: _ToolbarStyleValueType) -> None: ... def set_content(self, content: _Gtk4.Widget | None = None) -> None: ... def set_extend_content_to_bottom_edge(self, extend: bool) -> None: ... def set_extend_content_to_top_edge(self, extend: bool) -> None: ... def set_reveal_bottom_bars(self, reveal: bool) -> None: ... def set_reveal_top_bars(self, reveal: bool) -> None: ... - def set_top_bar_style(self, style: ToolbarStyle) -> None: ... + def set_top_bar_style(self, style: _ToolbarStyleValueType) -> None: ... class ToolbarViewClass(_gi.Struct): """ @@ -10912,9 +11379,18 @@ class ViewStack(_Gtk4.Widget): @property def transition_running(self) -> bool: ... vhomogeneous: bool - visible_child: _Gtk4.Widget | None - visible_child_name: str | None - accessible_role: _Gtk4.AccessibleRole + @property + def visible_child(self) -> _Gtk4.Widget | None: ... + @visible_child.setter + def visible_child(self, value: _Gtk4.Widget) -> None: ... + @property + def visible_child_name(self) -> str | None: ... + @visible_child_name.setter + def visible_child_name(self, value: str) -> None: ... + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -10927,15 +11403,15 @@ class ViewStack(_Gtk4.Widget): vhomogeneous: bool = ..., visible_child: _Gtk4.Widget = ..., visible_child_name: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -10948,12 +11424,12 @@ class ViewStack(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11034,7 +11510,10 @@ class ViewStackPage(GObject.Object, _Gtk4.Accessible): title: str | None use_underline: bool visible: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -11042,14 +11521,14 @@ class ViewStackPage(GObject.Object, _Gtk4.Accessible): self, *, badge_number: int = ..., - child: _Gtk4.Widget = ..., + child: _Gtk4.Widget | None = ..., icon_name: str | None = ..., name: str | None = ..., needs_attention: bool = ..., title: str | None = ..., use_underline: bool = ..., visible: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., ) -> None: ... def get_badge_number(self) -> int: ... def get_child(self) -> _Gtk4.Widget: ... @@ -11102,7 +11581,10 @@ class ViewStackPages(GObject.Object, Gio.ListModel, _Gtk4.SelectionModel): """ @type_check_only class Props(GObject.Object.Props): - selected_page: ViewStackPage | None + @property + def selected_page(self) -> ViewStackPage | None: ... + @selected_page.setter + def selected_page(self, value: ViewStackPage) -> None: ... @property def props(self) -> Props: ... @@ -11193,26 +11675,32 @@ class ViewSwitcher(_Gtk4.Widget): """ @type_check_only class Props(_Gtk4.Widget.Props): - policy: ViewSwitcherPolicy + @property + def policy(self) -> ViewSwitcherPolicy: ... + @policy.setter + def policy(self, value: _ViewSwitcherPolicyValueType) -> None: ... stack: ViewStack | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - policy: ViewSwitcherPolicy = ..., + policy: _ViewSwitcherPolicyValueType = ..., stack: ViewStack | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11225,12 +11713,12 @@ class ViewSwitcher(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11240,7 +11728,7 @@ class ViewSwitcher(_Gtk4.Widget): def get_stack(self) -> ViewStack | None: ... @classmethod def new(cls) -> ViewSwitcher: ... - def set_policy(self, policy: ViewSwitcherPolicy) -> None: ... + def set_policy(self, policy: _ViewSwitcherPolicyValueType) -> None: ... def set_stack(self, stack: ViewStack | None = None) -> None: ... class ViewSwitcherBar(_Gtk4.Widget): @@ -11317,7 +11805,10 @@ class ViewSwitcherBar(_Gtk4.Widget): class Props(_Gtk4.Widget.Props): reveal: bool stack: ViewStack | None - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -11326,15 +11817,15 @@ class ViewSwitcherBar(_Gtk4.Widget): *, reveal: bool = ..., stack: ViewStack | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11347,12 +11838,12 @@ class ViewSwitcherBar(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11468,7 +11959,10 @@ class ViewSwitcherTitle(_Gtk4.Widget): @property def title_visible(self) -> bool: ... view_switcher_enabled: bool - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -11479,15 +11973,15 @@ class ViewSwitcherTitle(_Gtk4.Widget): subtitle: str = ..., title: str = ..., view_switcher_enabled: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11500,12 +11994,12 @@ class ViewSwitcherTitle(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11652,7 +12146,10 @@ class Window(_Gtk4.Window): def dialogs(self) -> Gio.ListModel: ... @property def visible_dialog(self) -> Dialog | None: ... - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -11663,7 +12160,7 @@ class Window(_Gtk4.Window): *, adaptive_preview: bool = ..., content: _Gtk4.Widget | None = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., application: _Gtk4.Application | None = ..., child: _Gtk4.Widget | None = ..., decorated: bool = ..., @@ -11676,7 +12173,7 @@ class Window(_Gtk4.Window): focus_visible: bool = ..., focus_widget: _Gtk4.Widget | None = ..., fullscreened: bool = ..., - gravity: _Gtk4.WindowGravity = ..., + gravity: _Gtk4._WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -11691,11 +12188,11 @@ class Window(_Gtk4.Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11708,12 +12205,12 @@ class Window(_Gtk4.Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11817,7 +12314,10 @@ class WindowTitle(_Gtk4.Widget): class Props(_Gtk4.Widget.Props): subtitle: str title: str - accessible_role: _Gtk4.AccessibleRole + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -11826,15 +12326,15 @@ class WindowTitle(_Gtk4.Widget): *, subtitle: str = ..., title: str = ..., - accessible_role: _Gtk4.AccessibleRole = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11847,12 +12347,12 @@ class WindowTitle(_Gtk4.Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11961,19 +12461,43 @@ class WrapBox(_Gtk4.Widget, _Gtk4.Orientable): class Props(_Gtk4.Widget.Props): align: float child_spacing: int - child_spacing_unit: LengthUnit - justify: JustifyMode + @property + def child_spacing_unit(self) -> LengthUnit: ... + @child_spacing_unit.setter + def child_spacing_unit(self, value: _LengthUnitValueType) -> None: ... + @property + def justify(self) -> JustifyMode: ... + @justify.setter + def justify(self, value: _JustifyModeValueType) -> None: ... justify_last_line: bool line_homogeneous: bool line_spacing: int - line_spacing_unit: LengthUnit + @property + def line_spacing_unit(self) -> LengthUnit: ... + @line_spacing_unit.setter + def line_spacing_unit(self, value: _LengthUnitValueType) -> None: ... natural_line_length: int - natural_line_length_unit: LengthUnit - pack_direction: PackDirection - wrap_policy: WrapPolicy + @property + def natural_line_length_unit(self) -> LengthUnit: ... + @natural_line_length_unit.setter + def natural_line_length_unit(self, value: _LengthUnitValueType) -> None: ... + @property + def pack_direction(self) -> PackDirection: ... + @pack_direction.setter + def pack_direction(self, value: _PackDirectionValueType) -> None: ... + @property + def wrap_policy(self) -> WrapPolicy: ... + @wrap_policy.setter + def wrap_policy(self, value: _WrapPolicyValueType) -> None: ... wrap_reverse: bool - accessible_role: _Gtk4.AccessibleRole - orientation: _Gtk4.Orientation + @property + def accessible_role(self) -> _Gtk4.AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _Gtk4._AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -11982,27 +12506,27 @@ class WrapBox(_Gtk4.Widget, _Gtk4.Orientable): *, align: float = ..., child_spacing: int = ..., - child_spacing_unit: LengthUnit = ..., - justify: JustifyMode = ..., + child_spacing_unit: _LengthUnitValueType = ..., + justify: _JustifyModeValueType = ..., justify_last_line: bool = ..., line_homogeneous: bool = ..., line_spacing: int = ..., - line_spacing_unit: LengthUnit = ..., + line_spacing_unit: _LengthUnitValueType = ..., natural_line_length: int = ..., - natural_line_length_unit: LengthUnit = ..., - pack_direction: PackDirection = ..., - wrap_policy: WrapPolicy = ..., + natural_line_length_unit: _LengthUnitValueType = ..., + pack_direction: _PackDirectionValueType = ..., + wrap_policy: _WrapPolicyValueType = ..., wrap_reverse: bool = ..., - accessible_role: _Gtk4.AccessibleRole = ..., - orientation: _Gtk4.Orientation = ..., + accessible_role: _Gtk4._AccessibleRoleValueType = ..., + orientation: _Gtk4._OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: _Gtk4.Align = ..., + halign: _Gtk4._AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -12015,12 +12539,12 @@ class WrapBox(_Gtk4.Widget, _Gtk4.Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: _Gtk4.Overflow = ..., + overflow: _Gtk4._OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: _Gtk4.Align = ..., + valign: _Gtk4._AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12053,16 +12577,16 @@ class WrapBox(_Gtk4.Widget, _Gtk4.Orientable): ) -> None: ... def set_align(self, align: float) -> None: ... def set_child_spacing(self, child_spacing: int) -> None: ... - def set_child_spacing_unit(self, unit: LengthUnit) -> None: ... - def set_justify(self, justify: JustifyMode) -> None: ... + def set_child_spacing_unit(self, unit: _LengthUnitValueType) -> None: ... + def set_justify(self, justify: _JustifyModeValueType) -> None: ... def set_justify_last_line(self, justify_last_line: bool) -> None: ... def set_line_homogeneous(self, homogeneous: bool) -> None: ... def set_line_spacing(self, line_spacing: int) -> None: ... - def set_line_spacing_unit(self, unit: LengthUnit) -> None: ... + def set_line_spacing_unit(self, unit: _LengthUnitValueType) -> None: ... def set_natural_line_length(self, natural_line_length: int) -> None: ... - def set_natural_line_length_unit(self, unit: LengthUnit) -> None: ... - def set_pack_direction(self, pack_direction: PackDirection) -> None: ... - def set_wrap_policy(self, wrap_policy: WrapPolicy) -> None: ... + def set_natural_line_length_unit(self, unit: _LengthUnitValueType) -> None: ... + def set_pack_direction(self, pack_direction: _PackDirectionValueType) -> None: ... + def set_wrap_policy(self, wrap_policy: _WrapPolicyValueType) -> None: ... def set_wrap_reverse(self, wrap_reverse: bool) -> None: ... class WrapBoxClass(_gi.Struct): @@ -12109,18 +12633,39 @@ class WrapLayout(_Gtk4.LayoutManager, _Gtk4.Orientable): class Props(_Gtk4.LayoutManager.Props): align: float child_spacing: int - child_spacing_unit: LengthUnit - justify: JustifyMode + @property + def child_spacing_unit(self) -> LengthUnit: ... + @child_spacing_unit.setter + def child_spacing_unit(self, value: _LengthUnitValueType) -> None: ... + @property + def justify(self) -> JustifyMode: ... + @justify.setter + def justify(self, value: _JustifyModeValueType) -> None: ... justify_last_line: bool line_homogeneous: bool line_spacing: int - line_spacing_unit: LengthUnit + @property + def line_spacing_unit(self) -> LengthUnit: ... + @line_spacing_unit.setter + def line_spacing_unit(self, value: _LengthUnitValueType) -> None: ... natural_line_length: int - natural_line_length_unit: LengthUnit - pack_direction: PackDirection - wrap_policy: WrapPolicy + @property + def natural_line_length_unit(self) -> LengthUnit: ... + @natural_line_length_unit.setter + def natural_line_length_unit(self, value: _LengthUnitValueType) -> None: ... + @property + def pack_direction(self) -> PackDirection: ... + @pack_direction.setter + def pack_direction(self, value: _PackDirectionValueType) -> None: ... + @property + def wrap_policy(self) -> WrapPolicy: ... + @wrap_policy.setter + def wrap_policy(self, value: _WrapPolicyValueType) -> None: ... wrap_reverse: bool - orientation: _Gtk4.Orientation + @property + def orientation(self) -> _Gtk4.Orientation: ... + @orientation.setter + def orientation(self, value: _Gtk4._OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -12129,18 +12674,18 @@ class WrapLayout(_Gtk4.LayoutManager, _Gtk4.Orientable): *, align: float = ..., child_spacing: int = ..., - child_spacing_unit: LengthUnit = ..., - justify: JustifyMode = ..., + child_spacing_unit: _LengthUnitValueType = ..., + justify: _JustifyModeValueType = ..., justify_last_line: bool = ..., line_homogeneous: bool = ..., line_spacing: int = ..., - line_spacing_unit: LengthUnit = ..., + line_spacing_unit: _LengthUnitValueType = ..., natural_line_length: int = ..., - natural_line_length_unit: LengthUnit = ..., - pack_direction: PackDirection = ..., - wrap_policy: WrapPolicy = ..., + natural_line_length_unit: _LengthUnitValueType = ..., + pack_direction: _PackDirectionValueType = ..., + wrap_policy: _WrapPolicyValueType = ..., wrap_reverse: bool = ..., - orientation: _Gtk4.Orientation = ..., + orientation: _Gtk4._OrientationValueType = ..., ) -> None: ... def get_align(self) -> float: ... def get_child_spacing(self) -> int: ... @@ -12159,16 +12704,16 @@ class WrapLayout(_Gtk4.LayoutManager, _Gtk4.Orientable): def new(cls) -> WrapLayout: ... def set_align(self, align: float) -> None: ... def set_child_spacing(self, child_spacing: int) -> None: ... - def set_child_spacing_unit(self, unit: LengthUnit) -> None: ... - def set_justify(self, justify: JustifyMode) -> None: ... + def set_child_spacing_unit(self, unit: _LengthUnitValueType) -> None: ... + def set_justify(self, justify: _JustifyModeValueType) -> None: ... def set_justify_last_line(self, justify_last_line: bool) -> None: ... def set_line_homogeneous(self, homogeneous: bool) -> None: ... def set_line_spacing(self, line_spacing: int) -> None: ... - def set_line_spacing_unit(self, unit: LengthUnit) -> None: ... + def set_line_spacing_unit(self, unit: _LengthUnitValueType) -> None: ... def set_natural_line_length(self, natural_line_length: int) -> None: ... - def set_natural_line_length_unit(self, unit: LengthUnit) -> None: ... - def set_pack_direction(self, pack_direction: PackDirection) -> None: ... - def set_wrap_policy(self, wrap_policy: WrapPolicy) -> None: ... + def set_natural_line_length_unit(self, unit: _LengthUnitValueType) -> None: ... + def set_pack_direction(self, pack_direction: _PackDirectionValueType) -> None: ... + def set_wrap_policy(self, wrap_policy: _WrapPolicyValueType) -> None: ... def set_wrap_reverse(self, wrap_reverse: bool) -> None: ... class WrapLayoutClass(_gi.Struct): @@ -12198,6 +12743,42 @@ class TabViewShortcuts(GObject.GFlags): CONTROL_TAB = 1 NONE = 0 +_TabViewShortcutsLiteralType: TypeAlias = Literal[ + "ADW_TAB_VIEW_SHORTCUT_ALL_SHORTCUTS", + "ADW_TAB_VIEW_SHORTCUT_ALT_DIGITS", + "ADW_TAB_VIEW_SHORTCUT_ALT_ZERO", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_END", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_HOME", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_PAGE_DOWN", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_PAGE_UP", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_END", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_HOME", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_PAGE_DOWN", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_PAGE_UP", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_SHIFT_TAB", + "ADW_TAB_VIEW_SHORTCUT_CONTROL_TAB", + "ADW_TAB_VIEW_SHORTCUT_NONE", + "all-shortcuts", + "alt-digits", + "alt-zero", + "control-end", + "control-home", + "control-page-down", + "control-page-up", + "control-shift-end", + "control-shift-home", + "control-shift-page-down", + "control-shift-page-up", + "control-shift-tab", + "control-tab", + "none", +] +_TabViewShortcutsValueType: TypeAlias = ( + TabViewShortcuts + | _TabViewShortcutsLiteralType + | tuple[_TabViewShortcutsLiteralType, ...] +) + class AccentColor(GObject.GEnum): BLUE = 0 GREEN = 2 @@ -12209,9 +12790,31 @@ class AccentColor(GObject.GEnum): TEAL = 1 YELLOW = 3 @staticmethod - def to_rgba(self: AccentColor) -> _Gdk4.RGBA: ... + def to_rgba(self: _AccentColorValueType) -> _Gdk4.RGBA: ... @staticmethod - def to_standalone_rgba(self: AccentColor, dark: bool) -> _Gdk4.RGBA: ... + def to_standalone_rgba(self: _AccentColorValueType, dark: bool) -> _Gdk4.RGBA: ... + +_AccentColorLiteralType: TypeAlias = Literal[ + "ADW_ACCENT_COLOR_BLUE", + "ADW_ACCENT_COLOR_GREEN", + "ADW_ACCENT_COLOR_ORANGE", + "ADW_ACCENT_COLOR_PINK", + "ADW_ACCENT_COLOR_PURPLE", + "ADW_ACCENT_COLOR_RED", + "ADW_ACCENT_COLOR_SLATE", + "ADW_ACCENT_COLOR_TEAL", + "ADW_ACCENT_COLOR_YELLOW", + "blue", + "green", + "orange", + "pink", + "purple", + "red", + "slate", + "teal", + "yellow", +] +_AccentColorValueType: TypeAlias = AccentColor | _AccentColorLiteralType class AnimationState(GObject.GEnum): FINISHED = 3 @@ -12219,24 +12822,72 @@ class AnimationState(GObject.GEnum): PAUSED = 1 PLAYING = 2 +_AnimationStateLiteralType: TypeAlias = Literal[ + "ADW_ANIMATION_FINISHED", + "ADW_ANIMATION_IDLE", + "ADW_ANIMATION_PAUSED", + "ADW_ANIMATION_PLAYING", + "finished", + "idle", + "paused", + "playing", +] +_AnimationStateValueType: TypeAlias = AnimationState | _AnimationStateLiteralType + class BannerButtonStyle(GObject.GEnum): DEFAULT = 0 SUGGESTED = 1 +_BannerButtonStyleLiteralType: TypeAlias = Literal[ + "ADW_BANNER_BUTTON_DEFAULT", "ADW_BANNER_BUTTON_SUGGESTED", "default", "suggested" +] +_BannerButtonStyleValueType: TypeAlias = ( + BannerButtonStyle | _BannerButtonStyleLiteralType +) + class BreakpointConditionLengthType(GObject.GEnum): MAX_HEIGHT = 3 MAX_WIDTH = 1 MIN_HEIGHT = 2 MIN_WIDTH = 0 +_BreakpointConditionLengthTypeLiteralType: TypeAlias = Literal[ + "ADW_BREAKPOINT_CONDITION_MAX_HEIGHT", + "ADW_BREAKPOINT_CONDITION_MAX_WIDTH", + "ADW_BREAKPOINT_CONDITION_MIN_HEIGHT", + "ADW_BREAKPOINT_CONDITION_MIN_WIDTH", + "max-height", + "max-width", + "min-height", + "min-width", +] +_BreakpointConditionLengthTypeValueType: TypeAlias = ( + BreakpointConditionLengthType | _BreakpointConditionLengthTypeLiteralType +) + class BreakpointConditionRatioType(GObject.GEnum): MAX_ASPECT_RATIO = 1 MIN_ASPECT_RATIO = 0 +_BreakpointConditionRatioTypeLiteralType: TypeAlias = Literal[ + "ADW_BREAKPOINT_CONDITION_MAX_ASPECT_RATIO", + "ADW_BREAKPOINT_CONDITION_MIN_ASPECT_RATIO", + "max-aspect-ratio", + "min-aspect-ratio", +] +_BreakpointConditionRatioTypeValueType: TypeAlias = ( + BreakpointConditionRatioType | _BreakpointConditionRatioTypeLiteralType +) + class CenteringPolicy(GObject.GEnum): LOOSE = 0 STRICT = 1 +_CenteringPolicyLiteralType: TypeAlias = Literal[ + "ADW_CENTERING_POLICY_LOOSE", "ADW_CENTERING_POLICY_STRICT", "loose", "strict" +] +_CenteringPolicyValueType: TypeAlias = CenteringPolicy | _CenteringPolicyLiteralType + class ColorScheme(GObject.GEnum): DEFAULT = 0 FORCE_DARK = 4 @@ -12244,11 +12895,37 @@ class ColorScheme(GObject.GEnum): PREFER_DARK = 3 PREFER_LIGHT = 2 +_ColorSchemeLiteralType: TypeAlias = Literal[ + "ADW_COLOR_SCHEME_DEFAULT", + "ADW_COLOR_SCHEME_FORCE_DARK", + "ADW_COLOR_SCHEME_FORCE_LIGHT", + "ADW_COLOR_SCHEME_PREFER_DARK", + "ADW_COLOR_SCHEME_PREFER_LIGHT", + "default", + "force-dark", + "force-light", + "prefer-dark", + "prefer-light", +] +_ColorSchemeValueType: TypeAlias = ColorScheme | _ColorSchemeLiteralType + class DialogPresentationMode(GObject.GEnum): AUTO = 0 BOTTOM_SHEET = 2 FLOATING = 1 +_DialogPresentationModeLiteralType: TypeAlias = Literal[ + "ADW_DIALOG_AUTO", + "ADW_DIALOG_BOTTOM_SHEET", + "ADW_DIALOG_FLOATING", + "auto", + "bottom-sheet", + "floating", +] +_DialogPresentationModeValueType: TypeAlias = ( + DialogPresentationMode | _DialogPresentationModeLiteralType +) + class Easing(GObject.GEnum): EASE = 31 EASE_IN = 32 @@ -12286,80 +12963,289 @@ class Easing(GObject.GEnum): EASE_OUT_SINE = 14 LINEAR = 0 @staticmethod - def ease(self: Easing, value: float) -> float: ... + def ease(self: _EasingValueType, value: float) -> float: ... + +_EasingLiteralType: TypeAlias = Literal[ + "ADW_EASE", + "ADW_EASE_IN", + "ADW_EASE_IN_BACK", + "ADW_EASE_IN_BOUNCE", + "ADW_EASE_IN_CIRC", + "ADW_EASE_IN_CUBIC", + "ADW_EASE_IN_ELASTIC", + "ADW_EASE_IN_EXPO", + "ADW_EASE_IN_OUT", + "ADW_EASE_IN_OUT_BACK", + "ADW_EASE_IN_OUT_BOUNCE", + "ADW_EASE_IN_OUT_CIRC", + "ADW_EASE_IN_OUT_CUBIC", + "ADW_EASE_IN_OUT_ELASTIC", + "ADW_EASE_IN_OUT_EXPO", + "ADW_EASE_IN_OUT_QUAD", + "ADW_EASE_IN_OUT_QUART", + "ADW_EASE_IN_OUT_QUINT", + "ADW_EASE_IN_OUT_SINE", + "ADW_EASE_IN_QUAD", + "ADW_EASE_IN_QUART", + "ADW_EASE_IN_QUINT", + "ADW_EASE_IN_SINE", + "ADW_EASE_OUT", + "ADW_EASE_OUT_BACK", + "ADW_EASE_OUT_BOUNCE", + "ADW_EASE_OUT_CIRC", + "ADW_EASE_OUT_CUBIC", + "ADW_EASE_OUT_ELASTIC", + "ADW_EASE_OUT_EXPO", + "ADW_EASE_OUT_QUAD", + "ADW_EASE_OUT_QUART", + "ADW_EASE_OUT_QUINT", + "ADW_EASE_OUT_SINE", + "ADW_LINEAR", + "ease", + "ease-in", + "ease-in-back", + "ease-in-bounce", + "ease-in-circ", + "ease-in-cubic", + "ease-in-elastic", + "ease-in-expo", + "ease-in-out", + "ease-in-out-back", + "ease-in-out-bounce", + "ease-in-out-circ", + "ease-in-out-cubic", + "ease-in-out-elastic", + "ease-in-out-expo", + "ease-in-out-quad", + "ease-in-out-quart", + "ease-in-out-quint", + "ease-in-out-sine", + "ease-in-quad", + "ease-in-quart", + "ease-in-quint", + "ease-in-sine", + "ease-out", + "ease-out-back", + "ease-out-bounce", + "ease-out-circ", + "ease-out-cubic", + "ease-out-elastic", + "ease-out-expo", + "ease-out-quad", + "ease-out-quart", + "ease-out-quint", + "ease-out-sine", + "linear", +] +_EasingValueType: TypeAlias = Easing | _EasingLiteralType class FlapFoldPolicy(GObject.GEnum): ALWAYS = 1 AUTO = 2 NEVER = 0 +_FlapFoldPolicyLiteralType: TypeAlias = Literal[ + "ADW_FLAP_FOLD_POLICY_ALWAYS", + "ADW_FLAP_FOLD_POLICY_AUTO", + "ADW_FLAP_FOLD_POLICY_NEVER", + "always", + "auto", + "never", +] +_FlapFoldPolicyValueType: TypeAlias = FlapFoldPolicy | _FlapFoldPolicyLiteralType + class FlapTransitionType(GObject.GEnum): OVER = 0 SLIDE = 2 UNDER = 1 +_FlapTransitionTypeLiteralType: TypeAlias = Literal[ + "ADW_FLAP_TRANSITION_TYPE_OVER", + "ADW_FLAP_TRANSITION_TYPE_SLIDE", + "ADW_FLAP_TRANSITION_TYPE_UNDER", + "over", + "slide", + "under", +] +_FlapTransitionTypeValueType: TypeAlias = ( + FlapTransitionType | _FlapTransitionTypeLiteralType +) + class FoldThresholdPolicy(GObject.GEnum): MINIMUM = 0 NATURAL = 1 +_FoldThresholdPolicyLiteralType: TypeAlias = Literal[ + "ADW_FOLD_THRESHOLD_POLICY_MINIMUM", + "ADW_FOLD_THRESHOLD_POLICY_NATURAL", + "minimum", + "natural", +] +_FoldThresholdPolicyValueType: TypeAlias = ( + FoldThresholdPolicy | _FoldThresholdPolicyLiteralType +) + class InlineViewSwitcherDisplayMode(GObject.GEnum): BOTH = 2 ICONS = 1 LABELS = 0 +_InlineViewSwitcherDisplayModeLiteralType: TypeAlias = Literal[ + "ADW_INLINE_VIEW_SWITCHER_BOTH", + "ADW_INLINE_VIEW_SWITCHER_ICONS", + "ADW_INLINE_VIEW_SWITCHER_LABELS", + "both", + "icons", + "labels", +] +_InlineViewSwitcherDisplayModeValueType: TypeAlias = ( + InlineViewSwitcherDisplayMode | _InlineViewSwitcherDisplayModeLiteralType +) + class JustifyMode(GObject.GEnum): FILL = 1 NONE = 0 SPREAD = 2 +_JustifyModeLiteralType: TypeAlias = Literal[ + "ADW_JUSTIFY_FILL", + "ADW_JUSTIFY_NONE", + "ADW_JUSTIFY_SPREAD", + "fill", + "none", + "spread", +] +_JustifyModeValueType: TypeAlias = JustifyMode | _JustifyModeLiteralType + class LeafletTransitionType(GObject.GEnum): OVER = 0 SLIDE = 2 UNDER = 1 +_LeafletTransitionTypeLiteralType: TypeAlias = Literal[ + "ADW_LEAFLET_TRANSITION_TYPE_OVER", + "ADW_LEAFLET_TRANSITION_TYPE_SLIDE", + "ADW_LEAFLET_TRANSITION_TYPE_UNDER", + "over", + "slide", + "under", +] +_LeafletTransitionTypeValueType: TypeAlias = ( + LeafletTransitionType | _LeafletTransitionTypeLiteralType +) + class LengthUnit(GObject.GEnum): PT = 1 PX = 0 SP = 2 @staticmethod def from_px( - unit: LengthUnit, value: float, settings: _Gtk4.Settings | None = None + unit: _LengthUnitValueType, value: float, settings: _Gtk4.Settings | None = None ) -> float: ... @staticmethod def to_px( - unit: LengthUnit, value: float, settings: _Gtk4.Settings | None = None + unit: _LengthUnitValueType, value: float, settings: _Gtk4.Settings | None = None ) -> float: ... +_LengthUnitLiteralType: TypeAlias = Literal[ + "ADW_LENGTH_UNIT_PT", "ADW_LENGTH_UNIT_PX", "ADW_LENGTH_UNIT_SP", "pt", "px", "sp" +] +_LengthUnitValueType: TypeAlias = LengthUnit | _LengthUnitLiteralType + class NavigationDirection(GObject.GEnum): BACK = 0 FORWARD = 1 +_NavigationDirectionLiteralType: TypeAlias = Literal[ + "ADW_NAVIGATION_DIRECTION_BACK", + "ADW_NAVIGATION_DIRECTION_FORWARD", + "back", + "forward", +] +_NavigationDirectionValueType: TypeAlias = ( + NavigationDirection | _NavigationDirectionLiteralType +) + class PackDirection(GObject.GEnum): END_TO_START = 1 START_TO_END = 0 +_PackDirectionLiteralType: TypeAlias = Literal[ + "ADW_PACK_END_TO_START", "ADW_PACK_START_TO_END", "end-to-start", "start-to-end" +] +_PackDirectionValueType: TypeAlias = PackDirection | _PackDirectionLiteralType + class ResponseAppearance(GObject.GEnum): DEFAULT = 0 DESTRUCTIVE = 2 SUGGESTED = 1 +_ResponseAppearanceLiteralType: TypeAlias = Literal[ + "ADW_RESPONSE_DEFAULT", + "ADW_RESPONSE_DESTRUCTIVE", + "ADW_RESPONSE_SUGGESTED", + "default", + "destructive", + "suggested", +] +_ResponseAppearanceValueType: TypeAlias = ( + ResponseAppearance | _ResponseAppearanceLiteralType +) + class SqueezerTransitionType(GObject.GEnum): CROSSFADE = 1 NONE = 0 +_SqueezerTransitionTypeLiteralType: TypeAlias = Literal[ + "ADW_SQUEEZER_TRANSITION_TYPE_CROSSFADE", + "ADW_SQUEEZER_TRANSITION_TYPE_NONE", + "crossfade", + "none", +] +_SqueezerTransitionTypeValueType: TypeAlias = ( + SqueezerTransitionType | _SqueezerTransitionTypeLiteralType +) + class ToastPriority(GObject.GEnum): HIGH = 1 NORMAL = 0 +_ToastPriorityLiteralType: TypeAlias = Literal[ + "ADW_TOAST_PRIORITY_HIGH", "ADW_TOAST_PRIORITY_NORMAL", "high", "normal" +] +_ToastPriorityValueType: TypeAlias = ToastPriority | _ToastPriorityLiteralType + class ToolbarStyle(GObject.GEnum): FLAT = 0 RAISED = 1 RAISED_BORDER = 2 +_ToolbarStyleLiteralType: TypeAlias = Literal[ + "ADW_TOOLBAR_FLAT", + "ADW_TOOLBAR_RAISED", + "ADW_TOOLBAR_RAISED_BORDER", + "flat", + "raised", + "raised-border", +] +_ToolbarStyleValueType: TypeAlias = ToolbarStyle | _ToolbarStyleLiteralType + class ViewSwitcherPolicy(GObject.GEnum): NARROW = 0 WIDE = 1 +_ViewSwitcherPolicyLiteralType: TypeAlias = Literal[ + "ADW_VIEW_SWITCHER_POLICY_NARROW", "ADW_VIEW_SWITCHER_POLICY_WIDE", "narrow", "wide" +] +_ViewSwitcherPolicyValueType: TypeAlias = ( + ViewSwitcherPolicy | _ViewSwitcherPolicyLiteralType +) + class WrapPolicy(GObject.GEnum): MINIMUM = 0 NATURAL = 1 + +_WrapPolicyLiteralType: TypeAlias = Literal[ + "ADW_WRAP_MINIMUM", "ADW_WRAP_NATURAL", "minimum", "natural" +] +_WrapPolicyValueType: TypeAlias = WrapPolicy | _WrapPolicyLiteralType diff --git a/src/gi-stubs/repository/Atk.pyi b/src/gi-stubs/repository/Atk.pyi index 5d4fad84..57c91179 100644 --- a/src/gi-stubs/repository/Atk.pyi +++ b/src/gi-stubs/repository/Atk.pyi @@ -1,7 +1,9 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from collections.abc import Callable from collections.abc import Sequence @@ -31,25 +33,27 @@ def get_toolkit_name() -> str: ... def get_toolkit_version() -> str: ... def get_version() -> str: ... def relation_type_for_name(name: str) -> RelationType: ... -def relation_type_get_name(type: RelationType) -> str: ... +def relation_type_get_name(type: _RelationTypeValueType) -> str: ... def relation_type_register(name: str) -> RelationType: ... def remove_focus_tracker(tracker_id: int) -> None: ... def remove_global_event_listener(listener_id: int) -> None: ... def remove_key_event_listener(listener_id: int) -> None: ... def role_for_name(name: str) -> Role: ... -def role_get_localized_name(role: Role) -> str: ... -def role_get_name(role: Role) -> str: ... +def role_get_localized_name(role: _RoleValueType) -> str: ... +def role_get_name(role: _RoleValueType) -> str: ... def role_register(name: str) -> Role: ... def state_type_for_name(name: str) -> StateType: ... -def state_type_get_name(type: StateType) -> str: ... +def state_type_get_name(type: _StateTypeValueType) -> str: ... def state_type_register(name: str) -> StateType: ... def text_attribute_for_name(name: str) -> TextAttribute: ... -def text_attribute_get_name(attr: TextAttribute) -> str: ... -def text_attribute_get_value(attr: TextAttribute, index_: int) -> str | None: ... +def text_attribute_get_name(attr: _TextAttributeValueType) -> str: ... +def text_attribute_get_value( + attr: _TextAttributeValueType, index_: int +) -> str | None: ... def text_attribute_register(name: str) -> TextAttribute: ... def text_free_ranges(ranges: Sequence[TextRange]) -> None: ... -def value_type_get_localized_name(value_type: ValueType) -> str: ... -def value_type_get_name(value_type: ValueType) -> str: ... +def value_type_get_localized_name(value_type: _ValueTypeValueType) -> str: ... +def value_type_get_name(value_type: _ValueTypeValueType) -> str: ... class Action(GObject.GInterface, Protocol): """ @@ -106,24 +110,26 @@ class Component(GObject.GInterface, Protocol): """ Interface AtkComponent """ - def contains(self, x: int, y: int, coord_type: CoordType) -> bool: ... + def contains(self, x: int, y: int, coord_type: _CoordTypeValueType) -> bool: ... def get_alpha(self) -> float: ... - def get_extents(self, coord_type: CoordType) -> tuple[int, int, int, int]: ... + def get_extents( + self, coord_type: _CoordTypeValueType + ) -> tuple[int, int, int, int]: ... def get_layer(self) -> Layer: ... def get_mdi_zorder(self) -> int: ... - def get_position(self, coord_type: CoordType) -> tuple[int, int]: ... + def get_position(self, coord_type: _CoordTypeValueType) -> tuple[int, int]: ... def get_size(self) -> tuple[int, int]: ... def grab_focus(self) -> bool: ... def ref_accessible_at_point( - self, x: int, y: int, coord_type: CoordType + self, x: int, y: int, coord_type: _CoordTypeValueType ) -> Object | None: ... def remove_focus_handler(self, handler_id: int) -> None: ... - def scroll_to(self, type: ScrollType) -> bool: ... - def scroll_to_point(self, coords: CoordType, x: int, y: int) -> bool: ... + def scroll_to(self, type: _ScrollTypeValueType) -> bool: ... + def scroll_to_point(self, coords: _CoordTypeValueType, x: int, y: int) -> bool: ... def set_extents( - self, x: int, y: int, width: int, height: int, coord_type: CoordType + self, x: int, y: int, width: int, height: int, coord_type: _CoordTypeValueType ) -> bool: ... - def set_position(self, x: int, y: int, coord_type: CoordType) -> bool: ... + def set_position(self, x: int, y: int, coord_type: _CoordTypeValueType) -> bool: ... def set_size(self, width: int, height: int) -> bool: ... class ComponentIface(_gi.Struct): @@ -139,17 +145,21 @@ class ComponentIface(_gi.Struct): @property def add_focus_handler(self) -> int: ... @property - def contains(self) -> Callable[[Component, int, int, CoordType], bool]: ... + def contains( + self, + ) -> Callable[[Component, int, int, _CoordTypeValueType], bool]: ... @property def ref_accessible_at_point( self, - ) -> Callable[[Component, int, int, CoordType], Object | None]: ... + ) -> Callable[[Component, int, int, _CoordTypeValueType], Object | None]: ... @property def get_extents( self, - ) -> Callable[[Component, CoordType], tuple[int, int, int, int]]: ... + ) -> Callable[[Component, _CoordTypeValueType], tuple[int, int, int, int]]: ... @property - def get_position(self) -> Callable[[Component, CoordType], tuple[int, int]]: ... + def get_position( + self, + ) -> Callable[[Component, _CoordTypeValueType], tuple[int, int]]: ... @property def get_size(self) -> Callable[[Component], tuple[int, int]]: ... @property @@ -159,9 +169,11 @@ class ComponentIface(_gi.Struct): @property def set_extents( self, - ) -> Callable[[Component, int, int, int, int, CoordType], bool]: ... + ) -> Callable[[Component, int, int, int, int, _CoordTypeValueType], bool]: ... @property - def set_position(self) -> Callable[[Component, int, int, CoordType], bool]: ... + def set_position( + self, + ) -> Callable[[Component, int, int, _CoordTypeValueType], bool]: ... @property def set_size(self) -> Callable[[Component, int, int], bool]: ... @property @@ -173,9 +185,11 @@ class ComponentIface(_gi.Struct): @property def get_alpha(self) -> Callable[[Component], float]: ... @property - def scroll_to(self) -> Callable[[Component, ScrollType], bool]: ... + def scroll_to(self) -> Callable[[Component, _ScrollTypeValueType], bool]: ... @property - def scroll_to_point(self) -> Callable[[Component, CoordType, int, int], bool]: ... + def scroll_to_point( + self, + ) -> Callable[[Component, _CoordTypeValueType, int, int], bool]: ... class Document(GObject.GInterface, Protocol): """ @@ -333,19 +347,19 @@ class GObjectAccessible(Object): def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Object = ..., - accessible_role: Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Object = ..., - accessible_table_summary: Object = ..., + accessible_name: str | None = ..., + accessible_parent: Object | None = ..., + accessible_role: _RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Object | None = ..., + accessible_table_summary: Object | None = ..., accessible_value: float = ..., ) -> None: ... @staticmethod @@ -509,7 +523,9 @@ class Image(GObject.GInterface, Protocol): """ def get_image_description(self) -> str: ... def get_image_locale(self) -> str | None: ... - def get_image_position(self, coord_type: CoordType) -> tuple[int, int]: ... + def get_image_position( + self, coord_type: _CoordTypeValueType + ) -> tuple[int, int]: ... def get_image_size(self) -> tuple[int, int]: ... def set_image_description(self, description: str) -> bool: ... @@ -524,7 +540,9 @@ class ImageIface(_gi.Struct): @property def parent(self) -> GObject.TypeInterface: ... @property - def get_image_position(self) -> Callable[[Image, CoordType], tuple[int, int]]: ... + def get_image_position( + self, + ) -> Callable[[Image, _CoordTypeValueType], tuple[int, int]]: ... @property def get_image_description(self) -> Callable[[Image], str]: ... @property @@ -725,19 +743,19 @@ class NoOpObject( def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Object = ..., - accessible_role: Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Object = ..., - accessible_table_summary: Object = ..., + accessible_name: str | None = ..., + accessible_parent: Object | None = ..., + accessible_role: _RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Object | None = ..., + accessible_table_summary: Object | None = ..., accessible_value: float = ..., ) -> None: ... @classmethod @@ -850,21 +868,24 @@ class Object(GObject.Object): def accessible_component_layer(self) -> int: ... @property def accessible_component_mdi_zorder(self) -> int: ... - accessible_description: str - accessible_help_text: str + accessible_description: str | None + accessible_help_text: str | None @property def accessible_hypertext_nlinks(self) -> int: ... accessible_id: str - accessible_name: str - accessible_parent: Object - accessible_role: Role - accessible_table_caption: str - accessible_table_caption_object: Object - accessible_table_column_description: str - accessible_table_column_header: Object - accessible_table_row_description: str - accessible_table_row_header: Object - accessible_table_summary: Object + accessible_name: str | None + accessible_parent: Object | None + @property + def accessible_role(self) -> Role: ... + @accessible_role.setter + def accessible_role(self, value: _RoleValueType) -> None: ... + accessible_table_caption: str | None + accessible_table_caption_object: Object | None + accessible_table_column_description: str | None + accessible_table_column_header: Object | None + accessible_table_row_description: str | None + accessible_table_row_header: Object | None + accessible_table_summary: Object | None accessible_value: float @property @@ -886,22 +907,24 @@ class Object(GObject.Object): def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Object = ..., - accessible_role: Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Object = ..., - accessible_table_summary: Object = ..., + accessible_name: str | None = ..., + accessible_parent: Object | None = ..., + accessible_role: _RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Object | None = ..., + accessible_table_summary: Object | None = ..., accessible_value: float = ..., ) -> None: ... - def add_relationship(self, relationship: RelationType, target: Object) -> bool: ... + def add_relationship( + self, relationship: _RelationTypeValueType, target: Object + ) -> bool: ... def do_active_descendant_changed(self, child: int | Any | None) -> None: ... def do_children_changed( self, change_index: int, changed_child: int | Any | None @@ -925,7 +948,7 @@ class Object(GObject.Object): def do_set_description(self, description: str) -> None: ... def do_set_name(self, name: str) -> None: ... def do_set_parent(self, parent: Object) -> None: ... - def do_set_role(self, role: Role) -> None: ... + def do_set_role(self, role: _RoleValueType) -> None: ... def do_state_change(self, name: str, state_set: bool) -> None: ... def do_visible_data_changed(self) -> None: ... def get_accessible_id(self) -> str: ... @@ -948,14 +971,14 @@ class Object(GObject.Object): def ref_state_set(self) -> StateSet: ... def remove_property_change_handler(self, handler_id: int) -> None: ... def remove_relationship( - self, relationship: RelationType, target: Object + self, relationship: _RelationTypeValueType, target: Object ) -> bool: ... def set_accessible_id(self, id: str) -> None: ... def set_description(self, description: str) -> None: ... def set_help_text(self, help_text: str) -> None: ... def set_name(self, name: str) -> None: ... def set_parent(self, parent: Object) -> None: ... - def set_role(self, role: Role) -> None: ... + def set_role(self, role: _RoleValueType) -> None: ... class ObjectClass(_gi.Struct): """ @@ -996,7 +1019,7 @@ class ObjectClass(_gi.Struct): @property def set_parent(self) -> Callable[[Object, Object], None]: ... @property - def set_role(self) -> Callable[[Object, Role], None]: ... + def set_role(self) -> Callable[[Object, _RoleValueType], None]: ... @property def connect_property_change_handler(self) -> int: ... @property @@ -1132,19 +1155,19 @@ class Plug(Object, Component): def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Object = ..., - accessible_role: Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Object = ..., - accessible_table_summary: Object = ..., + accessible_name: str | None = ..., + accessible_parent: Object | None = ..., + accessible_role: _RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Object | None = ..., + accessible_table_summary: Object | None = ..., accessible_value: float = ..., ) -> None: ... def do_get_object_id(self) -> str: ... @@ -1268,8 +1291,14 @@ class Relation(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - relation_type: RelationType - target: GObject.ValueArray + @property + def relation_type(self) -> RelationType: ... + @relation_type.setter + def relation_type(self, value: _RelationTypeValueType) -> None: ... + @property + def target(self) -> GObject.ValueArray: ... + @target.setter + def target(self, value: GObject.ValueArray | None) -> None: ... @property def props(self) -> Props: ... @@ -1280,13 +1309,18 @@ class Relation(GObject.Object): @property def relationship(self) -> RelationType: ... def __init__( - self, *, relation_type: RelationType = ..., target: GObject.ValueArray = ... + self, + *, + relation_type: _RelationTypeValueType = ..., + target: GObject.ValueArray | None = ..., ) -> None: ... def add_target(self, target: Object) -> None: ... def get_relation_type(self) -> RelationType: ... def get_target(self) -> list[Object]: ... @classmethod - def new(cls, targets: Sequence[Object], relationship: RelationType) -> Relation: ... + def new( + cls, targets: Sequence[Object], relationship: _RelationTypeValueType + ) -> Relation: ... def remove_target(self, target: Object) -> bool: ... class RelationClass(_gi.Struct): @@ -1320,13 +1354,17 @@ class RelationSet(GObject.Object): def relations(self) -> list[int]: ... def add(self, relation: Relation) -> None: ... def add_relation_by_type( - self, relationship: RelationType, target: Object + self, relationship: _RelationTypeValueType, target: Object ) -> None: ... - def contains(self, relationship: RelationType) -> bool: ... - def contains_target(self, relationship: RelationType, target: Object) -> bool: ... + def contains(self, relationship: _RelationTypeValueType) -> bool: ... + def contains_target( + self, relationship: _RelationTypeValueType, target: Object + ) -> bool: ... def get_n_relations(self) -> int: ... def get_relation(self, i: int) -> Relation: ... - def get_relation_by_type(self, relationship: RelationType) -> Relation: ... + def get_relation_by_type( + self, relationship: _RelationTypeValueType + ) -> Relation: ... @classmethod def new(cls) -> RelationSet: ... def remove(self, relation: Relation) -> None: ... @@ -1456,19 +1494,19 @@ class Socket(Object, Component): def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Object = ..., - accessible_role: Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Object = ..., - accessible_table_summary: Object = ..., + accessible_name: str | None = ..., + accessible_parent: Object | None = ..., + accessible_role: _RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Object | None = ..., + accessible_table_summary: Object | None = ..., accessible_value: float = ..., ) -> None: ... def do_embed(self, plug_id: str) -> None: ... @@ -1506,17 +1544,17 @@ class StateSet(GObject.Object): """ @property def parent(self) -> GObject.Object: ... - def add_state(self, type: StateType) -> bool: ... - def add_states(self, types: Sequence[StateType]) -> None: ... + def add_state(self, type: _StateTypeValueType) -> bool: ... + def add_states(self, types: Sequence[_StateTypeValueType]) -> None: ... def and_sets(self, compare_set: StateSet) -> StateSet: ... def clear_states(self) -> None: ... - def contains_state(self, type: StateType) -> bool: ... - def contains_states(self, types: Sequence[StateType]) -> bool: ... + def contains_state(self, type: _StateTypeValueType) -> bool: ... + def contains_states(self, types: Sequence[_StateTypeValueType]) -> bool: ... def is_empty(self) -> bool: ... @classmethod def new(cls) -> StateSet: ... def or_sets(self, compare_set: StateSet) -> StateSet | None: ... - def remove_state(self, type: StateType) -> bool: ... + def remove_state(self, type: _StateTypeValueType) -> bool: ... def xor_sets(self, compare_set: StateSet) -> StateSet: ... class StateSetClass(_gi.Struct): @@ -1733,43 +1771,50 @@ class Text(GObject.GInterface, Protocol): def get_bounded_ranges( self, rect: TextRectangle, - coord_type: CoordType, - x_clip_type: TextClipType, - y_clip_type: TextClipType, + coord_type: _CoordTypeValueType, + x_clip_type: _TextClipTypeValueType, + y_clip_type: _TextClipTypeValueType, ) -> list[TextRange]: ... def get_caret_offset(self) -> int: ... def get_character_at_offset(self, offset: int) -> str: ... def get_character_count(self) -> int: ... def get_character_extents( - self, offset: int, coords: CoordType + self, offset: int, coords: _CoordTypeValueType ) -> tuple[int, int, int, int]: ... def get_default_attributes(self) -> list[int]: ... def get_n_selections(self) -> int: ... - def get_offset_at_point(self, x: int, y: int, coords: CoordType) -> int: ... + def get_offset_at_point( + self, x: int, y: int, coords: _CoordTypeValueType + ) -> int: ... def get_range_extents( - self, start_offset: int, end_offset: int, coord_type: CoordType + self, start_offset: int, end_offset: int, coord_type: _CoordTypeValueType ) -> TextRectangle: ... def get_run_attributes(self, offset: int) -> tuple[list[int], int, int]: ... def get_selection(self, selection_num: int) -> tuple[str, int, int]: ... def get_string_at_offset( - self, offset: int, granularity: TextGranularity + self, offset: int, granularity: _TextGranularityValueType ) -> tuple[str | None, int, int]: ... def get_text(self, start_offset: int, end_offset: int) -> str: ... def get_text_after_offset( - self, offset: int, boundary_type: TextBoundary + self, offset: int, boundary_type: _TextBoundaryValueType ) -> tuple[str, int, int]: ... def get_text_at_offset( - self, offset: int, boundary_type: TextBoundary + self, offset: int, boundary_type: _TextBoundaryValueType ) -> tuple[str, int, int]: ... def get_text_before_offset( - self, offset: int, boundary_type: TextBoundary + self, offset: int, boundary_type: _TextBoundaryValueType ) -> tuple[str, int, int]: ... def remove_selection(self, selection_num: int) -> bool: ... def scroll_substring_to( - self, start_offset: int, end_offset: int, type: ScrollType + self, start_offset: int, end_offset: int, type: _ScrollTypeValueType ) -> bool: ... def scroll_substring_to_point( - self, start_offset: int, end_offset: int, coords: CoordType, x: int, y: int + self, + start_offset: int, + end_offset: int, + coords: _CoordTypeValueType, + x: int, + y: int, ) -> bool: ... def set_caret_offset(self, offset: int) -> bool: ... def set_selection( @@ -1791,17 +1836,17 @@ class TextIface(_gi.Struct): @property def get_text_after_offset( self, - ) -> Callable[[Text, int, TextBoundary], tuple[str, int, int]]: ... + ) -> Callable[[Text, int, _TextBoundaryValueType], tuple[str, int, int]]: ... @property def get_text_at_offset( self, - ) -> Callable[[Text, int, TextBoundary], tuple[str, int, int]]: ... + ) -> Callable[[Text, int, _TextBoundaryValueType], tuple[str, int, int]]: ... @property def get_character_at_offset(self) -> Callable[[Text, int], str]: ... @property def get_text_before_offset( self, - ) -> Callable[[Text, int, TextBoundary], tuple[str, int, int]]: ... + ) -> Callable[[Text, int, _TextBoundaryValueType], tuple[str, int, int]]: ... @property def get_caret_offset(self) -> Callable[[Text], int]: ... @property @@ -1813,11 +1858,13 @@ class TextIface(_gi.Struct): @property def get_character_extents( self, - ) -> Callable[[Text, int, CoordType], tuple[int, int, int, int]]: ... + ) -> Callable[[Text, int, _CoordTypeValueType], tuple[int, int, int, int]]: ... @property def get_character_count(self) -> Callable[[Text], int]: ... @property - def get_offset_at_point(self) -> Callable[[Text, int, int, CoordType], int]: ... + def get_offset_at_point( + self, + ) -> Callable[[Text, int, int, _CoordTypeValueType], int]: ... @property def get_n_selections(self) -> Callable[[Text], int]: ... @property @@ -1841,23 +1888,34 @@ class TextIface(_gi.Struct): @property def get_range_extents( self, - ) -> Callable[[Text, int, int, CoordType], TextRectangle]: ... + ) -> Callable[[Text, int, int, _CoordTypeValueType], TextRectangle]: ... @property def get_bounded_ranges( self, ) -> Callable[ - [Text, TextRectangle, CoordType, TextClipType, TextClipType], list[TextRange] + [ + Text, + TextRectangle, + _CoordTypeValueType, + _TextClipTypeValueType, + _TextClipTypeValueType, + ], + list[TextRange], ]: ... @property def get_string_at_offset( self, - ) -> Callable[[Text, int, TextGranularity], tuple[str | None, int, int]]: ... + ) -> Callable[ + [Text, int, _TextGranularityValueType], tuple[str | None, int, int] + ]: ... @property - def scroll_substring_to(self) -> Callable[[Text, int, int, ScrollType], bool]: ... + def scroll_substring_to( + self, + ) -> Callable[[Text, int, int, _ScrollTypeValueType], bool]: ... @property def scroll_substring_to_point( self, - ) -> Callable[[Text, int, int, CoordType, int, int], bool]: ... + ) -> Callable[[Text, int, int, _CoordTypeValueType, int, int], bool]: ... class TextRange(GObject.GBoxed): """ @@ -2011,16 +2069,40 @@ class WindowIface(_gi.Struct): class HyperlinkStateFlags(GObject.GFlags): INLINE = 1 +_HyperlinkStateFlagsLiteralType: TypeAlias = Literal[ + "ATK_HYPERLINK_IS_INLINE", "inline" +] +_HyperlinkStateFlagsValueType: TypeAlias = ( + HyperlinkStateFlags + | _HyperlinkStateFlagsLiteralType + | tuple[_HyperlinkStateFlagsLiteralType, ...] +) + class CoordType(GObject.GEnum): PARENT = 2 SCREEN = 0 WINDOW = 1 +_CoordTypeLiteralType: TypeAlias = Literal[ + "ATK_XY_PARENT", "ATK_XY_SCREEN", "ATK_XY_WINDOW", "parent", "screen", "window" +] +_CoordTypeValueType: TypeAlias = CoordType | _CoordTypeLiteralType + class KeyEventType(GObject.GEnum): LAST_DEFINED = 2 PRESS = 0 RELEASE = 1 +_KeyEventTypeLiteralType: TypeAlias = Literal[ + "ATK_KEY_EVENT_LAST_DEFINED", + "ATK_KEY_EVENT_PRESS", + "ATK_KEY_EVENT_RELEASE", + "last-defined", + "press", + "release", +] +_KeyEventTypeValueType: TypeAlias = KeyEventType | _KeyEventTypeLiteralType + class Layer(GObject.GEnum): BACKGROUND = 1 CANVAS = 2 @@ -2031,11 +2113,41 @@ class Layer(GObject.GEnum): WIDGET = 3 WINDOW = 7 +_LayerLiteralType: TypeAlias = Literal[ + "ATK_LAYER_BACKGROUND", + "ATK_LAYER_CANVAS", + "ATK_LAYER_INVALID", + "ATK_LAYER_MDI", + "ATK_LAYER_OVERLAY", + "ATK_LAYER_POPUP", + "ATK_LAYER_WIDGET", + "ATK_LAYER_WINDOW", + "background", + "canvas", + "invalid", + "mdi", + "overlay", + "popup", + "widget", + "window", +] +_LayerValueType: TypeAlias = Layer | _LayerLiteralType + class Live(GObject.GEnum): ASSERTIVE = 2 NONE = 0 POLITE = 1 +_LiveLiteralType: TypeAlias = Literal[ + "ATK_LIVE_ASSERTIVE", + "ATK_LIVE_NONE", + "ATK_LIVE_POLITE", + "assertive", + "none", + "polite", +] +_LiveValueType: TypeAlias = Live | _LiveLiteralType + class RelationType(GObject.GEnum): CONTROLLED_BY = 1 CONTROLLER_FOR = 2 @@ -2062,10 +2174,58 @@ class RelationType(GObject.GEnum): @staticmethod def for_name(name: str) -> RelationType: ... @staticmethod - def get_name(type: RelationType) -> str: ... + def get_name(type: _RelationTypeValueType) -> str: ... @staticmethod def register(name: str) -> RelationType: ... +_RelationTypeLiteralType: TypeAlias = Literal[ + "ATK_RELATION_CONTROLLED_BY", + "ATK_RELATION_CONTROLLER_FOR", + "ATK_RELATION_DESCRIBED_BY", + "ATK_RELATION_DESCRIPTION_FOR", + "ATK_RELATION_DETAILS", + "ATK_RELATION_DETAILS_FOR", + "ATK_RELATION_EMBEDDED_BY", + "ATK_RELATION_EMBEDS", + "ATK_RELATION_ERROR_FOR", + "ATK_RELATION_ERROR_MESSAGE", + "ATK_RELATION_FLOWS_FROM", + "ATK_RELATION_FLOWS_TO", + "ATK_RELATION_LABELLED_BY", + "ATK_RELATION_LABEL_FOR", + "ATK_RELATION_LAST_DEFINED", + "ATK_RELATION_MEMBER_OF", + "ATK_RELATION_NODE_CHILD_OF", + "ATK_RELATION_NODE_PARENT_OF", + "ATK_RELATION_NULL", + "ATK_RELATION_PARENT_WINDOW_OF", + "ATK_RELATION_POPUP_FOR", + "ATK_RELATION_SUBWINDOW_OF", + "controlled-by", + "controller-for", + "described-by", + "description-for", + "details", + "details-for", + "embedded-by", + "embeds", + "error-for", + "error-message", + "flows-from", + "flows-to", + "label-for", + "labelled-by", + "last-defined", + "member-of", + "node-child-of", + "node-parent-of", + "null", + "parent-window-of", + "popup-for", + "subwindow-of", +] +_RelationTypeValueType: TypeAlias = RelationType | _RelationTypeLiteralType + class Role(GObject.GEnum): ACCELERATOR_LABEL = 1 ALERT = 2 @@ -2201,12 +2361,276 @@ class Role(GObject.GEnum): @staticmethod def for_name(name: str) -> Role: ... @staticmethod - def get_localized_name(role: Role) -> str: ... + def get_localized_name(role: _RoleValueType) -> str: ... @staticmethod - def get_name(role: Role) -> str: ... + def get_name(role: _RoleValueType) -> str: ... @staticmethod def register(name: str) -> Role: ... +_RoleLiteralType: TypeAlias = Literal[ + "ATK_ROLE_ACCEL_LABEL", + "ATK_ROLE_ALERT", + "ATK_ROLE_ANIMATION", + "ATK_ROLE_APPLICATION", + "ATK_ROLE_ARROW", + "ATK_ROLE_ARTICLE", + "ATK_ROLE_AUDIO", + "ATK_ROLE_AUTOCOMPLETE", + "ATK_ROLE_BLOCK_QUOTE", + "ATK_ROLE_BUTTON", + "ATK_ROLE_CALENDAR", + "ATK_ROLE_CANVAS", + "ATK_ROLE_CAPTION", + "ATK_ROLE_CHART", + "ATK_ROLE_CHECK_BOX", + "ATK_ROLE_CHECK_MENU_ITEM", + "ATK_ROLE_COLOR_CHOOSER", + "ATK_ROLE_COLUMN_HEADER", + "ATK_ROLE_COMBO_BOX", + "ATK_ROLE_COMMENT", + "ATK_ROLE_CONTENT_DELETION", + "ATK_ROLE_CONTENT_INSERTION", + "ATK_ROLE_DATE_EDITOR", + "ATK_ROLE_DEFINITION", + "ATK_ROLE_DESCRIPTION_LIST", + "ATK_ROLE_DESCRIPTION_TERM", + "ATK_ROLE_DESCRIPTION_VALUE", + "ATK_ROLE_DESKTOP_FRAME", + "ATK_ROLE_DESKTOP_ICON", + "ATK_ROLE_DIAL", + "ATK_ROLE_DIALOG", + "ATK_ROLE_DIRECTORY_PANE", + "ATK_ROLE_DOCUMENT_EMAIL", + "ATK_ROLE_DOCUMENT_FRAME", + "ATK_ROLE_DOCUMENT_PRESENTATION", + "ATK_ROLE_DOCUMENT_SPREADSHEET", + "ATK_ROLE_DOCUMENT_TEXT", + "ATK_ROLE_DOCUMENT_WEB", + "ATK_ROLE_DRAWING_AREA", + "ATK_ROLE_EDITBAR", + "ATK_ROLE_EMBEDDED", + "ATK_ROLE_ENTRY", + "ATK_ROLE_FILE_CHOOSER", + "ATK_ROLE_FILLER", + "ATK_ROLE_FONT_CHOOSER", + "ATK_ROLE_FOOTER", + "ATK_ROLE_FOOTNOTE", + "ATK_ROLE_FORM", + "ATK_ROLE_FRAME", + "ATK_ROLE_GLASS_PANE", + "ATK_ROLE_GROUPING", + "ATK_ROLE_HEADER", + "ATK_ROLE_HEADING", + "ATK_ROLE_HTML_CONTAINER", + "ATK_ROLE_ICON", + "ATK_ROLE_IMAGE", + "ATK_ROLE_IMAGE_MAP", + "ATK_ROLE_INFO_BAR", + "ATK_ROLE_INPUT_METHOD_WINDOW", + "ATK_ROLE_INTERNAL_FRAME", + "ATK_ROLE_INVALID", + "ATK_ROLE_LABEL", + "ATK_ROLE_LANDMARK", + "ATK_ROLE_LAST_DEFINED", + "ATK_ROLE_LAYERED_PANE", + "ATK_ROLE_LEVEL_BAR", + "ATK_ROLE_LINK", + "ATK_ROLE_LIST", + "ATK_ROLE_LIST_BOX", + "ATK_ROLE_LIST_ITEM", + "ATK_ROLE_LOG", + "ATK_ROLE_MARK", + "ATK_ROLE_MARQUEE", + "ATK_ROLE_MATH", + "ATK_ROLE_MATH_FRACTION", + "ATK_ROLE_MATH_ROOT", + "ATK_ROLE_MENU", + "ATK_ROLE_MENU_BAR", + "ATK_ROLE_MENU_ITEM", + "ATK_ROLE_NOTIFICATION", + "ATK_ROLE_OPTION_PANE", + "ATK_ROLE_PAGE", + "ATK_ROLE_PAGE_TAB", + "ATK_ROLE_PAGE_TAB_LIST", + "ATK_ROLE_PANEL", + "ATK_ROLE_PARAGRAPH", + "ATK_ROLE_PASSWORD_TEXT", + "ATK_ROLE_POPUP_MENU", + "ATK_ROLE_PROGRESS_BAR", + "ATK_ROLE_PUSH_BUTTON_MENU", + "ATK_ROLE_RADIO_BUTTON", + "ATK_ROLE_RADIO_MENU_ITEM", + "ATK_ROLE_RATING", + "ATK_ROLE_REDUNDANT_OBJECT", + "ATK_ROLE_ROOT_PANE", + "ATK_ROLE_ROW_HEADER", + "ATK_ROLE_RULER", + "ATK_ROLE_SCROLL_BAR", + "ATK_ROLE_SCROLL_PANE", + "ATK_ROLE_SECTION", + "ATK_ROLE_SEPARATOR", + "ATK_ROLE_SLIDER", + "ATK_ROLE_SPIN_BUTTON", + "ATK_ROLE_SPLIT_PANE", + "ATK_ROLE_STATIC", + "ATK_ROLE_STATUSBAR", + "ATK_ROLE_SUBSCRIPT", + "ATK_ROLE_SUGGESTION", + "ATK_ROLE_SUPERSCRIPT", + "ATK_ROLE_SWITCH", + "ATK_ROLE_TABLE", + "ATK_ROLE_TABLE_CELL", + "ATK_ROLE_TABLE_COLUMN_HEADER", + "ATK_ROLE_TABLE_ROW", + "ATK_ROLE_TABLE_ROW_HEADER", + "ATK_ROLE_TEAR_OFF_MENU_ITEM", + "ATK_ROLE_TERMINAL", + "ATK_ROLE_TEXT", + "ATK_ROLE_TIMER", + "ATK_ROLE_TITLE_BAR", + "ATK_ROLE_TOGGLE_BUTTON", + "ATK_ROLE_TOOL_BAR", + "ATK_ROLE_TOOL_TIP", + "ATK_ROLE_TREE", + "ATK_ROLE_TREE_ITEM", + "ATK_ROLE_TREE_TABLE", + "ATK_ROLE_UNKNOWN", + "ATK_ROLE_VIDEO", + "ATK_ROLE_VIEWPORT", + "ATK_ROLE_WINDOW", + "accelerator-label", + "alert", + "animation", + "application", + "arrow", + "article", + "audio", + "autocomplete", + "block-quote", + "button", + "calendar", + "canvas", + "caption", + "chart", + "check-box", + "check-menu-item", + "color-chooser", + "column-header", + "combo-box", + "comment", + "content-deletion", + "content-insertion", + "date-editor", + "definition", + "description-list", + "description-term", + "description-value", + "desktop-frame", + "desktop-icon", + "dial", + "dialog", + "directory-pane", + "document-email", + "document-frame", + "document-presentation", + "document-spreadsheet", + "document-text", + "document-web", + "drawing-area", + "edit-bar", + "embedded", + "entry", + "file-chooser", + "filler", + "font-chooser", + "footer", + "footnote", + "form", + "frame", + "glass-pane", + "grouping", + "header", + "heading", + "html-container", + "icon", + "image", + "image-map", + "info-bar", + "input-method-window", + "internal-frame", + "invalid", + "label", + "landmark", + "last-defined", + "layered-pane", + "level-bar", + "link", + "list", + "list-box", + "list-item", + "log", + "mark", + "marquee", + "math", + "math-fraction", + "math-root", + "menu", + "menu-bar", + "menu-item", + "notification", + "option-pane", + "page", + "page-tab", + "page-tab-list", + "panel", + "paragraph", + "password-text", + "popup-menu", + "progress-bar", + "push-button-menu", + "radio-button", + "radio-menu-item", + "rating", + "redundant-object", + "root-pane", + "row-header", + "ruler", + "scroll-bar", + "scroll-pane", + "section", + "separator", + "slider", + "spin-button", + "split-pane", + "static", + "statusbar", + "subscript", + "suggestion", + "superscript", + "switch", + "table", + "table-cell", + "table-column-header", + "table-row", + "table-row-header", + "tear-off-menu-item", + "terminal", + "text", + "timer", + "title-bar", + "toggle-button", + "tool-bar", + "tool-tip", + "tree", + "tree-item", + "tree-table", + "unknown", + "video", + "viewport", + "window", +] +_RoleValueType: TypeAlias = Role | _RoleLiteralType + class ScrollType(GObject.GEnum): ANYWHERE = 6 BOTTOM_EDGE = 3 @@ -2216,6 +2640,24 @@ class ScrollType(GObject.GEnum): TOP_EDGE = 2 TOP_LEFT = 0 +_ScrollTypeLiteralType: TypeAlias = Literal[ + "ATK_SCROLL_ANYWHERE", + "ATK_SCROLL_BOTTOM_EDGE", + "ATK_SCROLL_BOTTOM_RIGHT", + "ATK_SCROLL_LEFT_EDGE", + "ATK_SCROLL_RIGHT_EDGE", + "ATK_SCROLL_TOP_EDGE", + "ATK_SCROLL_TOP_LEFT", + "anywhere", + "bottom-edge", + "bottom-right", + "left-edge", + "right-edge", + "top-edge", + "top-left", +] +_ScrollTypeValueType: TypeAlias = ScrollType | _ScrollTypeLiteralType + class StateType(GObject.GEnum): ACTIVE = 1 ANIMATED = 37 @@ -2265,10 +2707,104 @@ class StateType(GObject.GEnum): @staticmethod def for_name(name: str) -> StateType: ... @staticmethod - def get_name(type: StateType) -> str: ... + def get_name(type: _StateTypeValueType) -> str: ... @staticmethod def register(name: str) -> StateType: ... +_StateTypeLiteralType: TypeAlias = Literal[ + "ATK_STATE_ACTIVE", + "ATK_STATE_ANIMATED", + "ATK_STATE_ARMED", + "ATK_STATE_BUSY", + "ATK_STATE_CHECKABLE", + "ATK_STATE_CHECKED", + "ATK_STATE_COLLAPSED", + "ATK_STATE_DEFAULT", + "ATK_STATE_DEFUNCT", + "ATK_STATE_EDITABLE", + "ATK_STATE_ENABLED", + "ATK_STATE_EXPANDABLE", + "ATK_STATE_EXPANDED", + "ATK_STATE_FOCUSABLE", + "ATK_STATE_FOCUSED", + "ATK_STATE_HAS_POPUP", + "ATK_STATE_HAS_TOOLTIP", + "ATK_STATE_HORIZONTAL", + "ATK_STATE_ICONIFIED", + "ATK_STATE_INDETERMINATE", + "ATK_STATE_INVALID", + "ATK_STATE_INVALID_ENTRY", + "ATK_STATE_LAST_DEFINED", + "ATK_STATE_MANAGES_DESCENDANTS", + "ATK_STATE_MODAL", + "ATK_STATE_MULTISELECTABLE", + "ATK_STATE_MULTI_LINE", + "ATK_STATE_OPAQUE", + "ATK_STATE_PRESSED", + "ATK_STATE_READ_ONLY", + "ATK_STATE_REQUIRED", + "ATK_STATE_RESIZABLE", + "ATK_STATE_SELECTABLE", + "ATK_STATE_SELECTABLE_TEXT", + "ATK_STATE_SELECTED", + "ATK_STATE_SENSITIVE", + "ATK_STATE_SHOWING", + "ATK_STATE_SINGLE_LINE", + "ATK_STATE_STALE", + "ATK_STATE_SUPPORTS_AUTOCOMPLETION", + "ATK_STATE_TRANSIENT", + "ATK_STATE_TRUNCATED", + "ATK_STATE_VERTICAL", + "ATK_STATE_VISIBLE", + "ATK_STATE_VISITED", + "active", + "animated", + "armed", + "busy", + "checkable", + "checked", + "collapsed", + "default", + "defunct", + "editable", + "enabled", + "expandable", + "expanded", + "focusable", + "focused", + "has-popup", + "has-tooltip", + "horizontal", + "iconified", + "indeterminate", + "invalid", + "invalid-entry", + "last-defined", + "manages-descendants", + "modal", + "multi-line", + "multiselectable", + "opaque", + "pressed", + "read-only", + "required", + "resizable", + "selectable", + "selectable-text", + "selected", + "sensitive", + "showing", + "single-line", + "stale", + "supports-autocompletion", + "transient", + "truncated", + "vertical", + "visible", + "visited", +] +_StateTypeValueType: TypeAlias = StateType | _StateTypeLiteralType + class TextAttribute(GObject.GEnum): BG_COLOR = 18 BG_FULL_HEIGHT = 9 @@ -2303,12 +2839,76 @@ class TextAttribute(GObject.GEnum): @staticmethod def for_name(name: str) -> TextAttribute: ... @staticmethod - def get_name(attr: TextAttribute) -> str: ... + def get_name(attr: _TextAttributeValueType) -> str: ... @staticmethod - def get_value(attr: TextAttribute, index_: int) -> str | None: ... + def get_value(attr: _TextAttributeValueType, index_: int) -> str | None: ... @staticmethod def register(name: str) -> TextAttribute: ... +_TextAttributeLiteralType: TypeAlias = Literal[ + "ATK_TEXT_ATTR_BG_COLOR", + "ATK_TEXT_ATTR_BG_FULL_HEIGHT", + "ATK_TEXT_ATTR_BG_STIPPLE", + "ATK_TEXT_ATTR_DIRECTION", + "ATK_TEXT_ATTR_EDITABLE", + "ATK_TEXT_ATTR_FAMILY_NAME", + "ATK_TEXT_ATTR_FG_COLOR", + "ATK_TEXT_ATTR_FG_STIPPLE", + "ATK_TEXT_ATTR_INDENT", + "ATK_TEXT_ATTR_INVALID", + "ATK_TEXT_ATTR_INVISIBLE", + "ATK_TEXT_ATTR_JUSTIFICATION", + "ATK_TEXT_ATTR_LANGUAGE", + "ATK_TEXT_ATTR_LAST_DEFINED", + "ATK_TEXT_ATTR_LEFT_MARGIN", + "ATK_TEXT_ATTR_PIXELS_ABOVE_LINES", + "ATK_TEXT_ATTR_PIXELS_BELOW_LINES", + "ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP", + "ATK_TEXT_ATTR_RIGHT_MARGIN", + "ATK_TEXT_ATTR_RISE", + "ATK_TEXT_ATTR_SCALE", + "ATK_TEXT_ATTR_SIZE", + "ATK_TEXT_ATTR_STRETCH", + "ATK_TEXT_ATTR_STRIKETHROUGH", + "ATK_TEXT_ATTR_STYLE", + "ATK_TEXT_ATTR_TEXT_POSITION", + "ATK_TEXT_ATTR_UNDERLINE", + "ATK_TEXT_ATTR_VARIANT", + "ATK_TEXT_ATTR_WEIGHT", + "ATK_TEXT_ATTR_WRAP_MODE", + "bg-color", + "bg-full-height", + "bg-stipple", + "direction", + "editable", + "family-name", + "fg-color", + "fg-stipple", + "indent", + "invalid", + "invisible", + "justification", + "language", + "last-defined", + "left-margin", + "pixels-above-lines", + "pixels-below-lines", + "pixels-inside-wrap", + "right-margin", + "rise", + "scale", + "size", + "stretch", + "strikethrough", + "style", + "text-position", + "underline", + "variant", + "weight", + "wrap-mode", +] +_TextAttributeValueType: TypeAlias = TextAttribute | _TextAttributeLiteralType + class TextBoundary(GObject.GEnum): CHAR = 0 LINE_END = 6 @@ -2318,12 +2918,42 @@ class TextBoundary(GObject.GEnum): WORD_END = 2 WORD_START = 1 +_TextBoundaryLiteralType: TypeAlias = Literal[ + "ATK_TEXT_BOUNDARY_CHAR", + "ATK_TEXT_BOUNDARY_LINE_END", + "ATK_TEXT_BOUNDARY_LINE_START", + "ATK_TEXT_BOUNDARY_SENTENCE_END", + "ATK_TEXT_BOUNDARY_SENTENCE_START", + "ATK_TEXT_BOUNDARY_WORD_END", + "ATK_TEXT_BOUNDARY_WORD_START", + "char", + "line-end", + "line-start", + "sentence-end", + "sentence-start", + "word-end", + "word-start", +] +_TextBoundaryValueType: TypeAlias = TextBoundary | _TextBoundaryLiteralType + class TextClipType(GObject.GEnum): BOTH = 3 MAX = 2 MIN = 1 NONE = 0 +_TextClipTypeLiteralType: TypeAlias = Literal[ + "ATK_TEXT_CLIP_BOTH", + "ATK_TEXT_CLIP_MAX", + "ATK_TEXT_CLIP_MIN", + "ATK_TEXT_CLIP_NONE", + "both", + "max", + "min", + "none", +] +_TextClipTypeValueType: TypeAlias = TextClipType | _TextClipTypeLiteralType + class TextGranularity(GObject.GEnum): CHAR = 0 LINE = 3 @@ -2331,6 +2961,20 @@ class TextGranularity(GObject.GEnum): SENTENCE = 2 WORD = 1 +_TextGranularityLiteralType: TypeAlias = Literal[ + "ATK_TEXT_GRANULARITY_CHAR", + "ATK_TEXT_GRANULARITY_LINE", + "ATK_TEXT_GRANULARITY_PARAGRAPH", + "ATK_TEXT_GRANULARITY_SENTENCE", + "ATK_TEXT_GRANULARITY_WORD", + "char", + "line", + "paragraph", + "sentence", + "word", +] +_TextGranularityValueType: TypeAlias = TextGranularity | _TextGranularityLiteralType + class ValueType(GObject.GEnum): ACCEPTABLE = 2 BAD = 11 @@ -2349,6 +2993,42 @@ class ValueType(GObject.GEnum): VERY_WEAK = 0 WEAK = 1 @staticmethod - def get_localized_name(value_type: ValueType) -> str: ... + def get_localized_name(value_type: _ValueTypeValueType) -> str: ... @staticmethod - def get_name(value_type: ValueType) -> str: ... + def get_name(value_type: _ValueTypeValueType) -> str: ... + +_ValueTypeLiteralType: TypeAlias = Literal[ + "ATK_VALUE_ACCEPTABLE", + "ATK_VALUE_BAD", + "ATK_VALUE_BEST", + "ATK_VALUE_GOOD", + "ATK_VALUE_HIGH", + "ATK_VALUE_LAST_DEFINED", + "ATK_VALUE_LOW", + "ATK_VALUE_MEDIUM", + "ATK_VALUE_STRONG", + "ATK_VALUE_VERY_BAD", + "ATK_VALUE_VERY_GOOD", + "ATK_VALUE_VERY_HIGH", + "ATK_VALUE_VERY_LOW", + "ATK_VALUE_VERY_STRONG", + "ATK_VALUE_VERY_WEAK", + "ATK_VALUE_WEAK", + "acceptable", + "bad", + "best", + "good", + "high", + "last-defined", + "low", + "medium", + "strong", + "very-bad", + "very-good", + "very-high", + "very-low", + "very-strong", + "very-weak", + "weak", +] +_ValueTypeValueType: TypeAlias = ValueType | _ValueTypeLiteralType diff --git a/src/gi-stubs/repository/GLib.pyi b/src/gi-stubs/repository/GLib.pyi index 5e291320..a78b8ff8 100644 --- a/src/gi-stubs/repository/GLib.pyi +++ b/src/gi-stubs/repository/GLib.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import overload +from typing import TypeAlias from typing_extensions import Self from typing_extensions import TypeVar from typing_extensions import TypeVarTuple @@ -746,7 +748,7 @@ def io_add_watch( def io_channel_error_from_errno(en: int) -> IOChannelError: ... def io_channel_error_quark() -> int: ... -def io_create_watch(channel: IOChannel, condition: IOCondition) -> Source: ... +def io_create_watch(channel: IOChannel, condition: _IOConditionValueType) -> Source: ... def key_file_error_quark() -> int: ... def list_pop_allocator() -> None: ... def list_push_allocator(allocator: Allocator) -> None: ... @@ -1255,16 +1257,16 @@ def unichar_xdigit_value(c: str) -> int: ... def unicode_canonical_decomposition(ch: str, result_len: int) -> str: ... def unicode_canonical_ordering(string: _Sequence[str]) -> None: ... def unicode_script_from_iso15924(iso15924: int) -> UnicodeScript: ... -def unicode_script_to_iso15924(script: UnicodeScript) -> int: ... +def unicode_script_to_iso15924(script: _UnicodeScriptValueType) -> int: ... def unix_error_quark() -> int: ... def unix_fd_add_full( priority: int, fd: int, - condition: IOCondition, - function: Callable[[int, IOCondition, Unpack[_DataTs]], bool], + condition: _IOConditionValueType, + function: Callable[[int, _IOConditionValueType, Unpack[_DataTs]], bool], *user_data: Unpack[_DataTs], ) -> int: ... -def unix_fd_source_new(fd: int, condition: IOCondition) -> Source: ... +def unix_fd_source_new(fd: int, condition: _IOConditionValueType) -> Source: ... def unix_get_passwd_entry(user_name: str) -> int: ... def unix_open_pipe(fds: _Sequence[int], flags: int) -> bool: ... def unix_set_fd_nonblocking(fd: int, nonblock: bool) -> bool: ... @@ -1387,7 +1389,7 @@ def utf8_find_prev_char(str: str, p: str) -> str | None: ... def utf8_get_char(p: str) -> str: ... def utf8_get_char_validated(p: str, max_len: int) -> str: ... def utf8_make_valid(str: str, len: int) -> str: ... -def utf8_normalize(str: str, len: int, mode: NormalizeMode) -> str | None: ... +def utf8_normalize(str: str, len: int, mode: _NormalizeModeValueType) -> str | None: ... def utf8_offset_to_pointer(str: str, offset: int) -> str: ... def utf8_pointer_to_offset(str: str, pos: str) -> int: ... def utf8_prev_char(p: str) -> str: ... @@ -2306,7 +2308,9 @@ class IOFuncs(_gi.Struct): @property def io_close(self) -> Callable[[IOChannel], IOStatus]: ... @property - def io_create_watch(self) -> Callable[[IOChannel, IOCondition], Source]: ... + def io_create_watch( + self, + ) -> Callable[[IOChannel, _IOConditionValueType], Source]: ... @property def io_free(self) -> Callable[[IOChannel], None]: ... @property @@ -3409,7 +3413,7 @@ class Source(GObject.GBoxed): def add_child_source(self, child_source: Source) -> None: ... def add_poll(self, fd: PollFD) -> None: ... - def add_unix_fd(self, fd: int, events: IOCondition) -> int: ... + def add_unix_fd(self, fd: int, events: _IOConditionValueType) -> int: ... def attach(self, context: MainContext | None = None) -> int: ... def destroy(self) -> None: ... def dup_context(self) -> MainContext | None: ... @@ -3424,7 +3428,7 @@ class Source(GObject.GBoxed): def get_time(self) -> int: ... def is_destroyed(self) -> bool: ... def modify_unix_fd( - self, tag: int | Any | None, new_events: IOCondition + self, tag: int | Any | None, new_events: _IOConditionValueType ) -> None: ... @classmethod def new(cls, source_funcs: SourceFuncs, struct_size: int) -> Source: ... @@ -4402,6 +4406,24 @@ class IOCondition(GObject.GFlags): OUT = 4 PRI = 2 +_IOConditionLiteralType: TypeAlias = Literal[ + "G_IO_ERR", + "G_IO_HUP", + "G_IO_IN", + "G_IO_NVAL", + "G_IO_OUT", + "G_IO_PRI", + "err", + "hup", + "in", + "nval", + "out", + "pri", +] +_IOConditionValueType: TypeAlias = ( + IOCondition | _IOConditionLiteralType | tuple[_IOConditionLiteralType, ...] +) + class IOFlags(IntFlag): APPEND = 1 GET_MASK = 31 @@ -4708,6 +4730,18 @@ class NormalizeMode(GObject.GEnum): NFKC = 3 NFKD = 2 +_NormalizeModeLiteralType: TypeAlias = Literal[ + "G_NORMALIZE_ALL", + "G_NORMALIZE_ALL_COMPOSE", + "G_NORMALIZE_DEFAULT", + "G_NORMALIZE_DEFAULT_COMPOSE", + "all", + "all-compose", + "default", + "default-compose", +] +_NormalizeModeValueType: TypeAlias = NormalizeMode | _NormalizeModeLiteralType + class NumberParserError(IntEnum): INVALID = 0 OUT_OF_BOUNDS = 1 @@ -4946,6 +4980,106 @@ class UnicodeBreakType(GObject.GEnum): ZERO_WIDTH_JOINER = 42 ZERO_WIDTH_SPACE = 5 +_UnicodeBreakTypeLiteralType: TypeAlias = Literal[ + "G_UNICODE_BREAK_AFTER", + "G_UNICODE_BREAK_AKSARA", + "G_UNICODE_BREAK_AKSARA_PRE_BASE", + "G_UNICODE_BREAK_AKSARA_START", + "G_UNICODE_BREAK_ALPHABETIC", + "G_UNICODE_BREAK_AMBIGUOUS", + "G_UNICODE_BREAK_BEFORE", + "G_UNICODE_BREAK_BEFORE_AND_AFTER", + "G_UNICODE_BREAK_CARRIAGE_RETURN", + "G_UNICODE_BREAK_CLOSE_PARANTHESIS", + "G_UNICODE_BREAK_CLOSE_PUNCTUATION", + "G_UNICODE_BREAK_COMBINING_MARK", + "G_UNICODE_BREAK_COMPLEX_CONTEXT", + "G_UNICODE_BREAK_CONDITIONAL_JAPANESE_STARTER", + "G_UNICODE_BREAK_CONTINGENT", + "G_UNICODE_BREAK_EMOJI_BASE", + "G_UNICODE_BREAK_EMOJI_MODIFIER", + "G_UNICODE_BREAK_EXCLAMATION", + "G_UNICODE_BREAK_HANGUL_LVT_SYLLABLE", + "G_UNICODE_BREAK_HANGUL_LV_SYLLABLE", + "G_UNICODE_BREAK_HANGUL_L_JAMO", + "G_UNICODE_BREAK_HANGUL_T_JAMO", + "G_UNICODE_BREAK_HANGUL_V_JAMO", + "G_UNICODE_BREAK_HEBREW_LETTER", + "G_UNICODE_BREAK_HYPHEN", + "G_UNICODE_BREAK_IDEOGRAPHIC", + "G_UNICODE_BREAK_INFIX_SEPARATOR", + "G_UNICODE_BREAK_INSEPARABLE", + "G_UNICODE_BREAK_LINE_FEED", + "G_UNICODE_BREAK_MANDATORY", + "G_UNICODE_BREAK_NEXT_LINE", + "G_UNICODE_BREAK_NON_BREAKING_GLUE", + "G_UNICODE_BREAK_NON_STARTER", + "G_UNICODE_BREAK_NUMERIC", + "G_UNICODE_BREAK_OPEN_PUNCTUATION", + "G_UNICODE_BREAK_POSTFIX", + "G_UNICODE_BREAK_PREFIX", + "G_UNICODE_BREAK_QUOTATION", + "G_UNICODE_BREAK_REGIONAL_INDICATOR", + "G_UNICODE_BREAK_SPACE", + "G_UNICODE_BREAK_SURROGATE", + "G_UNICODE_BREAK_SYMBOL", + "G_UNICODE_BREAK_UNKNOWN", + "G_UNICODE_BREAK_VIRAMA", + "G_UNICODE_BREAK_VIRAMA_FINAL", + "G_UNICODE_BREAK_WORD_JOINER", + "G_UNICODE_BREAK_ZERO_WIDTH_JOINER", + "G_UNICODE_BREAK_ZERO_WIDTH_SPACE", + "after", + "aksara", + "aksara-pre-base", + "aksara-start", + "alphabetic", + "ambiguous", + "before", + "before-and-after", + "carriage-return", + "close-paranthesis", + "close-punctuation", + "combining-mark", + "complex-context", + "conditional-japanese-starter", + "contingent", + "emoji-base", + "emoji-modifier", + "exclamation", + "hangul-l-jamo", + "hangul-lv-syllable", + "hangul-lvt-syllable", + "hangul-t-jamo", + "hangul-v-jamo", + "hebrew-letter", + "hyphen", + "ideographic", + "infix-separator", + "inseparable", + "line-feed", + "mandatory", + "next-line", + "non-breaking-glue", + "non-starter", + "numeric", + "open-punctuation", + "postfix", + "prefix", + "quotation", + "regional-indicator", + "space", + "surrogate", + "symbol", + "unknown", + "virama", + "virama-final", + "word-joiner", + "zero-width-joiner", + "zero-width-space", +] +_UnicodeBreakTypeValueType: TypeAlias = UnicodeBreakType | _UnicodeBreakTypeLiteralType + class UnicodeScript(GObject.GEnum): ADLAM = 132 AHOM = 126 @@ -5123,7 +5257,357 @@ class UnicodeScript(GObject.GEnum): @staticmethod def from_iso15924(iso15924: int) -> UnicodeScript: ... @staticmethod - def to_iso15924(script: UnicodeScript) -> int: ... + def to_iso15924(script: _UnicodeScriptValueType) -> int: ... + +_UnicodeScriptLiteralType: TypeAlias = Literal[ + "G_UNICODE_SCRIPT_ADLAM", + "G_UNICODE_SCRIPT_AHOM", + "G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS", + "G_UNICODE_SCRIPT_ARABIC", + "G_UNICODE_SCRIPT_ARMENIAN", + "G_UNICODE_SCRIPT_AVESTAN", + "G_UNICODE_SCRIPT_BALINESE", + "G_UNICODE_SCRIPT_BAMUM", + "G_UNICODE_SCRIPT_BASSA_VAH", + "G_UNICODE_SCRIPT_BATAK", + "G_UNICODE_SCRIPT_BENGALI", + "G_UNICODE_SCRIPT_BHAIKSUKI", + "G_UNICODE_SCRIPT_BOPOMOFO", + "G_UNICODE_SCRIPT_BRAHMI", + "G_UNICODE_SCRIPT_BRAILLE", + "G_UNICODE_SCRIPT_BUGINESE", + "G_UNICODE_SCRIPT_BUHID", + "G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL", + "G_UNICODE_SCRIPT_CARIAN", + "G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN", + "G_UNICODE_SCRIPT_CHAKMA", + "G_UNICODE_SCRIPT_CHAM", + "G_UNICODE_SCRIPT_CHEROKEE", + "G_UNICODE_SCRIPT_CHORASMIAN", + "G_UNICODE_SCRIPT_COMMON", + "G_UNICODE_SCRIPT_COPTIC", + "G_UNICODE_SCRIPT_CUNEIFORM", + "G_UNICODE_SCRIPT_CYPRIOT", + "G_UNICODE_SCRIPT_CYPRO_MINOAN", + "G_UNICODE_SCRIPT_CYRILLIC", + "G_UNICODE_SCRIPT_DESERET", + "G_UNICODE_SCRIPT_DEVANAGARI", + "G_UNICODE_SCRIPT_DIVES_AKURU", + "G_UNICODE_SCRIPT_DOGRA", + "G_UNICODE_SCRIPT_DUPLOYAN", + "G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS", + "G_UNICODE_SCRIPT_ELBASAN", + "G_UNICODE_SCRIPT_ELYMAIC", + "G_UNICODE_SCRIPT_ETHIOPIC", + "G_UNICODE_SCRIPT_GARAY", + "G_UNICODE_SCRIPT_GEORGIAN", + "G_UNICODE_SCRIPT_GLAGOLITIC", + "G_UNICODE_SCRIPT_GOTHIC", + "G_UNICODE_SCRIPT_GRANTHA", + "G_UNICODE_SCRIPT_GREEK", + "G_UNICODE_SCRIPT_GUJARATI", + "G_UNICODE_SCRIPT_GUNJALA_GONDI", + "G_UNICODE_SCRIPT_GURMUKHI", + "G_UNICODE_SCRIPT_GURUNG_KHEMA", + "G_UNICODE_SCRIPT_HAN", + "G_UNICODE_SCRIPT_HANGUL", + "G_UNICODE_SCRIPT_HANIFI_ROHINGYA", + "G_UNICODE_SCRIPT_HANUNOO", + "G_UNICODE_SCRIPT_HATRAN", + "G_UNICODE_SCRIPT_HEBREW", + "G_UNICODE_SCRIPT_HIRAGANA", + "G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC", + "G_UNICODE_SCRIPT_INHERITED", + "G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI", + "G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN", + "G_UNICODE_SCRIPT_INVALID_CODE", + "G_UNICODE_SCRIPT_JAVANESE", + "G_UNICODE_SCRIPT_KAITHI", + "G_UNICODE_SCRIPT_KANNADA", + "G_UNICODE_SCRIPT_KATAKANA", + "G_UNICODE_SCRIPT_KAWI", + "G_UNICODE_SCRIPT_KAYAH_LI", + "G_UNICODE_SCRIPT_KHAROSHTHI", + "G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT", + "G_UNICODE_SCRIPT_KHMER", + "G_UNICODE_SCRIPT_KHOJKI", + "G_UNICODE_SCRIPT_KHUDAWADI", + "G_UNICODE_SCRIPT_KIRAT_RAI", + "G_UNICODE_SCRIPT_LAO", + "G_UNICODE_SCRIPT_LATIN", + "G_UNICODE_SCRIPT_LEPCHA", + "G_UNICODE_SCRIPT_LIMBU", + "G_UNICODE_SCRIPT_LINEAR_A", + "G_UNICODE_SCRIPT_LINEAR_B", + "G_UNICODE_SCRIPT_LISU", + "G_UNICODE_SCRIPT_LYCIAN", + "G_UNICODE_SCRIPT_LYDIAN", + "G_UNICODE_SCRIPT_MAHAJANI", + "G_UNICODE_SCRIPT_MAKASAR", + "G_UNICODE_SCRIPT_MALAYALAM", + "G_UNICODE_SCRIPT_MANDAIC", + "G_UNICODE_SCRIPT_MANICHAEAN", + "G_UNICODE_SCRIPT_MARCHEN", + "G_UNICODE_SCRIPT_MASARAM_GONDI", + "G_UNICODE_SCRIPT_MATH", + "G_UNICODE_SCRIPT_MEDEFAIDRIN", + "G_UNICODE_SCRIPT_MEETEI_MAYEK", + "G_UNICODE_SCRIPT_MENDE_KIKAKUI", + "G_UNICODE_SCRIPT_MEROITIC_CURSIVE", + "G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS", + "G_UNICODE_SCRIPT_MIAO", + "G_UNICODE_SCRIPT_MODI", + "G_UNICODE_SCRIPT_MONGOLIAN", + "G_UNICODE_SCRIPT_MRO", + "G_UNICODE_SCRIPT_MULTANI", + "G_UNICODE_SCRIPT_MYANMAR", + "G_UNICODE_SCRIPT_NABATAEAN", + "G_UNICODE_SCRIPT_NAG_MUNDARI", + "G_UNICODE_SCRIPT_NANDINAGARI", + "G_UNICODE_SCRIPT_NEWA", + "G_UNICODE_SCRIPT_NEW_TAI_LUE", + "G_UNICODE_SCRIPT_NKO", + "G_UNICODE_SCRIPT_NUSHU", + "G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG", + "G_UNICODE_SCRIPT_OGHAM", + "G_UNICODE_SCRIPT_OLD_HUNGARIAN", + "G_UNICODE_SCRIPT_OLD_ITALIC", + "G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN", + "G_UNICODE_SCRIPT_OLD_PERMIC", + "G_UNICODE_SCRIPT_OLD_PERSIAN", + "G_UNICODE_SCRIPT_OLD_SOGDIAN", + "G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN", + "G_UNICODE_SCRIPT_OLD_TURKIC", + "G_UNICODE_SCRIPT_OLD_UYGHUR", + "G_UNICODE_SCRIPT_OL_CHIKI", + "G_UNICODE_SCRIPT_OL_ONAL", + "G_UNICODE_SCRIPT_ORIYA", + "G_UNICODE_SCRIPT_OSAGE", + "G_UNICODE_SCRIPT_OSMANYA", + "G_UNICODE_SCRIPT_PAHAWH_HMONG", + "G_UNICODE_SCRIPT_PALMYRENE", + "G_UNICODE_SCRIPT_PAU_CIN_HAU", + "G_UNICODE_SCRIPT_PHAGS_PA", + "G_UNICODE_SCRIPT_PHOENICIAN", + "G_UNICODE_SCRIPT_PSALTER_PAHLAVI", + "G_UNICODE_SCRIPT_REJANG", + "G_UNICODE_SCRIPT_RUNIC", + "G_UNICODE_SCRIPT_SAMARITAN", + "G_UNICODE_SCRIPT_SAURASHTRA", + "G_UNICODE_SCRIPT_SHARADA", + "G_UNICODE_SCRIPT_SHAVIAN", + "G_UNICODE_SCRIPT_SIDDHAM", + "G_UNICODE_SCRIPT_SIGNWRITING", + "G_UNICODE_SCRIPT_SINHALA", + "G_UNICODE_SCRIPT_SOGDIAN", + "G_UNICODE_SCRIPT_SORA_SOMPENG", + "G_UNICODE_SCRIPT_SOYOMBO", + "G_UNICODE_SCRIPT_SUNDANESE", + "G_UNICODE_SCRIPT_SUNUWAR", + "G_UNICODE_SCRIPT_SYLOTI_NAGRI", + "G_UNICODE_SCRIPT_SYRIAC", + "G_UNICODE_SCRIPT_TAGALOG", + "G_UNICODE_SCRIPT_TAGBANWA", + "G_UNICODE_SCRIPT_TAI_LE", + "G_UNICODE_SCRIPT_TAI_THAM", + "G_UNICODE_SCRIPT_TAI_VIET", + "G_UNICODE_SCRIPT_TAKRI", + "G_UNICODE_SCRIPT_TAMIL", + "G_UNICODE_SCRIPT_TANGSA", + "G_UNICODE_SCRIPT_TANGUT", + "G_UNICODE_SCRIPT_TELUGU", + "G_UNICODE_SCRIPT_THAANA", + "G_UNICODE_SCRIPT_THAI", + "G_UNICODE_SCRIPT_TIBETAN", + "G_UNICODE_SCRIPT_TIFINAGH", + "G_UNICODE_SCRIPT_TIRHUTA", + "G_UNICODE_SCRIPT_TODHRI", + "G_UNICODE_SCRIPT_TOTO", + "G_UNICODE_SCRIPT_TULU_TIGALARI", + "G_UNICODE_SCRIPT_UGARITIC", + "G_UNICODE_SCRIPT_UNKNOWN", + "G_UNICODE_SCRIPT_VAI", + "G_UNICODE_SCRIPT_VITHKUQI", + "G_UNICODE_SCRIPT_WANCHO", + "G_UNICODE_SCRIPT_WARANG_CITI", + "G_UNICODE_SCRIPT_YEZIDI", + "G_UNICODE_SCRIPT_YI", + "G_UNICODE_SCRIPT_ZANABAZAR_SQUARE", + "adlam", + "ahom", + "anatolian-hieroglyphs", + "arabic", + "armenian", + "avestan", + "balinese", + "bamum", + "bassa-vah", + "batak", + "bengali", + "bhaiksuki", + "bopomofo", + "brahmi", + "braille", + "buginese", + "buhid", + "canadian-aboriginal", + "carian", + "caucasian-albanian", + "chakma", + "cham", + "cherokee", + "chorasmian", + "common", + "coptic", + "cuneiform", + "cypriot", + "cypro-minoan", + "cyrillic", + "deseret", + "devanagari", + "dives-akuru", + "dogra", + "duployan", + "egyptian-hieroglyphs", + "elbasan", + "elymaic", + "ethiopic", + "garay", + "georgian", + "glagolitic", + "gothic", + "grantha", + "greek", + "gujarati", + "gunjala-gondi", + "gurmukhi", + "gurung-khema", + "han", + "hangul", + "hanifi-rohingya", + "hanunoo", + "hatran", + "hebrew", + "hiragana", + "imperial-aramaic", + "inherited", + "inscriptional-pahlavi", + "inscriptional-parthian", + "invalid-code", + "javanese", + "kaithi", + "kannada", + "katakana", + "kawi", + "kayah-li", + "kharoshthi", + "khitan-small-script", + "khmer", + "khojki", + "khudawadi", + "kirat-rai", + "lao", + "latin", + "lepcha", + "limbu", + "linear-a", + "linear-b", + "lisu", + "lycian", + "lydian", + "mahajani", + "makasar", + "malayalam", + "mandaic", + "manichaean", + "marchen", + "masaram-gondi", + "math", + "medefaidrin", + "meetei-mayek", + "mende-kikakui", + "meroitic-cursive", + "meroitic-hieroglyphs", + "miao", + "modi", + "mongolian", + "mro", + "multani", + "myanmar", + "nabataean", + "nag-mundari", + "nandinagari", + "new-tai-lue", + "newa", + "nko", + "nushu", + "nyiakeng-puachue-hmong", + "ogham", + "ol-chiki", + "ol-onal", + "old-hungarian", + "old-italic", + "old-north-arabian", + "old-permic", + "old-persian", + "old-sogdian", + "old-south-arabian", + "old-turkic", + "old-uyghur", + "oriya", + "osage", + "osmanya", + "pahawh-hmong", + "palmyrene", + "pau-cin-hau", + "phags-pa", + "phoenician", + "psalter-pahlavi", + "rejang", + "runic", + "samaritan", + "saurashtra", + "sharada", + "shavian", + "siddham", + "signwriting", + "sinhala", + "sogdian", + "sora-sompeng", + "soyombo", + "sundanese", + "sunuwar", + "syloti-nagri", + "syriac", + "tagalog", + "tagbanwa", + "tai-le", + "tai-tham", + "tai-viet", + "takri", + "tamil", + "tangsa", + "tangut", + "telugu", + "thaana", + "thai", + "tibetan", + "tifinagh", + "tirhuta", + "todhri", + "toto", + "tulu-tigalari", + "ugaritic", + "unknown", + "vai", + "vithkuqi", + "wancho", + "warang-citi", + "yezidi", + "yi", + "zanabazar-square", +] +_UnicodeScriptValueType: TypeAlias = UnicodeScript | _UnicodeScriptLiteralType class UnicodeType(GObject.GEnum): CLOSE_PUNCTUATION = 18 @@ -5157,6 +5641,70 @@ class UnicodeType(GObject.GEnum): UNASSIGNED = 2 UPPERCASE_LETTER = 9 +_UnicodeTypeLiteralType: TypeAlias = Literal[ + "G_UNICODE_CLOSE_PUNCTUATION", + "G_UNICODE_CONNECT_PUNCTUATION", + "G_UNICODE_CONTROL", + "G_UNICODE_CURRENCY_SYMBOL", + "G_UNICODE_DASH_PUNCTUATION", + "G_UNICODE_DECIMAL_NUMBER", + "G_UNICODE_ENCLOSING_MARK", + "G_UNICODE_FINAL_PUNCTUATION", + "G_UNICODE_FORMAT", + "G_UNICODE_INITIAL_PUNCTUATION", + "G_UNICODE_LETTER_NUMBER", + "G_UNICODE_LINE_SEPARATOR", + "G_UNICODE_LOWERCASE_LETTER", + "G_UNICODE_MATH_SYMBOL", + "G_UNICODE_MODIFIER_LETTER", + "G_UNICODE_MODIFIER_SYMBOL", + "G_UNICODE_NON_SPACING_MARK", + "G_UNICODE_OPEN_PUNCTUATION", + "G_UNICODE_OTHER_LETTER", + "G_UNICODE_OTHER_NUMBER", + "G_UNICODE_OTHER_PUNCTUATION", + "G_UNICODE_OTHER_SYMBOL", + "G_UNICODE_PARAGRAPH_SEPARATOR", + "G_UNICODE_PRIVATE_USE", + "G_UNICODE_SPACE_SEPARATOR", + "G_UNICODE_SPACING_MARK", + "G_UNICODE_SURROGATE", + "G_UNICODE_TITLECASE_LETTER", + "G_UNICODE_UNASSIGNED", + "G_UNICODE_UPPERCASE_LETTER", + "close-punctuation", + "connect-punctuation", + "control", + "currency-symbol", + "dash-punctuation", + "decimal-number", + "enclosing-mark", + "final-punctuation", + "format", + "initial-punctuation", + "letter-number", + "line-separator", + "lowercase-letter", + "math-symbol", + "modifier-letter", + "modifier-symbol", + "non-spacing-mark", + "open-punctuation", + "other-letter", + "other-number", + "other-punctuation", + "other-symbol", + "paragraph-separator", + "private-use", + "space-separator", + "spacing-mark", + "surrogate", + "titlecase-letter", + "unassigned", + "uppercase-letter", +] +_UnicodeTypeValueType: TypeAlias = UnicodeType | _UnicodeTypeLiteralType + class UnixPipeEnd(IntEnum): READ = 0 WRITE = 1 diff --git a/src/gi-stubs/repository/GLibUnix.pyi b/src/gi-stubs/repository/GLibUnix.pyi index 52884dee..b63e2ef6 100644 --- a/src/gi-stubs/repository/GLibUnix.pyi +++ b/src/gi-stubs/repository/GLibUnix.pyi @@ -1,39 +1,36 @@ -from typing import Any -from typing import TypeVar +from typing_extensions import Unpack from collections.abc import Callable -from collections.abc import Sequence from enum import IntEnum +from gi import _gi from gi.repository import GLib -from gi.repository import GObject -T = TypeVar("T") +_DataTs = TypeVarTuple("_DataTs", default=Unpack[tuple[()]]) def closefrom(lowfd: int) -> int: ... def error_quark() -> int: ... def fd_add_full( priority: int, fd: int, - condition: GLib.IOCondition, - function: Callable[..., bool], - *user_data: Any, + condition: GLib._IOConditionValueType, + function: Callable[[int, GLib._IOConditionValueType, Unpack[_DataTs]], bool], + *user_data: Unpack[_DataTs], ) -> int: ... -def fd_query_path(fd: int) -> str: ... -def fd_source_new(fd: int, condition: GLib.IOCondition) -> GLib.Source: ... +def fd_source_new(fd: int, condition: GLib._IOConditionValueType) -> GLib.Source: ... def fdwalk_set_cloexec(lowfd: int) -> int: ... -def get_passwd_entry(user_name: str) -> None: ... -def open_pipe(fds: Sequence[int], flags: int) -> bool: ... +def get_passwd_entry(user_name: str) -> int: ... +def open_pipe(fds: int, flags: int) -> bool: ... def set_fd_nonblocking(fd: int, nonblock: bool) -> bool: ... -def signal_add( - priority: int, signum: int, handler: Callable[..., bool], *user_data: Any -) -> int: ... def signal_add_full( - priority: int, signum: int, handler: Callable[..., bool], *user_data: Any + priority: int, + signum: int, + handler: Callable[[Unpack[_DataTs]], bool], + *user_data: Unpack[_DataTs], ) -> int: ... def signal_source_new(signum: int) -> GLib.Source: ... -class Pipe(GObject.GPointer): +class Pipe(_gi.Struct): """ :Constructors: diff --git a/src/gi-stubs/repository/GObject.pyi b/src/gi-stubs/repository/GObject.pyi index 0accd387..7f168b9f 100644 --- a/src/gi-stubs/repository/GObject.pyi +++ b/src/gi-stubs/repository/GObject.pyi @@ -1,7 +1,9 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -858,11 +860,11 @@ class Binding(Object): def __init__( self, *, - flags: BindingFlags = ..., - source: Object = ..., - source_property: str = ..., - target: Object = ..., - target_property: str = ..., + flags: _BindingFlagsValueType = ..., + source: Object | None = ..., + source_property: str | None = ..., + target: Object | None = ..., + target_property: str | None = ..., ) -> None: ... def dup_source(self) -> Object | None: ... def dup_target(self) -> Object | None: ... @@ -902,14 +904,14 @@ class BindingGroup(Object): source_property: str, target: Object, target_property: str, - flags: BindingFlags, + flags: _BindingFlagsValueType, ) -> None: ... def bind_full( self, source_property: str, target: Object, target_property: str, - flags: BindingFlags, + flags: _BindingFlagsValueType, transform_to: Callable[..., Any] | None = None, transform_from: Callable[..., Any] | None = None, ) -> None: ... @@ -2442,6 +2444,20 @@ class BindingFlags(GFlags): INVERT_BOOLEAN = 4 SYNC_CREATE = 2 +_BindingFlagsLiteralType: TypeAlias = Literal[ + "G_BINDING_BIDIRECTIONAL", + "G_BINDING_DEFAULT", + "G_BINDING_INVERT_BOOLEAN", + "G_BINDING_SYNC_CREATE", + "bidirectional", + "default", + "invert-boolean", + "sync-create", +] +_BindingFlagsValueType: TypeAlias = ( + BindingFlags | _BindingFlagsLiteralType | tuple[_BindingFlagsLiteralType, ...] +) + class ConnectFlags(IntFlag): AFTER = 1 DEFAULT = 0 diff --git a/src/gi-stubs/repository/GdkPixbuf.pyi b/src/gi-stubs/repository/GdkPixbuf.pyi index 7d54dd31..3e75c9b3 100644 --- a/src/gi-stubs/repository/GdkPixbuf.pyi +++ b/src/gi-stubs/repository/GdkPixbuf.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -82,7 +84,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): @property def n_channels(self) -> int: ... @property - def pixel_bytes(self) -> GLib.Bytes: ... + def pixel_bytes(self) -> GLib.Bytes | None: ... @property def pixels(self) -> int: ... @property @@ -96,11 +98,11 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): self, *, bits_per_sample: int = ..., - colorspace: Colorspace = ..., + colorspace: _ColorspaceValueType = ..., has_alpha: bool = ..., height: int = ..., n_channels: int = ..., - pixel_bytes: GLib.Bytes = ..., + pixel_bytes: GLib.Bytes | None = ..., pixels: int | Any | None = ..., rowstride: int = ..., width: int = ..., @@ -111,7 +113,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def apply_embedded_orientation(self) -> Pixbuf | None: ... @staticmethod def calculate_rowstride( - colorspace: Colorspace, + colorspace: _ColorspaceValueType, has_alpha: bool, bits_per_sample: int, width: int, @@ -128,7 +130,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): offset_y: float, scale_x: float, scale_y: float, - interp_type: InterpType, + interp_type: _InterpTypeValueType, overall_alpha: int, ) -> None: ... def composite_color( @@ -142,7 +144,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): offset_y: float, scale_x: float, scale_y: float, - interp_type: InterpType, + interp_type: _InterpTypeValueType, overall_alpha: int, check_x: int, check_y: int, @@ -154,7 +156,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): self, dest_width: int, dest_height: int, - interp_type: InterpType, + interp_type: _InterpTypeValueType, overall_alpha: int, check_size: int, color1: int, @@ -208,7 +210,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): @classmethod def new( cls, - colorspace: Colorspace, + colorspace: _ColorspaceValueType, has_alpha: bool, bits_per_sample: int, width: int, @@ -218,7 +220,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def new_from_bytes( cls, data: GLib.Bytes, - colorspace: Colorspace, + colorspace: _ColorspaceValueType, has_alpha: bool, bits_per_sample: int, width: int, @@ -303,7 +305,7 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): def read_pixel_bytes(self) -> GLib.Bytes: ... def read_pixels(self) -> int: ... def remove_option(self, key: str) -> bool: ... - def rotate_simple(self, angle: PixbufRotation) -> Pixbuf | None: ... + def rotate_simple(self, angle: _PixbufRotationValueType) -> Pixbuf | None: ... def saturate_and_pixelate( self, dest: Pixbuf, saturation: float, pixelate: bool ) -> None: ... @@ -362,10 +364,10 @@ class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon): offset_y: float, scale_x: float, scale_y: float, - interp_type: InterpType, + interp_type: _InterpTypeValueType, ) -> None: ... def scale_simple( - self, dest_width: int, dest_height: int, interp_type: InterpType + self, dest_width: int, dest_height: int, interp_type: _InterpTypeValueType ) -> Pixbuf | None: ... def set_option(self, key: str, value: str) -> bool: ... @@ -690,16 +692,36 @@ class PixbufFormatFlags(IntFlag): class Colorspace(GObject.GEnum): RGB = 0 +_ColorspaceLiteralType: TypeAlias = Literal["GDK_COLORSPACE_RGB", "rgb"] +_ColorspaceValueType: TypeAlias = Colorspace | _ColorspaceLiteralType + class InterpType(GObject.GEnum): BILINEAR = 2 HYPER = 3 NEAREST = 0 TILES = 1 +_InterpTypeLiteralType: TypeAlias = Literal[ + "GDK_INTERP_BILINEAR", + "GDK_INTERP_HYPER", + "GDK_INTERP_NEAREST", + "GDK_INTERP_TILES", + "bilinear", + "hyper", + "nearest", + "tiles", +] +_InterpTypeValueType: TypeAlias = InterpType | _InterpTypeLiteralType + class PixbufAlphaMode(GObject.GEnum): BILEVEL = 0 FULL = 1 +_PixbufAlphaModeLiteralType: TypeAlias = Literal[ + "GDK_PIXBUF_ALPHA_BILEVEL", "GDK_PIXBUF_ALPHA_FULL", "bilevel", "full" +] +_PixbufAlphaModeValueType: TypeAlias = PixbufAlphaMode | _PixbufAlphaModeLiteralType + class PixbufError(GObject.GEnum): BAD_OPTION = 2 CORRUPT_IMAGE = 0 @@ -711,8 +733,38 @@ class PixbufError(GObject.GEnum): @staticmethod def quark() -> int: ... +_PixbufErrorLiteralType: TypeAlias = Literal[ + "GDK_PIXBUF_ERROR_BAD_OPTION", + "GDK_PIXBUF_ERROR_CORRUPT_IMAGE", + "GDK_PIXBUF_ERROR_FAILED", + "GDK_PIXBUF_ERROR_INCOMPLETE_ANIMATION", + "GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY", + "GDK_PIXBUF_ERROR_UNKNOWN_TYPE", + "GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION", + "bad-option", + "corrupt-image", + "failed", + "incomplete-animation", + "insufficient-memory", + "unknown-type", + "unsupported-operation", +] +_PixbufErrorValueType: TypeAlias = PixbufError | _PixbufErrorLiteralType + class PixbufRotation(GObject.GEnum): CLOCKWISE = 270 COUNTERCLOCKWISE = 90 NONE = 0 UPSIDEDOWN = 180 + +_PixbufRotationLiteralType: TypeAlias = Literal[ + "GDK_PIXBUF_ROTATE_CLOCKWISE", + "GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE", + "GDK_PIXBUF_ROTATE_NONE", + "GDK_PIXBUF_ROTATE_UPSIDEDOWN", + "clockwise", + "counterclockwise", + "none", + "upsidedown", +] +_PixbufRotationValueType: TypeAlias = PixbufRotation | _PixbufRotationLiteralType diff --git a/src/gi-stubs/repository/GdkWayland.pyi b/src/gi-stubs/repository/GdkWayland.pyi index 8d4fb5dc..cc877131 100644 --- a/src/gi-stubs/repository/GdkWayland.pyi +++ b/src/gi-stubs/repository/GdkWayland.pyi @@ -1,13 +1,13 @@ from typing import Any -from typing import TypeVar +from typing import type_check_only +from typing_extensions import Unpack from collections.abc import Callable +from gi import _gi from gi.repository import _Gdk4 -from gi.repository import GObject -from gi.repository import Pango -T = TypeVar("T") +_DataTs = TypeVarTuple("_DataTs", default=Unpack[tuple[()]]) class WaylandDevice(_Gdk4.Device): """ @@ -46,43 +46,22 @@ class WaylandDevice(_Gdk4.Device): Signals from GObject: notify (GParam) """ - class Props(_Gdk4.Device.Props): - active_layout_index: int - caps_lock_state: bool - direction: Pango.Direction - display: _Gdk4.Display - has_bidi_layouts: bool - has_cursor: bool - layout_names: list[str] | None - modifier_state: _Gdk4.ModifierType - n_axes: int - name: str - num_lock_state: bool - num_touches: int - product_id: str | None - scroll_lock_state: bool - seat: _Gdk4.Seat - source: _Gdk4.InputSource - tool: _Gdk4.DeviceTool | None - vendor_id: str | None - - @property - def props(self) -> Props: ... def __init__( self, - display: _Gdk4.Display = ..., + *, + display: _Gdk4.Display | None = ..., has_cursor: bool = ..., - name: str = ..., + name: str | None = ..., num_touches: int = ..., - product_id: str = ..., - seat: _Gdk4.Seat = ..., - source: _Gdk4.InputSource = ..., - vendor_id: str = ..., + product_id: str | None = ..., + seat: _Gdk4.Seat | None = ..., + source: _Gdk4._InputSourceValueType = ..., + vendor_id: str | None = ..., ) -> None: ... def get_node_path(self) -> str | None: ... - def get_xkb_keymap(self) -> None: ... + def get_xkb_keymap(self) -> int: ... -class WaylandDeviceClass(GObject.GPointer): ... +class WaylandDeviceClass(_gi.Struct): ... class WaylandDisplay(_Gdk4.Display): """ @@ -111,22 +90,13 @@ class WaylandDisplay(_Gdk4.Display): Signals from GObject: notify (GParam) """ - class Props(_Gdk4.Display.Props): - composited: bool - dmabuf_formats: _Gdk4.DmabufFormats - input_shapes: bool - rgba: bool - shadow_width: bool - - @property - def props(self) -> Props: ... - def get_egl_display(self) -> None: ... + def get_egl_display(self) -> int: ... def get_startup_notification_id(self) -> str | None: ... def query_registry(self, global_: str) -> bool: ... def set_cursor_theme(self, name: str, size: int) -> None: ... def set_startup_notification_id(self, startup_id: str) -> None: ... -class WaylandDisplayClass(GObject.GPointer): ... +class WaylandDisplayClass(_gi.Struct): ... class WaylandGLContext(_Gdk4.GLContext): """ @@ -150,24 +120,16 @@ class WaylandGLContext(_Gdk4.GLContext): Signals from GObject: notify (GParam) """ - class Props(_Gdk4.GLContext.Props): - allowed_apis: _Gdk4.GLAPI - api: _Gdk4.GLAPI - shared_context: _Gdk4.GLContext | None - display: _Gdk4.Display | None - surface: _Gdk4.Surface | None - - @property - def props(self) -> Props: ... def __init__( self, - allowed_apis: _Gdk4.GLAPI = ..., - shared_context: _Gdk4.GLContext = ..., - display: _Gdk4.Display = ..., - surface: _Gdk4.Surface = ..., + *, + allowed_apis: _Gdk4._GLAPIValueType = ..., + shared_context: _Gdk4.GLContext | None = ..., + display: _Gdk4.Display | None = ..., + surface: _Gdk4.Surface | None = ..., ) -> None: ... -class WaylandGLContextClass(GObject.GPointer): ... +class WaylandGLContextClass(_gi.Struct): ... class WaylandMonitor(_Gdk4.Monitor): """ @@ -200,26 +162,9 @@ class WaylandMonitor(_Gdk4.Monitor): Signals from GObject: notify (GParam) """ - class Props(_Gdk4.Monitor.Props): - connector: str | None - description: str | None - display: _Gdk4.Display - geometry: _Gdk4.Rectangle - height_mm: int - manufacturer: str | None - model: str | None - refresh_rate: int - scale: float - scale_factor: int - subpixel_layout: _Gdk4.SubpixelLayout - valid: bool - width_mm: int - - @property - def props(self) -> Props: ... - def __init__(self, display: _Gdk4.Display = ...) -> None: ... + def __init__(self, *, display: _Gdk4.Display | None = ...) -> None: ... -class WaylandMonitorClass(GObject.GPointer): ... +class WaylandMonitorClass(_gi.Struct): ... class WaylandPopup(WaylandSurface, _Gdk4.Popup): """ @@ -251,27 +196,23 @@ class WaylandPopup(WaylandSurface, _Gdk4.Popup): Signals from GObject: notify (GParam) """ + @type_check_only class Props(WaylandSurface.Props): - cursor: _Gdk4.Cursor | None - display: _Gdk4.Display - frame_clock: _Gdk4.FrameClock - height: int - mapped: bool - scale: float - scale_factor: int - width: int - autohide: bool - parent: _Gdk4.Surface | None + @property + def autohide(self) -> bool: ... + @property + def parent(self) -> _Gdk4.Surface | None: ... @property def props(self) -> Props: ... def __init__( self, - cursor: _Gdk4.Cursor | None = ..., - display: _Gdk4.Display = ..., - frame_clock: _Gdk4.FrameClock = ..., + *, autohide: bool = ..., - parent: _Gdk4.Surface = ..., + parent: _Gdk4.Surface | None = ..., + cursor: _Gdk4.Cursor | None = ..., + display: _Gdk4.Display | None = ..., + frame_clock: _Gdk4.FrameClock | None = ..., ) -> None: ... class WaylandSeat(_Gdk4.Seat): @@ -296,14 +237,9 @@ class WaylandSeat(_Gdk4.Seat): Signals from GObject: notify (GParam) """ - class Props(_Gdk4.Seat.Props): - display: _Gdk4.Display - - @property - def props(self) -> Props: ... - def __init__(self, display: _Gdk4.Display = ...) -> None: ... + def __init__(self, *, display: _Gdk4.Display | None = ...) -> None: ... -class WaylandSeatClass(GObject.GPointer): ... +class WaylandSeatClass(_gi.Struct): ... class WaylandSurface(_Gdk4.Surface): """ @@ -335,23 +271,12 @@ class WaylandSurface(_Gdk4.Surface): Signals from GObject: notify (GParam) """ - class Props(_Gdk4.Surface.Props): - cursor: _Gdk4.Cursor | None - display: _Gdk4.Display - frame_clock: _Gdk4.FrameClock - height: int - mapped: bool - scale: float - scale_factor: int - width: int - - @property - def props(self) -> Props: ... def __init__( self, + *, cursor: _Gdk4.Cursor | None = ..., - display: _Gdk4.Display = ..., - frame_clock: _Gdk4.FrameClock = ..., + display: _Gdk4.Display | None = ..., + frame_clock: _Gdk4.FrameClock | None = ..., ) -> None: ... def force_next_commit(self) -> None: ... @@ -388,47 +313,66 @@ class WaylandToplevel(WaylandSurface, _Gdk4.Toplevel): Signals from GObject: notify (GParam) """ + @type_check_only class Props(WaylandSurface.Props): - cursor: _Gdk4.Cursor | None - display: _Gdk4.Display - frame_clock: _Gdk4.FrameClock - height: int - mapped: bool - scale: float - scale_factor: int - width: int - capabilities: _Gdk4.ToplevelCapabilities + @property + def capabilities(self) -> _Gdk4.ToplevelCapabilities: ... decorated: bool deletable: bool - fullscreen_mode: _Gdk4.FullscreenMode - gravity: _Gdk4.Gravity - icon_list: None + @property + def fullscreen_mode(self) -> _Gdk4.FullscreenMode: ... + @fullscreen_mode.setter + def fullscreen_mode(self, value: _Gdk4._FullscreenModeValueType) -> None: ... + @property + def gravity(self) -> _Gdk4.Gravity: ... + @gravity.setter + def gravity(self, value: _Gdk4._GravityValueType) -> None: ... + @property + def icon_list(self) -> int: ... + @icon_list.setter + def icon_list(self, value: int | Any | None) -> None: ... modal: bool - shortcuts_inhibited: bool - startup_id: str - state: _Gdk4.ToplevelState - title: str - transient_for: _Gdk4.Surface + @property + def shortcuts_inhibited(self) -> bool: ... + @property + def startup_id(self) -> str | None: ... + @startup_id.setter + def startup_id(self, value: str) -> None: ... + @property + def state(self) -> _Gdk4.ToplevelState: ... + @property + def title(self) -> str | None: ... + @title.setter + def title(self, value: str) -> None: ... + @property + def transient_for(self) -> _Gdk4.Surface | None: ... + @transient_for.setter + def transient_for(self, value: _Gdk4.Surface) -> None: ... @property def props(self) -> Props: ... def __init__( self, - cursor: _Gdk4.Cursor | None = ..., - display: _Gdk4.Display = ..., - frame_clock: _Gdk4.FrameClock = ..., + *, decorated: bool = ..., deletable: bool = ..., - fullscreen_mode: _Gdk4.FullscreenMode = ..., - gravity: _Gdk4.Gravity = ..., - icon_list: None = ..., + fullscreen_mode: _Gdk4._FullscreenModeValueType = ..., + gravity: _Gdk4._GravityValueType = ..., + icon_list: int | Any | None = ..., modal: bool = ..., startup_id: str = ..., title: str = ..., transient_for: _Gdk4.Surface = ..., + cursor: _Gdk4.Cursor | None = ..., + display: _Gdk4.Display | None = ..., + frame_clock: _Gdk4.FrameClock | None = ..., ) -> None: ... def drop_exported_handle(self, handle: str) -> None: ... - def export_handle(self, callback: Callable[..., None], *user_data: Any) -> bool: ... + def export_handle( + self, + callback: Callable[[WaylandToplevel, str, Unpack[_DataTs]], None], + *user_data: Unpack[_DataTs], + ) -> bool: ... def set_application_id(self, application_id: str) -> None: ... def set_transient_for_exported(self, parent_handle_str: str) -> bool: ... def unexport_handle(self) -> None: ... diff --git a/src/gi-stubs/repository/GdkX11.pyi b/src/gi-stubs/repository/GdkX11.pyi index cf819a5a..50a5b971 100644 --- a/src/gi-stubs/repository/GdkX11.pyi +++ b/src/gi-stubs/repository/GdkX11.pyi @@ -40,7 +40,7 @@ class X11AppLaunchContext(_Gdk4.AppLaunchContext): Signals from GObject: notify (GParam) """ - def __init__(self, *, display: _Gdk4.Display = ...) -> None: ... + def __init__(self, *, display: _Gdk4.Display | None = ...) -> None: ... class X11AppLaunchContextClass(_gi.Struct): ... @@ -66,7 +66,7 @@ class X11DeviceManagerXI2(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def display(self) -> _Gdk4.Display: ... + def display(self) -> _Gdk4.Display | None: ... @property def major(self) -> int: ... @property @@ -79,7 +79,7 @@ class X11DeviceManagerXI2(GObject.Object): def __init__( self, *, - display: _Gdk4.Display = ..., + display: _Gdk4.Display | None = ..., major: int = ..., minor: int = ..., opcode: int = ..., @@ -138,14 +138,14 @@ class X11DeviceXI2(_Gdk4.Device): self, *, device_id: int = ..., - display: _Gdk4.Display = ..., + display: _Gdk4.Display | None = ..., has_cursor: bool = ..., - name: str = ..., + name: str | None = ..., num_touches: int = ..., - product_id: str = ..., - seat: _Gdk4.Seat = ..., - source: _Gdk4.InputSource = ..., - vendor_id: str = ..., + product_id: str | None = ..., + seat: _Gdk4.Seat | None = ..., + source: _Gdk4._InputSourceValueType = ..., + vendor_id: str | None = ..., ) -> None: ... class X11DeviceXI2Class(_gi.Struct): ... @@ -242,12 +242,12 @@ class X11Drag(_Gdk4.Drag): def __init__( self, *, - actions: _Gdk4.DragAction = ..., - content: _Gdk4.ContentProvider = ..., - device: _Gdk4.Device = ..., - formats: _Gdk4.ContentFormats = ..., - selected_action: _Gdk4.DragAction = ..., - surface: _Gdk4.Surface = ..., + actions: _Gdk4._DragActionValueType = ..., + content: _Gdk4.ContentProvider | None = ..., + device: _Gdk4.Device | None = ..., + formats: _Gdk4.ContentFormats | None = ..., + selected_action: _Gdk4._DragActionValueType = ..., + surface: _Gdk4.Surface | None = ..., ) -> None: ... class X11DragClass(_gi.Struct): ... @@ -277,10 +277,10 @@ class X11GLContext(_Gdk4.GLContext): def __init__( self, *, - allowed_apis: _Gdk4.GLAPI = ..., - shared_context: _Gdk4.GLContext = ..., - display: _Gdk4.Display = ..., - surface: _Gdk4.Surface = ..., + allowed_apis: _Gdk4._GLAPIValueType = ..., + shared_context: _Gdk4.GLContext | None = ..., + display: _Gdk4.Display | None = ..., + surface: _Gdk4.Surface | None = ..., ) -> None: ... class X11GLContextClass(_gi.Struct): ... @@ -316,7 +316,7 @@ class X11Monitor(_Gdk4.Monitor): Signals from GObject: notify (GParam) """ - def __init__(self, *, display: _Gdk4.Display = ...) -> None: ... + def __init__(self, *, display: _Gdk4.Display | None = ...) -> None: ... def get_output(self) -> int: ... def get_workarea(self) -> _Gdk4.Rectangle: ... @@ -382,8 +382,8 @@ class X11Surface(_Gdk4.Surface): self, *, cursor: _Gdk4.Cursor | None = ..., - display: _Gdk4.Display = ..., - frame_clock: _Gdk4.FrameClock = ..., + display: _Gdk4.Display | None = ..., + frame_clock: _Gdk4.FrameClock | None = ..., ) -> None: ... def get_desktop(self) -> int: ... def get_group(self) -> _Gdk4.Surface | None: ... diff --git a/src/gi-stubs/repository/Gio.pyi b/src/gi-stubs/repository/Gio.pyi index fca3f7fa..ff7ab4fb 100644 --- a/src/gi-stubs/repository/Gio.pyi +++ b/src/gi-stubs/repository/Gio.pyi @@ -1,9 +1,12 @@ from typing import Any from typing import Final from typing import Generic +from typing import Literal from typing import overload from typing import Protocol from typing import type_check_only +from typing import TypeAlias +from typing_extensions import Never from typing_extensions import Self from typing_extensions import TypeVar from typing_extensions import TypeVarTuple @@ -163,7 +166,7 @@ def action_print_detailed_name( action_name: str, target_value: GLib.Variant | None = None ) -> str: ... def app_info_create_from_commandline( - commandline: str, application_name: str | None, flags: AppInfoCreateFlags + commandline: str, application_name: str | None, flags: _AppInfoCreateFlagsValueType ) -> AppInfo: ... def app_info_get_all() -> list[AppInfo]: ... def app_info_get_all_for_type(content_type: str) -> list[AppInfo]: ... @@ -214,7 +217,7 @@ def async_initable_newv_async( *user_data: Unpack[_DataTs], ) -> None: ... def bus_get( - bus_type: BusType, + bus_type: _BusTypeValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -222,12 +225,12 @@ def bus_get( ) -> None: ... def bus_get_finish(res: AsyncResult) -> DBusConnection: ... def bus_get_sync( - bus_type: BusType, cancellable: Cancellable | None = None + bus_type: _BusTypeValueType, cancellable: Cancellable | None = None ) -> DBusConnection: ... def bus_own_name( - bus_type: BusType, + bus_type: _BusTypeValueType, name: str, - flags: BusNameOwnerFlags, + flags: _BusNameOwnerFlagsValueType, bus_acquired_closure: Callable[..., Any] | None = None, name_acquired_closure: Callable[..., Any] | None = None, name_lost_closure: Callable[..., Any] | None = None, @@ -235,23 +238,23 @@ def bus_own_name( def bus_own_name_on_connection( connection: DBusConnection, name: str, - flags: BusNameOwnerFlags, + flags: _BusNameOwnerFlagsValueType, name_acquired_closure: Callable[..., Any] | None = None, name_lost_closure: Callable[..., Any] | None = None, ) -> int: ... def bus_unown_name(owner_id: int) -> None: ... def bus_unwatch_name(watcher_id: int) -> None: ... def bus_watch_name( - bus_type: BusType, + bus_type: _BusTypeValueType, name: str, - flags: BusNameWatcherFlags, + flags: _BusNameWatcherFlagsValueType, name_appeared_closure: Callable[..., Any] | None = None, name_vanished_closure: Callable[..., Any] | None = None, ) -> int: ... def bus_watch_name_on_connection( connection: DBusConnection, name: str, - flags: BusNameWatcherFlags, + flags: _BusNameWatcherFlagsValueType, name_appeared_closure: Callable[..., Any] | None = None, name_vanished_closure: Callable[..., Any] | None = None, ) -> int: ... @@ -275,7 +278,7 @@ def content_type_set_mime_dirs(dirs: Sequence[str] | None = None) -> None: ... def content_types_get_registered() -> list[str]: ... def dbus_address_escape_value(string: str) -> str: ... def dbus_address_get_for_bus_sync( - bus_type: BusType, cancellable: Cancellable | None = None + bus_type: _BusTypeValueType, cancellable: Cancellable | None = None ) -> str: ... def dbus_address_get_stream( address: str, @@ -422,17 +425,17 @@ def resolver_error_quark() -> int: ... def resource_error_quark() -> int: ... def resource_load(filename: str) -> Resource: ... def resources_enumerate_children( - path: str, lookup_flags: ResourceLookupFlags + path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> list[str]: ... def resources_get_info( - path: str, lookup_flags: ResourceLookupFlags + path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> tuple[bool, int, int]: ... def resources_has_children(path: str) -> bool: ... def resources_lookup_data( - path: str, lookup_flags: ResourceLookupFlags + path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> GLib.Bytes: ... def resources_open_stream( - path: str, lookup_flags: ResourceLookupFlags + path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> InputStream: ... def resources_register(resource: Resource) -> None: ... def resources_unregister(resource: Resource) -> None: ... @@ -723,7 +726,9 @@ class AppInfo(GObject.GInterface, Protocol): def can_remove_supports_type(self) -> bool: ... @staticmethod def create_from_commandline( - commandline: str, application_name: str | None, flags: AppInfoCreateFlags + commandline: str, + application_name: str | None, + flags: _AppInfoCreateFlagsValueType, ) -> AppInfo: ... def delete(self) -> bool: ... def dup(self) -> AppInfo: ... @@ -1022,9 +1027,15 @@ class Application(GObject.Object, ActionGroup, ActionMap): """ @type_check_only class Props(GObject.Object.Props): - action_group: ActionGroup | None + @property + def action_group(self) -> Never: ... + @action_group.setter + def action_group(self, value: ActionGroup | None) -> None: ... application_id: str | None - flags: ApplicationFlags + @property + def flags(self) -> ApplicationFlags: ... + @flags.setter + def flags(self, value: _ApplicationFlagsValueType) -> None: ... inactivity_timeout: int @property def is_busy(self) -> bool: ... @@ -1033,7 +1044,10 @@ class Application(GObject.Object, ActionGroup, ActionMap): @property def is_remote(self) -> bool: ... resource_base_path: str | None - version: str | None + @property + def version(self) -> str | None: ... + @version.setter + def version(self, value: str) -> None: ... @property def props(self) -> Props: ... @@ -1046,7 +1060,7 @@ class Application(GObject.Object, ActionGroup, ActionMap): *, action_group: ActionGroup | None = ..., application_id: str | None = ..., - flags: ApplicationFlags = ..., + flags: _ApplicationFlagsValueType = ..., inactivity_timeout: int = ..., resource_base_path: str | None = ..., version: str = ..., @@ -1120,7 +1134,7 @@ class Application(GObject.Object, ActionGroup, ActionMap): def mark_busy(self) -> None: ... @classmethod def new( - cls, application_id: str | None, flags: ApplicationFlags + cls, application_id: str | None, flags: _ApplicationFlagsValueType ) -> Application: ... def open(self, files: Sequence[File], hint: str) -> None: ... def quit(self) -> None: ... @@ -1132,7 +1146,7 @@ class Application(GObject.Object, ActionGroup, ActionMap): def set_action_group(self, action_group: ActionGroup | None = None) -> None: ... def set_application_id(self, application_id: str | None = None) -> None: ... def set_default(self) -> None: ... - def set_flags(self, flags: ApplicationFlags) -> None: ... + def set_flags(self, flags: _ApplicationFlagsValueType) -> None: ... def set_inactivity_timeout(self, inactivity_timeout: int) -> None: ... def set_option_context_description( self, description: str | None = None @@ -1229,9 +1243,9 @@ class ApplicationCommandLine(GObject.Object): def __init__( self, *, - arguments: GLib.Variant = ..., - options: GLib.Variant = ..., - platform_data: GLib.Variant = ..., + arguments: GLib.Variant | None = ..., + options: GLib.Variant | None = ..., + platform_data: GLib.Variant | None = ..., ) -> None: ... def create_file_for_arg(self, arg: str) -> File: ... def do_done(self) -> None: ... @@ -1396,7 +1410,7 @@ class BufferedInputStream(FilterInputStream, Seekable): self, *, buffer_size: int = ..., - base_stream: InputStream = ..., + base_stream: InputStream | None = ..., close_base_stream: bool = ..., ) -> None: ... def do_fill(self, count: int, cancellable: Cancellable | None) -> int: ... @@ -1502,7 +1516,7 @@ class BufferedOutputStream(FilterOutputStream, Seekable): *, auto_grow: bool = ..., buffer_size: int = ..., - base_stream: OutputStream = ..., + base_stream: OutputStream | None = ..., close_base_stream: bool = ..., ) -> None: ... def get_auto_grow(self) -> bool: ... @@ -1553,7 +1567,7 @@ class BytesIcon(GObject.Object, Icon, LoadableIcon): @property def props(self) -> Props: ... - def __init__(self, *, bytes: GLib.Bytes = ...) -> None: ... + def __init__(self, *, bytes: GLib.Bytes | None = ...) -> None: ... def get_bytes(self) -> GLib.Bytes: ... @classmethod def new(cls, bytes: GLib.Bytes) -> BytesIcon: ... @@ -1634,9 +1648,9 @@ class CharsetConverter(GObject.Object, Converter, Initable): @type_check_only class Props(GObject.Object.Props): @property - def from_charset(self) -> str: ... + def from_charset(self) -> str | None: ... @property - def to_charset(self) -> str: ... + def to_charset(self) -> str | None: ... use_fallback: bool @property @@ -1644,8 +1658,8 @@ class CharsetConverter(GObject.Object, Converter, Initable): def __init__( self, *, - from_charset: str = ..., - to_charset: str = ..., + from_charset: str | None = ..., + to_charset: str | None = ..., use_fallback: bool = ..., ) -> None: ... def get_num_fallbacks(self) -> int: ... @@ -1673,7 +1687,10 @@ class Converter(GObject.GInterface, Protocol): notify (GParam) """ def convert( - self, inbuf: Sequence[int], outbuf: Sequence[int], flags: ConverterFlags + self, + inbuf: Sequence[int], + outbuf: Sequence[int], + flags: _ConverterFlagsValueType, ) -> tuple[ConverterResult, int, int]: ... def convert_bytes(self, bytes: GLib.Bytes) -> GLib.Bytes: ... def reset(self) -> None: ... @@ -1692,7 +1709,14 @@ class ConverterIface(_gi.Struct): def convert( self, ) -> Callable[ - [Converter, Sequence[int] | None, int, Sequence[int], int, ConverterFlags], + [ + Converter, + Sequence[int] | None, + int, + Sequence[int], + int, + _ConverterFlagsValueType, + ], tuple[ConverterResult, int, int], ]: ... @property @@ -1733,8 +1757,8 @@ class ConverterInputStream(FilterInputStream, PollableInputStream): def __init__( self, *, - converter: Converter = ..., - base_stream: InputStream = ..., + converter: Converter | None = ..., + base_stream: InputStream | None = ..., close_base_stream: bool = ..., ) -> None: ... def get_converter(self) -> Converter: ... @@ -1791,8 +1815,8 @@ class ConverterOutputStream(FilterOutputStream, PollableOutputStream): def __init__( self, *, - converter: Converter = ..., - base_stream: OutputStream = ..., + converter: Converter | None = ..., + base_stream: OutputStream | None = ..., close_base_stream: bool = ..., ) -> None: ... def get_converter(self) -> Converter: ... @@ -1834,7 +1858,7 @@ class Credentials(GObject.Object): @classmethod def new(cls) -> Credentials: ... def set_native( - self, native_type: CredentialsType, native: int | Any | None + self, native_type: _CredentialsTypeValueType, native: int | Any | None ) -> None: ... def set_unix_user(self, uid: int) -> bool: ... def to_string(self) -> str: ... @@ -1984,12 +2008,12 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): def __init__( self, *, - address: str = ..., - authentication_observer: DBusAuthObserver = ..., + address: str | None = ..., + authentication_observer: DBusAuthObserver | None = ..., exit_on_close: bool = ..., - flags: DBusConnectionFlags = ..., - guid: str = ..., - stream: IOStream = ..., + flags: _DBusConnectionFlagsValueType = ..., + guid: str | None = ..., + stream: IOStream | None = ..., ) -> None: ... def add_filter( self, @@ -2006,7 +2030,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): method_name: str, parameters: GLib.Variant | None, reply_type: GLib.VariantType | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -2022,7 +2046,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): method_name: str, parameters: GLib.Variant | None, reply_type: GLib.VariantType | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, cancellable: Cancellable | None = None, ) -> GLib.Variant: ... @@ -2034,7 +2058,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): method_name: str, parameters: GLib.Variant | None, reply_type: GLib.VariantType | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, fd_list: UnixFDList | None = None, cancellable: Cancellable | None = None, @@ -2053,7 +2077,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): method_name: str, parameters: GLib.Variant | None, reply_type: GLib.VariantType | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, fd_list: UnixFDList | None = None, cancellable: Cancellable | None = None, @@ -2101,7 +2125,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): def new( stream: IOStream, guid: str | None, - flags: DBusConnectionFlags, + flags: _DBusConnectionFlagsValueType, observer: DBusAuthObserver | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -2113,7 +2137,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): @staticmethod def new_for_address( address: str, - flags: DBusConnectionFlags, + flags: _DBusConnectionFlagsValueType, observer: DBusAuthObserver | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -2126,7 +2150,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): def new_for_address_sync( cls, address: str, - flags: DBusConnectionFlags, + flags: _DBusConnectionFlagsValueType, observer: DBusAuthObserver | None = None, cancellable: Cancellable | None = None, ) -> DBusConnection: ... @@ -2135,7 +2159,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): cls, stream: IOStream, guid: str | None, - flags: DBusConnectionFlags, + flags: _DBusConnectionFlagsValueType, observer: DBusAuthObserver | None = None, cancellable: Cancellable | None = None, ) -> DBusConnection: ... @@ -2181,18 +2205,18 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): self, object_path: str, vtable: DBusSubtreeVTable, - flags: DBusSubtreeFlags, + flags: _DBusSubtreeFlagsValueType, user_data: int | Any | None, user_data_free_func: Callable[[Any | None], None], ) -> int: ... def remove_filter(self, filter_id: int) -> None: ... def send_message( - self, message: DBusMessage, flags: DBusSendMessageFlags + self, message: DBusMessage, flags: _DBusSendMessageFlagsValueType ) -> tuple[bool, int]: ... def send_message_with_reply( self, message: DBusMessage, - flags: DBusSendMessageFlags, + flags: _DBusSendMessageFlagsValueType, timeout_msec: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -2203,7 +2227,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): def send_message_with_reply_sync( self, message: DBusMessage, - flags: DBusSendMessageFlags, + flags: _DBusSendMessageFlagsValueType, timeout_msec: int, cancellable: Cancellable | None = None, ) -> tuple[DBusMessage, int]: ... @@ -2215,7 +2239,7 @@ class DBusConnection(GObject.Object, AsyncInitable, Initable): member: str | None, object_path: str | None, arg0: str | None, - flags: DBusSignalFlags, + flags: _DBusSignalFlagsValueType, callback: Callable[ [DBusConnection, str | None, str, str, str, GLib.Variant, Unpack[_DataTs]], None, @@ -2319,7 +2343,10 @@ class DBusInterfaceSkeleton(GObject.Object, DBusInterface): """ @type_check_only class Props(GObject.Object.Props): - g_flags: DBusInterfaceSkeletonFlags + @property + def g_flags(self) -> DBusInterfaceSkeletonFlags: ... + @g_flags.setter + def g_flags(self, value: _DBusInterfaceSkeletonFlagsValueType) -> None: ... @property def props(self) -> Props: ... @@ -2327,7 +2354,9 @@ class DBusInterfaceSkeleton(GObject.Object, DBusInterface): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> DBusInterfaceSkeletonPrivate: ... - def __init__(self, *, g_flags: DBusInterfaceSkeletonFlags = ...) -> None: ... + def __init__( + self, *, g_flags: _DBusInterfaceSkeletonFlagsValueType = ... + ) -> None: ... def do_flush(self) -> None: ... def do_g_authorize_method(self, invocation: DBusMethodInvocation) -> bool: ... def do_get_info(self) -> DBusInterfaceInfo: ... @@ -2343,7 +2372,7 @@ class DBusInterfaceSkeleton(GObject.Object, DBusInterface): def get_properties(self) -> GLib.Variant: ... def get_vtable(self) -> DBusInterfaceVTable: ... def has_connection(self, connection: DBusConnection) -> bool: ... - def set_flags(self, flags: DBusInterfaceSkeletonFlags) -> None: ... + def set_flags(self, flags: _DBusInterfaceSkeletonFlagsValueType) -> None: ... def unexport(self) -> None: ... def unexport_from_connection(self, connection: DBusConnection) -> None: ... @@ -2477,7 +2506,7 @@ class DBusMessage(GObject.Object): def get_error_name(self) -> str | None: ... def get_flags(self) -> DBusMessageFlags: ... def get_header( - self, header_field: DBusMessageHeaderField + self, header_field: _DBusMessageHeaderFieldValueType ) -> GLib.Variant | None: ... def get_header_fields(self) -> bytes: ... def get_interface(self) -> str | None: ... @@ -2496,7 +2525,7 @@ class DBusMessage(GObject.Object): def new(cls) -> DBusMessage: ... @classmethod def new_from_blob( - cls, blob: Sequence[int], capabilities: DBusCapabilityFlags + cls, blob: Sequence[int], capabilities: _DBusCapabilityFlagsValueType ) -> DBusMessage: ... @classmethod def new_method_call( @@ -2510,16 +2539,18 @@ class DBusMessage(GObject.Object): def new_signal(cls, path: str, interface_: str, signal: str) -> DBusMessage: ... def print_(self, indent: int) -> str: ... def set_body(self, body: GLib.Variant) -> None: ... - def set_byte_order(self, byte_order: DBusMessageByteOrder) -> None: ... + def set_byte_order(self, byte_order: _DBusMessageByteOrderValueType) -> None: ... def set_destination(self, value: str | None = None) -> None: ... def set_error_name(self, value: str) -> None: ... - def set_flags(self, flags: DBusMessageFlags) -> None: ... + def set_flags(self, flags: _DBusMessageFlagsValueType) -> None: ... def set_header( - self, header_field: DBusMessageHeaderField, value: GLib.Variant | None = None + self, + header_field: _DBusMessageHeaderFieldValueType, + value: GLib.Variant | None = None, ) -> None: ... def set_interface(self, value: str | None = None) -> None: ... def set_member(self, value: str | None = None) -> None: ... - def set_message_type(self, type: DBusMessageType) -> None: ... + def set_message_type(self, type: _DBusMessageTypeValueType) -> None: ... def set_num_unix_fds(self, value: int) -> None: ... def set_path(self, value: str | None = None) -> None: ... def set_reply_serial(self, value: int) -> None: ... @@ -2527,7 +2558,7 @@ class DBusMessage(GObject.Object): def set_serial(self, serial: int) -> None: ... def set_signature(self, value: str | None = None) -> None: ... def set_unix_fd_list(self, fd_list: UnixFDList | None = None) -> None: ... - def to_blob(self, capabilities: DBusCapabilityFlags) -> bytes: ... + def to_blob(self, capabilities: _DBusCapabilityFlagsValueType) -> bytes: ... def to_gerror(self) -> bool: ... class DBusMethodInfo(GObject.GBoxed): @@ -2708,7 +2739,7 @@ class DBusObjectManagerClient( @property def name_owner(self) -> str | None: ... @property - def object_path(self) -> str: ... + def object_path(self) -> str | None: ... @property def props(self) -> Props: ... @@ -2719,14 +2750,14 @@ class DBusObjectManagerClient( def __init__( self, *, - bus_type: BusType = ..., - connection: DBusConnection = ..., - flags: DBusObjectManagerClientFlags = ..., + bus_type: _BusTypeValueType = ..., + connection: DBusConnection | None = ..., + flags: _DBusObjectManagerClientFlagsValueType = ..., get_proxy_type_destroy_notify: int | Any | None = ..., get_proxy_type_func: int | Any | None = ..., get_proxy_type_user_data: int | Any | None = ..., - name: str = ..., - object_path: str = ..., + name: str | None = ..., + object_path: str | None = ..., ) -> None: ... def do_interface_proxy_properties_changed( self, @@ -2750,7 +2781,7 @@ class DBusObjectManagerClient( @staticmethod def new( connection: DBusConnection, - flags: DBusObjectManagerClientFlags, + flags: _DBusObjectManagerClientFlagsValueType, name: str, object_path: str, get_proxy_type_func: Callable[ @@ -2767,8 +2798,8 @@ class DBusObjectManagerClient( def new_finish(cls, res: AsyncResult) -> DBusObjectManagerClient: ... @staticmethod def new_for_bus( - bus_type: BusType, - flags: DBusObjectManagerClientFlags, + bus_type: _BusTypeValueType, + flags: _DBusObjectManagerClientFlagsValueType, name: str, object_path: str, get_proxy_type_func: Callable[ @@ -2786,8 +2817,8 @@ class DBusObjectManagerClient( @classmethod def new_for_bus_sync( cls, - bus_type: BusType, - flags: DBusObjectManagerClientFlags, + bus_type: _BusTypeValueType, + flags: _DBusObjectManagerClientFlagsValueType, name: str, object_path: str, get_proxy_type_func: Callable[ @@ -2801,7 +2832,7 @@ class DBusObjectManagerClient( def new_sync( cls, connection: DBusConnection, - flags: DBusObjectManagerClientFlags, + flags: _DBusObjectManagerClientFlagsValueType, name: str | None, object_path: str, get_proxy_type_func: Callable[ @@ -2901,7 +2932,7 @@ class DBusObjectManagerServer(GObject.Object, DBusObjectManager): class Props(GObject.Object.Props): connection: DBusConnection | None @property - def object_path(self) -> str: ... + def object_path(self) -> str | None: ... @property def props(self) -> Props: ... @@ -2910,7 +2941,7 @@ class DBusObjectManagerServer(GObject.Object, DBusObjectManager): @property def priv(self) -> DBusObjectManagerServerPrivate: ... def __init__( - self, *, connection: DBusConnection | None = ..., object_path: str = ... + self, *, connection: DBusConnection | None = ..., object_path: str | None = ... ) -> None: ... def export(self, object: DBusObjectSkeleton) -> None: ... def export_uniquely(self, object: DBusObjectSkeleton) -> None: ... @@ -2961,9 +2992,9 @@ class DBusObjectProxy(GObject.Object, DBusObject): @type_check_only class Props(GObject.Object.Props): @property - def g_connection(self) -> DBusConnection: ... + def g_connection(self) -> DBusConnection | None: ... @property - def g_object_path(self) -> str: ... + def g_object_path(self) -> str | None: ... @property def props(self) -> Props: ... @@ -2972,7 +3003,10 @@ class DBusObjectProxy(GObject.Object, DBusObject): @property def priv(self) -> DBusObjectProxyPrivate: ... def __init__( - self, *, g_connection: DBusConnection = ..., g_object_path: str = ... + self, + *, + g_connection: DBusConnection | None = ..., + g_object_path: str | None = ..., ) -> None: ... def get_connection(self) -> DBusConnection: ... @classmethod @@ -3019,7 +3053,7 @@ class DBusObjectSkeleton(GObject.Object, DBusObject): """ @type_check_only class Props(GObject.Object.Props): - g_object_path: str + g_object_path: str | None @property def props(self) -> Props: ... @@ -3027,7 +3061,7 @@ class DBusObjectSkeleton(GObject.Object, DBusObject): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> DBusObjectSkeletonPrivate: ... - def __init__(self, *, g_object_path: str = ...) -> None: ... + def __init__(self, *, g_object_path: str | None = ...) -> None: ... def add_interface(self, interface_: DBusInterfaceSkeleton) -> None: ... def do_authorize_method( self, interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation @@ -3191,19 +3225,19 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): @type_check_only class Props(GObject.Object.Props): @property - def g_connection(self) -> DBusConnection: ... + def g_connection(self) -> DBusConnection | None: ... g_default_timeout: int @property def g_flags(self) -> DBusProxyFlags: ... - g_interface_info: DBusInterfaceInfo + g_interface_info: DBusInterfaceInfo | None @property - def g_interface_name(self) -> str: ... + def g_interface_name(self) -> str | None: ... @property - def g_name(self) -> str: ... + def g_name(self) -> str | None: ... @property - def g_name_owner(self) -> str: ... + def g_name_owner(self) -> str | None: ... @property - def g_object_path(self) -> str: ... + def g_object_path(self) -> str | None: ... @property def props(self) -> Props: ... @@ -3214,20 +3248,20 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): def __init__( self, *, - g_bus_type: BusType = ..., - g_connection: DBusConnection = ..., + g_bus_type: _BusTypeValueType = ..., + g_connection: DBusConnection | None = ..., g_default_timeout: int = ..., - g_flags: DBusProxyFlags = ..., - g_interface_info: DBusInterfaceInfo = ..., - g_interface_name: str = ..., - g_name: str = ..., - g_object_path: str = ..., + g_flags: _DBusProxyFlagsValueType = ..., + g_interface_info: DBusInterfaceInfo | None = ..., + g_interface_name: str | None = ..., + g_name: str | None = ..., + g_object_path: str | None = ..., ) -> None: ... def call( self, method_name: str, parameters: GLib.Variant | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -3239,7 +3273,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): self, method_name: str, parameters: GLib.Variant | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, cancellable: Cancellable | None = None, ) -> GLib.Variant: ... @@ -3247,7 +3281,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): self, method_name: str, parameters: GLib.Variant | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, fd_list: UnixFDList | None = None, cancellable: Cancellable | None = None, @@ -3262,7 +3296,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): self, method_name: str, parameters: GLib.Variant | None, - flags: DBusCallFlags, + flags: _DBusCallFlagsValueType, timeout_msec: int, fd_list: UnixFDList | None = None, cancellable: Cancellable | None = None, @@ -3286,7 +3320,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): @staticmethod def new( connection: DBusConnection, - flags: DBusProxyFlags, + flags: _DBusProxyFlagsValueType, info: DBusInterfaceInfo | None, name: str | None, object_path: str, @@ -3300,8 +3334,8 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): def new_finish(cls, res: AsyncResult) -> DBusProxy: ... @staticmethod def new_for_bus( - bus_type: BusType, - flags: DBusProxyFlags, + bus_type: _BusTypeValueType, + flags: _DBusProxyFlagsValueType, info: DBusInterfaceInfo | None, name: str, object_path: str, @@ -3316,8 +3350,8 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): @classmethod def new_for_bus_sync( cls, - bus_type: BusType, - flags: DBusProxyFlags, + bus_type: _BusTypeValueType, + flags: _DBusProxyFlagsValueType, info: DBusInterfaceInfo | None, name: str, object_path: str, @@ -3328,7 +3362,7 @@ class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable): def new_sync( cls, connection: DBusConnection, - flags: DBusProxyFlags, + flags: _DBusProxyFlagsValueType, info: DBusInterfaceInfo | None, name: str | None, object_path: str, @@ -3392,9 +3426,9 @@ class DBusServer(GObject.Object, Initable): @property def active(self) -> bool: ... @property - def address(self) -> str: ... + def address(self) -> str | None: ... @property - def authentication_observer(self) -> DBusAuthObserver: ... + def authentication_observer(self) -> DBusAuthObserver | None: ... @property def client_address(self) -> str: ... @property @@ -3407,10 +3441,10 @@ class DBusServer(GObject.Object, Initable): def __init__( self, *, - address: str = ..., - authentication_observer: DBusAuthObserver = ..., - flags: DBusServerFlags = ..., - guid: str = ..., + address: str | None = ..., + authentication_observer: DBusAuthObserver | None = ..., + flags: _DBusServerFlagsValueType = ..., + guid: str | None = ..., ) -> None: ... def get_client_address(self) -> str: ... def get_flags(self) -> DBusServerFlags: ... @@ -3420,7 +3454,7 @@ class DBusServer(GObject.Object, Initable): def new_sync( cls, address: str, - flags: DBusServerFlags, + flags: _DBusServerFlagsValueType, guid: str, observer: DBusAuthObserver | None = None, cancellable: Cancellable | None = None, @@ -3494,8 +3528,14 @@ class DataInputStream(BufferedInputStream): """ @type_check_only class Props(BufferedInputStream.Props): - byte_order: DataStreamByteOrder - newline_type: DataStreamNewlineType + @property + def byte_order(self) -> DataStreamByteOrder: ... + @byte_order.setter + def byte_order(self, value: _DataStreamByteOrderValueType) -> None: ... + @property + def newline_type(self) -> DataStreamNewlineType: ... + @newline_type.setter + def newline_type(self, value: _DataStreamNewlineTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -3506,10 +3546,10 @@ class DataInputStream(BufferedInputStream): def __init__( self, *, - byte_order: DataStreamByteOrder = ..., - newline_type: DataStreamNewlineType = ..., + byte_order: _DataStreamByteOrderValueType = ..., + newline_type: _DataStreamNewlineTypeValueType = ..., buffer_size: int = ..., - base_stream: InputStream = ..., + base_stream: InputStream | None = ..., close_base_stream: bool = ..., ) -> None: ... # override @@ -3573,8 +3613,8 @@ class DataInputStream(BufferedInputStream): *user_data: Unpack[_DataTs], ) -> None: ... def read_upto_finish(self, result: AsyncResult) -> tuple[str, int]: ... - def set_byte_order(self, order: DataStreamByteOrder) -> None: ... - def set_newline_type(self, type: DataStreamNewlineType) -> None: ... + def set_byte_order(self, order: _DataStreamByteOrderValueType) -> None: ... + def set_newline_type(self, type: _DataStreamNewlineTypeValueType) -> None: ... class DataInputStreamClass(_gi.Struct): """ @@ -3612,7 +3652,10 @@ class DataOutputStream(FilterOutputStream, Seekable): """ @type_check_only class Props(FilterOutputStream.Props): - byte_order: DataStreamByteOrder + @property + def byte_order(self) -> DataStreamByteOrder: ... + @byte_order.setter + def byte_order(self, value: _DataStreamByteOrderValueType) -> None: ... @property def props(self) -> Props: ... @@ -3623,8 +3666,8 @@ class DataOutputStream(FilterOutputStream, Seekable): def __init__( self, *, - byte_order: DataStreamByteOrder = ..., - base_stream: OutputStream = ..., + byte_order: _DataStreamByteOrderValueType = ..., + base_stream: OutputStream | None = ..., close_base_stream: bool = ..., ) -> None: ... def get_byte_order(self) -> DataStreamByteOrder: ... @@ -3638,7 +3681,7 @@ class DataOutputStream(FilterOutputStream, Seekable): def put_uint16(self, data: int, cancellable: Cancellable | None = None) -> bool: ... def put_uint32(self, data: int, cancellable: Cancellable | None = None) -> bool: ... def put_uint64(self, data: int, cancellable: Cancellable | None = None) -> bool: ... - def set_byte_order(self, order: DataStreamByteOrder) -> None: ... + def set_byte_order(self, order: _DataStreamByteOrderValueType) -> None: ... class DataOutputStreamClass(_gi.Struct): """ @@ -3660,15 +3703,19 @@ class DatagramBased(GObject.GInterface, Protocol): Signals from GObject: notify (GParam) """ - def condition_check(self, condition: GLib.IOCondition) -> GLib.IOCondition: ... + def condition_check( + self, condition: GLib._IOConditionValueType + ) -> GLib.IOCondition: ... def condition_wait( self, - condition: GLib.IOCondition, + condition: GLib._IOConditionValueType, timeout: int, cancellable: Cancellable | None = None, ) -> bool: ... def create_source( - self, condition: GLib.IOCondition, cancellable: Cancellable | None = None + self, + condition: GLib._IOConditionValueType, + cancellable: Cancellable | None = None, ) -> GLib.Source: ... def receive_messages( self, @@ -3711,16 +3758,18 @@ class DatagramBasedInterface(_gi.Struct): def create_source( self, ) -> Callable[ - [DatagramBased, GLib.IOCondition, Cancellable | None], GLib.Source + [DatagramBased, GLib._IOConditionValueType, Cancellable | None], GLib.Source ]: ... @property def condition_check( self, - ) -> Callable[[DatagramBased, GLib.IOCondition], GLib.IOCondition]: ... + ) -> Callable[[DatagramBased, GLib._IOConditionValueType], GLib.IOCondition]: ... @property def condition_wait( self, - ) -> Callable[[DatagramBased, GLib.IOCondition, int, Cancellable | None], bool]: ... + ) -> Callable[ + [DatagramBased, GLib._IOConditionValueType, int, Cancellable | None], bool + ]: ... class DebugController(GObject.GInterface, Protocol): """ @@ -3755,7 +3804,7 @@ class DebugControllerDBus(GObject.Object, DebugController, Initable): @type_check_only class Props(GObject.Object.Props): @property - def connection(self) -> DBusConnection: ... + def connection(self) -> DBusConnection | None: ... debug_enabled: bool @property @@ -3763,7 +3812,7 @@ class DebugControllerDBus(GObject.Object, DebugController, Initable): @property def parent_instance(self) -> GObject.Object: ... def __init__( - self, *, connection: DBusConnection = ..., debug_enabled: bool = ... + self, *, connection: DBusConnection | None = ..., debug_enabled: bool = ... ) -> None: ... def do_authorize(self, invocation: DBusMethodInvocation) -> bool: ... @classmethod @@ -3817,7 +3866,7 @@ class Drive(GObject.GInterface, Protocol): def can_stop(self) -> bool: ... def eject( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -3826,7 +3875,7 @@ class Drive(GObject.GInterface, Protocol): def eject_finish(self, result: AsyncResult) -> bool: ... def eject_with_operation( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -3857,7 +3906,7 @@ class Drive(GObject.GInterface, Protocol): def poll_for_media_finish(self, result: AsyncResult) -> bool: ... def start( self, - flags: DriveStartFlags, + flags: _DriveStartFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -3867,7 +3916,7 @@ class Drive(GObject.GInterface, Protocol): def start_finish(self, result: AsyncResult) -> bool: ... def stop( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -3916,7 +3965,7 @@ class DriveIface(_gi.Struct): ) -> Callable[ [ Drive, - MountUnmountFlags, + _MountUnmountFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -3955,7 +4004,7 @@ class DriveIface(_gi.Struct): ) -> Callable[ [ Drive, - DriveStartFlags, + _DriveStartFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -3973,7 +4022,7 @@ class DriveIface(_gi.Struct): ) -> Callable[ [ Drive, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -3991,7 +4040,7 @@ class DriveIface(_gi.Struct): ) -> Callable[ [ Drive, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -4023,7 +4072,7 @@ class DtlsClientConnection(GObject.GInterface, Protocol): base_socket: DatagramBased, server_identity: SocketConnectable | None = None ) -> DtlsClientConnection: ... def set_server_identity(self, identity: SocketConnectable) -> None: ... - def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ... + def set_validation_flags(self, flags: _TlsCertificateFlagsValueType) -> None: ... class DtlsClientConnectionInterface(_gi.Struct): """ @@ -4054,11 +4103,11 @@ class DtlsConnection(GObject.GInterface, Protocol): ) -> None: ... def close_finish(self, result: AsyncResult) -> bool: ... def emit_accept_certificate( - self, peer_cert: TlsCertificate, errors: TlsCertificateFlags + self, peer_cert: TlsCertificate, errors: _TlsCertificateFlagsValueType ) -> bool: ... def get_certificate(self) -> TlsCertificate | None: ... def get_channel_binding_data( - self, type: TlsChannelBindingType + self, type: _TlsChannelBindingTypeValueType ) -> tuple[bool, bytes]: ... def get_ciphersuite_name(self) -> str | None: ... def get_database(self) -> TlsDatabase | None: ... @@ -4085,7 +4134,7 @@ class DtlsConnection(GObject.GInterface, Protocol): def set_certificate(self, certificate: TlsCertificate) -> None: ... def set_database(self, database: TlsDatabase | None = None) -> None: ... def set_interaction(self, interaction: TlsInteraction | None = None) -> None: ... - def set_rehandshake_mode(self, mode: TlsRehandshakeMode) -> None: ... + def set_rehandshake_mode(self, mode: _TlsRehandshakeModeValueType) -> None: ... def set_require_close_notify(self, require_close_notify: bool) -> None: ... def shutdown( self, @@ -4118,7 +4167,9 @@ class DtlsConnectionInterface(_gi.Struct): @property def accept_certificate( self, - ) -> Callable[[DtlsConnection, TlsCertificate, TlsCertificateFlags], bool]: ... + ) -> Callable[ + [DtlsConnection, TlsCertificate, _TlsCertificateFlagsValueType], bool + ]: ... @property def handshake(self) -> Callable[[DtlsConnection, Cancellable | None], bool]: ... @property @@ -4166,7 +4217,9 @@ class DtlsConnectionInterface(_gi.Struct): @property def get_binding_data( self, - ) -> Callable[[DtlsConnection, TlsChannelBindingType, Sequence[int]], bool]: ... + ) -> Callable[ + [DtlsConnection, _TlsChannelBindingTypeValueType, Sequence[int]], bool + ]: ... class DtlsServerConnection(GObject.GInterface, Protocol): """ @@ -4220,14 +4273,14 @@ class Emblem(GObject.Object, Icon): @property def props(self) -> Props: ... def __init__( - self, *, icon: GObject.Object = ..., origin: EmblemOrigin = ... + self, *, icon: GObject.Object | None = ..., origin: _EmblemOriginValueType = ... ) -> None: ... def get_icon(self) -> Icon: ... def get_origin(self) -> EmblemOrigin: ... @classmethod def new(cls, icon: Icon) -> Emblem: ... @classmethod - def new_with_origin(cls, icon: Icon, origin: EmblemOrigin) -> Emblem: ... + def new_with_origin(cls, icon: Icon, origin: _EmblemOriginValueType) -> Emblem: ... class EmblemClass(_gi.Struct): ... @@ -4251,7 +4304,7 @@ class EmblemedIcon(GObject.Object, Icon): @type_check_only class Props(GObject.Object.Props): @property - def gicon(self) -> Icon: ... + def gicon(self) -> Icon | None: ... @property def props(self) -> Props: ... @@ -4259,7 +4312,7 @@ class EmblemedIcon(GObject.Object, Icon): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> EmblemedIconPrivate: ... - def __init__(self, *, gicon: Icon = ...) -> None: ... + def __init__(self, *, gicon: Icon | None = ...) -> None: ... def add_emblem(self, emblem: Emblem) -> None: ... def clear_emblems(self) -> None: ... def get_emblems(self) -> list[Emblem]: ... @@ -4288,11 +4341,11 @@ class File(GObject.GInterface, Protocol): notify (GParam) """ def append_to( - self, flags: FileCreateFlags, cancellable: Cancellable | None = None + self, flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None ) -> FileOutputStream: ... def append_to_async( self, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4301,12 +4354,12 @@ class File(GObject.GInterface, Protocol): ) -> None: ... def append_to_finish(self, res: AsyncResult) -> FileOutputStream: ... def build_attribute_list_for_copy( - self, flags: FileCopyFlags, cancellable: Cancellable | None = None + self, flags: _FileCopyFlagsValueType, cancellable: Cancellable | None = None ) -> str: ... def copy( self, destination: File, - flags: FileCopyFlags, + flags: _FileCopyFlagsValueType, cancellable: Cancellable | None = None, progress_callback: Callable[[int, int, Unpack[_DataTs]], None] | None = None, *progress_callback_data: Unpack[_DataTs], @@ -4314,7 +4367,7 @@ class File(GObject.GInterface, Protocol): def copy_async( self, destination: File, - flags: FileCopyFlags, + flags: _FileCopyFlagsValueType, io_priority: int, cancellable: Cancellable | None, progress_callback_closure: Callable[..., Any] | None, @@ -4323,16 +4376,16 @@ class File(GObject.GInterface, Protocol): def copy_attributes( self, destination: File, - flags: FileCopyFlags, + flags: _FileCopyFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def copy_finish(self, res: AsyncResult) -> bool: ... def create( - self, flags: FileCreateFlags, cancellable: Cancellable | None = None + self, flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None ) -> FileOutputStream: ... def create_async( self, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4341,11 +4394,11 @@ class File(GObject.GInterface, Protocol): ) -> None: ... def create_finish(self, res: AsyncResult) -> FileOutputStream: ... def create_readwrite( - self, flags: FileCreateFlags, cancellable: Cancellable | None = None + self, flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None ) -> FileIOStream: ... def create_readwrite_async( self, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4366,7 +4419,7 @@ class File(GObject.GInterface, Protocol): def dup(self) -> File: ... def eject_mountable( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -4375,7 +4428,7 @@ class File(GObject.GInterface, Protocol): def eject_mountable_finish(self, result: AsyncResult) -> bool: ... def eject_mountable_with_operation( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4386,13 +4439,13 @@ class File(GObject.GInterface, Protocol): def enumerate_children( self, attributes: str, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> FileEnumerator: ... def enumerate_children_async( self, attributes: str, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4482,7 +4535,7 @@ class File(GObject.GInterface, Protocol): def make_symbolic_link_finish(self, result: AsyncResult) -> bool: ... def measure_disk_usage( self, - flags: FileMeasureFlags, + flags: _FileMeasureFlagsValueType, cancellable: Cancellable | None = None, progress_callback: Callable[[bool, int, int, int, Unpack[_DataTs]], None] | None = None, @@ -4492,17 +4545,17 @@ class File(GObject.GInterface, Protocol): self, result: AsyncResult ) -> tuple[bool, int, int, int]: ... def monitor( - self, flags: FileMonitorFlags, cancellable: Cancellable | None = None + self, flags: _FileMonitorFlagsValueType, cancellable: Cancellable | None = None ) -> FileMonitor: ... def monitor_directory( - self, flags: FileMonitorFlags, cancellable: Cancellable | None = None + self, flags: _FileMonitorFlagsValueType, cancellable: Cancellable | None = None ) -> FileMonitor: ... def monitor_file( - self, flags: FileMonitorFlags, cancellable: Cancellable | None = None + self, flags: _FileMonitorFlagsValueType, cancellable: Cancellable | None = None ) -> FileMonitor: ... def mount_enclosing_volume( self, - flags: MountMountFlags, + flags: _MountMountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4512,7 +4565,7 @@ class File(GObject.GInterface, Protocol): def mount_enclosing_volume_finish(self, result: AsyncResult) -> bool: ... def mount_mountable( self, - flags: MountMountFlags, + flags: _MountMountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4523,7 +4576,7 @@ class File(GObject.GInterface, Protocol): def move( self, destination: File, - flags: FileCopyFlags, + flags: _FileCopyFlagsValueType, cancellable: Cancellable | None = None, progress_callback: Callable[[int, int, Unpack[_DataTs]], None] | None = None, *progress_callback_data: Unpack[_DataTs], @@ -4531,7 +4584,7 @@ class File(GObject.GInterface, Protocol): def move_async( self, destination: File, - flags: FileCopyFlags, + flags: _FileCopyFlagsValueType, io_priority: int, cancellable: Cancellable | None, progress_callback_closure: Callable[..., Any] | None, @@ -4609,7 +4662,9 @@ class File(GObject.GInterface, Protocol): def query_default_handler_finish(self, result: AsyncResult) -> AppInfo: ... def query_exists(self, cancellable: Cancellable | None = None) -> bool: ... def query_file_type( - self, flags: FileQueryInfoFlags, cancellable: Cancellable | None = None + self, + flags: _FileQueryInfoFlagsValueType, + cancellable: Cancellable | None = None, ) -> FileType: ... def query_filesystem_info( self, attributes: str, cancellable: Cancellable | None = None @@ -4627,13 +4682,13 @@ class File(GObject.GInterface, Protocol): def query_info( self, attributes: str, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> FileInfo: ... def query_info_async( self, attributes: str, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4661,14 +4716,14 @@ class File(GObject.GInterface, Protocol): self, etag: str | None, make_backup: bool, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None, ) -> FileOutputStream: ... def replace_async( self, etag: str | None, make_backup: bool, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4680,7 +4735,7 @@ class File(GObject.GInterface, Protocol): contents: Sequence[int], etag: str | None, make_backup: bool, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None, ) -> tuple[bool, str | None]: ... def replace_contents_async( @@ -4688,7 +4743,7 @@ class File(GObject.GInterface, Protocol): contents: Sequence[int], etag: str | None, make_backup: bool, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -4699,7 +4754,7 @@ class File(GObject.GInterface, Protocol): contents: GLib.Bytes, etag: str | None, make_backup: bool, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -4711,14 +4766,14 @@ class File(GObject.GInterface, Protocol): self, etag: str | None, make_backup: bool, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, cancellable: Cancellable | None = None, ) -> FileIOStream: ... def replace_readwrite_async( self, etag: str | None, make_backup: bool, - flags: FileCreateFlags, + flags: _FileCreateFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4730,57 +4785,57 @@ class File(GObject.GInterface, Protocol): def set_attribute( self, attribute: str, - type: FileAttributeType, + type: _FileAttributeTypeValueType, value_p: int | Any | None, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_attribute_byte_string( self, attribute: str, value: str, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_attribute_int32( self, attribute: str, value: int, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_attribute_int64( self, attribute: str, value: int, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_attribute_string( self, attribute: str, value: str, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_attribute_uint32( self, attribute: str, value: int, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_attribute_uint64( self, attribute: str, value: int, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_attributes_async( self, info: FileInfo, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4791,7 +4846,7 @@ class File(GObject.GInterface, Protocol): def set_attributes_from_info( self, info: FileInfo, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None = None, ) -> bool: ... def set_display_name( @@ -4809,7 +4864,7 @@ class File(GObject.GInterface, Protocol): def set_display_name_finish(self, res: AsyncResult) -> File: ... def start_mountable( self, - flags: DriveStartFlags, + flags: _DriveStartFlagsValueType, start_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4819,7 +4874,7 @@ class File(GObject.GInterface, Protocol): def start_mountable_finish(self, result: AsyncResult) -> bool: ... def stop_mountable( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4840,7 +4895,7 @@ class File(GObject.GInterface, Protocol): def trash_finish(self, result: AsyncResult) -> bool: ... def unmount_mountable( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -4849,7 +4904,7 @@ class File(GObject.GInterface, Protocol): def unmount_mountable_finish(self, result: AsyncResult) -> bool: ... def unmount_mountable_with_operation( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -4885,7 +4940,10 @@ class FileAttributeInfoList(GObject.GBoxed): n_infos: int def __init__(self) -> None: ... def add( - self, name: str, type: FileAttributeType, flags: FileAttributeInfoFlags + self, + name: str, + type: _FileAttributeTypeValueType, + flags: _FileAttributeInfoFlagsValueType, ) -> None: ... def dup(self) -> FileAttributeInfoList: ... def lookup(self, name: str) -> FileAttributeInfo: ... @@ -4938,7 +4996,7 @@ class FileEnumerator(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> FileEnumeratorPrivate: ... - def __init__(self, *, container: File = ...) -> None: ... + def __init__(self, *, container: File | None = ...) -> None: ... # override def __iter__(self) -> Self: ... # override @@ -5177,7 +5235,7 @@ class FileIcon(GObject.Object, Icon, LoadableIcon): @property def props(self) -> Props: ... - def __init__(self, *, file: File = ...) -> None: ... + def __init__(self, *, file: File | None = ...) -> None: ... def get_file(self) -> File: ... @classmethod def new(cls, file: File) -> FileIcon: ... @@ -5228,7 +5286,7 @@ class FileIface(_gi.Struct): def enumerate_children( self, ) -> Callable[ - [File, str, FileQueryInfoFlags, Cancellable | None], FileEnumerator + [File, str, _FileQueryInfoFlagsValueType, Cancellable | None], FileEnumerator ]: ... @property def enumerate_children_async( @@ -5237,7 +5295,7 @@ class FileIface(_gi.Struct): [ File, str, - FileQueryInfoFlags, + _FileQueryInfoFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5252,7 +5310,9 @@ class FileIface(_gi.Struct): @property def query_info( self, - ) -> Callable[[File, str, FileQueryInfoFlags, Cancellable | None], FileInfo]: ... + ) -> Callable[ + [File, str, _FileQueryInfoFlagsValueType, Cancellable | None], FileInfo + ]: ... @property def query_info_async( self, @@ -5260,7 +5320,7 @@ class FileIface(_gi.Struct): [ File, str, - FileQueryInfoFlags, + _FileQueryInfoFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5342,9 +5402,9 @@ class FileIface(_gi.Struct): [ File, str, - FileAttributeType, + _FileAttributeTypeValueType, Any | None, - FileQueryInfoFlags, + _FileQueryInfoFlagsValueType, Cancellable | None, ], bool, @@ -5352,7 +5412,9 @@ class FileIface(_gi.Struct): @property def set_attributes_from_info( self, - ) -> Callable[[File, FileInfo, FileQueryInfoFlags, Cancellable | None], bool]: ... + ) -> Callable[ + [File, FileInfo, _FileQueryInfoFlagsValueType, Cancellable | None], bool + ]: ... @property def set_attributes_async( self, @@ -5360,7 +5422,7 @@ class FileIface(_gi.Struct): [ File, FileInfo, - FileQueryInfoFlags, + _FileQueryInfoFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5392,14 +5454,16 @@ class FileIface(_gi.Struct): @property def append_to( self, - ) -> Callable[[File, FileCreateFlags, Cancellable | None], FileOutputStream]: ... + ) -> Callable[ + [File, _FileCreateFlagsValueType, Cancellable | None], FileOutputStream + ]: ... @property def append_to_async( self, ) -> Callable[ [ File, - FileCreateFlags, + _FileCreateFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5412,14 +5476,16 @@ class FileIface(_gi.Struct): @property def create( self, - ) -> Callable[[File, FileCreateFlags, Cancellable | None], FileOutputStream]: ... + ) -> Callable[ + [File, _FileCreateFlagsValueType, Cancellable | None], FileOutputStream + ]: ... @property def create_async( self, ) -> Callable[ [ File, - FileCreateFlags, + _FileCreateFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5433,7 +5499,8 @@ class FileIface(_gi.Struct): def replace( self, ) -> Callable[ - [File, str | None, bool, FileCreateFlags, Cancellable | None], FileOutputStream + [File, str | None, bool, _FileCreateFlagsValueType, Cancellable | None], + FileOutputStream, ]: ... @property def replace_async( @@ -5443,7 +5510,7 @@ class FileIface(_gi.Struct): File, str | None, bool, - FileCreateFlags, + _FileCreateFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5529,7 +5596,7 @@ class FileIface(_gi.Struct): [ File, File, - FileCopyFlags, + _FileCopyFlagsValueType, Cancellable | None, Callable[[int, int, Any | None], None] | None, Any | None, @@ -5543,7 +5610,7 @@ class FileIface(_gi.Struct): [ File, File, - FileCopyFlags, + _FileCopyFlagsValueType, int, Cancellable | None, Callable[[int, int, Any | None], None] | None, @@ -5562,7 +5629,7 @@ class FileIface(_gi.Struct): [ File, File, - FileCopyFlags, + _FileCopyFlagsValueType, Cancellable | None, Callable[[int, int, Any | None], None] | None, Any | None, @@ -5576,7 +5643,7 @@ class FileIface(_gi.Struct): [ File, File, - FileCopyFlags, + _FileCopyFlagsValueType, int, Cancellable | None, Callable[[int, int, Any | None], None] | None, @@ -5594,7 +5661,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - MountMountFlags, + _MountMountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5610,7 +5677,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - MountUnmountFlags, + _MountUnmountFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -5625,7 +5692,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - MountUnmountFlags, + _MountUnmountFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -5640,7 +5707,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - MountMountFlags, + _MountMountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5653,11 +5720,15 @@ class FileIface(_gi.Struct): @property def monitor_dir( self, - ) -> Callable[[File, FileMonitorFlags, Cancellable | None], FileMonitor]: ... + ) -> Callable[ + [File, _FileMonitorFlagsValueType, Cancellable | None], FileMonitor + ]: ... @property def monitor_file( self, - ) -> Callable[[File, FileMonitorFlags, Cancellable | None], FileMonitor]: ... + ) -> Callable[ + [File, _FileMonitorFlagsValueType, Cancellable | None], FileMonitor + ]: ... @property def open_readwrite(self) -> Callable[[File, Cancellable | None], FileIOStream]: ... @property @@ -5678,14 +5749,16 @@ class FileIface(_gi.Struct): @property def create_readwrite( self, - ) -> Callable[[File, FileCreateFlags, Cancellable | None], FileIOStream]: ... + ) -> Callable[ + [File, _FileCreateFlagsValueType, Cancellable | None], FileIOStream + ]: ... @property def create_readwrite_async( self, ) -> Callable[ [ File, - FileCreateFlags, + _FileCreateFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5701,7 +5774,8 @@ class FileIface(_gi.Struct): def replace_readwrite( self, ) -> Callable[ - [File, str | None, bool, FileCreateFlags, Cancellable | None], FileIOStream + [File, str | None, bool, _FileCreateFlagsValueType, Cancellable | None], + FileIOStream, ]: ... @property def replace_readwrite_async( @@ -5711,7 +5785,7 @@ class FileIface(_gi.Struct): File, str | None, bool, - FileCreateFlags, + _FileCreateFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5729,7 +5803,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - DriveStartFlags, + _DriveStartFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5745,7 +5819,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5763,7 +5837,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5781,7 +5855,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -5813,7 +5887,7 @@ class FileIface(_gi.Struct): ) -> Callable[ [ File, - FileMeasureFlags, + _FileMeasureFlagsValueType, Cancellable | None, Callable[[bool, int, int, int, Any | None], None] | None, Any | None, @@ -5889,7 +5963,10 @@ class FileInfo(GObject.Object): def remove_attribute(self, attribute: str) -> None: ... def set_access_date_time(self, atime: GLib.DateTime) -> None: ... def set_attribute( - self, attribute: str, type: FileAttributeType, value_p: int | Any | None + self, + attribute: str, + type: _FileAttributeTypeValueType, + value_p: int | Any | None, ) -> None: ... def set_attribute_boolean(self, attribute: str, attr_value: bool) -> None: ... def set_attribute_byte_string(self, attribute: str, attr_value: str) -> None: ... @@ -5901,7 +5978,7 @@ class FileInfo(GObject.Object): self, attribute: str, attr_value: GObject.Object ) -> None: ... def set_attribute_status( - self, attribute: str, status: FileAttributeStatus + self, attribute: str, status: _FileAttributeStatusValueType ) -> bool: ... def set_attribute_string(self, attribute: str, attr_value: str) -> None: ... def set_attribute_stringv( @@ -5913,7 +5990,7 @@ class FileInfo(GObject.Object): def set_creation_date_time(self, creation_time: GLib.DateTime) -> None: ... def set_display_name(self, display_name: str) -> None: ... def set_edit_name(self, edit_name: str) -> None: ... - def set_file_type(self, type: FileType) -> None: ... + def set_file_type(self, type: _FileTypeValueType) -> None: ... def set_icon(self, icon: Icon) -> None: ... def set_is_hidden(self, is_hidden: bool) -> None: ... def set_is_symlink(self, is_symlink: bool) -> None: ... @@ -6056,10 +6133,13 @@ class FileMonitor(GObject.Object): def cancel(self) -> bool: ... def do_cancel(self) -> bool: ... def do_changed( - self, file: File, other_file: File, event_type: FileMonitorEvent + self, file: File, other_file: File, event_type: _FileMonitorEventValueType ) -> None: ... def emit_event( - self, child: File, other_file: File | None, event_type: FileMonitorEvent + self, + child: File, + other_file: File | None, + event_type: _FileMonitorEventValueType, ) -> None: ... def is_cancelled(self) -> bool: ... def set_rate_limit(self, limit_msecs: int) -> None: ... @@ -6077,7 +6157,7 @@ class FileMonitorClass(_gi.Struct): @property def changed( self, - ) -> Callable[[FileMonitor, File, File, FileMonitorEvent], None]: ... + ) -> Callable[[FileMonitor, File, File, _FileMonitorEventValueType], None]: ... @property def cancel(self) -> Callable[[FileMonitor], bool]: ... @@ -6254,7 +6334,7 @@ class FilterInputStream(InputStream): @property def base_stream(self) -> InputStream: ... def __init__( - self, *, base_stream: InputStream = ..., close_base_stream: bool = ... + self, *, base_stream: InputStream | None = ..., close_base_stream: bool = ... ) -> None: ... def get_base_stream(self) -> InputStream: ... def get_close_base_stream(self) -> bool: ... @@ -6302,7 +6382,7 @@ class FilterOutputStream(OutputStream): @property def base_stream(self) -> OutputStream: ... def __init__( - self, *, base_stream: OutputStream = ..., close_base_stream: bool = ... + self, *, base_stream: OutputStream | None = ..., close_base_stream: bool = ... ) -> None: ... def get_base_stream(self) -> OutputStream: ... def get_close_base_stream(self) -> bool: ... @@ -6435,7 +6515,7 @@ class IOStream(GObject.Object): def splice_async( self, stream2: IOStream, - flags: IOStreamSpliceFlags, + flags: _IOStreamSpliceFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -6593,7 +6673,7 @@ class InetAddress(GObject.Object): self, *, bytes: int | Any | None = ..., - family: SocketFamily = ..., + family: _SocketFamilyValueType = ..., flowinfo: int = ..., scope_id: int = ..., ) -> None: ... @@ -6614,19 +6694,23 @@ class InetAddress(GObject.Object): def get_native_size(self) -> int: ... def get_scope_id(self) -> int: ... @classmethod - def new_any(cls, family: SocketFamily) -> InetAddress: ... + def new_any(cls, family: _SocketFamilyValueType) -> InetAddress: ... @classmethod def new_from_bytes( - cls, bytes: Sequence[int], family: SocketFamily + cls, bytes: Sequence[int], family: _SocketFamilyValueType ) -> InetAddress: ... @classmethod def new_from_bytes_with_ipv6_info( - cls, bytes: Sequence[int], family: SocketFamily, flowinfo: int, scope_id: int + cls, + bytes: Sequence[int], + family: _SocketFamilyValueType, + flowinfo: int, + scope_id: int, ) -> InetAddress: ... @classmethod def new_from_string(cls, string: str) -> InetAddress | None: ... @classmethod - def new_loopback(cls, family: SocketFamily) -> InetAddress: ... + def new_loopback(cls, family: _SocketFamilyValueType) -> InetAddress: ... def to_string(self) -> str: ... class InetAddressClass(_gi.Struct): @@ -6666,7 +6750,10 @@ class InetAddressMask(GObject.Object, Initable): """ @type_check_only class Props(GObject.Object.Props): - address: InetAddress + @property + def address(self) -> InetAddress: ... + @address.setter + def address(self, value: InetAddress | None) -> None: ... @property def family(self) -> SocketFamily: ... length: int @@ -6677,7 +6764,9 @@ class InetAddressMask(GObject.Object, Initable): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> InetAddressMaskPrivate: ... - def __init__(self, *, address: InetAddress = ..., length: int = ...) -> None: ... + def __init__( + self, *, address: InetAddress | None = ..., length: int = ... + ) -> None: ... def equal(self, mask2: InetAddressMask) -> bool: ... def get_address(self) -> InetAddress: ... def get_family(self) -> SocketFamily: ... @@ -6747,7 +6836,7 @@ class InetSocketAddress(SocketAddress): def __init__( self, *, - address: InetAddress = ..., + address: InetAddress | None = ..., flowinfo: int = ..., port: int = ..., scope_id: int = ..., @@ -7260,7 +7349,7 @@ class MemoryMonitorInterface(_gi.Struct): @property def low_memory_warning( self, - ) -> Callable[[MemoryMonitor, MemoryMonitorWarningLevel], None]: ... + ) -> Callable[[MemoryMonitor, _MemoryMonitorWarningLevelValueType], None]: ... class MemoryOutputStream(OutputStream, PollableOutputStream, Seekable): """ @@ -7286,7 +7375,7 @@ class MemoryOutputStream(OutputStream, PollableOutputStream, Seekable): @type_check_only class Props(OutputStream.Props): @property - def data(self) -> int | None: ... + def data(self) -> int: ... @property def data_size(self) -> int: ... @property @@ -7583,7 +7672,7 @@ class Mount(GObject.GInterface, Protocol): def can_unmount(self) -> bool: ... def eject( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -7592,7 +7681,7 @@ class Mount(GObject.GInterface, Protocol): def eject_finish(self, result: AsyncResult) -> bool: ... def eject_with_operation( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -7624,7 +7713,7 @@ class Mount(GObject.GInterface, Protocol): def is_shadowed(self) -> bool: ... def remount( self, - flags: MountMountFlags, + flags: _MountMountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -7635,7 +7724,7 @@ class Mount(GObject.GInterface, Protocol): def shadow(self) -> None: ... def unmount( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -7644,7 +7733,7 @@ class Mount(GObject.GInterface, Protocol): def unmount_finish(self, result: AsyncResult) -> bool: ... def unmount_with_operation( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -7690,7 +7779,7 @@ class MountIface(_gi.Struct): ) -> Callable[ [ Mount, - MountUnmountFlags, + _MountUnmountFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -7705,7 +7794,7 @@ class MountIface(_gi.Struct): ) -> Callable[ [ Mount, - MountUnmountFlags, + _MountUnmountFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -7720,7 +7809,7 @@ class MountIface(_gi.Struct): ) -> Callable[ [ Mount, - MountMountFlags, + _MountMountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -7759,7 +7848,7 @@ class MountIface(_gi.Struct): ) -> Callable[ [ Mount, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -7775,7 +7864,7 @@ class MountIface(_gi.Struct): ) -> Callable[ [ Mount, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -7833,7 +7922,10 @@ class MountOperation(GObject.Object): is_tcrypt_hidden_volume: bool is_tcrypt_system_volume: bool password: str | None - password_save: PasswordSave + @property + def password_save(self) -> PasswordSave: ... + @password_save.setter + def password_save(self, value: _PasswordSaveValueType) -> None: ... pim: int username: str | None @@ -7852,7 +7944,7 @@ class MountOperation(GObject.Object): is_tcrypt_hidden_volume: bool = ..., is_tcrypt_system_volume: bool = ..., password: str | None = ..., - password_save: PasswordSave = ..., + password_save: _PasswordSaveValueType = ..., pim: int = ..., username: str | None = ..., ) -> None: ... @@ -7862,10 +7954,10 @@ class MountOperation(GObject.Object): message: str, default_user: str, default_domain: str, - flags: AskPasswordFlags, + flags: _AskPasswordFlagsValueType, ) -> None: ... def do_ask_question(self, message: str, choices: Sequence[str]) -> None: ... - def do_reply(self, result: MountOperationResult) -> None: ... + def do_reply(self, result: _MountOperationResultValueType) -> None: ... def do_show_processes( self, message: str, processes: Sequence[int], choices: Sequence[str] ) -> None: ... @@ -7883,14 +7975,14 @@ class MountOperation(GObject.Object): def get_username(self) -> str | None: ... @classmethod def new(cls) -> MountOperation: ... - def reply(self, result: MountOperationResult) -> None: ... + def reply(self, result: _MountOperationResultValueType) -> None: ... def set_anonymous(self, anonymous: bool) -> None: ... def set_choice(self, choice: int) -> None: ... def set_domain(self, domain: str | None = None) -> None: ... def set_is_tcrypt_hidden_volume(self, hidden_volume: bool) -> None: ... def set_is_tcrypt_system_volume(self, system_volume: bool) -> None: ... def set_password(self, password: str | None = None) -> None: ... - def set_password_save(self, save: PasswordSave) -> None: ... + def set_password_save(self, save: _PasswordSaveValueType) -> None: ... def set_pim(self, pim: int) -> None: ... def set_username(self, username: str | None = None) -> None: ... @@ -7907,11 +7999,15 @@ class MountOperationClass(_gi.Struct): @property def ask_password( self, - ) -> Callable[[MountOperation, str, str, str, AskPasswordFlags], None]: ... + ) -> Callable[ + [MountOperation, str, str, str, _AskPasswordFlagsValueType], None + ]: ... @property def ask_question(self) -> Callable[[MountOperation, str, Sequence[str]], None]: ... @property - def reply(self) -> Callable[[MountOperation, MountOperationResult], None]: ... + def reply( + self, + ) -> Callable[[MountOperation, _MountOperationResultValueType], None]: ... @property def aborted(self) -> Callable[[MountOperation], None]: ... @property @@ -8041,7 +8137,7 @@ class NetworkAddress(GObject.Object, SocketConnectable): @property def priv(self) -> NetworkAddressPrivate: ... def __init__( - self, *, hostname: str = ..., port: int = ..., scheme: str = ... + self, *, hostname: str | None = ..., port: int = ..., scheme: str | None = ... ) -> None: ... def get_hostname(self) -> str: ... def get_port(self) -> int: ... @@ -8164,10 +8260,10 @@ class NetworkService(GObject.Object, SocketConnectable): def __init__( self, *, - domain: str = ..., - protocol: str = ..., + domain: str | None = ..., + protocol: str | None = ..., scheme: str = ..., - service: str = ..., + service: str | None = ..., ) -> None: ... def get_domain(self) -> str: ... def get_protocol(self) -> str: ... @@ -8217,7 +8313,7 @@ class Notification(GObject.Object): self, action: str, target: GLib.Variant | None = None ) -> None: ... def set_icon(self, icon: Icon) -> None: ... - def set_priority(self, priority: NotificationPriority) -> None: ... + def set_priority(self, priority: _NotificationPriorityValueType) -> None: ... def set_title(self, title: str) -> None: ... def set_urgent(self, urgent: bool) -> None: ... @@ -8288,13 +8384,13 @@ class OutputStream(GObject.Object): def do_splice( self, source: InputStream, - flags: OutputStreamSpliceFlags, + flags: _OutputStreamSpliceFlagsValueType, cancellable: Cancellable | None, ) -> int: ... def do_splice_async( self, source: InputStream, - flags: OutputStreamSpliceFlags, + flags: _OutputStreamSpliceFlagsValueType, io_priority: int, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -8345,13 +8441,13 @@ class OutputStream(GObject.Object): def splice( self, source: InputStream, - flags: OutputStreamSpliceFlags, + flags: _OutputStreamSpliceFlagsValueType, cancellable: Cancellable | None = None, ) -> int: ... def splice_async( self, source: InputStream, - flags: OutputStreamSpliceFlags, + flags: _OutputStreamSpliceFlagsValueType, io_priority: int, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -8445,7 +8541,13 @@ class OutputStreamClass(_gi.Struct): def splice( self, ) -> Callable[ - [OutputStream, InputStream, OutputStreamSpliceFlags, Cancellable | None], int + [ + OutputStream, + InputStream, + _OutputStreamSpliceFlagsValueType, + Cancellable | None, + ], + int, ]: ... @property def flush(self) -> Callable[[OutputStream, Cancellable | None], bool]: ... @@ -8475,7 +8577,7 @@ class OutputStreamClass(_gi.Struct): [ OutputStream, InputStream, - OutputStreamSpliceFlags, + _OutputStreamSpliceFlagsValueType, int, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -8815,13 +8917,13 @@ class PropertyAction(GObject.Object, Action): @property def invert_boolean(self) -> bool: ... @property - def name(self) -> str: ... + def name(self) -> str | None: ... @property - def parameter_type(self) -> GLib.VariantType: ... + def parameter_type(self) -> GLib.VariantType | None: ... @property - def state(self) -> GLib.Variant: ... + def state(self) -> GLib.Variant | None: ... @property - def state_type(self) -> GLib.VariantType: ... + def state_type(self) -> GLib.VariantType | None: ... @property def props(self) -> Props: ... @@ -8829,9 +8931,9 @@ class PropertyAction(GObject.Object, Action): self, *, invert_boolean: bool = ..., - name: str = ..., - object: GObject.Object = ..., - property_name: str = ..., + name: str | None = ..., + object: GObject.Object | None = ..., + property_name: str | None = ..., ) -> None: ... @classmethod def new( @@ -8923,14 +9025,14 @@ class ProxyAddress(InetSocketAddress): def __init__( self, *, - destination_hostname: str = ..., + destination_hostname: str | None = ..., destination_port: int = ..., - destination_protocol: str = ..., - password: str = ..., - protocol: str = ..., - uri: str = ..., - username: str = ..., - address: InetAddress = ..., + destination_protocol: str | None = ..., + password: str | None = ..., + protocol: str | None = ..., + uri: str | None = ..., + username: str | None = ..., + address: InetAddress | None = ..., flowinfo: int = ..., port: int = ..., scope_id: int = ..., @@ -8987,12 +9089,12 @@ class ProxyAddressEnumerator(SocketAddressEnumerator): @type_check_only class Props(SocketAddressEnumerator.Props): @property - def connectable(self) -> SocketConnectable: ... + def connectable(self) -> SocketConnectable | None: ... @property def default_port(self) -> int: ... - proxy_resolver: ProxyResolver + proxy_resolver: ProxyResolver | None @property - def uri(self) -> str: ... + def uri(self) -> str | None: ... @property def props(self) -> Props: ... @@ -9003,10 +9105,10 @@ class ProxyAddressEnumerator(SocketAddressEnumerator): def __init__( self, *, - connectable: SocketConnectable = ..., + connectable: SocketConnectable | None = ..., default_port: int = ..., - proxy_resolver: ProxyResolver = ..., - uri: str = ..., + proxy_resolver: ProxyResolver | None = ..., + uri: str | None = ..., ) -> None: ... class ProxyAddressEnumeratorClass(_gi.Struct): @@ -9204,13 +9306,13 @@ class Resolver(GObject.Object): def do_lookup_by_name_with_flags( self, hostname: str, - flags: ResolverNameLookupFlags, + flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None, ) -> list[InetAddress]: ... def do_lookup_by_name_with_flags_async( self, hostname: str, - flags: ResolverNameLookupFlags, + flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None, @@ -9222,13 +9324,13 @@ class Resolver(GObject.Object): def do_lookup_records( self, rrname: str, - record_type: ResolverRecordType, + record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None, ) -> list[GLib.Variant]: ... def do_lookup_records_async( self, rrname: str, - record_type: ResolverRecordType, + record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None, @@ -9275,13 +9377,13 @@ class Resolver(GObject.Object): def lookup_by_name_with_flags( self, hostname: str, - flags: ResolverNameLookupFlags, + flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None = None, ) -> list[InetAddress]: ... def lookup_by_name_with_flags_async( self, hostname: str, - flags: ResolverNameLookupFlags, + flags: _ResolverNameLookupFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -9293,13 +9395,13 @@ class Resolver(GObject.Object): def lookup_records( self, rrname: str, - record_type: ResolverRecordType, + record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None = None, ) -> list[GLib.Variant]: ... def lookup_records_async( self, rrname: str, - record_type: ResolverRecordType, + record_type: _ResolverRecordTypeValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -9402,7 +9504,8 @@ class ResolverClass(_gi.Struct): def lookup_records( self, ) -> Callable[ - [Resolver, str, ResolverRecordType, Cancellable | None], list[GLib.Variant] + [Resolver, str, _ResolverRecordTypeValueType, Cancellable | None], + list[GLib.Variant], ]: ... @property def lookup_records_async( @@ -9411,7 +9514,7 @@ class ResolverClass(_gi.Struct): [ Resolver, str, - ResolverRecordType, + _ResolverRecordTypeValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -9429,7 +9532,7 @@ class ResolverClass(_gi.Struct): [ Resolver, str, - ResolverNameLookupFlags, + _ResolverNameLookupFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -9444,7 +9547,8 @@ class ResolverClass(_gi.Struct): def lookup_by_name_with_flags( self, ) -> Callable[ - [Resolver, str, ResolverNameLookupFlags, Cancellable | None], list[InetAddress] + [Resolver, str, _ResolverNameLookupFlagsValueType, Cancellable | None], + list[InetAddress], ]: ... class ResolverPrivate(_gi.Struct): ... @@ -9458,21 +9562,21 @@ class Resource(GObject.GBoxed): new_from_data(data:GLib.Bytes) -> Gio.Resource """ def enumerate_children( - self, path: str, lookup_flags: ResourceLookupFlags + self, path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> list[str]: ... def get_info( - self, path: str, lookup_flags: ResourceLookupFlags + self, path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> tuple[bool, int, int]: ... def has_children(self, path: str) -> bool: ... @staticmethod def load(filename: str) -> Resource: ... def lookup_data( - self, path: str, lookup_flags: ResourceLookupFlags + self, path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> GLib.Bytes: ... @classmethod def new_from_data(cls, data: GLib.Bytes) -> Resource: ... def open_stream( - self, path: str, lookup_flags: ResourceLookupFlags + self, path: str, lookup_flags: _ResourceLookupFlagsValueType ) -> InputStream: ... def ref(self) -> Resource: ... def unref(self) -> None: ... @@ -9544,19 +9648,19 @@ class Settings(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def backend(self) -> SettingsBackend: ... + def backend(self) -> SettingsBackend | None: ... @property def delay_apply(self) -> bool: ... @property def has_unapplied(self) -> bool: ... @property - def path(self) -> str: ... + def path(self) -> str | None: ... @property - def schema(self) -> str: ... + def schema(self) -> str | None: ... @property - def schema_id(self) -> str: ... + def schema_id(self) -> str | None: ... @property - def settings_schema(self) -> SettingsSchema: ... + def settings_schema(self) -> SettingsSchema | None: ... @property def props(self) -> Props: ... @@ -9567,11 +9671,11 @@ class Settings(GObject.Object): def __init__( self, *, - backend: SettingsBackend = ..., - path: str = ..., - schema: str = ..., - schema_id: str = ..., - settings_schema: SettingsSchema = ..., + backend: SettingsBackend | None = ..., + path: str | None = ..., + schema: str | None = ..., + schema_id: str | None = ..., + settings_schema: SettingsSchema | None = ..., ) -> None: ... def __bool__(self): ... # FIXME: Override is missing typing annotation def __contains__(self, key): ... # FIXME: Override is missing typing annotation @@ -9583,14 +9687,18 @@ class Settings(GObject.Object): ): ... # FIXME: Override is missing typing annotation def apply(self) -> None: ... def bind( - self, key: str, object: GObject.Object, property: str, flags: SettingsBindFlags + self, + key: str, + object: GObject.Object, + property: str, + flags: _SettingsBindFlagsValueType, ) -> None: ... def bind_with_mapping( self, key: str, object: GObject.Object, property: str, - flags: SettingsBindFlags, + flags: _SettingsBindFlagsValueType, get_mapping: Callable[..., Any] | None = None, set_mapping: Callable[..., Any] | None = None, ) -> None: ... @@ -9852,12 +9960,15 @@ class SimpleAction(GObject.Object, Action): class Props(GObject.Object.Props): enabled: bool @property - def name(self) -> str: ... + def name(self) -> str | None: ... @property - def parameter_type(self) -> GLib.VariantType: ... - state: GLib.Variant + def parameter_type(self) -> GLib.VariantType | None: ... @property - def state_type(self) -> GLib.VariantType: ... + def state(self) -> GLib.Variant | None: ... + @state.setter + def state(self, value: GLib.Variant) -> None: ... + @property + def state_type(self) -> GLib.VariantType | None: ... @property def props(self) -> Props: ... @@ -9865,8 +9976,8 @@ class SimpleAction(GObject.Object, Action): self, *, enabled: bool = ..., - name: str = ..., - parameter_type: GLib.VariantType = ..., + name: str | None = ..., + parameter_type: GLib.VariantType | None = ..., state: GLib.Variant = ..., ) -> None: ... @classmethod @@ -10009,14 +10120,17 @@ class SimpleIOStream(IOStream): @type_check_only class Props(IOStream.Props): @property - def input_stream(self) -> InputStream: ... + def input_stream(self) -> InputStream | None: ... @property - def output_stream(self) -> OutputStream: ... + def output_stream(self) -> OutputStream | None: ... @property def props(self) -> Props: ... def __init__( - self, *, input_stream: InputStream = ..., output_stream: OutputStream = ... + self, + *, + input_stream: InputStream | None = ..., + output_stream: OutputStream | None = ..., ) -> None: ... @classmethod def new( @@ -10065,7 +10179,10 @@ class SimpleProxyResolver(GObject.Object, ProxyResolver): @type_check_only class Props(GObject.Object.Props): default_proxy: str | None - ignore_hosts: list[str] + @property + def ignore_hosts(self) -> list[str]: ... + @ignore_hosts.setter + def ignore_hosts(self, value: Sequence[str]) -> None: ... @property def props(self) -> Props: ... @@ -10162,30 +10279,34 @@ class Socket(GObject.Object, DatagramBased, Initable): *, blocking: bool = ..., broadcast: bool = ..., - family: SocketFamily = ..., + family: _SocketFamilyValueType = ..., fd: int = ..., keepalive: bool = ..., listen_backlog: int = ..., multicast_loopback: bool = ..., multicast_ttl: int = ..., - protocol: SocketProtocol = ..., + protocol: _SocketProtocolValueType = ..., timeout: int = ..., ttl: int = ..., - type: SocketType = ..., + type: _SocketTypeValueType = ..., ) -> None: ... def accept(self, cancellable: Cancellable | None = None) -> Socket: ... def bind(self, address: SocketAddress, allow_reuse: bool) -> bool: ... def check_connect_result(self) -> bool: ... def close(self) -> bool: ... - def condition_check(self, condition: GLib.IOCondition) -> GLib.IOCondition: ... + def condition_check( + self, condition: GLib._IOConditionValueType + ) -> GLib.IOCondition: ... def condition_timed_wait( self, - condition: GLib.IOCondition, + condition: GLib._IOConditionValueType, timeout_us: int, cancellable: Cancellable | None = None, ) -> bool: ... def condition_wait( - self, condition: GLib.IOCondition, cancellable: Cancellable | None = None + self, + condition: GLib._IOConditionValueType, + cancellable: Cancellable | None = None, ) -> bool: ... def connect( self, address: SocketAddress, cancellable: Cancellable | None = None @@ -10231,7 +10352,10 @@ class Socket(GObject.Object, DatagramBased, Initable): def listen(self) -> bool: ... @classmethod def new( - cls, family: SocketFamily, type: SocketType, protocol: SocketProtocol + cls, + family: _SocketFamilyValueType, + type: _SocketTypeValueType, + protocol: _SocketProtocolValueType, ) -> Socket: ... @classmethod def new_from_fd(cls, fd: int) -> Socket: ... @@ -10471,14 +10595,31 @@ class SocketClient(GObject.Object): @type_check_only class Props(GObject.Object.Props): enable_proxy: bool - family: SocketFamily + @property + def family(self) -> SocketFamily: ... + @family.setter + def family(self, value: _SocketFamilyValueType) -> None: ... local_address: SocketAddress | None - protocol: SocketProtocol - proxy_resolver: ProxyResolver | None + @property + def protocol(self) -> SocketProtocol: ... + @protocol.setter + def protocol(self, value: _SocketProtocolValueType) -> None: ... + @property + def proxy_resolver(self) -> ProxyResolver: ... + @proxy_resolver.setter + def proxy_resolver(self, value: ProxyResolver | None) -> None: ... timeout: int tls: bool - tls_validation_flags: TlsCertificateFlags - type: SocketType + @property + def tls_validation_flags(self) -> TlsCertificateFlags: ... + @tls_validation_flags.setter + def tls_validation_flags( + self, value: _TlsCertificateFlagsValueType + ) -> None: ... + @property + def type(self) -> SocketType: ... + @type.setter + def type(self, value: _SocketTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -10490,14 +10631,14 @@ class SocketClient(GObject.Object): self, *, enable_proxy: bool = ..., - family: SocketFamily = ..., + family: _SocketFamilyValueType = ..., local_address: SocketAddress | None = ..., - protocol: SocketProtocol = ..., + protocol: _SocketProtocolValueType = ..., proxy_resolver: ProxyResolver | None = ..., timeout: int = ..., tls: bool = ..., - tls_validation_flags: TlsCertificateFlags = ..., - type: SocketType = ..., + tls_validation_flags: _TlsCertificateFlagsValueType = ..., + type: _SocketTypeValueType = ..., ) -> None: ... def add_application_proxy(self, protocol: str) -> None: ... def connect( @@ -10556,7 +10697,7 @@ class SocketClient(GObject.Object): def connect_to_uri_finish(self, result: AsyncResult) -> SocketConnection: ... def do_event( self, - event: SocketClientEvent, + event: _SocketClientEventValueType, connectable: SocketConnectable, connection: IOStream, ) -> None: ... @@ -10572,16 +10713,18 @@ class SocketClient(GObject.Object): @classmethod def new(cls) -> SocketClient: ... def set_enable_proxy(self, enable: bool) -> None: ... - def set_family(self, family: SocketFamily) -> None: ... + def set_family(self, family: _SocketFamilyValueType) -> None: ... def set_local_address(self, address: SocketAddress | None = None) -> None: ... - def set_protocol(self, protocol: SocketProtocol) -> None: ... + def set_protocol(self, protocol: _SocketProtocolValueType) -> None: ... def set_proxy_resolver( self, proxy_resolver: ProxyResolver | None = None ) -> None: ... - def set_socket_type(self, type: SocketType) -> None: ... + def set_socket_type(self, type: _SocketTypeValueType) -> None: ... def set_timeout(self, timeout: int) -> None: ... def set_tls(self, tls: bool) -> None: ... - def set_tls_validation_flags(self, flags: TlsCertificateFlags) -> None: ... + def set_tls_validation_flags( + self, flags: _TlsCertificateFlagsValueType + ) -> None: ... class SocketClientClass(_gi.Struct): """ @@ -10597,7 +10740,7 @@ class SocketClientClass(_gi.Struct): def event( self, ) -> Callable[ - [SocketClient, SocketClientEvent, SocketConnectable, IOStream], None + [SocketClient, _SocketClientEventValueType, SocketConnectable, IOStream], None ]: ... class SocketClientPrivate(_gi.Struct): ... @@ -10664,7 +10807,7 @@ class SocketConnection(IOStream): def parent_instance(self) -> IOStream: ... @property def priv(self) -> SocketConnectionPrivate: ... - def __init__(self, *, socket: Socket = ...) -> None: ... + def __init__(self, *, socket: Socket | None = ...) -> None: ... def connect( self, address: SocketAddress, cancellable: Cancellable | None = None ) -> bool: ... @@ -10679,11 +10822,14 @@ class SocketConnection(IOStream): def connect_finish(self, result: AsyncResult) -> bool: ... @staticmethod def factory_lookup_type( - family: SocketFamily, type: SocketType, protocol_id: int + family: _SocketFamilyValueType, type: _SocketTypeValueType, protocol_id: int ) -> type[Any]: ... @staticmethod def factory_register_type( - g_type: type[Any], family: SocketFamily, type: SocketType, protocol: int + g_type: type[Any], + family: _SocketFamilyValueType, + type: _SocketTypeValueType, + protocol: int, ) -> None: ... def get_local_address(self) -> SocketAddress: ... def get_remote_address(self) -> SocketAddress: ... @@ -10816,8 +10962,8 @@ class SocketListener(GObject.Object): def add_address( self, address: SocketAddress, - type: SocketType, - protocol: SocketProtocol, + type: _SocketTypeValueType, + protocol: _SocketProtocolValueType, source_object: GObject.Object | None = None, ) -> tuple[bool, SocketAddress]: ... def add_any_inet_port(self, source_object: GObject.Object | None = None) -> int: ... @@ -10829,7 +10975,9 @@ class SocketListener(GObject.Object): ) -> bool: ... def close(self) -> None: ... def do_changed(self) -> None: ... - def do_event(self, event: SocketListenerEvent, socket: Socket) -> None: ... + def do_event( + self, event: _SocketListenerEventValueType, socket: Socket + ) -> None: ... @classmethod def new(cls) -> SocketListener: ... def set_backlog(self, listen_backlog: int) -> None: ... @@ -10849,7 +10997,7 @@ class SocketListenerClass(_gi.Struct): @property def event( self, - ) -> Callable[[SocketListener, SocketListenerEvent, Socket], None]: ... + ) -> Callable[[SocketListener, _SocketListenerEventValueType, Socket], None]: ... class SocketListenerPrivate(_gi.Struct): ... class SocketPrivate(_gi.Struct): ... @@ -10978,7 +11126,10 @@ class Subprocess(GObject.Object, Initable): notify (GParam) """ def __init__( - self, *, argv: Sequence[str] = ..., flags: SubprocessFlags = ... + self, + *, + argv: Sequence[str] | None = ..., + flags: _SubprocessFlagsValueType = ..., ) -> None: ... def communicate( self, @@ -11022,7 +11173,9 @@ class Subprocess(GObject.Object, Initable): def get_successful(self) -> bool: ... def get_term_sig(self) -> int: ... @classmethod - def new(cls, argv: Sequence[str], flags: SubprocessFlags) -> Subprocess: ... + def new( + cls, argv: Sequence[str], flags: _SubprocessFlagsValueType + ) -> Subprocess: ... def send_signal(self, signal_num: int) -> None: ... def wait(self, cancellable: Cancellable | None = None) -> bool: ... def wait_async( @@ -11060,14 +11213,14 @@ class SubprocessLauncher(GObject.Object): Signals from GObject: notify (GParam) """ - def __init__(self, *, flags: SubprocessFlags = ...) -> None: ... + def __init__(self, *, flags: _SubprocessFlagsValueType = ...) -> None: ... def close(self) -> None: ... def getenv(self, variable: str) -> str | None: ... @classmethod - def new(cls, flags: SubprocessFlags) -> SubprocessLauncher: ... + def new(cls, flags: _SubprocessFlagsValueType) -> SubprocessLauncher: ... def set_cwd(self, cwd: str) -> None: ... def set_environ(self, env: Sequence[str]) -> None: ... - def set_flags(self, flags: SubprocessFlags) -> None: ... + def set_flags(self, flags: _SubprocessFlagsValueType) -> None: ... def set_stderr_file_path(self, path: str | None = None) -> None: ... def set_stdin_file_path(self, path: str | None = None) -> None: ... def set_stdout_file_path(self, path: str | None = None) -> None: ... @@ -11214,7 +11367,7 @@ class TcpConnection(SocketConnection): @property def priv(self) -> TcpConnectionPrivate: ... def __init__( - self, *, graceful_disconnect: bool = ..., socket: Socket = ... + self, *, graceful_disconnect: bool = ..., socket: Socket | None = ... ) -> None: ... def get_graceful_disconnect(self) -> bool: ... def set_graceful_disconnect(self, graceful_disconnect: bool) -> None: ... @@ -11274,9 +11427,9 @@ class TcpWrapperConnection(TcpConnection): def __init__( self, *, - base_io_stream: IOStream = ..., + base_io_stream: IOStream | None = ..., graceful_disconnect: bool = ..., - socket: Socket = ..., + socket: Socket | None = ..., ) -> None: ... def get_base_io_stream(self) -> IOStream: ... @classmethod @@ -11319,13 +11472,13 @@ class TestDBus(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, flags: TestDBusFlags = ...) -> None: ... + def __init__(self, *, flags: _TestDBusFlagsValueType = ...) -> None: ... def add_service_dir(self, path: str) -> None: ... def down(self) -> None: ... def get_bus_address(self) -> str | None: ... def get_flags(self) -> TestDBusFlags: ... @classmethod - def new(cls, flags: TestDBusFlags) -> TestDBus: ... + def new(cls, flags: _TestDBusFlagsValueType) -> TestDBus: ... def stop(self) -> None: ... @staticmethod def unset() -> None: ... @@ -11364,8 +11517,8 @@ class ThemedIcon(GObject.Object, Icon): def __init__( self, *, - name: str = ..., - names: Sequence[str] = ..., + name: str | None = ..., + names: Sequence[str] | None = ..., use_default_fallbacks: bool = ..., ) -> None: ... def append_name(self, iconname: str) -> None: ... @@ -11571,11 +11724,11 @@ class TlsCertificate(GObject.Object): @property def certificate(self) -> bytes: ... @property - def certificate_pem(self) -> str: ... + def certificate_pem(self) -> str | None: ... @property - def dns_names(self) -> list[int] | None: ... + def dns_names(self) -> list[int]: ... @property - def ip_addresses(self) -> list[int] | None: ... + def ip_addresses(self) -> list[int]: ... @property def issuer(self) -> TlsCertificate | None: ... @property @@ -11585,13 +11738,13 @@ class TlsCertificate(GObject.Object): @property def not_valid_before(self) -> GLib.DateTime | None: ... @property - def pkcs11_uri(self) -> str: ... + def pkcs11_uri(self) -> str | None: ... @property def private_key(self) -> bytes: ... @property - def private_key_pem(self) -> str: ... + def private_key_pem(self) -> str | None: ... @property - def private_key_pkcs11_uri(self) -> str: ... + def private_key_pkcs11_uri(self) -> str | None: ... @property def subject_name(self) -> str | None: ... @@ -11604,15 +11757,15 @@ class TlsCertificate(GObject.Object): def __init__( self, *, - certificate: Sequence[int] = ..., - certificate_pem: str = ..., - issuer: TlsCertificate = ..., - password: str = ..., - pkcs11_uri: str = ..., - pkcs12_data: Sequence[int] = ..., - private_key: Sequence[int] = ..., - private_key_pem: str = ..., - private_key_pkcs11_uri: str = ..., + certificate: Sequence[int] | None = ..., + certificate_pem: str | None = ..., + issuer: TlsCertificate | None = ..., + password: str | None = ..., + pkcs11_uri: str | None = ..., + pkcs12_data: Sequence[int] | None = ..., + private_key: Sequence[int] | None = ..., + private_key_pem: str | None = ..., + private_key_pkcs11_uri: str | None = ..., ) -> None: ... def do_verify( self, identity: SocketConnectable | None, trusted_ca: TlsCertificate | None @@ -11691,7 +11844,7 @@ class TlsClientConnection(GObject.GInterface, Protocol): ) -> TlsClientConnection: ... def set_server_identity(self, identity: SocketConnectable) -> None: ... def set_use_ssl3(self, use_ssl3: bool) -> None: ... - def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ... + def set_validation_flags(self, flags: _TlsCertificateFlagsValueType) -> None: ... class TlsClientConnectionInterface(_gi.Struct): """ @@ -11746,10 +11899,16 @@ class TlsConnection(IOStream): """ @type_check_only class Props(IOStream.Props): - advertised_protocols: list[str] | None @property - def base_io_stream(self) -> IOStream: ... - certificate: TlsCertificate | None + def advertised_protocols(self) -> list[str]: ... + @advertised_protocols.setter + def advertised_protocols(self, value: Sequence[str] | None) -> None: ... + @property + def base_io_stream(self) -> IOStream | None: ... + @property + def certificate(self) -> TlsCertificate | None: ... + @certificate.setter + def certificate(self, value: TlsCertificate) -> None: ... @property def ciphersuite_name(self) -> str | None: ... database: TlsDatabase | None @@ -11762,7 +11921,10 @@ class TlsConnection(IOStream): def peer_certificate_errors(self) -> TlsCertificateFlags: ... @property def protocol_version(self) -> TlsProtocolVersion: ... - rehandshake_mode: TlsRehandshakeMode + @property + def rehandshake_mode(self) -> TlsRehandshakeMode: ... + @rehandshake_mode.setter + def rehandshake_mode(self, value: _TlsRehandshakeModeValueType) -> None: ... require_close_notify: bool use_system_certdb: bool @@ -11776,19 +11938,19 @@ class TlsConnection(IOStream): self, *, advertised_protocols: Sequence[str] | None = ..., - base_io_stream: IOStream = ..., + base_io_stream: IOStream | None = ..., certificate: TlsCertificate = ..., database: TlsDatabase | None = ..., interaction: TlsInteraction | None = ..., - rehandshake_mode: TlsRehandshakeMode = ..., + rehandshake_mode: _TlsRehandshakeModeValueType = ..., require_close_notify: bool = ..., use_system_certdb: bool = ..., ) -> None: ... def do_accept_certificate( - self, peer_cert: TlsCertificate, errors: TlsCertificateFlags + self, peer_cert: TlsCertificate, errors: _TlsCertificateFlagsValueType ) -> bool: ... def do_get_binding_data( - self, type: TlsChannelBindingType, data: Sequence[int] + self, type: _TlsChannelBindingTypeValueType, data: Sequence[int] ) -> bool: ... def do_get_negotiated_protocol(self) -> str | None: ... def do_handshake(self, cancellable: Cancellable | None) -> bool: ... @@ -11802,11 +11964,11 @@ class TlsConnection(IOStream): ) -> None: ... def do_handshake_finish(self, result: AsyncResult) -> bool: ... def emit_accept_certificate( - self, peer_cert: TlsCertificate, errors: TlsCertificateFlags + self, peer_cert: TlsCertificate, errors: _TlsCertificateFlagsValueType ) -> bool: ... def get_certificate(self) -> TlsCertificate | None: ... def get_channel_binding_data( - self, type: TlsChannelBindingType + self, type: _TlsChannelBindingTypeValueType ) -> tuple[bool, bytes]: ... def get_ciphersuite_name(self) -> str | None: ... def get_database(self) -> TlsDatabase | None: ... @@ -11834,7 +11996,7 @@ class TlsConnection(IOStream): def set_certificate(self, certificate: TlsCertificate) -> None: ... def set_database(self, database: TlsDatabase | None = None) -> None: ... def set_interaction(self, interaction: TlsInteraction | None = None) -> None: ... - def set_rehandshake_mode(self, mode: TlsRehandshakeMode) -> None: ... + def set_rehandshake_mode(self, mode: _TlsRehandshakeModeValueType) -> None: ... def set_require_close_notify(self, require_close_notify: bool) -> None: ... def set_use_system_certdb(self, use_system_certdb: bool) -> None: ... @@ -11851,7 +12013,9 @@ class TlsConnectionClass(_gi.Struct): @property def accept_certificate( self, - ) -> Callable[[TlsConnection, TlsCertificate, TlsCertificateFlags], bool]: ... + ) -> Callable[ + [TlsConnection, TlsCertificate, _TlsCertificateFlagsValueType], bool + ]: ... @property def handshake(self) -> Callable[[TlsConnection, Cancellable | None], bool]: ... @property @@ -11872,7 +12036,9 @@ class TlsConnectionClass(_gi.Struct): @property def get_binding_data( self, - ) -> Callable[[TlsConnection, TlsChannelBindingType, Sequence[int]], bool]: ... + ) -> Callable[ + [TlsConnection, _TlsChannelBindingTypeValueType, Sequence[int]], bool + ]: ... @property def get_negotiated_protocol(self) -> Callable[[TlsConnection], str | None]: ... @property @@ -11905,14 +12071,14 @@ class TlsDatabase(GObject.Object): self, handle: str, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, ) -> TlsCertificate | None: ... def do_lookup_certificate_for_handle_async( self, handle: str, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None, @@ -11925,14 +12091,14 @@ class TlsDatabase(GObject.Object): self, certificate: TlsCertificate, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, ) -> TlsCertificate: ... def do_lookup_certificate_issuer_async( self, certificate: TlsCertificate, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None, @@ -11945,14 +12111,14 @@ class TlsDatabase(GObject.Object): self, issuer_raw_dn: Sequence[int], interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, ) -> list[TlsCertificate]: ... def do_lookup_certificates_issued_by_async( self, issuer_raw_dn: Sequence[int], interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None, @@ -11967,7 +12133,7 @@ class TlsDatabase(GObject.Object): purpose: str, identity: SocketConnectable | None, interaction: TlsInteraction | None, - flags: TlsDatabaseVerifyFlags, + flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None, ) -> TlsCertificateFlags: ... def do_verify_chain_async( @@ -11976,7 +12142,7 @@ class TlsDatabase(GObject.Object): purpose: str, identity: SocketConnectable | None, interaction: TlsInteraction | None, - flags: TlsDatabaseVerifyFlags, + flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None, @@ -11987,14 +12153,14 @@ class TlsDatabase(GObject.Object): self, handle: str, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, ) -> TlsCertificate | None: ... def lookup_certificate_for_handle_async( self, handle: str, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -12007,14 +12173,14 @@ class TlsDatabase(GObject.Object): self, certificate: TlsCertificate, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, ) -> TlsCertificate: ... def lookup_certificate_issuer_async( self, certificate: TlsCertificate, interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -12027,14 +12193,14 @@ class TlsDatabase(GObject.Object): self, issuer_raw_dn: Sequence[int], interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, ) -> list[TlsCertificate]: ... def lookup_certificates_issued_by_async( self, issuer_raw_dn: Sequence[int], interaction: TlsInteraction | None, - flags: TlsDatabaseLookupFlags, + flags: _TlsDatabaseLookupFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -12049,7 +12215,7 @@ class TlsDatabase(GObject.Object): purpose: str, identity: SocketConnectable | None, interaction: TlsInteraction | None, - flags: TlsDatabaseVerifyFlags, + flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None = None, ) -> TlsCertificateFlags: ... def verify_chain_async( @@ -12058,7 +12224,7 @@ class TlsDatabase(GObject.Object): purpose: str, identity: SocketConnectable | None, interaction: TlsInteraction | None, - flags: TlsDatabaseVerifyFlags, + flags: _TlsDatabaseVerifyFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -12086,7 +12252,7 @@ class TlsDatabaseClass(_gi.Struct): str, SocketConnectable | None, TlsInteraction | None, - TlsDatabaseVerifyFlags, + _TlsDatabaseVerifyFlagsValueType, Cancellable | None, ], TlsCertificateFlags, @@ -12101,7 +12267,7 @@ class TlsDatabaseClass(_gi.Struct): str, SocketConnectable | None, TlsInteraction | None, - TlsDatabaseVerifyFlags, + _TlsDatabaseVerifyFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -12124,7 +12290,7 @@ class TlsDatabaseClass(_gi.Struct): TlsDatabase, str, TlsInteraction | None, - TlsDatabaseLookupFlags, + _TlsDatabaseLookupFlagsValueType, Cancellable | None, ], TlsCertificate | None, @@ -12137,7 +12303,7 @@ class TlsDatabaseClass(_gi.Struct): TlsDatabase, str, TlsInteraction | None, - TlsDatabaseLookupFlags, + _TlsDatabaseLookupFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -12156,7 +12322,7 @@ class TlsDatabaseClass(_gi.Struct): TlsDatabase, TlsCertificate, TlsInteraction | None, - TlsDatabaseLookupFlags, + _TlsDatabaseLookupFlagsValueType, Cancellable | None, ], TlsCertificate, @@ -12169,7 +12335,7 @@ class TlsDatabaseClass(_gi.Struct): TlsDatabase, TlsCertificate, TlsInteraction | None, - TlsDatabaseLookupFlags, + _TlsDatabaseLookupFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -12188,7 +12354,7 @@ class TlsDatabaseClass(_gi.Struct): TlsDatabase, Sequence[int], TlsInteraction | None, - TlsDatabaseLookupFlags, + _TlsDatabaseLookupFlagsValueType, Cancellable | None, ], list[TlsCertificate], @@ -12201,7 +12367,7 @@ class TlsDatabaseClass(_gi.Struct): TlsDatabase, Sequence[int], TlsInteraction | None, - TlsDatabaseLookupFlags, + _TlsDatabaseLookupFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -12284,13 +12450,13 @@ class TlsInteraction(GObject.Object): def do_request_certificate( self, connection: TlsConnection, - flags: TlsCertificateRequestFlags, + flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None, ) -> TlsInteractionResult: ... def do_request_certificate_async( self, connection: TlsConnection, - flags: TlsCertificateRequestFlags, + flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None, @@ -12305,19 +12471,19 @@ class TlsInteraction(GObject.Object): def invoke_request_certificate( self, connection: TlsConnection, - flags: TlsCertificateRequestFlags, + flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None = None, ) -> TlsInteractionResult: ... def request_certificate( self, connection: TlsConnection, - flags: TlsCertificateRequestFlags, + flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None = None, ) -> TlsInteractionResult: ... def request_certificate_async( self, connection: TlsConnection, - flags: TlsCertificateRequestFlags, + flags: _TlsCertificateRequestFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -12364,7 +12530,12 @@ class TlsInteractionClass(_gi.Struct): def request_certificate( self, ) -> Callable[ - [TlsInteraction, TlsConnection, TlsCertificateRequestFlags, Cancellable | None], + [ + TlsInteraction, + TlsConnection, + _TlsCertificateRequestFlagsValueType, + Cancellable | None, + ], TlsInteractionResult, ]: ... @property @@ -12374,7 +12545,7 @@ class TlsInteractionClass(_gi.Struct): [ TlsInteraction, TlsConnection, - TlsCertificateRequestFlags, + _TlsCertificateRequestFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -12412,7 +12583,10 @@ class TlsPassword(GObject.Object): @type_check_only class Props(GObject.Object.Props): description: str - flags: TlsPasswordFlags + @property + def flags(self) -> TlsPasswordFlags: ... + @flags.setter + def flags(self, value: _TlsPasswordFlagsValueType) -> None: ... warning: str @property @@ -12425,7 +12599,7 @@ class TlsPassword(GObject.Object): self, *, description: str = ..., - flags: TlsPasswordFlags = ..., + flags: _TlsPasswordFlagsValueType = ..., warning: str = ..., ) -> None: ... def do_get_default_warning(self) -> str: ... @@ -12438,9 +12612,11 @@ class TlsPassword(GObject.Object): def get_value(self) -> bytes: ... def get_warning(self) -> str: ... @classmethod - def new(cls, flags: TlsPasswordFlags, description: str) -> TlsPassword: ... + def new( + cls, flags: _TlsPasswordFlagsValueType, description: str + ) -> TlsPassword: ... def set_description(self, description: str) -> None: ... - def set_flags(self, flags: TlsPasswordFlags) -> None: ... + def set_flags(self, flags: _TlsPasswordFlagsValueType) -> None: ... def set_value(self, value: Sequence[int]) -> None: ... def set_value_full( self, value: Sequence[int], destroy: Callable[[Any | None], None] | None = None @@ -12520,7 +12696,7 @@ class UnixConnection(SocketConnection): def parent_instance(self) -> SocketConnection: ... @property def priv(self) -> UnixConnectionPrivate: ... - def __init__(self, *, socket: Socket = ...) -> None: ... + def __init__(self, *, socket: Socket | None = ...) -> None: ... def receive_credentials( self, cancellable: Cancellable | None = None ) -> Credentials: ... @@ -12586,7 +12762,7 @@ class UnixCredentialsMessage(SocketControlMessage): def parent_instance(self) -> SocketControlMessage: ... @property def priv(self) -> UnixCredentialsMessagePrivate: ... - def __init__(self, *, credentials: Credentials = ...) -> None: ... + def __init__(self, *, credentials: Credentials | None = ...) -> None: ... def get_credentials(self) -> Credentials: ... @staticmethod def is_supported() -> bool: ... @@ -12716,9 +12892,9 @@ class UnixSocketAddress(SocketAddress): self, *, abstract: bool = ..., - address_type: UnixSocketAddressType = ..., - path: str = ..., - path_as_array: Sequence[int] = ..., + address_type: _UnixSocketAddressTypeValueType = ..., + path: str | None = ..., + path_as_array: Sequence[int] | None = ..., ) -> None: ... @staticmethod def abstract_names_supported() -> bool: ... @@ -12732,7 +12908,7 @@ class UnixSocketAddress(SocketAddress): def new_abstract(cls, path: Sequence[int]) -> UnixSocketAddress: ... @classmethod def new_with_type( - cls, path: Sequence[int], type: UnixSocketAddressType + cls, path: Sequence[int], type: _UnixSocketAddressTypeValueType ) -> UnixSocketAddress: ... class UnixSocketAddressClass(_gi.Struct): @@ -12784,7 +12960,7 @@ class Vfs(GObject.Object): self, filename: str, info: FileInfo, - flags: FileQueryInfoFlags, + flags: _FileQueryInfoFlagsValueType, cancellable: Cancellable | None, ) -> bool: ... def do_parse_name(self, parse_name: str) -> File: ... @@ -12852,7 +13028,7 @@ class VfsClass(_gi.Struct): def local_file_set_attributes( self, ) -> Callable[ - [Vfs, str, FileInfo, FileQueryInfoFlags, Cancellable | None], bool + [Vfs, str, FileInfo, _FileQueryInfoFlagsValueType, Cancellable | None], bool ]: ... @property def local_file_removed(self) -> Callable[[Vfs, str], None]: ... @@ -12872,7 +13048,7 @@ class Volume(GObject.GInterface, Protocol): def can_mount(self) -> bool: ... def eject( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] | None = None, @@ -12881,7 +13057,7 @@ class Volume(GObject.GInterface, Protocol): def eject_finish(self, result: AsyncResult) -> bool: ... def eject_with_operation( self, - flags: MountUnmountFlags, + flags: _MountUnmountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -12901,7 +13077,7 @@ class Volume(GObject.GInterface, Protocol): def get_uuid(self) -> str | None: ... def mount( self, - flags: MountMountFlags, + flags: _MountMountFlagsValueType, mount_operation: MountOperation | None = None, cancellable: Cancellable | None = None, callback: Callable[[GObject.Object | None, AsyncResult, Unpack[_DataTs]], None] @@ -12945,7 +13121,7 @@ class VolumeIface(_gi.Struct): ) -> Callable[ [ Volume, - MountMountFlags, + _MountMountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -12961,7 +13137,7 @@ class VolumeIface(_gi.Struct): ) -> Callable[ [ Volume, - MountUnmountFlags, + _MountUnmountFlagsValueType, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, Any | None, @@ -12984,7 +13160,7 @@ class VolumeIface(_gi.Struct): ) -> Callable[ [ Volume, - MountUnmountFlags, + _MountUnmountFlagsValueType, MountOperation | None, Cancellable | None, Callable[[GObject.Object | None, AsyncResult, Any | None], None] | None, @@ -13141,14 +13317,16 @@ class ZlibCompressor(GObject.Object, Converter): self, *, file_info: FileInfo | None = ..., - format: ZlibCompressorFormat = ..., + format: _ZlibCompressorFormatValueType = ..., level: int = ..., os: int = ..., ) -> None: ... def get_file_info(self) -> FileInfo | None: ... def get_os(self) -> int: ... @classmethod - def new(cls, format: ZlibCompressorFormat, level: int) -> ZlibCompressor: ... + def new( + cls, format: _ZlibCompressorFormatValueType, level: int + ) -> ZlibCompressor: ... def set_file_info(self, file_info: FileInfo | None = None) -> None: ... def set_os(self, os: int) -> None: ... @@ -13190,10 +13368,10 @@ class ZlibDecompressor(GObject.Object, Converter): @property def props(self) -> Props: ... - def __init__(self, *, format: ZlibCompressorFormat = ...) -> None: ... + def __init__(self, *, format: _ZlibCompressorFormatValueType = ...) -> None: ... def get_file_info(self) -> FileInfo | None: ... @classmethod - def new(cls, format: ZlibCompressorFormat) -> ZlibDecompressor: ... + def new(cls, format: _ZlibCompressorFormatValueType) -> ZlibDecompressor: ... class ZlibDecompressorClass(_gi.Struct): """ @@ -13212,6 +13390,22 @@ class AppInfoCreateFlags(GObject.GFlags): SUPPORTS_STARTUP_NOTIFICATION = 4 SUPPORTS_URIS = 2 +_AppInfoCreateFlagsLiteralType: TypeAlias = Literal[ + "G_APP_INFO_CREATE_NEEDS_TERMINAL", + "G_APP_INFO_CREATE_NONE", + "G_APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION", + "G_APP_INFO_CREATE_SUPPORTS_URIS", + "needs-terminal", + "none", + "supports-startup-notification", + "supports-uris", +] +_AppInfoCreateFlagsValueType: TypeAlias = ( + AppInfoCreateFlags + | _AppInfoCreateFlagsLiteralType + | tuple[_AppInfoCreateFlagsLiteralType, ...] +) + class ApplicationFlags(GObject.GFlags): ALLOW_REPLACEMENT = 128 CAN_OVERRIDE_APP_ID = 64 @@ -13225,6 +13419,36 @@ class ApplicationFlags(GObject.GFlags): REPLACE = 256 SEND_ENVIRONMENT = 16 +_ApplicationFlagsLiteralType: TypeAlias = Literal[ + "G_APPLICATION_ALLOW_REPLACEMENT", + "G_APPLICATION_CAN_OVERRIDE_APP_ID", + "G_APPLICATION_DEFAULT_FLAGS", + "G_APPLICATION_FLAGS_NONE", + "G_APPLICATION_HANDLES_COMMAND_LINE", + "G_APPLICATION_HANDLES_OPEN", + "G_APPLICATION_IS_LAUNCHER", + "G_APPLICATION_IS_SERVICE", + "G_APPLICATION_NON_UNIQUE", + "G_APPLICATION_REPLACE", + "G_APPLICATION_SEND_ENVIRONMENT", + "allow-replacement", + "can-override-app-id", + "default-flags", + "flags-none", + "handles-command-line", + "handles-open", + "is-launcher", + "is-service", + "non-unique", + "replace", + "send-environment", +] +_ApplicationFlagsValueType: TypeAlias = ( + ApplicationFlags + | _ApplicationFlagsLiteralType + | tuple[_ApplicationFlagsLiteralType, ...] +) + class AskPasswordFlags(GObject.GFlags): ANONYMOUS_SUPPORTED = 16 NEED_DOMAIN = 4 @@ -13233,30 +13457,114 @@ class AskPasswordFlags(GObject.GFlags): SAVING_SUPPORTED = 8 TCRYPT = 32 +_AskPasswordFlagsLiteralType: TypeAlias = Literal[ + "G_ASK_PASSWORD_ANONYMOUS_SUPPORTED", + "G_ASK_PASSWORD_NEED_DOMAIN", + "G_ASK_PASSWORD_NEED_PASSWORD", + "G_ASK_PASSWORD_NEED_USERNAME", + "G_ASK_PASSWORD_SAVING_SUPPORTED", + "G_ASK_PASSWORD_TCRYPT", + "anonymous-supported", + "need-domain", + "need-password", + "need-username", + "saving-supported", + "tcrypt", +] +_AskPasswordFlagsValueType: TypeAlias = ( + AskPasswordFlags + | _AskPasswordFlagsLiteralType + | tuple[_AskPasswordFlagsLiteralType, ...] +) + class BusNameOwnerFlags(GObject.GFlags): ALLOW_REPLACEMENT = 1 DO_NOT_QUEUE = 4 NONE = 0 REPLACE = 2 +_BusNameOwnerFlagsLiteralType: TypeAlias = Literal[ + "G_BUS_NAME_OWNER_FLAGS_ALLOW_REPLACEMENT", + "G_BUS_NAME_OWNER_FLAGS_DO_NOT_QUEUE", + "G_BUS_NAME_OWNER_FLAGS_NONE", + "G_BUS_NAME_OWNER_FLAGS_REPLACE", + "allow-replacement", + "do-not-queue", + "none", + "replace", +] +_BusNameOwnerFlagsValueType: TypeAlias = ( + BusNameOwnerFlags + | _BusNameOwnerFlagsLiteralType + | tuple[_BusNameOwnerFlagsLiteralType, ...] +) + class BusNameWatcherFlags(GObject.GFlags): AUTO_START = 1 NONE = 0 +_BusNameWatcherFlagsLiteralType: TypeAlias = Literal[ + "G_BUS_NAME_WATCHER_FLAGS_AUTO_START", + "G_BUS_NAME_WATCHER_FLAGS_NONE", + "auto-start", + "none", +] +_BusNameWatcherFlagsValueType: TypeAlias = ( + BusNameWatcherFlags + | _BusNameWatcherFlagsLiteralType + | tuple[_BusNameWatcherFlagsLiteralType, ...] +) + class ConverterFlags(GObject.GFlags): FLUSH = 2 INPUT_AT_END = 1 NONE = 0 +_ConverterFlagsLiteralType: TypeAlias = Literal[ + "G_CONVERTER_FLUSH", + "G_CONVERTER_INPUT_AT_END", + "G_CONVERTER_NO_FLAGS", + "flush", + "input-at-end", + "none", +] +_ConverterFlagsValueType: TypeAlias = ( + ConverterFlags | _ConverterFlagsLiteralType | tuple[_ConverterFlagsLiteralType, ...] +) + class DBusCallFlags(GObject.GFlags): ALLOW_INTERACTIVE_AUTHORIZATION = 2 NONE = 0 NO_AUTO_START = 1 +_DBusCallFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_CALL_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION", + "G_DBUS_CALL_FLAGS_NONE", + "G_DBUS_CALL_FLAGS_NO_AUTO_START", + "allow-interactive-authorization", + "no-auto-start", + "none", +] +_DBusCallFlagsValueType: TypeAlias = ( + DBusCallFlags | _DBusCallFlagsLiteralType | tuple[_DBusCallFlagsLiteralType, ...] +) + class DBusCapabilityFlags(GObject.GFlags): NONE = 0 UNIX_FD_PASSING = 1 +_DBusCapabilityFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_CAPABILITY_FLAGS_NONE", + "G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING", + "none", + "unix-fd-passing", +] +_DBusCapabilityFlagsValueType: TypeAlias = ( + DBusCapabilityFlags + | _DBusCapabilityFlagsLiteralType + | tuple[_DBusCapabilityFlagsLiteralType, ...] +) + class DBusConnectionFlags(GObject.GFlags): AUTHENTICATION_ALLOW_ANONYMOUS = 4 AUTHENTICATION_CLIENT = 1 @@ -13267,25 +13575,103 @@ class DBusConnectionFlags(GObject.GFlags): MESSAGE_BUS_CONNECTION = 8 NONE = 0 +_DBusConnectionFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS", + "G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT", + "G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER", + "G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_SERVER", + "G_DBUS_CONNECTION_FLAGS_CROSS_NAMESPACE", + "G_DBUS_CONNECTION_FLAGS_DELAY_MESSAGE_PROCESSING", + "G_DBUS_CONNECTION_FLAGS_MESSAGE_BUS_CONNECTION", + "G_DBUS_CONNECTION_FLAGS_NONE", + "authentication-allow-anonymous", + "authentication-client", + "authentication-require-same-user", + "authentication-server", + "cross-namespace", + "delay-message-processing", + "message-bus-connection", + "none", +] +_DBusConnectionFlagsValueType: TypeAlias = ( + DBusConnectionFlags + | _DBusConnectionFlagsLiteralType + | tuple[_DBusConnectionFlagsLiteralType, ...] +) + class DBusInterfaceSkeletonFlags(GObject.GFlags): HANDLE_METHOD_INVOCATIONS_IN_THREAD = 1 NONE = 0 +_DBusInterfaceSkeletonFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_INTERFACE_SKELETON_FLAGS_HANDLE_METHOD_INVOCATIONS_IN_THREAD", + "G_DBUS_INTERFACE_SKELETON_FLAGS_NONE", + "handle-method-invocations-in-thread", + "none", +] +_DBusInterfaceSkeletonFlagsValueType: TypeAlias = ( + DBusInterfaceSkeletonFlags + | _DBusInterfaceSkeletonFlagsLiteralType + | tuple[_DBusInterfaceSkeletonFlagsLiteralType, ...] +) + class DBusMessageFlags(GObject.GFlags): ALLOW_INTERACTIVE_AUTHORIZATION = 4 NONE = 0 NO_AUTO_START = 2 NO_REPLY_EXPECTED = 1 +_DBusMessageFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_MESSAGE_FLAGS_ALLOW_INTERACTIVE_AUTHORIZATION", + "G_DBUS_MESSAGE_FLAGS_NONE", + "G_DBUS_MESSAGE_FLAGS_NO_AUTO_START", + "G_DBUS_MESSAGE_FLAGS_NO_REPLY_EXPECTED", + "allow-interactive-authorization", + "no-auto-start", + "no-reply-expected", + "none", +] +_DBusMessageFlagsValueType: TypeAlias = ( + DBusMessageFlags + | _DBusMessageFlagsLiteralType + | tuple[_DBusMessageFlagsLiteralType, ...] +) + class DBusObjectManagerClientFlags(GObject.GFlags): DO_NOT_AUTO_START = 1 NONE = 0 +_DBusObjectManagerClientFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_DO_NOT_AUTO_START", + "G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE", + "do-not-auto-start", + "none", +] +_DBusObjectManagerClientFlagsValueType: TypeAlias = ( + DBusObjectManagerClientFlags + | _DBusObjectManagerClientFlagsLiteralType + | tuple[_DBusObjectManagerClientFlagsLiteralType, ...] +) + class DBusPropertyInfoFlags(GObject.GFlags): NONE = 0 READABLE = 1 WRITABLE = 2 +_DBusPropertyInfoFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_PROPERTY_INFO_FLAGS_NONE", + "G_DBUS_PROPERTY_INFO_FLAGS_READABLE", + "G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE", + "none", + "readable", + "writable", +] +_DBusPropertyInfoFlagsValueType: TypeAlias = ( + DBusPropertyInfoFlags + | _DBusPropertyInfoFlagsLiteralType + | tuple[_DBusPropertyInfoFlagsLiteralType, ...] +) + class DBusProxyFlags(GObject.GFlags): DO_NOT_AUTO_START = 4 DO_NOT_AUTO_START_AT_CONSTRUCTION = 16 @@ -13295,34 +13681,131 @@ class DBusProxyFlags(GObject.GFlags): NONE = 0 NO_MATCH_RULE = 32 +_DBusProxyFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START", + "G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START_AT_CONSTRUCTION", + "G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS", + "G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES", + "G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES", + "G_DBUS_PROXY_FLAGS_NONE", + "G_DBUS_PROXY_FLAGS_NO_MATCH_RULE", + "do-not-auto-start", + "do-not-auto-start-at-construction", + "do-not-connect-signals", + "do-not-load-properties", + "get-invalidated-properties", + "no-match-rule", + "none", +] +_DBusProxyFlagsValueType: TypeAlias = ( + DBusProxyFlags | _DBusProxyFlagsLiteralType | tuple[_DBusProxyFlagsLiteralType, ...] +) + class DBusSendMessageFlags(GObject.GFlags): NONE = 0 PRESERVE_SERIAL = 1 +_DBusSendMessageFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_SEND_MESSAGE_FLAGS_NONE", + "G_DBUS_SEND_MESSAGE_FLAGS_PRESERVE_SERIAL", + "none", + "preserve-serial", +] +_DBusSendMessageFlagsValueType: TypeAlias = ( + DBusSendMessageFlags + | _DBusSendMessageFlagsLiteralType + | tuple[_DBusSendMessageFlagsLiteralType, ...] +) + class DBusServerFlags(GObject.GFlags): AUTHENTICATION_ALLOW_ANONYMOUS = 2 AUTHENTICATION_REQUIRE_SAME_USER = 4 NONE = 0 RUN_IN_THREAD = 1 +_DBusServerFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_SERVER_FLAGS_AUTHENTICATION_ALLOW_ANONYMOUS", + "G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER", + "G_DBUS_SERVER_FLAGS_NONE", + "G_DBUS_SERVER_FLAGS_RUN_IN_THREAD", + "authentication-allow-anonymous", + "authentication-require-same-user", + "none", + "run-in-thread", +] +_DBusServerFlagsValueType: TypeAlias = ( + DBusServerFlags + | _DBusServerFlagsLiteralType + | tuple[_DBusServerFlagsLiteralType, ...] +) + class DBusSignalFlags(GObject.GFlags): MATCH_ARG0_NAMESPACE = 2 MATCH_ARG0_PATH = 4 NONE = 0 NO_MATCH_RULE = 1 +_DBusSignalFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_NAMESPACE", + "G_DBUS_SIGNAL_FLAGS_MATCH_ARG0_PATH", + "G_DBUS_SIGNAL_FLAGS_NONE", + "G_DBUS_SIGNAL_FLAGS_NO_MATCH_RULE", + "match-arg0-namespace", + "match-arg0-path", + "no-match-rule", + "none", +] +_DBusSignalFlagsValueType: TypeAlias = ( + DBusSignalFlags + | _DBusSignalFlagsLiteralType + | tuple[_DBusSignalFlagsLiteralType, ...] +) + class DBusSubtreeFlags(GObject.GFlags): DISPATCH_TO_UNENUMERATED_NODES = 1 NONE = 0 +_DBusSubtreeFlagsLiteralType: TypeAlias = Literal[ + "G_DBUS_SUBTREE_FLAGS_DISPATCH_TO_UNENUMERATED_NODES", + "G_DBUS_SUBTREE_FLAGS_NONE", + "dispatch-to-unenumerated-nodes", + "none", +] +_DBusSubtreeFlagsValueType: TypeAlias = ( + DBusSubtreeFlags + | _DBusSubtreeFlagsLiteralType + | tuple[_DBusSubtreeFlagsLiteralType, ...] +) + class DriveStartFlags(GObject.GFlags): NONE = 0 +_DriveStartFlagsLiteralType: TypeAlias = Literal["G_DRIVE_START_NONE", "none"] +_DriveStartFlagsValueType: TypeAlias = ( + DriveStartFlags + | _DriveStartFlagsLiteralType + | tuple[_DriveStartFlagsLiteralType, ...] +) + class FileAttributeInfoFlags(GObject.GFlags): COPY_WHEN_MOVED = 2 COPY_WITH_FILE = 1 NONE = 0 +_FileAttributeInfoFlagsLiteralType: TypeAlias = Literal[ + "G_FILE_ATTRIBUTE_INFO_COPY_WHEN_MOVED", + "G_FILE_ATTRIBUTE_INFO_COPY_WITH_FILE", + "G_FILE_ATTRIBUTE_INFO_NONE", + "copy-when-moved", + "copy-with-file", + "none", +] +_FileAttributeInfoFlagsValueType: TypeAlias = ( + FileAttributeInfoFlags + | _FileAttributeInfoFlagsLiteralType + | tuple[_FileAttributeInfoFlagsLiteralType, ...] +) + class FileCopyFlags(GObject.GFlags): ALL_METADATA = 8 BACKUP = 2 @@ -13333,17 +13816,69 @@ class FileCopyFlags(GObject.GFlags): TARGET_DEFAULT_MODIFIED_TIME = 64 TARGET_DEFAULT_PERMS = 32 +_FileCopyFlagsLiteralType: TypeAlias = Literal[ + "G_FILE_COPY_ALL_METADATA", + "G_FILE_COPY_BACKUP", + "G_FILE_COPY_NOFOLLOW_SYMLINKS", + "G_FILE_COPY_NONE", + "G_FILE_COPY_NO_FALLBACK_FOR_MOVE", + "G_FILE_COPY_OVERWRITE", + "G_FILE_COPY_TARGET_DEFAULT_MODIFIED_TIME", + "G_FILE_COPY_TARGET_DEFAULT_PERMS", + "all-metadata", + "backup", + "no-fallback-for-move", + "nofollow-symlinks", + "none", + "overwrite", + "target-default-modified-time", + "target-default-perms", +] +_FileCopyFlagsValueType: TypeAlias = ( + FileCopyFlags | _FileCopyFlagsLiteralType | tuple[_FileCopyFlagsLiteralType, ...] +) + class FileCreateFlags(GObject.GFlags): NONE = 0 PRIVATE = 1 REPLACE_DESTINATION = 2 +_FileCreateFlagsLiteralType: TypeAlias = Literal[ + "G_FILE_CREATE_NONE", + "G_FILE_CREATE_PRIVATE", + "G_FILE_CREATE_REPLACE_DESTINATION", + "none", + "private", + "replace-destination", +] +_FileCreateFlagsValueType: TypeAlias = ( + FileCreateFlags + | _FileCreateFlagsLiteralType + | tuple[_FileCreateFlagsLiteralType, ...] +) + class FileMeasureFlags(GObject.GFlags): APPARENT_SIZE = 4 NONE = 0 NO_XDEV = 8 REPORT_ANY_ERROR = 2 +_FileMeasureFlagsLiteralType: TypeAlias = Literal[ + "G_FILE_MEASURE_APPARENT_SIZE", + "G_FILE_MEASURE_NONE", + "G_FILE_MEASURE_NO_XDEV", + "G_FILE_MEASURE_REPORT_ANY_ERROR", + "apparent-size", + "no-xdev", + "none", + "report-any-error", +] +_FileMeasureFlagsValueType: TypeAlias = ( + FileMeasureFlags + | _FileMeasureFlagsLiteralType + | tuple[_FileMeasureFlagsLiteralType, ...] +) + class FileMonitorFlags(GObject.GFlags): NONE = 0 SEND_MOVED = 2 @@ -13351,40 +13886,146 @@ class FileMonitorFlags(GObject.GFlags): WATCH_MOUNTS = 1 WATCH_MOVES = 8 +_FileMonitorFlagsLiteralType: TypeAlias = Literal[ + "G_FILE_MONITOR_NONE", + "G_FILE_MONITOR_SEND_MOVED", + "G_FILE_MONITOR_WATCH_HARD_LINKS", + "G_FILE_MONITOR_WATCH_MOUNTS", + "G_FILE_MONITOR_WATCH_MOVES", + "none", + "send-moved", + "watch-hard-links", + "watch-mounts", + "watch-moves", +] +_FileMonitorFlagsValueType: TypeAlias = ( + FileMonitorFlags + | _FileMonitorFlagsLiteralType + | tuple[_FileMonitorFlagsLiteralType, ...] +) + class FileQueryInfoFlags(GObject.GFlags): NOFOLLOW_SYMLINKS = 1 NONE = 0 +_FileQueryInfoFlagsLiteralType: TypeAlias = Literal[ + "G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS", + "G_FILE_QUERY_INFO_NONE", + "nofollow-symlinks", + "none", +] +_FileQueryInfoFlagsValueType: TypeAlias = ( + FileQueryInfoFlags + | _FileQueryInfoFlagsLiteralType + | tuple[_FileQueryInfoFlagsLiteralType, ...] +) + class IOStreamSpliceFlags(GObject.GFlags): CLOSE_STREAM1 = 1 CLOSE_STREAM2 = 2 NONE = 0 WAIT_FOR_BOTH = 4 +_IOStreamSpliceFlagsLiteralType: TypeAlias = Literal[ + "G_IO_STREAM_SPLICE_CLOSE_STREAM1", + "G_IO_STREAM_SPLICE_CLOSE_STREAM2", + "G_IO_STREAM_SPLICE_NONE", + "G_IO_STREAM_SPLICE_WAIT_FOR_BOTH", + "close-stream1", + "close-stream2", + "none", + "wait-for-both", +] +_IOStreamSpliceFlagsValueType: TypeAlias = ( + IOStreamSpliceFlags + | _IOStreamSpliceFlagsLiteralType + | tuple[_IOStreamSpliceFlagsLiteralType, ...] +) + class MountMountFlags(GObject.GFlags): NONE = 0 +_MountMountFlagsLiteralType: TypeAlias = Literal["G_MOUNT_MOUNT_NONE", "none"] +_MountMountFlagsValueType: TypeAlias = ( + MountMountFlags + | _MountMountFlagsLiteralType + | tuple[_MountMountFlagsLiteralType, ...] +) + class MountUnmountFlags(GObject.GFlags): FORCE = 1 NONE = 0 +_MountUnmountFlagsLiteralType: TypeAlias = Literal[ + "G_MOUNT_UNMOUNT_FORCE", "G_MOUNT_UNMOUNT_NONE", "force", "none" +] +_MountUnmountFlagsValueType: TypeAlias = ( + MountUnmountFlags + | _MountUnmountFlagsLiteralType + | tuple[_MountUnmountFlagsLiteralType, ...] +) + class OutputStreamSpliceFlags(GObject.GFlags): CLOSE_SOURCE = 1 CLOSE_TARGET = 2 NONE = 0 +_OutputStreamSpliceFlagsLiteralType: TypeAlias = Literal[ + "G_OUTPUT_STREAM_SPLICE_CLOSE_SOURCE", + "G_OUTPUT_STREAM_SPLICE_CLOSE_TARGET", + "G_OUTPUT_STREAM_SPLICE_NONE", + "close-source", + "close-target", + "none", +] +_OutputStreamSpliceFlagsValueType: TypeAlias = ( + OutputStreamSpliceFlags + | _OutputStreamSpliceFlagsLiteralType + | tuple[_OutputStreamSpliceFlagsLiteralType, ...] +) + class ResolverNameLookupFlags(GObject.GFlags): DEFAULT = 0 IPV4_ONLY = 1 IPV6_ONLY = 2 +_ResolverNameLookupFlagsLiteralType: TypeAlias = Literal[ + "G_RESOLVER_NAME_LOOKUP_FLAGS_DEFAULT", + "G_RESOLVER_NAME_LOOKUP_FLAGS_IPV4_ONLY", + "G_RESOLVER_NAME_LOOKUP_FLAGS_IPV6_ONLY", + "default", + "ipv4-only", + "ipv6-only", +] +_ResolverNameLookupFlagsValueType: TypeAlias = ( + ResolverNameLookupFlags + | _ResolverNameLookupFlagsLiteralType + | tuple[_ResolverNameLookupFlagsLiteralType, ...] +) + class ResourceFlags(GObject.GFlags): COMPRESSED = 1 NONE = 0 +_ResourceFlagsLiteralType: TypeAlias = Literal[ + "G_RESOURCE_FLAGS_COMPRESSED", "G_RESOURCE_FLAGS_NONE", "compressed", "none" +] +_ResourceFlagsValueType: TypeAlias = ( + ResourceFlags | _ResourceFlagsLiteralType | tuple[_ResourceFlagsLiteralType, ...] +) + class ResourceLookupFlags(GObject.GFlags): NONE = 0 +_ResourceLookupFlagsLiteralType: TypeAlias = Literal[ + "G_RESOURCE_LOOKUP_FLAGS_NONE", "none" +] +_ResourceLookupFlagsValueType: TypeAlias = ( + ResourceLookupFlags + | _ResourceLookupFlagsLiteralType + | tuple[_ResourceLookupFlagsLiteralType, ...] +) + class SettingsBindFlags(GObject.GFlags): DEFAULT = 0 GET = 1 @@ -13393,12 +14034,46 @@ class SettingsBindFlags(GObject.GFlags): NO_SENSITIVITY = 4 SET = 2 +_SettingsBindFlagsLiteralType: TypeAlias = Literal[ + "G_SETTINGS_BIND_DEFAULT", + "G_SETTINGS_BIND_GET", + "G_SETTINGS_BIND_GET_NO_CHANGES", + "G_SETTINGS_BIND_INVERT_BOOLEAN", + "G_SETTINGS_BIND_NO_SENSITIVITY", + "G_SETTINGS_BIND_SET", + "default", + "get", + "get-no-changes", + "invert-boolean", + "no-sensitivity", + "set", +] +_SettingsBindFlagsValueType: TypeAlias = ( + SettingsBindFlags + | _SettingsBindFlagsLiteralType + | tuple[_SettingsBindFlagsLiteralType, ...] +) + class SocketMsgFlags(GObject.GFlags): DONTROUTE = 4 NONE = 0 OOB = 1 PEEK = 2 +_SocketMsgFlagsLiteralType: TypeAlias = Literal[ + "G_SOCKET_MSG_DONTROUTE", + "G_SOCKET_MSG_NONE", + "G_SOCKET_MSG_OOB", + "G_SOCKET_MSG_PEEK", + "dontroute", + "none", + "oob", + "peek", +] +_SocketMsgFlagsValueType: TypeAlias = ( + SocketMsgFlags | _SocketMsgFlagsLiteralType | tuple[_SocketMsgFlagsLiteralType, ...] +) + class SubprocessFlags(GObject.GFlags): INHERIT_FDS = 128 NONE = 0 @@ -13411,9 +14086,42 @@ class SubprocessFlags(GObject.GFlags): STDOUT_PIPE = 4 STDOUT_SILENCE = 8 +_SubprocessFlagsLiteralType: TypeAlias = Literal[ + "G_SUBPROCESS_FLAGS_INHERIT_FDS", + "G_SUBPROCESS_FLAGS_NONE", + "G_SUBPROCESS_FLAGS_SEARCH_PATH_FROM_ENVP", + "G_SUBPROCESS_FLAGS_STDERR_MERGE", + "G_SUBPROCESS_FLAGS_STDERR_PIPE", + "G_SUBPROCESS_FLAGS_STDERR_SILENCE", + "G_SUBPROCESS_FLAGS_STDIN_INHERIT", + "G_SUBPROCESS_FLAGS_STDIN_PIPE", + "G_SUBPROCESS_FLAGS_STDOUT_PIPE", + "G_SUBPROCESS_FLAGS_STDOUT_SILENCE", + "inherit-fds", + "none", + "search-path-from-envp", + "stderr-merge", + "stderr-pipe", + "stderr-silence", + "stdin-inherit", + "stdin-pipe", + "stdout-pipe", + "stdout-silence", +] +_SubprocessFlagsValueType: TypeAlias = ( + SubprocessFlags + | _SubprocessFlagsLiteralType + | tuple[_SubprocessFlagsLiteralType, ...] +) + class TestDBusFlags(GObject.GFlags): NONE = 0 +_TestDBusFlagsLiteralType: TypeAlias = Literal["G_TEST_DBUS_NONE", "none"] +_TestDBusFlagsValueType: TypeAlias = ( + TestDBusFlags | _TestDBusFlagsLiteralType | tuple[_TestDBusFlagsLiteralType, ...] +) + class TlsCertificateFlags(GObject.GFlags): BAD_IDENTITY = 2 EXPIRED = 8 @@ -13425,9 +14133,44 @@ class TlsCertificateFlags(GObject.GFlags): UNKNOWN_CA = 1 VALIDATE_ALL = 127 +_TlsCertificateFlagsLiteralType: TypeAlias = Literal[ + "G_TLS_CERTIFICATE_BAD_IDENTITY", + "G_TLS_CERTIFICATE_EXPIRED", + "G_TLS_CERTIFICATE_GENERIC_ERROR", + "G_TLS_CERTIFICATE_INSECURE", + "G_TLS_CERTIFICATE_NOT_ACTIVATED", + "G_TLS_CERTIFICATE_NO_FLAGS", + "G_TLS_CERTIFICATE_REVOKED", + "G_TLS_CERTIFICATE_UNKNOWN_CA", + "G_TLS_CERTIFICATE_VALIDATE_ALL", + "bad-identity", + "expired", + "generic-error", + "insecure", + "no-flags", + "not-activated", + "revoked", + "unknown-ca", + "validate-all", +] +_TlsCertificateFlagsValueType: TypeAlias = ( + TlsCertificateFlags + | _TlsCertificateFlagsLiteralType + | tuple[_TlsCertificateFlagsLiteralType, ...] +) + class TlsDatabaseVerifyFlags(GObject.GFlags): NONE = 0 +_TlsDatabaseVerifyFlagsLiteralType: TypeAlias = Literal[ + "G_TLS_DATABASE_VERIFY_NONE", "none" +] +_TlsDatabaseVerifyFlagsValueType: TypeAlias = ( + TlsDatabaseVerifyFlags + | _TlsDatabaseVerifyFlagsLiteralType + | tuple[_TlsDatabaseVerifyFlagsLiteralType, ...] +) + class TlsPasswordFlags(GObject.GFlags): FINAL_TRY = 8 MANY_TRIES = 4 @@ -13437,18 +14180,64 @@ class TlsPasswordFlags(GObject.GFlags): PKCS11_USER = 16 RETRY = 2 +_TlsPasswordFlagsLiteralType: TypeAlias = Literal[ + "G_TLS_PASSWORD_FINAL_TRY", + "G_TLS_PASSWORD_MANY_TRIES", + "G_TLS_PASSWORD_NONE", + "G_TLS_PASSWORD_PKCS11_CONTEXT_SPECIFIC", + "G_TLS_PASSWORD_PKCS11_SECURITY_OFFICER", + "G_TLS_PASSWORD_PKCS11_USER", + "G_TLS_PASSWORD_RETRY", + "final-try", + "many-tries", + "none", + "pkcs11-context-specific", + "pkcs11-security-officer", + "pkcs11-user", + "retry", +] +_TlsPasswordFlagsValueType: TypeAlias = ( + TlsPasswordFlags + | _TlsPasswordFlagsLiteralType + | tuple[_TlsPasswordFlagsLiteralType, ...] +) + class BusType(GObject.GEnum): NONE = 0 SESSION = 2 STARTER = -1 SYSTEM = 1 +_BusTypeLiteralType: TypeAlias = Literal[ + "G_BUS_TYPE_NONE", + "G_BUS_TYPE_SESSION", + "G_BUS_TYPE_STARTER", + "G_BUS_TYPE_SYSTEM", + "none", + "session", + "starter", + "system", +] +_BusTypeValueType: TypeAlias = BusType | _BusTypeLiteralType + class ConverterResult(GObject.GEnum): CONVERTED = 1 ERROR = 0 FINISHED = 2 FLUSHED = 3 +_ConverterResultLiteralType: TypeAlias = Literal[ + "G_CONVERTER_CONVERTED", + "G_CONVERTER_ERROR", + "G_CONVERTER_FINISHED", + "G_CONVERTER_FLUSHED", + "converted", + "error", + "finished", + "flushed", +] +_ConverterResultValueType: TypeAlias = ConverterResult | _ConverterResultLiteralType + class CredentialsType(GObject.GEnum): APPLE_XUCRED = 6 FREEBSD_CMSGCRED = 2 @@ -13459,6 +14248,26 @@ class CredentialsType(GObject.GEnum): SOLARIS_UCRED = 4 WIN32_PID = 7 +_CredentialsTypeLiteralType: TypeAlias = Literal[ + "G_CREDENTIALS_TYPE_APPLE_XUCRED", + "G_CREDENTIALS_TYPE_FREEBSD_CMSGCRED", + "G_CREDENTIALS_TYPE_INVALID", + "G_CREDENTIALS_TYPE_LINUX_UCRED", + "G_CREDENTIALS_TYPE_NETBSD_UNPCBID", + "G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED", + "G_CREDENTIALS_TYPE_SOLARIS_UCRED", + "G_CREDENTIALS_TYPE_WIN32_PID", + "apple-xucred", + "freebsd-cmsgcred", + "invalid", + "linux-ucred", + "netbsd-unpcbid", + "openbsd-sockpeercred", + "solaris-ucred", + "win32-pid", +] +_CredentialsTypeValueType: TypeAlias = CredentialsType | _CredentialsTypeLiteralType + class DBusError(GObject.GEnum): ACCESS_DENIED = 9 ADDRESS_IN_USE = 14 @@ -13534,10 +14343,114 @@ class DBusError(GObject.GEnum): error_domain: int, error_code: int, dbus_error_name: str ) -> bool: ... +_DBusErrorLiteralType: TypeAlias = Literal[ + "G_DBUS_ERROR_ACCESS_DENIED", + "G_DBUS_ERROR_ADDRESS_IN_USE", + "G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN", + "G_DBUS_ERROR_AUTH_FAILED", + "G_DBUS_ERROR_BAD_ADDRESS", + "G_DBUS_ERROR_DISCONNECTED", + "G_DBUS_ERROR_FAILED", + "G_DBUS_ERROR_FILE_EXISTS", + "G_DBUS_ERROR_FILE_NOT_FOUND", + "G_DBUS_ERROR_INVALID_ARGS", + "G_DBUS_ERROR_INVALID_FILE_CONTENT", + "G_DBUS_ERROR_INVALID_SIGNATURE", + "G_DBUS_ERROR_IO_ERROR", + "G_DBUS_ERROR_LIMITS_EXCEEDED", + "G_DBUS_ERROR_MATCH_RULE_INVALID", + "G_DBUS_ERROR_MATCH_RULE_NOT_FOUND", + "G_DBUS_ERROR_NAME_HAS_NO_OWNER", + "G_DBUS_ERROR_NOT_SUPPORTED", + "G_DBUS_ERROR_NO_MEMORY", + "G_DBUS_ERROR_NO_NETWORK", + "G_DBUS_ERROR_NO_REPLY", + "G_DBUS_ERROR_NO_SERVER", + "G_DBUS_ERROR_OBJECT_PATH_IN_USE", + "G_DBUS_ERROR_PROPERTY_READ_ONLY", + "G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN", + "G_DBUS_ERROR_SERVICE_UNKNOWN", + "G_DBUS_ERROR_SPAWN_CHILD_EXITED", + "G_DBUS_ERROR_SPAWN_CHILD_SIGNALED", + "G_DBUS_ERROR_SPAWN_CONFIG_INVALID", + "G_DBUS_ERROR_SPAWN_EXEC_FAILED", + "G_DBUS_ERROR_SPAWN_FAILED", + "G_DBUS_ERROR_SPAWN_FILE_INVALID", + "G_DBUS_ERROR_SPAWN_FORK_FAILED", + "G_DBUS_ERROR_SPAWN_NO_MEMORY", + "G_DBUS_ERROR_SPAWN_PERMISSIONS_INVALID", + "G_DBUS_ERROR_SPAWN_SERVICE_INVALID", + "G_DBUS_ERROR_SPAWN_SERVICE_NOT_FOUND", + "G_DBUS_ERROR_SPAWN_SETUP_FAILED", + "G_DBUS_ERROR_TIMED_OUT", + "G_DBUS_ERROR_TIMEOUT", + "G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN", + "G_DBUS_ERROR_UNKNOWN_INTERFACE", + "G_DBUS_ERROR_UNKNOWN_METHOD", + "G_DBUS_ERROR_UNKNOWN_OBJECT", + "G_DBUS_ERROR_UNKNOWN_PROPERTY", + "access-denied", + "address-in-use", + "adt-audit-data-unknown", + "auth-failed", + "bad-address", + "disconnected", + "failed", + "file-exists", + "file-not-found", + "invalid-args", + "invalid-file-content", + "invalid-signature", + "io-error", + "limits-exceeded", + "match-rule-invalid", + "match-rule-not-found", + "name-has-no-owner", + "no-memory", + "no-network", + "no-reply", + "no-server", + "not-supported", + "object-path-in-use", + "property-read-only", + "selinux-security-context-unknown", + "service-unknown", + "spawn-child-exited", + "spawn-child-signaled", + "spawn-config-invalid", + "spawn-exec-failed", + "spawn-failed", + "spawn-file-invalid", + "spawn-fork-failed", + "spawn-no-memory", + "spawn-permissions-invalid", + "spawn-service-invalid", + "spawn-service-not-found", + "spawn-setup-failed", + "timed-out", + "timeout", + "unix-process-id-unknown", + "unknown-interface", + "unknown-method", + "unknown-object", + "unknown-property", +] +_DBusErrorValueType: TypeAlias = DBusError | _DBusErrorLiteralType + class DBusMessageByteOrder(GObject.GEnum): BIG_ENDIAN = 66 LITTLE_ENDIAN = 108 +_DBusMessageByteOrderLiteralType: TypeAlias = Literal[ + "G_DBUS_MESSAGE_BYTE_ORDER_BIG_ENDIAN", + "G_DBUS_MESSAGE_BYTE_ORDER_LITTLE_ENDIAN", + "big-endian", + "little-endian", +] +_DBusMessageByteOrderValueType: TypeAlias = ( + DBusMessageByteOrder | _DBusMessageByteOrderLiteralType +) + class DBusMessageHeaderField(GObject.GEnum): DESTINATION = 6 ERROR_NAME = 4 @@ -13550,6 +14463,32 @@ class DBusMessageHeaderField(GObject.GEnum): SENDER = 7 SIGNATURE = 8 +_DBusMessageHeaderFieldLiteralType: TypeAlias = Literal[ + "G_DBUS_MESSAGE_HEADER_FIELD_DESTINATION", + "G_DBUS_MESSAGE_HEADER_FIELD_ERROR_NAME", + "G_DBUS_MESSAGE_HEADER_FIELD_INTERFACE", + "G_DBUS_MESSAGE_HEADER_FIELD_INVALID", + "G_DBUS_MESSAGE_HEADER_FIELD_MEMBER", + "G_DBUS_MESSAGE_HEADER_FIELD_NUM_UNIX_FDS", + "G_DBUS_MESSAGE_HEADER_FIELD_PATH", + "G_DBUS_MESSAGE_HEADER_FIELD_REPLY_SERIAL", + "G_DBUS_MESSAGE_HEADER_FIELD_SENDER", + "G_DBUS_MESSAGE_HEADER_FIELD_SIGNATURE", + "destination", + "error-name", + "interface", + "invalid", + "member", + "num-unix-fds", + "path", + "reply-serial", + "sender", + "signature", +] +_DBusMessageHeaderFieldValueType: TypeAlias = ( + DBusMessageHeaderField | _DBusMessageHeaderFieldLiteralType +) + class DBusMessageType(GObject.GEnum): ERROR = 3 INVALID = 0 @@ -13557,17 +14496,57 @@ class DBusMessageType(GObject.GEnum): METHOD_RETURN = 2 SIGNAL = 4 +_DBusMessageTypeLiteralType: TypeAlias = Literal[ + "G_DBUS_MESSAGE_TYPE_ERROR", + "G_DBUS_MESSAGE_TYPE_INVALID", + "G_DBUS_MESSAGE_TYPE_METHOD_CALL", + "G_DBUS_MESSAGE_TYPE_METHOD_RETURN", + "G_DBUS_MESSAGE_TYPE_SIGNAL", + "error", + "invalid", + "method-call", + "method-return", + "signal", +] +_DBusMessageTypeValueType: TypeAlias = DBusMessageType | _DBusMessageTypeLiteralType + class DataStreamByteOrder(GObject.GEnum): BIG_ENDIAN = 0 HOST_ENDIAN = 2 LITTLE_ENDIAN = 1 +_DataStreamByteOrderLiteralType: TypeAlias = Literal[ + "G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN", + "G_DATA_STREAM_BYTE_ORDER_HOST_ENDIAN", + "G_DATA_STREAM_BYTE_ORDER_LITTLE_ENDIAN", + "big-endian", + "host-endian", + "little-endian", +] +_DataStreamByteOrderValueType: TypeAlias = ( + DataStreamByteOrder | _DataStreamByteOrderLiteralType +) + class DataStreamNewlineType(GObject.GEnum): ANY = 3 CR = 1 CR_LF = 2 LF = 0 +_DataStreamNewlineTypeLiteralType: TypeAlias = Literal[ + "G_DATA_STREAM_NEWLINE_TYPE_ANY", + "G_DATA_STREAM_NEWLINE_TYPE_CR", + "G_DATA_STREAM_NEWLINE_TYPE_CR_LF", + "G_DATA_STREAM_NEWLINE_TYPE_LF", + "any", + "cr", + "cr-lf", + "lf", +] +_DataStreamNewlineTypeValueType: TypeAlias = ( + DataStreamNewlineType | _DataStreamNewlineTypeLiteralType +) + class DriveStartStopType(GObject.GEnum): MULTIDISK = 3 NETWORK = 2 @@ -13575,17 +14554,57 @@ class DriveStartStopType(GObject.GEnum): SHUTDOWN = 1 UNKNOWN = 0 +_DriveStartStopTypeLiteralType: TypeAlias = Literal[ + "G_DRIVE_START_STOP_TYPE_MULTIDISK", + "G_DRIVE_START_STOP_TYPE_NETWORK", + "G_DRIVE_START_STOP_TYPE_PASSWORD", + "G_DRIVE_START_STOP_TYPE_SHUTDOWN", + "G_DRIVE_START_STOP_TYPE_UNKNOWN", + "multidisk", + "network", + "password", + "shutdown", + "unknown", +] +_DriveStartStopTypeValueType: TypeAlias = ( + DriveStartStopType | _DriveStartStopTypeLiteralType +) + class EmblemOrigin(GObject.GEnum): DEVICE = 1 LIVEMETADATA = 2 TAG = 3 UNKNOWN = 0 +_EmblemOriginLiteralType: TypeAlias = Literal[ + "G_EMBLEM_ORIGIN_DEVICE", + "G_EMBLEM_ORIGIN_LIVEMETADATA", + "G_EMBLEM_ORIGIN_TAG", + "G_EMBLEM_ORIGIN_UNKNOWN", + "device", + "livemetadata", + "tag", + "unknown", +] +_EmblemOriginValueType: TypeAlias = EmblemOrigin | _EmblemOriginLiteralType + class FileAttributeStatus(GObject.GEnum): ERROR_SETTING = 2 SET = 1 UNSET = 0 +_FileAttributeStatusLiteralType: TypeAlias = Literal[ + "G_FILE_ATTRIBUTE_STATUS_ERROR_SETTING", + "G_FILE_ATTRIBUTE_STATUS_SET", + "G_FILE_ATTRIBUTE_STATUS_UNSET", + "error-setting", + "set", + "unset", +] +_FileAttributeStatusValueType: TypeAlias = ( + FileAttributeStatus | _FileAttributeStatusLiteralType +) + class FileAttributeType(GObject.GEnum): BOOLEAN = 3 BYTE_STRING = 2 @@ -13598,6 +14617,32 @@ class FileAttributeType(GObject.GEnum): UINT32 = 4 UINT64 = 6 +_FileAttributeTypeLiteralType: TypeAlias = Literal[ + "G_FILE_ATTRIBUTE_TYPE_BOOLEAN", + "G_FILE_ATTRIBUTE_TYPE_BYTE_STRING", + "G_FILE_ATTRIBUTE_TYPE_INT32", + "G_FILE_ATTRIBUTE_TYPE_INT64", + "G_FILE_ATTRIBUTE_TYPE_INVALID", + "G_FILE_ATTRIBUTE_TYPE_OBJECT", + "G_FILE_ATTRIBUTE_TYPE_STRING", + "G_FILE_ATTRIBUTE_TYPE_STRINGV", + "G_FILE_ATTRIBUTE_TYPE_UINT32", + "G_FILE_ATTRIBUTE_TYPE_UINT64", + "boolean", + "byte-string", + "int32", + "int64", + "invalid", + "object", + "string", + "stringv", + "uint32", + "uint64", +] +_FileAttributeTypeValueType: TypeAlias = ( + FileAttributeType | _FileAttributeTypeLiteralType +) + class FileMonitorEvent(GObject.GEnum): ATTRIBUTE_CHANGED = 4 CHANGED = 0 @@ -13611,6 +14656,32 @@ class FileMonitorEvent(GObject.GEnum): RENAMED = 8 UNMOUNTED = 6 +_FileMonitorEventLiteralType: TypeAlias = Literal[ + "G_FILE_MONITOR_EVENT_ATTRIBUTE_CHANGED", + "G_FILE_MONITOR_EVENT_CHANGED", + "G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT", + "G_FILE_MONITOR_EVENT_CREATED", + "G_FILE_MONITOR_EVENT_DELETED", + "G_FILE_MONITOR_EVENT_MOVED", + "G_FILE_MONITOR_EVENT_MOVED_IN", + "G_FILE_MONITOR_EVENT_MOVED_OUT", + "G_FILE_MONITOR_EVENT_PRE_UNMOUNT", + "G_FILE_MONITOR_EVENT_RENAMED", + "G_FILE_MONITOR_EVENT_UNMOUNTED", + "attribute-changed", + "changed", + "changes-done-hint", + "created", + "deleted", + "moved", + "moved-in", + "moved-out", + "pre-unmount", + "renamed", + "unmounted", +] +_FileMonitorEventValueType: TypeAlias = FileMonitorEvent | _FileMonitorEventLiteralType + class FileType(GObject.GEnum): DIRECTORY = 2 MOUNTABLE = 6 @@ -13620,11 +14691,41 @@ class FileType(GObject.GEnum): SYMBOLIC_LINK = 3 UNKNOWN = 0 +_FileTypeLiteralType: TypeAlias = Literal[ + "G_FILE_TYPE_DIRECTORY", + "G_FILE_TYPE_MOUNTABLE", + "G_FILE_TYPE_REGULAR", + "G_FILE_TYPE_SHORTCUT", + "G_FILE_TYPE_SPECIAL", + "G_FILE_TYPE_SYMBOLIC_LINK", + "G_FILE_TYPE_UNKNOWN", + "directory", + "mountable", + "regular", + "shortcut", + "special", + "symbolic-link", + "unknown", +] +_FileTypeValueType: TypeAlias = FileType | _FileTypeLiteralType + class FilesystemPreviewType(GObject.GEnum): IF_ALWAYS = 0 IF_LOCAL = 1 NEVER = 2 +_FilesystemPreviewTypeLiteralType: TypeAlias = Literal[ + "G_FILESYSTEM_PREVIEW_TYPE_IF_ALWAYS", + "G_FILESYSTEM_PREVIEW_TYPE_IF_LOCAL", + "G_FILESYSTEM_PREVIEW_TYPE_NEVER", + "if-always", + "if-local", + "never", +] +_FilesystemPreviewTypeValueType: TypeAlias = ( + FilesystemPreviewType | _FilesystemPreviewTypeLiteralType +) + class IOErrorEnum(GObject.GEnum): ADDRESS_IN_USE = 33 ALREADY_MOUNTED = 17 @@ -13677,42 +14778,226 @@ class IOErrorEnum(GObject.GEnum): WOULD_RECURSE = 25 WRONG_ETAG = 23 +_IOErrorEnumLiteralType: TypeAlias = Literal[ + "G_IO_ERROR_ADDRESS_IN_USE", + "G_IO_ERROR_ALREADY_MOUNTED", + "G_IO_ERROR_BROKEN_PIPE", + "G_IO_ERROR_BUSY", + "G_IO_ERROR_CANCELLED", + "G_IO_ERROR_CANT_CREATE_BACKUP", + "G_IO_ERROR_CLOSED", + "G_IO_ERROR_CONNECTION_REFUSED", + "G_IO_ERROR_DBUS_ERROR", + "G_IO_ERROR_DESTINATION_UNSET", + "G_IO_ERROR_EXISTS", + "G_IO_ERROR_FAILED", + "G_IO_ERROR_FAILED_HANDLED", + "G_IO_ERROR_FILENAME_TOO_LONG", + "G_IO_ERROR_HOST_NOT_FOUND", + "G_IO_ERROR_HOST_UNREACHABLE", + "G_IO_ERROR_INVALID_ARGUMENT", + "G_IO_ERROR_INVALID_DATA", + "G_IO_ERROR_INVALID_FILENAME", + "G_IO_ERROR_IS_DIRECTORY", + "G_IO_ERROR_MESSAGE_TOO_LARGE", + "G_IO_ERROR_NETWORK_UNREACHABLE", + "G_IO_ERROR_NOT_CONNECTED", + "G_IO_ERROR_NOT_DIRECTORY", + "G_IO_ERROR_NOT_EMPTY", + "G_IO_ERROR_NOT_FOUND", + "G_IO_ERROR_NOT_INITIALIZED", + "G_IO_ERROR_NOT_MOUNTABLE_FILE", + "G_IO_ERROR_NOT_MOUNTED", + "G_IO_ERROR_NOT_REGULAR_FILE", + "G_IO_ERROR_NOT_SUPPORTED", + "G_IO_ERROR_NOT_SYMBOLIC_LINK", + "G_IO_ERROR_NO_SPACE", + "G_IO_ERROR_NO_SUCH_DEVICE", + "G_IO_ERROR_PARTIAL_INPUT", + "G_IO_ERROR_PENDING", + "G_IO_ERROR_PERMISSION_DENIED", + "G_IO_ERROR_PROXY_AUTH_FAILED", + "G_IO_ERROR_PROXY_FAILED", + "G_IO_ERROR_PROXY_NEED_AUTH", + "G_IO_ERROR_PROXY_NOT_ALLOWED", + "G_IO_ERROR_READ_ONLY", + "G_IO_ERROR_TIMED_OUT", + "G_IO_ERROR_TOO_MANY_LINKS", + "G_IO_ERROR_TOO_MANY_OPEN_FILES", + "G_IO_ERROR_WOULD_BLOCK", + "G_IO_ERROR_WOULD_MERGE", + "G_IO_ERROR_WOULD_RECURSE", + "G_IO_ERROR_WRONG_ETAG", + "address-in-use", + "already-mounted", + "broken-pipe", + "busy", + "cancelled", + "cant-create-backup", + "closed", + "connection-refused", + "dbus-error", + "destination-unset", + "exists", + "failed", + "failed-handled", + "filename-too-long", + "host-not-found", + "host-unreachable", + "invalid-argument", + "invalid-data", + "invalid-filename", + "is-directory", + "message-too-large", + "network-unreachable", + "no-space", + "no-such-device", + "not-connected", + "not-directory", + "not-empty", + "not-found", + "not-initialized", + "not-mountable-file", + "not-mounted", + "not-regular-file", + "not-supported", + "not-symbolic-link", + "partial-input", + "pending", + "permission-denied", + "proxy-auth-failed", + "proxy-failed", + "proxy-need-auth", + "proxy-not-allowed", + "read-only", + "timed-out", + "too-many-links", + "too-many-open-files", + "would-block", + "would-merge", + "would-recurse", + "wrong-etag", +] +_IOErrorEnumValueType: TypeAlias = IOErrorEnum | _IOErrorEnumLiteralType + class IOModuleScopeFlags(GObject.GEnum): BLOCK_DUPLICATES = 1 NONE = 0 +_IOModuleScopeFlagsLiteralType: TypeAlias = Literal[ + "G_IO_MODULE_SCOPE_BLOCK_DUPLICATES", + "G_IO_MODULE_SCOPE_NONE", + "block-duplicates", + "none", +] +_IOModuleScopeFlagsValueType: TypeAlias = ( + IOModuleScopeFlags | _IOModuleScopeFlagsLiteralType +) + class MemoryMonitorWarningLevel(GObject.GEnum): CRITICAL = 255 LOW = 50 MEDIUM = 100 +_MemoryMonitorWarningLevelLiteralType: TypeAlias = Literal[ + "G_MEMORY_MONITOR_WARNING_LEVEL_CRITICAL", + "G_MEMORY_MONITOR_WARNING_LEVEL_LOW", + "G_MEMORY_MONITOR_WARNING_LEVEL_MEDIUM", + "critical", + "low", + "medium", +] +_MemoryMonitorWarningLevelValueType: TypeAlias = ( + MemoryMonitorWarningLevel | _MemoryMonitorWarningLevelLiteralType +) + class MountOperationResult(GObject.GEnum): ABORTED = 1 HANDLED = 0 UNHANDLED = 2 +_MountOperationResultLiteralType: TypeAlias = Literal[ + "G_MOUNT_OPERATION_ABORTED", + "G_MOUNT_OPERATION_HANDLED", + "G_MOUNT_OPERATION_UNHANDLED", + "aborted", + "handled", + "unhandled", +] +_MountOperationResultValueType: TypeAlias = ( + MountOperationResult | _MountOperationResultLiteralType +) + class NetworkConnectivity(GObject.GEnum): FULL = 4 LIMITED = 2 LOCAL = 1 PORTAL = 3 +_NetworkConnectivityLiteralType: TypeAlias = Literal[ + "G_NETWORK_CONNECTIVITY_FULL", + "G_NETWORK_CONNECTIVITY_LIMITED", + "G_NETWORK_CONNECTIVITY_LOCAL", + "G_NETWORK_CONNECTIVITY_PORTAL", + "full", + "limited", + "local", + "portal", +] +_NetworkConnectivityValueType: TypeAlias = ( + NetworkConnectivity | _NetworkConnectivityLiteralType +) + class NotificationPriority(GObject.GEnum): HIGH = 2 LOW = 1 NORMAL = 0 URGENT = 3 +_NotificationPriorityLiteralType: TypeAlias = Literal[ + "G_NOTIFICATION_PRIORITY_HIGH", + "G_NOTIFICATION_PRIORITY_LOW", + "G_NOTIFICATION_PRIORITY_NORMAL", + "G_NOTIFICATION_PRIORITY_URGENT", + "high", + "low", + "normal", + "urgent", +] +_NotificationPriorityValueType: TypeAlias = ( + NotificationPriority | _NotificationPriorityLiteralType +) + class PasswordSave(GObject.GEnum): FOR_SESSION = 1 NEVER = 0 PERMANENTLY = 2 +_PasswordSaveLiteralType: TypeAlias = Literal[ + "G_PASSWORD_SAVE_FOR_SESSION", + "G_PASSWORD_SAVE_NEVER", + "G_PASSWORD_SAVE_PERMANENTLY", + "for-session", + "never", + "permanently", +] +_PasswordSaveValueType: TypeAlias = PasswordSave | _PasswordSaveLiteralType + class PollableReturn(GObject.GEnum): FAILED = 0 OK = 1 WOULD_BLOCK = -27 +_PollableReturnLiteralType: TypeAlias = Literal[ + "G_POLLABLE_RETURN_FAILED", + "G_POLLABLE_RETURN_OK", + "G_POLLABLE_RETURN_WOULD_BLOCK", + "failed", + "ok", + "would-block", +] +_PollableReturnValueType: TypeAlias = PollableReturn | _PollableReturnLiteralType + class ResolverError(GObject.GEnum): INTERNAL = 2 NOT_FOUND = 0 @@ -13720,6 +15005,16 @@ class ResolverError(GObject.GEnum): @staticmethod def quark() -> int: ... +_ResolverErrorLiteralType: TypeAlias = Literal[ + "G_RESOLVER_ERROR_INTERNAL", + "G_RESOLVER_ERROR_NOT_FOUND", + "G_RESOLVER_ERROR_TEMPORARY_FAILURE", + "internal", + "not-found", + "temporary-failure", +] +_ResolverErrorValueType: TypeAlias = ResolverError | _ResolverErrorLiteralType + class ResolverRecordType(GObject.GEnum): MX = 2 NS = 5 @@ -13727,12 +15022,33 @@ class ResolverRecordType(GObject.GEnum): SRV = 1 TXT = 3 +_ResolverRecordTypeLiteralType: TypeAlias = Literal[ + "G_RESOLVER_RECORD_MX", + "G_RESOLVER_RECORD_NS", + "G_RESOLVER_RECORD_SOA", + "G_RESOLVER_RECORD_SRV", + "G_RESOLVER_RECORD_TXT", + "mx", + "ns", + "soa", + "srv", + "txt", +] +_ResolverRecordTypeValueType: TypeAlias = ( + ResolverRecordType | _ResolverRecordTypeLiteralType +) + class ResourceError(GObject.GEnum): INTERNAL = 1 NOT_FOUND = 0 @staticmethod def quark() -> int: ... +_ResourceErrorLiteralType: TypeAlias = Literal[ + "G_RESOURCE_ERROR_INTERNAL", "G_RESOURCE_ERROR_NOT_FOUND", "internal", "not-found" +] +_ResourceErrorValueType: TypeAlias = ResourceError | _ResourceErrorLiteralType + class SocketClientEvent(GObject.GEnum): COMPLETE = 8 CONNECTED = 3 @@ -13744,18 +15060,68 @@ class SocketClientEvent(GObject.GEnum): TLS_HANDSHAKED = 7 TLS_HANDSHAKING = 6 +_SocketClientEventLiteralType: TypeAlias = Literal[ + "G_SOCKET_CLIENT_COMPLETE", + "G_SOCKET_CLIENT_CONNECTED", + "G_SOCKET_CLIENT_CONNECTING", + "G_SOCKET_CLIENT_PROXY_NEGOTIATED", + "G_SOCKET_CLIENT_PROXY_NEGOTIATING", + "G_SOCKET_CLIENT_RESOLVED", + "G_SOCKET_CLIENT_RESOLVING", + "G_SOCKET_CLIENT_TLS_HANDSHAKED", + "G_SOCKET_CLIENT_TLS_HANDSHAKING", + "complete", + "connected", + "connecting", + "proxy-negotiated", + "proxy-negotiating", + "resolved", + "resolving", + "tls-handshaked", + "tls-handshaking", +] +_SocketClientEventValueType: TypeAlias = ( + SocketClientEvent | _SocketClientEventLiteralType +) + class SocketFamily(GObject.GEnum): INVALID = 0 IPV4 = 2 IPV6 = 10 UNIX = 1 +_SocketFamilyLiteralType: TypeAlias = Literal[ + "G_SOCKET_FAMILY_INVALID", + "G_SOCKET_FAMILY_IPV4", + "G_SOCKET_FAMILY_IPV6", + "G_SOCKET_FAMILY_UNIX", + "invalid", + "ipv4", + "ipv6", + "unix", +] +_SocketFamilyValueType: TypeAlias = SocketFamily | _SocketFamilyLiteralType + class SocketListenerEvent(GObject.GEnum): BINDING = 0 BOUND = 1 LISTENED = 3 LISTENING = 2 +_SocketListenerEventLiteralType: TypeAlias = Literal[ + "G_SOCKET_LISTENER_BINDING", + "G_SOCKET_LISTENER_BOUND", + "G_SOCKET_LISTENER_LISTENED", + "G_SOCKET_LISTENER_LISTENING", + "binding", + "bound", + "listened", + "listening", +] +_SocketListenerEventValueType: TypeAlias = ( + SocketListenerEvent | _SocketListenerEventLiteralType +) + class SocketProtocol(GObject.GEnum): DEFAULT = 0 SCTP = 132 @@ -13763,20 +15129,65 @@ class SocketProtocol(GObject.GEnum): UDP = 17 UNKNOWN = -1 +_SocketProtocolLiteralType: TypeAlias = Literal[ + "G_SOCKET_PROTOCOL_DEFAULT", + "G_SOCKET_PROTOCOL_SCTP", + "G_SOCKET_PROTOCOL_TCP", + "G_SOCKET_PROTOCOL_UDP", + "G_SOCKET_PROTOCOL_UNKNOWN", + "default", + "sctp", + "tcp", + "udp", + "unknown", +] +_SocketProtocolValueType: TypeAlias = SocketProtocol | _SocketProtocolLiteralType + class SocketType(GObject.GEnum): DATAGRAM = 2 INVALID = 0 SEQPACKET = 3 STREAM = 1 +_SocketTypeLiteralType: TypeAlias = Literal[ + "G_SOCKET_TYPE_DATAGRAM", + "G_SOCKET_TYPE_INVALID", + "G_SOCKET_TYPE_SEQPACKET", + "G_SOCKET_TYPE_STREAM", + "datagram", + "invalid", + "seqpacket", + "stream", +] +_SocketTypeValueType: TypeAlias = SocketType | _SocketTypeLiteralType + class TlsAuthenticationMode(GObject.GEnum): NONE = 0 REQUESTED = 1 REQUIRED = 2 +_TlsAuthenticationModeLiteralType: TypeAlias = Literal[ + "G_TLS_AUTHENTICATION_NONE", + "G_TLS_AUTHENTICATION_REQUESTED", + "G_TLS_AUTHENTICATION_REQUIRED", + "none", + "requested", + "required", +] +_TlsAuthenticationModeValueType: TypeAlias = ( + TlsAuthenticationMode | _TlsAuthenticationModeLiteralType +) + class TlsCertificateRequestFlags(GObject.GEnum): NONE = 0 +_TlsCertificateRequestFlagsLiteralType: TypeAlias = Literal[ + "G_TLS_CERTIFICATE_REQUEST_NONE", "none" +] +_TlsCertificateRequestFlagsValueType: TypeAlias = ( + TlsCertificateRequestFlags | _TlsCertificateRequestFlagsLiteralType +) + class TlsChannelBindingError(GObject.GEnum): GENERAL_ERROR = 4 INVALID_STATE = 1 @@ -13786,15 +15197,50 @@ class TlsChannelBindingError(GObject.GEnum): @staticmethod def quark() -> int: ... +_TlsChannelBindingErrorLiteralType: TypeAlias = Literal[ + "G_TLS_CHANNEL_BINDING_ERROR_GENERAL_ERROR", + "G_TLS_CHANNEL_BINDING_ERROR_INVALID_STATE", + "G_TLS_CHANNEL_BINDING_ERROR_NOT_AVAILABLE", + "G_TLS_CHANNEL_BINDING_ERROR_NOT_IMPLEMENTED", + "G_TLS_CHANNEL_BINDING_ERROR_NOT_SUPPORTED", + "general-error", + "invalid-state", + "not-available", + "not-implemented", + "not-supported", +] +_TlsChannelBindingErrorValueType: TypeAlias = ( + TlsChannelBindingError | _TlsChannelBindingErrorLiteralType +) + class TlsChannelBindingType(GObject.GEnum): EXPORTER = 2 SERVER_END_POINT = 1 UNIQUE = 0 +_TlsChannelBindingTypeLiteralType: TypeAlias = Literal[ + "G_TLS_CHANNEL_BINDING_TLS_EXPORTER", + "G_TLS_CHANNEL_BINDING_TLS_SERVER_END_POINT", + "G_TLS_CHANNEL_BINDING_TLS_UNIQUE", + "exporter", + "server-end-point", + "unique", +] +_TlsChannelBindingTypeValueType: TypeAlias = ( + TlsChannelBindingType | _TlsChannelBindingTypeLiteralType +) + class TlsDatabaseLookupFlags(GObject.GEnum): KEYPAIR = 1 NONE = 0 +_TlsDatabaseLookupFlagsLiteralType: TypeAlias = Literal[ + "G_TLS_DATABASE_LOOKUP_KEYPAIR", "G_TLS_DATABASE_LOOKUP_NONE", "keypair", "none" +] +_TlsDatabaseLookupFlagsValueType: TypeAlias = ( + TlsDatabaseLookupFlags | _TlsDatabaseLookupFlagsLiteralType +) + class TlsError(GObject.GEnum): BAD_CERTIFICATE = 2 BAD_CERTIFICATE_PASSWORD = 8 @@ -13808,11 +15254,45 @@ class TlsError(GObject.GEnum): @staticmethod def quark() -> int: ... +_TlsErrorLiteralType: TypeAlias = Literal[ + "G_TLS_ERROR_BAD_CERTIFICATE", + "G_TLS_ERROR_BAD_CERTIFICATE_PASSWORD", + "G_TLS_ERROR_CERTIFICATE_REQUIRED", + "G_TLS_ERROR_EOF", + "G_TLS_ERROR_HANDSHAKE", + "G_TLS_ERROR_INAPPROPRIATE_FALLBACK", + "G_TLS_ERROR_MISC", + "G_TLS_ERROR_NOT_TLS", + "G_TLS_ERROR_UNAVAILABLE", + "bad-certificate", + "bad-certificate-password", + "certificate-required", + "eof", + "handshake", + "inappropriate-fallback", + "misc", + "not-tls", + "unavailable", +] +_TlsErrorValueType: TypeAlias = TlsError | _TlsErrorLiteralType + class TlsInteractionResult(GObject.GEnum): FAILED = 2 HANDLED = 1 UNHANDLED = 0 +_TlsInteractionResultLiteralType: TypeAlias = Literal[ + "G_TLS_INTERACTION_FAILED", + "G_TLS_INTERACTION_HANDLED", + "G_TLS_INTERACTION_UNHANDLED", + "failed", + "handled", + "unhandled", +] +_TlsInteractionResultValueType: TypeAlias = ( + TlsInteractionResult | _TlsInteractionResultLiteralType +) + class TlsProtocolVersion(GObject.GEnum): DTLS_1_0 = 201 DTLS_1_2 = 202 @@ -13823,11 +15303,45 @@ class TlsProtocolVersion(GObject.GEnum): TLS_1_3 = 5 UNKNOWN = 0 +_TlsProtocolVersionLiteralType: TypeAlias = Literal[ + "G_TLS_PROTOCOL_VERSION_DTLS_1_0", + "G_TLS_PROTOCOL_VERSION_DTLS_1_2", + "G_TLS_PROTOCOL_VERSION_SSL_3_0", + "G_TLS_PROTOCOL_VERSION_TLS_1_0", + "G_TLS_PROTOCOL_VERSION_TLS_1_1", + "G_TLS_PROTOCOL_VERSION_TLS_1_2", + "G_TLS_PROTOCOL_VERSION_TLS_1_3", + "G_TLS_PROTOCOL_VERSION_UNKNOWN", + "dtls-1-0", + "dtls-1-2", + "ssl-3-0", + "tls-1-0", + "tls-1-1", + "tls-1-2", + "tls-1-3", + "unknown", +] +_TlsProtocolVersionValueType: TypeAlias = ( + TlsProtocolVersion | _TlsProtocolVersionLiteralType +) + class TlsRehandshakeMode(GObject.GEnum): NEVER = 0 SAFELY = 1 UNSAFELY = 2 +_TlsRehandshakeModeLiteralType: TypeAlias = Literal[ + "G_TLS_REHANDSHAKE_NEVER", + "G_TLS_REHANDSHAKE_SAFELY", + "G_TLS_REHANDSHAKE_UNSAFELY", + "never", + "safely", + "unsafely", +] +_TlsRehandshakeModeValueType: TypeAlias = ( + TlsRehandshakeMode | _TlsRehandshakeModeLiteralType +) + class UnixSocketAddressType(GObject.GEnum): ABSTRACT = 3 ABSTRACT_PADDED = 4 @@ -13835,7 +15349,35 @@ class UnixSocketAddressType(GObject.GEnum): INVALID = 0 PATH = 2 +_UnixSocketAddressTypeLiteralType: TypeAlias = Literal[ + "G_UNIX_SOCKET_ADDRESS_ABSTRACT", + "G_UNIX_SOCKET_ADDRESS_ABSTRACT_PADDED", + "G_UNIX_SOCKET_ADDRESS_ANONYMOUS", + "G_UNIX_SOCKET_ADDRESS_INVALID", + "G_UNIX_SOCKET_ADDRESS_PATH", + "abstract", + "abstract-padded", + "anonymous", + "invalid", + "path", +] +_UnixSocketAddressTypeValueType: TypeAlias = ( + UnixSocketAddressType | _UnixSocketAddressTypeLiteralType +) + class ZlibCompressorFormat(GObject.GEnum): GZIP = 1 RAW = 2 ZLIB = 0 + +_ZlibCompressorFormatLiteralType: TypeAlias = Literal[ + "G_ZLIB_COMPRESSOR_FORMAT_GZIP", + "G_ZLIB_COMPRESSOR_FORMAT_RAW", + "G_ZLIB_COMPRESSOR_FORMAT_ZLIB", + "gzip", + "raw", + "zlib", +] +_ZlibCompressorFormatValueType: TypeAlias = ( + ZlibCompressorFormat | _ZlibCompressorFormatLiteralType +) diff --git a/src/gi-stubs/repository/GioUnix.pyi b/src/gi-stubs/repository/GioUnix.pyi index 3b924d33..a103d2ff 100644 --- a/src/gi-stubs/repository/GioUnix.pyi +++ b/src/gi-stubs/repository/GioUnix.pyi @@ -75,7 +75,7 @@ class DesktopAppInfo(GObject.Object, Gio.AppInfo): @property def props(self) -> Props: ... - def __init__(self, *, filename: str = ...) -> None: ... + def __init__(self, *, filename: str | None = ...) -> None: ... def get_action_name(self, action_name: str) -> str: ... def get_boolean(self, key: str) -> bool: ... def get_categories(self) -> str | None: ... @@ -195,7 +195,7 @@ class FDMessage(Gio.SocketControlMessage): def parent_instance(self) -> Gio.SocketControlMessage: ... @property def priv(self) -> FDMessagePrivate: ... - def __init__(self, *, fd_list: Gio.UnixFDList = ...) -> None: ... + def __init__(self, *, fd_list: Gio.UnixFDList | None = ...) -> None: ... def append_fd(self, fd: int) -> bool: ... def get_fd_list(self) -> Gio.UnixFDList: ... @classmethod diff --git a/src/gi-stubs/repository/Gly.pyi b/src/gi-stubs/repository/Gly.pyi index 3cc34d45..72318b88 100644 --- a/src/gi-stubs/repository/Gly.pyi +++ b/src/gi-stubs/repository/Gly.pyi @@ -1,4 +1,6 @@ +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -12,8 +14,8 @@ from gi.repository import GObject _DataTs = TypeVarTuple("_DataTs", default=Unpack[tuple[()]]) def loader_error_quark() -> int: ... -def memory_format_has_alpha(memory_format: MemoryFormat) -> bool: ... -def memory_format_is_premultiplied(memory_format: MemoryFormat) -> bool: ... +def memory_format_has_alpha(memory_format: _MemoryFormatValueType) -> bool: ... +def memory_format_is_premultiplied(memory_format: _MemoryFormatValueType) -> bool: ... class Cicp(GObject.GBoxed): """ @@ -52,23 +54,33 @@ class Creator(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def mime_type(self) -> str: ... - sandbox_selector: SandboxSelector + def mime_type(self) -> str | None: ... + @property + def sandbox_selector(self) -> SandboxSelector: ... + @sandbox_selector.setter + def sandbox_selector(self, value: _SandboxSelectorValueType) -> None: ... @property def props(self) -> Props: ... def __init__( - self, *, mime_type: str = ..., sandbox_selector: SandboxSelector = ... + self, + *, + mime_type: str | None = ..., + sandbox_selector: _SandboxSelectorValueType = ..., ) -> None: ... def add_frame( - self, width: int, height: int, memory_format: MemoryFormat, texture: GLib.Bytes + self, + width: int, + height: int, + memory_format: _MemoryFormatValueType, + texture: GLib.Bytes, ) -> NewFrame: ... def add_frame_with_stride( self, width: int, height: int, stride: int, - memory_format: MemoryFormat, + memory_format: _MemoryFormatValueType, texture: GLib.Bytes, ) -> NewFrame: ... def add_metadata_key_value(self, key: str, value: str) -> bool: ... @@ -87,7 +99,9 @@ class Creator(GObject.Object): def new(cls, mime_type: str) -> Creator: ... def set_encoding_compression(self, compression: int) -> bool: ... def set_encoding_quality(self, quality: int) -> bool: ... - def set_sandbox_selector(self, sandbox_selector: SandboxSelector) -> bool: ... + def set_sandbox_selector( + self, sandbox_selector: _SandboxSelectorValueType + ) -> bool: ... class CreatorClass(_gi.Struct): """ @@ -297,14 +311,22 @@ class Loader(GObject.Object): class Props(GObject.Object.Props): apply_transformation: bool @property - def bytes(self) -> GLib.Bytes: ... - cancellable: Gio.Cancellable + def bytes(self) -> GLib.Bytes | None: ... + cancellable: Gio.Cancellable | None @property - def file(self) -> Gio.File: ... - memory_format_selection: MemoryFormatSelection - sandbox_selector: SandboxSelector + def file(self) -> Gio.File | None: ... @property - def stream(self) -> Gio.InputStream: ... + def memory_format_selection(self) -> MemoryFormatSelection: ... + @memory_format_selection.setter + def memory_format_selection( + self, value: _MemoryFormatSelectionValueType + ) -> None: ... + @property + def sandbox_selector(self) -> SandboxSelector: ... + @sandbox_selector.setter + def sandbox_selector(self, value: _SandboxSelectorValueType) -> None: ... + @property + def stream(self) -> Gio.InputStream | None: ... @property def props(self) -> Props: ... @@ -312,12 +334,12 @@ class Loader(GObject.Object): self, *, apply_transformation: bool = ..., - bytes: GLib.Bytes = ..., - cancellable: Gio.Cancellable = ..., - file: Gio.File = ..., - memory_format_selection: MemoryFormatSelection = ..., - sandbox_selector: SandboxSelector = ..., - stream: Gio.InputStream = ..., + bytes: GLib.Bytes | None = ..., + cancellable: Gio.Cancellable | None = ..., + file: Gio.File | None = ..., + memory_format_selection: _MemoryFormatSelectionValueType = ..., + sandbox_selector: _SandboxSelectorValueType = ..., + stream: Gio.InputStream | None = ..., ) -> None: ... @staticmethod def get_mime_types() -> list[str]: ... @@ -350,10 +372,12 @@ class Loader(GObject.Object): @classmethod def new_for_stream(cls, stream: Gio.InputStream) -> Loader: ... def set_accepted_memory_formats( - self, memory_format_selection: MemoryFormatSelection + self, memory_format_selection: _MemoryFormatSelectionValueType ) -> None: ... def set_apply_transformations(self, apply_transformations: bool) -> None: ... - def set_sandbox_selector(self, sandbox_selector: SandboxSelector) -> None: ... + def set_sandbox_selector( + self, sandbox_selector: _SandboxSelectorValueType + ) -> None: ... class LoaderClass(_gi.Struct): """ @@ -417,6 +441,60 @@ class MemoryFormatSelection(GObject.GFlags): R8G8B8A8 = 32 R8G8B8A8_PREMULTIPLIED = 4 +_MemoryFormatSelectionLiteralType: TypeAlias = Literal[ + "A8b8g8r8", + "A8r8g8b8", + "A8r8g8b8Premultiplied", + "B8g8r8", + "B8g8r8a8", + "B8g8r8a8Premultiplied", + "G16", + "G16a16", + "G16a16Premultiplied", + "G8", + "G8a8", + "G8a8Premultiplied", + "R16g16b16", + "R16g16b16Float", + "R16g16b16a16", + "R16g16b16a16Float", + "R16g16b16a16Premultiplied", + "R32g32b32Float", + "R32g32b32a32Float", + "R32g32b32a32FloatPremultiplied", + "R8g8b8", + "R8g8b8a8", + "R8g8b8a8Premultiplied", + "a8b8g8r8", + "a8r8g8b8", + "a8r8g8b8-premultiplied", + "b8g8r8", + "b8g8r8a8", + "b8g8r8a8-premultiplied", + "g16", + "g16a16", + "g16a16-premultiplied", + "g8", + "g8a8", + "g8a8-premultiplied", + "r16g16b16", + "r16g16b16-float", + "r16g16b16a16", + "r16g16b16a16-float", + "r16g16b16a16-premultiplied", + "r32g32b32-float", + "r32g32b32a32-float", + "r32g32b32a32-float-premultiplied", + "r8g8b8", + "r8g8b8a8", + "r8g8b8a8-premultiplied", +] +_MemoryFormatSelectionValueType: TypeAlias = ( + MemoryFormatSelection + | _MemoryFormatSelectionLiteralType + | tuple[_MemoryFormatSelectionLiteralType, ...] +) + class LoaderError(GObject.GEnum): FAILED = 0 NO_MORE_FRAMES = 2 @@ -424,6 +502,16 @@ class LoaderError(GObject.GEnum): @staticmethod def quark() -> int: ... +_LoaderErrorLiteralType: TypeAlias = Literal[ + "Failed", + "NoMoreFrames", + "UnknownImageFormat", + "failed", + "no-more-frames", + "unknown-image-format", +] +_LoaderErrorValueType: TypeAlias = LoaderError | _LoaderErrorLiteralType + class MemoryFormat(GObject.GEnum): A8B8G8R8 = 6 A8R8G8B8 = 4 @@ -449,12 +537,74 @@ class MemoryFormat(GObject.GEnum): R8G8B8A8 = 5 R8G8B8A8_PREMULTIPLIED = 2 @staticmethod - def has_alpha(memory_format: MemoryFormat) -> bool: ... + def has_alpha(memory_format: _MemoryFormatValueType) -> bool: ... @staticmethod - def is_premultiplied(memory_format: MemoryFormat) -> bool: ... + def is_premultiplied(memory_format: _MemoryFormatValueType) -> bool: ... + +_MemoryFormatLiteralType: TypeAlias = Literal[ + "A8b8g8r8", + "A8r8g8b8", + "A8r8g8b8Premultiplied", + "B8g8r8", + "B8g8r8a8", + "B8g8r8a8Premultiplied", + "G16", + "G16a16", + "G16a16Premultiplied", + "G8", + "G8a8", + "G8a8Premultiplied", + "R16g16b16", + "R16g16b16Float", + "R16g16b16a16", + "R16g16b16a16Float", + "R16g16b16a16Premultiplied", + "R32g32b32Float", + "R32g32b32a32Float", + "R32g32b32a32FloatPremultiplied", + "R8g8b8", + "R8g8b8a8", + "R8g8b8a8Premultiplied", + "a8b8g8r8", + "a8r8g8b8", + "a8r8g8b8-premultiplied", + "b8g8r8", + "b8g8r8a8", + "b8g8r8a8-premultiplied", + "g16", + "g16a16", + "g16a16-premultiplied", + "g8", + "g8a8", + "g8a8-premultiplied", + "r16g16b16", + "r16g16b16-float", + "r16g16b16a16", + "r16g16b16a16-float", + "r16g16b16a16-premultiplied", + "r32g32b32-float", + "r32g32b32a32-float", + "r32g32b32a32-float-premultiplied", + "r8g8b8", + "r8g8b8a8", + "r8g8b8a8-premultiplied", +] +_MemoryFormatValueType: TypeAlias = MemoryFormat | _MemoryFormatLiteralType class SandboxSelector(GObject.GEnum): AUTO = 0 BWRAP = 1 FLATPAK_SPAWN = 2 NOT_SANDBOXED = 3 + +_SandboxSelectorLiteralType: TypeAlias = Literal[ + "Auto", + "Bwrap", + "FlatpakSpawn", + "NotSandboxed", + "auto", + "bwrap", + "flatpak-spawn", + "not-sandboxed", +] +_SandboxSelectorValueType: TypeAlias = SandboxSelector | _SandboxSelectorLiteralType diff --git a/src/gi-stubs/repository/Gsk.pyi b/src/gi-stubs/repository/Gsk.pyi index f966300a..fee1cd2a 100644 --- a/src/gi-stubs/repository/Gsk.pyi +++ b/src/gi-stubs/repository/Gsk.pyi @@ -1,5 +1,7 @@ from typing import Any +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVar from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -46,7 +48,7 @@ class BlendNode(RenderNode): def get_top_child(self) -> RenderNode: ... @classmethod def new( - cls, bottom: RenderNode, top: RenderNode, blend_mode: BlendMode + cls, bottom: RenderNode, top: RenderNode, blend_mode: _BlendModeValueType ) -> BlendNode: ... class BlurNode(RenderNode): @@ -335,7 +337,9 @@ class FillNode(RenderNode): def get_fill_rule(self) -> FillRule: ... def get_path(self) -> Path: ... @classmethod - def new(cls, child: RenderNode, path: Path, fill_rule: FillRule) -> FillNode: ... + def new( + cls, child: RenderNode, path: Path, fill_rule: _FillRuleValueType + ) -> FillNode: ... class GLRenderer(Renderer): """ @@ -388,7 +392,9 @@ class GLShader(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, resource: str = ..., source: GLib.Bytes = ...) -> None: ... + def __init__( + self, *, resource: str | None = ..., source: GLib.Bytes | None = ... + ) -> None: ... def compile(self, renderer: Renderer) -> bool: ... def find_uniform_by_name(self, name: str) -> int: ... def get_arg_bool(self, args: GLib.Bytes, idx: int) -> bool: ... @@ -512,7 +518,7 @@ class MaskNode(RenderNode): def get_source(self) -> RenderNode: ... @classmethod def new( - cls, source: RenderNode, mask: RenderNode, mask_mode: MaskMode + cls, source: RenderNode, mask: RenderNode, mask_mode: _MaskModeValueType ) -> MaskNode: ... class NglRenderer(Renderer): @@ -594,9 +600,16 @@ class ParseLocation(_gi.Struct): class Path(GObject.GBoxed): def foreach( self, - flags: PathForeachFlags, + flags: _PathForeachFlagsValueType, func: Callable[ - [PathOperation, Sequence[Graphene.Point], int, float, Unpack[_DataTs]], bool + [ + _PathOperationValueType, + Sequence[Graphene.Point], + int, + float, + Unpack[_DataTs], + ], + bool, ], *user_data: Unpack[_DataTs], ) -> bool: ... @@ -604,7 +617,15 @@ class Path(GObject.GBoxed): self, path2: Path | None, func: Callable[ - [Path, PathPoint, Path, PathPoint, PathIntersection, Unpack[_DataTs]], bool + [ + Path, + PathPoint, + Path, + PathPoint, + _PathIntersectionValueType, + Unpack[_DataTs], + ], + bool, ], *user_data: Unpack[_DataTs], ) -> bool: ... @@ -615,7 +636,7 @@ class Path(GObject.GBoxed): def get_end_point(self) -> tuple[bool, PathPoint]: ... def get_start_point(self) -> tuple[bool, PathPoint]: ... def get_stroke_bounds(self, stroke: Stroke) -> tuple[bool, Graphene.Rect]: ... - def in_fill(self, point: Graphene.Point, fill_rule: FillRule) -> bool: ... + def in_fill(self, point: Graphene.Point, fill_rule: _FillRuleValueType) -> bool: ... def is_closed(self) -> bool: ... def is_empty(self) -> bool: ... @staticmethod @@ -724,12 +745,14 @@ class PathPoint(GObject.GBoxed): def equal(self, point2: PathPoint) -> bool: ... def free(self) -> None: ... def get_curvature( - self, path: Path, direction: PathDirection + self, path: Path, direction: _PathDirectionValueType ) -> tuple[float, Graphene.Point | None]: ... def get_distance(self, measure: PathMeasure) -> float: ... def get_position(self, path: Path) -> Graphene.Point: ... - def get_rotation(self, path: Path, direction: PathDirection) -> float: ... - def get_tangent(self, path: Path, direction: PathDirection) -> Graphene.Vec2: ... + def get_rotation(self, path: Path, direction: _PathDirectionValueType) -> float: ... + def get_tangent( + self, path: Path, direction: _PathDirectionValueType + ) -> Graphene.Vec2: ... class RadialGradientNode(RenderNode): """ @@ -1009,8 +1032,8 @@ class Stroke(GObject.GBoxed): def new(cls, line_width: float) -> Stroke: ... def set_dash(self, dash: Sequence[float] | None = None) -> None: ... def set_dash_offset(self, offset: float) -> None: ... - def set_line_cap(self, line_cap: LineCap) -> None: ... - def set_line_join(self, line_join: LineJoin) -> None: ... + def set_line_cap(self, line_cap: _LineCapValueType) -> None: ... + def set_line_join(self, line_join: _LineJoinValueType) -> None: ... def set_line_width(self, line_width: float) -> None: ... def set_miter_limit(self, limit: float) -> None: ... def to_cairo(self, cr: cairo.Context[_SomeSurface]) -> None: ... @@ -1090,7 +1113,10 @@ class TextureScaleNode(RenderNode): def get_texture(self) -> _Gdk4.Texture: ... @classmethod def new( - cls, texture: _Gdk4.Texture, bounds: Graphene.Rect, filter: ScalingFilter + cls, + texture: _Gdk4.Texture, + bounds: Graphene.Rect, + filter: _ScalingFilterValueType, ) -> TextureScaleNode: ... class Transform(GObject.GBoxed): @@ -1181,6 +1207,22 @@ class PathForeachFlags(GObject.GFlags): ONLY_LINES = 0 QUAD = 1 +_PathForeachFlagsLiteralType: TypeAlias = Literal[ + "GSK_PATH_FOREACH_ALLOW_CONIC", + "GSK_PATH_FOREACH_ALLOW_CUBIC", + "GSK_PATH_FOREACH_ALLOW_ONLY_LINES", + "GSK_PATH_FOREACH_ALLOW_QUAD", + "conic", + "cubic", + "only-lines", + "quad", +] +_PathForeachFlagsValueType: TypeAlias = ( + PathForeachFlags + | _PathForeachFlagsLiteralType + | tuple[_PathForeachFlagsLiteralType, ...] +) + class BlendMode(GObject.GEnum): COLOR = 12 COLOR_BURN = 7 @@ -1199,16 +1241,69 @@ class BlendMode(GObject.GEnum): SCREEN = 2 SOFT_LIGHT = 9 +_BlendModeLiteralType: TypeAlias = Literal[ + "GSK_BLEND_MODE_COLOR", + "GSK_BLEND_MODE_COLOR_BURN", + "GSK_BLEND_MODE_COLOR_DODGE", + "GSK_BLEND_MODE_DARKEN", + "GSK_BLEND_MODE_DEFAULT", + "GSK_BLEND_MODE_DIFFERENCE", + "GSK_BLEND_MODE_EXCLUSION", + "GSK_BLEND_MODE_HARD_LIGHT", + "GSK_BLEND_MODE_HUE", + "GSK_BLEND_MODE_LIGHTEN", + "GSK_BLEND_MODE_LUMINOSITY", + "GSK_BLEND_MODE_MULTIPLY", + "GSK_BLEND_MODE_OVERLAY", + "GSK_BLEND_MODE_SATURATION", + "GSK_BLEND_MODE_SCREEN", + "GSK_BLEND_MODE_SOFT_LIGHT", + "color", + "color-burn", + "color-dodge", + "darken", + "default", + "difference", + "exclusion", + "hard-light", + "hue", + "lighten", + "luminosity", + "multiply", + "overlay", + "saturation", + "screen", + "soft-light", +] +_BlendModeValueType: TypeAlias = BlendMode | _BlendModeLiteralType + class Corner(GObject.GEnum): BOTTOM_LEFT = 3 BOTTOM_RIGHT = 2 TOP_LEFT = 0 TOP_RIGHT = 1 +_CornerLiteralType: TypeAlias = Literal[ + "GSK_CORNER_BOTTOM_LEFT", + "GSK_CORNER_BOTTOM_RIGHT", + "GSK_CORNER_TOP_LEFT", + "GSK_CORNER_TOP_RIGHT", + "bottom-left", + "bottom-right", + "top-left", + "top-right", +] +_CornerValueType: TypeAlias = Corner | _CornerLiteralType + class FillRule(GObject.GEnum): EVEN_ODD = 1 WINDING = 0 +_FillRuleLiteralType: TypeAlias = Literal[ + "GSK_FILL_RULE_EVEN_ODD", "GSK_FILL_RULE_WINDING", "even-odd", "winding" +] +_FillRuleValueType: TypeAlias = FillRule | _FillRuleLiteralType + class GLUniformType(GObject.GEnum): BOOL = 4 FLOAT = 1 @@ -1219,34 +1314,110 @@ class GLUniformType(GObject.GEnum): VEC3 = 6 VEC4 = 7 +_GLUniformTypeLiteralType: TypeAlias = Literal[ + "GSK_GL_UNIFORM_TYPE_BOOL", + "GSK_GL_UNIFORM_TYPE_FLOAT", + "GSK_GL_UNIFORM_TYPE_INT", + "GSK_GL_UNIFORM_TYPE_NONE", + "GSK_GL_UNIFORM_TYPE_UINT", + "GSK_GL_UNIFORM_TYPE_VEC2", + "GSK_GL_UNIFORM_TYPE_VEC3", + "GSK_GL_UNIFORM_TYPE_VEC4", + "bool", + "float", + "int", + "none", + "uint", + "vec2", + "vec3", + "vec4", +] +_GLUniformTypeValueType: TypeAlias = GLUniformType | _GLUniformTypeLiteralType + class LineCap(GObject.GEnum): BUTT = 0 ROUND = 1 SQUARE = 2 +_LineCapLiteralType: TypeAlias = Literal[ + "GSK_LINE_CAP_BUTT", + "GSK_LINE_CAP_ROUND", + "GSK_LINE_CAP_SQUARE", + "butt", + "round", + "square", +] +_LineCapValueType: TypeAlias = LineCap | _LineCapLiteralType + class LineJoin(GObject.GEnum): BEVEL = 2 MITER = 0 ROUND = 1 +_LineJoinLiteralType: TypeAlias = Literal[ + "GSK_LINE_JOIN_BEVEL", + "GSK_LINE_JOIN_MITER", + "GSK_LINE_JOIN_ROUND", + "bevel", + "miter", + "round", +] +_LineJoinValueType: TypeAlias = LineJoin | _LineJoinLiteralType + class MaskMode(GObject.GEnum): ALPHA = 0 INVERTED_ALPHA = 1 INVERTED_LUMINANCE = 3 LUMINANCE = 2 +_MaskModeLiteralType: TypeAlias = Literal[ + "GSK_MASK_MODE_ALPHA", + "GSK_MASK_MODE_INVERTED_ALPHA", + "GSK_MASK_MODE_INVERTED_LUMINANCE", + "GSK_MASK_MODE_LUMINANCE", + "alpha", + "inverted-alpha", + "inverted-luminance", + "luminance", +] +_MaskModeValueType: TypeAlias = MaskMode | _MaskModeLiteralType + class PathDirection(GObject.GEnum): FROM_END = 3 FROM_START = 0 TO_END = 2 TO_START = 1 +_PathDirectionLiteralType: TypeAlias = Literal[ + "GSK_PATH_FROM_END", + "GSK_PATH_FROM_START", + "GSK_PATH_TO_END", + "GSK_PATH_TO_START", + "from-end", + "from-start", + "to-end", + "to-start", +] +_PathDirectionValueType: TypeAlias = PathDirection | _PathDirectionLiteralType + class PathIntersection(GObject.GEnum): END = 3 NONE = 0 NORMAL = 1 START = 2 +_PathIntersectionLiteralType: TypeAlias = Literal[ + "GSK_PATH_INTERSECTION_END", + "GSK_PATH_INTERSECTION_NONE", + "GSK_PATH_INTERSECTION_NORMAL", + "GSK_PATH_INTERSECTION_START", + "end", + "none", + "normal", + "start", +] +_PathIntersectionValueType: TypeAlias = PathIntersection | _PathIntersectionLiteralType + class PathOperation(GObject.GEnum): CLOSE = 1 CONIC = 5 @@ -1255,6 +1426,22 @@ class PathOperation(GObject.GEnum): MOVE = 0 QUAD = 3 +_PathOperationLiteralType: TypeAlias = Literal[ + "GSK_PATH_CLOSE", + "GSK_PATH_CONIC", + "GSK_PATH_CUBIC", + "GSK_PATH_LINE", + "GSK_PATH_MOVE", + "GSK_PATH_QUAD", + "close", + "conic", + "cubic", + "line", + "move", + "quad", +] +_PathOperationValueType: TypeAlias = PathOperation | _PathOperationLiteralType + class RenderNodeType(GObject.GEnum): BLEND_NODE = 20 BLUR_NODE = 23 @@ -1289,11 +1476,89 @@ class RenderNodeType(GObject.GEnum): TEXT_NODE = 22 TRANSFORM_NODE = 13 +_RenderNodeTypeLiteralType: TypeAlias = Literal[ + "GSK_BLEND_NODE", + "GSK_BLUR_NODE", + "GSK_BORDER_NODE", + "GSK_CAIRO_NODE", + "GSK_CLIP_NODE", + "GSK_COLOR_MATRIX_NODE", + "GSK_COLOR_NODE", + "GSK_COMPONENT_TRANSFER_NODE", + "GSK_CONIC_GRADIENT_NODE", + "GSK_CONTAINER_NODE", + "GSK_CROSS_FADE_NODE", + "GSK_DEBUG_NODE", + "GSK_FILL_NODE", + "GSK_GL_SHADER_NODE", + "GSK_INSET_SHADOW_NODE", + "GSK_LINEAR_GRADIENT_NODE", + "GSK_MASK_NODE", + "GSK_NOT_A_RENDER_NODE", + "GSK_OPACITY_NODE", + "GSK_OUTSET_SHADOW_NODE", + "GSK_RADIAL_GRADIENT_NODE", + "GSK_REPEATING_LINEAR_GRADIENT_NODE", + "GSK_REPEATING_RADIAL_GRADIENT_NODE", + "GSK_REPEAT_NODE", + "GSK_ROUNDED_CLIP_NODE", + "GSK_SHADOW_NODE", + "GSK_STROKE_NODE", + "GSK_SUBSURFACE_NODE", + "GSK_TEXTURE_NODE", + "GSK_TEXTURE_SCALE_NODE", + "GSK_TEXT_NODE", + "GSK_TRANSFORM_NODE", + "blend-node", + "blur-node", + "border-node", + "cairo-node", + "clip-node", + "color-matrix-node", + "color-node", + "component-transfer-node", + "conic-gradient-node", + "container-node", + "cross-fade-node", + "debug-node", + "fill-node", + "gl-shader-node", + "inset-shadow-node", + "linear-gradient-node", + "mask-node", + "not-a-render-node", + "opacity-node", + "outset-shadow-node", + "radial-gradient-node", + "repeat-node", + "repeating-linear-gradient-node", + "repeating-radial-gradient-node", + "rounded-clip-node", + "shadow-node", + "stroke-node", + "subsurface-node", + "text-node", + "texture-node", + "texture-scale-node", + "transform-node", +] +_RenderNodeTypeValueType: TypeAlias = RenderNodeType | _RenderNodeTypeLiteralType + class ScalingFilter(GObject.GEnum): LINEAR = 0 NEAREST = 1 TRILINEAR = 2 +_ScalingFilterLiteralType: TypeAlias = Literal[ + "GSK_SCALING_FILTER_LINEAR", + "GSK_SCALING_FILTER_NEAREST", + "GSK_SCALING_FILTER_TRILINEAR", + "linear", + "nearest", + "trilinear", +] +_ScalingFilterValueType: TypeAlias = ScalingFilter | _ScalingFilterLiteralType + class SerializationError(GObject.GEnum): INVALID_DATA = 2 UNSUPPORTED_FORMAT = 0 @@ -1301,7 +1566,31 @@ class SerializationError(GObject.GEnum): @staticmethod def quark() -> int: ... +_SerializationErrorLiteralType: TypeAlias = Literal[ + "GSK_SERIALIZATION_INVALID_DATA", + "GSK_SERIALIZATION_UNSUPPORTED_FORMAT", + "GSK_SERIALIZATION_UNSUPPORTED_VERSION", + "invalid-data", + "unsupported-format", + "unsupported-version", +] +_SerializationErrorValueType: TypeAlias = ( + SerializationError | _SerializationErrorLiteralType +) + class TransformCategory(GObject.GEnum): ANY = 1 IDENTITY = 6 UNKNOWN = 0 + +_TransformCategoryLiteralType: TypeAlias = Literal[ + "GSK_TRANSFORM_CATEGORY_ANY", + "GSK_TRANSFORM_CATEGORY_IDENTITY", + "GSK_TRANSFORM_CATEGORY_UNKNOWN", + "any", + "identity", + "unknown", +] +_TransformCategoryValueType: TypeAlias = ( + TransformCategory | _TransformCategoryLiteralType +) diff --git a/src/gi-stubs/repository/Gst.pyi b/src/gi-stubs/repository/Gst.pyi index 4483f178..fe4a92f8 100644 --- a/src/gi-stubs/repository/Gst.pyi +++ b/src/gi-stubs/repository/Gst.pyi @@ -1,8 +1,10 @@ from typing import Any from typing import Final from typing import Generic +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from typing_extensions import Self from typing_extensions import TypeVar from typing_extensions import TypeVarTuple @@ -247,7 +249,7 @@ def debug_add_log_function( func: Callable[ [ DebugCategory, - DebugLevel, + _DebugLevelValueType, str, str, int, @@ -262,25 +264,25 @@ def debug_add_log_function( def debug_add_ring_buffer_logger( max_size_per_thread: int, thread_timeout: int ) -> None: ... -def debug_bin_to_dot_data(bin: Bin, details: DebugGraphDetails) -> str: ... +def debug_bin_to_dot_data(bin: Bin, details: _DebugGraphDetailsValueType) -> str: ... def debug_bin_to_dot_file( - bin: Bin, details: DebugGraphDetails, file_name: str + bin: Bin, details: _DebugGraphDetailsValueType, file_name: str ) -> None: ... def debug_bin_to_dot_file_with_ts( - bin: Bin, details: DebugGraphDetails, file_name: str + bin: Bin, details: _DebugGraphDetailsValueType, file_name: str ) -> None: ... def debug_construct_term_color(colorinfo: int) -> str: ... def debug_construct_win_color(colorinfo: int) -> int: ... def debug_get_all_categories() -> list[DebugCategory]: ... def debug_get_color_mode() -> DebugColorMode: ... def debug_get_default_threshold() -> DebugLevel: ... -def debug_get_stack_trace(flags: StackTraceFlags) -> str | None: ... +def debug_get_stack_trace(flags: _StackTraceFlagsValueType) -> str | None: ... def debug_is_active() -> bool: ... def debug_is_colored() -> bool: ... -def debug_level_get_name(level: DebugLevel) -> str: ... +def debug_level_get_name(level: _DebugLevelValueType) -> str: ... def debug_log_default( category: DebugCategory, - level: DebugLevel, + level: _DebugLevelValueType, file: str, function: str, line: int, @@ -290,7 +292,7 @@ def debug_log_default( ) -> None: ... def debug_log_get_line( category: DebugCategory, - level: DebugLevel, + level: _DebugLevelValueType, file: str, function: str, line: int, @@ -299,7 +301,7 @@ def debug_log_get_line( ) -> str: ... def debug_log_id_literal( category: DebugCategory, - level: DebugLevel, + level: _DebugLevelValueType, file: str, function: str, line: int, @@ -308,7 +310,7 @@ def debug_log_id_literal( ) -> None: ... def debug_log_id_literal_with_context( ctx: LogContext, - level: DebugLevel, + level: _DebugLevelValueType, file: str, function: str, line: int, @@ -317,7 +319,7 @@ def debug_log_id_literal_with_context( ) -> None: ... def debug_log_literal( category: DebugCategory, - level: DebugLevel, + level: _DebugLevelValueType, file: str, function: str, line: int, @@ -326,7 +328,7 @@ def debug_log_literal( ) -> None: ... def debug_log_literal_with_context( ctx: LogContext, - level: DebugLevel, + level: _DebugLevelValueType, file: str, function: str, line: int, @@ -340,7 +342,7 @@ def debug_remove_log_function( func: Callable[ [ DebugCategory, - DebugLevel, + _DebugLevelValueType, str, str, int, @@ -356,11 +358,11 @@ def debug_remove_log_function_by_data(data: int | Any | None = None) -> int: ... def debug_remove_ring_buffer_logger() -> None: ... def debug_ring_buffer_logger_get_logs() -> list[str]: ... def debug_set_active(active: bool) -> None: ... -def debug_set_color_mode(mode: DebugColorMode) -> None: ... +def debug_set_color_mode(mode: _DebugColorModeValueType) -> None: ... def debug_set_color_mode_from_string(mode: str) -> None: ... def debug_set_colored(colored: bool) -> None: ... -def debug_set_default_threshold(level: DebugLevel) -> None: ... -def debug_set_threshold_for_name(name: str, level: DebugLevel) -> None: ... +def debug_set_default_threshold(level: _DebugLevelValueType) -> None: ... +def debug_set_threshold_for_name(name: str, level: _DebugLevelValueType) -> None: ... def debug_set_threshold_from_string(list: str, reset: bool) -> None: ... def debug_unset_threshold_for_name(name: str) -> None: ... def deinit() -> None: ... @@ -369,23 +371,25 @@ def dynamic_type_register(plugin: Plugin, type: type[Any]) -> bool: ... error: Final = _gi_gst.error def error_get_message(domain: int, code: int) -> str: ... -def event_type_get_flags(type: EventType) -> EventTypeFlags: ... -def event_type_get_name(type: EventType) -> str: ... -def event_type_to_quark(type: EventType) -> int: ... -def event_type_to_sticky_ordering(type: EventType) -> int: ... +def event_type_get_flags(type: _EventTypeValueType) -> EventTypeFlags: ... +def event_type_get_name(type: _EventTypeValueType) -> str: ... +def event_type_to_quark(type: _EventTypeValueType) -> int: ... +def event_type_to_sticky_ordering(type: _EventTypeValueType) -> int: ... def filename_to_uri(filename: str) -> str | None: ... fixme: Final = _gi_gst.fixme -def flow_get_name(ret: FlowReturn) -> str: ... -def flow_to_quark(ret: FlowReturn) -> int: ... +def flow_get_name(ret: _FlowReturnValueType) -> str: ... +def flow_to_quark(ret: _FlowReturnValueType) -> int: ... def format_get_by_nick(nick: str) -> Format: ... -def format_get_details(format: Format) -> FormatDefinition | None: ... -def format_get_name(format: Format) -> str | None: ... +def format_get_details(format: _FormatValueType) -> FormatDefinition | None: ... +def format_get_name(format: _FormatValueType) -> str | None: ... def format_iterate_definitions() -> Iterator: ... def format_register(nick: str, description: str) -> Format: ... -def format_to_quark(format: Format) -> int: ... -def formats_contains(formats: Sequence[Format], format: Format) -> bool: ... +def format_to_quark(format: _FormatValueType) -> int: ... +def formats_contains( + formats: Sequence[_FormatValueType], format: _FormatValueType +) -> bool: ... def get_main_executable_path() -> str | None: ... info: Final = _gi_gst.info @@ -403,8 +407,8 @@ memdump: Final = _gi_gst.memdump def message_take( old_message: Message, new_message: Message | None = None ) -> tuple[bool, Message]: ... -def message_type_get_name(type: MessageType) -> str: ... -def message_type_to_quark(type: MessageType) -> int: ... +def message_type_get_name(type: _MessageTypeValueType) -> str: ... +def message_type_to_quark(type: _MessageTypeValueType) -> int: ... def meta_api_type_aggregate_params( api: type[Any], aggregated_params: Structure, params0: Structure, params1: Structure ) -> bool: ... @@ -437,7 +441,7 @@ def mini_object_replace( def mini_object_take( olddata: MiniObject, newdata: MiniObject ) -> tuple[bool, MiniObject]: ... -def pad_mode_get_name(mode: PadMode) -> str: ... +def pad_mode_get_name(mode: _PadModeValueType) -> str: ... def param_spec_array( name: str, nick: str, @@ -466,16 +470,16 @@ def parse_bin_from_description_full( bin_description: str, ghost_unlinked_pads: bool, context: ParseContext | None, - flags: ParseFlags, + flags: _ParseFlagsValueType, ) -> Element: ... def parse_error_quark() -> int: ... def parse_launch(pipeline_description: str) -> Element: ... def parse_launch_full( - pipeline_description: str, context: ParseContext | None, flags: ParseFlags + pipeline_description: str, context: ParseContext | None, flags: _ParseFlagsValueType ) -> Element: ... def parse_launchv(argv: Sequence[str]) -> Element: ... def parse_launchv_full( - argv: Sequence[str], context: ParseContext | None, flags: ParseFlags + argv: Sequence[str], context: ParseContext | None, flags: _ParseFlagsValueType ) -> Element: ... def plugin_error_quark() -> int: ... def preset_get_app_dir() -> str | None: ... @@ -489,19 +493,19 @@ def protection_select_system(system_identifiers: Sequence[str]) -> str | None: . def query_take( old_query: Query | None = None, new_query: Query | None = None ) -> tuple[bool, Query | None]: ... -def query_type_get_flags(type: QueryType) -> QueryTypeFlags: ... -def query_type_get_name(type: QueryType) -> str: ... -def query_type_to_quark(type: QueryType) -> int: ... +def query_type_get_flags(type: _QueryTypeValueType) -> QueryTypeFlags: ... +def query_type_get_name(type: _QueryTypeValueType) -> str: ... +def query_type_to_quark(type: _QueryTypeValueType) -> int: ... def reference_timestamp_meta_api_get_type() -> type[Any]: ... def reference_timestamp_meta_get_info() -> MetaInfo: ... def resource_error_quark() -> int: ... def segtrap_is_enabled() -> bool: ... def segtrap_set_enabled(enabled: bool) -> None: ... -def state_change_get_name(transition: StateChange) -> str: ... -def state_change_return_get_name(state_ret: StateChangeReturn) -> str: ... -def state_get_name(state: State) -> str: ... +def state_change_get_name(transition: _StateChangeValueType) -> str: ... +def state_change_return_get_name(state_ret: _StateChangeReturnValueType) -> str: ... +def state_get_name(state: _StateValueType) -> str: ... def stream_error_quark() -> int: ... -def stream_type_get_name(stype: StreamType) -> str: ... +def stream_type_get_name(stype: _StreamTypeValueType) -> str: ... def structure_take( oldstr_ptr: Structure | None = None, newstr: Structure | None = None ) -> tuple[bool, Structure | None]: ... @@ -520,7 +524,7 @@ def tag_list_take( ) -> tuple[bool, TagList]: ... def tag_merge_strings_with_comma(src: Any) -> Any: ... def tag_merge_use_first(src: Any) -> Any: ... -def toc_entry_type_get_nick(type: TocEntryType) -> str: ... +def toc_entry_type_get_nick(type: _TocEntryTypeValueType) -> str: ... trace: Final = _gi_gst.trace @@ -538,7 +542,9 @@ def type_find_register( *data: Unpack[_DataTs], ) -> bool: ... def type_is_plugin_api(type: type[Any]) -> tuple[bool, PluginAPIFlags]: ... -def type_mark_as_plugin_api(type: type[Any], flags: PluginAPIFlags) -> None: ... +def type_mark_as_plugin_api( + type: type[Any], flags: _PluginAPIFlagsValueType +) -> None: ... def update_registry() -> bool: ... def uri_construct(protocol: str, location: str) -> str: ... def uri_error_quark() -> int: ... @@ -549,14 +555,14 @@ def uri_get_protocol(uri: str) -> str | None: ... def uri_has_protocol(uri: str, protocol: str) -> bool: ... def uri_is_valid(uri: str) -> bool: ... def uri_join_strings(base_uri: str, ref_uri: str) -> str | None: ... -def uri_protocol_is_supported(type: URIType, protocol: str) -> bool: ... +def uri_protocol_is_supported(type: _URITypeValueType, protocol: str) -> bool: ... def uri_protocol_is_valid(protocol: str) -> bool: ... def util_array_binary_search( array: int | Any | None, num_elements: int, element_size: int, search_func: Callable[[int | Any | None, int | Any | None, Unpack[_DataTs]], int], - mode: SearchMode, + mode: _SearchModeValueType, search_data: int | Any | None = None, *user_data: Unpack[_DataTs], ) -> int: ... @@ -715,7 +721,7 @@ class Allocator(Object): @property def mem_type(self) -> str: ... @property - def mem_map(self) -> Callable[[Memory, int, MapFlags], int]: ... + def mem_map(self) -> Callable[[Memory, int, _MapFlagsValueType], int]: ... @property def mem_unmap(self) -> Callable[[Memory], None]: ... @property @@ -877,7 +883,7 @@ class Bin(Element, ChildProxy): def do_element_removed(self, child: Element) -> None: ... def do_handle_message(self, message: Message) -> None: ... def do_remove_element(self, element: Element) -> bool: ... - def find_unlinked_pad(self, direction: PadDirection) -> Pad | None: ... + def find_unlinked_pad(self, direction: _PadDirectionValueType) -> Pad | None: ... def get_by_interface(self, iface: type[Any]) -> Element | None: ... def get_by_name(self, name: str) -> Element | None: ... def get_by_name_recurse_up(self, name: str) -> Element | None: ... @@ -900,7 +906,7 @@ class Bin(Element, ChildProxy): def new(cls, name: str | None = None) -> Bin: ... def recalculate_latency(self) -> bool: ... def remove(self, element: Element) -> bool: ... - def set_suppressed_flags(self, flags: ElementFlags) -> None: ... + def set_suppressed_flags(self, flags: _ElementFlagsValueType) -> None: ... def sync_children_states(self) -> bool: ... class BinClass(_gi.Struct): @@ -986,10 +992,10 @@ class Buffer(MiniObjectMixin, GObject.GBoxed): def append_region(self, buf2: Buffer, offset: int, size: int) -> Buffer: ... def copy_deep(self) -> Buffer | None: ... def copy_into( - self, src: Buffer, flags: BufferCopyFlags, offset: int, size: int + self, src: Buffer, flags: _BufferCopyFlagsValueType, offset: int, size: int ) -> bool: ... def copy_region( - self, flags: BufferCopyFlags, offset: int, size: int + self, flags: _BufferCopyFlagsValueType, offset: int, size: int ) -> Buffer | None: ... def extract(self, offset: int) -> tuple[int, bytes]: ... def extract_dup(self, offset: int, size: int) -> bytes: ... @@ -1017,7 +1023,7 @@ class Buffer(MiniObjectMixin, GObject.GBoxed): def get_size(self) -> int: ... def get_sizes(self) -> tuple[int, int, int]: ... def get_sizes_range(self, idx: int, length: int) -> tuple[int, int, int]: ... - def has_flags(self, flags: BufferFlags) -> bool: ... + def has_flags(self, flags: _BufferFlagsValueType) -> bool: ... def insert_memory(self, idx: int, mem: Memory) -> None: ... def is_all_memory_writable(self) -> bool: ... def is_memory_range_writable(self, idx: int, length: int) -> bool: ... @@ -1044,7 +1050,7 @@ class Buffer(MiniObjectMixin, GObject.GBoxed): @classmethod def new_wrapped_full( cls, - flags: MemoryFlags, + flags: _MemoryFlagsValueType, data: Sequence[int], maxsize: int, offset: int, @@ -1062,10 +1068,10 @@ class Buffer(MiniObjectMixin, GObject.GBoxed): def replace_memory_range(self, idx: int, length: int, mem: Memory) -> None: ... def resize(self, offset: int, size: int) -> None: ... def resize_range(self, idx: int, length: int, offset: int, size: int) -> bool: ... - def set_flags(self, flags: BufferFlags) -> bool: ... + def set_flags(self, flags: _BufferFlagsValueType) -> bool: ... def set_size(self, size: int) -> None: ... def unmap(self, mapinfo: MapInfo) -> bool: ... - def unset_flags(self, flags: BufferFlags) -> bool: ... + def unset_flags(self, flags: _BufferFlagsValueType) -> bool: ... class BufferList(GObject.GBoxed): """ @@ -1319,9 +1325,9 @@ class Bus(Object): @classmethod def new(cls) -> Bus: ... def peek(self) -> Message | None: ... - def poll(self, events: MessageType, timeout: int) -> Message | None: ... + def poll(self, events: _MessageTypeValueType, timeout: int) -> Message | None: ... def pop(self) -> Message | None: ... - def pop_filtered(self, types: MessageType) -> Message | None: ... + def pop_filtered(self, types: _MessageTypeValueType) -> Message | None: ... def post(self, message: Message) -> bool: ... def remove_signal_watch(self) -> None: ... def remove_watch(self) -> bool: ... @@ -1336,7 +1342,7 @@ class Bus(Object): ) -> BusSyncReply: ... def timed_pop(self, timeout: int) -> Message | None: ... def timed_pop_filtered( - self, timeout: int, types: MessageType + self, timeout: int, types: _MessageTypeValueType ) -> Message | None: ... class BusClass(_gi.Struct): @@ -1423,7 +1429,9 @@ class Caps(MiniObjectMixin, GObject.GBoxed): def get_structure(self, index: int) -> Structure: ... def id_str_set_value(self, field: IdStr, value: Any) -> None: ... def intersect(self, caps2: Caps) -> Caps: ... - def intersect_full(self, caps2: Caps, mode: CapsIntersectMode) -> Caps: ... + def intersect_full( + self, caps2: Caps, mode: _CapsIntersectModeValueType + ) -> Caps: ... def is_always_compatible(self, caps2: Caps) -> bool: ... def is_any(self) -> bool: ... def is_empty(self) -> bool: ... @@ -1460,7 +1468,7 @@ class Caps(MiniObjectMixin, GObject.GBoxed): def new_static_str_empty_simple(cls, media_type: str) -> Caps: ... def normalize(self) -> Caps: ... def remove_structure(self, idx: int) -> None: ... - def serialize(self, flags: SerializeFlags) -> str: ... + def serialize(self, flags: _SerializeFlagsValueType) -> str: ... def set_features( self, index: int, features: CapsFeatures | None = None ) -> None: ... @@ -1803,9 +1811,9 @@ class ControlBinding(Object): @type_check_only class Props(Object.Props): @property - def name(self) -> str: ... + def name(self) -> str | None: ... @property - def object(self) -> Object: ... + def object(self) -> Object | None: ... @property def props(self) -> Props: ... @@ -1820,7 +1828,11 @@ class ControlBinding(Object): @property def disabled(self) -> bool: ... def __init__( - self, *, name: str = ..., object: Object = ..., parent: Object = ... + self, + *, + name: str | None = ..., + object: Object | None = ..., + parent: Object = ..., ) -> None: ... def do_get_g_value_array( self, timestamp: int, interval: int, values: Sequence[Any] @@ -2030,7 +2042,7 @@ class DebugCategory(_gi.Struct): def get_name(self) -> str: ... def get_threshold(self) -> DebugLevel: ... def reset_threshold(self) -> None: ... - def set_threshold(self, level: DebugLevel) -> None: ... + def set_threshold(self, level: _DebugLevelValueType) -> None: ... class DebugMessage(_gi.Struct): def get(self) -> str | None: ... @@ -2091,10 +2103,10 @@ class Device(Object): def __init__( self, *, - caps: Caps = ..., - device_class: str = ..., - display_name: str = ..., - properties: Structure = ..., + caps: Caps | None = ..., + device_class: str | None = ..., + display_name: str | None = ..., + properties: Structure | None = ..., name: str | None = ..., parent: Object = ..., ) -> None: ... @@ -2318,7 +2330,9 @@ class DeviceProviderFactory(PluginFeature): def has_classes(self, classes: str | None = None) -> bool: ... def has_classesv(self, classes: Sequence[str] | None = None) -> bool: ... @staticmethod - def list_get_device_providers(minrank: Rank) -> list[DeviceProviderFactory]: ... + def list_get_device_providers( + minrank: _RankValueType, + ) -> list[DeviceProviderFactory]: ... class DeviceProviderFactoryClass(_gi.Struct): ... class DeviceProviderPrivate(_gi.Struct): ... @@ -2455,11 +2469,13 @@ class Element(Object): func: Callable[[Element, Unpack[_DataTs]], None], *user_data: Unpack[_DataTs], ) -> None: ... - def change_state(self, transition: StateChange) -> StateChangeReturn: ... - def continue_state(self, ret: StateChangeReturn) -> StateChangeReturn: ... + def change_state(self, transition: _StateChangeValueType) -> StateChangeReturn: ... + def continue_state(self, ret: _StateChangeReturnValueType) -> StateChangeReturn: ... def create_all_pads(self) -> None: ... def decorate_stream_id(self, stream_id: str) -> str: ... - def do_change_state(self, transition: StateChange) -> StateChangeReturn: ... + def do_change_state( + self, transition: _StateChangeValueType + ) -> StateChangeReturn: ... def do_get_state(self, timeout: int) -> tuple[StateChangeReturn, State, State]: ... def do_no_more_pads(self) -> None: ... def do_pad_added(self, pad: Pad) -> None: ... @@ -2475,9 +2491,12 @@ class Element(Object): def do_set_bus(self, bus: Bus | None) -> None: ... def do_set_clock(self, clock: Clock | None) -> bool: ... def do_set_context(self, context: Context) -> None: ... - def do_set_state(self, state: State) -> StateChangeReturn: ... + def do_set_state(self, state: _StateValueType) -> StateChangeReturn: ... def do_state_changed( - self, oldstate: State, newstate: State, pending: State + self, + oldstate: _StateValueType, + newstate: _StateValueType, + pending: _StateValueType, ) -> None: ... def foreach_pad( self, @@ -2540,16 +2559,16 @@ class Element(Object): srcpadname: str | None, dest: Element, destpadname: str | None, - flags: PadLinkCheck, + flags: _PadLinkCheckValueType, ) -> bool: ... def lost_state(self) -> None: ... @staticmethod def make_from_uri( - type: URIType, uri: str, elementname: str | None = None + type: _URITypeValueType, uri: str, elementname: str | None = None ) -> Element: ... def message_full( self, - type: MessageType, + type: _MessageTypeValueType, domain: int, code: int, text: str | None, @@ -2560,7 +2579,7 @@ class Element(Object): ) -> None: ... def message_full_with_details( self, - type: MessageType, + type: _MessageTypeValueType, domain: int, code: int, text: str | None, @@ -2575,10 +2594,10 @@ class Element(Object): def provide_clock(self) -> Clock | None: ... def query(self, query: Query) -> bool: ... def query_convert( - self, src_format: Format, src_val: int, dest_format: Format + self, src_format: _FormatValueType, src_val: int, dest_format: _FormatValueType ) -> tuple[bool, int]: ... - def query_duration(self, format: Format) -> tuple[bool, int]: ... - def query_position(self, format: Format) -> tuple[bool, int]: ... + def query_duration(self, format: _FormatValueType) -> tuple[bool, int]: ... + def query_position(self, format: _FormatValueType) -> tuple[bool, int]: ... @staticmethod def register( plugin: Plugin | None, name: str, rank: int, type: type[Any] @@ -2593,15 +2612,15 @@ class Element(Object): def seek( self, rate: float, - format: Format, - flags: SeekFlags, - start_type: SeekType, + format: _FormatValueType, + flags: _SeekFlagsValueType, + start_type: _SeekTypeValueType, start: int, - stop_type: SeekType, + stop_type: _SeekTypeValueType, stop: int, ) -> bool: ... def seek_simple( - self, format: Format, seek_flags: SeekFlags, seek_pos: int + self, format: _FormatValueType, seek_flags: _SeekFlagsValueType, seek_pos: int ) -> bool: ... def send_event(self, event: Event) -> bool: ... def set_base_time(self, time: int) -> None: ... @@ -2613,14 +2632,14 @@ class Element(Object): self, longname: str, classification: str, description: str, author: str ) -> None: ... def set_start_time(self, time: int) -> None: ... - def set_state(self, state: State) -> StateChangeReturn: ... + def set_state(self, state: _StateValueType) -> StateChangeReturn: ... def set_static_metadata( self, longname: str, classification: str, description: str, author: str ) -> None: ... @staticmethod - def state_change_return_get_name(state_ret: StateChangeReturn) -> str: ... + def state_change_return_get_name(state_ret: _StateChangeReturnValueType) -> str: ... @staticmethod - def state_get_name(state: State) -> str: ... + def state_get_name(state: _StateValueType) -> str: ... def sync_state_with_parent(self) -> bool: ... @staticmethod def type_set_skip_documentation(type: type[Any]) -> None: ... @@ -2664,11 +2683,17 @@ class ElementClass(_gi.Struct): self, ) -> Callable[[Element, int], tuple[StateChangeReturn, State, State]]: ... @property - def set_state(self) -> Callable[[Element, State], StateChangeReturn]: ... + def set_state(self) -> Callable[[Element, _StateValueType], StateChangeReturn]: ... @property - def change_state(self) -> Callable[[Element, StateChange], StateChangeReturn]: ... + def change_state( + self, + ) -> Callable[[Element, _StateChangeValueType], StateChangeReturn]: ... @property - def state_changed(self) -> Callable[[Element, State, State, State], None]: ... + def state_changed( + self, + ) -> Callable[ + [Element, _StateValueType, _StateValueType, _StateValueType], None + ]: ... @property def set_bus(self) -> Callable[[Element, Bus | None], None]: ... @property @@ -2749,11 +2774,13 @@ class ElementFactory(PluginFeature): def list_filter( list: list[ElementFactory], caps: Caps, - direction: PadDirection, + direction: _PadDirectionValueType, subsetonly: bool, ) -> list[ElementFactory]: ... @staticmethod - def list_get_elements(type: int, minrank: Rank) -> list[ElementFactory]: ... + def list_get_elements( + type: int, minrank: _RankValueType + ) -> list[ElementFactory]: ... def list_is_type(self, type: int) -> bool: ... @staticmethod def make(factoryname: str, name: str | None = None) -> Element: @@ -2818,12 +2845,12 @@ class Event(MiniObjectMixin, GObject.GBoxed): def make_writable(self) -> bool: ... @classmethod def new_buffer_size( - cls, format: Format, minsize: int, maxsize: int, async_: bool + cls, format: _FormatValueType, minsize: int, maxsize: int, async_: bool ) -> Event: ... @classmethod def new_caps(cls, caps: Caps) -> Event: ... @classmethod - def new_custom(cls, type: EventType, structure: Structure) -> Event: ... + def new_custom(cls, type: _EventTypeValueType, structure: Structure) -> Event: ... @classmethod def new_eos(cls) -> Event: ... @classmethod @@ -2834,7 +2861,7 @@ class Event(MiniObjectMixin, GObject.GBoxed): def new_gap(cls, timestamp: int, duration: int) -> Event: ... @classmethod def new_instant_rate_change( - cls, rate_multiplier: float, new_flags: SegmentFlags + cls, rate_multiplier: float, new_flags: _SegmentFlagsValueType ) -> Event: ... @classmethod def new_instant_rate_sync_time( @@ -2848,7 +2875,7 @@ class Event(MiniObjectMixin, GObject.GBoxed): def new_protection(cls, system_id: str, data: Buffer, origin: str) -> Event: ... @classmethod def new_qos( - cls, type: QOSType, proportion: float, diff: int, timestamp: int + cls, type: _QOSTypeValueType, proportion: float, diff: int, timestamp: int ) -> Event: ... @classmethod def new_reconfigure(cls) -> Event: ... @@ -2856,24 +2883,29 @@ class Event(MiniObjectMixin, GObject.GBoxed): def new_seek( cls, rate: float, - format: Format, - flags: SeekFlags, - start_type: SeekType, + format: _FormatValueType, + flags: _SeekFlagsValueType, + start_type: _SeekTypeValueType, start: int, - stop_type: SeekType, + stop_type: _SeekTypeValueType, stop: int, ) -> Event: ... @classmethod def new_segment(cls, segment: Segment) -> Event: ... @classmethod - def new_segment_done(cls, format: Format, position: int) -> Event: ... + def new_segment_done(cls, format: _FormatValueType, position: int) -> Event: ... @classmethod def new_select_streams(cls, streams: list[str]) -> Event: ... @classmethod def new_sink_message(cls, name: str, msg: Message) -> Event: ... @classmethod def new_step( - cls, format: Format, amount: int, rate: float, flush: bool, intermediate: bool + cls, + format: _FormatValueType, + amount: int, + rate: float, + flush: bool, + intermediate: bool, ) -> Event: ... @classmethod def new_stream_collection(cls, collection: StreamCollection) -> Event: ... @@ -2915,13 +2947,13 @@ class Event(MiniObjectMixin, GObject.GBoxed): def parse_tag(self) -> TagList: ... def parse_toc(self) -> tuple[Toc, bool]: ... def parse_toc_select(self) -> str: ... - def set_gap_flags(self, flags: GapFlags) -> None: ... + def set_gap_flags(self, flags: _GapFlagsValueType) -> None: ... def set_group_id(self, group_id: int) -> None: ... def set_running_time_offset(self, offset: int) -> None: ... def set_seek_trickmode_interval(self, interval: int) -> None: ... def set_seqnum(self, seqnum: int) -> None: ... def set_stream(self, stream: Stream) -> None: ... - def set_stream_flags(self, flags: StreamFlags) -> None: ... + def set_stream_flags(self, flags: _StreamFlagsValueType) -> None: ... def writable_structure(self) -> StructureContextManager: ... class FlagSet: @@ -3031,21 +3063,21 @@ class GhostPad(ProxyPad): def __init__( self, *, - direction: PadDirection = ..., + direction: _PadDirectionValueType = ..., offset: int = ..., - template: PadTemplate = ..., + template: PadTemplate | None = ..., name: str | None = ..., parent: Object = ..., ) -> None: ... @staticmethod def activate_mode_default( - pad: Pad, parent: Object | None, mode: PadMode, active: bool + pad: Pad, parent: Object | None, mode: _PadModeValueType, active: bool ) -> bool: ... def construct(self) -> bool: ... def get_target(self) -> Pad | None: ... @staticmethod def internal_activate_mode_default( - pad: Pad, parent: Object | None, mode: PadMode, active: bool + pad: Pad, parent: Object | None, mode: _PadModeValueType, active: bool ) -> bool: ... @classmethod def new(cls, name: str | None, target: Pad) -> GhostPad: ... @@ -3054,7 +3086,9 @@ class GhostPad(ProxyPad): cls, name: str | None, target: Pad, templ: PadTemplate ) -> GhostPad: ... @classmethod - def new_no_target(cls, name: str | None, dir: PadDirection) -> GhostPad: ... + def new_no_target( + cls, name: str | None, dir: _PadDirectionValueType + ) -> GhostPad: ... @classmethod def new_no_target_from_template( cls, name: str | None, templ: PadTemplate @@ -3217,13 +3251,15 @@ class Memory(GObject.GBoxed): def is_span(self, mem2: Memory) -> tuple[bool, int]: ... def is_type(self, mem_type: str) -> bool: ... def is_writable(self) -> bool: ... - def make_mapped(self, flags: MapFlags) -> tuple[Memory | None, MapInfo]: ... + def make_mapped( + self, flags: _MapFlagsValueType + ) -> tuple[Memory | None, MapInfo]: ... def make_writable(self) -> Memory: ... def map(self, flags: MapFlags) -> MapInfo: ... @classmethod def new_wrapped( cls, - flags: MemoryFlags, + flags: _MemoryFlagsValueType, data: Sequence[int], maxsize: int, offset: int, @@ -3327,7 +3363,7 @@ class Message(GObject.GBoxed): @classmethod def new_custom( cls, - type: MessageType, + type: _MessageTypeValueType, src: Object | None = None, structure: Structure | None = None, ) -> Message: ... @@ -3387,7 +3423,7 @@ class Message(GObject.GBoxed): def new_new_clock(cls, src: Object | None, clock: Clock) -> Message: ... @classmethod def new_progress( - cls, src: Object | None, type: ProgressType, code: str, text: str + cls, src: Object | None, type: _ProgressTypeValueType, code: str, text: str ) -> Message: ... @classmethod def new_property_notify( @@ -3412,20 +3448,26 @@ class Message(GObject.GBoxed): entry_struct: Structure | None = None, ) -> Message: ... @classmethod - def new_request_state(cls, src: Object | None, state: State) -> Message: ... + def new_request_state( + cls, src: Object | None, state: _StateValueType + ) -> Message: ... @classmethod def new_reset_time(cls, src: Object | None, running_time: int) -> Message: ... @classmethod def new_segment_done( - cls, src: Object | None, format: Format, position: int + cls, src: Object | None, format: _FormatValueType, position: int ) -> Message: ... @classmethod def new_segment_start( - cls, src: Object | None, format: Format, position: int + cls, src: Object | None, format: _FormatValueType, position: int ) -> Message: ... @classmethod def new_state_changed( - cls, src: Object | None, oldstate: State, newstate: State, pending: State + cls, + src: Object | None, + oldstate: _StateValueType, + newstate: _StateValueType, + pending: _StateValueType, ) -> Message: ... @classmethod def new_state_dirty(cls, src: Object | None = None) -> Message: ... @@ -3433,7 +3475,7 @@ class Message(GObject.GBoxed): def new_step_done( cls, src: Object | None, - format: Format, + format: _FormatValueType, amount: int, rate: float, flush: bool, @@ -3446,7 +3488,7 @@ class Message(GObject.GBoxed): cls, src: Object | None, active: bool, - format: Format, + format: _FormatValueType, amount: int, rate: float, flush: bool, @@ -3460,7 +3502,7 @@ class Message(GObject.GBoxed): def new_stream_start(cls, src: Object | None = None) -> Message: ... @classmethod def new_stream_status( - cls, src: Object | None, type: StreamStatusType, owner: Element + cls, src: Object | None, type: _StreamStatusTypeValueType, owner: Element ) -> Message: ... @classmethod def new_streams_selected( @@ -3468,7 +3510,11 @@ class Message(GObject.GBoxed): ) -> Message: ... @classmethod def new_structure_change( - cls, src: Object | None, type: StructureChangeType, owner: Element, busy: bool + cls, + src: Object | None, + type: _StructureChangeTypeValueType, + owner: Element, + busy: bool, ) -> Message: ... @classmethod def new_tag(cls, src: Object | None, tag_list: TagList) -> Message: ... @@ -3531,11 +3577,17 @@ class Message(GObject.GBoxed): def parse_warning_details(self) -> Structure | None: ... def parse_warning_writable_details(self) -> Structure | None: ... def set_buffering_stats( - self, mode: BufferingMode, avg_in: int, avg_out: int, buffering_left: int + self, + mode: _BufferingModeValueType, + avg_in: int, + avg_out: int, + buffering_left: int, ) -> None: ... def set_details(self, details: Structure | None = None) -> None: ... def set_group_id(self, group_id: int) -> None: ... - def set_qos_stats(self, format: Format, processed: int, dropped: int) -> None: ... + def set_qos_stats( + self, format: _FormatValueType, processed: int, dropped: int + ) -> None: ... def set_qos_values(self, jitter: int, proportion: float, quality: int) -> None: ... def set_seqnum(self, seqnum: int) -> None: ... def set_stream_status_object(self, object: Any) -> None: ... @@ -3689,7 +3741,7 @@ class MiniObject(GObject.GBoxed): def add_parent(self, parent: MiniObject) -> None: ... def get_qdata(self, quark: int) -> int: ... def is_writable(self) -> bool: ... - def lock(self, flags: LockFlags) -> bool: ... + def lock(self, flags: _LockFlagsValueType) -> bool: ... def remove_parent(self, parent: MiniObject) -> None: ... @staticmethod def replace( @@ -3701,7 +3753,7 @@ class MiniObject(GObject.GBoxed): def steal_qdata(self, quark: int) -> int: ... @staticmethod def take(olddata: MiniObject, newdata: MiniObject) -> tuple[bool, MiniObject]: ... - def unlock(self, flags: LockFlags) -> None: ... + def unlock(self, flags: _LockFlagsValueType) -> None: ... class MiniObjectMixin: flags = ... # FIXME: Constant is missing typing annotation @@ -3743,7 +3795,10 @@ class Object(GObject.InitiallyUnowned): @type_check_only class Props(GObject.InitiallyUnowned.Props): name: str | None - parent: Object | None + @property + def parent(self) -> Object | None: ... + @parent.setter + def parent(self, value: Object) -> None: ... @property def props(self) -> Props: ... @@ -3870,11 +3925,11 @@ class Pad(Object): @type_check_only class Props(Object.Props): @property - def caps(self) -> Caps: ... + def caps(self) -> Caps | None: ... @property def direction(self) -> PadDirection: ... offset: int - template: PadTemplate + template: PadTemplate | None @property def props(self) -> Props: ... @@ -3903,7 +3958,9 @@ class Pad(Object): @property def activatenotify(self) -> Callable[[Any | None], None]: ... @property - def activatemodefunc(self) -> Callable[[Pad, Object, PadMode, bool], bool]: ... + def activatemodefunc( + self, + ) -> Callable[[Pad, Object, _PadModeValueType, bool], bool]: ... @property def activatemodedata(self) -> int: ... @property @@ -3973,16 +4030,16 @@ class Pad(Object): def __init__( self, *, - direction: PadDirection = ..., + direction: _PadDirectionValueType = ..., offset: int = ..., - template: PadTemplate = ..., + template: PadTemplate | None = ..., name: str | None = ..., parent: Object = ..., ) -> None: ... - def activate_mode(self, mode: PadMode, active: bool) -> bool: ... + def activate_mode(self, mode: _PadModeValueType, active: bool) -> bool: ... def add_probe( self, - mask: PadProbeType, + mask: _PadProbeTypeValueType, callback: Callable[[Pad, PadProbeInfo, Unpack[_DataTs]], PadProbeReturn], *user_data: Unpack[_DataTs], ) -> int: ... @@ -4013,7 +4070,9 @@ class Pad(Object): def get_peer(self) -> Pad | None: ... def get_range(self, offset: int, size: int) -> tuple[FlowReturn, Buffer]: ... def get_single_internal_link(self) -> Pad | None: ... - def get_sticky_event(self, event_type: EventType, idx: int) -> Event | None: ... + def get_sticky_event( + self, event_type: _EventTypeValueType, idx: int + ) -> Event | None: ... def get_stream(self) -> Stream | None: ... def get_stream_id(self) -> str | None: ... def get_task_state(self) -> TaskState: ... @@ -4027,15 +4086,19 @@ class Pad(Object): self, parent: Object | None = None ) -> Iterator | None: ... def link(self, pad: Pad) -> PadLinkReturn: ... - def link_full(self, sinkpad: Pad, flags: PadLinkCheck) -> PadLinkReturn: ... + def link_full( + self, sinkpad: Pad, flags: _PadLinkCheckValueType + ) -> PadLinkReturn: ... @staticmethod - def link_get_name(ret: PadLinkReturn) -> str: ... + def link_get_name(ret: _PadLinkReturnValueType) -> str: ... def link_maybe_ghosting(self, sink: Pad) -> bool: ... - def link_maybe_ghosting_full(self, sink: Pad, flags: PadLinkCheck) -> bool: ... + def link_maybe_ghosting_full( + self, sink: Pad, flags: _PadLinkCheckValueType + ) -> bool: ... def mark_reconfigure(self) -> None: ... def needs_reconfigure(self) -> bool: ... @classmethod - def new(cls, name: str | None, direction: PadDirection) -> Pad: ... + def new(cls, name: str | None, direction: _PadDirectionValueType) -> Pad: ... @classmethod def new_from_static_template(cls, templ: StaticPadTemplate, name: str) -> Pad: ... @classmethod @@ -4045,10 +4108,10 @@ class Pad(Object): def peer_query_accept_caps(self, caps: Caps) -> bool: ... def peer_query_caps(self, filter: Caps | None = None) -> Caps: ... def peer_query_convert( - self, src_format: Format, src_val: int, dest_format: Format + self, src_format: _FormatValueType, src_val: int, dest_format: _FormatValueType ) -> tuple[bool, int]: ... - def peer_query_duration(self, format: Format) -> tuple[bool, int]: ... - def peer_query_position(self, format: Format) -> tuple[bool, int]: ... + def peer_query_duration(self, format: _FormatValueType) -> tuple[bool, int]: ... + def peer_query_position(self, format: _FormatValueType) -> tuple[bool, int]: ... def proxy_query_accept_caps(self, query: Query) -> bool: ... def proxy_query_caps(self, query: Query) -> bool: ... def pull_range(self, offset: int, size: int) -> tuple[FlowReturn, Buffer]: ... @@ -4061,11 +4124,11 @@ class Pad(Object): self, filter=None ): ... # FIXME: Override is missing typing annotation def query_convert( - self, src_format: Format, src_val: int, dest_format: Format + self, src_format: _FormatValueType, src_val: int, dest_format: _FormatValueType ) -> tuple[bool, int]: ... def query_default(self, parent: Object | None, query: Query) -> bool: ... - def query_duration(self, format: Format) -> tuple[bool, int]: ... - def query_position(self, format: Format) -> tuple[bool, int]: ... + def query_duration(self, format: _FormatValueType) -> tuple[bool, int]: ... + def query_position(self, format: _FormatValueType) -> tuple[bool, int]: ... def remove_probe(self, id: int) -> None: ... def send_event(self, event: Event) -> bool: ... def set_activate_function_full( @@ -4073,7 +4136,7 @@ class Pad(Object): ) -> None: ... def set_activatemode_function_full( self, - activatemode: Callable[[Pad, Object, PadMode, bool], bool], + activatemode: Callable[[Pad, Object, _PadModeValueType, bool], bool], *user_data: Unpack[_DataTs], ) -> None: ... def set_active(self, active: bool) -> bool: ... @@ -4184,7 +4247,7 @@ class PadProbeInfo(_gi.Struct): def set_buffer(self, buffer: Buffer | None = None) -> None: ... def set_buffer_list(self, list: BufferList | None = None) -> None: ... def set_event(self, event: Event | None = None) -> None: ... - def set_flow_return(self, flow_ret: FlowReturn) -> None: ... + def set_flow_return(self, flow_ret: _FlowReturnValueType) -> None: ... def set_object(self, obj: MiniObject | None) -> None: ... def writable_object(self) -> PadProbeInfoObjectContextManager: """ @@ -4249,7 +4312,7 @@ class PadTemplate(Object): @property def gtype(self) -> type[Any]: ... @property - def name_template(self) -> str: ... + def name_template(self) -> str | None: ... @property def presence(self) -> PadPresence: ... @@ -4268,11 +4331,11 @@ class PadTemplate(Object): def __init__( self, *, - caps: Caps = ..., - direction: PadDirection = ..., + caps: Caps | None = ..., + direction: _PadDirectionValueType = ..., gtype: type[Any] = ..., - name_template: str = ..., - presence: PadPresence = ..., + name_template: str | None = ..., + presence: _PadPresenceValueType = ..., name: str | None = ..., parent: Object = ..., ) -> None: ... @@ -4283,8 +4346,8 @@ class PadTemplate(Object): def new( cls, name_template: str, - direction: PadDirection, - presence: PadPresence, + direction: _PadDirectionValueType, + presence: _PadPresenceValueType, caps: Caps, ) -> PadTemplate | None: ... @classmethod @@ -4295,8 +4358,8 @@ class PadTemplate(Object): def new_with_gtype( cls, name_template: str, - direction: PadDirection, - presence: PadPresence, + direction: _PadDirectionValueType, + presence: _PadPresenceValueType, caps: Caps, pad_type: type[Any], ) -> PadTemplate | None: ... @@ -4534,14 +4597,14 @@ class Plugin(Object): env_vars: Sequence[str] | None, paths: Sequence[str] | None, names: Sequence[str] | None, - flags: PluginDependencyFlags, + flags: _PluginDependencyFlagsValueType, ) -> None: ... def add_dependency_simple( self, env_vars: str | None, paths: str | None, names: str | None, - flags: PluginDependencyFlags, + flags: _PluginDependencyFlagsValueType, ) -> None: ... def add_status_error(self, message: str) -> None: ... def add_status_info(self, message: str) -> None: ... @@ -4827,9 +4890,9 @@ class ProxyPad(Pad): def __init__( self, *, - direction: PadDirection = ..., + direction: _PadDirectionValueType = ..., offset: int = ..., - template: PadTemplate = ..., + template: PadTemplate | None = ..., name: str | None = ..., parent: Object = ..., ) -> None: ... @@ -4903,7 +4966,7 @@ class Query(MiniObjectMixin, GObject.GBoxed): self, pool: BufferPool | None, size: int, min_buffers: int, max_buffers: int ) -> None: ... def add_buffering_range(self, start: int, stop: int) -> bool: ... - def add_scheduling_mode(self, mode: PadMode) -> None: ... + def add_scheduling_mode(self, mode: _PadModeValueType) -> None: ... def find_allocation_meta(self, api: type[Any]) -> tuple[bool, int]: ... def get_n_allocation_metas(self) -> int: ... def get_n_allocation_params(self) -> int: ... @@ -4911,9 +4974,9 @@ class Query(MiniObjectMixin, GObject.GBoxed): def get_n_buffering_ranges(self) -> int: ... def get_n_scheduling_modes(self) -> int: ... def get_structure(self) -> Structure | None: ... - def has_scheduling_mode(self, mode: PadMode) -> bool: ... + def has_scheduling_mode(self, mode: _PadModeValueType) -> bool: ... def has_scheduling_mode_with_flags( - self, mode: PadMode, flags: SchedulingFlags + self, mode: _PadModeValueType, flags: _SchedulingFlagsValueType ) -> bool: ... def is_writable(self) -> bool: ... def make_writable(self) -> bool: ... @@ -4924,35 +4987,35 @@ class Query(MiniObjectMixin, GObject.GBoxed): @classmethod def new_bitrate(cls) -> Query: ... @classmethod - def new_buffering(cls, format: Format) -> Query: ... + def new_buffering(cls, format: _FormatValueType) -> Query: ... @classmethod def new_caps(cls, filter: Caps) -> Query: ... @classmethod def new_context(cls, context_type: str) -> Query: ... @classmethod def new_convert( - cls, src_format: Format, value: int, dest_format: Format + cls, src_format: _FormatValueType, value: int, dest_format: _FormatValueType ) -> Query: ... @classmethod def new_custom( - cls, type: QueryType, structure: Structure | None = None + cls, type: _QueryTypeValueType, structure: Structure | None = None ) -> Query: ... @classmethod def new_drain(cls) -> Query: ... @classmethod - def new_duration(cls, format: Format) -> Query: ... + def new_duration(cls, format: _FormatValueType) -> Query: ... @classmethod def new_formats(cls) -> Query: ... @classmethod def new_latency(cls) -> Query: ... @classmethod - def new_position(cls, format: Format) -> Query: ... + def new_position(cls, format: _FormatValueType) -> Query: ... @classmethod def new_scheduling(cls) -> Query: ... @classmethod - def new_seeking(cls, format: Format) -> Query: ... + def new_seeking(cls, format: _FormatValueType) -> Query: ... @classmethod - def new_segment(cls, format: Format) -> Query: ... + def new_segment(cls, format: _FormatValueType) -> Query: ... @classmethod def new_selectable(cls) -> Query: ... @classmethod @@ -4998,18 +5061,26 @@ class Query(MiniObjectMixin, GObject.GBoxed): def set_bitrate(self, nominal_bitrate: int) -> None: ... def set_buffering_percent(self, busy: bool, percent: int) -> None: ... def set_buffering_range( - self, format: Format, start: int, stop: int, estimated_total: int + self, format: _FormatValueType, start: int, stop: int, estimated_total: int ) -> None: ... def set_buffering_stats( - self, mode: BufferingMode, avg_in: int, avg_out: int, buffering_left: int + self, + mode: _BufferingModeValueType, + avg_in: int, + avg_out: int, + buffering_left: int, ) -> None: ... def set_caps_result(self, caps: Caps | None = None) -> None: ... def set_context(self, context: Context | None = None) -> None: ... def set_convert( - self, src_format: Format, src_value: int, dest_format: Format, dest_value: int + self, + src_format: _FormatValueType, + src_value: int, + dest_format: _FormatValueType, + dest_value: int, ) -> None: ... - def set_duration(self, format: Format, duration: int) -> None: ... - def set_formatsv(self, formats: Sequence[Format]) -> None: ... + def set_duration(self, format: _FormatValueType, duration: int) -> None: ... + def set_formatsv(self, formats: Sequence[_FormatValueType]) -> None: ... def set_latency(self, live: bool, min_latency: int, max_latency: int) -> None: ... def set_nth_allocation_param( self, @@ -5025,15 +5096,19 @@ class Query(MiniObjectMixin, GObject.GBoxed): min_buffers: int, max_buffers: int, ) -> None: ... - def set_position(self, format: Format, cur: int) -> None: ... + def set_position(self, format: _FormatValueType, cur: int) -> None: ... def set_scheduling( - self, flags: SchedulingFlags, minsize: int, maxsize: int, align: int + self, flags: _SchedulingFlagsValueType, minsize: int, maxsize: int, align: int ) -> None: ... def set_seeking( - self, format: Format, seekable: bool, segment_start: int, segment_end: int + self, + format: _FormatValueType, + seekable: bool, + segment_start: int, + segment_end: int, ) -> None: ... def set_segment( - self, rate: float, format: Format, start_value: int, stop_value: int + self, rate: float, format: _FormatValueType, start_value: int, stop_value: int ) -> None: ... def set_selectable(self, selectable: bool) -> None: ... def set_uri(self, uri: str | None = None) -> None: ... @@ -5199,41 +5274,49 @@ class Segment(GObject.GBoxed): position: int duration: int def __init__(self) -> None: ... - def clip(self, format: Format, start: int, stop: int) -> tuple[bool, int, int]: ... + def clip( + self, format: _FormatValueType, start: int, stop: int + ) -> tuple[bool, int, int]: ... def copy(self) -> Segment: ... def copy_into(self, dest: Segment) -> None: ... def do_seek( self, rate: float, - format: Format, - flags: SeekFlags, - start_type: SeekType, + format: _FormatValueType, + flags: _SeekFlagsValueType, + start_type: _SeekTypeValueType, start: int, - stop_type: SeekType, + stop_type: _SeekTypeValueType, stop: int, ) -> tuple[bool, bool]: ... def free(self) -> None: ... - def init(self, format: Format) -> None: ... + def init(self, format: _FormatValueType) -> None: ... def is_equal(self, s1: Segment) -> bool: ... @classmethod def new(cls) -> Segment: ... - def offset_running_time(self, format: Format, offset: int) -> bool: ... - def position_from_running_time(self, format: Format, running_time: int) -> int: ... + def offset_running_time(self, format: _FormatValueType, offset: int) -> bool: ... + def position_from_running_time( + self, format: _FormatValueType, running_time: int + ) -> int: ... def position_from_running_time_full( - self, format: Format, running_time: int + self, format: _FormatValueType, running_time: int ) -> tuple[int, int]: ... - def position_from_stream_time(self, format: Format, stream_time: int) -> int: ... + def position_from_stream_time( + self, format: _FormatValueType, stream_time: int + ) -> int: ... def position_from_stream_time_full( - self, format: Format, stream_time: int + self, format: _FormatValueType, stream_time: int ) -> tuple[int, int]: ... - def set_running_time(self, format: Format, running_time: int) -> bool: ... - def to_position(self, format: Format, running_time: int) -> int: ... - def to_running_time(self, format: Format, position: int) -> int: ... + def set_running_time(self, format: _FormatValueType, running_time: int) -> bool: ... + def to_position(self, format: _FormatValueType, running_time: int) -> int: ... + def to_running_time(self, format: _FormatValueType, position: int) -> int: ... def to_running_time_full( - self, format: Format, position: int + self, format: _FormatValueType, position: int + ) -> tuple[int, int]: ... + def to_stream_time(self, format: _FormatValueType, position: int) -> int: ... + def to_stream_time_full( + self, format: _FormatValueType, position: int ) -> tuple[int, int]: ... - def to_stream_time(self, format: Format, position: int) -> int: ... - def to_stream_time_full(self, format: Format, position: int) -> tuple[int, int]: ... class SharedTaskPool(TaskPool): """ @@ -5349,10 +5432,16 @@ class Stream(Object): @type_check_only class Props(Object.Props): caps: Caps | None - stream_flags: StreamFlags + @property + def stream_flags(self) -> StreamFlags: ... + @stream_flags.setter + def stream_flags(self, value: _StreamFlagsValueType) -> None: ... @property def stream_id(self) -> str | None: ... - stream_type: StreamType + @property + def stream_type(self) -> StreamType: ... + @stream_type.setter + def stream_type(self, value: _StreamTypeValueType) -> None: ... tags: TagList | None @property @@ -5367,9 +5456,9 @@ class Stream(Object): self, *, caps: Caps | None = ..., - stream_flags: StreamFlags = ..., - stream_id: str = ..., - stream_type: StreamType = ..., + stream_flags: _StreamFlagsValueType = ..., + stream_id: str | None = ..., + stream_type: _StreamTypeValueType = ..., tags: TagList | None = ..., name: str | None = ..., parent: Object = ..., @@ -5384,12 +5473,12 @@ class Stream(Object): cls, stream_id: str | None, caps: Caps | None, - type: StreamType, - flags: StreamFlags, + type: _StreamTypeValueType, + flags: _StreamFlagsValueType, ) -> Stream: ... def set_caps(self, caps: Caps | None = None) -> None: ... - def set_stream_flags(self, flags: StreamFlags) -> None: ... - def set_stream_type(self, stream_type: StreamType) -> None: ... + def set_stream_flags(self, flags: _StreamFlagsValueType) -> None: ... + def set_stream_type(self, stream_type: _StreamTypeValueType) -> None: ... def set_tags(self, tags: TagList | None = None) -> None: ... class StreamClass(_gi.Struct): @@ -5446,7 +5535,11 @@ class StreamCollection(Object): @property def priv(self) -> StreamCollectionPrivate: ... def __init__( - self, *, upstream_id: str = ..., name: str | None = ..., parent: Object = ... + self, + *, + upstream_id: str | None = ..., + name: str | None = ..., + parent: Object = ..., ) -> None: ... def add_stream(self, stream: Stream) -> bool: ... def do_stream_notify(self, stream: Stream, pspec: GObject.ParamSpec) -> None: ... @@ -5605,8 +5698,8 @@ class Structure(GObject.GBoxed): def nth_field_name(self, index: int) -> str: ... def remove_all_fields(self) -> None: ... def remove_field(self, fieldname: str) -> None: ... - def serialize(self, flags: SerializeFlags) -> str: ... - def serialize_full(self, flags: SerializeFlags) -> str | None: ... + def serialize(self, flags: _SerializeFlagsValueType) -> str: ... + def serialize_full(self, flags: _SerializeFlagsValueType) -> str | None: ... def set_array(self, fieldname: str, array: GObject.ValueArray) -> None: ... def set_list(self, fieldname: str, array: GObject.ValueArray) -> None: ... def set_name(self, name: str) -> None: ... @@ -5671,7 +5764,10 @@ class SystemClock(Clock): """ @type_check_only class Props(Clock.Props): - clock_type: ClockType + @property + def clock_type(self) -> ClockType: ... + @clock_type.setter + def clock_type(self, value: _ClockTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -5682,7 +5778,7 @@ class SystemClock(Clock): def __init__( self, *, - clock_type: ClockType = ..., + clock_type: _ClockTypeValueType = ..., timeout: int = ..., window_size: int = ..., window_threshold: int = ..., @@ -5723,7 +5819,7 @@ class TagList(GObject.GBoxed): def __getitem__(self, index: int) -> Any: ... def __len__(self) -> int: ... def __setitem__(self, key: str, value: Any) -> None: ... - def add_value(self, mode: TagMergeMode, tag: str, value: Any) -> None: ... + def add_value(self, mode: _TagMergeModeValueType, tag: str, value: Any) -> None: ... def copy(self) -> TagList: ... @staticmethod def copy_value(list: TagList, tag: str) -> tuple[bool, Any]: ... @@ -5760,13 +5856,15 @@ class TagList(GObject.GBoxed): def get_uint64_index(self, tag: str, index: int) -> tuple[bool, int]: ... def get_uint_index(self, tag: str, index: int) -> tuple[bool, int]: ... def get_value_index(self, tag: str, index: int) -> Any | None: ... - def insert(self, from_: TagList, mode: TagMergeMode) -> None: ... + def insert(self, from_: TagList, mode: _TagMergeModeValueType) -> None: ... def is_empty(self) -> bool: ... def is_equal(self, list2: TagList) -> bool: ... def is_writable(self) -> bool: ... def keys(self) -> Iterable[str]: ... def make_writable(self) -> TagList: ... - def merge(self, list2: TagList | None, mode: TagMergeMode) -> TagList | None: ... + def merge( + self, list2: TagList | None, mode: _TagMergeModeValueType + ) -> TagList | None: ... def n_tags(self) -> int: ... @classmethod def new_empty(cls) -> TagList: ... @@ -5779,7 +5877,7 @@ class TagList(GObject.GBoxed): def replace( old_taglist: TagList | None = None, new_taglist: TagList | None = None ) -> tuple[bool, TagList | None]: ... - def set_scope(self, scope: TagScope) -> None: ... + def set_scope(self, scope: _TagScopeValueType) -> None: ... @staticmethod def take( old_taglist: TagList, new_taglist: TagList | None = None @@ -5793,12 +5891,14 @@ class TagSetter(GObject.GInterface, Protocol): Signals from GObject: notify (GParam) """ - def add_tag_value(self, mode: TagMergeMode, tag: str, value: Any) -> None: ... + def add_tag_value( + self, mode: _TagMergeModeValueType, tag: str, value: Any + ) -> None: ... def get_tag_list(self) -> TagList | None: ... def get_tag_merge_mode(self) -> TagMergeMode: ... - def merge_tags(self, list: TagList, mode: TagMergeMode) -> None: ... + def merge_tags(self, list: TagList, mode: _TagMergeModeValueType) -> None: ... def reset_tags(self) -> None: ... - def set_tag_merge_mode(self, mode: TagMergeMode) -> None: ... + def set_tag_merge_mode(self, mode: _TagMergeModeValueType) -> None: ... class TagSetterInterface(_gi.Struct): """ @@ -5878,7 +5978,7 @@ class Task(Object): ) -> None: ... def set_lock(self, mutex: GLib.RecMutex) -> None: ... def set_pool(self, pool: TaskPool) -> None: ... - def set_state(self, state: TaskState) -> bool: ... + def set_state(self, state: _TaskStateValueType) -> bool: ... def start(self) -> bool: ... def stop(self) -> bool: ... @@ -5985,16 +6085,18 @@ class Toc(GObject.GBoxed): new(scope:Gst.TocScope) -> Gst.Toc """ - def __init__(self, scope: TocScope) -> None: ... + def __init__(self, scope: _TocScopeValueType) -> None: ... def append_entry(self, entry: TocEntry) -> None: ... def dump(self) -> None: ... def find_entry(self, uid: str) -> TocEntry | None: ... def get_entries(self) -> list[TocEntry]: ... def get_scope(self) -> TocScope: ... def get_tags(self) -> TagList | None: ... - def merge_tags(self, tags: TagList | None, mode: TagMergeMode) -> None: ... + def merge_tags( + self, tags: TagList | None, mode: _TagMergeModeValueType + ) -> None: ... @classmethod - def new(cls, scope: TocScope) -> Toc: ... + def new(cls, scope: _TocScopeValueType) -> Toc: ... def set_tags(self, tags: TagList | None = None) -> None: ... class TocEntry(GObject.GBoxed): @@ -6005,7 +6107,7 @@ class TocEntry(GObject.GBoxed): new(type:Gst.TocEntryType, uid:str) -> Gst.TocEntry """ - def __init__(self, type: TocEntryType, uid: str) -> None: ... + def __init__(self, type: _TocEntryTypeValueType, uid: str) -> None: ... def append_sub_entry(self, subentry: TocEntry) -> None: ... def get_entry_type(self) -> TocEntryType: ... def get_loop(self) -> tuple[bool, TocLoopType, int]: ... @@ -6017,10 +6119,12 @@ class TocEntry(GObject.GBoxed): def get_uid(self) -> str: ... def is_alternative(self) -> bool: ... def is_sequence(self) -> bool: ... - def merge_tags(self, tags: TagList | None, mode: TagMergeMode) -> None: ... + def merge_tags( + self, tags: TagList | None, mode: _TagMergeModeValueType + ) -> None: ... @classmethod - def new(cls, type: TocEntryType, uid: str) -> TocEntry: ... - def set_loop(self, loop_type: TocLoopType, repeat_count: int) -> None: ... + def new(cls, type: _TocEntryTypeValueType, uid: str) -> TocEntry: ... + def set_loop(self, loop_type: _TocLoopTypeValueType, repeat_count: int) -> None: ... def set_start_stop_times(self, start: int, stop: int) -> None: ... def set_tags(self, tags: TagList | None = None) -> None: ... @@ -6074,7 +6178,7 @@ class Tracer(Object): """ @type_check_only class Props(Object.Props): - params: str + params: str | None @property def props(self) -> Props: ... @@ -6083,7 +6187,7 @@ class Tracer(Object): @property def priv(self) -> TracerPrivate: ... def __init__( - self, *, params: str = ..., name: str | None = ..., parent: Object = ... + self, *, params: str | None = ..., name: str | None = ..., parent: Object = ... ) -> None: ... @staticmethod def register(plugin: Plugin | None, name: str, type: type[Any]) -> bool: ... @@ -6324,7 +6428,7 @@ class Uri(GObject.GBoxed): ) -> Uri: ... def normalize(self) -> bool: ... @staticmethod - def protocol_is_supported(type: URIType, protocol: str) -> bool: ... + def protocol_is_supported(type: _URITypeValueType, protocol: str) -> bool: ... @staticmethod def protocol_is_valid(protocol: str) -> bool: ... def query_has_key(self, query_key: str) -> bool: ... @@ -6449,11 +6553,35 @@ class AllocatorFlags(GObject.GFlags): LAST = 1048576 NO_COPY = 32 +_AllocatorFlagsLiteralType: TypeAlias = Literal[ + "GST_ALLOCATOR_FLAG_CUSTOM_ALLOC", + "GST_ALLOCATOR_FLAG_LAST", + "GST_ALLOCATOR_FLAG_NO_COPY", + "custom-alloc", + "last", + "no-copy", +] +_AllocatorFlagsValueType: TypeAlias = ( + AllocatorFlags | _AllocatorFlagsLiteralType | tuple[_AllocatorFlagsLiteralType, ...] +) + class BinFlags(GObject.GFlags): LAST = 524288 NO_RESYNC = 16384 STREAMS_AWARE = 32768 +_BinFlagsLiteralType: TypeAlias = Literal[ + "GST_BIN_FLAG_LAST", + "GST_BIN_FLAG_NO_RESYNC", + "GST_BIN_FLAG_STREAMS_AWARE", + "last", + "no-resync", + "streams-aware", +] +_BinFlagsValueType: TypeAlias = ( + BinFlags | _BinFlagsLiteralType | tuple[_BinFlagsLiteralType, ...] +) + class BufferCopyFlags(GObject.GFlags): DEEP = 32 FLAGS = 1 @@ -6463,6 +6591,28 @@ class BufferCopyFlags(GObject.GFlags): NONE = 0 TIMESTAMPS = 2 +_BufferCopyFlagsLiteralType: TypeAlias = Literal[ + "GST_BUFFER_COPY_DEEP", + "GST_BUFFER_COPY_FLAGS", + "GST_BUFFER_COPY_MEMORY", + "GST_BUFFER_COPY_MERGE", + "GST_BUFFER_COPY_META", + "GST_BUFFER_COPY_NONE", + "GST_BUFFER_COPY_TIMESTAMPS", + "deep", + "flags", + "memory", + "merge", + "meta", + "none", + "timestamps", +] +_BufferCopyFlagsValueType: TypeAlias = ( + BufferCopyFlags + | _BufferCopyFlagsLiteralType + | tuple[_BufferCopyFlagsLiteralType, ...] +) + class BufferFlags(GObject.GFlags): CORRUPTED = 256 DECODE_ONLY = 32 @@ -6479,6 +6629,40 @@ class BufferFlags(GObject.GFlags): SYNC_AFTER = 32768 TAG_MEMORY = 16384 +_BufferFlagsLiteralType: TypeAlias = Literal[ + "GST_BUFFER_FLAG_CORRUPTED", + "GST_BUFFER_FLAG_DECODE_ONLY", + "GST_BUFFER_FLAG_DELTA_UNIT", + "GST_BUFFER_FLAG_DISCONT", + "GST_BUFFER_FLAG_DROPPABLE", + "GST_BUFFER_FLAG_GAP", + "GST_BUFFER_FLAG_HEADER", + "GST_BUFFER_FLAG_LAST", + "GST_BUFFER_FLAG_LIVE", + "GST_BUFFER_FLAG_MARKER", + "GST_BUFFER_FLAG_NON_DROPPABLE", + "GST_BUFFER_FLAG_RESYNC", + "GST_BUFFER_FLAG_SYNC_AFTER", + "GST_BUFFER_FLAG_TAG_MEMORY", + "corrupted", + "decode-only", + "delta-unit", + "discont", + "droppable", + "gap", + "header", + "last", + "live", + "marker", + "non-droppable", + "resync", + "sync-after", + "tag-memory", +] +_BufferFlagsValueType: TypeAlias = ( + BufferFlags | _BufferFlagsLiteralType | tuple[_BufferFlagsLiteralType, ...] +) + class BufferPoolAcquireFlags(GObject.GFlags): DISCONT = 4 DONTWAIT = 2 @@ -6486,13 +6670,43 @@ class BufferPoolAcquireFlags(GObject.GFlags): LAST = 65536 NONE = 0 +_BufferPoolAcquireFlagsLiteralType: TypeAlias = Literal[ + "GST_BUFFER_POOL_ACQUIRE_FLAG_DISCONT", + "GST_BUFFER_POOL_ACQUIRE_FLAG_DONTWAIT", + "GST_BUFFER_POOL_ACQUIRE_FLAG_KEY_UNIT", + "GST_BUFFER_POOL_ACQUIRE_FLAG_LAST", + "GST_BUFFER_POOL_ACQUIRE_FLAG_NONE", + "discont", + "dontwait", + "key-unit", + "last", + "none", +] +_BufferPoolAcquireFlagsValueType: TypeAlias = ( + BufferPoolAcquireFlags + | _BufferPoolAcquireFlagsLiteralType + | tuple[_BufferPoolAcquireFlagsLiteralType, ...] +) + class BusFlags(GObject.GFlags): FLAG_LAST = 32 FLUSHING = 16 +_BusFlagsLiteralType: TypeAlias = Literal[ + "GST_BUS_FLAG_LAST", "GST_BUS_FLUSHING", "flag-last", "flushing" +] +_BusFlagsValueType: TypeAlias = ( + BusFlags | _BusFlagsLiteralType | tuple[_BusFlagsLiteralType, ...] +) + class CapsFlags(GObject.GFlags): ANY = 16 +_CapsFlagsLiteralType: TypeAlias = Literal["GST_CAPS_FLAG_ANY", "any"] +_CapsFlagsValueType: TypeAlias = ( + CapsFlags | _CapsFlagsLiteralType | tuple[_CapsFlagsLiteralType, ...] +) + class ClockFlags(GObject.GFlags): CAN_DO_PERIODIC_ASYNC = 128 CAN_DO_PERIODIC_SYNC = 64 @@ -6503,6 +6717,28 @@ class ClockFlags(GObject.GFlags): LAST = 4096 NEEDS_STARTUP_SYNC = 1024 +_ClockFlagsLiteralType: TypeAlias = Literal[ + "GST_CLOCK_FLAG_CAN_DO_PERIODIC_ASYNC", + "GST_CLOCK_FLAG_CAN_DO_PERIODIC_SYNC", + "GST_CLOCK_FLAG_CAN_DO_SINGLE_ASYNC", + "GST_CLOCK_FLAG_CAN_DO_SINGLE_SYNC", + "GST_CLOCK_FLAG_CAN_SET_MASTER", + "GST_CLOCK_FLAG_CAN_SET_RESOLUTION", + "GST_CLOCK_FLAG_LAST", + "GST_CLOCK_FLAG_NEEDS_STARTUP_SYNC", + "can-do-periodic-async", + "can-do-periodic-sync", + "can-do-single-async", + "can-do-single-sync", + "can-set-master", + "can-set-resolution", + "last", + "needs-startup-sync", +] +_ClockFlagsValueType: TypeAlias = ( + ClockFlags | _ClockFlagsLiteralType | tuple[_ClockFlagsLiteralType, ...] +) + class DebugColorFlags(GObject.GFlags): BG_BLACK = 0 BG_BLUE = 64 @@ -6523,6 +6759,50 @@ class DebugColorFlags(GObject.GFlags): FG_YELLOW = 3 UNDERLINE = 512 +_DebugColorFlagsLiteralType: TypeAlias = Literal[ + "GST_DEBUG_BG_BLACK", + "GST_DEBUG_BG_BLUE", + "GST_DEBUG_BG_CYAN", + "GST_DEBUG_BG_GREEN", + "GST_DEBUG_BG_MAGENTA", + "GST_DEBUG_BG_RED", + "GST_DEBUG_BG_WHITE", + "GST_DEBUG_BG_YELLOW", + "GST_DEBUG_BOLD", + "GST_DEBUG_FG_BLACK", + "GST_DEBUG_FG_BLUE", + "GST_DEBUG_FG_CYAN", + "GST_DEBUG_FG_GREEN", + "GST_DEBUG_FG_MAGENTA", + "GST_DEBUG_FG_RED", + "GST_DEBUG_FG_WHITE", + "GST_DEBUG_FG_YELLOW", + "GST_DEBUG_UNDERLINE", + "bg-black", + "bg-blue", + "bg-cyan", + "bg-green", + "bg-magenta", + "bg-red", + "bg-white", + "bg-yellow", + "bold", + "fg-black", + "fg-blue", + "fg-cyan", + "fg-green", + "fg-magenta", + "fg-red", + "fg-white", + "fg-yellow", + "underline", +] +_DebugColorFlagsValueType: TypeAlias = ( + DebugColorFlags + | _DebugColorFlagsLiteralType + | tuple[_DebugColorFlagsLiteralType, ...] +) + class DebugGraphDetails(GObject.GFlags): ALL = 15 CAPS_DETAILS = 2 @@ -6532,6 +6812,28 @@ class DebugGraphDetails(GObject.GFlags): STATES = 8 VERBOSE = 4294967295 +_DebugGraphDetailsLiteralType: TypeAlias = Literal[ + "GST_DEBUG_GRAPH_SHOW_ALL", + "GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS", + "GST_DEBUG_GRAPH_SHOW_FULL_PARAMS", + "GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE", + "GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS", + "GST_DEBUG_GRAPH_SHOW_STATES", + "GST_DEBUG_GRAPH_SHOW_VERBOSE", + "all", + "caps-details", + "full-params", + "media-type", + "non-default-params", + "states", + "verbose", +] +_DebugGraphDetailsValueType: TypeAlias = ( + DebugGraphDetails + | _DebugGraphDetailsLiteralType + | tuple[_DebugGraphDetailsLiteralType, ...] +) + class ElementFlags(GObject.GFlags): INDEXABLE = 512 LAST = 16384 @@ -6541,6 +6843,26 @@ class ElementFlags(GObject.GFlags): SINK = 32 SOURCE = 64 +_ElementFlagsLiteralType: TypeAlias = Literal[ + "GST_ELEMENT_FLAG_INDEXABLE", + "GST_ELEMENT_FLAG_LAST", + "GST_ELEMENT_FLAG_LOCKED_STATE", + "GST_ELEMENT_FLAG_PROVIDE_CLOCK", + "GST_ELEMENT_FLAG_REQUIRE_CLOCK", + "GST_ELEMENT_FLAG_SINK", + "GST_ELEMENT_FLAG_SOURCE", + "indexable", + "last", + "locked-state", + "provide-clock", + "require-clock", + "sink", + "source", +] +_ElementFlagsValueType: TypeAlias = ( + ElementFlags | _ElementFlagsLiteralType | tuple[_ElementFlagsLiteralType, ...] +) + class EventTypeFlags(GObject.GFlags): DOWNSTREAM = 2 SERIALIZED = 4 @@ -6548,19 +6870,63 @@ class EventTypeFlags(GObject.GFlags): STICKY_MULTI = 16 UPSTREAM = 1 +_EventTypeFlagsLiteralType: TypeAlias = Literal[ + "GST_EVENT_TYPE_DOWNSTREAM", + "GST_EVENT_TYPE_SERIALIZED", + "GST_EVENT_TYPE_STICKY", + "GST_EVENT_TYPE_STICKY_MULTI", + "GST_EVENT_TYPE_UPSTREAM", + "downstream", + "serialized", + "sticky", + "sticky-multi", + "upstream", +] +_EventTypeFlagsValueType: TypeAlias = ( + EventTypeFlags | _EventTypeFlagsLiteralType | tuple[_EventTypeFlagsLiteralType, ...] +) + class GapFlags(GObject.GFlags): DATA = 1 +_GapFlagsLiteralType: TypeAlias = Literal["GST_GAP_FLAG_MISSING_DATA", "data"] +_GapFlagsValueType: TypeAlias = ( + GapFlags | _GapFlagsLiteralType | tuple[_GapFlagsLiteralType, ...] +) + class LockFlags(GObject.GFlags): EXCLUSIVE = 4 LAST = 256 READ = 1 WRITE = 2 +_LockFlagsLiteralType: TypeAlias = Literal[ + "GST_LOCK_FLAG_EXCLUSIVE", + "GST_LOCK_FLAG_LAST", + "GST_LOCK_FLAG_READ", + "GST_LOCK_FLAG_WRITE", + "exclusive", + "last", + "read", + "write", +] +_LockFlagsValueType: TypeAlias = ( + LockFlags | _LockFlagsLiteralType | tuple[_LockFlagsLiteralType, ...] +) + class LogContextFlags(GObject.GFlags): NONE = 0 THROTTLE = 1 +_LogContextFlagsLiteralType: TypeAlias = Literal[ + "GST_LOG_CONTEXT_FLAG_NONE", "GST_LOG_CONTEXT_FLAG_THROTTLE", "none", "throttle" +] +_LogContextFlagsValueType: TypeAlias = ( + LogContextFlags + | _LogContextFlagsLiteralType + | tuple[_LogContextFlagsLiteralType, ...] +) + class LogContextHashFlags(GObject.GFlags): DEFAULT = 0 IGNORE_FILE = 4 @@ -6569,12 +6935,46 @@ class LogContextHashFlags(GObject.GFlags): USE_LINE_NUMBER = 8 USE_STRING_ARGS = 16 +_LogContextHashFlagsLiteralType: TypeAlias = Literal[ + "GST_LOG_CONTEXT_DEFAULT", + "GST_LOG_CONTEXT_IGNORE_FILE", + "GST_LOG_CONTEXT_IGNORE_FORMAT", + "GST_LOG_CONTEXT_IGNORE_OBJECT", + "GST_LOG_CONTEXT_USE_LINE_NUMBER", + "GST_LOG_CONTEXT_USE_STRING_ARGS", + "default", + "ignore-file", + "ignore-format", + "ignore-object", + "use-line-number", + "use-string-args", +] +_LogContextHashFlagsValueType: TypeAlias = ( + LogContextHashFlags + | _LogContextHashFlagsLiteralType + | tuple[_LogContextHashFlagsLiteralType, ...] +) + class MapFlags(GObject.GFlags): FLAG_LAST = 65536 READ = 1 REF_MEMORY = 256 WRITE = 2 +_MapFlagsLiteralType: TypeAlias = Literal[ + "GST_MAP_FLAG_LAST", + "GST_MAP_READ", + "GST_MAP_REF_MEMORY", + "GST_MAP_WRITE", + "flag-last", + "read", + "ref-memory", + "write", +] +_MapFlagsValueType: TypeAlias = ( + MapFlags | _MapFlagsLiteralType | tuple[_MapFlagsLiteralType, ...] +) + class MemoryFlags(GObject.GFlags): LAST = 1048576 NOT_MAPPABLE = 256 @@ -6584,6 +6984,26 @@ class MemoryFlags(GObject.GFlags): ZERO_PADDED = 64 ZERO_PREFIXED = 32 +_MemoryFlagsLiteralType: TypeAlias = Literal[ + "GST_MEMORY_FLAG_LAST", + "GST_MEMORY_FLAG_NOT_MAPPABLE", + "GST_MEMORY_FLAG_NO_SHARE", + "GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS", + "GST_MEMORY_FLAG_READONLY", + "GST_MEMORY_FLAG_ZERO_PADDED", + "GST_MEMORY_FLAG_ZERO_PREFIXED", + "last", + "no-share", + "not-mappable", + "physically-contiguous", + "readonly", + "zero-padded", + "zero-prefixed", +] +_MemoryFlagsValueType: TypeAlias = ( + MemoryFlags | _MemoryFlagsLiteralType | tuple[_MemoryFlagsLiteralType, ...] +) + class MessageType(GObject.GFlags): ANY = 4294967295 APPLICATION = 16384 @@ -6629,9 +7049,101 @@ class MessageType(GObject.GFlags): UNKNOWN = 0 WARNING = 4 @staticmethod - def get_name(type: MessageType) -> str: ... - @staticmethod - def to_quark(type: MessageType) -> int: ... + def get_name(type: _MessageTypeValueType) -> str: ... + @staticmethod + def to_quark(type: _MessageTypeValueType) -> int: ... + +_MessageTypeLiteralType: TypeAlias = Literal[ + "GST_MESSAGE_ANY", + "GST_MESSAGE_APPLICATION", + "GST_MESSAGE_ASYNC_DONE", + "GST_MESSAGE_ASYNC_START", + "GST_MESSAGE_BUFFERING", + "GST_MESSAGE_CLOCK_LOST", + "GST_MESSAGE_CLOCK_PROVIDE", + "GST_MESSAGE_DEVICE_ADDED", + "GST_MESSAGE_DEVICE_CHANGED", + "GST_MESSAGE_DEVICE_MONITOR_STARTED", + "GST_MESSAGE_DEVICE_REMOVED", + "GST_MESSAGE_DURATION_CHANGED", + "GST_MESSAGE_ELEMENT", + "GST_MESSAGE_EOS", + "GST_MESSAGE_ERROR", + "GST_MESSAGE_EXTENDED", + "GST_MESSAGE_HAVE_CONTEXT", + "GST_MESSAGE_INFO", + "GST_MESSAGE_INSTANT_RATE_REQUEST", + "GST_MESSAGE_LATENCY", + "GST_MESSAGE_NEED_CONTEXT", + "GST_MESSAGE_NEW_CLOCK", + "GST_MESSAGE_PROGRESS", + "GST_MESSAGE_PROPERTY_NOTIFY", + "GST_MESSAGE_QOS", + "GST_MESSAGE_REDIRECT", + "GST_MESSAGE_REQUEST_STATE", + "GST_MESSAGE_RESET_TIME", + "GST_MESSAGE_SEGMENT_DONE", + "GST_MESSAGE_SEGMENT_START", + "GST_MESSAGE_STATE_CHANGED", + "GST_MESSAGE_STATE_DIRTY", + "GST_MESSAGE_STEP_DONE", + "GST_MESSAGE_STEP_START", + "GST_MESSAGE_STREAMS_SELECTED", + "GST_MESSAGE_STREAM_COLLECTION", + "GST_MESSAGE_STREAM_START", + "GST_MESSAGE_STREAM_STATUS", + "GST_MESSAGE_STRUCTURE_CHANGE", + "GST_MESSAGE_TAG", + "GST_MESSAGE_TOC", + "GST_MESSAGE_UNKNOWN", + "GST_MESSAGE_WARNING", + "any", + "application", + "async-done", + "async-start", + "buffering", + "clock-lost", + "clock-provide", + "device-added", + "device-changed", + "device-monitor-started", + "device-removed", + "duration-changed", + "element", + "eos", + "error", + "extended", + "have-context", + "info", + "instant-rate-request", + "latency", + "need-context", + "new-clock", + "progress", + "property-notify", + "qos", + "redirect", + "request-state", + "reset-time", + "segment-done", + "segment-start", + "state-changed", + "state-dirty", + "step-done", + "step-start", + "stream-collection", + "stream-start", + "stream-status", + "streams-selected", + "structure-change", + "tag", + "toc", + "unknown", + "warning", +] +_MessageTypeValueType: TypeAlias = ( + MessageType | _MessageTypeLiteralType | tuple[_MessageTypeLiteralType, ...] +) class MetaFlags(GObject.GFlags): LAST = 65536 @@ -6640,17 +7152,61 @@ class MetaFlags(GObject.GFlags): POOLED = 2 READONLY = 1 +_MetaFlagsLiteralType: TypeAlias = Literal[ + "GST_META_FLAG_LAST", + "GST_META_FLAG_LOCKED", + "GST_META_FLAG_NONE", + "GST_META_FLAG_POOLED", + "GST_META_FLAG_READONLY", + "last", + "locked", + "none", + "pooled", + "readonly", +] +_MetaFlagsValueType: TypeAlias = ( + MetaFlags | _MetaFlagsLiteralType | tuple[_MetaFlagsLiteralType, ...] +) + class MiniObjectFlags(GObject.GFlags): LAST = 16 LOCKABLE = 1 LOCK_READONLY = 2 MAY_BE_LEAKED = 4 +_MiniObjectFlagsLiteralType: TypeAlias = Literal[ + "GST_MINI_OBJECT_FLAG_LAST", + "GST_MINI_OBJECT_FLAG_LOCKABLE", + "GST_MINI_OBJECT_FLAG_LOCK_READONLY", + "GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED", + "last", + "lock-readonly", + "lockable", + "may-be-leaked", +] +_MiniObjectFlagsValueType: TypeAlias = ( + MiniObjectFlags + | _MiniObjectFlagsLiteralType + | tuple[_MiniObjectFlagsLiteralType, ...] +) + class ObjectFlags(GObject.GFlags): CONSTRUCTED = 2 LAST = 16 MAY_BE_LEAKED = 1 +_ObjectFlagsLiteralType: TypeAlias = Literal[ + "GST_OBJECT_FLAG_CONSTRUCTED", + "GST_OBJECT_FLAG_LAST", + "GST_OBJECT_FLAG_MAY_BE_LEAKED", + "constructed", + "last", + "may-be-leaked", +] +_ObjectFlagsValueType: TypeAlias = ( + ObjectFlags | _ObjectFlagsLiteralType | tuple[_ObjectFlagsLiteralType, ...] +) + class PadFlags(GObject.GFlags): ACCEPT_INTERSECT = 32768 ACCEPT_TEMPLATE = 65536 @@ -6667,6 +7223,40 @@ class PadFlags(GObject.GFlags): PROXY_CAPS = 4096 PROXY_SCHEDULING = 16384 +_PadFlagsLiteralType: TypeAlias = Literal[ + "GST_PAD_FLAG_ACCEPT_INTERSECT", + "GST_PAD_FLAG_ACCEPT_TEMPLATE", + "GST_PAD_FLAG_BLOCKED", + "GST_PAD_FLAG_BLOCKING", + "GST_PAD_FLAG_EOS", + "GST_PAD_FLAG_FIXED_CAPS", + "GST_PAD_FLAG_FLUSHING", + "GST_PAD_FLAG_LAST", + "GST_PAD_FLAG_NEED_PARENT", + "GST_PAD_FLAG_NEED_RECONFIGURE", + "GST_PAD_FLAG_PENDING_EVENTS", + "GST_PAD_FLAG_PROXY_ALLOCATION", + "GST_PAD_FLAG_PROXY_CAPS", + "GST_PAD_FLAG_PROXY_SCHEDULING", + "accept-intersect", + "accept-template", + "blocked", + "blocking", + "eos", + "fixed-caps", + "flushing", + "last", + "need-parent", + "need-reconfigure", + "pending-events", + "proxy-allocation", + "proxy-caps", + "proxy-scheduling", +] +_PadFlagsValueType: TypeAlias = ( + PadFlags | _PadFlagsLiteralType | tuple[_PadFlagsLiteralType, ...] +) + class PadLinkCheck(GObject.GFlags): CAPS = 4 DEFAULT = 5 @@ -6675,6 +7265,24 @@ class PadLinkCheck(GObject.GFlags): NO_RECONFIGURE = 8 TEMPLATE_CAPS = 2 +_PadLinkCheckLiteralType: TypeAlias = Literal[ + "GST_PAD_LINK_CHECK_CAPS", + "GST_PAD_LINK_CHECK_DEFAULT", + "GST_PAD_LINK_CHECK_HIERARCHY", + "GST_PAD_LINK_CHECK_NOTHING", + "GST_PAD_LINK_CHECK_NO_RECONFIGURE", + "GST_PAD_LINK_CHECK_TEMPLATE_CAPS", + "caps", + "default", + "hierarchy", + "no-reconfigure", + "nothing", + "template-caps", +] +_PadLinkCheckValueType: TypeAlias = ( + PadLinkCheck | _PadLinkCheckLiteralType | tuple[_PadLinkCheckLiteralType, ...] +) + class PadProbeType(GObject.GFlags): ALL_BOTH = 1776 BLOCK = 2 @@ -6699,22 +7307,107 @@ class PadProbeType(GObject.GFlags): QUERY_UPSTREAM = 1024 SCHEDULING = 12288 +_PadProbeTypeLiteralType: TypeAlias = Literal[ + "GST_PAD_PROBE_TYPE_ALL_BOTH", + "GST_PAD_PROBE_TYPE_BLOCK", + "GST_PAD_PROBE_TYPE_BLOCKING", + "GST_PAD_PROBE_TYPE_BLOCK_DOWNSTREAM", + "GST_PAD_PROBE_TYPE_BLOCK_UPSTREAM", + "GST_PAD_PROBE_TYPE_BUFFER", + "GST_PAD_PROBE_TYPE_BUFFER_LIST", + "GST_PAD_PROBE_TYPE_DATA_BOTH", + "GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM", + "GST_PAD_PROBE_TYPE_DATA_UPSTREAM", + "GST_PAD_PROBE_TYPE_EVENT_BOTH", + "GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM", + "GST_PAD_PROBE_TYPE_EVENT_FLUSH", + "GST_PAD_PROBE_TYPE_EVENT_UPSTREAM", + "GST_PAD_PROBE_TYPE_IDLE", + "GST_PAD_PROBE_TYPE_INVALID", + "GST_PAD_PROBE_TYPE_PULL", + "GST_PAD_PROBE_TYPE_PUSH", + "GST_PAD_PROBE_TYPE_QUERY_BOTH", + "GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM", + "GST_PAD_PROBE_TYPE_QUERY_UPSTREAM", + "GST_PAD_PROBE_TYPE_SCHEDULING", + "all-both", + "block", + "block-downstream", + "block-upstream", + "blocking", + "buffer", + "buffer-list", + "data-both", + "data-downstream", + "data-upstream", + "event-both", + "event-downstream", + "event-flush", + "event-upstream", + "idle", + "invalid", + "pull", + "push", + "query-both", + "query-downstream", + "query-upstream", + "scheduling", +] +_PadProbeTypeValueType: TypeAlias = ( + PadProbeType | _PadProbeTypeLiteralType | tuple[_PadProbeTypeLiteralType, ...] +) + class PadTemplateFlags(GObject.GFlags): LAST = 256 +_PadTemplateFlagsLiteralType: TypeAlias = Literal["GST_PAD_TEMPLATE_FLAG_LAST", "last"] +_PadTemplateFlagsValueType: TypeAlias = ( + PadTemplateFlags + | _PadTemplateFlagsLiteralType + | tuple[_PadTemplateFlagsLiteralType, ...] +) + class ParseFlags(GObject.GFlags): FATAL_ERRORS = 1 NONE = 0 NO_SINGLE_ELEMENT_BINS = 2 PLACE_IN_BIN = 4 +_ParseFlagsLiteralType: TypeAlias = Literal[ + "GST_PARSE_FLAG_FATAL_ERRORS", + "GST_PARSE_FLAG_NONE", + "GST_PARSE_FLAG_NO_SINGLE_ELEMENT_BINS", + "GST_PARSE_FLAG_PLACE_IN_BIN", + "fatal-errors", + "no-single-element-bins", + "none", + "place-in-bin", +] +_ParseFlagsValueType: TypeAlias = ( + ParseFlags | _ParseFlagsLiteralType | tuple[_ParseFlagsLiteralType, ...] +) + class PipelineFlags(GObject.GFlags): FIXED_CLOCK = 524288 LAST = 8388608 +_PipelineFlagsLiteralType: TypeAlias = Literal[ + "GST_PIPELINE_FLAG_FIXED_CLOCK", "GST_PIPELINE_FLAG_LAST", "fixed-clock", "last" +] +_PipelineFlagsValueType: TypeAlias = ( + PipelineFlags | _PipelineFlagsLiteralType | tuple[_PipelineFlagsLiteralType, ...] +) + class PluginAPIFlags(GObject.GFlags): MEMBERS = 1 +_PluginAPIFlagsLiteralType: TypeAlias = Literal[ + "GST_PLUGIN_API_FLAG_IGNORE_ENUM_MEMBERS", "members" +] +_PluginAPIFlagsValueType: TypeAlias = ( + PluginAPIFlags | _PluginAPIFlagsLiteralType | tuple[_PluginAPIFlagsLiteralType, ...] +) + class PluginDependencyFlags(GObject.GFlags): FILE_NAME_IS_PREFIX = 8 FILE_NAME_IS_SUFFIX = 4 @@ -6723,20 +7416,73 @@ class PluginDependencyFlags(GObject.GFlags): PATHS_ARE_RELATIVE_TO_EXE = 16 RECURSE = 1 +_PluginDependencyFlagsLiteralType: TypeAlias = Literal[ + "GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_PREFIX", + "GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX", + "GST_PLUGIN_DEPENDENCY_FLAG_NONE", + "GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_DEFAULT_ONLY", + "GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_RELATIVE_TO_EXE", + "GST_PLUGIN_DEPENDENCY_FLAG_RECURSE", + "file-name-is-prefix", + "file-name-is-suffix", + "none", + "paths-are-default-only", + "paths-are-relative-to-exe", + "recurse", +] +_PluginDependencyFlagsValueType: TypeAlias = ( + PluginDependencyFlags + | _PluginDependencyFlagsLiteralType + | tuple[_PluginDependencyFlagsLiteralType, ...] +) + class PluginFlags(GObject.GFlags): BLACKLISTED = 32 CACHED = 16 +_PluginFlagsLiteralType: TypeAlias = Literal[ + "GST_PLUGIN_FLAG_BLACKLISTED", "GST_PLUGIN_FLAG_CACHED", "blacklisted", "cached" +] +_PluginFlagsValueType: TypeAlias = ( + PluginFlags | _PluginFlagsLiteralType | tuple[_PluginFlagsLiteralType, ...] +) + class QueryTypeFlags(GObject.GFlags): DOWNSTREAM = 2 SERIALIZED = 4 UPSTREAM = 1 +_QueryTypeFlagsLiteralType: TypeAlias = Literal[ + "GST_QUERY_TYPE_DOWNSTREAM", + "GST_QUERY_TYPE_SERIALIZED", + "GST_QUERY_TYPE_UPSTREAM", + "downstream", + "serialized", + "upstream", +] +_QueryTypeFlagsValueType: TypeAlias = ( + QueryTypeFlags | _QueryTypeFlagsLiteralType | tuple[_QueryTypeFlagsLiteralType, ...] +) + class SchedulingFlags(GObject.GFlags): BANDWIDTH_LIMITED = 4 SEEKABLE = 1 SEQUENTIAL = 2 +_SchedulingFlagsLiteralType: TypeAlias = Literal[ + "GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED", + "GST_SCHEDULING_FLAG_SEEKABLE", + "GST_SCHEDULING_FLAG_SEQUENTIAL", + "bandwidth-limited", + "seekable", + "sequential", +] +_SchedulingFlagsValueType: TypeAlias = ( + SchedulingFlags + | _SchedulingFlagsLiteralType + | tuple[_SchedulingFlagsLiteralType, ...] +) + class SeekFlags(GObject.GFlags): ACCURATE = 2 FLUSH = 1 @@ -6753,6 +7499,40 @@ class SeekFlags(GObject.GFlags): TRICKMODE_KEY_UNITS = 128 TRICKMODE_NO_AUDIO = 256 +_SeekFlagsLiteralType: TypeAlias = Literal[ + "GST_SEEK_FLAG_ACCURATE", + "GST_SEEK_FLAG_FLUSH", + "GST_SEEK_FLAG_INSTANT_RATE_CHANGE", + "GST_SEEK_FLAG_KEY_UNIT", + "GST_SEEK_FLAG_NONE", + "GST_SEEK_FLAG_SEGMENT", + "GST_SEEK_FLAG_SKIP", + "GST_SEEK_FLAG_SNAP_AFTER", + "GST_SEEK_FLAG_SNAP_BEFORE", + "GST_SEEK_FLAG_SNAP_NEAREST", + "GST_SEEK_FLAG_TRICKMODE", + "GST_SEEK_FLAG_TRICKMODE_FORWARD_PREDICTED", + "GST_SEEK_FLAG_TRICKMODE_KEY_UNITS", + "GST_SEEK_FLAG_TRICKMODE_NO_AUDIO", + "accurate", + "flush", + "instant-rate-change", + "key-unit", + "none", + "segment", + "skip", + "snap-after", + "snap-before", + "snap-nearest", + "trickmode", + "trickmode-forward-predicted", + "trickmode-key-units", + "trickmode-no-audio", +] +_SeekFlagsValueType: TypeAlias = ( + SeekFlags | _SeekFlagsLiteralType | tuple[_SeekFlagsLiteralType, ...] +) + class SegmentFlags(GObject.GFlags): NONE = 0 RESET = 1 @@ -6763,21 +7543,78 @@ class SegmentFlags(GObject.GFlags): TRICKMODE_KEY_UNITS = 128 TRICKMODE_NO_AUDIO = 256 +_SegmentFlagsLiteralType: TypeAlias = Literal[ + "GST_SEGMENT_FLAG_NONE", + "GST_SEGMENT_FLAG_RESET", + "GST_SEGMENT_FLAG_SEGMENT", + "GST_SEGMENT_FLAG_SKIP", + "GST_SEGMENT_FLAG_TRICKMODE", + "GST_SEGMENT_FLAG_TRICKMODE_FORWARD_PREDICTED", + "GST_SEGMENT_FLAG_TRICKMODE_KEY_UNITS", + "GST_SEGMENT_FLAG_TRICKMODE_NO_AUDIO", + "none", + "reset", + "segment", + "skip", + "trickmode", + "trickmode-forward-predicted", + "trickmode-key-units", + "trickmode-no-audio", +] +_SegmentFlagsValueType: TypeAlias = ( + SegmentFlags | _SegmentFlagsLiteralType | tuple[_SegmentFlagsLiteralType, ...] +) + class SerializeFlags(GObject.GFlags): BACKWARD_COMPAT = 1 NONE = 0 STRICT = 2 +_SerializeFlagsLiteralType: TypeAlias = Literal[ + "GST_SERIALIZE_FLAG_BACKWARD_COMPAT", + "GST_SERIALIZE_FLAG_NONE", + "GST_SERIALIZE_FLAG_STRICT", + "backward-compat", + "none", + "strict", +] +_SerializeFlagsValueType: TypeAlias = ( + SerializeFlags | _SerializeFlagsLiteralType | tuple[_SerializeFlagsLiteralType, ...] +) + class StackTraceFlags(GObject.GFlags): FULL = 1 NONE = 0 +_StackTraceFlagsLiteralType: TypeAlias = Literal[ + "GST_STACK_TRACE_SHOW_FULL", "GST_STACK_TRACE_SHOW_NONE", "full", "none" +] +_StackTraceFlagsValueType: TypeAlias = ( + StackTraceFlags + | _StackTraceFlagsLiteralType + | tuple[_StackTraceFlagsLiteralType, ...] +) + class StreamFlags(GObject.GFlags): NONE = 0 SELECT = 2 SPARSE = 1 UNSELECT = 4 +_StreamFlagsLiteralType: TypeAlias = Literal[ + "GST_STREAM_FLAG_NONE", + "GST_STREAM_FLAG_SELECT", + "GST_STREAM_FLAG_SPARSE", + "GST_STREAM_FLAG_UNSELECT", + "none", + "select", + "sparse", + "unselect", +] +_StreamFlagsValueType: TypeAlias = ( + StreamFlags | _StreamFlagsLiteralType | tuple[_StreamFlagsLiteralType, ...] +) + class StreamType(GObject.GFlags): AUDIO = 2 CONTAINER = 8 @@ -6786,32 +7623,93 @@ class StreamType(GObject.GFlags): UNKNOWN = 1 VIDEO = 4 @staticmethod - def get_name(stype: StreamType) -> str: ... + def get_name(stype: _StreamTypeValueType) -> str: ... + +_StreamTypeLiteralType: TypeAlias = Literal[ + "GST_STREAM_TYPE_AUDIO", + "GST_STREAM_TYPE_CONTAINER", + "GST_STREAM_TYPE_METADATA", + "GST_STREAM_TYPE_TEXT", + "GST_STREAM_TYPE_UNKNOWN", + "GST_STREAM_TYPE_VIDEO", + "audio", + "container", + "metadata", + "text", + "unknown", + "video", +] +_StreamTypeValueType: TypeAlias = ( + StreamType | _StreamTypeLiteralType | tuple[_StreamTypeLiteralType, ...] +) class TracerValueFlags(GObject.GFlags): AGGREGATED = 2 NONE = 0 OPTIONAL = 1 +_TracerValueFlagsLiteralType: TypeAlias = Literal[ + "GST_TRACER_VALUE_FLAGS_AGGREGATED", + "GST_TRACER_VALUE_FLAGS_NONE", + "GST_TRACER_VALUE_FLAGS_OPTIONAL", + "aggregated", + "none", + "optional", +] +_TracerValueFlagsValueType: TypeAlias = ( + TracerValueFlags + | _TracerValueFlagsLiteralType + | tuple[_TracerValueFlagsLiteralType, ...] +) + class BufferingMode(GObject.GEnum): DOWNLOAD = 1 LIVE = 3 STREAM = 0 TIMESHIFT = 2 +_BufferingModeLiteralType: TypeAlias = Literal[ + "GST_BUFFERING_DOWNLOAD", + "GST_BUFFERING_LIVE", + "GST_BUFFERING_STREAM", + "GST_BUFFERING_TIMESHIFT", + "download", + "live", + "stream", + "timeshift", +] +_BufferingModeValueType: TypeAlias = BufferingMode | _BufferingModeLiteralType + class BusSyncReply(GObject.GEnum): ASYNC = 2 DROP = 0 PASS = 1 +_BusSyncReplyLiteralType: TypeAlias = Literal[ + "GST_BUS_ASYNC", "GST_BUS_DROP", "GST_BUS_PASS", "async", "drop", "pass" +] +_BusSyncReplyValueType: TypeAlias = BusSyncReply | _BusSyncReplyLiteralType + class CapsIntersectMode(GObject.GEnum): FIRST = 1 ZIG_ZAG = 0 +_CapsIntersectModeLiteralType: TypeAlias = Literal[ + "GST_CAPS_INTERSECT_FIRST", "GST_CAPS_INTERSECT_ZIG_ZAG", "first", "zig-zag" +] +_CapsIntersectModeValueType: TypeAlias = ( + CapsIntersectMode | _CapsIntersectModeLiteralType +) + class ClockEntryType(GObject.GEnum): PERIODIC = 1 SINGLE = 0 +_ClockEntryTypeLiteralType: TypeAlias = Literal[ + "GST_CLOCK_ENTRY_PERIODIC", "GST_CLOCK_ENTRY_SINGLE", "periodic", "single" +] +_ClockEntryTypeValueType: TypeAlias = ClockEntryType | _ClockEntryTypeLiteralType + class ClockReturn(GObject.GEnum): BADTIME = 4 BUSY = 3 @@ -6822,12 +7720,44 @@ class ClockReturn(GObject.GEnum): UNSCHEDULED = 2 UNSUPPORTED = 6 +_ClockReturnLiteralType: TypeAlias = Literal[ + "GST_CLOCK_BADTIME", + "GST_CLOCK_BUSY", + "GST_CLOCK_DONE", + "GST_CLOCK_EARLY", + "GST_CLOCK_ERROR", + "GST_CLOCK_OK", + "GST_CLOCK_UNSCHEDULED", + "GST_CLOCK_UNSUPPORTED", + "badtime", + "busy", + "done", + "early", + "error", + "ok", + "unscheduled", + "unsupported", +] +_ClockReturnValueType: TypeAlias = ClockReturn | _ClockReturnLiteralType + class ClockType(GObject.GEnum): MONOTONIC = 1 OTHER = 2 REALTIME = 0 TAI = 3 +_ClockTypeLiteralType: TypeAlias = Literal[ + "GST_CLOCK_TYPE_MONOTONIC", + "GST_CLOCK_TYPE_OTHER", + "GST_CLOCK_TYPE_REALTIME", + "GST_CLOCK_TYPE_TAI", + "monotonic", + "other", + "realtime", + "tai", +] +_ClockTypeValueType: TypeAlias = ClockType | _ClockTypeLiteralType + class CoreError(GObject.GEnum): CAPS = 10 CLOCK = 13 @@ -6847,11 +7777,55 @@ class CoreError(GObject.GEnum): @staticmethod def quark() -> int: ... +_CoreErrorLiteralType: TypeAlias = Literal[ + "GST_CORE_ERROR_CAPS", + "GST_CORE_ERROR_CLOCK", + "GST_CORE_ERROR_DISABLED", + "GST_CORE_ERROR_EVENT", + "GST_CORE_ERROR_FAILED", + "GST_CORE_ERROR_MISSING_PLUGIN", + "GST_CORE_ERROR_NEGOTIATION", + "GST_CORE_ERROR_NOT_IMPLEMENTED", + "GST_CORE_ERROR_NUM_ERRORS", + "GST_CORE_ERROR_PAD", + "GST_CORE_ERROR_SEEK", + "GST_CORE_ERROR_STATE_CHANGE", + "GST_CORE_ERROR_TAG", + "GST_CORE_ERROR_THREAD", + "GST_CORE_ERROR_TOO_LAZY", + "caps", + "clock", + "disabled", + "event", + "failed", + "missing-plugin", + "negotiation", + "not-implemented", + "num-errors", + "pad", + "seek", + "state-change", + "tag", + "thread", + "too-lazy", +] +_CoreErrorValueType: TypeAlias = CoreError | _CoreErrorLiteralType + class DebugColorMode(GObject.GEnum): OFF = 0 ON = 1 UNIX = 2 +_DebugColorModeLiteralType: TypeAlias = Literal[ + "GST_DEBUG_COLOR_MODE_OFF", + "GST_DEBUG_COLOR_MODE_ON", + "GST_DEBUG_COLOR_MODE_UNIX", + "off", + "on", + "unix", +] +_DebugColorModeValueType: TypeAlias = DebugColorMode | _DebugColorModeLiteralType + class DebugLevel(GObject.GEnum): COUNT = 10 DEBUG = 5 @@ -6864,7 +7838,31 @@ class DebugLevel(GObject.GEnum): TRACE = 7 WARNING = 2 @staticmethod - def get_name(level: DebugLevel) -> str: ... + def get_name(level: _DebugLevelValueType) -> str: ... + +_DebugLevelLiteralType: TypeAlias = Literal[ + "GST_LEVEL_COUNT", + "GST_LEVEL_DEBUG", + "GST_LEVEL_ERROR", + "GST_LEVEL_FIXME", + "GST_LEVEL_INFO", + "GST_LEVEL_LOG", + "GST_LEVEL_MEMDUMP", + "GST_LEVEL_NONE", + "GST_LEVEL_TRACE", + "GST_LEVEL_WARNING", + "count", + "debug", + "error", + "fixme", + "info", + "log", + "memdump", + "none", + "trace", + "warning", +] +_DebugLevelValueType: TypeAlias = DebugLevel | _DebugLevelLiteralType class EventType(GObject.GEnum): BUFFERSIZE = 23054 @@ -6900,13 +7898,81 @@ class EventType(GObject.GEnum): TOC_SELECT = 64001 UNKNOWN = 0 @staticmethod - def get_flags(type: EventType) -> EventTypeFlags: ... - @staticmethod - def get_name(type: EventType) -> str: ... - @staticmethod - def to_quark(type: EventType) -> int: ... - @staticmethod - def to_sticky_ordering(type: EventType) -> int: ... + def get_flags(type: _EventTypeValueType) -> EventTypeFlags: ... + @staticmethod + def get_name(type: _EventTypeValueType) -> str: ... + @staticmethod + def to_quark(type: _EventTypeValueType) -> int: ... + @staticmethod + def to_sticky_ordering(type: _EventTypeValueType) -> int: ... + +_EventTypeLiteralType: TypeAlias = Literal[ + "GST_EVENT_BUFFERSIZE", + "GST_EVENT_CAPS", + "GST_EVENT_CUSTOM_BOTH", + "GST_EVENT_CUSTOM_BOTH_OOB", + "GST_EVENT_CUSTOM_DOWNSTREAM", + "GST_EVENT_CUSTOM_DOWNSTREAM_OOB", + "GST_EVENT_CUSTOM_DOWNSTREAM_STICKY", + "GST_EVENT_CUSTOM_UPSTREAM", + "GST_EVENT_EOS", + "GST_EVENT_FLUSH_START", + "GST_EVENT_FLUSH_STOP", + "GST_EVENT_GAP", + "GST_EVENT_INSTANT_RATE_CHANGE", + "GST_EVENT_INSTANT_RATE_SYNC_TIME", + "GST_EVENT_LATENCY", + "GST_EVENT_NAVIGATION", + "GST_EVENT_PROTECTION", + "GST_EVENT_QOS", + "GST_EVENT_RECONFIGURE", + "GST_EVENT_SEEK", + "GST_EVENT_SEGMENT", + "GST_EVENT_SEGMENT_DONE", + "GST_EVENT_SELECT_STREAMS", + "GST_EVENT_SINK_MESSAGE", + "GST_EVENT_STEP", + "GST_EVENT_STREAM_COLLECTION", + "GST_EVENT_STREAM_GROUP_DONE", + "GST_EVENT_STREAM_START", + "GST_EVENT_TAG", + "GST_EVENT_TOC", + "GST_EVENT_TOC_SELECT", + "GST_EVENT_UNKNOWN", + "buffersize", + "caps", + "custom-both", + "custom-both-oob", + "custom-downstream", + "custom-downstream-oob", + "custom-downstream-sticky", + "custom-upstream", + "eos", + "flush-start", + "flush-stop", + "gap", + "instant-rate-change", + "instant-rate-sync-time", + "latency", + "navigation", + "protection", + "qos", + "reconfigure", + "seek", + "segment", + "segment-done", + "select-streams", + "sink-message", + "step", + "stream-collection", + "stream-group-done", + "stream-start", + "tag", + "toc", + "toc-select", + "unknown", +] +_EventTypeValueType: TypeAlias = EventType | _EventTypeLiteralType class FlowReturn(GObject.GEnum): CUSTOM_ERROR = -100 @@ -6923,6 +7989,36 @@ class FlowReturn(GObject.GEnum): NOT_SUPPORTED = -6 OK = 0 +_FlowReturnLiteralType: TypeAlias = Literal[ + "GST_FLOW_CUSTOM_ERROR", + "GST_FLOW_CUSTOM_ERROR_1", + "GST_FLOW_CUSTOM_ERROR_2", + "GST_FLOW_CUSTOM_SUCCESS", + "GST_FLOW_CUSTOM_SUCCESS_1", + "GST_FLOW_CUSTOM_SUCCESS_2", + "GST_FLOW_EOS", + "GST_FLOW_ERROR", + "GST_FLOW_FLUSHING", + "GST_FLOW_NOT_LINKED", + "GST_FLOW_NOT_NEGOTIATED", + "GST_FLOW_NOT_SUPPORTED", + "GST_FLOW_OK", + "custom-error", + "custom-error-1", + "custom-error-2", + "custom-success", + "custom-success-1", + "custom-success-2", + "eos", + "error", + "flushing", + "not-linked", + "not-negotiated", + "not-supported", + "ok", +] +_FlowReturnValueType: TypeAlias = FlowReturn | _FlowReturnLiteralType + class Format(GObject.GEnum): BUFFERS = 4 BYTES = 2 @@ -6933,27 +8029,65 @@ class Format(GObject.GEnum): @staticmethod def get_by_nick(nick: str) -> Format: ... @staticmethod - def get_details(format: Format) -> FormatDefinition | None: ... + def get_details(format: _FormatValueType) -> FormatDefinition | None: ... @staticmethod - def get_name(format: Format) -> str | None: ... + def get_name(format: _FormatValueType) -> str | None: ... @staticmethod def iterate_definitions() -> Iterator: ... @staticmethod def register(nick: str, description: str) -> Format: ... @staticmethod - def to_quark(format: Format) -> int: ... + def to_quark(format: _FormatValueType) -> int: ... + +_FormatLiteralType: TypeAlias = Literal[ + "GST_FORMAT_BUFFERS", + "GST_FORMAT_BYTES", + "GST_FORMAT_DEFAULT", + "GST_FORMAT_PERCENT", + "GST_FORMAT_TIME", + "GST_FORMAT_UNDEFINED", + "buffers", + "bytes", + "default", + "percent", + "time", + "undefined", +] +_FormatValueType: TypeAlias = Format | _FormatLiteralType class IteratorItem(GObject.GEnum): END = 2 PASS = 1 SKIP = 0 +_IteratorItemLiteralType: TypeAlias = Literal[ + "GST_ITERATOR_ITEM_END", + "GST_ITERATOR_ITEM_PASS", + "GST_ITERATOR_ITEM_SKIP", + "end", + "pass", + "skip", +] +_IteratorItemValueType: TypeAlias = IteratorItem | _IteratorItemLiteralType + class IteratorResult(GObject.GEnum): DONE = 0 ERROR = 3 OK = 1 RESYNC = 2 +_IteratorResultLiteralType: TypeAlias = Literal[ + "GST_ITERATOR_DONE", + "GST_ITERATOR_ERROR", + "GST_ITERATOR_OK", + "GST_ITERATOR_RESYNC", + "done", + "error", + "ok", + "resync", +] +_IteratorResultValueType: TypeAlias = IteratorResult | _IteratorResultLiteralType + class LibraryError(GObject.GEnum): ENCODE = 6 FAILED = 1 @@ -6965,11 +8099,34 @@ class LibraryError(GObject.GEnum): @staticmethod def quark() -> int: ... +_LibraryErrorLiteralType: TypeAlias = Literal[ + "GST_LIBRARY_ERROR_ENCODE", + "GST_LIBRARY_ERROR_FAILED", + "GST_LIBRARY_ERROR_INIT", + "GST_LIBRARY_ERROR_NUM_ERRORS", + "GST_LIBRARY_ERROR_SETTINGS", + "GST_LIBRARY_ERROR_SHUTDOWN", + "GST_LIBRARY_ERROR_TOO_LAZY", + "encode", + "failed", + "init", + "num-errors", + "settings", + "shutdown", + "too-lazy", +] +_LibraryErrorValueType: TypeAlias = LibraryError | _LibraryErrorLiteralType + class PadDirection(GObject.GEnum): SINK = 2 SRC = 1 UNKNOWN = 0 +_PadDirectionLiteralType: TypeAlias = Literal[ + "GST_PAD_SINK", "GST_PAD_SRC", "GST_PAD_UNKNOWN", "sink", "src", "unknown" +] +_PadDirectionValueType: TypeAlias = PadDirection | _PadDirectionLiteralType + class PadLinkReturn(GObject.GEnum): NOFORMAT = -4 NOSCHED = -5 @@ -6979,18 +8136,56 @@ class PadLinkReturn(GObject.GEnum): WRONG_DIRECTION = -3 WRONG_HIERARCHY = -1 +_PadLinkReturnLiteralType: TypeAlias = Literal[ + "GST_PAD_LINK_NOFORMAT", + "GST_PAD_LINK_NOSCHED", + "GST_PAD_LINK_OK", + "GST_PAD_LINK_REFUSED", + "GST_PAD_LINK_WAS_LINKED", + "GST_PAD_LINK_WRONG_DIRECTION", + "GST_PAD_LINK_WRONG_HIERARCHY", + "noformat", + "nosched", + "ok", + "refused", + "was-linked", + "wrong-direction", + "wrong-hierarchy", +] +_PadLinkReturnValueType: TypeAlias = PadLinkReturn | _PadLinkReturnLiteralType + class PadMode(GObject.GEnum): NONE = 0 PULL = 2 PUSH = 1 @staticmethod - def get_name(mode: PadMode) -> str: ... + def get_name(mode: _PadModeValueType) -> str: ... + +_PadModeLiteralType: TypeAlias = Literal[ + "GST_PAD_MODE_NONE", + "GST_PAD_MODE_PULL", + "GST_PAD_MODE_PUSH", + "none", + "pull", + "push", +] +_PadModeValueType: TypeAlias = PadMode | _PadModeLiteralType class PadPresence(GObject.GEnum): ALWAYS = 0 REQUEST = 2 SOMETIMES = 1 +_PadPresenceLiteralType: TypeAlias = Literal[ + "GST_PAD_ALWAYS", + "GST_PAD_REQUEST", + "GST_PAD_SOMETIMES", + "always", + "request", + "sometimes", +] +_PadPresenceValueType: TypeAlias = PadPresence | _PadPresenceLiteralType + class PadProbeReturn(GObject.GEnum): DROP = 0 HANDLED = 4 @@ -6998,6 +8193,20 @@ class PadProbeReturn(GObject.GEnum): PASS = 3 REMOVE = 2 +_PadProbeReturnLiteralType: TypeAlias = Literal[ + "GST_PAD_PROBE_DROP", + "GST_PAD_PROBE_HANDLED", + "GST_PAD_PROBE_OK", + "GST_PAD_PROBE_PASS", + "GST_PAD_PROBE_REMOVE", + "drop", + "handled", + "ok", + "pass", + "remove", +] +_PadProbeReturnValueType: TypeAlias = PadProbeReturn | _PadProbeReturnLiteralType + class ParseError(GObject.GEnum): COULD_NOT_SET_PROPERTY = 4 DELAYED_LINK = 7 @@ -7010,6 +8219,26 @@ class ParseError(GObject.GEnum): @staticmethod def quark() -> int: ... +_ParseErrorLiteralType: TypeAlias = Literal[ + "GST_PARSE_ERROR_COULD_NOT_SET_PROPERTY", + "GST_PARSE_ERROR_DELAYED_LINK", + "GST_PARSE_ERROR_EMPTY", + "GST_PARSE_ERROR_EMPTY_BIN", + "GST_PARSE_ERROR_LINK", + "GST_PARSE_ERROR_NO_SUCH_ELEMENT", + "GST_PARSE_ERROR_NO_SUCH_PROPERTY", + "GST_PARSE_ERROR_SYNTAX", + "could-not-set-property", + "delayed-link", + "empty", + "empty-bin", + "link", + "no-such-element", + "no-such-property", + "syntax", +] +_ParseErrorValueType: TypeAlias = ParseError | _ParseErrorLiteralType + class PluginError(GObject.GEnum): DEPENDENCIES = 1 MODULE = 0 @@ -7017,6 +8246,16 @@ class PluginError(GObject.GEnum): @staticmethod def quark() -> int: ... +_PluginErrorLiteralType: TypeAlias = Literal[ + "GST_PLUGIN_ERROR_DEPENDENCIES", + "GST_PLUGIN_ERROR_MODULE", + "GST_PLUGIN_ERROR_NAME_MISMATCH", + "dependencies", + "module", + "name-mismatch", +] +_PluginErrorValueType: TypeAlias = PluginError | _PluginErrorLiteralType + class ProgressType(GObject.GEnum): CANCELED = 3 COMPLETE = 2 @@ -7024,17 +8263,53 @@ class ProgressType(GObject.GEnum): ERROR = 4 START = 0 +_ProgressTypeLiteralType: TypeAlias = Literal[ + "GST_PROGRESS_TYPE_CANCELED", + "GST_PROGRESS_TYPE_COMPLETE", + "GST_PROGRESS_TYPE_CONTINUE", + "GST_PROGRESS_TYPE_ERROR", + "GST_PROGRESS_TYPE_START", + "canceled", + "complete", + "continue", + "error", + "start", +] +_ProgressTypeValueType: TypeAlias = ProgressType | _ProgressTypeLiteralType + class PromiseResult(GObject.GEnum): EXPIRED = 3 INTERRUPTED = 1 PENDING = 0 REPLIED = 2 +_PromiseResultLiteralType: TypeAlias = Literal[ + "GST_PROMISE_RESULT_EXPIRED", + "GST_PROMISE_RESULT_INTERRUPTED", + "GST_PROMISE_RESULT_PENDING", + "GST_PROMISE_RESULT_REPLIED", + "expired", + "interrupted", + "pending", + "replied", +] +_PromiseResultValueType: TypeAlias = PromiseResult | _PromiseResultLiteralType + class QOSType(GObject.GEnum): OVERFLOW = 0 THROTTLE = 2 UNDERFLOW = 1 +_QOSTypeLiteralType: TypeAlias = Literal[ + "GST_QOS_TYPE_OVERFLOW", + "GST_QOS_TYPE_THROTTLE", + "GST_QOS_TYPE_UNDERFLOW", + "overflow", + "throttle", + "underflow", +] +_QOSTypeValueType: TypeAlias = QOSType | _QOSTypeLiteralType + class QueryType(GObject.GEnum): ACCEPT_CAPS = 40963 ALLOCATION = 35846 @@ -7058,11 +8333,57 @@ class QueryType(GObject.GEnum): UNKNOWN = 0 URI = 33283 @staticmethod - def get_flags(type: QueryType) -> QueryTypeFlags: ... - @staticmethod - def get_name(type: QueryType) -> str: ... - @staticmethod - def to_quark(type: QueryType) -> int: ... + def get_flags(type: _QueryTypeValueType) -> QueryTypeFlags: ... + @staticmethod + def get_name(type: _QueryTypeValueType) -> str: ... + @staticmethod + def to_quark(type: _QueryTypeValueType) -> int: ... + +_QueryTypeLiteralType: TypeAlias = Literal[ + "GST_QUERY_ACCEPT_CAPS", + "GST_QUERY_ALLOCATION", + "GST_QUERY_BITRATE", + "GST_QUERY_BUFFERING", + "GST_QUERY_CAPS", + "GST_QUERY_CONTEXT", + "GST_QUERY_CONVERT", + "GST_QUERY_CUSTOM", + "GST_QUERY_DRAIN", + "GST_QUERY_DURATION", + "GST_QUERY_FORMATS", + "GST_QUERY_JITTER", + "GST_QUERY_LATENCY", + "GST_QUERY_POSITION", + "GST_QUERY_RATE", + "GST_QUERY_SCHEDULING", + "GST_QUERY_SEEKING", + "GST_QUERY_SEGMENT", + "GST_QUERY_SELECTABLE", + "GST_QUERY_UNKNOWN", + "GST_QUERY_URI", + "accept-caps", + "allocation", + "bitrate", + "buffering", + "caps", + "context", + "convert", + "custom", + "drain", + "duration", + "formats", + "jitter", + "latency", + "position", + "rate", + "scheduling", + "seeking", + "segment", + "selectable", + "unknown", + "uri", +] +_QueryTypeValueType: TypeAlias = QueryType | _QueryTypeLiteralType class Rank(GObject.GEnum): MARGINAL = 64 @@ -7070,6 +8391,18 @@ class Rank(GObject.GEnum): PRIMARY = 256 SECONDARY = 128 +_RankLiteralType: TypeAlias = Literal[ + "GST_RANK_MARGINAL", + "GST_RANK_NONE", + "GST_RANK_PRIMARY", + "GST_RANK_SECONDARY", + "marginal", + "none", + "primary", + "secondary", +] +_RankValueType: TypeAlias = Rank | _RankLiteralType + class ResourceError(GObject.GEnum): BUSY = 4 CLOSE = 8 @@ -7090,16 +8423,67 @@ class ResourceError(GObject.GEnum): @staticmethod def quark() -> int: ... +_ResourceErrorLiteralType: TypeAlias = Literal[ + "GST_RESOURCE_ERROR_BUSY", + "GST_RESOURCE_ERROR_CLOSE", + "GST_RESOURCE_ERROR_FAILED", + "GST_RESOURCE_ERROR_NOT_AUTHORIZED", + "GST_RESOURCE_ERROR_NOT_FOUND", + "GST_RESOURCE_ERROR_NO_SPACE_LEFT", + "GST_RESOURCE_ERROR_NUM_ERRORS", + "GST_RESOURCE_ERROR_OPEN_READ", + "GST_RESOURCE_ERROR_OPEN_READ_WRITE", + "GST_RESOURCE_ERROR_OPEN_WRITE", + "GST_RESOURCE_ERROR_READ", + "GST_RESOURCE_ERROR_SEEK", + "GST_RESOURCE_ERROR_SETTINGS", + "GST_RESOURCE_ERROR_SYNC", + "GST_RESOURCE_ERROR_TOO_LAZY", + "GST_RESOURCE_ERROR_WRITE", + "busy", + "close", + "failed", + "no-space-left", + "not-authorized", + "not-found", + "num-errors", + "open-read", + "open-read-write", + "open-write", + "read", + "seek", + "settings", + "sync", + "too-lazy", + "write", +] +_ResourceErrorValueType: TypeAlias = ResourceError | _ResourceErrorLiteralType + class SearchMode(GObject.GEnum): AFTER = 2 BEFORE = 1 EXACT = 0 +_SearchModeLiteralType: TypeAlias = Literal[ + "GST_SEARCH_MODE_AFTER", + "GST_SEARCH_MODE_BEFORE", + "GST_SEARCH_MODE_EXACT", + "after", + "before", + "exact", +] +_SearchModeValueType: TypeAlias = SearchMode | _SearchModeLiteralType + class SeekType(GObject.GEnum): END = 2 NONE = 0 SET = 1 +_SeekTypeLiteralType: TypeAlias = Literal[ + "GST_SEEK_TYPE_END", "GST_SEEK_TYPE_NONE", "GST_SEEK_TYPE_SET", "end", "none", "set" +] +_SeekTypeValueType: TypeAlias = SeekType | _SeekTypeLiteralType + class State(GObject.GEnum): NULL = 1 PAUSED = 3 @@ -7107,7 +8491,21 @@ class State(GObject.GEnum): READY = 2 VOID_PENDING = 0 @staticmethod - def get_name(state: State) -> str: ... + def get_name(state: _StateValueType) -> str: ... + +_StateLiteralType: TypeAlias = Literal[ + "GST_STATE_NULL", + "GST_STATE_PAUSED", + "GST_STATE_PLAYING", + "GST_STATE_READY", + "GST_STATE_VOID_PENDING", + "null", + "paused", + "playing", + "ready", + "void-pending", +] +_StateValueType: TypeAlias = State | _StateLiteralType class StateChange(GObject.GEnum): NULL_TO_NULL = 9 @@ -7121,7 +8519,31 @@ class StateChange(GObject.GEnum): READY_TO_PAUSED = 19 READY_TO_READY = 18 @staticmethod - def get_name(transition: StateChange) -> str: ... + def get_name(transition: _StateChangeValueType) -> str: ... + +_StateChangeLiteralType: TypeAlias = Literal[ + "GST_STATE_CHANGE_NULL_TO_NULL", + "GST_STATE_CHANGE_NULL_TO_READY", + "GST_STATE_CHANGE_PAUSED_TO_PAUSED", + "GST_STATE_CHANGE_PAUSED_TO_PLAYING", + "GST_STATE_CHANGE_PAUSED_TO_READY", + "GST_STATE_CHANGE_PLAYING_TO_PAUSED", + "GST_STATE_CHANGE_PLAYING_TO_PLAYING", + "GST_STATE_CHANGE_READY_TO_NULL", + "GST_STATE_CHANGE_READY_TO_PAUSED", + "GST_STATE_CHANGE_READY_TO_READY", + "null-to-null", + "null-to-ready", + "paused-to-paused", + "paused-to-playing", + "paused-to-ready", + "playing-to-paused", + "playing-to-playing", + "ready-to-null", + "ready-to-paused", + "ready-to-ready", +] +_StateChangeValueType: TypeAlias = StateChange | _StateChangeLiteralType class StateChangeReturn(GObject.GEnum): ASYNC = 2 @@ -7129,7 +8551,21 @@ class StateChangeReturn(GObject.GEnum): NO_PREROLL = 3 SUCCESS = 1 @staticmethod - def get_name(state_ret: StateChangeReturn) -> str: ... + def get_name(state_ret: _StateChangeReturnValueType) -> str: ... + +_StateChangeReturnLiteralType: TypeAlias = Literal[ + "GST_STATE_CHANGE_ASYNC", + "GST_STATE_CHANGE_FAILURE", + "GST_STATE_CHANGE_NO_PREROLL", + "GST_STATE_CHANGE_SUCCESS", + "async", + "failure", + "no-preroll", + "success", +] +_StateChangeReturnValueType: TypeAlias = ( + StateChangeReturn | _StateChangeReturnLiteralType +) class StreamError(GObject.GEnum): CODEC_NOT_FOUND = 6 @@ -7149,6 +8585,38 @@ class StreamError(GObject.GEnum): @staticmethod def quark() -> int: ... +_StreamErrorLiteralType: TypeAlias = Literal[ + "GST_STREAM_ERROR_CODEC_NOT_FOUND", + "GST_STREAM_ERROR_DECODE", + "GST_STREAM_ERROR_DECRYPT", + "GST_STREAM_ERROR_DECRYPT_NOKEY", + "GST_STREAM_ERROR_DEMUX", + "GST_STREAM_ERROR_ENCODE", + "GST_STREAM_ERROR_FAILED", + "GST_STREAM_ERROR_FORMAT", + "GST_STREAM_ERROR_MUX", + "GST_STREAM_ERROR_NOT_IMPLEMENTED", + "GST_STREAM_ERROR_NUM_ERRORS", + "GST_STREAM_ERROR_TOO_LAZY", + "GST_STREAM_ERROR_TYPE_NOT_FOUND", + "GST_STREAM_ERROR_WRONG_TYPE", + "codec-not-found", + "decode", + "decrypt", + "decrypt-nokey", + "demux", + "encode", + "failed", + "format", + "mux", + "not-implemented", + "num-errors", + "too-lazy", + "type-not-found", + "wrong-type", +] +_StreamErrorValueType: TypeAlias = StreamError | _StreamErrorLiteralType + class StreamStatusType(GObject.GEnum): CREATE = 0 DESTROY = 3 @@ -7158,10 +8626,38 @@ class StreamStatusType(GObject.GEnum): START = 8 STOP = 10 +_StreamStatusTypeLiteralType: TypeAlias = Literal[ + "GST_STREAM_STATUS_TYPE_CREATE", + "GST_STREAM_STATUS_TYPE_DESTROY", + "GST_STREAM_STATUS_TYPE_ENTER", + "GST_STREAM_STATUS_TYPE_LEAVE", + "GST_STREAM_STATUS_TYPE_PAUSE", + "GST_STREAM_STATUS_TYPE_START", + "GST_STREAM_STATUS_TYPE_STOP", + "create", + "destroy", + "enter", + "leave", + "pause", + "start", + "stop", +] +_StreamStatusTypeValueType: TypeAlias = StreamStatusType | _StreamStatusTypeLiteralType + class StructureChangeType(GObject.GEnum): LINK = 0 UNLINK = 1 +_StructureChangeTypeLiteralType: TypeAlias = Literal[ + "GST_STRUCTURE_CHANGE_TYPE_PAD_LINK", + "GST_STRUCTURE_CHANGE_TYPE_PAD_UNLINK", + "link", + "unlink", +] +_StructureChangeTypeValueType: TypeAlias = ( + StructureChangeType | _StructureChangeTypeLiteralType +) + class TagFlag(GObject.GEnum): COUNT = 4 DECODED = 3 @@ -7169,6 +8665,20 @@ class TagFlag(GObject.GEnum): META = 1 UNDEFINED = 0 +_TagFlagLiteralType: TypeAlias = Literal[ + "GST_TAG_FLAG_COUNT", + "GST_TAG_FLAG_DECODED", + "GST_TAG_FLAG_ENCODED", + "GST_TAG_FLAG_META", + "GST_TAG_FLAG_UNDEFINED", + "count", + "decoded", + "encoded", + "meta", + "undefined", +] +_TagFlagValueType: TypeAlias = TagFlag | _TagFlagLiteralType + class TagMergeMode(GObject.GEnum): APPEND = 3 COUNT = 7 @@ -7179,15 +8689,50 @@ class TagMergeMode(GObject.GEnum): REPLACE_ALL = 1 UNDEFINED = 0 +_TagMergeModeLiteralType: TypeAlias = Literal[ + "GST_TAG_MERGE_APPEND", + "GST_TAG_MERGE_COUNT", + "GST_TAG_MERGE_KEEP", + "GST_TAG_MERGE_KEEP_ALL", + "GST_TAG_MERGE_PREPEND", + "GST_TAG_MERGE_REPLACE", + "GST_TAG_MERGE_REPLACE_ALL", + "GST_TAG_MERGE_UNDEFINED", + "append", + "count", + "keep", + "keep-all", + "prepend", + "replace", + "replace-all", + "undefined", +] +_TagMergeModeValueType: TypeAlias = TagMergeMode | _TagMergeModeLiteralType + class TagScope(GObject.GEnum): GLOBAL = 1 STREAM = 0 +_TagScopeLiteralType: TypeAlias = Literal[ + "GST_TAG_SCOPE_GLOBAL", "GST_TAG_SCOPE_STREAM", "global", "stream" +] +_TagScopeValueType: TypeAlias = TagScope | _TagScopeLiteralType + class TaskState(GObject.GEnum): PAUSED = 2 STARTED = 0 STOPPED = 1 +_TaskStateLiteralType: TypeAlias = Literal[ + "GST_TASK_PAUSED", + "GST_TASK_STARTED", + "GST_TASK_STOPPED", + "paused", + "started", + "stopped", +] +_TaskStateValueType: TypeAlias = TaskState | _TaskStateLiteralType + class TocEntryType(GObject.GEnum): ANGLE = -3 CHAPTER = 3 @@ -7197,7 +8742,25 @@ class TocEntryType(GObject.GEnum): TRACK = 2 VERSION = -2 @staticmethod - def get_nick(type: TocEntryType) -> str: ... + def get_nick(type: _TocEntryTypeValueType) -> str: ... + +_TocEntryTypeLiteralType: TypeAlias = Literal[ + "GST_TOC_ENTRY_TYPE_ANGLE", + "GST_TOC_ENTRY_TYPE_CHAPTER", + "GST_TOC_ENTRY_TYPE_EDITION", + "GST_TOC_ENTRY_TYPE_INVALID", + "GST_TOC_ENTRY_TYPE_TITLE", + "GST_TOC_ENTRY_TYPE_TRACK", + "GST_TOC_ENTRY_TYPE_VERSION", + "angle", + "chapter", + "edition", + "invalid", + "title", + "track", + "version", +] +_TocEntryTypeValueType: TypeAlias = TocEntryType | _TocEntryTypeLiteralType class TocLoopType(GObject.GEnum): FORWARD = 1 @@ -7205,16 +8768,45 @@ class TocLoopType(GObject.GEnum): PING_PONG = 3 REVERSE = 2 +_TocLoopTypeLiteralType: TypeAlias = Literal[ + "GST_TOC_LOOP_FORWARD", + "GST_TOC_LOOP_NONE", + "GST_TOC_LOOP_PING_PONG", + "GST_TOC_LOOP_REVERSE", + "forward", + "none", + "ping-pong", + "reverse", +] +_TocLoopTypeValueType: TypeAlias = TocLoopType | _TocLoopTypeLiteralType + class TocScope(GObject.GEnum): CURRENT = 2 GLOBAL = 1 +_TocScopeLiteralType: TypeAlias = Literal[ + "GST_TOC_SCOPE_CURRENT", "GST_TOC_SCOPE_GLOBAL", "current", "global" +] +_TocScopeValueType: TypeAlias = TocScope | _TocScopeLiteralType + class TracerValueScope(GObject.GEnum): ELEMENT = 2 PAD = 3 PROCESS = 0 THREAD = 1 +_TracerValueScopeLiteralType: TypeAlias = Literal[ + "GST_TRACER_VALUE_SCOPE_ELEMENT", + "GST_TRACER_VALUE_SCOPE_PAD", + "GST_TRACER_VALUE_SCOPE_PROCESS", + "GST_TRACER_VALUE_SCOPE_THREAD", + "element", + "pad", + "process", + "thread", +] +_TracerValueScopeValueType: TypeAlias = TracerValueScope | _TracerValueScopeLiteralType + class TypeFindProbability(GObject.GEnum): LIKELY = 80 MAXIMUM = 100 @@ -7223,6 +8815,24 @@ class TypeFindProbability(GObject.GEnum): NONE = 0 POSSIBLE = 50 +_TypeFindProbabilityLiteralType: TypeAlias = Literal[ + "GST_TYPE_FIND_LIKELY", + "GST_TYPE_FIND_MAXIMUM", + "GST_TYPE_FIND_MINIMUM", + "GST_TYPE_FIND_NEARLY_CERTAIN", + "GST_TYPE_FIND_NONE", + "GST_TYPE_FIND_POSSIBLE", + "likely", + "maximum", + "minimum", + "nearly-certain", + "none", + "possible", +] +_TypeFindProbabilityValueType: TypeAlias = ( + TypeFindProbability | _TypeFindProbabilityLiteralType +) + class URIError(GObject.GEnum): BAD_REFERENCE = 3 BAD_STATE = 2 @@ -7231,7 +8841,24 @@ class URIError(GObject.GEnum): @staticmethod def quark() -> int: ... +_URIErrorLiteralType: TypeAlias = Literal[ + "GST_URI_ERROR_BAD_REFERENCE", + "GST_URI_ERROR_BAD_STATE", + "GST_URI_ERROR_BAD_URI", + "GST_URI_ERROR_UNSUPPORTED_PROTOCOL", + "bad-reference", + "bad-state", + "bad-uri", + "unsupported-protocol", +] +_URIErrorValueType: TypeAlias = URIError | _URIErrorLiteralType + class URIType(GObject.GEnum): SINK = 1 SRC = 2 UNKNOWN = 0 + +_URITypeLiteralType: TypeAlias = Literal[ + "GST_URI_SINK", "GST_URI_SRC", "GST_URI_UNKNOWN", "sink", "src", "unknown" +] +_URITypeValueType: TypeAlias = URIType | _URITypeLiteralType diff --git a/src/gi-stubs/repository/GstApp.pyi b/src/gi-stubs/repository/GstApp.pyi index 21d7aaa3..f51fd8c2 100644 --- a/src/gi-stubs/repository/GstApp.pyi +++ b/src/gi-stubs/repository/GstApp.pyi @@ -1,4 +1,6 @@ +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -130,7 +132,10 @@ class AppSink(GstBase.BaseSink, Gst.URIHandler): emit_signals: bool @property def eos(self) -> bool: ... - leaky_type: AppLeakyType + @property + def leaky_type(self) -> AppLeakyType: ... + @leaky_type.setter + def leaky_type(self, value: _AppLeakyTypeValueType) -> None: ... max_buffers: int max_bytes: int max_time: int @@ -152,7 +157,7 @@ class AppSink(GstBase.BaseSink, Gst.URIHandler): caps: Gst.Caps | None = ..., drop: bool = ..., emit_signals: bool = ..., - leaky_type: AppLeakyType = ..., + leaky_type: _AppLeakyTypeValueType = ..., max_buffers: int = ..., max_bytes: int = ..., max_time: int = ..., @@ -199,7 +204,7 @@ class AppSink(GstBase.BaseSink, Gst.URIHandler): def set_caps(self, caps: Gst.Caps | None = None) -> None: ... def set_drop(self, drop: bool) -> None: ... def set_emit_signals(self, emit: bool) -> None: ... - def set_leaky_type(self, leaky: AppLeakyType) -> None: ... + def set_leaky_type(self, leaky: _AppLeakyTypeValueType) -> None: ... def set_max_buffers(self, max: int) -> None: ... def set_max_bytes(self, max: int) -> None: ... def set_max_time(self, max: int) -> None: ... @@ -389,10 +394,16 @@ class AppSrc(GstBase.BaseSrc, Gst.URIHandler): def dropped(self) -> int: ... duration: int emit_signals: bool - format: Gst.Format + @property + def format(self) -> Gst.Format: ... + @format.setter + def format(self, value: Gst._FormatValueType) -> None: ... handle_segment_change: bool is_live: bool - leaky_type: AppLeakyType + @property + def leaky_type(self) -> AppLeakyType: ... + @leaky_type.setter + def leaky_type(self, value: _AppLeakyTypeValueType) -> None: ... max_buffers: int max_bytes: int max_latency: int @@ -403,7 +414,10 @@ class AppSrc(GstBase.BaseSrc, Gst.URIHandler): def out(self) -> int: ... silent: bool size: int - stream_type: AppStreamType + @property + def stream_type(self) -> AppStreamType: ... + @stream_type.setter + def stream_type(self, value: _AppStreamTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -418,10 +432,10 @@ class AppSrc(GstBase.BaseSrc, Gst.URIHandler): caps: Gst.Caps | None = ..., duration: int = ..., emit_signals: bool = ..., - format: Gst.Format = ..., + format: Gst._FormatValueType = ..., handle_segment_change: bool = ..., is_live: bool = ..., - leaky_type: AppLeakyType = ..., + leaky_type: _AppLeakyTypeValueType = ..., max_buffers: int = ..., max_bytes: int = ..., max_latency: int = ..., @@ -430,7 +444,7 @@ class AppSrc(GstBase.BaseSrc, Gst.URIHandler): min_percent: int = ..., silent: bool = ..., size: int = ..., - stream_type: AppStreamType = ..., + stream_type: _AppStreamTypeValueType = ..., automatic_eos: bool = ..., blocksize: int = ..., do_timestamp: bool = ..., @@ -467,13 +481,13 @@ class AppSrc(GstBase.BaseSrc, Gst.URIHandler): def set_duration(self, duration: int) -> None: ... def set_emit_signals(self, emit: bool) -> None: ... def set_latency(self, min: int, max: int) -> None: ... - def set_leaky_type(self, leaky: AppLeakyType) -> None: ... + def set_leaky_type(self, leaky: _AppLeakyTypeValueType) -> None: ... def set_max_buffers(self, max: int) -> None: ... def set_max_bytes(self, max: int) -> None: ... def set_max_time(self, max: int) -> None: ... def set_simple_callbacks(self, cb: AppSrcSimpleCallbacks | None = None) -> None: ... def set_size(self, size: int) -> None: ... - def set_stream_type(self, type: AppStreamType) -> None: ... + def set_stream_type(self, type: _AppStreamTypeValueType) -> None: ... class AppSrcClass(_gi.Struct): """ @@ -538,7 +552,27 @@ class AppLeakyType(GObject.GEnum): NONE = 0 UPSTREAM = 1 +_AppLeakyTypeLiteralType: TypeAlias = Literal[ + "GST_APP_LEAKY_TYPE_DOWNSTREAM", + "GST_APP_LEAKY_TYPE_NONE", + "GST_APP_LEAKY_TYPE_UPSTREAM", + "downstream", + "none", + "upstream", +] +_AppLeakyTypeValueType: TypeAlias = AppLeakyType | _AppLeakyTypeLiteralType + class AppStreamType(GObject.GEnum): RANDOM_ACCESS = 2 SEEKABLE = 1 STREAM = 0 + +_AppStreamTypeLiteralType: TypeAlias = Literal[ + "GST_APP_STREAM_TYPE_RANDOM_ACCESS", + "GST_APP_STREAM_TYPE_SEEKABLE", + "GST_APP_STREAM_TYPE_STREAM", + "random-access", + "seekable", + "stream", +] +_AppStreamTypeValueType: TypeAlias = AppStreamType | _AppStreamTypeLiteralType diff --git a/src/gi-stubs/repository/GstAudio.pyi b/src/gi-stubs/repository/GstAudio.pyi index a42837a5..37449684 100644 --- a/src/gi-stubs/repository/GstAudio.pyi +++ b/src/gi-stubs/repository/GstAudio.pyi @@ -1,7 +1,9 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -69,32 +71,32 @@ def audio_buffer_clip( buffer: Gst.Buffer, segment: Gst.Segment, rate: int, bpf: int ) -> Gst.Buffer | None: ... def audio_buffer_map( - info: AudioInfo, gstbuffer: Gst.Buffer, flags: Gst.MapFlags + info: AudioInfo, gstbuffer: Gst.Buffer, flags: Gst._MapFlagsValueType ) -> tuple[bool, AudioBuffer]: ... def audio_buffer_reorder_channels( buffer: Gst.Buffer, - format: AudioFormat, - from_: Sequence[AudioChannelPosition], - to: Sequence[AudioChannelPosition], + format: _AudioFormatValueType, + from_: Sequence[_AudioChannelPositionValueType], + to: Sequence[_AudioChannelPositionValueType], ) -> bool: ... def audio_buffer_truncate( buffer: Gst.Buffer, bpf: int, trim: int, samples: int ) -> Gst.Buffer: ... def audio_channel_get_fallback_mask(channels: int) -> int: ... def audio_channel_positions_from_mask( - channel_mask: int, position: Sequence[AudioChannelPosition] + channel_mask: int, position: Sequence[_AudioChannelPositionValueType] ) -> bool: ... def audio_channel_positions_to_mask( - position: Sequence[AudioChannelPosition], force_order: bool + position: Sequence[_AudioChannelPositionValueType], force_order: bool ) -> tuple[bool, int]: ... def audio_channel_positions_to_string( - position: Sequence[AudioChannelPosition], + position: Sequence[_AudioChannelPositionValueType], ) -> str: ... def audio_channel_positions_to_valid_order( - position: Sequence[AudioChannelPosition], + position: Sequence[_AudioChannelPositionValueType], ) -> bool: ... def audio_check_valid_channel_positions( - position: Sequence[AudioChannelPosition], force_order: bool + position: Sequence[_AudioChannelPositionValueType], force_order: bool ) -> bool: ... def audio_clipping_meta_api_get_type() -> type[Any]: ... def audio_clipping_meta_get_info() -> Gst.MetaInfo: ... @@ -105,12 +107,12 @@ def audio_format_build_integer( ) -> AudioFormat: ... def audio_format_fill_silence(info: AudioFormatInfo, dest: Sequence[int]) -> None: ... def audio_format_from_string(format: str) -> AudioFormat: ... -def audio_format_get_info(format: AudioFormat) -> AudioFormatInfo: ... -def audio_format_to_string(format: AudioFormat) -> str: ... +def audio_format_get_info(format: _AudioFormatValueType) -> AudioFormatInfo: ... +def audio_format_to_string(format: _AudioFormatValueType) -> str: ... def audio_formats_raw() -> list[AudioFormat]: ... def audio_get_channel_reorder_map( - from_: Sequence[AudioChannelPosition], - to: Sequence[AudioChannelPosition], + from_: Sequence[_AudioChannelPositionValueType], + to: Sequence[_AudioChannelPositionValueType], reorder_map: Sequence[int], ) -> bool: ... def audio_iec61937_frame_size(spec: AudioRingBufferSpec) -> int: ... @@ -122,37 +124,37 @@ def audio_info_init() -> AudioInfo: ... def audio_level_meta_api_get_type() -> type[Any]: ... def audio_level_meta_get_info() -> Gst.MetaInfo: ... def audio_make_raw_caps( - formats: Sequence[AudioFormat] | None, layout: AudioLayout + formats: Sequence[_AudioFormatValueType] | None, layout: _AudioLayoutValueType ) -> Gst.Caps: ... def audio_meta_api_get_type() -> type[Any]: ... def audio_meta_get_info() -> Gst.MetaInfo: ... def audio_reorder_channels( data: Sequence[int], - format: AudioFormat, - from_: Sequence[AudioChannelPosition], - to: Sequence[AudioChannelPosition], + format: _AudioFormatValueType, + from_: Sequence[_AudioChannelPositionValueType], + to: Sequence[_AudioChannelPositionValueType], ) -> bool: ... def audio_reorder_channels_with_reorder_map( data: Sequence[int], bps: int, reorder_map: Sequence[int] ) -> None: ... def audio_resampler_new( - method: AudioResamplerMethod, - flags: AudioResamplerFlags, - format: AudioFormat, + method: _AudioResamplerMethodValueType, + flags: _AudioResamplerFlagsValueType, + format: _AudioFormatValueType, channels: int, in_rate: int, out_rate: int, options: Gst.Structure, ) -> None: ... def audio_resampler_options_set_quality( - method: AudioResamplerMethod, + method: _AudioResamplerMethodValueType, quality: int, in_rate: int, out_rate: int, options: Gst.Structure, ) -> None: ... def buffer_add_audio_clipping_meta( - buffer: Gst.Buffer, format: Gst.Format, start: int, end: int + buffer: Gst.Buffer, format: Gst._FormatValueType, start: int, end: int ) -> AudioClippingMeta: ... def buffer_add_audio_level_meta( buffer: Gst.Buffer, level: int, voice_activity: bool @@ -167,24 +169,24 @@ def buffer_add_dsd_plane_offset_meta( buffer: Gst.Buffer, num_bytes_per_channel: int, offsets: Sequence[int] | None = None ) -> DsdPlaneOffsetMeta: ... def buffer_get_audio_downmix_meta_for_channels( - buffer: Gst.Buffer, to_position: Sequence[AudioChannelPosition] + buffer: Gst.Buffer, to_position: Sequence[_AudioChannelPositionValueType] ) -> AudioDownmixMeta: ... def buffer_get_audio_level_meta(buffer: Gst.Buffer) -> AudioLevelMeta | None: ... def dsd_convert( input_data: Sequence[int], output_data: Sequence[int], - input_format: DsdFormat, - output_format: DsdFormat, - input_layout: AudioLayout, - output_layout: AudioLayout, + input_format: _DsdFormatValueType, + output_format: _DsdFormatValueType, + input_layout: _AudioLayoutValueType, + output_layout: _AudioLayoutValueType, input_plane_offsets: Sequence[int] | None, output_plane_offsets: Sequence[int] | None, num_dsd_bytes: int, reverse_byte_bits: bool, ) -> None: ... def dsd_format_from_string(str: str) -> DsdFormat: ... -def dsd_format_get_width(format: DsdFormat) -> int: ... -def dsd_format_to_string(format: DsdFormat) -> str: ... +def dsd_format_get_width(format: _DsdFormatValueType) -> int: ... +def dsd_format_to_string(format: _DsdFormatValueType) -> str: ... def dsd_info_from_caps(caps: Gst.Caps) -> tuple[bool, DsdInfo]: ... def dsd_info_init() -> DsdInfo: ... def dsd_plane_offset_meta_api_get_type() -> type[Any]: ... @@ -257,7 +259,7 @@ class AudioAggregator(GstBase.Aggregator): def force_live(self) -> bool: ... ignore_inactive_pads: bool output_buffer_duration: int - output_buffer_duration_fraction: Gst.Fraction + output_buffer_duration_fraction: Gst.Fraction | None @property def props(self) -> Props: ... @@ -275,12 +277,12 @@ class AudioAggregator(GstBase.Aggregator): force_live: bool = ..., ignore_inactive_pads: bool = ..., output_buffer_duration: int = ..., - output_buffer_duration_fraction: Gst.Fraction = ..., + output_buffer_duration_fraction: Gst.Fraction | None = ..., emit_signals: bool = ..., latency: int = ..., min_upstream_latency: int = ..., start_time: int = ..., - start_time_selection: GstBase.AggregatorStartTimeSelection = ..., + start_time_selection: GstBase._AggregatorStartTimeSelectionValueType = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -375,7 +377,7 @@ class AudioAggregatorConvertPad(AudioAggregatorPad): """ @type_check_only class Props(AudioAggregatorPad.Props): - converter_config: Gst.Structure + converter_config: Gst.Structure | None @property def props(self) -> Props: ... @@ -386,12 +388,12 @@ class AudioAggregatorConvertPad(AudioAggregatorPad): def __init__( self, *, - converter_config: Gst.Structure = ..., + converter_config: Gst.Structure | None = ..., qos_messages: bool = ..., emit_signals: bool = ..., - direction: Gst.PadDirection = ..., + direction: Gst._PadDirectionValueType = ..., offset: int = ..., - template: Gst.PadTemplate = ..., + template: Gst.PadTemplate | None = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -479,9 +481,9 @@ class AudioAggregatorPad(GstBase.AggregatorPad): *, qos_messages: bool = ..., emit_signals: bool = ..., - direction: Gst.PadDirection = ..., + direction: Gst._PadDirectionValueType = ..., offset: int = ..., - template: Gst.PadTemplate = ..., + template: Gst.PadTemplate | None = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -594,7 +596,10 @@ class AudioBaseSink(GstBase.BaseSink): drift_tolerance: int latency_time: int provide_clock: bool - slave_method: AudioBaseSinkSlaveMethod + @property + def slave_method(self) -> AudioBaseSinkSlaveMethod: ... + @slave_method.setter + def slave_method(self, value: _AudioBaseSinkSlaveMethodValueType) -> None: ... @property def props(self) -> Props: ... @@ -624,7 +629,7 @@ class AudioBaseSink(GstBase.BaseSink): drift_tolerance: int = ..., latency_time: int = ..., provide_clock: bool = ..., - slave_method: AudioBaseSinkSlaveMethod = ..., + slave_method: _AudioBaseSinkSlaveMethodValueType = ..., blocksize: int = ..., enable_last_sample: bool = ..., max_bitrate: int = ..., @@ -651,7 +656,14 @@ class AudioBaseSink(GstBase.BaseSink): def set_custom_slaving_callback( self, callback: Callable[ - [AudioBaseSink, int, int, int, AudioBaseSinkDiscontReason, Unpack[_DataTs]], + [ + AudioBaseSink, + int, + int, + int, + _AudioBaseSinkDiscontReasonValueType, + Unpack[_DataTs], + ], None, ], *user_data: Unpack[_DataTs], @@ -659,7 +671,7 @@ class AudioBaseSink(GstBase.BaseSink): def set_discont_wait(self, discont_wait: int) -> None: ... def set_drift_tolerance(self, drift_tolerance: int) -> None: ... def set_provide_clock(self, provide: bool) -> None: ... - def set_slave_method(self, method: AudioBaseSinkSlaveMethod) -> None: ... + def set_slave_method(self, method: _AudioBaseSinkSlaveMethodValueType) -> None: ... class AudioBaseSinkClass(_gi.Struct): """ @@ -742,7 +754,10 @@ class AudioBaseSrc(GstBase.PushSrc): buffer_time: int latency_time: int provide_clock: bool - slave_method: AudioBaseSrcSlaveMethod + @property + def slave_method(self) -> AudioBaseSrcSlaveMethod: ... + @slave_method.setter + def slave_method(self, value: _AudioBaseSrcSlaveMethodValueType) -> None: ... @property def props(self) -> Props: ... @@ -766,7 +781,7 @@ class AudioBaseSrc(GstBase.PushSrc): buffer_time: int = ..., latency_time: int = ..., provide_clock: bool = ..., - slave_method: AudioBaseSrcSlaveMethod = ..., + slave_method: _AudioBaseSrcSlaveMethodValueType = ..., automatic_eos: bool = ..., blocksize: int = ..., do_timestamp: bool = ..., @@ -780,7 +795,7 @@ class AudioBaseSrc(GstBase.PushSrc): def get_provide_clock(self) -> bool: ... def get_slave_method(self) -> AudioBaseSrcSlaveMethod: ... def set_provide_clock(self, provide: bool) -> None: ... - def set_slave_method(self, method: AudioBaseSrcSlaveMethod) -> None: ... + def set_slave_method(self, method: _AudioBaseSrcSlaveMethodValueType) -> None: ... class AudioBaseSrcClass(_gi.Struct): """ @@ -823,14 +838,14 @@ class AudioBuffer(_gi.Struct): ) -> Gst.Buffer | None: ... @staticmethod def map( - info: AudioInfo, gstbuffer: Gst.Buffer, flags: Gst.MapFlags + info: AudioInfo, gstbuffer: Gst.Buffer, flags: Gst._MapFlagsValueType ) -> tuple[bool, AudioBuffer]: ... @staticmethod def reorder_channels( buffer: Gst.Buffer, - format: AudioFormat, - from_: Sequence[AudioChannelPosition], - to: Sequence[AudioChannelPosition], + format: _AudioFormatValueType, + from_: Sequence[_AudioChannelPositionValueType], + to: Sequence[_AudioChannelPositionValueType], ) -> bool: ... @staticmethod def truncate( @@ -887,8 +902,11 @@ class AudioCdSrc(GstBase.PushSrc, Gst.URIHandler): """ @type_check_only class Props(GstBase.PushSrc.Props): - device: str - mode: AudioCdSrcMode + device: str | None + @property + def mode(self) -> AudioCdSrcMode: ... + @mode.setter + def mode(self, value: _AudioCdSrcModeValueType) -> None: ... track: int @property @@ -902,8 +920,8 @@ class AudioCdSrc(GstBase.PushSrc, Gst.URIHandler): def __init__( self, *, - device: str = ..., - mode: AudioCdSrcMode = ..., + device: str | None = ..., + mode: _AudioCdSrcModeValueType = ..., track: int = ..., automatic_eos: bool = ..., blocksize: int = ..., @@ -1025,7 +1043,7 @@ class AudioClock(Gst.SystemClock): def __init__( self, *, - clock_type: Gst.ClockType = ..., + clock_type: Gst._ClockTypeValueType = ..., timeout: int = ..., window_size: int = ..., window_threshold: int = ..., @@ -1065,13 +1083,13 @@ class AudioConverter(GObject.GBoxed): """ def __init__( self, - flags: AudioConverterFlags, + flags: _AudioConverterFlagsValueType, in_info: AudioInfo, out_info: AudioInfo, config: Gst.Structure | None = None, ) -> None: ... def convert( - self, flags: AudioConverterFlags, in_: Sequence[int] + self, flags: _AudioConverterFlagsValueType, in_: Sequence[int] ) -> tuple[bool, bytes]: ... def free(self) -> None: ... def get_config(self) -> tuple[Gst.Structure, int, int]: ... @@ -1082,7 +1100,7 @@ class AudioConverter(GObject.GBoxed): @classmethod def new( cls, - flags: AudioConverterFlags, + flags: _AudioConverterFlagsValueType, in_info: AudioInfo, out_info: AudioInfo, config: Gst.Structure | None = None, @@ -1199,7 +1217,9 @@ class AudioDecoder(Gst.Element): def get_plc(self) -> bool: ... def get_plc_aware(self) -> int: ... def get_tolerance(self) -> int: ... - def merge_tags(self, tags: Gst.TagList | None, mode: Gst.TagMergeMode) -> None: ... + def merge_tags( + self, tags: Gst.TagList | None, mode: Gst._TagMergeModeValueType + ) -> None: ... def negotiate(self) -> bool: ... def proxy_getcaps( self, caps: Gst.Caps | None = None, filter: Gst.Caps | None = None @@ -1395,7 +1415,9 @@ class AudioEncoder(Gst.Element, Gst.Preset): def get_mark_granule(self) -> bool: ... def get_perfect_timestamp(self) -> bool: ... def get_tolerance(self) -> int: ... - def merge_tags(self, tags: Gst.TagList | None, mode: Gst.TagMergeMode) -> None: ... + def merge_tags( + self, tags: Gst.TagList | None, mode: Gst._TagMergeModeValueType + ) -> None: ... def negotiate(self) -> bool: ... def proxy_getcaps( self, caps: Gst.Caps | None = None, filter: Gst.Caps | None = None @@ -1538,10 +1560,12 @@ class AudioFormatInfo(_gi.Struct): silence: bytes unpack_format: AudioFormat unpack_func: Callable[ - [AudioFormatInfo, AudioPackFlags, Sequence[int], Sequence[int], int], None + [AudioFormatInfo, _AudioPackFlagsValueType, Sequence[int], Sequence[int], int], + None, ] pack_func: Callable[ - [AudioFormatInfo, AudioPackFlags, Sequence[int], Sequence[int], int], None + [AudioFormatInfo, _AudioPackFlagsValueType, Sequence[int], Sequence[int], int], + None, ] def fill_silence(self, dest: Sequence[int]) -> None: ... @@ -1565,7 +1589,10 @@ class AudioInfo(GObject.GBoxed): position: list[AudioChannelPosition] def __init__(self) -> None: ... def convert( - self, src_fmt: Gst.Format, src_val: int, dest_fmt: Gst.Format + self, + src_fmt: Gst._FormatValueType, + src_val: int, + dest_fmt: Gst._FormatValueType, ) -> tuple[bool, int]: ... def copy(self) -> AudioInfo: ... def free(self) -> None: ... @@ -1579,10 +1606,10 @@ class AudioInfo(GObject.GBoxed): def new_from_caps(cls, caps: Gst.Caps) -> AudioInfo | None: ... def set_format( self, - format: AudioFormat, + format: _AudioFormatValueType, rate: int, channels: int, - position: Sequence[AudioChannelPosition] | None = None, + position: Sequence[_AudioChannelPositionValueType] | None = None, ) -> None: ... def to_caps(self) -> Gst.Caps: ... @@ -1630,9 +1657,9 @@ class AudioResampler(_gi.Struct): def get_out_frames(self, in_frames: int) -> int: ... @staticmethod def new( - method: AudioResamplerMethod, - flags: AudioResamplerFlags, - format: AudioFormat, + method: _AudioResamplerMethodValueType, + flags: _AudioResamplerFlagsValueType, + format: _AudioFormatValueType, channels: int, in_rate: int, out_rate: int, @@ -1640,7 +1667,7 @@ class AudioResampler(_gi.Struct): ) -> None: ... @staticmethod def options_set_quality( - method: AudioResamplerMethod, + method: _AudioResamplerMethodValueType, quality: int, in_rate: int, out_rate: int, @@ -1737,7 +1764,10 @@ class AudioRingBuffer(Gst.Object): self, sample: int, data: Sequence[int], out_samples: int, accum: int ) -> tuple[int, int, int]: ... def convert( - self, src_fmt: Gst.Format, src_val: int, dest_fmt: Gst.Format + self, + src_fmt: Gst._FormatValueType, + src_val: int, + dest_fmt: Gst._FormatValueType, ) -> tuple[bool, int]: ... @staticmethod def debug_spec_buff(spec: AudioRingBufferSpec) -> None: ... @@ -1779,7 +1809,7 @@ class AudioRingBuffer(Gst.Object): *user_data: Unpack[_DataTs], ) -> None: ... def set_channel_positions( - self, position: Sequence[AudioChannelPosition] + self, position: Sequence[_AudioChannelPositionValueType] ) -> None: ... def set_errored(self) -> None: ... def set_flushing(self, flushing: bool) -> None: ... @@ -1935,7 +1965,7 @@ class AudioSink(AudioBaseSink): drift_tolerance: int = ..., latency_time: int = ..., provide_clock: bool = ..., - slave_method: AudioBaseSinkSlaveMethod = ..., + slave_method: _AudioBaseSinkSlaveMethodValueType = ..., blocksize: int = ..., enable_last_sample: bool = ..., max_bitrate: int = ..., @@ -2067,7 +2097,7 @@ class AudioSrc(AudioBaseSrc): buffer_time: int = ..., latency_time: int = ..., provide_clock: bool = ..., - slave_method: AudioBaseSrcSlaveMethod = ..., + slave_method: _AudioBaseSrcSlaveMethodValueType = ..., automatic_eos: bool = ..., blocksize: int = ..., do_timestamp: bool = ..., @@ -2171,10 +2201,10 @@ class DsdInfo(GObject.GBoxed): def new_from_caps(cls, caps: Gst.Caps) -> DsdInfo: ... def set_format( self, - format: DsdFormat, + format: _DsdFormatValueType, rate: int, channels: int, - positions: Sequence[AudioChannelPosition] | None = None, + positions: Sequence[_AudioChannelPositionValueType] | None = None, ) -> None: ... def to_caps(self) -> Gst.Caps: ... @@ -2230,15 +2260,54 @@ class AudioChannelMixerFlags(GObject.GFlags): UNPOSITIONED_IN = 4 UNPOSITIONED_OUT = 8 +_AudioChannelMixerFlagsLiteralType: TypeAlias = Literal[ + "GST_AUDIO_CHANNEL_MIXER_FLAGS_NONE", + "GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_IN", + "GST_AUDIO_CHANNEL_MIXER_FLAGS_NON_INTERLEAVED_OUT", + "GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_IN", + "GST_AUDIO_CHANNEL_MIXER_FLAGS_UNPOSITIONED_OUT", + "non-interleaved-in", + "non-interleaved-out", + "none", + "unpositioned-in", + "unpositioned-out", +] +_AudioChannelMixerFlagsValueType: TypeAlias = ( + AudioChannelMixerFlags + | _AudioChannelMixerFlagsLiteralType + | tuple[_AudioChannelMixerFlagsLiteralType, ...] +) + class AudioConverterFlags(GObject.GFlags): IN_WRITABLE = 1 NONE = 0 VARIABLE_RATE = 2 +_AudioConverterFlagsLiteralType: TypeAlias = Literal[ + "GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE", + "GST_AUDIO_CONVERTER_FLAG_NONE", + "GST_AUDIO_CONVERTER_FLAG_VARIABLE_RATE", + "in-writable", + "none", + "variable-rate", +] +_AudioConverterFlagsValueType: TypeAlias = ( + AudioConverterFlags + | _AudioConverterFlagsLiteralType + | tuple[_AudioConverterFlagsLiteralType, ...] +) + class AudioFlags(GObject.GFlags): NONE = 0 UNPOSITIONED = 1 +_AudioFlagsLiteralType: TypeAlias = Literal[ + "GST_AUDIO_FLAG_NONE", "GST_AUDIO_FLAG_UNPOSITIONED", "none", "unpositioned" +] +_AudioFlagsValueType: TypeAlias = ( + AudioFlags | _AudioFlagsLiteralType | tuple[_AudioFlagsLiteralType, ...] +) + class AudioFormatFlags(GObject.GFlags): COMPLEX = 16 FLOAT = 2 @@ -2246,20 +2315,76 @@ class AudioFormatFlags(GObject.GFlags): SIGNED = 4 UNPACK = 32 +_AudioFormatFlagsLiteralType: TypeAlias = Literal[ + "GST_AUDIO_FORMAT_FLAG_COMPLEX", + "GST_AUDIO_FORMAT_FLAG_FLOAT", + "GST_AUDIO_FORMAT_FLAG_INTEGER", + "GST_AUDIO_FORMAT_FLAG_SIGNED", + "GST_AUDIO_FORMAT_FLAG_UNPACK", + "complex", + "float", + "integer", + "signed", + "unpack", +] +_AudioFormatFlagsValueType: TypeAlias = ( + AudioFormatFlags + | _AudioFormatFlagsLiteralType + | tuple[_AudioFormatFlagsLiteralType, ...] +) + class AudioPackFlags(GObject.GFlags): NONE = 0 TRUNCATE_RANGE = 1 +_AudioPackFlagsLiteralType: TypeAlias = Literal[ + "GST_AUDIO_PACK_FLAG_NONE", + "GST_AUDIO_PACK_FLAG_TRUNCATE_RANGE", + "none", + "truncate-range", +] +_AudioPackFlagsValueType: TypeAlias = ( + AudioPackFlags | _AudioPackFlagsLiteralType | tuple[_AudioPackFlagsLiteralType, ...] +) + class AudioQuantizeFlags(GObject.GFlags): NONE = 0 NON_INTERLEAVED = 1 +_AudioQuantizeFlagsLiteralType: TypeAlias = Literal[ + "GST_AUDIO_QUANTIZE_FLAG_NONE", + "GST_AUDIO_QUANTIZE_FLAG_NON_INTERLEAVED", + "non-interleaved", + "none", +] +_AudioQuantizeFlagsValueType: TypeAlias = ( + AudioQuantizeFlags + | _AudioQuantizeFlagsLiteralType + | tuple[_AudioQuantizeFlagsLiteralType, ...] +) + class AudioResamplerFlags(GObject.GFlags): NONE = 0 NON_INTERLEAVED_IN = 1 NON_INTERLEAVED_OUT = 2 VARIABLE_RATE = 4 +_AudioResamplerFlagsLiteralType: TypeAlias = Literal[ + "GST_AUDIO_RESAMPLER_FLAG_NONE", + "GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_IN", + "GST_AUDIO_RESAMPLER_FLAG_NON_INTERLEAVED_OUT", + "GST_AUDIO_RESAMPLER_FLAG_VARIABLE_RATE", + "non-interleaved-in", + "non-interleaved-out", + "none", + "variable-rate", +] +_AudioResamplerFlagsValueType: TypeAlias = ( + AudioResamplerFlags + | _AudioResamplerFlagsLiteralType + | tuple[_AudioResamplerFlagsLiteralType, ...] +) + class AudioBaseSinkDiscontReason(GObject.GEnum): ALIGNMENT = 4 DEVICE_FAILURE = 5 @@ -2268,22 +2393,76 @@ class AudioBaseSinkDiscontReason(GObject.GEnum): NO_DISCONT = 0 SYNC_LATENCY = 3 +_AudioBaseSinkDiscontReasonLiteralType: TypeAlias = Literal[ + "GST_AUDIO_BASE_SINK_DISCONT_REASON_ALIGNMENT", + "GST_AUDIO_BASE_SINK_DISCONT_REASON_DEVICE_FAILURE", + "GST_AUDIO_BASE_SINK_DISCONT_REASON_FLUSH", + "GST_AUDIO_BASE_SINK_DISCONT_REASON_NEW_CAPS", + "GST_AUDIO_BASE_SINK_DISCONT_REASON_NO_DISCONT", + "GST_AUDIO_BASE_SINK_DISCONT_REASON_SYNC_LATENCY", + "alignment", + "device-failure", + "flush", + "new-caps", + "no-discont", + "sync-latency", +] +_AudioBaseSinkDiscontReasonValueType: TypeAlias = ( + AudioBaseSinkDiscontReason | _AudioBaseSinkDiscontReasonLiteralType +) + class AudioBaseSinkSlaveMethod(GObject.GEnum): CUSTOM = 3 NONE = 2 RESAMPLE = 0 SKEW = 1 +_AudioBaseSinkSlaveMethodLiteralType: TypeAlias = Literal[ + "GST_AUDIO_BASE_SINK_SLAVE_CUSTOM", + "GST_AUDIO_BASE_SINK_SLAVE_NONE", + "GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE", + "GST_AUDIO_BASE_SINK_SLAVE_SKEW", + "custom", + "none", + "resample", + "skew", +] +_AudioBaseSinkSlaveMethodValueType: TypeAlias = ( + AudioBaseSinkSlaveMethod | _AudioBaseSinkSlaveMethodLiteralType +) + class AudioBaseSrcSlaveMethod(GObject.GEnum): NONE = 3 RESAMPLE = 0 RE_TIMESTAMP = 1 SKEW = 2 +_AudioBaseSrcSlaveMethodLiteralType: TypeAlias = Literal[ + "GST_AUDIO_BASE_SRC_SLAVE_NONE", + "GST_AUDIO_BASE_SRC_SLAVE_RESAMPLE", + "GST_AUDIO_BASE_SRC_SLAVE_RE_TIMESTAMP", + "GST_AUDIO_BASE_SRC_SLAVE_SKEW", + "none", + "re-timestamp", + "resample", + "skew", +] +_AudioBaseSrcSlaveMethodValueType: TypeAlias = ( + AudioBaseSrcSlaveMethod | _AudioBaseSrcSlaveMethodLiteralType +) + class AudioCdSrcMode(GObject.GEnum): CONTINUOUS = 1 NORMAL = 0 +_AudioCdSrcModeLiteralType: TypeAlias = Literal[ + "GST_AUDIO_CD_SRC_MODE_CONTINUOUS", + "GST_AUDIO_CD_SRC_MODE_NORMAL", + "continuous", + "normal", +] +_AudioCdSrcModeValueType: TypeAlias = AudioCdSrcMode | _AudioCdSrcModeLiteralType + class AudioChannelPosition(GObject.GEnum): BOTTOM_FRONT_CENTER = 21 BOTTOM_FRONT_LEFT = 22 @@ -2319,12 +2498,98 @@ class AudioChannelPosition(GObject.GEnum): WIDE_LEFT = 24 WIDE_RIGHT = 25 +_AudioChannelPositionLiteralType: TypeAlias = Literal[ + "GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_CENTER", + "GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_LEFT", + "GST_AUDIO_CHANNEL_POSITION_BOTTOM_FRONT_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER", + "GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT", + "GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER", + "GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER", + "GST_AUDIO_CHANNEL_POSITION_INVALID", + "GST_AUDIO_CHANNEL_POSITION_LFE1", + "GST_AUDIO_CHANNEL_POSITION_LFE2", + "GST_AUDIO_CHANNEL_POSITION_MONO", + "GST_AUDIO_CHANNEL_POSITION_NONE", + "GST_AUDIO_CHANNEL_POSITION_REAR_CENTER", + "GST_AUDIO_CHANNEL_POSITION_REAR_LEFT", + "GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT", + "GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_SURROUND_LEFT", + "GST_AUDIO_CHANNEL_POSITION_SURROUND_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_TOP_CENTER", + "GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER", + "GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_LEFT", + "GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER", + "GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT", + "GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_LEFT", + "GST_AUDIO_CHANNEL_POSITION_TOP_SIDE_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_LEFT", + "GST_AUDIO_CHANNEL_POSITION_TOP_SURROUND_RIGHT", + "GST_AUDIO_CHANNEL_POSITION_WIDE_LEFT", + "GST_AUDIO_CHANNEL_POSITION_WIDE_RIGHT", + "bottom-front-center", + "bottom-front-left", + "bottom-front-right", + "front-center", + "front-left", + "front-left-of-center", + "front-right", + "front-right-of-center", + "invalid", + "lfe1", + "lfe2", + "mono", + "none", + "rear-center", + "rear-left", + "rear-right", + "side-left", + "side-right", + "surround-left", + "surround-right", + "top-center", + "top-front-center", + "top-front-left", + "top-front-right", + "top-rear-center", + "top-rear-left", + "top-rear-right", + "top-side-left", + "top-side-right", + "top-surround-left", + "top-surround-right", + "wide-left", + "wide-right", +] +_AudioChannelPositionValueType: TypeAlias = ( + AudioChannelPosition | _AudioChannelPositionLiteralType +) + class AudioDitherMethod(GObject.GEnum): NONE = 0 RPDF = 1 TPDF = 2 TPDF_HF = 3 +_AudioDitherMethodLiteralType: TypeAlias = Literal[ + "GST_AUDIO_DITHER_NONE", + "GST_AUDIO_DITHER_RPDF", + "GST_AUDIO_DITHER_TPDF", + "GST_AUDIO_DITHER_TPDF_HF", + "none", + "rpdf", + "tpdf", + "tpdf-hf", +] +_AudioDitherMethodValueType: TypeAlias = ( + AudioDitherMethod | _AudioDitherMethodLiteralType +) + class AudioFormat(GObject.GEnum): ENCODED = 1 F32 = 28 @@ -2387,14 +2652,98 @@ class AudioFormat(GObject.GEnum): @staticmethod def from_string(format: str) -> AudioFormat: ... @staticmethod - def get_info(format: AudioFormat) -> AudioFormatInfo: ... + def get_info(format: _AudioFormatValueType) -> AudioFormatInfo: ... @staticmethod - def to_string(format: AudioFormat) -> str: ... + def to_string(format: _AudioFormatValueType) -> str: ... + +_AudioFormatLiteralType: TypeAlias = Literal[ + "GST_AUDIO_FORMAT_ENCODED", + "GST_AUDIO_FORMAT_F32BE", + "GST_AUDIO_FORMAT_F32LE", + "GST_AUDIO_FORMAT_F64BE", + "GST_AUDIO_FORMAT_F64LE", + "GST_AUDIO_FORMAT_S16BE", + "GST_AUDIO_FORMAT_S16LE", + "GST_AUDIO_FORMAT_S18BE", + "GST_AUDIO_FORMAT_S18LE", + "GST_AUDIO_FORMAT_S20BE", + "GST_AUDIO_FORMAT_S20LE", + "GST_AUDIO_FORMAT_S20_32BE", + "GST_AUDIO_FORMAT_S20_32LE", + "GST_AUDIO_FORMAT_S24BE", + "GST_AUDIO_FORMAT_S24LE", + "GST_AUDIO_FORMAT_S24_32BE", + "GST_AUDIO_FORMAT_S24_32LE", + "GST_AUDIO_FORMAT_S32BE", + "GST_AUDIO_FORMAT_S32LE", + "GST_AUDIO_FORMAT_S8", + "GST_AUDIO_FORMAT_U16BE", + "GST_AUDIO_FORMAT_U16LE", + "GST_AUDIO_FORMAT_U18BE", + "GST_AUDIO_FORMAT_U18LE", + "GST_AUDIO_FORMAT_U20BE", + "GST_AUDIO_FORMAT_U20LE", + "GST_AUDIO_FORMAT_U20_32BE", + "GST_AUDIO_FORMAT_U20_32LE", + "GST_AUDIO_FORMAT_U24BE", + "GST_AUDIO_FORMAT_U24LE", + "GST_AUDIO_FORMAT_U24_32BE", + "GST_AUDIO_FORMAT_U24_32LE", + "GST_AUDIO_FORMAT_U32BE", + "GST_AUDIO_FORMAT_U32LE", + "GST_AUDIO_FORMAT_U8", + "GST_AUDIO_FORMAT_UNKNOWN", + "encoded", + "f32be", + "f32le", + "f64be", + "f64le", + "s16be", + "s16le", + "s18be", + "s18le", + "s20-32be", + "s20-32le", + "s20be", + "s20le", + "s24-32be", + "s24-32le", + "s24be", + "s24le", + "s32be", + "s32le", + "s8", + "u16be", + "u16le", + "u18be", + "u18le", + "u20-32be", + "u20-32le", + "u20be", + "u20le", + "u24-32be", + "u24-32le", + "u24be", + "u24le", + "u32be", + "u32le", + "u8", + "unknown", +] +_AudioFormatValueType: TypeAlias = AudioFormat | _AudioFormatLiteralType class AudioLayout(GObject.GEnum): INTERLEAVED = 0 NON_INTERLEAVED = 1 +_AudioLayoutLiteralType: TypeAlias = Literal[ + "GST_AUDIO_LAYOUT_INTERLEAVED", + "GST_AUDIO_LAYOUT_NON_INTERLEAVED", + "interleaved", + "non-interleaved", +] +_AudioLayoutValueType: TypeAlias = AudioLayout | _AudioLayoutLiteralType + class AudioNoiseShapingMethod(GObject.GEnum): ERROR_FEEDBACK = 1 HIGH = 4 @@ -2402,16 +2751,56 @@ class AudioNoiseShapingMethod(GObject.GEnum): NONE = 0 SIMPLE = 2 +_AudioNoiseShapingMethodLiteralType: TypeAlias = Literal[ + "GST_AUDIO_NOISE_SHAPING_ERROR_FEEDBACK", + "GST_AUDIO_NOISE_SHAPING_HIGH", + "GST_AUDIO_NOISE_SHAPING_MEDIUM", + "GST_AUDIO_NOISE_SHAPING_NONE", + "GST_AUDIO_NOISE_SHAPING_SIMPLE", + "error-feedback", + "high", + "medium", + "none", + "simple", +] +_AudioNoiseShapingMethodValueType: TypeAlias = ( + AudioNoiseShapingMethod | _AudioNoiseShapingMethodLiteralType +) + class AudioResamplerFilterInterpolation(GObject.GEnum): CUBIC = 2 LINEAR = 1 NONE = 0 +_AudioResamplerFilterInterpolationLiteralType: TypeAlias = Literal[ + "GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC", + "GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_LINEAR", + "GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_NONE", + "cubic", + "linear", + "none", +] +_AudioResamplerFilterInterpolationValueType: TypeAlias = ( + AudioResamplerFilterInterpolation | _AudioResamplerFilterInterpolationLiteralType +) + class AudioResamplerFilterMode(GObject.GEnum): AUTO = 2 FULL = 1 INTERPOLATED = 0 +_AudioResamplerFilterModeLiteralType: TypeAlias = Literal[ + "GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO", + "GST_AUDIO_RESAMPLER_FILTER_MODE_FULL", + "GST_AUDIO_RESAMPLER_FILTER_MODE_INTERPOLATED", + "auto", + "full", + "interpolated", +] +_AudioResamplerFilterModeValueType: TypeAlias = ( + AudioResamplerFilterMode | _AudioResamplerFilterModeLiteralType +) + class AudioResamplerMethod(GObject.GEnum): BLACKMAN_NUTTALL = 3 CUBIC = 2 @@ -2419,6 +2808,22 @@ class AudioResamplerMethod(GObject.GEnum): LINEAR = 1 NEAREST = 0 +_AudioResamplerMethodLiteralType: TypeAlias = Literal[ + "GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL", + "GST_AUDIO_RESAMPLER_METHOD_CUBIC", + "GST_AUDIO_RESAMPLER_METHOD_KAISER", + "GST_AUDIO_RESAMPLER_METHOD_LINEAR", + "GST_AUDIO_RESAMPLER_METHOD_NEAREST", + "blackman-nuttall", + "cubic", + "kaiser", + "linear", + "nearest", +] +_AudioResamplerMethodValueType: TypeAlias = ( + AudioResamplerMethod | _AudioResamplerMethodLiteralType +) + class AudioRingBufferFormatType(GObject.GEnum): AC3 = 7 A_LAW = 2 @@ -2437,12 +2842,64 @@ class AudioRingBufferFormatType(GObject.GEnum): MU_LAW = 1 RAW = 0 +_AudioRingBufferFormatTypeLiteralType: TypeAlias = Literal[ + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_AC3", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_A_LAW", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DSD", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_DTS", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_EAC3", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_FLAC", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_GSM", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IEC958", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_IMA_ADPCM", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG2_AAC_RAW", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MPEG4_AAC_RAW", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_MU_LAW", + "GST_AUDIO_RING_BUFFER_FORMAT_TYPE_RAW", + "a-law", + "ac3", + "dsd", + "dts", + "eac3", + "flac", + "gsm", + "iec958", + "ima-adpcm", + "mpeg", + "mpeg2-aac", + "mpeg2-aac-raw", + "mpeg4-aac", + "mpeg4-aac-raw", + "mu-law", + "raw", +] +_AudioRingBufferFormatTypeValueType: TypeAlias = ( + AudioRingBufferFormatType | _AudioRingBufferFormatTypeLiteralType +) + class AudioRingBufferState(GObject.GEnum): ERROR = 3 PAUSED = 1 STARTED = 2 STOPPED = 0 +_AudioRingBufferStateLiteralType: TypeAlias = Literal[ + "GST_AUDIO_RING_BUFFER_STATE_ERROR", + "GST_AUDIO_RING_BUFFER_STATE_PAUSED", + "GST_AUDIO_RING_BUFFER_STATE_STARTED", + "GST_AUDIO_RING_BUFFER_STATE_STOPPED", + "error", + "paused", + "started", + "stopped", +] +_AudioRingBufferStateValueType: TypeAlias = ( + AudioRingBufferState | _AudioRingBufferStateLiteralType +) + class DsdFormat(GObject.GEnum): DSD_FORMAT_U16 = 2 DSD_FORMAT_U16BE = 3 @@ -2456,9 +2913,27 @@ class DsdFormat(GObject.GEnum): @staticmethod def from_string(str: str) -> DsdFormat: ... @staticmethod - def get_width(format: DsdFormat) -> int: ... + def get_width(format: _DsdFormatValueType) -> int: ... @staticmethod - def to_string(format: DsdFormat) -> str: ... + def to_string(format: _DsdFormatValueType) -> str: ... + +_DsdFormatLiteralType: TypeAlias = Literal[ + "GST_DSD_FORMAT_U16BE", + "GST_DSD_FORMAT_U16LE", + "GST_DSD_FORMAT_U32BE", + "GST_DSD_FORMAT_U32LE", + "GST_DSD_FORMAT_U8", + "GST_DSD_FORMAT_UNKNOWN", + "GST_NUM_DSD_FORMATS", + "dsd-format-u16be", + "dsd-format-u16le", + "dsd-format-u32be", + "dsd-format-u32le", + "dsd-format-u8", + "dsd-format-unknown", + "num-dsd-formats", +] +_DsdFormatValueType: TypeAlias = DsdFormat | _DsdFormatLiteralType class StreamVolumeFormat(IntEnum): CUBIC = 1 diff --git a/src/gi-stubs/repository/GstBase.pyi b/src/gi-stubs/repository/GstBase.pyi index 01569923..32667227 100644 --- a/src/gi-stubs/repository/GstBase.pyi +++ b/src/gi-stubs/repository/GstBase.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -163,7 +165,12 @@ class Aggregator(Gst.Element): latency: int min_upstream_latency: int start_time: int - start_time_selection: AggregatorStartTimeSelection + @property + def start_time_selection(self) -> AggregatorStartTimeSelection: ... + @start_time_selection.setter + def start_time_selection( + self, value: _AggregatorStartTimeSelectionValueType + ) -> None: ... @property def props(self) -> Props: ... @@ -180,7 +187,7 @@ class Aggregator(Gst.Element): latency: int = ..., min_upstream_latency: int = ..., start_time: int = ..., - start_time_selection: AggregatorStartTimeSelection = ..., + start_time_selection: _AggregatorStartTimeSelectionValueType = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -217,7 +224,7 @@ class Aggregator(Gst.Element): def do_sink_query_pre_queue( self, aggregator_pad: AggregatorPad, query: Gst.Query ) -> bool: ... - def do_src_activate(self, mode: Gst.PadMode, active: bool) -> bool: ... + def do_src_activate(self, mode: Gst._PadModeValueType, active: bool) -> bool: ... def do_src_event(self, event: Gst.Event) -> bool: ... def do_src_query(self, query: Gst.Query) -> bool: ... def do_start(self) -> bool: ... @@ -272,7 +279,9 @@ class AggregatorClass(_gi.Struct): @property def src_query(self) -> Callable[[Aggregator, Gst.Query], bool]: ... @property - def src_activate(self) -> Callable[[Aggregator, Gst.PadMode, bool], bool]: ... + def src_activate( + self, + ) -> Callable[[Aggregator, Gst._PadModeValueType, bool], bool]: ... @property def aggregate(self) -> Callable[[Aggregator, bool], Gst.FlowReturn]: ... @property @@ -391,9 +400,9 @@ class AggregatorPad(Gst.Pad): self, *, emit_signals: bool = ..., - direction: Gst.PadDirection = ..., + direction: Gst._PadDirectionValueType = ..., offset: int = ..., - template: Gst.PadTemplate = ..., + template: Gst.PadTemplate | None = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -488,13 +497,16 @@ class BaseParse(Gst.Element): ) -> None: ... def add_index_entry(self, offset: int, ts: int, key: bool, force: bool) -> bool: ... def convert_default( - self, src_format: Gst.Format, src_value: int, dest_format: Gst.Format + self, + src_format: Gst._FormatValueType, + src_value: int, + dest_format: Gst._FormatValueType, ) -> tuple[bool, int]: ... def do_convert( self, - src_format: Gst.Format, + src_format: Gst._FormatValueType, src_value: int, - dest_format: Gst.Format, + dest_format: Gst._FormatValueType, dest_value: int, ) -> bool: ... def do_detect(self, buffer: Gst.Buffer) -> Gst.FlowReturn: ... @@ -510,10 +522,14 @@ class BaseParse(Gst.Element): def do_stop(self) -> bool: ... def drain(self) -> None: ... def finish_frame(self, frame: BaseParseFrame, size: int) -> Gst.FlowReturn: ... - def merge_tags(self, tags: Gst.TagList | None, mode: Gst.TagMergeMode) -> None: ... + def merge_tags( + self, tags: Gst.TagList | None, mode: Gst._TagMergeModeValueType + ) -> None: ... def push_frame(self, frame: BaseParseFrame) -> Gst.FlowReturn: ... def set_average_bitrate(self, bitrate: int) -> None: ... - def set_duration(self, fmt: Gst.Format, duration: int, interval: int) -> None: ... + def set_duration( + self, fmt: Gst._FormatValueType, duration: int, interval: int + ) -> None: ... def set_frame_rate( self, fps_num: int, fps_den: int, lead_in: int, lead_out: int ) -> None: ... @@ -553,7 +569,9 @@ class BaseParseClass(_gi.Struct): @property def convert( self, - ) -> Callable[[BaseParse, Gst.Format, int, Gst.Format, int], bool]: ... + ) -> Callable[ + [BaseParse, Gst._FormatValueType, int, Gst._FormatValueType, int], bool + ]: ... @property def sink_event(self) -> Callable[[BaseParse, Gst.Event], bool]: ... @property @@ -960,9 +978,9 @@ class BaseSrc(Gst.Element): def set_caps(self, caps: Gst.Caps) -> bool: ... def set_do_timestamp(self, timestamp: bool) -> None: ... def set_dynamic_size(self, dynamic: bool) -> None: ... - def set_format(self, format: Gst.Format) -> None: ... + def set_format(self, format: Gst._FormatValueType) -> None: ... def set_live(self, live: bool) -> None: ... - def start_complete(self, ret: Gst.FlowReturn) -> None: ... + def start_complete(self, ret: Gst._FlowReturnValueType) -> None: ... def start_wait(self) -> Gst.FlowReturn: ... def submit_buffer_list(self, buffer_list: Gst.BufferList) -> None: ... def wait_playing(self) -> Gst.FlowReturn: ... @@ -1080,7 +1098,9 @@ class BaseTransform(Gst.Element): def __init__( self, *, qos: bool = ..., name: str | None = ..., parent: Gst.Object = ... ) -> None: ... - def do_accept_caps(self, direction: Gst.PadDirection, caps: Gst.Caps) -> bool: ... + def do_accept_caps( + self, direction: Gst._PadDirectionValueType, caps: Gst.Caps + ) -> bool: ... def do_before_transform(self, buffer: Gst.Buffer) -> None: ... def do_copy_metadata(self, input: Gst.Buffer, outbuf: Gst.Buffer) -> bool: ... def do_decide_allocation(self, query: Gst.Query) -> bool: ... @@ -1088,7 +1108,7 @@ class BaseTransform(Gst.Element): self, query: Gst.Query, api: type[Any], params: Gst.Structure ) -> bool: ... def do_fixate_caps( - self, direction: Gst.PadDirection, caps: Gst.Caps, othercaps: Gst.Caps + self, direction: Gst._PadDirectionValueType, caps: Gst.Caps, othercaps: Gst.Caps ) -> Gst.Caps: ... def do_generate_output(self) -> tuple[Gst.FlowReturn, Gst.Buffer]: ... def do_get_unit_size(self, caps: Gst.Caps) -> tuple[bool, int]: ... @@ -1098,7 +1118,9 @@ class BaseTransform(Gst.Element): def do_propose_allocation( self, decide_query: Gst.Query, query: Gst.Query ) -> bool: ... - def do_query(self, direction: Gst.PadDirection, query: Gst.Query) -> bool: ... + def do_query( + self, direction: Gst._PadDirectionValueType, query: Gst.Query + ) -> bool: ... def do_set_caps(self, incaps: Gst.Caps, outcaps: Gst.Caps) -> bool: ... def do_sink_event(self, event: Gst.Event) -> bool: ... def do_src_event(self, event: Gst.Event) -> bool: ... @@ -1109,7 +1131,7 @@ class BaseTransform(Gst.Element): ) -> Gst.FlowReturn: ... def do_transform(self, inbuf: Gst.Buffer, outbuf: Gst.Buffer) -> Gst.FlowReturn: ... def do_transform_caps( - self, direction: Gst.PadDirection, caps: Gst.Caps, filter: Gst.Caps + self, direction: Gst._PadDirectionValueType, caps: Gst.Caps, filter: Gst.Caps ) -> Gst.Caps: ... def do_transform_ip(self, buf: Gst.Buffer) -> Gst.FlowReturn: ... def do_transform_meta( @@ -1117,7 +1139,7 @@ class BaseTransform(Gst.Element): ) -> bool: ... def do_transform_size( self, - direction: Gst.PadDirection, + direction: Gst._PadDirectionValueType, caps: Gst.Caps, size: int, othercaps: Gst.Caps, @@ -1155,19 +1177,25 @@ class BaseTransformClass(_gi.Struct): @property def transform_caps( self, - ) -> Callable[[BaseTransform, Gst.PadDirection, Gst.Caps, Gst.Caps], Gst.Caps]: ... + ) -> Callable[ + [BaseTransform, Gst._PadDirectionValueType, Gst.Caps, Gst.Caps], Gst.Caps + ]: ... @property def fixate_caps( self, - ) -> Callable[[BaseTransform, Gst.PadDirection, Gst.Caps, Gst.Caps], Gst.Caps]: ... + ) -> Callable[ + [BaseTransform, Gst._PadDirectionValueType, Gst.Caps, Gst.Caps], Gst.Caps + ]: ... @property def accept_caps( self, - ) -> Callable[[BaseTransform, Gst.PadDirection, Gst.Caps], bool]: ... + ) -> Callable[[BaseTransform, Gst._PadDirectionValueType, Gst.Caps], bool]: ... @property def set_caps(self) -> Callable[[BaseTransform, Gst.Caps, Gst.Caps], bool]: ... @property - def query(self) -> Callable[[BaseTransform, Gst.PadDirection, Gst.Query], bool]: ... + def query( + self, + ) -> Callable[[BaseTransform, Gst._PadDirectionValueType, Gst.Query], bool]: ... @property def decide_allocation(self) -> Callable[[BaseTransform, Gst.Query], bool]: ... @property @@ -1182,7 +1210,8 @@ class BaseTransformClass(_gi.Struct): def transform_size( self, ) -> Callable[ - [BaseTransform, Gst.PadDirection, Gst.Caps, int, Gst.Caps], tuple[bool, int] + [BaseTransform, Gst._PadDirectionValueType, Gst.Caps, int, Gst.Caps], + tuple[bool, int], ]: ... @property def get_unit_size( @@ -1642,8 +1671,10 @@ class FlowCombiner(GObject.GBoxed): def remove_pad(self, pad: Gst.Pad) -> None: ... def reset(self) -> None: ... def unref(self) -> None: ... - def update_flow(self, fret: Gst.FlowReturn) -> Gst.FlowReturn: ... - def update_pad_flow(self, pad: Gst.Pad, fret: Gst.FlowReturn) -> Gst.FlowReturn: ... + def update_flow(self, fret: Gst._FlowReturnValueType) -> Gst.FlowReturn: ... + def update_pad_flow( + self, pad: Gst.Pad, fret: Gst._FlowReturnValueType + ) -> Gst.FlowReturn: ... class PushSrc(BaseSrc): """ @@ -1753,3 +1784,17 @@ class AggregatorStartTimeSelection(GObject.GEnum): NOW = 3 SET = 2 ZERO = 0 + +_AggregatorStartTimeSelectionLiteralType: TypeAlias = Literal[ + "GST_AGGREGATOR_START_TIME_SELECTION_FIRST", + "GST_AGGREGATOR_START_TIME_SELECTION_NOW", + "GST_AGGREGATOR_START_TIME_SELECTION_SET", + "GST_AGGREGATOR_START_TIME_SELECTION_ZERO", + "first", + "now", + "set", + "zero", +] +_AggregatorStartTimeSelectionValueType: TypeAlias = ( + AggregatorStartTimeSelection | _AggregatorStartTimeSelectionLiteralType +) diff --git a/src/gi-stubs/repository/GstPbutils.pyi b/src/gi-stubs/repository/GstPbutils.pyi index ba9a70fb..236d716b 100644 --- a/src/gi-stubs/repository/GstPbutils.pyi +++ b/src/gi-stubs/repository/GstPbutils.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -104,11 +106,11 @@ def init(): ... # FIXME: Override is missing typing annotation def install_plugins_async( details: Sequence[str], ctx: InstallPluginsContext | None, - func: Callable[[InstallPluginsReturn, Unpack[_DataTs]], None], + func: Callable[[_InstallPluginsReturnValueType, Unpack[_DataTs]], None], *user_data: Unpack[_DataTs], ) -> InstallPluginsReturn: ... def install_plugins_installation_in_progress() -> bool: ... -def install_plugins_return_get_name(ret: InstallPluginsReturn) -> str: ... +def install_plugins_return_get_name(ret: _InstallPluginsReturnValueType) -> str: ... def install_plugins_supported() -> bool: ... def install_plugins_sync( details: Sequence[str], ctx: InstallPluginsContext | None = None @@ -193,7 +195,10 @@ class AudioVisualizer(Gst.Element): @type_check_only class Props(Gst.Element.Props): shade_amount: int - shader: AudioVisualizerShader + @property + def shader(self) -> AudioVisualizerShader: ... + @shader.setter + def shader(self, value: _AudioVisualizerShaderValueType) -> None: ... @property def props(self) -> Props: ... @@ -211,7 +216,7 @@ class AudioVisualizer(Gst.Element): self, *, shade_amount: int = ..., - shader: AudioVisualizerShader = ..., + shader: _AudioVisualizerShaderValueType = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -383,7 +388,7 @@ class DiscovererInfo(GObject.Object): def get_toc(self) -> Gst.Toc | None: ... def get_uri(self) -> str: ... def get_video_streams(self) -> list[DiscovererVideoInfo]: ... - def to_variant(self, flags: DiscovererSerializeFlags) -> GLib.Variant: ... + def to_variant(self, flags: _DiscovererSerializeFlagsValueType) -> GLib.Variant: ... class DiscovererPrivate(_gi.Struct): ... @@ -476,7 +481,7 @@ class EncodingAudioProfile(EncodingProfile): self, *, element_properties: Gst.Structure = ..., - restriction_caps: Gst.Caps = ..., + restriction_caps: Gst.Caps | None = ..., ) -> None: ... @classmethod def new( @@ -513,7 +518,7 @@ class EncodingContainerProfile(EncodingProfile): self, *, element_properties: Gst.Structure = ..., - restriction_caps: Gst.Caps = ..., + restriction_caps: Gst.Caps | None = ..., ) -> None: ... def add_profile(self, profile: EncodingProfile) -> bool: ... def contains_profile(self, profile: EncodingProfile) -> bool: ... @@ -550,8 +555,11 @@ class EncodingProfile(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - element_properties: Gst.Structure | None - restriction_caps: Gst.Caps + @property + def element_properties(self) -> Gst.Structure | None: ... + @element_properties.setter + def element_properties(self, value: Gst.Structure) -> None: ... + restriction_caps: Gst.Caps | None @property def props(self) -> Props: ... @@ -559,7 +567,7 @@ class EncodingProfile(GObject.Object): self, *, element_properties: Gst.Structure = ..., - restriction_caps: Gst.Caps = ..., + restriction_caps: Gst.Caps | None = ..., ) -> None: ... def copy(self) -> EncodingProfile: ... @staticmethod @@ -656,7 +664,7 @@ class EncodingVideoProfile(EncodingProfile): self, *, element_properties: Gst.Structure = ..., - restriction_caps: Gst.Caps = ..., + restriction_caps: Gst.Caps | None = ..., ) -> None: ... def get_pass(self) -> int: ... def get_variableframerate(self) -> bool: ... @@ -698,6 +706,24 @@ class DiscovererSerializeFlags(GObject.GFlags): MISC = 4 TAGS = 2 +_DiscovererSerializeFlagsLiteralType: TypeAlias = Literal[ + "GST_DISCOVERER_SERIALIZE_ALL", + "GST_DISCOVERER_SERIALIZE_BASIC", + "GST_DISCOVERER_SERIALIZE_CAPS", + "GST_DISCOVERER_SERIALIZE_MISC", + "GST_DISCOVERER_SERIALIZE_TAGS", + "all", + "basic", + "caps", + "misc", + "tags", +] +_DiscovererSerializeFlagsValueType: TypeAlias = ( + DiscovererSerializeFlags + | _DiscovererSerializeFlagsLiteralType + | tuple[_DiscovererSerializeFlagsLiteralType, ...] +) + class PbUtilsCapsDescriptionFlags(GObject.GFlags): AUDIO = 2 CONTAINER = 1 @@ -708,6 +734,30 @@ class PbUtilsCapsDescriptionFlags(GObject.GFlags): TAG = 32 VIDEO = 4 +_PbUtilsCapsDescriptionFlagsLiteralType: TypeAlias = Literal[ + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_AUDIO", + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_CONTAINER", + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_GENERIC", + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_IMAGE", + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_METADATA", + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_SUBTITLE", + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_TAG", + "GST_PBUTILS_CAPS_DESCRIPTION_FLAG_VIDEO", + "audio", + "container", + "generic", + "image", + "metadata", + "subtitle", + "tag", + "video", +] +_PbUtilsCapsDescriptionFlagsValueType: TypeAlias = ( + PbUtilsCapsDescriptionFlags + | _PbUtilsCapsDescriptionFlagsLiteralType + | tuple[_PbUtilsCapsDescriptionFlagsLiteralType, ...] +) + class AudioVisualizerShader(GObject.GEnum): FADE = 1 FADE_AND_MOVE_DOWN = 3 @@ -720,6 +770,32 @@ class AudioVisualizerShader(GObject.GEnum): FADE_AND_MOVE_VERT_OUT = 8 NONE = 0 +_AudioVisualizerShaderLiteralType: TypeAlias = Literal[ + "GST_AUDIO_VISUALIZER_SHADER_FADE", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_DOWN", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_IN", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_HORIZ_OUT", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_LEFT", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_RIGHT", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_UP", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_IN", + "GST_AUDIO_VISUALIZER_SHADER_FADE_AND_MOVE_VERT_OUT", + "GST_AUDIO_VISUALIZER_SHADER_NONE", + "fade", + "fade-and-move-down", + "fade-and-move-horiz-in", + "fade-and-move-horiz-out", + "fade-and-move-left", + "fade-and-move-right", + "fade-and-move-up", + "fade-and-move-vert-in", + "fade-and-move-vert-out", + "none", +] +_AudioVisualizerShaderValueType: TypeAlias = ( + AudioVisualizerShader | _AudioVisualizerShaderLiteralType +) + class DiscovererResult(GObject.GEnum): BUSY = 4 ERROR = 2 @@ -728,6 +804,22 @@ class DiscovererResult(GObject.GEnum): TIMEOUT = 3 URI_INVALID = 1 +_DiscovererResultLiteralType: TypeAlias = Literal[ + "GST_DISCOVERER_BUSY", + "GST_DISCOVERER_ERROR", + "GST_DISCOVERER_MISSING_PLUGINS", + "GST_DISCOVERER_OK", + "GST_DISCOVERER_TIMEOUT", + "GST_DISCOVERER_URI_INVALID", + "busy", + "error", + "missing-plugins", + "ok", + "timeout", + "uri-invalid", +] +_DiscovererResultValueType: TypeAlias = DiscovererResult | _DiscovererResultLiteralType + class InstallPluginsReturn(GObject.GEnum): CRASHED = 100 ERROR = 2 @@ -741,4 +833,32 @@ class InstallPluginsReturn(GObject.GEnum): SUCCESS = 0 USER_ABORT = 4 @staticmethod - def get_name(ret: InstallPluginsReturn) -> str: ... + def get_name(ret: _InstallPluginsReturnValueType) -> str: ... + +_InstallPluginsReturnLiteralType: TypeAlias = Literal[ + "GST_INSTALL_PLUGINS_CRASHED", + "GST_INSTALL_PLUGINS_ERROR", + "GST_INSTALL_PLUGINS_HELPER_MISSING", + "GST_INSTALL_PLUGINS_INSTALL_IN_PROGRESS", + "GST_INSTALL_PLUGINS_INTERNAL_FAILURE", + "GST_INSTALL_PLUGINS_INVALID", + "GST_INSTALL_PLUGINS_NOT_FOUND", + "GST_INSTALL_PLUGINS_PARTIAL_SUCCESS", + "GST_INSTALL_PLUGINS_STARTED_OK", + "GST_INSTALL_PLUGINS_SUCCESS", + "GST_INSTALL_PLUGINS_USER_ABORT", + "crashed", + "error", + "helper-missing", + "install-in-progress", + "internal-failure", + "invalid", + "not-found", + "partial-success", + "started-ok", + "success", + "user-abort", +] +_InstallPluginsReturnValueType: TypeAlias = ( + InstallPluginsReturn | _InstallPluginsReturnLiteralType +) diff --git a/src/gi-stubs/repository/GstRtp.pyi b/src/gi-stubs/repository/GstRtp.pyi index 098fb6b6..08cf9e79 100644 --- a/src/gi-stubs/repository/GstRtp.pyi +++ b/src/gi-stubs/repository/GstRtp.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import type_check_only +from typing import TypeAlias from collections.abc import Callable from collections.abc import Sequence @@ -69,7 +71,7 @@ def buffer_add_rtp_source_meta( ) -> RTPSourceMeta: ... def buffer_get_rtp_source_meta(buffer: Gst.Buffer) -> RTPSourceMeta | None: ... def rtcp_buffer_map( - buffer: Gst.Buffer, flags: Gst.MapFlags, rtcp: RTCPBuffer + buffer: Gst.Buffer, flags: Gst._MapFlagsValueType, rtcp: RTCPBuffer ) -> bool: ... def rtcp_buffer_new(mtu: int) -> Gst.Buffer: ... def rtcp_buffer_new_copy_data(data: Sequence[int]) -> Gst.Buffer: ... @@ -80,7 +82,7 @@ def rtcp_buffer_validate_data_reduced(data: Sequence[int]) -> bool: ... def rtcp_buffer_validate_reduced(buffer: Gst.Buffer) -> bool: ... def rtcp_ntp_to_unix(ntptime: int) -> int: ... def rtcp_sdes_name_to_type(name: str) -> RTCPSDESType: ... -def rtcp_sdes_type_to_name(type: RTCPSDESType) -> str: ... +def rtcp_sdes_type_to_name(type: _RTCPSDESTypeValueType) -> str: ... def rtcp_unix_to_ntp(unixtime: int) -> int: ... def rtp_buffer_allocate_data( buffer: Gst.Buffer, payload_len: int, pad_len: int, csrc_count: int @@ -99,7 +101,7 @@ def rtp_buffer_get_extension_onebyte_header_from_bytes( bytes: GLib.Bytes, bit_pattern: int, id: int, nth: int ) -> tuple[bool, bytes]: ... def rtp_buffer_map( - buffer: Gst.Buffer, flags: Gst.MapFlags + buffer: Gst.Buffer, flags: Gst._MapFlagsValueType ) -> tuple[bool, RTPBuffer]: ... def rtp_buffer_new_allocate( payload_len: int, pad_len: int, csrc_count: int @@ -131,11 +133,13 @@ class RTCPBuffer(_gi.Struct): """ buffer: Gst.Buffer - def add_packet(self, type: RTCPType, packet: RTCPPacket) -> bool: ... + def add_packet(self, type: _RTCPTypeValueType, packet: RTCPPacket) -> bool: ... def get_first_packet(self, packet: RTCPPacket) -> bool: ... def get_packet_count(self) -> int: ... @staticmethod - def map(buffer: Gst.Buffer, flags: Gst.MapFlags, rtcp: RTCPBuffer) -> bool: ... + def map( + buffer: Gst.Buffer, flags: Gst._MapFlagsValueType, rtcp: RTCPBuffer + ) -> bool: ... @staticmethod def new(mtu: int) -> Gst.Buffer: ... @staticmethod @@ -213,7 +217,7 @@ class RTCPPacket(_gi.Struct): def fb_set_fci_length(self, wordlen: int) -> bool: ... def fb_set_media_ssrc(self, ssrc: int) -> None: ... def fb_set_sender_ssrc(self, ssrc: int) -> None: ... - def fb_set_type(self, type: RTCPFBType) -> None: ... + def fb_set_type(self, type: _RTCPFBTypeValueType) -> None: ... def get_count(self) -> int: ... def get_length(self) -> int: ... def get_padding(self) -> bool: ... @@ -226,12 +230,14 @@ class RTCPPacket(_gi.Struct): def remove(self) -> bool: ... def rr_get_ssrc(self) -> int: ... def rr_set_ssrc(self, ssrc: int) -> None: ... - def sdes_add_entry(self, type: RTCPSDESType, data: Sequence[int]) -> bool: ... + def sdes_add_entry( + self, type: _RTCPSDESTypeValueType, data: Sequence[int] + ) -> bool: ... def sdes_add_item(self, ssrc: int) -> bool: ... - def sdes_copy_entry(self, type: RTCPSDESType) -> tuple[bool, bytes]: ... + def sdes_copy_entry(self, type: _RTCPSDESTypeValueType) -> tuple[bool, bytes]: ... def sdes_first_entry(self) -> bool: ... def sdes_first_item(self) -> bool: ... - def sdes_get_entry(self, type: RTCPSDESType) -> tuple[bool, bytes]: ... + def sdes_get_entry(self, type: _RTCPSDESTypeValueType) -> tuple[bool, bytes]: ... def sdes_get_item_count(self) -> int: ... def sdes_get_ssrc(self) -> int: ... def sdes_next_entry(self) -> bool: ... @@ -479,11 +485,11 @@ class RTPBaseDepayload(Gst.Element): class Props(Gst.Element.Props): auto_header_extension: bool @property - def extensions(self) -> Gst.ValueArray: ... + def extensions(self) -> Gst.ValueArray | None: ... max_reorder: int source_info: bool @property - def stats(self) -> Gst.Structure: ... + def stats(self) -> Gst.Structure | None: ... @property def props(self) -> Props: ... @@ -622,7 +628,7 @@ class RTPBasePayload(Gst.Element): class Props(Gst.Element.Props): auto_header_extension: bool @property - def extensions(self) -> Gst.ValueArray: ... + def extensions(self) -> Gst.ValueArray | None: ... max_ptime: int min_ptime: int mtu: int @@ -637,7 +643,7 @@ class RTPBasePayload(Gst.Element): source_info: bool ssrc: int @property - def stats(self) -> Gst.Structure: ... + def stats(self) -> Gst.Structure | None: ... @property def timestamp(self) -> int: ... timestamp_offset: int @@ -815,7 +821,9 @@ class RTPBuffer(_gi.Struct): def get_timestamp(self) -> int: ... def get_version(self) -> int: ... @staticmethod - def map(buffer: Gst.Buffer, flags: Gst.MapFlags) -> tuple[bool, RTPBuffer]: ... + def map( + buffer: Gst.Buffer, flags: Gst._MapFlagsValueType + ) -> tuple[bool, RTPBuffer]: ... @staticmethod def new_allocate(payload_len: int, pad_len: int, csrc_count: int) -> Gst.Buffer: ... @staticmethod @@ -877,12 +885,12 @@ class RTPHeaderExtension(Gst.Element): def do_get_supported_flags(self) -> RTPHeaderExtensionFlags: ... def do_read( self, - read_flags: RTPHeaderExtensionFlags, + read_flags: _RTPHeaderExtensionFlagsValueType, data: Sequence[int], buffer: Gst.Buffer, ) -> bool: ... def do_set_attributes( - self, direction: RTPHeaderExtensionDirection, attributes: str + self, direction: _RTPHeaderExtensionDirectionValueType, attributes: str ) -> bool: ... def do_set_caps_from_attributes(self, caps: Gst.Caps) -> bool: ... def do_set_non_rtp_sink_caps(self, caps: Gst.Caps) -> bool: ... @@ -890,7 +898,7 @@ class RTPHeaderExtension(Gst.Element): def do_write( self, input_meta: Gst.Buffer, - write_flags: RTPHeaderExtensionFlags, + write_flags: _RTPHeaderExtensionFlagsValueType, output: Gst.Buffer, data: Sequence[int], ) -> int: ... @@ -902,7 +910,7 @@ class RTPHeaderExtension(Gst.Element): def get_uri(self) -> str | None: ... def read( self, - read_flags: RTPHeaderExtensionFlags, + read_flags: _RTPHeaderExtensionFlagsValueType, data: Sequence[int], buffer: Gst.Buffer, ) -> bool: ... @@ -911,7 +919,9 @@ class RTPHeaderExtension(Gst.Element): def set_caps_from_attributes_helper( self, caps: Gst.Caps, attributes: str ) -> bool: ... - def set_direction(self, direction: RTPHeaderExtensionDirection) -> None: ... + def set_direction( + self, direction: _RTPHeaderExtensionDirectionValueType + ) -> None: ... def set_id(self, ext_id: int) -> None: ... def set_non_rtp_sink_caps(self, caps: Gst.Caps) -> bool: ... def set_uri(self, uri: str) -> None: ... @@ -921,7 +931,7 @@ class RTPHeaderExtension(Gst.Element): def write( self, input_meta: Gst.Buffer, - write_flags: RTPHeaderExtensionFlags, + write_flags: _RTPHeaderExtensionFlagsValueType, output: Gst.Buffer, data: Sequence[int], ) -> int: ... @@ -949,7 +959,7 @@ class RTPHeaderExtensionClass(_gi.Struct): [ RTPHeaderExtension, Gst.Buffer, - RTPHeaderExtensionFlags, + _RTPHeaderExtensionFlagsValueType, Gst.Buffer, Sequence[int], int, @@ -960,7 +970,13 @@ class RTPHeaderExtensionClass(_gi.Struct): def read( self, ) -> Callable[ - [RTPHeaderExtension, RTPHeaderExtensionFlags, Sequence[int], int, Gst.Buffer], + [ + RTPHeaderExtension, + _RTPHeaderExtensionFlagsValueType, + Sequence[int], + int, + Gst.Buffer, + ], bool, ]: ... @property @@ -974,7 +990,9 @@ class RTPHeaderExtensionClass(_gi.Struct): @property def set_attributes( self, - ) -> Callable[[RTPHeaderExtension, RTPHeaderExtensionDirection, str], bool]: ... + ) -> Callable[ + [RTPHeaderExtension, _RTPHeaderExtensionDirectionValueType, str], bool + ]: ... @property def set_caps_from_attributes( self, @@ -1026,10 +1044,34 @@ class RTPBufferFlags(GObject.GFlags): REDUNDANT = 2097152 RETRANSMISSION = 1048576 +_RTPBufferFlagsLiteralType: TypeAlias = Literal[ + "GST_RTP_BUFFER_FLAG_LAST", + "GST_RTP_BUFFER_FLAG_REDUNDANT", + "GST_RTP_BUFFER_FLAG_RETRANSMISSION", + "last", + "redundant", + "retransmission", +] +_RTPBufferFlagsValueType: TypeAlias = ( + RTPBufferFlags | _RTPBufferFlagsLiteralType | tuple[_RTPBufferFlagsLiteralType, ...] +) + class RTPBufferMapFlags(GObject.GFlags): LAST = 16777216 SKIP_PADDING = 65536 +_RTPBufferMapFlagsLiteralType: TypeAlias = Literal[ + "GST_RTP_BUFFER_MAP_FLAG_LAST", + "GST_RTP_BUFFER_MAP_FLAG_SKIP_PADDING", + "last", + "skip-padding", +] +_RTPBufferMapFlagsValueType: TypeAlias = ( + RTPBufferMapFlags + | _RTPBufferMapFlagsLiteralType + | tuple[_RTPBufferMapFlagsLiteralType, ...] +) + class RTPHeaderExtensionDirection(GObject.GFlags): INACTIVE = 0 INHERITED = 4 @@ -1037,10 +1079,40 @@ class RTPHeaderExtensionDirection(GObject.GFlags): SENDONLY = 1 SENDRECV = 3 +_RTPHeaderExtensionDirectionLiteralType: TypeAlias = Literal[ + "GST_RTP_HEADER_EXTENSION_DIRECTION_INACTIVE", + "GST_RTP_HEADER_EXTENSION_DIRECTION_INHERITED", + "GST_RTP_HEADER_EXTENSION_DIRECTION_RECVONLY", + "GST_RTP_HEADER_EXTENSION_DIRECTION_SENDONLY", + "GST_RTP_HEADER_EXTENSION_DIRECTION_SENDRECV", + "inactive", + "inherited", + "recvonly", + "sendonly", + "sendrecv", +] +_RTPHeaderExtensionDirectionValueType: TypeAlias = ( + RTPHeaderExtensionDirection + | _RTPHeaderExtensionDirectionLiteralType + | tuple[_RTPHeaderExtensionDirectionLiteralType, ...] +) + class RTPHeaderExtensionFlags(GObject.GFlags): ONE_BYTE = 1 TWO_BYTE = 2 +_RTPHeaderExtensionFlagsLiteralType: TypeAlias = Literal[ + "GST_RTP_HEADER_EXTENSION_ONE_BYTE", + "GST_RTP_HEADER_EXTENSION_TWO_BYTE", + "one-byte", + "two-byte", +] +_RTPHeaderExtensionFlagsValueType: TypeAlias = ( + RTPHeaderExtensionFlags + | _RTPHeaderExtensionFlagsLiteralType + | tuple[_RTPHeaderExtensionFlagsLiteralType, ...] +) + class RTCPFBType(GObject.GEnum): FB_TYPE_INVALID = 0 PSFB_TYPE_AFB = 15 @@ -1057,6 +1129,28 @@ class RTCPFBType(GObject.GEnum): RTPFB_TYPE_TMMBR = 3 RTPFB_TYPE_TWCC = 15 +_RTCPFBTypeLiteralType: TypeAlias = Literal[ + "GST_RTCP_FB_TYPE_INVALID", + "GST_RTCP_PSFB_TYPE_SLI", + "GST_RTCP_PSFB_TYPE_TSTN", + "GST_RTCP_PSFB_TYPE_VBCN", + "GST_RTCP_RTPFB_TYPE_NACK", + "GST_RTCP_RTPFB_TYPE_RTCP_SR_REQ", + "GST_RTCP_RTPFB_TYPE_TMMBN", + "GST_RTCP_RTPFB_TYPE_TMMBR", + "GST_RTCP_RTPFB_TYPE_TWCC", + "fb-type-invalid", + "psfb-type-sli", + "psfb-type-tstn", + "psfb-type-vbcn", + "rtpfb-type-nack", + "rtpfb-type-rtcp-sr-req", + "rtpfb-type-tmmbn", + "rtpfb-type-tmmbr", + "rtpfb-type-twcc", +] +_RTCPFBTypeValueType: TypeAlias = RTCPFBType | _RTCPFBTypeLiteralType + class RTCPSDESType(GObject.GEnum): APSI = 10 CCID = 14 @@ -1076,6 +1170,44 @@ class RTCPSDESType(GObject.GEnum): RTP_STREAM_ID = 12 TOOL = 6 +_RTCPSDESTypeLiteralType: TypeAlias = Literal[ + "GST_RTCP_SDES_APSI", + "GST_RTCP_SDES_CCID", + "GST_RTCP_SDES_CNAME", + "GST_RTCP_SDES_EMAIL", + "GST_RTCP_SDES_END", + "GST_RTCP_SDES_H323_CADDR", + "GST_RTCP_SDES_INVALID", + "GST_RTCP_SDES_LOC", + "GST_RTCP_SDES_MID", + "GST_RTCP_SDES_NAME", + "GST_RTCP_SDES_NOTE", + "GST_RTCP_SDES_PHONE", + "GST_RTCP_SDES_PRIV", + "GST_RTCP_SDES_REPAIRED_RTP_STREAM_ID", + "GST_RTCP_SDES_RGRP", + "GST_RTCP_SDES_RTP_STREAM_ID", + "GST_RTCP_SDES_TOOL", + "apsi", + "ccid", + "cname", + "email", + "end", + "h323-caddr", + "invalid", + "loc", + "mid", + "name", + "note", + "phone", + "priv", + "repaired-rtp-stream-id", + "rgrp", + "rtp-stream-id", + "tool", +] +_RTCPSDESTypeValueType: TypeAlias = RTCPSDESType | _RTCPSDESTypeLiteralType + class RTCPType(GObject.GEnum): APP = 204 BYE = 203 @@ -1087,6 +1219,28 @@ class RTCPType(GObject.GEnum): SR = 200 XR = 207 +_RTCPTypeLiteralType: TypeAlias = Literal[ + "GST_RTCP_TYPE_APP", + "GST_RTCP_TYPE_BYE", + "GST_RTCP_TYPE_INVALID", + "GST_RTCP_TYPE_PSFB", + "GST_RTCP_TYPE_RR", + "GST_RTCP_TYPE_RTPFB", + "GST_RTCP_TYPE_SDES", + "GST_RTCP_TYPE_SR", + "GST_RTCP_TYPE_XR", + "app", + "bye", + "invalid", + "psfb", + "rr", + "rtpfb", + "sdes", + "sr", + "xr", +] +_RTCPTypeValueType: TypeAlias = RTCPType | _RTCPTypeLiteralType + class RTCPXRType(GObject.GEnum): DLRR = 5 DRLE = 2 @@ -1097,6 +1251,26 @@ class RTCPXRType(GObject.GEnum): SSUMM = 6 VOIP_METRICS = 7 +_RTCPXRTypeLiteralType: TypeAlias = Literal[ + "GST_RTCP_XR_TYPE_DLRR", + "GST_RTCP_XR_TYPE_DRLE", + "GST_RTCP_XR_TYPE_INVALID", + "GST_RTCP_XR_TYPE_LRLE", + "GST_RTCP_XR_TYPE_PRT", + "GST_RTCP_XR_TYPE_RRT", + "GST_RTCP_XR_TYPE_SSUMM", + "GST_RTCP_XR_TYPE_VOIP_METRICS", + "dlrr", + "drle", + "invalid", + "lrle", + "prt", + "rrt", + "ssumm", + "voip-metrics", +] +_RTCPXRTypeValueType: TypeAlias = RTCPXRType | _RTCPXRTypeLiteralType + class RTPPayload(GObject.GEnum): CELLB = 25 CN = 13 @@ -1124,9 +1298,77 @@ class RTPPayload(GObject.GEnum): PCMU = 0 QCELP = 12 +_RTPPayloadLiteralType: TypeAlias = Literal[ + "GST_RTP_PAYLOAD_CELLB", + "GST_RTP_PAYLOAD_CN", + "GST_RTP_PAYLOAD_DVI4_11025", + "GST_RTP_PAYLOAD_DVI4_16000", + "GST_RTP_PAYLOAD_DVI4_22050", + "GST_RTP_PAYLOAD_DVI4_8000", + "GST_RTP_PAYLOAD_G721", + "GST_RTP_PAYLOAD_G722", + "GST_RTP_PAYLOAD_G723", + "GST_RTP_PAYLOAD_G728", + "GST_RTP_PAYLOAD_G729", + "GST_RTP_PAYLOAD_GSM", + "GST_RTP_PAYLOAD_H261", + "GST_RTP_PAYLOAD_H263", + "GST_RTP_PAYLOAD_JPEG", + "GST_RTP_PAYLOAD_L16_MONO", + "GST_RTP_PAYLOAD_L16_STEREO", + "GST_RTP_PAYLOAD_LPC", + "GST_RTP_PAYLOAD_MP2T", + "GST_RTP_PAYLOAD_MPA", + "GST_RTP_PAYLOAD_MPV", + "GST_RTP_PAYLOAD_NV", + "GST_RTP_PAYLOAD_PCMA", + "GST_RTP_PAYLOAD_PCMU", + "GST_RTP_PAYLOAD_QCELP", + "cellb", + "cn", + "dvi4-11025", + "dvi4-16000", + "dvi4-22050", + "dvi4-8000", + "g721", + "g722", + "g723", + "g728", + "g729", + "gsm", + "h261", + "h263", + "jpeg", + "l16-mono", + "l16-stereo", + "lpc", + "mp2t", + "mpa", + "mpv", + "nv", + "pcma", + "pcmu", + "qcelp", +] +_RTPPayloadValueType: TypeAlias = RTPPayload | _RTPPayloadLiteralType + class RTPProfile(GObject.GEnum): AVP = 1 AVPF = 3 SAVP = 2 SAVPF = 4 UNKNOWN = 0 + +_RTPProfileLiteralType: TypeAlias = Literal[ + "GST_RTP_PROFILE_AVP", + "GST_RTP_PROFILE_AVPF", + "GST_RTP_PROFILE_SAVP", + "GST_RTP_PROFILE_SAVPF", + "GST_RTP_PROFILE_UNKNOWN", + "avp", + "avpf", + "savp", + "savpf", + "unknown", +] +_RTPProfileValueType: TypeAlias = RTPProfile | _RTPProfileLiteralType diff --git a/src/gi-stubs/repository/GstRtsp.pyi b/src/gi-stubs/repository/GstRtsp.pyi index ecba739c..47c5315b 100644 --- a/src/gi-stubs/repository/GstRtsp.pyi +++ b/src/gi-stubs/repository/GstRtsp.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -40,35 +42,41 @@ def rtsp_generate_digest_auth_response( def rtsp_generate_digest_auth_response_from_md5( algorithm: str | None, method: str, md5: str, uri: str, nonce: str ) -> str | None: ... -def rtsp_header_allow_multiple(field: RTSPHeaderField) -> bool: ... -def rtsp_header_as_text(field: RTSPHeaderField) -> str | None: ... +def rtsp_header_allow_multiple(field: _RTSPHeaderFieldValueType) -> bool: ... +def rtsp_header_as_text(field: _RTSPHeaderFieldValueType) -> str | None: ... def rtsp_message_new() -> tuple[RTSPResult, RTSPMessage]: ... def rtsp_message_new_data(channel: int) -> tuple[RTSPResult, RTSPMessage]: ... def rtsp_message_new_request( - method: RTSPMethod, uri: str + method: _RTSPMethodValueType, uri: str ) -> tuple[RTSPResult, RTSPMessage]: ... def rtsp_message_new_response( - code: RTSPStatusCode, reason: str | None = None, request: RTSPMessage | None = None + code: _RTSPStatusCodeValueType, + reason: str | None = None, + request: RTSPMessage | None = None, ) -> tuple[RTSPResult, RTSPMessage]: ... -def rtsp_method_as_text(method: RTSPMethod) -> str | None: ... -def rtsp_options_as_text(options: RTSPMethod) -> str: ... +def rtsp_method_as_text(method: _RTSPMethodValueType) -> str | None: ... +def rtsp_options_as_text(options: _RTSPMethodValueType) -> str: ... def rtsp_options_from_text(options: str) -> RTSPMethod: ... -def rtsp_range_convert_units(range: RTSPTimeRange, unit: RTSPRangeUnit) -> bool: ... +def rtsp_range_convert_units( + range: RTSPTimeRange, unit: _RTSPRangeUnitValueType +) -> bool: ... def rtsp_range_free(range: RTSPTimeRange) -> None: ... def rtsp_range_get_times(range: RTSPTimeRange) -> tuple[bool, int, int]: ... def rtsp_range_parse(rangestr: str) -> tuple[RTSPResult, RTSPTimeRange]: ... def rtsp_range_to_string(range: RTSPTimeRange) -> str: ... -def rtsp_status_as_text(code: RTSPStatusCode) -> str: ... -def rtsp_strresult(result: RTSPResult) -> str: ... +def rtsp_status_as_text(code: _RTSPStatusCodeValueType) -> str: ... +def rtsp_strresult(result: _RTSPResultValueType) -> str: ... def rtsp_transport_get_manager( - trans: RTSPTransMode, option: int + trans: _RTSPTransModeValueType, option: int ) -> tuple[RTSPResult, str | None]: ... -def rtsp_transport_get_mime(trans: RTSPTransMode) -> tuple[RTSPResult, str]: ... +def rtsp_transport_get_mime( + trans: _RTSPTransModeValueType, +) -> tuple[RTSPResult, str]: ... def rtsp_transport_init() -> tuple[RTSPResult, RTSPTransport]: ... def rtsp_transport_new() -> tuple[RTSPResult, RTSPTransport]: ... def rtsp_transport_parse(str: str) -> tuple[RTSPResult, RTSPTransport]: ... def rtsp_url_parse(urlstr: str) -> tuple[RTSPResult, RTSPUrl | None]: ... -def rtsp_version_as_text(version: RTSPVersion) -> str: ... +def rtsp_version_as_text(version: _RTSPVersionValueType) -> str: ... class RTSPAuthCredential(GObject.GBoxed): """ @@ -137,10 +145,10 @@ class RTSPConnection(_gi.Struct): def next_timeout(self, timeout: GLib.TimeVal) -> RTSPResult: ... def next_timeout_usec(self) -> int: ... def poll( - self, events: RTSPEvent, timeout: GLib.TimeVal + self, events: _RTSPEventValueType, timeout: GLib.TimeVal ) -> tuple[RTSPResult, RTSPEvent]: ... def poll_usec( - self, events: RTSPEvent, timeout: int + self, events: _RTSPEventValueType, timeout: int ) -> tuple[RTSPResult, RTSPEvent]: ... def read(self, data: Sequence[int], timeout: GLib.TimeVal) -> RTSPResult: ... def read_usec(self, data: Sequence[int], timeout: int) -> RTSPResult: ... @@ -161,14 +169,16 @@ class RTSPConnection(_gi.Struct): [ Gio.TlsConnection, Gio.TlsCertificate, - Gio.TlsCertificateFlags, + Gio._TlsCertificateFlagsValueType, Unpack[_DataTs], ], bool, ], *user_data: Unpack[_DataTs], ) -> None: ... - def set_auth(self, method: RTSPAuthMethod, user: str, pass_: str) -> RTSPResult: ... + def set_auth( + self, method: _RTSPAuthMethodValueType, user: str, pass_: str + ) -> RTSPResult: ... def set_auth_param(self, param: str, value: str) -> None: ... def set_content_length_limit(self, limit: int) -> None: ... def set_http_mode(self, enable: bool) -> None: ... @@ -181,7 +191,9 @@ class RTSPConnection(_gi.Struct): def set_tls_interaction( self, interaction: Gio.TlsInteraction | None = None ) -> None: ... - def set_tls_validation_flags(self, flags: Gio.TlsCertificateFlags) -> bool: ... + def set_tls_validation_flags( + self, flags: Gio._TlsCertificateFlagsValueType + ) -> bool: ... def set_tunneled(self, tunneled: bool) -> None: ... def write(self, data: Sequence[int], timeout: GLib.TimeVal) -> RTSPResult: ... def write_usec(self, data: Sequence[int], timeout: int) -> RTSPResult: ... @@ -195,7 +207,7 @@ class RTSPExtension(GObject.GInterface, Protocol): def configure_stream(self, caps: Gst.Caps) -> bool: ... def detect_server(self, resp: RTSPMessage) -> bool: ... def get_transports( - self, protocols: RTSPLowerTrans, transport: str + self, protocols: _RTSPLowerTransValueType, transport: str ) -> RTSPResult: ... def parse_sdp(self, sdp: GstSdp.SDPMessage, s: Gst.Structure) -> RTSPResult: ... def receive_request(self, req: RTSPMessage) -> RTSPResult: ... @@ -232,7 +244,7 @@ class RTSPExtensionInterface(_gi.Struct): @property def get_transports( self, - ) -> Callable[[RTSPExtension, RTSPLowerTrans, str], RTSPResult]: ... + ) -> Callable[[RTSPExtension, _RTSPLowerTransValueType, str], RTSPResult]: ... @property def stream_select(self) -> Callable[[RTSPExtension, RTSPUrl], RTSPResult]: ... @property @@ -260,7 +272,9 @@ class RTSPMessage(GObject.GBoxed): def body_size(self) -> int: ... @property def body_buffer(self) -> Gst.Buffer: ... - def add_header(self, field: RTSPHeaderField, value: str) -> RTSPResult: ... + def add_header( + self, field: _RTSPHeaderFieldValueType, value: str + ) -> RTSPResult: ... def add_header_by_name(self, header: str, value: str) -> RTSPResult: ... def append_headers(self, str: GLib.String) -> RTSPResult: ... def copy(self) -> tuple[RTSPResult, RTSPMessage | None]: ... @@ -269,7 +283,7 @@ class RTSPMessage(GObject.GBoxed): def get_body(self) -> tuple[RTSPResult, bytes]: ... def get_body_buffer(self) -> tuple[RTSPResult, Gst.Buffer]: ... def get_header( - self, field: RTSPHeaderField, indx: int + self, field: _RTSPHeaderFieldValueType, indx: int ) -> tuple[RTSPResult, str | None]: ... def get_header_by_name( self, header: str, index: int @@ -278,20 +292,22 @@ class RTSPMessage(GObject.GBoxed): def has_body_buffer(self) -> bool: ... def init(self) -> RTSPResult: ... def init_data(self, channel: int) -> RTSPResult: ... - def init_request(self, method: RTSPMethod, uri: str) -> RTSPResult: ... + def init_request(self, method: _RTSPMethodValueType, uri: str) -> RTSPResult: ... def init_response( self, - code: RTSPStatusCode, + code: _RTSPStatusCodeValueType, reason: str | None = None, request: RTSPMessage | None = None, ) -> RTSPResult: ... def parse_auth_credentials( - self, field: RTSPHeaderField + self, field: _RTSPHeaderFieldValueType ) -> list[RTSPAuthCredential]: ... def parse_data(self) -> tuple[RTSPResult, int]: ... def parse_request(self) -> tuple[RTSPResult, RTSPMethod, str, RTSPVersion]: ... def parse_response(self) -> tuple[RTSPResult, RTSPStatusCode, str, RTSPVersion]: ... - def remove_header(self, field: RTSPHeaderField, indx: int) -> RTSPResult: ... + def remove_header( + self, field: _RTSPHeaderFieldValueType, indx: int + ) -> RTSPResult: ... def remove_header_by_name(self, header: str, index: int) -> RTSPResult: ... def set_body(self, data: Sequence[int]) -> RTSPResult: ... def set_body_buffer(self, buffer: Gst.Buffer) -> RTSPResult: ... @@ -299,7 +315,9 @@ class RTSPMessage(GObject.GBoxed): def steal_body_buffer(self) -> tuple[RTSPResult, Gst.Buffer]: ... def take_body(self, data: Sequence[int]) -> RTSPResult: ... def take_body_buffer(self, buffer: Gst.Buffer) -> RTSPResult: ... - def take_header(self, field: RTSPHeaderField, value: str) -> RTSPResult: ... + def take_header( + self, field: _RTSPHeaderFieldValueType, value: str + ) -> RTSPResult: ... def take_header_by_name(self, header: str, value: str) -> RTSPResult: ... def unset(self) -> RTSPResult: ... @@ -315,7 +333,7 @@ class RTSPRange(_gi.Struct): min: int max: int @staticmethod - def convert_units(range: RTSPTimeRange, unit: RTSPRangeUnit) -> bool: ... + def convert_units(range: RTSPTimeRange, unit: _RTSPRangeUnitValueType) -> bool: ... @staticmethod def free(range: RTSPTimeRange) -> None: ... @staticmethod @@ -394,11 +412,11 @@ class RTSPTransport(_gi.Struct): def free(self) -> RTSPResult: ... @staticmethod def get_manager( - trans: RTSPTransMode, option: int + trans: _RTSPTransModeValueType, option: int ) -> tuple[RTSPResult, str | None]: ... def get_media_type(self) -> tuple[RTSPResult, str]: ... @staticmethod - def get_mime(trans: RTSPTransMode) -> tuple[RTSPResult, str]: ... + def get_mime(trans: _RTSPTransModeValueType) -> tuple[RTSPResult, str]: ... @staticmethod def init() -> tuple[RTSPResult, RTSPTransport]: ... @staticmethod @@ -465,7 +483,9 @@ class RTSPWatchFuncs(_gi.Struct): @property def closed(self) -> Callable[[RTSPWatch, Any | None], RTSPResult]: ... @property - def error(self) -> Callable[[RTSPWatch, RTSPResult, Any | None], RTSPResult]: ... + def error( + self, + ) -> Callable[[RTSPWatch, _RTSPResultValueType, Any | None], RTSPResult]: ... @property def tunnel_start(self) -> Callable[[RTSPWatch, Any | None], RTSPStatusCode]: ... @property @@ -474,7 +494,7 @@ class RTSPWatchFuncs(_gi.Struct): def error_full( self, ) -> Callable[ - [RTSPWatch, RTSPResult, RTSPMessage, int, Any | None], RTSPResult + [RTSPWatch, _RTSPResultValueType, RTSPMessage, int, Any | None], RTSPResult ]: ... @property def tunnel_lost(self) -> Callable[[RTSPWatch, Any | None], RTSPResult]: ... @@ -487,6 +507,13 @@ class RTSPEvent(GObject.GFlags): READ = 1 WRITE = 2 +_RTSPEventLiteralType: TypeAlias = Literal[ + "GST_RTSP_EV_READ", "GST_RTSP_EV_WRITE", "read", "write" +] +_RTSPEventValueType: TypeAlias = ( + RTSPEvent | _RTSPEventLiteralType | tuple[_RTSPEventLiteralType, ...] +) + class RTSPLowerTrans(GObject.GFlags): HTTP = 16 TCP = 4 @@ -495,6 +522,24 @@ class RTSPLowerTrans(GObject.GFlags): UDP_MCAST = 2 UNKNOWN = 0 +_RTSPLowerTransLiteralType: TypeAlias = Literal[ + "GST_RTSP_LOWER_TRANS_HTTP", + "GST_RTSP_LOWER_TRANS_TCP", + "GST_RTSP_LOWER_TRANS_TLS", + "GST_RTSP_LOWER_TRANS_UDP", + "GST_RTSP_LOWER_TRANS_UDP_MCAST", + "GST_RTSP_LOWER_TRANS_UNKNOWN", + "http", + "tcp", + "tls", + "udp", + "udp-mcast", + "unknown", +] +_RTSPLowerTransValueType: TypeAlias = ( + RTSPLowerTrans | _RTSPLowerTransLiteralType | tuple[_RTSPLowerTransLiteralType, ...] +) + class RTSPMethod(GObject.GFlags): ANNOUNCE = 2 DESCRIBE = 1 @@ -511,7 +556,41 @@ class RTSPMethod(GObject.GFlags): SET_PARAMETER = 512 TEARDOWN = 1024 @staticmethod - def as_text(method: RTSPMethod) -> str | None: ... + def as_text(method: _RTSPMethodValueType) -> str | None: ... + +_RTSPMethodLiteralType: TypeAlias = Literal[ + "GST_RTSP_ANNOUNCE", + "GST_RTSP_DESCRIBE", + "GST_RTSP_GET", + "GST_RTSP_GET_PARAMETER", + "GST_RTSP_INVALID", + "GST_RTSP_OPTIONS", + "GST_RTSP_PAUSE", + "GST_RTSP_PLAY", + "GST_RTSP_POST", + "GST_RTSP_RECORD", + "GST_RTSP_REDIRECT", + "GST_RTSP_SETUP", + "GST_RTSP_SET_PARAMETER", + "GST_RTSP_TEARDOWN", + "announce", + "describe", + "get", + "get-parameter", + "invalid", + "options", + "pause", + "play", + "post", + "record", + "redirect", + "set-parameter", + "setup", + "teardown", +] +_RTSPMethodValueType: TypeAlias = ( + RTSPMethod | _RTSPMethodLiteralType | tuple[_RTSPMethodLiteralType, ...] +) class RTSPProfile(GObject.GFlags): AVP = 1 @@ -520,21 +599,69 @@ class RTSPProfile(GObject.GFlags): SAVPF = 8 UNKNOWN = 0 +_RTSPProfileLiteralType: TypeAlias = Literal[ + "GST_RTSP_PROFILE_AVP", + "GST_RTSP_PROFILE_AVPF", + "GST_RTSP_PROFILE_SAVP", + "GST_RTSP_PROFILE_SAVPF", + "GST_RTSP_PROFILE_UNKNOWN", + "avp", + "avpf", + "savp", + "savpf", + "unknown", +] +_RTSPProfileValueType: TypeAlias = ( + RTSPProfile | _RTSPProfileLiteralType | tuple[_RTSPProfileLiteralType, ...] +) + class RTSPTransMode(GObject.GFlags): RDT = 2 RTP = 1 UNKNOWN = 0 +_RTSPTransModeLiteralType: TypeAlias = Literal[ + "GST_RTSP_TRANS_RDT", + "GST_RTSP_TRANS_RTP", + "GST_RTSP_TRANS_UNKNOWN", + "rdt", + "rtp", + "unknown", +] +_RTSPTransModeValueType: TypeAlias = ( + RTSPTransMode | _RTSPTransModeLiteralType | tuple[_RTSPTransModeLiteralType, ...] +) + class RTSPAuthMethod(GObject.GEnum): BASIC = 1 DIGEST = 2 NONE = 0 +_RTSPAuthMethodLiteralType: TypeAlias = Literal[ + "GST_RTSP_AUTH_BASIC", + "GST_RTSP_AUTH_DIGEST", + "GST_RTSP_AUTH_NONE", + "basic", + "digest", + "none", +] +_RTSPAuthMethodValueType: TypeAlias = RTSPAuthMethod | _RTSPAuthMethodLiteralType + class RTSPFamily(GObject.GEnum): INET = 1 INET6 = 2 NONE = 0 +_RTSPFamilyLiteralType: TypeAlias = Literal[ + "GST_RTSP_FAM_INET", + "GST_RTSP_FAM_INET6", + "GST_RTSP_FAM_NONE", + "inet", + "inet6", + "none", +] +_RTSPFamilyValueType: TypeAlias = RTSPFamily | _RTSPFamilyLiteralType + class RTSPHeaderField(GObject.GEnum): ACCEPT = 1 ACCEPT_CHARSET = 56 @@ -627,6 +754,190 @@ class RTSPHeaderField(GObject.GEnum): X_SESSIONCOOKIE = 80 X_STARTUPPROFILE = 74 +_RTSPHeaderFieldLiteralType: TypeAlias = Literal[ + "GST_RTSP_HDR_ACCEPT", + "GST_RTSP_HDR_ACCEPT_CHARSET", + "GST_RTSP_HDR_ACCEPT_ENCODING", + "GST_RTSP_HDR_ACCEPT_LANGUAGE", + "GST_RTSP_HDR_ACCEPT_RANGES", + "GST_RTSP_HDR_ALERT", + "GST_RTSP_HDR_ALLOW", + "GST_RTSP_HDR_AUTHENTICATION_INFO", + "GST_RTSP_HDR_AUTHORIZATION", + "GST_RTSP_HDR_BANDWIDTH", + "GST_RTSP_HDR_BLOCKSIZE", + "GST_RTSP_HDR_CACHE_CONTROL", + "GST_RTSP_HDR_CLIENT_CHALLENGE", + "GST_RTSP_HDR_CLIENT_ID", + "GST_RTSP_HDR_COMPANY_ID", + "GST_RTSP_HDR_CONFERENCE", + "GST_RTSP_HDR_CONNECTION", + "GST_RTSP_HDR_CONTENT_BASE", + "GST_RTSP_HDR_CONTENT_ENCODING", + "GST_RTSP_HDR_CONTENT_LANGUAGE", + "GST_RTSP_HDR_CONTENT_LENGTH", + "GST_RTSP_HDR_CONTENT_LOCATION", + "GST_RTSP_HDR_CONTENT_TYPE", + "GST_RTSP_HDR_CSEQ", + "GST_RTSP_HDR_DATE", + "GST_RTSP_HDR_ETAG", + "GST_RTSP_HDR_EXPIRES", + "GST_RTSP_HDR_FRAMES", + "GST_RTSP_HDR_FROM", + "GST_RTSP_HDR_GUID", + "GST_RTSP_HDR_HOST", + "GST_RTSP_HDR_IF_MATCH", + "GST_RTSP_HDR_IF_MODIFIED_SINCE", + "GST_RTSP_HDR_INVALID", + "GST_RTSP_HDR_KEYMGMT", + "GST_RTSP_HDR_LANGUAGE", + "GST_RTSP_HDR_LAST", + "GST_RTSP_HDR_LAST_MODIFIED", + "GST_RTSP_HDR_LOCATION", + "GST_RTSP_HDR_MAX_ASM_WIDTH", + "GST_RTSP_HDR_MEDIA_PROPERTIES", + "GST_RTSP_HDR_PIPELINED_REQUESTS", + "GST_RTSP_HDR_PLAYER_START_TIME", + "GST_RTSP_HDR_PRAGMA", + "GST_RTSP_HDR_PROXY_AUTHENTICATE", + "GST_RTSP_HDR_PROXY_REQUIRE", + "GST_RTSP_HDR_PUBLIC", + "GST_RTSP_HDR_RANGE", + "GST_RTSP_HDR_RATE_CONTROL", + "GST_RTSP_HDR_REAL_CHALLENGE1", + "GST_RTSP_HDR_REAL_CHALLENGE2", + "GST_RTSP_HDR_REAL_CHALLENGE3", + "GST_RTSP_HDR_REFERER", + "GST_RTSP_HDR_REGION_DATA", + "GST_RTSP_HDR_REQUIRE", + "GST_RTSP_HDR_RETRY_AFTER", + "GST_RTSP_HDR_RTCP_INTERVAL", + "GST_RTSP_HDR_RTP_INFO", + "GST_RTSP_HDR_SCALE", + "GST_RTSP_HDR_SEEK_STYLE", + "GST_RTSP_HDR_SERVER", + "GST_RTSP_HDR_SESSION", + "GST_RTSP_HDR_SPEED", + "GST_RTSP_HDR_SUBSCRIBE", + "GST_RTSP_HDR_SUPPORTED", + "GST_RTSP_HDR_TIMESTAMP", + "GST_RTSP_HDR_TRANSPORT", + "GST_RTSP_HDR_UNSUPPORTED", + "GST_RTSP_HDR_USER_AGENT", + "GST_RTSP_HDR_VARY", + "GST_RTSP_HDR_VIA", + "GST_RTSP_HDR_WWW_AUTHENTICATE", + "GST_RTSP_HDR_X_ACCELERATE_STREAMING", + "GST_RTSP_HDR_X_ACCEPT_AUTHENT", + "GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT", + "GST_RTSP_HDR_X_BROADCAST_ID", + "GST_RTSP_HDR_X_BURST_STREAMING", + "GST_RTSP_HDR_X_NOTICE", + "GST_RTSP_HDR_X_PLAYER_LAG_TIME", + "GST_RTSP_HDR_X_PLAYLIST", + "GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE", + "GST_RTSP_HDR_X_PLAYLIST_GEN_ID", + "GST_RTSP_HDR_X_PLAYLIST_SEEK_ID", + "GST_RTSP_HDR_X_PROXY_CLIENT_AGENT", + "GST_RTSP_HDR_X_PROXY_CLIENT_VERB", + "GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE", + "GST_RTSP_HDR_X_RTP_INFO", + "GST_RTSP_HDR_X_SERVER_IP_ADDRESS", + "GST_RTSP_HDR_X_SESSIONCOOKIE", + "GST_RTSP_HDR_X_STARTUPPROFILE", + "accept", + "accept-charset", + "accept-encoding", + "accept-language", + "accept-ranges", + "alert", + "allow", + "authentication-info", + "authorization", + "bandwidth", + "blocksize", + "cache-control", + "client-challenge", + "client-id", + "company-id", + "conference", + "connection", + "content-base", + "content-encoding", + "content-language", + "content-length", + "content-location", + "content-type", + "cseq", + "date", + "etag", + "expires", + "frames", + "from", + "guid", + "host", + "if-match", + "if-modified-since", + "invalid", + "keymgmt", + "language", + "last", + "last-modified", + "location", + "max-asm-width", + "media-properties", + "pipelined-requests", + "player-start-time", + "pragma", + "proxy-authenticate", + "proxy-require", + "public", + "range", + "rate-control", + "real-challenge1", + "real-challenge2", + "real-challenge3", + "referer", + "region-data", + "require", + "retry-after", + "rtcp-interval", + "rtp-info", + "scale", + "seek-style", + "server", + "session", + "speed", + "subscribe", + "supported", + "timestamp", + "transport", + "unsupported", + "user-agent", + "vary", + "via", + "www-authenticate", + "x-accelerate-streaming", + "x-accept-authent", + "x-accept-proxy-authent", + "x-broadcast-id", + "x-burst-streaming", + "x-notice", + "x-player-lag-time", + "x-playlist", + "x-playlist-change-notice", + "x-playlist-gen-id", + "x-playlist-seek-id", + "x-proxy-client-agent", + "x-proxy-client-verb", + "x-receding-playlistchange", + "x-rtp-info", + "x-server-ip-address", + "x-sessioncookie", + "x-startupprofile", +] +_RTSPHeaderFieldValueType: TypeAlias = RTSPHeaderField | _RTSPHeaderFieldLiteralType + class RTSPMsgType(GObject.GEnum): DATA = 5 HTTP_REQUEST = 3 @@ -635,6 +946,22 @@ class RTSPMsgType(GObject.GEnum): REQUEST = 1 RESPONSE = 2 +_RTSPMsgTypeLiteralType: TypeAlias = Literal[ + "GST_RTSP_MESSAGE_DATA", + "GST_RTSP_MESSAGE_HTTP_REQUEST", + "GST_RTSP_MESSAGE_HTTP_RESPONSE", + "GST_RTSP_MESSAGE_INVALID", + "GST_RTSP_MESSAGE_REQUEST", + "GST_RTSP_MESSAGE_RESPONSE", + "data", + "http-request", + "http-response", + "invalid", + "request", + "response", +] +_RTSPMsgTypeValueType: TypeAlias = RTSPMsgType | _RTSPMsgTypeLiteralType + class RTSPRangeUnit(GObject.GEnum): CLOCK = 4 NPT = 3 @@ -642,6 +969,20 @@ class RTSPRangeUnit(GObject.GEnum): SMPTE_25 = 2 SMPTE_30_DROP = 1 +_RTSPRangeUnitLiteralType: TypeAlias = Literal[ + "GST_RTSP_RANGE_CLOCK", + "GST_RTSP_RANGE_NPT", + "GST_RTSP_RANGE_SMPTE", + "GST_RTSP_RANGE_SMPTE_25", + "GST_RTSP_RANGE_SMPTE_30_DROP", + "clock", + "npt", + "smpte", + "smpte-25", + "smpte-30-drop", +] +_RTSPRangeUnitValueType: TypeAlias = RTSPRangeUnit | _RTSPRangeUnitLiteralType + class RTSPResult(GObject.GEnum): EEOF = -11 EINTR = -3 @@ -663,6 +1004,48 @@ class RTSPResult(GObject.GEnum): OK = 0 OK_REDIRECT = 1 +_RTSPResultLiteralType: TypeAlias = Literal[ + "GST_RTSP_EEOF", + "GST_RTSP_EINTR", + "GST_RTSP_EINVAL", + "GST_RTSP_ELAST", + "GST_RTSP_ENET", + "GST_RTSP_ENOMEM", + "GST_RTSP_ENOTIMPL", + "GST_RTSP_ENOTIP", + "GST_RTSP_EPARSE", + "GST_RTSP_ERESOLV", + "GST_RTSP_ERROR", + "GST_RTSP_ESYS", + "GST_RTSP_ETGET", + "GST_RTSP_ETIMEOUT", + "GST_RTSP_ETPOST", + "GST_RTSP_EWSASTART", + "GST_RTSP_EWSAVERSION", + "GST_RTSP_OK", + "GST_RTSP_OK_REDIRECT", + "eeof", + "eintr", + "einval", + "elast", + "enet", + "enomem", + "enotimpl", + "enotip", + "eparse", + "eresolv", + "error", + "esys", + "etget", + "etimeout", + "etpost", + "ewsastart", + "ewsaversion", + "ok", + "ok-redirect", +] +_RTSPResultValueType: TypeAlias = RTSPResult | _RTSPResultLiteralType + class RTSPState(GObject.GEnum): INIT = 1 INVALID = 0 @@ -671,6 +1054,22 @@ class RTSPState(GObject.GEnum): RECORDING = 5 SEEKING = 3 +_RTSPStateLiteralType: TypeAlias = Literal[ + "GST_RTSP_STATE_INIT", + "GST_RTSP_STATE_INVALID", + "GST_RTSP_STATE_PLAYING", + "GST_RTSP_STATE_READY", + "GST_RTSP_STATE_RECORDING", + "GST_RTSP_STATE_SEEKING", + "init", + "invalid", + "playing", + "ready", + "recording", + "seeking", +] +_RTSPStateValueType: TypeAlias = RTSPState | _RTSPStateLiteralType + class RTSPStatusCode(GObject.GEnum): AGGREGATE_OPERATION_NOT_ALLOWED = 459 BAD_GATEWAY = 502 @@ -721,6 +1120,106 @@ class RTSPStatusCode(GObject.GEnum): UNSUPPORTED_TRANSPORT = 461 USE_PROXY = 305 +_RTSPStatusCodeLiteralType: TypeAlias = Literal[ + "GST_RTSP_STS_AGGREGATE_OPERATION_NOT_ALLOWED", + "GST_RTSP_STS_BAD_GATEWAY", + "GST_RTSP_STS_BAD_REQUEST", + "GST_RTSP_STS_CONFERENCE_NOT_FOUND", + "GST_RTSP_STS_CONTINUE", + "GST_RTSP_STS_CREATED", + "GST_RTSP_STS_DESTINATION_UNREACHABLE", + "GST_RTSP_STS_FORBIDDEN", + "GST_RTSP_STS_GATEWAY_TIMEOUT", + "GST_RTSP_STS_GONE", + "GST_RTSP_STS_HEADER_FIELD_NOT_VALID_FOR_RESOURCE", + "GST_RTSP_STS_INTERNAL_SERVER_ERROR", + "GST_RTSP_STS_INVALID", + "GST_RTSP_STS_INVALID_RANGE", + "GST_RTSP_STS_KEY_MANAGEMENT_FAILURE", + "GST_RTSP_STS_LENGTH_REQUIRED", + "GST_RTSP_STS_LOW_ON_STORAGE", + "GST_RTSP_STS_METHOD_NOT_ALLOWED", + "GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE", + "GST_RTSP_STS_MOVED_PERMANENTLY", + "GST_RTSP_STS_MOVE_TEMPORARILY", + "GST_RTSP_STS_MULTIPLE_CHOICES", + "GST_RTSP_STS_NOT_ACCEPTABLE", + "GST_RTSP_STS_NOT_ENOUGH_BANDWIDTH", + "GST_RTSP_STS_NOT_FOUND", + "GST_RTSP_STS_NOT_IMPLEMENTED", + "GST_RTSP_STS_NOT_MODIFIED", + "GST_RTSP_STS_OK", + "GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED", + "GST_RTSP_STS_OPTION_NOT_SUPPORTED", + "GST_RTSP_STS_PARAMETER_IS_READONLY", + "GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD", + "GST_RTSP_STS_PAYMENT_REQUIRED", + "GST_RTSP_STS_PRECONDITION_FAILED", + "GST_RTSP_STS_PROXY_AUTH_REQUIRED", + "GST_RTSP_STS_REDIRECT_PERMANENTLY", + "GST_RTSP_STS_REDIRECT_TEMPORARILY", + "GST_RTSP_STS_REQUEST_ENTITY_TOO_LARGE", + "GST_RTSP_STS_REQUEST_TIMEOUT", + "GST_RTSP_STS_REQUEST_URI_TOO_LARGE", + "GST_RTSP_STS_RTSP_VERSION_NOT_SUPPORTED", + "GST_RTSP_STS_SEE_OTHER", + "GST_RTSP_STS_SERVICE_UNAVAILABLE", + "GST_RTSP_STS_SESSION_NOT_FOUND", + "GST_RTSP_STS_UNAUTHORIZED", + "GST_RTSP_STS_UNSUPPORTED_MEDIA_TYPE", + "GST_RTSP_STS_UNSUPPORTED_TRANSPORT", + "GST_RTSP_STS_USE_PROXY", + "aggregate-operation-not-allowed", + "bad-gateway", + "bad-request", + "conference-not-found", + "continue", + "created", + "destination-unreachable", + "forbidden", + "gateway-timeout", + "gone", + "header-field-not-valid-for-resource", + "internal-server-error", + "invalid", + "invalid-range", + "key-management-failure", + "length-required", + "low-on-storage", + "method-not-allowed", + "method-not-valid-in-this-state", + "move-temporarily", + "moved-permanently", + "multiple-choices", + "not-acceptable", + "not-enough-bandwidth", + "not-found", + "not-implemented", + "not-modified", + "ok", + "only-aggregate-operation-allowed", + "option-not-supported", + "parameter-is-readonly", + "parameter-not-understood", + "payment-required", + "precondition-failed", + "proxy-auth-required", + "redirect-permanently", + "redirect-temporarily", + "request-entity-too-large", + "request-timeout", + "request-uri-too-large", + "rtsp-version-not-supported", + "see-other", + "service-unavailable", + "session-not-found", + "unauthorized", + "unsupported-media-type", + "unsupported-transport", + "use-proxy", +] +_RTSPStatusCodeValueType: TypeAlias = RTSPStatusCode | _RTSPStatusCodeLiteralType + class RTSPTimeType(GObject.GEnum): END = 2 FRAMES = 3 @@ -728,7 +1227,24 @@ class RTSPTimeType(GObject.GEnum): SECONDS = 0 UTC = 4 +_RTSPTimeTypeLiteralType: TypeAlias = Literal[ + "GST_RTSP_TIME_END", + "GST_RTSP_TIME_FRAMES", + "GST_RTSP_TIME_NOW", + "GST_RTSP_TIME_SECONDS", + "GST_RTSP_TIME_UTC", + "end", + "frames", + "now", + "seconds", + "utc", +] +_RTSPTimeTypeValueType: TypeAlias = RTSPTimeType | _RTSPTimeTypeLiteralType + class RTSPVersion(GObject.GEnum): INVALID = 0 @staticmethod - def as_text(version: RTSPVersion) -> str: ... + def as_text(version: _RTSPVersionValueType) -> str: ... + +_RTSPVersionLiteralType: TypeAlias = Literal["GST_RTSP_VERSION_INVALID", "invalid"] +_RTSPVersionValueType: TypeAlias = RTSPVersion | _RTSPVersionLiteralType diff --git a/src/gi-stubs/repository/GstRtspServer.pyi b/src/gi-stubs/repository/GstRtspServer.pyi index 501cc7c4..cf06bf45 100644 --- a/src/gi-stubs/repository/GstRtspServer.pyi +++ b/src/gi-stubs/repository/GstRtspServer.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -49,7 +51,7 @@ def rtsp_sdp_make_media( info: SDPInfo, stream: RTSPStream, caps: Gst.Caps, - profile: GstRtsp.RTSPProfile, + profile: GstRtsp._RTSPProfileValueType, ) -> bool: ... class RTSPAddress(GObject.GBoxed): @@ -146,7 +148,7 @@ class RTSPAuth(GObject.Object): self, connection: Gio.TlsConnection, peer_cert: Gio.TlsCertificate, - errors: Gio.TlsCertificateFlags, + errors: Gio._TlsCertificateFlagsValueType, ) -> bool: ... def do_authenticate(self, ctx: RTSPContext) -> bool: ... def do_check(self, ctx: RTSPContext, check: str) -> bool: ... @@ -166,8 +168,12 @@ class RTSPAuth(GObject.Object): def remove_digest(self, user: str) -> None: ... def set_default_token(self, token: RTSPToken | None = None) -> None: ... def set_realm(self, realm: str | None = None) -> None: ... - def set_supported_methods(self, methods: GstRtsp.RTSPAuthMethod) -> None: ... - def set_tls_authentication_mode(self, mode: Gio.TlsAuthenticationMode) -> None: ... + def set_supported_methods( + self, methods: GstRtsp._RTSPAuthMethodValueType + ) -> None: ... + def set_tls_authentication_mode( + self, mode: Gio._TlsAuthenticationModeValueType + ) -> None: ... def set_tls_certificate(self, cert: Gio.TlsCertificate | None = None) -> None: ... def set_tls_database(self, database: Gio.TlsDatabase | None = None) -> None: ... @@ -193,7 +199,13 @@ class RTSPAuthClass(_gi.Struct): def accept_certificate( self, ) -> Callable[ - [RTSPAuth, Gio.TlsConnection, Gio.TlsCertificate, Gio.TlsCertificateFlags], bool + [ + RTSPAuth, + Gio.TlsConnection, + Gio.TlsCertificate, + Gio._TlsCertificateFlagsValueType, + ], + bool, ]: ... class RTSPAuthPrivate(_gi.Struct): ... @@ -274,13 +286,13 @@ class RTSPClient(GObject.Object): def attach(self, context: GLib.MainContext | None = None) -> int: ... def close(self) -> None: ... def do_adjust_error_code( - self, ctx: RTSPContext, code: GstRtsp.RTSPStatusCode + self, ctx: RTSPContext, code: GstRtsp._RTSPStatusCodeValueType ) -> GstRtsp.RTSPStatusCode: ... def do_adjust_play_mode( self, context: RTSPContext, range: GstRtsp.RTSPTimeRange, - flags: Gst.SeekFlags, + flags: Gst._SeekFlagsValueType, rate: float, trickmode_interval: int, enable_rate_control: bool, @@ -407,7 +419,7 @@ class RTSPClientClass(_gi.Struct): RTSPClient, RTSPContext, GstRtsp.RTSPTimeRange, - Gst.SeekFlags, + Gst._SeekFlagsValueType, float, int, bool, @@ -502,7 +514,8 @@ class RTSPClientClass(_gi.Struct): def adjust_error_code( self, ) -> Callable[ - [RTSPClient, RTSPContext, GstRtsp.RTSPStatusCode], GstRtsp.RTSPStatusCode + [RTSPClient, RTSPContext, GstRtsp._RTSPStatusCodeValueType], + GstRtsp.RTSPStatusCode, ]: ... class RTSPClientPrivate(_gi.Struct): ... @@ -609,14 +622,26 @@ class RTSPMedia(GObject.Object): eos_shutdown: bool latency: int max_mcast_ttl: int - profiles: GstRtsp.RTSPProfile - protocols: GstRtsp.RTSPLowerTrans + @property + def profiles(self) -> GstRtsp.RTSPProfile: ... + @profiles.setter + def profiles(self, value: GstRtsp._RTSPProfileValueType) -> None: ... + @property + def protocols(self) -> GstRtsp.RTSPLowerTrans: ... + @protocols.setter + def protocols(self, value: GstRtsp._RTSPLowerTransValueType) -> None: ... reusable: bool shared: bool stop_on_disconnect: bool - suspend_mode: RTSPSuspendMode + @property + def suspend_mode(self) -> RTSPSuspendMode: ... + @suspend_mode.setter + def suspend_mode(self, value: _RTSPSuspendModeValueType) -> None: ... time_provider: bool | None - transport_mode: RTSPTransportMode + @property + def transport_mode(self) -> RTSPTransportMode: ... + @transport_mode.setter + def transport_mode(self, value: _RTSPTransportModeValueType) -> None: ... @property def props(self) -> Props: ... @@ -631,20 +656,20 @@ class RTSPMedia(GObject.Object): buffer_size: int = ..., clock: Gst.Clock | None = ..., dscp_qos: int = ..., - element: Gst.Element = ..., + element: Gst.Element | None = ..., ensure_keyunit_on_start: bool = ..., ensure_keyunit_on_start_timeout: int = ..., eos_shutdown: bool = ..., latency: int = ..., max_mcast_ttl: int = ..., - profiles: GstRtsp.RTSPProfile = ..., - protocols: GstRtsp.RTSPLowerTrans = ..., + profiles: GstRtsp._RTSPProfileValueType = ..., + protocols: GstRtsp._RTSPLowerTransValueType = ..., reusable: bool = ..., shared: bool = ..., stop_on_disconnect: bool = ..., - suspend_mode: RTSPSuspendMode = ..., - time_provider: bool = ..., - transport_mode: RTSPTransportMode = ..., + suspend_mode: _RTSPSuspendModeValueType = ..., + time_provider: bool | None = ..., + transport_mode: _RTSPTransportModeValueType = ..., ) -> None: ... def can_be_shared(self) -> bool: ... def collect_streams(self) -> None: ... @@ -653,11 +678,11 @@ class RTSPMedia(GObject.Object): ) -> bool: ... def create_stream(self, payloader: Gst.Element, pad: Gst.Pad) -> RTSPStream: ... def do_convert_range( - self, range: GstRtsp.RTSPTimeRange, unit: GstRtsp.RTSPRangeUnit + self, range: GstRtsp.RTSPTimeRange, unit: GstRtsp._RTSPRangeUnitValueType ) -> bool: ... def do_handle_message(self, message: Gst.Message) -> bool: ... def do_handle_sdp(self, sdp: GstSdp.SDPMessage) -> bool: ... - def do_new_state(self, state: Gst.State) -> None: ... + def do_new_state(self, state: Gst._StateValueType) -> None: ... def do_new_stream(self, stream: RTSPStream) -> None: ... def do_prepare(self, thread: RTSPThread | None) -> bool: ... def do_prepared(self) -> None: ... @@ -667,7 +692,7 @@ class RTSPMedia(GObject.Object): def do_setup_rtpbin(self, rtpbin: Gst.Element) -> bool: ... def do_setup_sdp(self, sdp: GstSdp.SDPMessage, info: SDPInfo) -> bool: ... def do_suspend(self) -> bool: ... - def do_target_state(self, state: Gst.State) -> None: ... + def do_target_state(self, state: Gst._StateValueType) -> None: ... def do_unprepare(self) -> bool: ... def do_unprepared(self) -> None: ... def do_unsuspend(self) -> bool: ... @@ -689,7 +714,7 @@ class RTSPMedia(GObject.Object): def get_protocols(self) -> GstRtsp.RTSPLowerTrans: ... def get_publish_clock_mode(self) -> RTSPPublishClockMode: ... def get_range_string( - self, play: bool, unit: GstRtsp.RTSPRangeUnit + self, play: bool, unit: GstRtsp._RTSPRangeUnitValueType ) -> str | None: ... def get_rate_control(self) -> bool: ... def get_rates(self) -> tuple[bool, float, float]: ... @@ -716,11 +741,13 @@ class RTSPMedia(GObject.Object): def new(cls, element: Gst.Element) -> RTSPMedia: ... def prepare(self, thread: RTSPThread | None = None) -> bool: ... def seek(self, range: GstRtsp.RTSPTimeRange) -> bool: ... - def seek_full(self, range: GstRtsp.RTSPTimeRange, flags: Gst.SeekFlags) -> bool: ... + def seek_full( + self, range: GstRtsp.RTSPTimeRange, flags: Gst._SeekFlagsValueType + ) -> bool: ... def seek_trickmode( self, range: GstRtsp.RTSPTimeRange, - flags: Gst.SeekFlags, + flags: Gst._SeekFlagsValueType, rate: float, trickmode_interval: int, ) -> bool: ... @@ -738,20 +765,20 @@ class RTSPMedia(GObject.Object): def set_max_mcast_ttl(self, ttl: int) -> bool: ... def set_multicast_iface(self, multicast_iface: str | None = None) -> None: ... def set_permissions(self, permissions: RTSPPermissions | None = None) -> None: ... - def set_pipeline_state(self, state: Gst.State) -> None: ... - def set_profiles(self, profiles: GstRtsp.RTSPProfile) -> None: ... - def set_protocols(self, protocols: GstRtsp.RTSPLowerTrans) -> None: ... - def set_publish_clock_mode(self, mode: RTSPPublishClockMode) -> None: ... + def set_pipeline_state(self, state: Gst._StateValueType) -> None: ... + def set_profiles(self, profiles: GstRtsp._RTSPProfileValueType) -> None: ... + def set_protocols(self, protocols: GstRtsp._RTSPLowerTransValueType) -> None: ... + def set_publish_clock_mode(self, mode: _RTSPPublishClockModeValueType) -> None: ... def set_rate_control(self, enabled: bool) -> None: ... def set_retransmission_time(self, time: int) -> None: ... def set_reusable(self, reusable: bool) -> None: ... def set_shared(self, shared: bool) -> None: ... def set_state( - self, state: Gst.State, transports: Sequence[RTSPStreamTransport] + self, state: Gst._StateValueType, transports: Sequence[RTSPStreamTransport] ) -> bool: ... def set_stop_on_disconnect(self, stop_on_disconnect: bool) -> None: ... - def set_suspend_mode(self, mode: RTSPSuspendMode) -> None: ... - def set_transport_mode(self, mode: RTSPTransportMode) -> None: ... + def set_suspend_mode(self, mode: _RTSPSuspendModeValueType) -> None: ... + def set_transport_mode(self, mode: _RTSPTransportModeValueType) -> None: ... def setup_sdp(self, sdp: GstSdp.SDPMessage, info: SDPInfo) -> bool: ... def suspend(self) -> bool: ... def take_pipeline(self, pipeline: Gst.Pipeline) -> None: ... @@ -783,7 +810,9 @@ class RTSPMediaClass(_gi.Struct): @property def convert_range( self, - ) -> Callable[[RTSPMedia, GstRtsp.RTSPTimeRange, GstRtsp.RTSPRangeUnit], bool]: ... + ) -> Callable[ + [RTSPMedia, GstRtsp.RTSPTimeRange, GstRtsp._RTSPRangeUnitValueType], bool + ]: ... @property def query_position(self) -> Callable[[RTSPMedia, int], bool]: ... @property @@ -803,9 +832,9 @@ class RTSPMediaClass(_gi.Struct): @property def unprepared(self) -> Callable[[RTSPMedia], None]: ... @property - def target_state(self) -> Callable[[RTSPMedia, Gst.State], None]: ... + def target_state(self) -> Callable[[RTSPMedia, Gst._StateValueType], None]: ... @property - def new_state(self) -> Callable[[RTSPMedia, Gst.State], None]: ... + def new_state(self) -> Callable[[RTSPMedia, Gst._StateValueType], None]: ... @property def handle_sdp(self) -> Callable[[RTSPMedia, GstSdp.SDPMessage], bool]: ... @@ -874,14 +903,29 @@ class RTSPMediaFactory(GObject.Object): ensure_keyunit_on_start_timeout: int eos_shutdown: bool latency: int - launch: str | None + @property + def launch(self) -> str | None: ... + @launch.setter + def launch(self, value: str) -> None: ... max_mcast_ttl: int - profiles: GstRtsp.RTSPProfile - protocols: GstRtsp.RTSPLowerTrans + @property + def profiles(self) -> GstRtsp.RTSPProfile: ... + @profiles.setter + def profiles(self, value: GstRtsp._RTSPProfileValueType) -> None: ... + @property + def protocols(self) -> GstRtsp.RTSPLowerTrans: ... + @protocols.setter + def protocols(self, value: GstRtsp._RTSPLowerTransValueType) -> None: ... shared: bool stop_on_disconnect: bool - suspend_mode: RTSPSuspendMode - transport_mode: RTSPTransportMode + @property + def suspend_mode(self) -> RTSPSuspendMode: ... + @suspend_mode.setter + def suspend_mode(self, value: _RTSPSuspendModeValueType) -> None: ... + @property + def transport_mode(self) -> RTSPTransportMode: ... + @transport_mode.setter + def transport_mode(self, value: _RTSPTransportModeValueType) -> None: ... @property def props(self) -> Props: ... @@ -903,12 +947,12 @@ class RTSPMediaFactory(GObject.Object): latency: int = ..., launch: str = ..., max_mcast_ttl: int = ..., - profiles: GstRtsp.RTSPProfile = ..., - protocols: GstRtsp.RTSPLowerTrans = ..., + profiles: GstRtsp._RTSPProfileValueType = ..., + protocols: GstRtsp._RTSPLowerTransValueType = ..., shared: bool = ..., stop_on_disconnect: bool = ..., - suspend_mode: RTSPSuspendMode = ..., - transport_mode: RTSPTransportMode = ..., + suspend_mode: _RTSPSuspendModeValueType = ..., + transport_mode: _RTSPTransportModeValueType = ..., ) -> None: ... def add_role_from_structure(self, structure: Gst.Structure) -> None: ... def construct(self, url: GstRtsp.RTSPUrl) -> RTSPMedia | None: ... @@ -961,14 +1005,14 @@ class RTSPMediaFactory(GObject.Object): def set_media_gtype(self, media_gtype: type[Any]) -> None: ... def set_multicast_iface(self, multicast_iface: str | None = None) -> None: ... def set_permissions(self, permissions: RTSPPermissions | None = None) -> None: ... - def set_profiles(self, profiles: GstRtsp.RTSPProfile) -> None: ... - def set_protocols(self, protocols: GstRtsp.RTSPLowerTrans) -> None: ... - def set_publish_clock_mode(self, mode: RTSPPublishClockMode) -> None: ... + def set_profiles(self, profiles: GstRtsp._RTSPProfileValueType) -> None: ... + def set_protocols(self, protocols: GstRtsp._RTSPLowerTransValueType) -> None: ... + def set_publish_clock_mode(self, mode: _RTSPPublishClockModeValueType) -> None: ... def set_retransmission_time(self, time: int) -> None: ... def set_shared(self, shared: bool) -> None: ... def set_stop_on_disconnect(self, stop_on_disconnect: bool) -> None: ... - def set_suspend_mode(self, mode: RTSPSuspendMode) -> None: ... - def set_transport_mode(self, mode: RTSPTransportMode) -> None: ... + def set_suspend_mode(self, mode: _RTSPSuspendModeValueType) -> None: ... + def set_transport_mode(self, mode: _RTSPTransportModeValueType) -> None: ... class RTSPMediaFactoryClass(_gi.Struct): """ @@ -1088,12 +1132,12 @@ class RTSPMediaFactoryURI(RTSPMediaFactory): latency: int = ..., launch: str = ..., max_mcast_ttl: int = ..., - profiles: GstRtsp.RTSPProfile = ..., - protocols: GstRtsp.RTSPLowerTrans = ..., + profiles: GstRtsp._RTSPProfileValueType = ..., + protocols: GstRtsp._RTSPLowerTransValueType = ..., shared: bool = ..., stop_on_disconnect: bool = ..., - suspend_mode: RTSPSuspendMode = ..., - transport_mode: RTSPTransportMode = ..., + suspend_mode: _RTSPSuspendModeValueType = ..., + transport_mode: _RTSPTransportModeValueType = ..., ) -> None: ... def get_uri(self) -> str: ... @classmethod @@ -1302,20 +1346,20 @@ class RTSPOnvifMedia(RTSPMedia): buffer_size: int = ..., clock: Gst.Clock | None = ..., dscp_qos: int = ..., - element: Gst.Element = ..., + element: Gst.Element | None = ..., ensure_keyunit_on_start: bool = ..., ensure_keyunit_on_start_timeout: int = ..., eos_shutdown: bool = ..., latency: int = ..., max_mcast_ttl: int = ..., - profiles: GstRtsp.RTSPProfile = ..., - protocols: GstRtsp.RTSPLowerTrans = ..., + profiles: GstRtsp._RTSPProfileValueType = ..., + protocols: GstRtsp._RTSPLowerTransValueType = ..., reusable: bool = ..., shared: bool = ..., stop_on_disconnect: bool = ..., - suspend_mode: RTSPSuspendMode = ..., - time_provider: bool = ..., - transport_mode: RTSPTransportMode = ..., + suspend_mode: _RTSPSuspendModeValueType = ..., + time_provider: bool | None = ..., + transport_mode: _RTSPTransportModeValueType = ..., ) -> None: ... def collect_backchannel(self) -> bool: ... def get_backchannel_bandwidth(self) -> int: ... @@ -1404,12 +1448,12 @@ class RTSPOnvifMediaFactory(RTSPMediaFactory): latency: int = ..., launch: str = ..., max_mcast_ttl: int = ..., - profiles: GstRtsp.RTSPProfile = ..., - protocols: GstRtsp.RTSPLowerTrans = ..., + profiles: GstRtsp._RTSPProfileValueType = ..., + protocols: GstRtsp._RTSPLowerTransValueType = ..., shared: bool = ..., stop_on_disconnect: bool = ..., - suspend_mode: RTSPSuspendMode = ..., - transport_mode: RTSPTransportMode = ..., + suspend_mode: _RTSPSuspendModeValueType = ..., + transport_mode: _RTSPTransportModeValueType = ..., ) -> None: ... def do_create_backchannel_stream( self, media: RTSPOnvifMedia, ctx: RTSPContext @@ -1564,7 +1608,10 @@ class RTSPServer(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - address: str | None + @property + def address(self) -> str | None: ... + @address.setter + def address(self, value: str) -> None: ... backlog: int @property def bound_port(self) -> int: ... @@ -1614,7 +1661,7 @@ class RTSPServer(GObject.Object): def get_thread_pool(self) -> RTSPThreadPool | None: ... @staticmethod def io_func( - socket: Gio.Socket, condition: GLib.IOCondition, server: RTSPServer + socket: Gio.Socket, condition: GLib._IOConditionValueType, server: RTSPServer ) -> bool: ... @classmethod def new(cls) -> RTSPServer: ... @@ -1689,7 +1736,7 @@ class RTSPSession(GObject.Object): self, *, extra_timeout: int = ..., - sessionid: str = ..., + sessionid: str | None = ..., timeout: int = ..., timeout_always_visible: bool = ..., ) -> None: ... @@ -1758,8 +1805,8 @@ class RTSPSessionMedia(GObject.Object): def matches(self, path: str) -> tuple[bool, int]: ... @classmethod def new(cls, path: str, media: RTSPMedia) -> RTSPSessionMedia: ... - def set_rtsp_state(self, state: GstRtsp.RTSPState) -> None: ... - def set_state(self, state: Gst.State) -> bool: ... + def set_rtsp_state(self, state: GstRtsp._RTSPStateValueType) -> None: ... + def set_state(self, state: Gst._StateValueType) -> bool: ... def set_transport( self, stream: RTSPStream, tr: GstRtsp.RTSPTransport ) -> RTSPStreamTransport: ... @@ -1880,8 +1927,14 @@ class RTSPStream(GObject.Object): @type_check_only class Props(GObject.Object.Props): control: str | None - profiles: GstRtsp.RTSPProfile - protocols: GstRtsp.RTSPLowerTrans + @property + def profiles(self) -> GstRtsp.RTSPProfile: ... + @profiles.setter + def profiles(self, value: GstRtsp._RTSPProfileValueType) -> None: ... + @property + def protocols(self) -> GstRtsp.RTSPLowerTrans: ... + @protocols.setter + def protocols(self, value: GstRtsp._RTSPLowerTransValueType) -> None: ... @property def props(self) -> Props: ... @@ -1893,16 +1946,20 @@ class RTSPStream(GObject.Object): self, *, control: str | None = ..., - profiles: GstRtsp.RTSPProfile = ..., - protocols: GstRtsp.RTSPLowerTrans = ..., + profiles: GstRtsp._RTSPProfileValueType = ..., + protocols: GstRtsp._RTSPLowerTransValueType = ..., ) -> None: ... def add_multicast_client_address( - self, destination: str, rtp_port: int, rtcp_port: int, family: Gio.SocketFamily + self, + destination: str, + rtp_port: int, + rtcp_port: int, + family: Gio._SocketFamilyValueType, ) -> bool: ... def add_transport(self, trans: RTSPStreamTransport) -> bool: ... def allocate_udp_sockets( self, - family: Gio.SocketFamily, + family: Gio._SocketFamilyValueType, transport: GstRtsp.RTSPTransport, use_client_settings: bool, ) -> bool: ... @@ -1917,7 +1974,9 @@ class RTSPStream(GObject.Object): def get_joined_bin(self) -> Gst.Bin | None: ... def get_max_mcast_ttl(self) -> int: ... def get_mtu(self) -> int: ... - def get_multicast_address(self, family: Gio.SocketFamily) -> RTSPAddress | None: ... + def get_multicast_address( + self, family: Gio._SocketFamilyValueType + ) -> RTSPAddress | None: ... def get_multicast_client_addresses(self) -> str: ... def get_multicast_iface(self) -> str | None: ... def get_profiles(self) -> GstRtsp.RTSPProfile: ... @@ -1929,16 +1988,22 @@ class RTSPStream(GObject.Object): def get_retransmission_pt(self) -> int: ... def get_retransmission_time(self) -> int: ... def get_rtcp_multicast_socket( - self, family: Gio.SocketFamily + self, family: Gio._SocketFamilyValueType + ) -> Gio.Socket | None: ... + def get_rtcp_socket( + self, family: Gio._SocketFamilyValueType ) -> Gio.Socket | None: ... - def get_rtcp_socket(self, family: Gio.SocketFamily) -> Gio.Socket | None: ... def get_rtp_multicast_socket( - self, family: Gio.SocketFamily + self, family: Gio._SocketFamilyValueType + ) -> Gio.Socket | None: ... + def get_rtp_socket( + self, family: Gio._SocketFamilyValueType ) -> Gio.Socket | None: ... - def get_rtp_socket(self, family: Gio.SocketFamily) -> Gio.Socket | None: ... def get_rtpinfo(self) -> tuple[bool, int, int, int, int]: ... def get_rtpsession(self) -> GObject.Object | None: ... - def get_server_port(self, family: Gio.SocketFamily) -> GstRtsp.RTSPRange: ... + def get_server_port( + self, family: Gio._SocketFamilyValueType + ) -> GstRtsp.RTSPRange: ... def get_sinkpad(self) -> Gst.Pad | None: ... def get_srcpad(self) -> Gst.Pad | None: ... def get_srtp_encoder(self) -> Gst.Element | None: ... @@ -1955,7 +2020,9 @@ class RTSPStream(GObject.Object): def is_receiver(self) -> bool: ... def is_sender(self) -> bool: ... def is_transport_supported(self, transport: GstRtsp.RTSPTransport) -> bool: ... - def join_bin(self, bin: Gst.Bin, rtpbin: Gst.Element, state: Gst.State) -> bool: ... + def join_bin( + self, bin: Gst.Bin, rtpbin: Gst.Element, state: Gst._StateValueType + ) -> bool: ... def leave_bin(self, bin: Gst.Bin, rtpbin: Gst.Element) -> bool: ... @classmethod def new(cls, idx: int, payloader: Gst.Element, pad: Gst.Pad) -> RTSPStream: ... @@ -1984,10 +2051,10 @@ class RTSPStream(GObject.Object): def set_max_mcast_ttl(self, ttl: int) -> bool: ... def set_mtu(self, mtu: int) -> None: ... def set_multicast_iface(self, multicast_iface: str | None = None) -> None: ... - def set_profiles(self, profiles: GstRtsp.RTSPProfile) -> None: ... - def set_protocols(self, protocols: GstRtsp.RTSPLowerTrans) -> None: ... + def set_profiles(self, profiles: GstRtsp._RTSPProfileValueType) -> None: ... + def set_protocols(self, protocols: GstRtsp._RTSPLowerTransValueType) -> None: ... def set_pt_map(self, pt: int, caps: Gst.Caps) -> None: ... - def set_publish_clock_mode(self, mode: RTSPPublishClockMode) -> None: ... + def set_publish_clock_mode(self, mode: _RTSPPublishClockModeValueType) -> None: ... def set_rate_control(self, enabled: bool) -> None: ... def set_retransmission_pt(self, rtx_pt: int) -> None: ... def set_retransmission_time(self, time: int) -> None: ... @@ -2244,6 +2311,15 @@ class RTSPTransportMode(GObject.GFlags): PLAY = 1 RECORD = 2 +_RTSPTransportModeLiteralType: TypeAlias = Literal[ + "GST_RTSP_TRANSPORT_MODE_PLAY", "GST_RTSP_TRANSPORT_MODE_RECORD", "play", "record" +] +_RTSPTransportModeValueType: TypeAlias = ( + RTSPTransportMode + | _RTSPTransportModeLiteralType + | tuple[_RTSPTransportModeLiteralType, ...] +) + class RTSPAddressPoolResult(IntEnum): EINVAL = -1 ELAST = -4 @@ -2269,11 +2345,33 @@ class RTSPPublishClockMode(GObject.GEnum): CLOCK_AND_OFFSET = 2 NONE = 0 +_RTSPPublishClockModeLiteralType: TypeAlias = Literal[ + "GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK", + "GST_RTSP_PUBLISH_CLOCK_MODE_CLOCK_AND_OFFSET", + "GST_RTSP_PUBLISH_CLOCK_MODE_NONE", + "clock", + "clock-and-offset", + "none", +] +_RTSPPublishClockModeValueType: TypeAlias = ( + RTSPPublishClockMode | _RTSPPublishClockModeLiteralType +) + class RTSPSuspendMode(GObject.GEnum): NONE = 0 PAUSE = 1 RESET = 2 +_RTSPSuspendModeLiteralType: TypeAlias = Literal[ + "GST_RTSP_SUSPEND_MODE_NONE", + "GST_RTSP_SUSPEND_MODE_PAUSE", + "GST_RTSP_SUSPEND_MODE_RESET", + "none", + "pause", + "reset", +] +_RTSPSuspendModeValueType: TypeAlias = RTSPSuspendMode | _RTSPSuspendModeLiteralType + class RTSPThreadType(IntEnum): CLIENT = 0 MEDIA = 1 diff --git a/src/gi-stubs/repository/GstVideo.pyi b/src/gi-stubs/repository/GstVideo.pyi index 9103b840..43905673 100644 --- a/src/gi-stubs/repository/GstVideo.pyi +++ b/src/gi-stubs/repository/GstVideo.pyi @@ -1,7 +1,9 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -112,7 +114,10 @@ def ancillary_meta_api_get_type() -> type[Any]: ... def ancillary_meta_get_info() -> Gst.MetaInfo: ... def buffer_add_ancillary_meta(buffer: Gst.Buffer) -> AncillaryMeta: ... def buffer_add_video_afd_meta( - buffer: Gst.Buffer, field: int, spec: VideoAFDSpec, afd: VideoAFDValue + buffer: Gst.Buffer, + field: int, + spec: _VideoAFDSpecValueType, + afd: _VideoAFDValueValueType, ) -> VideoAFDMeta: ... def buffer_add_video_affine_transformation_meta( buffer: Gst.Buffer, @@ -121,16 +126,16 @@ def buffer_add_video_bar_meta( buffer: Gst.Buffer, field: int, is_letterbox: bool, bar_data1: int, bar_data2: int ) -> VideoBarMeta: ... def buffer_add_video_caption_meta( - buffer: Gst.Buffer, caption_type: VideoCaptionType, data: Sequence[int] + buffer: Gst.Buffer, caption_type: _VideoCaptionTypeValueType, data: Sequence[int] ) -> VideoCaptionMeta: ... def buffer_add_video_codec_alpha_meta( buffer: Gst.Buffer, alpha_buffer: Gst.Buffer ) -> VideoCodecAlphaMeta: ... def buffer_add_video_gl_texture_upload_meta( buffer: Gst.Buffer, - texture_orientation: VideoGLTextureOrientation, + texture_orientation: _VideoGLTextureOrientationValueType, n_textures: int, - texture_type: VideoGLTextureType, + texture_type: _VideoGLTextureTypeValueType, upload: Callable[[VideoGLTextureUploadMeta, int], bool], user_data: Any | None, user_data_copy: Callable[[Any | None], int], @@ -138,15 +143,15 @@ def buffer_add_video_gl_texture_upload_meta( ) -> VideoGLTextureUploadMeta: ... def buffer_add_video_meta( buffer: Gst.Buffer, - flags: VideoFrameFlags, - format: VideoFormat, + flags: _VideoFrameFlagsValueType, + format: _VideoFormatValueType, width: int, height: int, ) -> VideoMeta: ... def buffer_add_video_meta_full( buffer: Gst.Buffer, - flags: VideoFrameFlags, - format: VideoFormat, + flags: _VideoFrameFlagsValueType, + format: _VideoFormatValueType, width: int, height: int, n_planes: int, @@ -173,7 +178,7 @@ def buffer_add_video_time_code_meta_full( fps_n: int, fps_d: int, latest_daily_jam: GLib.DateTime, - flags: VideoTimeCodeFlags, + flags: _VideoTimeCodeFlagsValueType, hours: int, minutes: int, seconds: int, @@ -194,38 +199,54 @@ def buffer_pool_config_set_video_alignment( def is_video_overlay_prepare_window_handle_message(msg: Gst.Message) -> bool: ... def navigation_event_get_coordinates(event: Gst.Event) -> tuple[bool, float, float]: ... def navigation_event_get_type(event: Gst.Event) -> NavigationEventType: ... -def navigation_event_new_command(command: NavigationCommand) -> Gst.Event: ... +def navigation_event_new_command(command: _NavigationCommandValueType) -> Gst.Event: ... def navigation_event_new_key_press( - key: str, state: NavigationModifierType + key: str, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... def navigation_event_new_key_release( - key: str, state: NavigationModifierType + key: str, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... def navigation_event_new_mouse_button_press( - button: int, x: float, y: float, state: NavigationModifierType + button: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... def navigation_event_new_mouse_button_release( - button: int, x: float, y: float, state: NavigationModifierType + button: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... def navigation_event_new_mouse_double_click( - button: int, x: float, y: float, state: NavigationModifierType + button: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... def navigation_event_new_mouse_move( - x: float, y: float, state: NavigationModifierType + x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... def navigation_event_new_mouse_scroll( - x: float, y: float, delta_x: float, delta_y: float, state: NavigationModifierType + x: float, + y: float, + delta_x: float, + delta_y: float, + state: _NavigationModifierTypeValueType, +) -> Gst.Event: ... +def navigation_event_new_touch_cancel( + state: _NavigationModifierTypeValueType, ) -> Gst.Event: ... -def navigation_event_new_touch_cancel(state: NavigationModifierType) -> Gst.Event: ... def navigation_event_new_touch_down( - identifier: int, x: float, y: float, pressure: float, state: NavigationModifierType + identifier: int, + x: float, + y: float, + pressure: float, + state: _NavigationModifierTypeValueType, +) -> Gst.Event: ... +def navigation_event_new_touch_frame( + state: _NavigationModifierTypeValueType, ) -> Gst.Event: ... -def navigation_event_new_touch_frame(state: NavigationModifierType) -> Gst.Event: ... def navigation_event_new_touch_motion( - identifier: int, x: float, y: float, pressure: float, state: NavigationModifierType + identifier: int, + x: float, + y: float, + pressure: float, + state: _NavigationModifierTypeValueType, ) -> Gst.Event: ... def navigation_event_new_touch_up( - identifier: int, x: float, y: float, state: NavigationModifierType + identifier: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... def navigation_event_parse_command( event: Gst.Event, @@ -274,7 +295,7 @@ def navigation_query_set_angles( query: Gst.Query, cur_angle: int, n_angles: int ) -> None: ... def navigation_query_set_commandsv( - query: Gst.Query, cmds: Sequence[NavigationCommand] + query: Gst.Query, cmds: Sequence[_NavigationCommandValueType] ) -> None: ... def video_afd_meta_api_get_type() -> type[Any]: ... def video_afd_meta_get_info() -> Gst.MetaInfo: ... @@ -299,7 +320,7 @@ def video_calculate_display_ratio( def video_caption_meta_api_get_type() -> type[Any]: ... def video_caption_meta_get_info() -> Gst.MetaInfo: ... def video_caption_type_from_caps(caps: Gst.Caps) -> VideoCaptionType: ... -def video_caption_type_to_caps(type: VideoCaptionType) -> Gst.Caps: ... +def video_caption_type_to_caps(type: _VideoCaptionTypeValueType) -> Gst.Caps: ... def video_center_rect( src: VideoRectangle, dst: VideoRectangle, scaling: bool ) -> VideoRectangle: ... @@ -308,28 +329,32 @@ def video_chroma_resample( resample: VideoChromaResample, lines: int | Any | None, width: int ) -> None: ... def video_chroma_site_from_string(s: str) -> VideoChromaSite: ... -def video_chroma_site_to_string(site: VideoChromaSite) -> str | None: ... -def video_chroma_to_string(site: VideoChromaSite) -> str: ... +def video_chroma_site_to_string(site: _VideoChromaSiteValueType) -> str | None: ... +def video_chroma_to_string(site: _VideoChromaSiteValueType) -> str: ... def video_codec_alpha_meta_api_get_type() -> type[Any]: ... def video_codec_alpha_meta_get_info() -> Gst.MetaInfo: ... def video_color_matrix_from_iso(value: int) -> VideoColorMatrix: ... def video_color_matrix_get_Kr_Kb( - matrix: VideoColorMatrix, + matrix: _VideoColorMatrixValueType, ) -> tuple[bool, float, float]: ... -def video_color_matrix_to_iso(matrix: VideoColorMatrix) -> int: ... +def video_color_matrix_to_iso(matrix: _VideoColorMatrixValueType) -> int: ... def video_color_primaries_from_iso(value: int) -> VideoColorPrimaries: ... def video_color_primaries_get_info( - primaries: VideoColorPrimaries, + primaries: _VideoColorPrimariesValueType, ) -> VideoColorPrimariesInfo: ... def video_color_primaries_is_equivalent( - primaries: VideoColorPrimaries, other: VideoColorPrimaries + primaries: _VideoColorPrimariesValueType, other: _VideoColorPrimariesValueType ) -> bool: ... -def video_color_primaries_to_iso(primaries: VideoColorPrimaries) -> int: ... +def video_color_primaries_to_iso(primaries: _VideoColorPrimariesValueType) -> int: ... def video_color_range_offsets( - range: VideoColorRange, info: VideoFormatInfo + range: _VideoColorRangeValueType, info: VideoFormatInfo ) -> tuple[list[int], list[int]]: ... -def video_color_transfer_decode(func: VideoTransferFunction, val: float) -> float: ... -def video_color_transfer_encode(func: VideoTransferFunction, val: float) -> float: ... +def video_color_transfer_decode( + func: _VideoTransferFunctionValueType, val: float +) -> float: ... +def video_color_transfer_encode( + func: _VideoTransferFunctionValueType, val: float +) -> float: ... def video_convert_sample( sample: Gst.Sample, to_caps: Gst.Caps, timeout: int ) -> Gst.Sample | None: ... @@ -342,9 +367,11 @@ def video_convert_sample_async( ) -> None: ... def video_crop_meta_api_get_type() -> type[Any]: ... def video_crop_meta_get_info() -> Gst.MetaInfo: ... -def video_dma_drm_format_from_gst_format(format: VideoFormat) -> tuple[int, int]: ... +def video_dma_drm_format_from_gst_format( + format: _VideoFormatValueType, +) -> tuple[int, int]: ... def video_dma_drm_format_to_gst_format(fourcc: int, modifier: int) -> VideoFormat: ... -def video_dma_drm_fourcc_from_format(format: VideoFormat) -> int: ... +def video_dma_drm_fourcc_from_format(format: _VideoFormatValueType) -> int: ... def video_dma_drm_fourcc_from_string(format_str: str) -> tuple[int, int]: ... def video_dma_drm_fourcc_to_format(fourcc: int) -> VideoFormat: ... def video_dma_drm_fourcc_to_string(fourcc: int, modifier: int) -> str | None: ... @@ -364,7 +391,7 @@ def video_event_parse_upstream_force_key_unit( event: Gst.Event, ) -> tuple[bool, int, bool, int]: ... def video_field_order_from_string(order: str) -> VideoFieldOrder: ... -def video_field_order_to_string(order: VideoFieldOrder) -> str: ... +def video_field_order_to_string(order: _VideoFieldOrderValueType) -> str: ... def video_format_from_fourcc(fourcc: int) -> VideoFormat: ... def video_format_from_masks( depth: int, @@ -376,17 +403,17 @@ def video_format_from_masks( alpha_mask: int, ) -> VideoFormat: ... def video_format_from_string(format: str) -> VideoFormat: ... -def video_format_get_info(format: VideoFormat) -> VideoFormatInfo: ... -def video_format_get_palette(format: VideoFormat) -> tuple[int, int]: ... -def video_format_to_fourcc(format: VideoFormat) -> int: ... -def video_format_to_string(format: VideoFormat) -> str: ... +def video_format_get_info(format: _VideoFormatValueType) -> VideoFormatInfo: ... +def video_format_get_palette(format: _VideoFormatValueType) -> tuple[int, int]: ... +def video_format_to_fourcc(format: _VideoFormatValueType) -> int: ... +def video_format_to_string(format: _VideoFormatValueType) -> str: ... def video_formats_any() -> list[VideoFormat]: ... def video_formats_raw() -> list[VideoFormat]: ... def video_frame_map( - info: VideoInfo, buffer: Gst.Buffer, flags: Gst.MapFlags + info: VideoInfo, buffer: Gst.Buffer, flags: Gst._MapFlagsValueType ) -> tuple[bool, VideoFrame]: ... def video_frame_map_id( - info: VideoInfo, buffer: Gst.Buffer, id: int, flags: Gst.MapFlags + info: VideoInfo, buffer: Gst.Buffer, id: int, flags: Gst._MapFlagsValueType ) -> tuple[bool, VideoFrame]: ... def video_gl_texture_upload_meta_api_get_type() -> type[Any]: ... def video_gl_texture_upload_meta_get_info() -> Gst.MetaInfo: ... @@ -399,14 +426,16 @@ def video_info_dma_drm_init() -> VideoInfoDmaDrm: ... def video_info_from_caps(caps: Gst.Caps) -> tuple[bool, VideoInfo]: ... def video_info_init() -> VideoInfo: ... def video_interlace_mode_from_string(mode: str) -> VideoInterlaceMode: ... -def video_interlace_mode_to_string(mode: VideoInterlaceMode) -> str: ... +def video_interlace_mode_to_string(mode: _VideoInterlaceModeValueType) -> str: ... def video_is_common_aspect_ratio( width: int, height: int, par_n: int, par_d: int ) -> bool: ... def video_is_dma_drm_caps(caps: Gst.Caps) -> bool: ... -def video_make_raw_caps(formats: Sequence[VideoFormat] | None = None) -> Gst.Caps: ... +def video_make_raw_caps( + formats: Sequence[_VideoFormatValueType] | None = None, +) -> Gst.Caps: ... def video_make_raw_caps_with_features( - formats: Sequence[VideoFormat] | None = None, + formats: Sequence[_VideoFormatValueType] | None = None, features: Gst.CapsFeatures | None = None, ) -> Gst.Caps: ... def video_mastering_display_info_from_string( @@ -422,18 +451,22 @@ def video_multiview_get_doubled_width_modes() -> Any: ... def video_multiview_get_mono_modes() -> Any: ... def video_multiview_get_unpacked_modes() -> Any: ... def video_multiview_guess_half_aspect( - mv_mode: VideoMultiviewMode, width: int, height: int, par_n: int, par_d: int + mv_mode: _VideoMultiviewModeValueType, + width: int, + height: int, + par_n: int, + par_d: int, ) -> bool: ... def video_multiview_mode_from_caps_string( caps_mview_mode: str, ) -> VideoMultiviewMode: ... def video_multiview_mode_to_caps_string( - mview_mode: VideoMultiviewMode, + mview_mode: _VideoMultiviewModeValueType, ) -> str | None: ... def video_multiview_video_info_change_mode( info: VideoInfo, - out_mview_mode: VideoMultiviewMode, - out_mview_flags: VideoMultiviewFlags, + out_mview_mode: _VideoMultiviewModeValueType, + out_mview_flags: _VideoMultiviewFlagsValueType, ) -> None: ... def video_orientation_from_tag( taglist: Gst.TagList, @@ -454,24 +487,24 @@ def video_sei_user_data_unregistered_parse_precision_time_stamp( user_data: VideoSEIUserDataUnregisteredMeta, ) -> tuple[bool, int, int]: ... def video_tile_get_index( - mode: VideoTileMode, x: int, y: int, x_tiles: int, y_tiles: int + mode: _VideoTileModeValueType, x: int, y: int, x_tiles: int, y_tiles: int ) -> int: ... def video_time_code_meta_api_get_type() -> type[Any]: ... def video_time_code_meta_get_info() -> Gst.MetaInfo: ... def video_transfer_function_decode( - func: VideoTransferFunction, val: float + func: _VideoTransferFunctionValueType, val: float ) -> float: ... def video_transfer_function_encode( - func: VideoTransferFunction, val: float + func: _VideoTransferFunctionValueType, val: float ) -> float: ... def video_transfer_function_from_iso(value: int) -> VideoTransferFunction: ... def video_transfer_function_is_equivalent( - from_func: VideoTransferFunction, + from_func: _VideoTransferFunctionValueType, from_bpp: int, - to_func: VideoTransferFunction, + to_func: _VideoTransferFunctionValueType, to_bpp: int, ) -> bool: ... -def video_transfer_function_to_iso(func: VideoTransferFunction) -> int: ... +def video_transfer_function_to_iso(func: _VideoTransferFunctionValueType) -> int: ... class AncillaryMeta(_gi.Struct): """ @@ -576,26 +609,30 @@ class Navigation(GObject.GInterface, Protocol): @staticmethod def event_get_type(event: Gst.Event) -> NavigationEventType: ... @staticmethod - def event_new_command(command: NavigationCommand) -> Gst.Event: ... + def event_new_command(command: _NavigationCommandValueType) -> Gst.Event: ... @staticmethod - def event_new_key_press(key: str, state: NavigationModifierType) -> Gst.Event: ... + def event_new_key_press( + key: str, state: _NavigationModifierTypeValueType + ) -> Gst.Event: ... @staticmethod - def event_new_key_release(key: str, state: NavigationModifierType) -> Gst.Event: ... + def event_new_key_release( + key: str, state: _NavigationModifierTypeValueType + ) -> Gst.Event: ... @staticmethod def event_new_mouse_button_press( - button: int, x: float, y: float, state: NavigationModifierType + button: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... @staticmethod def event_new_mouse_button_release( - button: int, x: float, y: float, state: NavigationModifierType + button: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... @staticmethod def event_new_mouse_double_click( - button: int, x: float, y: float, state: NavigationModifierType + button: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... @staticmethod def event_new_mouse_move( - x: float, y: float, state: NavigationModifierType + x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... @staticmethod def event_new_mouse_scroll( @@ -603,31 +640,33 @@ class Navigation(GObject.GInterface, Protocol): y: float, delta_x: float, delta_y: float, - state: NavigationModifierType, + state: _NavigationModifierTypeValueType, ) -> Gst.Event: ... @staticmethod - def event_new_touch_cancel(state: NavigationModifierType) -> Gst.Event: ... + def event_new_touch_cancel( + state: _NavigationModifierTypeValueType, + ) -> Gst.Event: ... @staticmethod def event_new_touch_down( identifier: int, x: float, y: float, pressure: float, - state: NavigationModifierType, + state: _NavigationModifierTypeValueType, ) -> Gst.Event: ... @staticmethod - def event_new_touch_frame(state: NavigationModifierType) -> Gst.Event: ... + def event_new_touch_frame(state: _NavigationModifierTypeValueType) -> Gst.Event: ... @staticmethod def event_new_touch_motion( identifier: int, x: float, y: float, pressure: float, - state: NavigationModifierType, + state: _NavigationModifierTypeValueType, ) -> Gst.Event: ... @staticmethod def event_new_touch_up( - identifier: int, x: float, y: float, state: NavigationModifierType + identifier: int, x: float, y: float, state: _NavigationModifierTypeValueType ) -> Gst.Event: ... @staticmethod def event_parse_command(event: Gst.Event) -> tuple[bool, NavigationCommand]: ... @@ -693,9 +732,9 @@ class Navigation(GObject.GInterface, Protocol): def query_set_angles(query: Gst.Query, cur_angle: int, n_angles: int) -> None: ... @staticmethod def query_set_commandsv( - query: Gst.Query, cmds: Sequence[NavigationCommand] + query: Gst.Query, cmds: Sequence[_NavigationCommandValueType] ) -> None: ... - def send_command(self, command: NavigationCommand) -> None: ... + def send_command(self, command: _NavigationCommandValueType) -> None: ... def send_event(self, structure: Gst.Structure) -> None: ... def send_event_simple(self, event: Gst.Event) -> None: ... def send_key_event(self, event: str, key: str) -> None: ... @@ -817,7 +856,7 @@ class VideoAggregator(GstBase.Aggregator): latency: int = ..., min_upstream_latency: int = ..., start_time: int = ..., - start_time_selection: GstBase.AggregatorStartTimeSelection = ..., + start_time_selection: GstBase._AggregatorStartTimeSelectionValueType = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -917,7 +956,7 @@ class VideoAggregatorConvertPad(VideoAggregatorPad): """ @type_check_only class Props(VideoAggregatorPad.Props): - converter_config: Gst.Structure + converter_config: Gst.Structure | None @property def props(self) -> Props: ... @@ -928,14 +967,14 @@ class VideoAggregatorConvertPad(VideoAggregatorPad): def __init__( self, *, - converter_config: Gst.Structure = ..., + converter_config: Gst.Structure | None = ..., max_last_buffer_repeat: int = ..., repeat_after_eos: bool = ..., zorder: int = ..., emit_signals: bool = ..., - direction: Gst.PadDirection = ..., + direction: Gst._PadDirectionValueType = ..., offset: int = ..., - template: Gst.PadTemplate = ..., + template: Gst.PadTemplate | None = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -1039,9 +1078,9 @@ class VideoAggregatorPad(GstBase.AggregatorPad): repeat_after_eos: bool = ..., zorder: int = ..., emit_signals: bool = ..., - direction: Gst.PadDirection = ..., + direction: Gst._PadDirectionValueType = ..., offset: int = ..., - template: Gst.PadTemplate = ..., + template: Gst.PadTemplate | None = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -1170,14 +1209,14 @@ class VideoAggregatorParallelConvertPad(VideoAggregatorConvertPad): def __init__( self, *, - converter_config: Gst.Structure = ..., + converter_config: Gst.Structure | None = ..., max_last_buffer_repeat: int = ..., repeat_after_eos: bool = ..., zorder: int = ..., emit_signals: bool = ..., - direction: Gst.PadDirection = ..., + direction: Gst._PadDirectionValueType = ..., offset: int = ..., - template: Gst.PadTemplate = ..., + template: Gst.PadTemplate | None = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -1505,7 +1544,14 @@ class VideoDecoder(Gst.Element): """ @type_check_only class Props(Gst.Element.Props): - automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags + @property + def automatic_request_sync_point_flags( + self, + ) -> VideoDecoderRequestSyncPointFlags: ... + @automatic_request_sync_point_flags.setter + def automatic_request_sync_point_flags( + self, value: _VideoDecoderRequestSyncPointFlagsValueType + ) -> None: ... automatic_request_sync_points: bool discard_corrupted_frames: bool max_errors: int @@ -1533,7 +1579,7 @@ class VideoDecoder(Gst.Element): def __init__( self, *, - automatic_request_sync_point_flags: VideoDecoderRequestSyncPointFlags = ..., + automatic_request_sync_point_flags: _VideoDecoderRequestSyncPointFlagsValueType = ..., automatic_request_sync_points: bool = ..., discard_corrupted_frames: bool = ..., max_errors: int = ..., @@ -1595,20 +1641,22 @@ class VideoDecoder(Gst.Element): def get_subframe_mode(self) -> bool: ... def have_frame(self) -> Gst.FlowReturn: ... def have_last_subframe(self, frame: VideoCodecFrame) -> Gst.FlowReturn: ... - def merge_tags(self, tags: Gst.TagList | None, mode: Gst.TagMergeMode) -> None: ... + def merge_tags( + self, tags: Gst.TagList | None, mode: Gst._TagMergeModeValueType + ) -> None: ... def negotiate(self) -> bool: ... def proxy_getcaps( self, caps: Gst.Caps | None = None, filter: Gst.Caps | None = None ) -> Gst.Caps: ... def release_frame(self, frame: VideoCodecFrame) -> None: ... def request_sync_point( - self, frame: VideoCodecFrame, flags: VideoDecoderRequestSyncPointFlags + self, frame: VideoCodecFrame, flags: _VideoDecoderRequestSyncPointFlagsValueType ) -> None: ... def set_estimate_rate(self, enabled: bool) -> None: ... def set_interlaced_output_state( self, - fmt: VideoFormat, - interlace_mode: VideoInterlaceMode, + fmt: _VideoFormatValueType, + interlace_mode: _VideoInterlaceModeValueType, width: int, height: int, reference: VideoCodecState | None = None, @@ -1619,7 +1667,7 @@ class VideoDecoder(Gst.Element): def set_needs_sync_point(self, enabled: bool) -> None: ... def set_output_state( self, - fmt: VideoFormat, + fmt: _VideoFormatValueType, width: int, height: int, reference: VideoCodecState | None = None, @@ -1850,7 +1898,9 @@ class VideoEncoder(Gst.Element, Gst.Preset): def get_oldest_frame(self) -> VideoCodecFrame | None: ... def get_output_state(self) -> VideoCodecState | None: ... def is_qos_enabled(self) -> bool: ... - def merge_tags(self, tags: Gst.TagList | None, mode: Gst.TagMergeMode) -> None: ... + def merge_tags( + self, tags: Gst.TagList | None, mode: Gst._TagMergeModeValueType + ) -> None: ... def negotiate(self) -> bool: ... def proxy_getcaps( self, caps: Gst.Caps | None = None, filter: Gst.Caps | None = None @@ -2024,7 +2074,7 @@ class VideoFormatInfo(_gi.Struct): unpack_func: Callable[ [ VideoFormatInfo, - VideoPackFlags, + _VideoPackFlagsValueType, Any | None, int | Any | None, int, @@ -2038,12 +2088,12 @@ class VideoFormatInfo(_gi.Struct): pack_func: Callable[ [ VideoFormatInfo, - VideoPackFlags, + _VideoPackFlagsValueType, Any | None, int, int | Any | None, int, - VideoChromaSite, + _VideoChromaSiteValueType, int, int, ], @@ -2075,11 +2125,11 @@ class VideoFrame(_gi.Struct): def copy_plane(self, src: VideoFrame, plane: int) -> bool: ... @staticmethod def map( - info: VideoInfo, buffer: Gst.Buffer, flags: Gst.MapFlags + info: VideoInfo, buffer: Gst.Buffer, flags: Gst._MapFlagsValueType ) -> tuple[bool, VideoFrame]: ... @staticmethod def map_id( - info: VideoInfo, buffer: Gst.Buffer, id: int, flags: Gst.MapFlags + info: VideoInfo, buffer: Gst.Buffer, id: int, flags: Gst._MapFlagsValueType ) -> tuple[bool, VideoFrame]: ... def unmap(self) -> None: ... @@ -2138,7 +2188,10 @@ class VideoInfo(GObject.GBoxed): def align(self, align: VideoAlignment) -> bool: ... def align_full(self, align: VideoAlignment) -> tuple[bool, int]: ... def convert( - self, src_format: Gst.Format, src_value: int, dest_format: Gst.Format + self, + src_format: Gst._FormatValueType, + src_value: int, + dest_format: Gst._FormatValueType, ) -> tuple[bool, int]: ... def copy(self) -> VideoInfo: ... def free(self) -> None: ... @@ -2150,9 +2203,15 @@ class VideoInfo(GObject.GBoxed): def new(cls) -> VideoInfo: ... @classmethod def new_from_caps(cls, caps: Gst.Caps) -> VideoInfo | None: ... - def set_format(self, format: VideoFormat, width: int, height: int) -> bool: ... + def set_format( + self, format: _VideoFormatValueType, width: int, height: int + ) -> bool: ... def set_interlaced_format( - self, format: VideoFormat, mode: VideoInterlaceMode, width: int, height: int + self, + format: _VideoFormatValueType, + mode: _VideoInterlaceModeValueType, + width: int, + height: int, ) -> bool: ... def to_caps(self) -> Gst.Caps: ... @@ -2245,7 +2304,7 @@ class VideoMeta(_gi.Struct): def get_plane_height(self) -> tuple[bool, list[int]]: ... def get_plane_size(self) -> tuple[bool, list[int]]: ... def map( - self, plane: int, info: Gst.MapInfo, flags: Gst.MapFlags + self, plane: int, info: Gst.MapInfo, flags: Gst._MapFlagsValueType ) -> tuple[bool, int, int]: ... def set_alignment(self, alignment: VideoAlignment) -> bool: ... def set_alignment_full(self, alignment: VideoAlignment) -> bool: ... @@ -2430,16 +2489,24 @@ class VideoOverlayRectangle(GObject.GBoxed): def copy(self) -> VideoOverlayRectangle: ... def get_flags(self) -> VideoOverlayFormatFlags: ... def get_global_alpha(self) -> float: ... - def get_pixels_argb(self, flags: VideoOverlayFormatFlags) -> Gst.Buffer: ... - def get_pixels_ayuv(self, flags: VideoOverlayFormatFlags) -> Gst.Buffer: ... - def get_pixels_raw(self, flags: VideoOverlayFormatFlags) -> Gst.Buffer: ... + def get_pixels_argb( + self, flags: _VideoOverlayFormatFlagsValueType + ) -> Gst.Buffer: ... + def get_pixels_ayuv( + self, flags: _VideoOverlayFormatFlagsValueType + ) -> Gst.Buffer: ... + def get_pixels_raw( + self, flags: _VideoOverlayFormatFlagsValueType + ) -> Gst.Buffer: ... def get_pixels_unscaled_argb( - self, flags: VideoOverlayFormatFlags + self, flags: _VideoOverlayFormatFlagsValueType ) -> Gst.Buffer: ... def get_pixels_unscaled_ayuv( - self, flags: VideoOverlayFormatFlags + self, flags: _VideoOverlayFormatFlagsValueType + ) -> Gst.Buffer: ... + def get_pixels_unscaled_raw( + self, flags: _VideoOverlayFormatFlagsValueType ) -> Gst.Buffer: ... - def get_pixels_unscaled_raw(self, flags: VideoOverlayFormatFlags) -> Gst.Buffer: ... def get_render_rectangle(self) -> tuple[bool, int, int, int, int]: ... def get_seqnum(self) -> int: ... @classmethod @@ -2450,7 +2517,7 @@ class VideoOverlayRectangle(GObject.GBoxed): render_y: int, render_width: int, render_height: int, - flags: VideoOverlayFormatFlags, + flags: _VideoOverlayFormatFlagsValueType, ) -> VideoOverlayRectangle: ... def set_global_alpha(self, global_alpha: float) -> None: ... def set_render_rectangle( @@ -2514,8 +2581,8 @@ class VideoResampler(_gi.Struct): def clear(self) -> None: ... def init( self, - method: VideoResamplerMethod, - flags: VideoResamplerFlags, + method: _VideoResamplerMethodValueType, + flags: _VideoResamplerFlagsValueType, n_phases: int, n_taps: int, shift: float, @@ -2546,7 +2613,7 @@ class VideoScaler(_gi.Struct): def get_max_taps(self) -> int: ... def horizontal( self, - format: VideoFormat, + format: _VideoFormatValueType, src: int | Any | None, dest: int | Any | None, dest_offset: int, @@ -2554,7 +2621,7 @@ class VideoScaler(_gi.Struct): ) -> None: ... def vertical( self, - format: VideoFormat, + format: _VideoFormatValueType, src_lines: int | Any | None, dest: int | Any | None, dest_offset: int, @@ -2724,7 +2791,7 @@ class VideoTimeCode(GObject.GBoxed): fps_n: int, fps_d: int, latest_daily_jam: GLib.DateTime | None, - flags: VideoTimeCodeFlags, + flags: _VideoTimeCodeFlagsValueType, hours: int, minutes: int, seconds: int, @@ -2736,7 +2803,7 @@ class VideoTimeCode(GObject.GBoxed): fps_n: int, fps_d: int, dt: GLib.DateTime, - flags: VideoTimeCodeFlags, + flags: _VideoTimeCodeFlagsValueType, field_count: int, ) -> None: ... def init_from_date_time_full( @@ -2744,7 +2811,7 @@ class VideoTimeCode(GObject.GBoxed): fps_n: int, fps_d: int, dt: GLib.DateTime, - flags: VideoTimeCodeFlags, + flags: _VideoTimeCodeFlagsValueType, field_count: int, ) -> bool: ... def is_valid(self) -> bool: ... @@ -2754,7 +2821,7 @@ class VideoTimeCode(GObject.GBoxed): fps_n: int, fps_d: int, latest_daily_jam: GLib.DateTime, - flags: VideoTimeCodeFlags, + flags: _VideoTimeCodeFlagsValueType, hours: int, minutes: int, seconds: int, @@ -2769,7 +2836,7 @@ class VideoTimeCode(GObject.GBoxed): fps_n: int, fps_d: int, dt: GLib.DateTime, - flags: VideoTimeCodeFlags, + flags: _VideoTimeCodeFlagsValueType, field_count: int, ) -> VideoTimeCode: ... @classmethod @@ -2778,7 +2845,7 @@ class VideoTimeCode(GObject.GBoxed): fps_n: int, fps_d: int, dt: GLib.DateTime, - flags: VideoTimeCodeFlags, + flags: _VideoTimeCodeFlagsValueType, field_count: int, ) -> VideoTimeCode | None: ... @classmethod @@ -2849,14 +2916,16 @@ class VideoVBIEncoder(GObject.GBoxed): new(format:GstVideo.VideoFormat, pixel_width:int) -> GstVideo.VideoVBIEncoder or None """ - def __init__(self, format: VideoFormat, pixel_width: int) -> None: ... + def __init__(self, format: _VideoFormatValueType, pixel_width: int) -> None: ... def add_ancillary( self, composite: bool, DID: int, SDID_block_number: int, data: Sequence[int] ) -> bool: ... def copy(self) -> VideoVBIEncoder: ... def free(self) -> None: ... @classmethod - def new(cls, format: VideoFormat, pixel_width: int) -> VideoVBIEncoder | None: ... + def new( + cls, format: _VideoFormatValueType, pixel_width: int + ) -> VideoVBIEncoder | None: ... def write_line(self, data: Sequence[int]) -> None: ... class VideoVBIParser(GObject.GBoxed): @@ -2867,13 +2936,15 @@ class VideoVBIParser(GObject.GBoxed): new(format:GstVideo.VideoFormat, pixel_width:int) -> GstVideo.VideoVBIParser or None """ - def __init__(self, format: VideoFormat, pixel_width: int) -> None: ... + def __init__(self, format: _VideoFormatValueType, pixel_width: int) -> None: ... def add_line(self, data: Sequence[int]) -> None: ... def copy(self) -> VideoVBIParser: ... def free(self) -> None: ... def get_ancillary(self) -> tuple[VideoVBIParserResult, VideoAncillary]: ... @classmethod - def new(cls, format: VideoFormat, pixel_width: int) -> VideoVBIParser | None: ... + def new( + cls, format: _VideoFormatValueType, pixel_width: int + ) -> VideoVBIParser | None: ... class NavigationModifierType(GObject.GFlags): BUTTON1_MASK = 256 @@ -2895,6 +2966,50 @@ class NavigationModifierType(GObject.GFlags): SHIFT_MASK = 1 SUPER_MASK = 67108864 +_NavigationModifierTypeLiteralType: TypeAlias = Literal[ + "GST_NAVIGATION_MODIFIER_BUTTON1_MASK", + "GST_NAVIGATION_MODIFIER_BUTTON2_MASK", + "GST_NAVIGATION_MODIFIER_BUTTON3_MASK", + "GST_NAVIGATION_MODIFIER_BUTTON4_MASK", + "GST_NAVIGATION_MODIFIER_BUTTON5_MASK", + "GST_NAVIGATION_MODIFIER_CONTROL_MASK", + "GST_NAVIGATION_MODIFIER_HYPER_MASK", + "GST_NAVIGATION_MODIFIER_LOCK_MASK", + "GST_NAVIGATION_MODIFIER_MASK", + "GST_NAVIGATION_MODIFIER_META_MASK", + "GST_NAVIGATION_MODIFIER_MOD1_MASK", + "GST_NAVIGATION_MODIFIER_MOD2_MASK", + "GST_NAVIGATION_MODIFIER_MOD3_MASK", + "GST_NAVIGATION_MODIFIER_MOD4_MASK", + "GST_NAVIGATION_MODIFIER_MOD5_MASK", + "GST_NAVIGATION_MODIFIER_NONE", + "GST_NAVIGATION_MODIFIER_SHIFT_MASK", + "GST_NAVIGATION_MODIFIER_SUPER_MASK", + "button1-mask", + "button2-mask", + "button3-mask", + "button4-mask", + "button5-mask", + "control-mask", + "hyper-mask", + "lock-mask", + "mask", + "meta-mask", + "mod1-mask", + "mod2-mask", + "mod3-mask", + "mod4-mask", + "mod5-mask", + "none", + "shift-mask", + "super-mask", +] +_NavigationModifierTypeValueType: TypeAlias = ( + NavigationModifierType + | _NavigationModifierTypeLiteralType + | tuple[_NavigationModifierTypeLiteralType, ...] +) + class VideoBufferFlags(GObject.GFlags): BOTTOM_FIELD = 8388608 FIRST_IN_BUNDLE = 33554432 @@ -2907,10 +3022,50 @@ class VideoBufferFlags(GObject.GFlags): TFF = 2097152 TOP_FIELD = 10485760 +_VideoBufferFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_BUFFER_FLAG_BOTTOM_FIELD", + "GST_VIDEO_BUFFER_FLAG_FIRST_IN_BUNDLE", + "GST_VIDEO_BUFFER_FLAG_INTERLACED", + "GST_VIDEO_BUFFER_FLAG_LAST", + "GST_VIDEO_BUFFER_FLAG_MARKER", + "GST_VIDEO_BUFFER_FLAG_MULTIPLE_VIEW", + "GST_VIDEO_BUFFER_FLAG_ONEFIELD", + "GST_VIDEO_BUFFER_FLAG_RFF", + "GST_VIDEO_BUFFER_FLAG_TFF", + "GST_VIDEO_BUFFER_FLAG_TOP_FIELD", + "bottom-field", + "first-in-bundle", + "interlaced", + "last", + "marker", + "multiple-view", + "onefield", + "rff", + "tff", + "top-field", +] +_VideoBufferFlagsValueType: TypeAlias = ( + VideoBufferFlags + | _VideoBufferFlagsLiteralType + | tuple[_VideoBufferFlagsLiteralType, ...] +) + class VideoChromaFlags(GObject.GFlags): INTERLACED = 1 NONE = 0 +_VideoChromaFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_CHROMA_FLAG_INTERLACED", + "GST_VIDEO_CHROMA_FLAG_NONE", + "interlaced", + "none", +] +_VideoChromaFlagsValueType: TypeAlias = ( + VideoChromaFlags + | _VideoChromaFlagsLiteralType + | tuple[_VideoChromaFlagsLiteralType, ...] +) + class VideoChromaSite(GObject.GFlags): ALT_LINE = 8 COSITED = 6 @@ -2924,7 +3079,33 @@ class VideoChromaSite(GObject.GFlags): @staticmethod def from_string(s: str) -> VideoChromaSite: ... @staticmethod - def to_string(site: VideoChromaSite) -> str | None: ... + def to_string(site: _VideoChromaSiteValueType) -> str | None: ... + +_VideoChromaSiteLiteralType: TypeAlias = Literal[ + "GST_VIDEO_CHROMA_SITE_ALT_LINE", + "GST_VIDEO_CHROMA_SITE_COSITED", + "GST_VIDEO_CHROMA_SITE_DV", + "GST_VIDEO_CHROMA_SITE_H_COSITED", + "GST_VIDEO_CHROMA_SITE_JPEG", + "GST_VIDEO_CHROMA_SITE_MPEG2", + "GST_VIDEO_CHROMA_SITE_NONE", + "GST_VIDEO_CHROMA_SITE_UNKNOWN", + "GST_VIDEO_CHROMA_SITE_V_COSITED", + "alt-line", + "cosited", + "dv", + "h-cosited", + "jpeg", + "mpeg2", + "none", + "unknown", + "v-cosited", +] +_VideoChromaSiteValueType: TypeAlias = ( + VideoChromaSite + | _VideoChromaSiteLiteralType + | tuple[_VideoChromaSiteLiteralType, ...] +) class VideoCodecFrameFlags(GObject.GFlags): CORRUPTED = 16 @@ -2933,20 +3114,76 @@ class VideoCodecFrameFlags(GObject.GFlags): FORCE_KEYFRAME_HEADERS = 8 SYNC_POINT = 2 +_VideoCodecFrameFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_CODEC_FRAME_FLAG_CORRUPTED", + "GST_VIDEO_CODEC_FRAME_FLAG_DECODE_ONLY", + "GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME", + "GST_VIDEO_CODEC_FRAME_FLAG_FORCE_KEYFRAME_HEADERS", + "GST_VIDEO_CODEC_FRAME_FLAG_SYNC_POINT", + "corrupted", + "decode-only", + "force-keyframe", + "force-keyframe-headers", + "sync-point", +] +_VideoCodecFrameFlagsValueType: TypeAlias = ( + VideoCodecFrameFlags + | _VideoCodecFrameFlagsLiteralType + | tuple[_VideoCodecFrameFlagsLiteralType, ...] +) + class VideoDecoderRequestSyncPointFlags(GObject.GFlags): CORRUPT_OUTPUT = 2 DISCARD_INPUT = 1 +_VideoDecoderRequestSyncPointFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_DECODER_REQUEST_SYNC_POINT_CORRUPT_OUTPUT", + "GST_VIDEO_DECODER_REQUEST_SYNC_POINT_DISCARD_INPUT", + "corrupt-output", + "discard-input", +] +_VideoDecoderRequestSyncPointFlagsValueType: TypeAlias = ( + VideoDecoderRequestSyncPointFlags + | _VideoDecoderRequestSyncPointFlagsLiteralType + | tuple[_VideoDecoderRequestSyncPointFlagsLiteralType, ...] +) + class VideoDitherFlags(GObject.GFlags): INTERLACED = 1 NONE = 0 QUANTIZE = 2 +_VideoDitherFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_DITHER_FLAG_INTERLACED", + "GST_VIDEO_DITHER_FLAG_NONE", + "GST_VIDEO_DITHER_FLAG_QUANTIZE", + "interlaced", + "none", + "quantize", +] +_VideoDitherFlagsValueType: TypeAlias = ( + VideoDitherFlags + | _VideoDitherFlagsLiteralType + | tuple[_VideoDitherFlagsLiteralType, ...] +) + class VideoFlags(GObject.GFlags): NONE = 0 PREMULTIPLIED_ALPHA = 2 VARIABLE_FPS = 1 +_VideoFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_FLAG_NONE", + "GST_VIDEO_FLAG_PREMULTIPLIED_ALPHA", + "GST_VIDEO_FLAG_VARIABLE_FPS", + "none", + "premultiplied-alpha", + "variable-fps", +] +_VideoFlagsValueType: TypeAlias = ( + VideoFlags | _VideoFlagsLiteralType | tuple[_VideoFlagsLiteralType, ...] +) + class VideoFormatFlags(GObject.GFlags): ALPHA = 8 COMPLEX = 64 @@ -2959,6 +3196,34 @@ class VideoFormatFlags(GObject.GFlags): UNPACK = 128 YUV = 1 +_VideoFormatFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_FORMAT_FLAG_ALPHA", + "GST_VIDEO_FORMAT_FLAG_COMPLEX", + "GST_VIDEO_FORMAT_FLAG_GRAY", + "GST_VIDEO_FORMAT_FLAG_LE", + "GST_VIDEO_FORMAT_FLAG_PALETTE", + "GST_VIDEO_FORMAT_FLAG_RGB", + "GST_VIDEO_FORMAT_FLAG_SUBTILES", + "GST_VIDEO_FORMAT_FLAG_TILED", + "GST_VIDEO_FORMAT_FLAG_UNPACK", + "GST_VIDEO_FORMAT_FLAG_YUV", + "alpha", + "complex", + "gray", + "le", + "palette", + "rgb", + "subtiles", + "tiled", + "unpack", + "yuv", +] +_VideoFormatFlagsValueType: TypeAlias = ( + VideoFormatFlags + | _VideoFormatFlagsLiteralType + | tuple[_VideoFormatFlagsLiteralType, ...] +) + class VideoFrameFlags(GObject.GFlags): BOTTOM_FIELD = 8 FIRST_IN_BUNDLE = 32 @@ -2970,10 +3235,45 @@ class VideoFrameFlags(GObject.GFlags): TFF = 2 TOP_FIELD = 10 +_VideoFrameFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_FRAME_FLAG_BOTTOM_FIELD", + "GST_VIDEO_FRAME_FLAG_FIRST_IN_BUNDLE", + "GST_VIDEO_FRAME_FLAG_INTERLACED", + "GST_VIDEO_FRAME_FLAG_MULTIPLE_VIEW", + "GST_VIDEO_FRAME_FLAG_NONE", + "GST_VIDEO_FRAME_FLAG_ONEFIELD", + "GST_VIDEO_FRAME_FLAG_RFF", + "GST_VIDEO_FRAME_FLAG_TFF", + "GST_VIDEO_FRAME_FLAG_TOP_FIELD", + "bottom-field", + "first-in-bundle", + "interlaced", + "multiple-view", + "none", + "onefield", + "rff", + "tff", + "top-field", +] +_VideoFrameFlagsValueType: TypeAlias = ( + VideoFrameFlags + | _VideoFrameFlagsLiteralType + | tuple[_VideoFrameFlagsLiteralType, ...] +) + class VideoFrameMapFlags(GObject.GFlags): LAST = 16777216 NO_REF = 65536 +_VideoFrameMapFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_FRAME_MAP_FLAG_LAST", "GST_VIDEO_FRAME_MAP_FLAG_NO_REF", "last", "no-ref" +] +_VideoFrameMapFlagsValueType: TypeAlias = ( + VideoFrameMapFlags + | _VideoFrameMapFlagsLiteralType + | tuple[_VideoFrameMapFlagsLiteralType, ...] +) + class VideoMultiviewFlags(GObject.GFlags): HALF_ASPECT = 16384 LEFT_FLIPPED = 2 @@ -2984,38 +3284,143 @@ class VideoMultiviewFlags(GObject.GFlags): RIGHT_FLOPPED = 16 RIGHT_VIEW_FIRST = 1 +_VideoMultiviewFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_MULTIVIEW_FLAGS_HALF_ASPECT", + "GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED", + "GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED", + "GST_VIDEO_MULTIVIEW_FLAGS_MIXED_MONO", + "GST_VIDEO_MULTIVIEW_FLAGS_NONE", + "GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLIPPED", + "GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_FLOPPED", + "GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST", + "half-aspect", + "left-flipped", + "left-flopped", + "mixed-mono", + "none", + "right-flipped", + "right-flopped", + "right-view-first", +] +_VideoMultiviewFlagsValueType: TypeAlias = ( + VideoMultiviewFlags + | _VideoMultiviewFlagsLiteralType + | tuple[_VideoMultiviewFlagsLiteralType, ...] +) + class VideoOverlayFormatFlags(GObject.GFlags): GLOBAL_ALPHA = 2 NONE = 0 PREMULTIPLIED_ALPHA = 1 +_VideoOverlayFormatFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA", + "GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE", + "GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA", + "global-alpha", + "none", + "premultiplied-alpha", +] +_VideoOverlayFormatFlagsValueType: TypeAlias = ( + VideoOverlayFormatFlags + | _VideoOverlayFormatFlagsLiteralType + | tuple[_VideoOverlayFormatFlagsLiteralType, ...] +) + class VideoPackFlags(GObject.GFlags): INTERLACED = 2 NONE = 0 TRUNCATE_RANGE = 1 +_VideoPackFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_PACK_FLAG_INTERLACED", + "GST_VIDEO_PACK_FLAG_NONE", + "GST_VIDEO_PACK_FLAG_TRUNCATE_RANGE", + "interlaced", + "none", + "truncate-range", +] +_VideoPackFlagsValueType: TypeAlias = ( + VideoPackFlags | _VideoPackFlagsLiteralType | tuple[_VideoPackFlagsLiteralType, ...] +) + class VideoResamplerFlags(GObject.GFlags): HALF_TAPS = 1 NONE = 0 +_VideoResamplerFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_RESAMPLER_FLAG_HALF_TAPS", + "GST_VIDEO_RESAMPLER_FLAG_NONE", + "half-taps", + "none", +] +_VideoResamplerFlagsValueType: TypeAlias = ( + VideoResamplerFlags + | _VideoResamplerFlagsLiteralType + | tuple[_VideoResamplerFlagsLiteralType, ...] +) + class VideoScalerFlags(GObject.GFlags): INTERLACED = 1 NONE = 0 +_VideoScalerFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_SCALER_FLAG_INTERLACED", + "GST_VIDEO_SCALER_FLAG_NONE", + "interlaced", + "none", +] +_VideoScalerFlagsValueType: TypeAlias = ( + VideoScalerFlags + | _VideoScalerFlagsLiteralType + | tuple[_VideoScalerFlagsLiteralType, ...] +) + class VideoTimeCodeFlags(GObject.GFlags): DROP_FRAME = 1 INTERLACED = 2 NONE = 0 +_VideoTimeCodeFlagsLiteralType: TypeAlias = Literal[ + "GST_VIDEO_TIME_CODE_FLAGS_DROP_FRAME", + "GST_VIDEO_TIME_CODE_FLAGS_INTERLACED", + "GST_VIDEO_TIME_CODE_FLAGS_NONE", + "drop-frame", + "interlaced", + "none", +] +_VideoTimeCodeFlagsValueType: TypeAlias = ( + VideoTimeCodeFlags + | _VideoTimeCodeFlagsLiteralType + | tuple[_VideoTimeCodeFlagsLiteralType, ...] +) + class AncillaryMetaField(GObject.GEnum): INTERLACED_FIRST = 16 INTERLACED_SECOND = 17 PROGRESSIVE = 0 +_AncillaryMetaFieldLiteralType: TypeAlias = Literal[ + "GST_ANCILLARY_META_FIELD_INTERLACED_FIRST", + "GST_ANCILLARY_META_FIELD_INTERLACED_SECOND", + "GST_ANCILLARY_META_FIELD_PROGRESSIVE", + "interlaced-first", + "interlaced-second", + "progressive", +] +_AncillaryMetaFieldValueType: TypeAlias = ( + AncillaryMetaField | _AncillaryMetaFieldLiteralType +) + class ColorBalanceType(GObject.GEnum): HARDWARE = 0 SOFTWARE = 1 +_ColorBalanceTypeLiteralType: TypeAlias = Literal[ + "GST_COLOR_BALANCE_HARDWARE", "GST_COLOR_BALANCE_SOFTWARE", "hardware", "software" +] +_ColorBalanceTypeValueType: TypeAlias = ColorBalanceType | _ColorBalanceTypeLiteralType + class NavigationCommand(GObject.GEnum): ACTIVATE = 24 DOWN = 23 @@ -3033,6 +3438,42 @@ class NavigationCommand(GObject.GEnum): RIGHT = 21 UP = 22 +_NavigationCommandLiteralType: TypeAlias = Literal[ + "GST_NAVIGATION_COMMAND_ACTIVATE", + "GST_NAVIGATION_COMMAND_DOWN", + "GST_NAVIGATION_COMMAND_INVALID", + "GST_NAVIGATION_COMMAND_LEFT", + "GST_NAVIGATION_COMMAND_MENU1", + "GST_NAVIGATION_COMMAND_MENU2", + "GST_NAVIGATION_COMMAND_MENU3", + "GST_NAVIGATION_COMMAND_MENU4", + "GST_NAVIGATION_COMMAND_MENU5", + "GST_NAVIGATION_COMMAND_MENU6", + "GST_NAVIGATION_COMMAND_MENU7", + "GST_NAVIGATION_COMMAND_NEXT_ANGLE", + "GST_NAVIGATION_COMMAND_PREV_ANGLE", + "GST_NAVIGATION_COMMAND_RIGHT", + "GST_NAVIGATION_COMMAND_UP", + "activate", + "down", + "invalid", + "left", + "menu1", + "menu2", + "menu3", + "menu4", + "menu5", + "menu6", + "menu7", + "next-angle", + "prev-angle", + "right", + "up", +] +_NavigationCommandValueType: TypeAlias = ( + NavigationCommand | _NavigationCommandLiteralType +) + class NavigationEventType(GObject.GEnum): COMMAND = 6 INVALID = 0 @@ -3049,6 +3490,40 @@ class NavigationEventType(GObject.GEnum): TOUCH_MOTION = 9 TOUCH_UP = 10 +_NavigationEventTypeLiteralType: TypeAlias = Literal[ + "GST_NAVIGATION_EVENT_COMMAND", + "GST_NAVIGATION_EVENT_INVALID", + "GST_NAVIGATION_EVENT_KEY_PRESS", + "GST_NAVIGATION_EVENT_KEY_RELEASE", + "GST_NAVIGATION_EVENT_MOUSE_BUTTON_PRESS", + "GST_NAVIGATION_EVENT_MOUSE_BUTTON_RELEASE", + "GST_NAVIGATION_EVENT_MOUSE_DOUBLE_CLICK", + "GST_NAVIGATION_EVENT_MOUSE_MOVE", + "GST_NAVIGATION_EVENT_MOUSE_SCROLL", + "GST_NAVIGATION_EVENT_TOUCH_CANCEL", + "GST_NAVIGATION_EVENT_TOUCH_DOWN", + "GST_NAVIGATION_EVENT_TOUCH_FRAME", + "GST_NAVIGATION_EVENT_TOUCH_MOTION", + "GST_NAVIGATION_EVENT_TOUCH_UP", + "command", + "invalid", + "key-press", + "key-release", + "mouse-button-press", + "mouse-button-release", + "mouse-double-click", + "mouse-move", + "mouse-scroll", + "touch-cancel", + "touch-down", + "touch-frame", + "touch-motion", + "touch-up", +] +_NavigationEventTypeValueType: TypeAlias = ( + NavigationEventType | _NavigationEventTypeLiteralType +) + class NavigationMessageType(GObject.GEnum): ANGLES_CHANGED = 3 COMMANDS_CHANGED = 2 @@ -3056,25 +3531,81 @@ class NavigationMessageType(GObject.GEnum): INVALID = 0 MOUSE_OVER = 1 +_NavigationMessageTypeLiteralType: TypeAlias = Literal[ + "GST_NAVIGATION_MESSAGE_ANGLES_CHANGED", + "GST_NAVIGATION_MESSAGE_COMMANDS_CHANGED", + "GST_NAVIGATION_MESSAGE_EVENT", + "GST_NAVIGATION_MESSAGE_INVALID", + "GST_NAVIGATION_MESSAGE_MOUSE_OVER", + "angles-changed", + "commands-changed", + "event", + "invalid", + "mouse-over", +] +_NavigationMessageTypeValueType: TypeAlias = ( + NavigationMessageType | _NavigationMessageTypeLiteralType +) + class NavigationQueryType(GObject.GEnum): ANGLES = 2 COMMANDS = 1 INVALID = 0 +_NavigationQueryTypeLiteralType: TypeAlias = Literal[ + "GST_NAVIGATION_QUERY_ANGLES", + "GST_NAVIGATION_QUERY_COMMANDS", + "GST_NAVIGATION_QUERY_INVALID", + "angles", + "commands", + "invalid", +] +_NavigationQueryTypeValueType: TypeAlias = ( + NavigationQueryType | _NavigationQueryTypeLiteralType +) + class VideoAFDSpec(GObject.GEnum): ATSC_A53 = 1 DVB_ETSI = 0 SMPTE_ST2016_1 = 2 +_VideoAFDSpecLiteralType: TypeAlias = Literal[ + "GST_VIDEO_AFD_SPEC_ATSC_A53", + "GST_VIDEO_AFD_SPEC_DVB_ETSI", + "GST_VIDEO_AFD_SPEC_SMPTE_ST2016_1", + "atsc-a53", + "dvb-etsi", + "smpte-st2016-1", +] +_VideoAFDSpecValueType: TypeAlias = VideoAFDSpec | _VideoAFDSpecLiteralType + class VideoAFDValue(GObject.GEnum): GREATER_THAN_16_9 = 4 UNAVAILABLE = 0 +_VideoAFDValueLiteralType: TypeAlias = Literal[ + "GST_VIDEO_AFD_GREATER_THAN_16_9", + "GST_VIDEO_AFD_UNAVAILABLE", + "greater-than-16-9", + "unavailable", +] +_VideoAFDValueValueType: TypeAlias = VideoAFDValue | _VideoAFDValueLiteralType + class VideoAlphaMode(GObject.GEnum): COPY = 0 MULT = 2 SET = 1 +_VideoAlphaModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_ALPHA_MODE_COPY", + "GST_VIDEO_ALPHA_MODE_MULT", + "GST_VIDEO_ALPHA_MODE_SET", + "copy", + "mult", + "set", +] +_VideoAlphaModeValueType: TypeAlias = VideoAlphaMode | _VideoAlphaModeLiteralType + class VideoAncillaryDID(GObject.GEnum): CAMERA_POSITION = 240 DELETION = 128 @@ -3089,11 +3620,53 @@ class VideoAncillaryDID(GObject.GEnum): HANC_SDTV_AUDIO_DATA_2_LAST = 255 UNDEFINED = 0 +_VideoAncillaryDIDLiteralType: TypeAlias = Literal[ + "GST_VIDEO_ANCILLARY_DID_CAMERA_POSITION", + "GST_VIDEO_ANCILLARY_DID_DELETION", + "GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_FIRST", + "GST_VIDEO_ANCILLARY_DID_HANC_3G_AUDIO_DATA_LAST", + "GST_VIDEO_ANCILLARY_DID_HANC_ERROR_DETECTION", + "GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_FIRST", + "GST_VIDEO_ANCILLARY_DID_HANC_HDTV_AUDIO_DATA_LAST", + "GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_FIRST", + "GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_1_LAST", + "GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_FIRST", + "GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_LAST", + "GST_VIDEO_ANCILLARY_DID_UNDEFINED", + "camera-position", + "deletion", + "hanc-3g-audio-data-first", + "hanc-3g-audio-data-last", + "hanc-error-detection", + "hanc-hdtv-audio-data-first", + "hanc-hdtv-audio-data-last", + "hanc-sdtv-audio-data-1-first", + "hanc-sdtv-audio-data-1-last", + "hanc-sdtv-audio-data-2-first", + "hanc-sdtv-audio-data-2-last", + "undefined", +] +_VideoAncillaryDIDValueType: TypeAlias = ( + VideoAncillaryDID | _VideoAncillaryDIDLiteralType +) + class VideoAncillaryDID16(GObject.GEnum): S2016_3_AFD_BAR = 16645 S334_EIA_608 = 24834 S334_EIA_708 = 24833 +_VideoAncillaryDID16LiteralType: TypeAlias = Literal[ + "GST_VIDEO_ANCILLARY_DID16_S2016_3_AFD_BAR", + "GST_VIDEO_ANCILLARY_DID16_S334_EIA_608", + "GST_VIDEO_ANCILLARY_DID16_S334_EIA_708", + "s2016-3-afd-bar", + "s334-eia-608", + "s334-eia-708", +] +_VideoAncillaryDID16ValueType: TypeAlias = ( + VideoAncillaryDID16 | _VideoAncillaryDID16LiteralType +) + class VideoCaptionType(GObject.GEnum): CEA608_RAW = 1 CEA608_S334_1A = 2 @@ -3103,18 +3676,54 @@ class VideoCaptionType(GObject.GEnum): @staticmethod def from_caps(caps: Gst.Caps) -> VideoCaptionType: ... @staticmethod - def to_caps(type: VideoCaptionType) -> Gst.Caps: ... + def to_caps(type: _VideoCaptionTypeValueType) -> Gst.Caps: ... + +_VideoCaptionTypeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_CAPTION_TYPE_CEA608_RAW", + "GST_VIDEO_CAPTION_TYPE_CEA608_S334_1A", + "GST_VIDEO_CAPTION_TYPE_CEA708_CDP", + "GST_VIDEO_CAPTION_TYPE_CEA708_RAW", + "GST_VIDEO_CAPTION_TYPE_UNKNOWN", + "cea608-raw", + "cea608-s334-1a", + "cea708-cdp", + "cea708-raw", + "unknown", +] +_VideoCaptionTypeValueType: TypeAlias = VideoCaptionType | _VideoCaptionTypeLiteralType class VideoChromaMethod(GObject.GEnum): LINEAR = 1 NEAREST = 0 +_VideoChromaMethodLiteralType: TypeAlias = Literal[ + "GST_VIDEO_CHROMA_METHOD_LINEAR", + "GST_VIDEO_CHROMA_METHOD_NEAREST", + "linear", + "nearest", +] +_VideoChromaMethodValueType: TypeAlias = ( + VideoChromaMethod | _VideoChromaMethodLiteralType +) + class VideoChromaMode(GObject.GEnum): DOWNSAMPLE_ONLY = 2 FULL = 0 NONE = 3 UPSAMPLE_ONLY = 1 +_VideoChromaModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_CHROMA_MODE_DOWNSAMPLE_ONLY", + "GST_VIDEO_CHROMA_MODE_FULL", + "GST_VIDEO_CHROMA_MODE_NONE", + "GST_VIDEO_CHROMA_MODE_UPSAMPLE_ONLY", + "downsample-only", + "full", + "none", + "upsample-only", +] +_VideoChromaModeValueType: TypeAlias = VideoChromaMode | _VideoChromaModeLiteralType + class VideoColorMatrix(GObject.GEnum): BT2020 = 6 BT601 = 4 @@ -3126,9 +3735,27 @@ class VideoColorMatrix(GObject.GEnum): @staticmethod def from_iso(value: int) -> VideoColorMatrix: ... @staticmethod - def get_Kr_Kb(matrix: VideoColorMatrix) -> tuple[bool, float, float]: ... + def get_Kr_Kb(matrix: _VideoColorMatrixValueType) -> tuple[bool, float, float]: ... @staticmethod - def to_iso(matrix: VideoColorMatrix) -> int: ... + def to_iso(matrix: _VideoColorMatrixValueType) -> int: ... + +_VideoColorMatrixLiteralType: TypeAlias = Literal[ + "GST_VIDEO_COLOR_MATRIX_BT2020", + "GST_VIDEO_COLOR_MATRIX_BT601", + "GST_VIDEO_COLOR_MATRIX_BT709", + "GST_VIDEO_COLOR_MATRIX_FCC", + "GST_VIDEO_COLOR_MATRIX_RGB", + "GST_VIDEO_COLOR_MATRIX_SMPTE240M", + "GST_VIDEO_COLOR_MATRIX_UNKNOWN", + "bt2020", + "bt601", + "bt709", + "fcc", + "rgb", + "smpte240m", + "unknown", +] +_VideoColorMatrixValueType: TypeAlias = VideoColorMatrix | _VideoColorMatrixLiteralType class VideoColorPrimaries(GObject.GEnum): ADOBERGB = 8 @@ -3147,21 +3774,60 @@ class VideoColorPrimaries(GObject.GEnum): @staticmethod def from_iso(value: int) -> VideoColorPrimaries: ... @staticmethod - def get_info(primaries: VideoColorPrimaries) -> VideoColorPrimariesInfo: ... + def get_info( + primaries: _VideoColorPrimariesValueType, + ) -> VideoColorPrimariesInfo: ... @staticmethod def is_equivalent( - primaries: VideoColorPrimaries, other: VideoColorPrimaries + primaries: _VideoColorPrimariesValueType, other: _VideoColorPrimariesValueType ) -> bool: ... @staticmethod - def to_iso(primaries: VideoColorPrimaries) -> int: ... + def to_iso(primaries: _VideoColorPrimariesValueType) -> int: ... + +_VideoColorPrimariesLiteralType: TypeAlias = Literal[ + "GST_VIDEO_COLOR_PRIMARIES_ADOBERGB", + "GST_VIDEO_COLOR_PRIMARIES_BT2020", + "GST_VIDEO_COLOR_PRIMARIES_BT470BG", + "GST_VIDEO_COLOR_PRIMARIES_BT470M", + "GST_VIDEO_COLOR_PRIMARIES_BT709", + "GST_VIDEO_COLOR_PRIMARIES_EBU3213", + "GST_VIDEO_COLOR_PRIMARIES_FILM", + "GST_VIDEO_COLOR_PRIMARIES_SMPTE170M", + "GST_VIDEO_COLOR_PRIMARIES_SMPTE240M", + "GST_VIDEO_COLOR_PRIMARIES_SMPTEEG432", + "GST_VIDEO_COLOR_PRIMARIES_SMPTERP431", + "GST_VIDEO_COLOR_PRIMARIES_SMPTEST428", + "GST_VIDEO_COLOR_PRIMARIES_UNKNOWN", + "adobergb", + "bt2020", + "bt470bg", + "bt470m", + "bt709", + "ebu3213", + "film", + "smpte170m", + "smpte240m", + "smpteeg432", + "smpterp431", + "smptest428", + "unknown", +] +_VideoColorPrimariesValueType: TypeAlias = ( + VideoColorPrimaries | _VideoColorPrimariesLiteralType +) class VideoColorRange(GObject.GEnum): UNKNOWN = 0 @staticmethod def offsets( - range: VideoColorRange, info: VideoFormatInfo + range: _VideoColorRangeValueType, info: VideoFormatInfo ) -> tuple[list[int], list[int]]: ... +_VideoColorRangeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_COLOR_RANGE_UNKNOWN", "unknown" +] +_VideoColorRangeValueType: TypeAlias = VideoColorRange | _VideoColorRangeLiteralType + class VideoDitherMethod(GObject.GEnum): BAYER = 4 FLOYD_STEINBERG = 2 @@ -3169,6 +3835,22 @@ class VideoDitherMethod(GObject.GEnum): SIERRA_LITE = 3 VERTERR = 1 +_VideoDitherMethodLiteralType: TypeAlias = Literal[ + "GST_VIDEO_DITHER_BAYER", + "GST_VIDEO_DITHER_FLOYD_STEINBERG", + "GST_VIDEO_DITHER_NONE", + "GST_VIDEO_DITHER_SIERRA_LITE", + "GST_VIDEO_DITHER_VERTERR", + "bayer", + "floyd-steinberg", + "none", + "sierra-lite", + "verterr", +] +_VideoDitherMethodValueType: TypeAlias = ( + VideoDitherMethod | _VideoDitherMethodLiteralType +) + class VideoFieldOrder(GObject.GEnum): BOTTOM_FIELD_FIRST = 2 TOP_FIELD_FIRST = 1 @@ -3176,7 +3858,17 @@ class VideoFieldOrder(GObject.GEnum): @staticmethod def from_string(order: str) -> VideoFieldOrder: ... @staticmethod - def to_string(order: VideoFieldOrder) -> str: ... + def to_string(order: _VideoFieldOrderValueType) -> str: ... + +_VideoFieldOrderLiteralType: TypeAlias = Literal[ + "GST_VIDEO_FIELD_ORDER_BOTTOM_FIELD_FIRST", + "GST_VIDEO_FIELD_ORDER_TOP_FIELD_FIRST", + "GST_VIDEO_FIELD_ORDER_UNKNOWN", + "bottom-field-first", + "top-field-first", + "unknown", +] +_VideoFieldOrderValueType: TypeAlias = VideoFieldOrder | _VideoFieldOrderLiteralType class VideoFormat(GObject.GEnum): A420 = 34 @@ -3336,13 +4028,301 @@ class VideoFormat(GObject.GEnum): @staticmethod def from_string(format: str) -> VideoFormat: ... @staticmethod - def get_info(format: VideoFormat) -> VideoFormatInfo: ... + def get_info(format: _VideoFormatValueType) -> VideoFormatInfo: ... @staticmethod - def get_palette(format: VideoFormat) -> tuple[int, int]: ... + def get_palette(format: _VideoFormatValueType) -> tuple[int, int]: ... @staticmethod - def to_fourcc(format: VideoFormat) -> int: ... + def to_fourcc(format: _VideoFormatValueType) -> int: ... @staticmethod - def to_string(format: VideoFormat) -> str: ... + def to_string(format: _VideoFormatValueType) -> str: ... + +_VideoFormatLiteralType: TypeAlias = Literal[ + "GST_VIDEO_FORMAT_A420", + "GST_VIDEO_FORMAT_A420_10BE", + "GST_VIDEO_FORMAT_A420_10LE", + "GST_VIDEO_FORMAT_A420_12BE", + "GST_VIDEO_FORMAT_A420_12LE", + "GST_VIDEO_FORMAT_A420_16BE", + "GST_VIDEO_FORMAT_A420_16LE", + "GST_VIDEO_FORMAT_A422", + "GST_VIDEO_FORMAT_A422_10BE", + "GST_VIDEO_FORMAT_A422_10LE", + "GST_VIDEO_FORMAT_A422_12BE", + "GST_VIDEO_FORMAT_A422_12LE", + "GST_VIDEO_FORMAT_A422_16BE", + "GST_VIDEO_FORMAT_A422_16LE", + "GST_VIDEO_FORMAT_A444", + "GST_VIDEO_FORMAT_A444_10BE", + "GST_VIDEO_FORMAT_A444_10LE", + "GST_VIDEO_FORMAT_A444_12BE", + "GST_VIDEO_FORMAT_A444_12LE", + "GST_VIDEO_FORMAT_A444_16BE", + "GST_VIDEO_FORMAT_A444_16LE", + "GST_VIDEO_FORMAT_ABGR", + "GST_VIDEO_FORMAT_ABGR64_BE", + "GST_VIDEO_FORMAT_ABGR64_LE", + "GST_VIDEO_FORMAT_ARGB", + "GST_VIDEO_FORMAT_ARGB64", + "GST_VIDEO_FORMAT_ARGB64_BE", + "GST_VIDEO_FORMAT_ARGB64_LE", + "GST_VIDEO_FORMAT_AV12", + "GST_VIDEO_FORMAT_AYUV", + "GST_VIDEO_FORMAT_AYUV64", + "GST_VIDEO_FORMAT_BGR", + "GST_VIDEO_FORMAT_BGR10A2_LE", + "GST_VIDEO_FORMAT_BGR10x2_LE", + "GST_VIDEO_FORMAT_BGR15", + "GST_VIDEO_FORMAT_BGR16", + "GST_VIDEO_FORMAT_BGRA", + "GST_VIDEO_FORMAT_BGRA64_BE", + "GST_VIDEO_FORMAT_BGRA64_LE", + "GST_VIDEO_FORMAT_BGRP", + "GST_VIDEO_FORMAT_BGRx", + "GST_VIDEO_FORMAT_DMA_DRM", + "GST_VIDEO_FORMAT_ENCODED", + "GST_VIDEO_FORMAT_GBR", + "GST_VIDEO_FORMAT_GBRA", + "GST_VIDEO_FORMAT_GBRA_10BE", + "GST_VIDEO_FORMAT_GBRA_10LE", + "GST_VIDEO_FORMAT_GBRA_12BE", + "GST_VIDEO_FORMAT_GBRA_12LE", + "GST_VIDEO_FORMAT_GBR_10BE", + "GST_VIDEO_FORMAT_GBR_10LE", + "GST_VIDEO_FORMAT_GBR_12BE", + "GST_VIDEO_FORMAT_GBR_12LE", + "GST_VIDEO_FORMAT_GBR_16BE", + "GST_VIDEO_FORMAT_GBR_16LE", + "GST_VIDEO_FORMAT_GRAY10_LE16", + "GST_VIDEO_FORMAT_GRAY10_LE32", + "GST_VIDEO_FORMAT_GRAY16_BE", + "GST_VIDEO_FORMAT_GRAY16_LE", + "GST_VIDEO_FORMAT_GRAY8", + "GST_VIDEO_FORMAT_I420", + "GST_VIDEO_FORMAT_I420_10BE", + "GST_VIDEO_FORMAT_I420_10LE", + "GST_VIDEO_FORMAT_I420_12BE", + "GST_VIDEO_FORMAT_I420_12LE", + "GST_VIDEO_FORMAT_I422_10BE", + "GST_VIDEO_FORMAT_I422_10LE", + "GST_VIDEO_FORMAT_I422_12BE", + "GST_VIDEO_FORMAT_I422_12LE", + "GST_VIDEO_FORMAT_IYU1", + "GST_VIDEO_FORMAT_IYU2", + "GST_VIDEO_FORMAT_MT2110R", + "GST_VIDEO_FORMAT_MT2110T", + "GST_VIDEO_FORMAT_NV12", + "GST_VIDEO_FORMAT_NV12_10BE_8L128", + "GST_VIDEO_FORMAT_NV12_10LE32", + "GST_VIDEO_FORMAT_NV12_10LE40", + "GST_VIDEO_FORMAT_NV12_10LE40_4L4", + "GST_VIDEO_FORMAT_NV12_16L32S", + "GST_VIDEO_FORMAT_NV12_32L32", + "GST_VIDEO_FORMAT_NV12_4L4", + "GST_VIDEO_FORMAT_NV12_64Z32", + "GST_VIDEO_FORMAT_NV12_8L128", + "GST_VIDEO_FORMAT_NV16", + "GST_VIDEO_FORMAT_NV16_10LE32", + "GST_VIDEO_FORMAT_NV16_10LE40", + "GST_VIDEO_FORMAT_NV21", + "GST_VIDEO_FORMAT_NV24", + "GST_VIDEO_FORMAT_NV61", + "GST_VIDEO_FORMAT_P010_10BE", + "GST_VIDEO_FORMAT_P010_10LE", + "GST_VIDEO_FORMAT_P012_BE", + "GST_VIDEO_FORMAT_P012_LE", + "GST_VIDEO_FORMAT_P016_BE", + "GST_VIDEO_FORMAT_P016_LE", + "GST_VIDEO_FORMAT_RBGA", + "GST_VIDEO_FORMAT_RGB", + "GST_VIDEO_FORMAT_RGB10A2_LE", + "GST_VIDEO_FORMAT_RGB10x2_LE", + "GST_VIDEO_FORMAT_RGB15", + "GST_VIDEO_FORMAT_RGB16", + "GST_VIDEO_FORMAT_RGB8P", + "GST_VIDEO_FORMAT_RGBA", + "GST_VIDEO_FORMAT_RGBA64_BE", + "GST_VIDEO_FORMAT_RGBA64_LE", + "GST_VIDEO_FORMAT_RGBP", + "GST_VIDEO_FORMAT_RGBx", + "GST_VIDEO_FORMAT_UNKNOWN", + "GST_VIDEO_FORMAT_UYVP", + "GST_VIDEO_FORMAT_UYVY", + "GST_VIDEO_FORMAT_VUYA", + "GST_VIDEO_FORMAT_VYUY", + "GST_VIDEO_FORMAT_Y210", + "GST_VIDEO_FORMAT_Y212_BE", + "GST_VIDEO_FORMAT_Y212_LE", + "GST_VIDEO_FORMAT_Y216_BE", + "GST_VIDEO_FORMAT_Y216_LE", + "GST_VIDEO_FORMAT_Y410", + "GST_VIDEO_FORMAT_Y412_BE", + "GST_VIDEO_FORMAT_Y412_LE", + "GST_VIDEO_FORMAT_Y416_BE", + "GST_VIDEO_FORMAT_Y416_LE", + "GST_VIDEO_FORMAT_Y41B", + "GST_VIDEO_FORMAT_Y42B", + "GST_VIDEO_FORMAT_Y444", + "GST_VIDEO_FORMAT_Y444_10BE", + "GST_VIDEO_FORMAT_Y444_10LE", + "GST_VIDEO_FORMAT_Y444_12BE", + "GST_VIDEO_FORMAT_Y444_12LE", + "GST_VIDEO_FORMAT_Y444_16BE", + "GST_VIDEO_FORMAT_Y444_16LE", + "GST_VIDEO_FORMAT_YUV9", + "GST_VIDEO_FORMAT_YUY2", + "GST_VIDEO_FORMAT_YV12", + "GST_VIDEO_FORMAT_YVU9", + "GST_VIDEO_FORMAT_YVYU", + "GST_VIDEO_FORMAT_r210", + "GST_VIDEO_FORMAT_v210", + "GST_VIDEO_FORMAT_v216", + "GST_VIDEO_FORMAT_v308", + "GST_VIDEO_FORMAT_xBGR", + "GST_VIDEO_FORMAT_xRGB", + "a420", + "a420-10be", + "a420-10le", + "a420-12be", + "a420-12le", + "a420-16be", + "a420-16le", + "a422", + "a422-10be", + "a422-10le", + "a422-12be", + "a422-12le", + "a422-16be", + "a422-16le", + "a444", + "a444-10be", + "a444-10le", + "a444-12be", + "a444-12le", + "a444-16be", + "a444-16le", + "abgr", + "abgr64-be", + "abgr64-le", + "argb", + "argb64", + "argb64-be", + "argb64-le", + "av12", + "ayuv", + "ayuv64", + "bgr", + "bgr10a2-le", + "bgr10x2-le", + "bgr15", + "bgr16", + "bgra", + "bgra64-be", + "bgra64-le", + "bgrp", + "bgrx", + "dma-drm", + "encoded", + "gbr", + "gbr-10be", + "gbr-10le", + "gbr-12be", + "gbr-12le", + "gbr-16be", + "gbr-16le", + "gbra", + "gbra-10be", + "gbra-10le", + "gbra-12be", + "gbra-12le", + "gray10-le16", + "gray10-le32", + "gray16-be", + "gray16-le", + "gray8", + "i420", + "i420-10be", + "i420-10le", + "i420-12be", + "i420-12le", + "i422-10be", + "i422-10le", + "i422-12be", + "i422-12le", + "iyu1", + "iyu2", + "mt2110r", + "mt2110t", + "nv12", + "nv12-10be-8l128", + "nv12-10le32", + "nv12-10le40", + "nv12-10le40-4l4", + "nv12-16l32s", + "nv12-32l32", + "nv12-4l4", + "nv12-64z32", + "nv12-8l128", + "nv16", + "nv16-10le32", + "nv16-10le40", + "nv21", + "nv24", + "nv61", + "p010-10be", + "p010-10le", + "p012-be", + "p012-le", + "p016-be", + "p016-le", + "r210", + "rbga", + "rgb", + "rgb10a2-le", + "rgb10x2-le", + "rgb15", + "rgb16", + "rgb8p", + "rgba", + "rgba64-be", + "rgba64-le", + "rgbp", + "rgbx", + "unknown", + "uyvp", + "uyvy", + "v210", + "v216", + "v308", + "vuya", + "vyuy", + "xbgr", + "xrgb", + "y210", + "y212-be", + "y212-le", + "y216-be", + "y216-le", + "y410", + "y412-be", + "y412-le", + "y416-be", + "y416-le", + "y41b", + "y42b", + "y444", + "y444-10be", + "y444-10le", + "y444-12be", + "y444-12le", + "y444-16be", + "y444-16le", + "yuv9", + "yuy2", + "yv12", + "yvu9", + "yvyu", +] +_VideoFormatValueType: TypeAlias = VideoFormat | _VideoFormatLiteralType class VideoGLTextureOrientation(GObject.GEnum): FLIP_Y_FLIP = 3 @@ -3350,6 +4330,20 @@ class VideoGLTextureOrientation(GObject.GEnum): NORMAL_Y_FLIP = 1 NORMAL_Y_NORMAL = 0 +_VideoGLTextureOrientationLiteralType: TypeAlias = Literal[ + "GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_FLIP", + "GST_VIDEO_GL_TEXTURE_ORIENTATION_X_FLIP_Y_NORMAL", + "GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_FLIP", + "GST_VIDEO_GL_TEXTURE_ORIENTATION_X_NORMAL_Y_NORMAL", + "flip-y-flip", + "flip-y-normal", + "normal-y-flip", + "normal-y-normal", +] +_VideoGLTextureOrientationValueType: TypeAlias = ( + VideoGLTextureOrientation | _VideoGLTextureOrientationLiteralType +) + class VideoGLTextureType(GObject.GEnum): LUMINANCE = 0 LUMINANCE_ALPHA = 1 @@ -3359,10 +4353,35 @@ class VideoGLTextureType(GObject.GEnum): RGB16 = 2 RGBA = 4 +_VideoGLTextureTypeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE", + "GST_VIDEO_GL_TEXTURE_TYPE_LUMINANCE_ALPHA", + "GST_VIDEO_GL_TEXTURE_TYPE_R", + "GST_VIDEO_GL_TEXTURE_TYPE_RG", + "GST_VIDEO_GL_TEXTURE_TYPE_RGB", + "GST_VIDEO_GL_TEXTURE_TYPE_RGB16", + "GST_VIDEO_GL_TEXTURE_TYPE_RGBA", + "luminance", + "luminance-alpha", + "r", + "rg", + "rgb", + "rgb16", + "rgba", +] +_VideoGLTextureTypeValueType: TypeAlias = ( + VideoGLTextureType | _VideoGLTextureTypeLiteralType +) + class VideoGammaMode(GObject.GEnum): NONE = 0 REMAP = 1 +_VideoGammaModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_GAMMA_MODE_NONE", "GST_VIDEO_GAMMA_MODE_REMAP", "none", "remap" +] +_VideoGammaModeValueType: TypeAlias = VideoGammaMode | _VideoGammaModeLiteralType + class VideoInterlaceMode(GObject.GEnum): ALTERNATE = 4 FIELDS = 3 @@ -3372,7 +4391,23 @@ class VideoInterlaceMode(GObject.GEnum): @staticmethod def from_string(mode: str) -> VideoInterlaceMode: ... @staticmethod - def to_string(mode: VideoInterlaceMode) -> str: ... + def to_string(mode: _VideoInterlaceModeValueType) -> str: ... + +_VideoInterlaceModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_INTERLACE_MODE_ALTERNATE", + "GST_VIDEO_INTERLACE_MODE_FIELDS", + "GST_VIDEO_INTERLACE_MODE_INTERLEAVED", + "GST_VIDEO_INTERLACE_MODE_MIXED", + "GST_VIDEO_INTERLACE_MODE_PROGRESSIVE", + "alternate", + "fields", + "interleaved", + "mixed", + "progressive", +] +_VideoInterlaceModeValueType: TypeAlias = ( + VideoInterlaceMode | _VideoInterlaceModeLiteralType +) class VideoMatrixMode(GObject.GEnum): FULL = 0 @@ -3380,6 +4415,18 @@ class VideoMatrixMode(GObject.GEnum): NONE = 3 OUTPUT_ONLY = 2 +_VideoMatrixModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_MATRIX_MODE_FULL", + "GST_VIDEO_MATRIX_MODE_INPUT_ONLY", + "GST_VIDEO_MATRIX_MODE_NONE", + "GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY", + "full", + "input-only", + "none", + "output-only", +] +_VideoMatrixModeValueType: TypeAlias = VideoMatrixMode | _VideoMatrixModeLiteralType + class VideoMultiviewFramePacking(GObject.GEnum): CHECKERBOARD = 8 COLUMN_INTERLEAVED = 5 @@ -3392,6 +4439,32 @@ class VideoMultiviewFramePacking(GObject.GEnum): SIDE_BY_SIDE_QUINCUNX = 4 TOP_BOTTOM = 7 +_VideoMultiviewFramePackingLiteralType: TypeAlias = Literal[ + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_CHECKERBOARD", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_COLUMN_INTERLEAVED", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_LEFT", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_MONO", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_NONE", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_RIGHT", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_ROW_INTERLEAVED", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_SIDE_BY_SIDE_QUINCUNX", + "GST_VIDEO_MULTIVIEW_FRAME_PACKING_TOP_BOTTOM", + "checkerboard", + "column-interleaved", + "left", + "mono", + "none", + "right", + "row-interleaved", + "side-by-side", + "side-by-side-quincunx", + "top-bottom", +] +_VideoMultiviewFramePackingValueType: TypeAlias = ( + VideoMultiviewFramePacking | _VideoMultiviewFramePackingLiteralType +) + class VideoMultiviewMode(GObject.GEnum): CHECKERBOARD = 8 COLUMN_INTERLEAVED = 5 @@ -3409,7 +4482,39 @@ class VideoMultiviewMode(GObject.GEnum): @staticmethod def from_caps_string(caps_mview_mode: str) -> VideoMultiviewMode: ... @staticmethod - def to_caps_string(mview_mode: VideoMultiviewMode) -> str | None: ... + def to_caps_string(mview_mode: _VideoMultiviewModeValueType) -> str | None: ... + +_VideoMultiviewModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_MULTIVIEW_MODE_CHECKERBOARD", + "GST_VIDEO_MULTIVIEW_MODE_COLUMN_INTERLEAVED", + "GST_VIDEO_MULTIVIEW_MODE_FRAME_BY_FRAME", + "GST_VIDEO_MULTIVIEW_MODE_LEFT", + "GST_VIDEO_MULTIVIEW_MODE_MONO", + "GST_VIDEO_MULTIVIEW_MODE_MULTIVIEW_FRAME_BY_FRAME", + "GST_VIDEO_MULTIVIEW_MODE_NONE", + "GST_VIDEO_MULTIVIEW_MODE_RIGHT", + "GST_VIDEO_MULTIVIEW_MODE_ROW_INTERLEAVED", + "GST_VIDEO_MULTIVIEW_MODE_SEPARATED", + "GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE", + "GST_VIDEO_MULTIVIEW_MODE_SIDE_BY_SIDE_QUINCUNX", + "GST_VIDEO_MULTIVIEW_MODE_TOP_BOTTOM", + "checkerboard", + "column-interleaved", + "frame-by-frame", + "left", + "mono", + "multiview-frame-by-frame", + "none", + "right", + "row-interleaved", + "separated", + "side-by-side", + "side-by-side-quincunx", + "top-bottom", +] +_VideoMultiviewModeValueType: TypeAlias = ( + VideoMultiviewMode | _VideoMultiviewModeLiteralType +) class VideoOrientationMethod(GObject.GEnum): AUTO = 8 @@ -3420,11 +4525,43 @@ class VideoOrientationMethod(GObject.GEnum): UR_LL = 7 VERT = 5 +_VideoOrientationMethodLiteralType: TypeAlias = Literal[ + "GST_VIDEO_ORIENTATION_AUTO", + "GST_VIDEO_ORIENTATION_CUSTOM", + "GST_VIDEO_ORIENTATION_HORIZ", + "GST_VIDEO_ORIENTATION_IDENTITY", + "GST_VIDEO_ORIENTATION_UL_LR", + "GST_VIDEO_ORIENTATION_UR_LL", + "GST_VIDEO_ORIENTATION_VERT", + "auto", + "custom", + "horiz", + "identity", + "ul-lr", + "ur-ll", + "vert", +] +_VideoOrientationMethodValueType: TypeAlias = ( + VideoOrientationMethod | _VideoOrientationMethodLiteralType +) + class VideoPrimariesMode(GObject.GEnum): FAST = 2 MERGE_ONLY = 1 NONE = 0 +_VideoPrimariesModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_PRIMARIES_MODE_FAST", + "GST_VIDEO_PRIMARIES_MODE_MERGE_ONLY", + "GST_VIDEO_PRIMARIES_MODE_NONE", + "fast", + "merge-only", + "none", +] +_VideoPrimariesModeValueType: TypeAlias = ( + VideoPrimariesMode | _VideoPrimariesModeLiteralType +) + class VideoResamplerMethod(GObject.GEnum): CUBIC = 2 LANCZOS = 4 @@ -3432,14 +4569,43 @@ class VideoResamplerMethod(GObject.GEnum): NEAREST = 0 SINC = 3 +_VideoResamplerMethodLiteralType: TypeAlias = Literal[ + "GST_VIDEO_RESAMPLER_METHOD_CUBIC", + "GST_VIDEO_RESAMPLER_METHOD_LANCZOS", + "GST_VIDEO_RESAMPLER_METHOD_LINEAR", + "GST_VIDEO_RESAMPLER_METHOD_NEAREST", + "GST_VIDEO_RESAMPLER_METHOD_SINC", + "cubic", + "lanczos", + "linear", + "nearest", + "sinc", +] +_VideoResamplerMethodValueType: TypeAlias = ( + VideoResamplerMethod | _VideoResamplerMethodLiteralType +) + class VideoTileMode(GObject.GEnum): LINEAR = 131072 UNKNOWN = 0 ZFLIPZ_2X2 = 65536 +_VideoTileModeLiteralType: TypeAlias = Literal[ + "GST_VIDEO_TILE_MODE_LINEAR", + "GST_VIDEO_TILE_MODE_UNKNOWN", + "GST_VIDEO_TILE_MODE_ZFLIPZ_2X2", + "linear", + "unknown", + "zflipz-2x2", +] +_VideoTileModeValueType: TypeAlias = VideoTileMode | _VideoTileModeLiteralType + class VideoTileType(GObject.GEnum): INDEXED = 0 +_VideoTileTypeLiteralType: TypeAlias = Literal["GST_VIDEO_TILE_TYPE_INDEXED", "indexed"] +_VideoTileTypeValueType: TypeAlias = VideoTileType | _VideoTileTypeLiteralType + class VideoTransferFunction(GObject.GEnum): ADOBERGB = 12 ARIB_STD_B67 = 15 @@ -3459,22 +4625,74 @@ class VideoTransferFunction(GObject.GEnum): SRGB = 7 UNKNOWN = 0 @staticmethod - def decode(func: VideoTransferFunction, val: float) -> float: ... + def decode(func: _VideoTransferFunctionValueType, val: float) -> float: ... @staticmethod - def encode(func: VideoTransferFunction, val: float) -> float: ... + def encode(func: _VideoTransferFunctionValueType, val: float) -> float: ... @staticmethod def from_iso(value: int) -> VideoTransferFunction: ... @staticmethod def is_equivalent( - from_func: VideoTransferFunction, + from_func: _VideoTransferFunctionValueType, from_bpp: int, - to_func: VideoTransferFunction, + to_func: _VideoTransferFunctionValueType, to_bpp: int, ) -> bool: ... @staticmethod - def to_iso(func: VideoTransferFunction) -> int: ... + def to_iso(func: _VideoTransferFunctionValueType) -> int: ... + +_VideoTransferFunctionLiteralType: TypeAlias = Literal[ + "GST_VIDEO_TRANSFER_ADOBERGB", + "GST_VIDEO_TRANSFER_ARIB_STD_B67", + "GST_VIDEO_TRANSFER_BT2020_10", + "GST_VIDEO_TRANSFER_BT2020_12", + "GST_VIDEO_TRANSFER_BT601", + "GST_VIDEO_TRANSFER_BT709", + "GST_VIDEO_TRANSFER_GAMMA10", + "GST_VIDEO_TRANSFER_GAMMA18", + "GST_VIDEO_TRANSFER_GAMMA20", + "GST_VIDEO_TRANSFER_GAMMA22", + "GST_VIDEO_TRANSFER_GAMMA28", + "GST_VIDEO_TRANSFER_LOG100", + "GST_VIDEO_TRANSFER_LOG316", + "GST_VIDEO_TRANSFER_SMPTE2084", + "GST_VIDEO_TRANSFER_SMPTE240M", + "GST_VIDEO_TRANSFER_SRGB", + "GST_VIDEO_TRANSFER_UNKNOWN", + "adobergb", + "arib-std-b67", + "bt2020-10", + "bt2020-12", + "bt601", + "bt709", + "gamma10", + "gamma18", + "gamma20", + "gamma22", + "gamma28", + "log100", + "log316", + "smpte2084", + "smpte240m", + "srgb", + "unknown", +] +_VideoTransferFunctionValueType: TypeAlias = ( + VideoTransferFunction | _VideoTransferFunctionLiteralType +) class VideoVBIParserResult(GObject.GEnum): DONE = 0 ERROR = 2 OK = 1 + +_VideoVBIParserResultLiteralType: TypeAlias = Literal[ + "GST_VIDEO_VBI_PARSER_RESULT_DONE", + "GST_VIDEO_VBI_PARSER_RESULT_ERROR", + "GST_VIDEO_VBI_PARSER_RESULT_OK", + "done", + "error", + "ok", +] +_VideoVBIParserResultValueType: TypeAlias = ( + VideoVBIParserResult | _VideoVBIParserResultLiteralType +) diff --git a/src/gi-stubs/repository/GstWebRTC.pyi b/src/gi-stubs/repository/GstWebRTC.pyi index 0ff067ba..bce2fd72 100644 --- a/src/gi-stubs/repository/GstWebRTC.pyi +++ b/src/gi-stubs/repository/GstWebRTC.pyi @@ -1,5 +1,7 @@ from typing import Any +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -14,7 +16,7 @@ from gi.repository import GstSdp _DataTs = TypeVarTuple("_DataTs", default=Unpack[tuple[()]]) def webrtc_error_quark() -> int: ... -def webrtc_sdp_type_to_string(type: WebRTCSDPType) -> str: ... +def webrtc_sdp_type_to_string(type: _WebRTCSDPTypeValueType) -> str: ... class WebRTCDTLSTransport(Gst.Object): """ @@ -54,23 +56,23 @@ class WebRTCDTLSTransport(Gst.Object): """ @type_check_only class Props(Gst.Object.Props): - certificate: str + certificate: str | None client: bool @property - def remote_certificate(self) -> str: ... + def remote_certificate(self) -> str | None: ... @property def session_id(self) -> int: ... @property def state(self) -> WebRTCDTLSTransportState: ... @property - def transport(self) -> WebRTCICETransport: ... + def transport(self) -> WebRTCICETransport | None: ... @property def props(self) -> Props: ... def __init__( self, *, - certificate: str = ..., + certificate: str | None = ..., client: bool = ..., session_id: int = ..., name: str | None = ..., @@ -135,7 +137,7 @@ class WebRTCDataChannel(GObject.Object): @property def id(self) -> int: ... @property - def label(self) -> str: ... + def label(self) -> str | None: ... @property def max_packet_lifetime(self) -> int: ... @property @@ -147,7 +149,7 @@ class WebRTCDataChannel(GObject.Object): @property def priority(self) -> WebRTCPriorityType: ... @property - def protocol(self) -> str: ... + def protocol(self) -> str | None: ... @property def ready_state(self) -> WebRTCDataChannelState: ... @@ -158,13 +160,13 @@ class WebRTCDataChannel(GObject.Object): *, buffered_amount_low_threshold: int = ..., id: int = ..., - label: str = ..., + label: str | None = ..., max_packet_lifetime: int = ..., max_retransmits: int = ..., negotiated: bool = ..., ordered: bool = ..., - priority: WebRTCPriorityType = ..., - protocol: str = ..., + priority: _WebRTCPriorityTypeValueType = ..., + protocol: str | None = ..., ) -> None: ... def close(self) -> None: ... def send_data(self, data: GLib.Bytes | None = None) -> None: ... @@ -246,7 +248,7 @@ class WebRTCICE(Gst.Object): def do_add_turn_server(self, uri: str) -> bool: ... def do_close(self, promise: Gst.Promise | None) -> None: ... def do_find_transport( - self, stream: WebRTCICEStream, component: WebRTCICEComponent + self, stream: WebRTCICEStream, component: _WebRTCICEComponentValueType ) -> WebRTCICETransport | None: ... def do_gather_candidates(self, stream: WebRTCICEStream) -> bool: ... def do_get_http_proxy(self) -> str: ... @@ -280,7 +282,7 @@ class WebRTCICE(Gst.Object): def do_set_tos(self, stream: WebRTCICEStream, tos: int) -> None: ... def do_set_turn_server(self, uri: str | None) -> None: ... def find_transport( - self, stream: WebRTCICEStream, component: WebRTCICEComponent + self, stream: WebRTCICEStream, component: _WebRTCICEComponentValueType ) -> WebRTCICETransport | None: ... def gather_candidates(self, stream: WebRTCICEStream) -> bool: ... def get_http_proxy(self) -> str: ... @@ -381,7 +383,8 @@ class WebRTCICEClass(_gi.Struct): def find_transport( self, ) -> Callable[ - [WebRTCICE, WebRTCICEStream, WebRTCICEComponent], WebRTCICETransport | None + [WebRTCICE, WebRTCICEStream, _WebRTCICEComponentValueType], + WebRTCICETransport | None, ]: ... @property def gather_candidates(self) -> Callable[[WebRTCICE, WebRTCICEStream], bool]: ... @@ -490,11 +493,11 @@ class WebRTCICEStream(Gst.Object): self, *, stream_id: int = ..., name: str | None = ..., parent: Gst.Object = ... ) -> None: ... def do_find_transport( - self, component: WebRTCICEComponent + self, component: _WebRTCICEComponentValueType ) -> WebRTCICETransport | None: ... def do_gather_candidates(self) -> bool: ... def find_transport( - self, component: WebRTCICEComponent + self, component: _WebRTCICEComponentValueType ) -> WebRTCICETransport | None: ... def gather_candidates(self) -> bool: ... @@ -511,7 +514,9 @@ class WebRTCICEStreamClass(_gi.Struct): @property def find_transport( self, - ) -> Callable[[WebRTCICEStream, WebRTCICEComponent], WebRTCICETransport | None]: ... + ) -> Callable[ + [WebRTCICEStream, _WebRTCICEComponentValueType], WebRTCICETransport | None + ]: ... @property def gather_candidates(self) -> Callable[[WebRTCICEStream], bool]: ... @@ -577,17 +582,21 @@ class WebRTCICETransport(Gst.Object): def __init__( self, *, - component: WebRTCICEComponent = ..., + component: _WebRTCICEComponentValueType = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... - def connection_state_change(self, new_state: WebRTCICEConnectionState) -> None: ... + def connection_state_change( + self, new_state: _WebRTCICEConnectionStateValueType + ) -> None: ... def do_gather_candidates(self) -> bool: ... def do_get_selected_candidate_pair(self) -> WebRTCICECandidatePair | None: ... - def gathering_state_change(self, new_state: WebRTCICEGatheringState) -> None: ... + def gathering_state_change( + self, new_state: _WebRTCICEGatheringStateValueType + ) -> None: ... def get_selected_candidate_pair(self) -> WebRTCICECandidatePair | None: ... def new_candidate( - self, stream_id: int, component: WebRTCICEComponent, attr: str + self, stream_id: int, component: _WebRTCICEComponentValueType, attr: str ) -> None: ... def selected_pair_change(self) -> None: ... @@ -637,7 +646,7 @@ class WebRTCRTPReceiver(Gst.Object): @type_check_only class Props(Gst.Object.Props): @property - def transport(self) -> WebRTCDTLSTransport: ... + def transport(self) -> WebRTCDTLSTransport | None: ... @property def props(self) -> Props: ... @@ -675,20 +684,23 @@ class WebRTCRTPSender(Gst.Object): """ @type_check_only class Props(Gst.Object.Props): - priority: WebRTCPriorityType @property - def transport(self) -> WebRTCDTLSTransport: ... + def priority(self) -> WebRTCPriorityType: ... + @priority.setter + def priority(self, value: _WebRTCPriorityTypeValueType) -> None: ... + @property + def transport(self) -> WebRTCDTLSTransport | None: ... @property def props(self) -> Props: ... def __init__( self, *, - priority: WebRTCPriorityType = ..., + priority: _WebRTCPriorityTypeValueType = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... - def set_priority(self, priority: WebRTCPriorityType) -> None: ... + def set_priority(self, priority: _WebRTCPriorityTypeValueType) -> None: ... class WebRTCRTPSenderClass(_gi.Struct): ... @@ -734,31 +746,34 @@ class WebRTCRTPTransceiver(Gst.Object): """ @type_check_only class Props(Gst.Object.Props): - codec_preferences: Gst.Caps + codec_preferences: Gst.Caps | None @property def current_direction(self) -> WebRTCRTPTransceiverDirection: ... - direction: WebRTCRTPTransceiverDirection + @property + def direction(self) -> WebRTCRTPTransceiverDirection: ... + @direction.setter + def direction(self, value: _WebRTCRTPTransceiverDirectionValueType) -> None: ... @property def kind(self) -> WebRTCKind: ... @property - def mid(self) -> str: ... + def mid(self) -> str | None: ... @property def mlineindex(self) -> int: ... @property - def receiver(self) -> WebRTCRTPReceiver: ... + def receiver(self) -> WebRTCRTPReceiver | None: ... @property - def sender(self) -> WebRTCRTPSender: ... + def sender(self) -> WebRTCRTPSender | None: ... @property def props(self) -> Props: ... def __init__( self, *, - codec_preferences: Gst.Caps = ..., - direction: WebRTCRTPTransceiverDirection = ..., + codec_preferences: Gst.Caps | None = ..., + direction: _WebRTCRTPTransceiverDirectionValueType = ..., mlineindex: int = ..., - receiver: WebRTCRTPReceiver = ..., - sender: WebRTCRTPSender = ..., + receiver: WebRTCRTPReceiver | None = ..., + sender: WebRTCRTPSender | None = ..., name: str | None = ..., parent: Gst.Object = ..., ) -> None: ... @@ -806,7 +821,7 @@ class WebRTCSCTPTransport(Gst.Object): @property def state(self) -> WebRTCSCTPTransportState: ... @property - def transport(self) -> WebRTCDTLSTransport: ... + def transport(self) -> WebRTCDTLSTransport | None: ... @property def props(self) -> Props: ... @@ -830,7 +845,7 @@ class WebRTCSessionDescription(GObject.GBoxed): def free(self) -> None: ... @classmethod def new( - cls, type: WebRTCSDPType, sdp: GstSdp.SDPMessage + cls, type: _WebRTCSDPTypeValueType, sdp: GstSdp.SDPMessage ) -> WebRTCSessionDescription: ... class WebRTCBundlePolicy(GObject.GEnum): @@ -839,17 +854,53 @@ class WebRTCBundlePolicy(GObject.GEnum): MAX_COMPAT = 2 NONE = 0 +_WebRTCBundlePolicyLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_BUNDLE_POLICY_BALANCED", + "GST_WEBRTC_BUNDLE_POLICY_MAX_BUNDLE", + "GST_WEBRTC_BUNDLE_POLICY_MAX_COMPAT", + "GST_WEBRTC_BUNDLE_POLICY_NONE", + "balanced", + "max-bundle", + "max-compat", + "none", +] +_WebRTCBundlePolicyValueType: TypeAlias = ( + WebRTCBundlePolicy | _WebRTCBundlePolicyLiteralType +) + class WebRTCDTLSRole(GObject.GEnum): CLIENT = 0 SERVER = 1 UNKNOWN = 2 +_WebRTCDTLSRoleLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_DTLS_ROLE_CLIENT", + "GST_WEBRTC_DTLS_ROLE_SERVER", + "GST_WEBRTC_DTLS_ROLE_UNKNOWN", + "client", + "server", + "unknown", +] +_WebRTCDTLSRoleValueType: TypeAlias = WebRTCDTLSRole | _WebRTCDTLSRoleLiteralType + class WebRTCDTLSSetup(GObject.GEnum): ACTIVE = 2 ACTPASS = 1 NONE = 0 PASSIVE = 3 +_WebRTCDTLSSetupLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_DTLS_SETUP_ACTIVE", + "GST_WEBRTC_DTLS_SETUP_ACTPASS", + "GST_WEBRTC_DTLS_SETUP_NONE", + "GST_WEBRTC_DTLS_SETUP_PASSIVE", + "active", + "actpass", + "none", + "passive", +] +_WebRTCDTLSSetupValueType: TypeAlias = WebRTCDTLSSetup | _WebRTCDTLSSetupLiteralType + class WebRTCDTLSTransportState(GObject.GEnum): CLOSED = 1 CONNECTED = 4 @@ -857,12 +908,42 @@ class WebRTCDTLSTransportState(GObject.GEnum): FAILED = 2 NEW = 0 +_WebRTCDTLSTransportStateLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_DTLS_TRANSPORT_STATE_CLOSED", + "GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTED", + "GST_WEBRTC_DTLS_TRANSPORT_STATE_CONNECTING", + "GST_WEBRTC_DTLS_TRANSPORT_STATE_FAILED", + "GST_WEBRTC_DTLS_TRANSPORT_STATE_NEW", + "closed", + "connected", + "connecting", + "failed", + "new", +] +_WebRTCDTLSTransportStateValueType: TypeAlias = ( + WebRTCDTLSTransportState | _WebRTCDTLSTransportStateLiteralType +) + class WebRTCDataChannelState(GObject.GEnum): CLOSED = 4 CLOSING = 3 CONNECTING = 1 OPEN = 2 +_WebRTCDataChannelStateLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_DATA_CHANNEL_STATE_CLOSED", + "GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING", + "GST_WEBRTC_DATA_CHANNEL_STATE_CONNECTING", + "GST_WEBRTC_DATA_CHANNEL_STATE_OPEN", + "closed", + "closing", + "connecting", + "open", +] +_WebRTCDataChannelStateValueType: TypeAlias = ( + WebRTCDataChannelState | _WebRTCDataChannelStateLiteralType +) + class WebRTCError(GObject.GEnum): DATA_CHANNEL_FAILURE = 0 DTLS_FAILURE = 1 @@ -878,24 +959,86 @@ class WebRTCError(GObject.GEnum): @staticmethod def quark() -> int: ... +_WebRTCErrorLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ERROR_DATA_CHANNEL_FAILURE", + "GST_WEBRTC_ERROR_DTLS_FAILURE", + "GST_WEBRTC_ERROR_ENCODER_ERROR", + "GST_WEBRTC_ERROR_FINGERPRINT_FAILURE", + "GST_WEBRTC_ERROR_HARDWARE_ENCODER_NOT_AVAILABLE", + "GST_WEBRTC_ERROR_INTERNAL_FAILURE", + "GST_WEBRTC_ERROR_INVALID_MODIFICATION", + "GST_WEBRTC_ERROR_INVALID_STATE", + "GST_WEBRTC_ERROR_SCTP_FAILURE", + "GST_WEBRTC_ERROR_SDP_SYNTAX_ERROR", + "GST_WEBRTC_ERROR_TYPE_ERROR", + "data-channel-failure", + "dtls-failure", + "encoder-error", + "fingerprint-failure", + "hardware-encoder-not-available", + "internal-failure", + "invalid-modification", + "invalid-state", + "sctp-failure", + "sdp-syntax-error", + "type-error", +] +_WebRTCErrorValueType: TypeAlias = WebRTCError | _WebRTCErrorLiteralType + class WebRTCFECType(GObject.GEnum): NONE = 0 ULP_RED = 1 +_WebRTCFECTypeLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_FEC_TYPE_NONE", "GST_WEBRTC_FEC_TYPE_ULP_RED", "none", "ulp-red" +] +_WebRTCFECTypeValueType: TypeAlias = WebRTCFECType | _WebRTCFECTypeLiteralType + class WebRTCICECandidateProtocolType(GObject.GEnum): TCP = 0 UDP = 1 +_WebRTCICECandidateProtocolTypeLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_CANDIDATE_PROTOCOL_TYPE_TCP", + "GST_WEBRTC_ICE_CANDIDATE_PROTOCOL_TYPE_UDP", + "tcp", + "udp", +] +_WebRTCICECandidateProtocolTypeValueType: TypeAlias = ( + WebRTCICECandidateProtocolType | _WebRTCICECandidateProtocolTypeLiteralType +) + class WebRTCICECandidateType(GObject.GEnum): HOST = 0 PEER_REFLEXIVE = 2 RELAYED = 3 SERVER_REFLEXIVE = 1 +_WebRTCICECandidateTypeLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_CANDIDATE_TYPE_HOST", + "GST_WEBRTC_ICE_CANDIDATE_TYPE_PEER_REFLEXIVE", + "GST_WEBRTC_ICE_CANDIDATE_TYPE_RELAYED", + "GST_WEBRTC_ICE_CANDIDATE_TYPE_SERVER_REFLEXIVE", + "host", + "peer-reflexive", + "relayed", + "server-reflexive", +] +_WebRTCICECandidateTypeValueType: TypeAlias = ( + WebRTCICECandidateType | _WebRTCICECandidateTypeLiteralType +) + class WebRTCICEComponent(GObject.GEnum): RTCP = 1 RTP = 0 +_WebRTCICEComponentLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_COMPONENT_RTCP", "GST_WEBRTC_ICE_COMPONENT_RTP", "rtcp", "rtp" +] +_WebRTCICEComponentValueType: TypeAlias = ( + WebRTCICEComponent | _WebRTCICEComponentLiteralType +) + class WebRTCICEConnectionState(GObject.GEnum): CHECKING = 1 CLOSED = 6 @@ -905,30 +1048,104 @@ class WebRTCICEConnectionState(GObject.GEnum): FAILED = 4 NEW = 0 +_WebRTCICEConnectionStateLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_CONNECTION_STATE_CHECKING", + "GST_WEBRTC_ICE_CONNECTION_STATE_CLOSED", + "GST_WEBRTC_ICE_CONNECTION_STATE_COMPLETED", + "GST_WEBRTC_ICE_CONNECTION_STATE_CONNECTED", + "GST_WEBRTC_ICE_CONNECTION_STATE_DISCONNECTED", + "GST_WEBRTC_ICE_CONNECTION_STATE_FAILED", + "GST_WEBRTC_ICE_CONNECTION_STATE_NEW", + "checking", + "closed", + "completed", + "connected", + "disconnected", + "failed", + "new", +] +_WebRTCICEConnectionStateValueType: TypeAlias = ( + WebRTCICEConnectionState | _WebRTCICEConnectionStateLiteralType +) + class WebRTCICEGatheringState(GObject.GEnum): COMPLETE = 2 GATHERING = 1 NEW = 0 +_WebRTCICEGatheringStateLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE", + "GST_WEBRTC_ICE_GATHERING_STATE_GATHERING", + "GST_WEBRTC_ICE_GATHERING_STATE_NEW", + "complete", + "gathering", + "new", +] +_WebRTCICEGatheringStateValueType: TypeAlias = ( + WebRTCICEGatheringState | _WebRTCICEGatheringStateLiteralType +) + class WebRTCICERole(GObject.GEnum): CONTROLLED = 0 CONTROLLING = 1 +_WebRTCICERoleLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_ROLE_CONTROLLED", + "GST_WEBRTC_ICE_ROLE_CONTROLLING", + "controlled", + "controlling", +] +_WebRTCICERoleValueType: TypeAlias = WebRTCICERole | _WebRTCICERoleLiteralType + class WebRTCICETcpCandidateType(GObject.GEnum): ACTIVE = 0 NONE = 3 PASSIVE = 1 SO = 2 +_WebRTCICETcpCandidateTypeLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_ACTIVE", + "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_NONE", + "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_PASSIVE", + "GST_WEBRTC_ICE_TCP_CANDIDATE_TYPE_SO", + "active", + "none", + "passive", + "so", +] +_WebRTCICETcpCandidateTypeValueType: TypeAlias = ( + WebRTCICETcpCandidateType | _WebRTCICETcpCandidateTypeLiteralType +) + class WebRTCICETransportPolicy(GObject.GEnum): ALL = 0 RELAY = 1 +_WebRTCICETransportPolicyLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_ICE_TRANSPORT_POLICY_ALL", + "GST_WEBRTC_ICE_TRANSPORT_POLICY_RELAY", + "all", + "relay", +] +_WebRTCICETransportPolicyValueType: TypeAlias = ( + WebRTCICETransportPolicy | _WebRTCICETransportPolicyLiteralType +) + class WebRTCKind(GObject.GEnum): AUDIO = 1 UNKNOWN = 0 VIDEO = 2 +_WebRTCKindLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_KIND_AUDIO", + "GST_WEBRTC_KIND_UNKNOWN", + "GST_WEBRTC_KIND_VIDEO", + "audio", + "unknown", + "video", +] +_WebRTCKindValueType: TypeAlias = WebRTCKind | _WebRTCKindLiteralType + class WebRTCPeerConnectionState(GObject.GEnum): CLOSED = 5 CONNECTED = 2 @@ -937,12 +1154,44 @@ class WebRTCPeerConnectionState(GObject.GEnum): FAILED = 4 NEW = 0 +_WebRTCPeerConnectionStateLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_PEER_CONNECTION_STATE_CLOSED", + "GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTED", + "GST_WEBRTC_PEER_CONNECTION_STATE_CONNECTING", + "GST_WEBRTC_PEER_CONNECTION_STATE_DISCONNECTED", + "GST_WEBRTC_PEER_CONNECTION_STATE_FAILED", + "GST_WEBRTC_PEER_CONNECTION_STATE_NEW", + "closed", + "connected", + "connecting", + "disconnected", + "failed", + "new", +] +_WebRTCPeerConnectionStateValueType: TypeAlias = ( + WebRTCPeerConnectionState | _WebRTCPeerConnectionStateLiteralType +) + class WebRTCPriorityType(GObject.GEnum): HIGH = 4 LOW = 2 MEDIUM = 3 VERY_LOW = 1 +_WebRTCPriorityTypeLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_PRIORITY_TYPE_HIGH", + "GST_WEBRTC_PRIORITY_TYPE_LOW", + "GST_WEBRTC_PRIORITY_TYPE_MEDIUM", + "GST_WEBRTC_PRIORITY_TYPE_VERY_LOW", + "high", + "low", + "medium", + "very-low", +] +_WebRTCPriorityTypeValueType: TypeAlias = ( + WebRTCPriorityType | _WebRTCPriorityTypeLiteralType +) + class WebRTCRTPTransceiverDirection(GObject.GEnum): INACTIVE = 1 NONE = 0 @@ -950,19 +1199,61 @@ class WebRTCRTPTransceiverDirection(GObject.GEnum): SENDONLY = 2 SENDRECV = 4 +_WebRTCRTPTransceiverDirectionLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_INACTIVE", + "GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_NONE", + "GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_RECVONLY", + "GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY", + "GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV", + "inactive", + "none", + "recvonly", + "sendonly", + "sendrecv", +] +_WebRTCRTPTransceiverDirectionValueType: TypeAlias = ( + WebRTCRTPTransceiverDirection | _WebRTCRTPTransceiverDirectionLiteralType +) + class WebRTCSCTPTransportState(GObject.GEnum): CLOSED = 3 CONNECTED = 2 CONNECTING = 1 NEW = 0 +_WebRTCSCTPTransportStateLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_SCTP_TRANSPORT_STATE_CLOSED", + "GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTED", + "GST_WEBRTC_SCTP_TRANSPORT_STATE_CONNECTING", + "GST_WEBRTC_SCTP_TRANSPORT_STATE_NEW", + "closed", + "connected", + "connecting", + "new", +] +_WebRTCSCTPTransportStateValueType: TypeAlias = ( + WebRTCSCTPTransportState | _WebRTCSCTPTransportStateLiteralType +) + class WebRTCSDPType(GObject.GEnum): ANSWER = 3 OFFER = 1 PRANSWER = 2 ROLLBACK = 4 @staticmethod - def to_string(type: WebRTCSDPType) -> str: ... + def to_string(type: _WebRTCSDPTypeValueType) -> str: ... + +_WebRTCSDPTypeLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_SDP_TYPE_ANSWER", + "GST_WEBRTC_SDP_TYPE_OFFER", + "GST_WEBRTC_SDP_TYPE_PRANSWER", + "GST_WEBRTC_SDP_TYPE_ROLLBACK", + "answer", + "offer", + "pranswer", + "rollback", +] +_WebRTCSDPTypeValueType: TypeAlias = WebRTCSDPType | _WebRTCSDPTypeLiteralType class WebRTCSignalingState(GObject.GEnum): CLOSED = 1 @@ -972,6 +1263,24 @@ class WebRTCSignalingState(GObject.GEnum): HAVE_REMOTE_PRANSWER = 5 STABLE = 0 +_WebRTCSignalingStateLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_SIGNALING_STATE_CLOSED", + "GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_OFFER", + "GST_WEBRTC_SIGNALING_STATE_HAVE_LOCAL_PRANSWER", + "GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_OFFER", + "GST_WEBRTC_SIGNALING_STATE_HAVE_REMOTE_PRANSWER", + "GST_WEBRTC_SIGNALING_STATE_STABLE", + "closed", + "have-local-offer", + "have-local-pranswer", + "have-remote-offer", + "have-remote-pranswer", + "stable", +] +_WebRTCSignalingStateValueType: TypeAlias = ( + WebRTCSignalingState | _WebRTCSignalingStateLiteralType +) + class WebRTCStatsType(GObject.GEnum): CANDIDATE_PAIR = 11 CERTIFICATE = 14 @@ -987,3 +1296,35 @@ class WebRTCStatsType(GObject.GEnum): REMOTE_OUTBOUND_RTP = 5 STREAM = 9 TRANSPORT = 10 + +_WebRTCStatsTypeLiteralType: TypeAlias = Literal[ + "GST_WEBRTC_STATS_CANDIDATE_PAIR", + "GST_WEBRTC_STATS_CERTIFICATE", + "GST_WEBRTC_STATS_CODEC", + "GST_WEBRTC_STATS_CSRC", + "GST_WEBRTC_STATS_DATA_CHANNEL", + "GST_WEBRTC_STATS_INBOUND_RTP", + "GST_WEBRTC_STATS_LOCAL_CANDIDATE", + "GST_WEBRTC_STATS_OUTBOUND_RTP", + "GST_WEBRTC_STATS_PEER_CONNECTION", + "GST_WEBRTC_STATS_REMOTE_CANDIDATE", + "GST_WEBRTC_STATS_REMOTE_INBOUND_RTP", + "GST_WEBRTC_STATS_REMOTE_OUTBOUND_RTP", + "GST_WEBRTC_STATS_STREAM", + "GST_WEBRTC_STATS_TRANSPORT", + "candidate-pair", + "certificate", + "codec", + "csrc", + "data-channel", + "inbound-rtp", + "local-candidate", + "outbound-rtp", + "peer-connection", + "remote-candidate", + "remote-inbound-rtp", + "remote-outbound-rtp", + "stream", + "transport", +] +_WebRTCStatsTypeValueType: TypeAlias = WebRTCStatsType | _WebRTCStatsTypeLiteralType diff --git a/src/gi-stubs/repository/Pango.pyi b/src/gi-stubs/repository/Pango.pyi index 25ba2447..ecc9fdac 100644 --- a/src/gi-stubs/repository/Pango.pyi +++ b/src/gi-stubs/repository/Pango.pyi @@ -1,6 +1,8 @@ from typing import Any from typing import Final +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -40,11 +42,11 @@ def attr_fallback_new(enable_fallback: bool) -> Attribute: ... def attr_family_new(family: str) -> Attribute: ... def attr_font_desc_new(desc: FontDescription) -> Attribute: ... def attr_font_features_new(features: str) -> Attribute: ... -def attr_font_scale_new(scale: FontScale) -> Attribute: ... +def attr_font_scale_new(scale: _FontScaleValueType) -> Attribute: ... def attr_foreground_alpha_new(alpha: int) -> Attribute: ... def attr_foreground_new(red: int, green: int, blue: int) -> Attribute: ... -def attr_gravity_hint_new(hint: GravityHint) -> Attribute: ... -def attr_gravity_new(gravity: Gravity) -> Attribute: ... +def attr_gravity_hint_new(hint: _GravityHintValueType) -> Attribute: ... +def attr_gravity_new(gravity: _GravityValueType) -> Attribute: ... def attr_insert_hyphens_new(insert_hyphens: bool) -> Attribute: ... def attr_language_new(language: Language) -> Attribute: ... def attr_letter_spacing_new(letter_spacing: int) -> Attribute: ... @@ -52,7 +54,7 @@ def attr_line_height_new(factor: float) -> Attribute: ... def attr_line_height_new_absolute(height: int) -> Attribute: ... def attr_list_from_string(text: str) -> AttrList | None: ... def attr_overline_color_new(red: int, green: int, blue: int) -> Attribute: ... -def attr_overline_new(overline: Overline) -> Attribute: ... +def attr_overline_new(overline: _OverlineValueType) -> Attribute: ... def attr_rise_new(rise: int) -> Attribute: ... def attr_scale_new(scale_factor: float) -> Attribute: ... def attr_sentence_new() -> Attribute: ... @@ -63,20 +65,20 @@ def attr_shape_new_with_data( data: int | Any | None = None, copy_func: Callable[[Any | None], int] | None = None, ) -> Attribute: ... -def attr_show_new(flags: ShowFlags) -> Attribute: ... +def attr_show_new(flags: _ShowFlagsValueType) -> Attribute: ... def attr_size_new(size: int) -> Attribute: ... def attr_size_new_absolute(size: int) -> Attribute: ... -def attr_stretch_new(stretch: Stretch) -> Attribute: ... +def attr_stretch_new(stretch: _StretchValueType) -> Attribute: ... def attr_strikethrough_color_new(red: int, green: int, blue: int) -> Attribute: ... def attr_strikethrough_new(strikethrough: bool) -> Attribute: ... -def attr_style_new(style: Style) -> Attribute: ... -def attr_text_transform_new(transform: TextTransform) -> Attribute: ... -def attr_type_get_name(type: AttrType) -> str | None: ... +def attr_style_new(style: _StyleValueType) -> Attribute: ... +def attr_text_transform_new(transform: _TextTransformValueType) -> Attribute: ... +def attr_type_get_name(type: _AttrTypeValueType) -> str | None: ... def attr_type_register(name: str) -> AttrType: ... def attr_underline_color_new(red: int, green: int, blue: int) -> Attribute: ... -def attr_underline_new(underline: Underline) -> Attribute: ... -def attr_variant_new(variant: Variant) -> Attribute: ... -def attr_weight_new(weight: Weight) -> Attribute: ... +def attr_underline_new(underline: _UnderlineValueType) -> Attribute: ... +def attr_variant_new(variant: _VariantValueType) -> Attribute: ... +def attr_weight_new(weight: _WeightValueType) -> Attribute: ... def attr_word_new() -> Attribute: ... def bidi_type_for_unichar(ch: str) -> BidiType: ... def break_(text: str, length: int, analysis: Analysis) -> list[LogAttr]: ... @@ -95,12 +97,17 @@ def get_log_attrs( def get_mirror_char(ch: str) -> tuple[bool, str]: ... def gravity_get_for_matrix(matrix: Matrix | None = None) -> Gravity: ... def gravity_get_for_script( - script: Script, base_gravity: Gravity, hint: GravityHint + script: _ScriptValueType, + base_gravity: _GravityValueType, + hint: _GravityHintValueType, ) -> Gravity: ... def gravity_get_for_script_and_width( - script: Script, wide: bool, base_gravity: Gravity, hint: GravityHint + script: _ScriptValueType, + wide: bool, + base_gravity: _GravityValueType, + hint: _GravityHintValueType, ) -> Gravity: ... -def gravity_to_rotation(gravity: Gravity) -> float: ... +def gravity_to_rotation(gravity: _GravityValueType) -> float: ... def is_zero_width(ch: str) -> bool: ... def itemize( context: Context, @@ -112,7 +119,7 @@ def itemize( ) -> list[Item]: ... def itemize_with_base_dir( context: Context, - base_dir: Direction, + base_dir: _DirectionValueType, text: str, start_index: int, length: int, @@ -124,7 +131,7 @@ def language_get_default() -> Language: ... def language_get_preferred() -> list[Language]: ... def layout_deserialize_error_quark() -> int: ... def log2vis_get_embedding_levels( - text: str, length: int, pbase_dir: Direction + text: str, length: int, pbase_dir: _DirectionValueType ) -> tuple[bytes, Direction]: ... def markup_parser_finish( context: GLib.MarkupParseContext, @@ -147,7 +154,7 @@ def scan_int(pos: str) -> tuple[bool, str, int]: ... def scan_string(pos: str, out: GLib.String) -> tuple[bool, str]: ... def scan_word(pos: str, out: GLib.String) -> tuple[bool, str]: ... def script_for_unichar(ch: str) -> Script: ... -def script_get_sample_language(script: Script) -> Language | None: ... +def script_get_sample_language(script: _ScriptValueType) -> Language | None: ... def shape(text: str, length: int, analysis: Analysis) -> GlyphString: ... def shape_full( item_text: str, @@ -161,7 +168,7 @@ def shape_item( paragraph_text: str | None, paragraph_length: int, log_attrs: LogAttr | None, - flags: ShapeFlags, + flags: _ShapeFlagsValueType, ) -> GlyphString: ... def shape_with_flags( item_text: str, @@ -169,7 +176,7 @@ def shape_with_flags( paragraph_text: str | None, paragraph_length: int, analysis: Analysis, - flags: ShapeFlags, + flags: _ShapeFlagsValueType, ) -> GlyphString: ... def skip_space(pos: str) -> tuple[bool, str]: ... def split_file_list(str: str) -> list[str]: ... @@ -290,7 +297,7 @@ class AttrInt(_gi.Struct): class AttrIterator(GObject.GBoxed): def copy(self) -> AttrIterator: ... def destroy(self) -> None: ... - def get(self, type: AttrType) -> Attribute | None: ... + def get(self, type: _AttrTypeValueType) -> Attribute | None: ... def get_attrs(self) -> list[Attribute]: ... def get_font(self, desc: FontDescription) -> tuple[Language, list[Attribute]]: ... def next(self) -> bool: ... @@ -472,11 +479,11 @@ class Context(GObject.Object): ) -> Fontset | None: ... @classmethod def new(cls) -> Context: ... - def set_base_dir(self, direction: Direction) -> None: ... - def set_base_gravity(self, gravity: Gravity) -> None: ... + def set_base_dir(self, direction: _DirectionValueType) -> None: ... + def set_base_gravity(self, gravity: _GravityValueType) -> None: ... def set_font_description(self, desc: FontDescription) -> None: ... def set_font_map(self, font_map: FontMap | None = None) -> None: ... - def set_gravity_hint(self, hint: GravityHint) -> None: ... + def set_gravity_hint(self, hint: _GravityHintValueType) -> None: ... def set_language(self, language: Language | None = None) -> None: ... def set_matrix(self, matrix: Matrix | None = None) -> None: ... def set_round_glyph_positions(self, round_positions: bool) -> None: ... @@ -505,7 +512,7 @@ class Coverage(GObject.Object): @classmethod def new(cls) -> Coverage: ... def ref(self) -> Coverage: ... - def set(self, index_: int, level: CoverageLevel) -> None: ... + def set(self, index_: int, level: _CoverageLevelValueType) -> None: ... def to_bytes(self) -> bytes: ... def unref(self) -> None: ... @@ -623,22 +630,22 @@ class FontDescription(GObject.GBoxed): @classmethod def new(cls) -> FontDescription: ... def set_absolute_size(self, size: float) -> None: ... - def set_color(self, color: FontColor) -> None: ... + def set_color(self, color: _FontColorValueType) -> None: ... def set_family(self, family: str) -> None: ... def set_family_static(self, family: str) -> None: ... def set_features(self, features: str | None = None) -> None: ... def set_features_static(self, features: str) -> None: ... - def set_gravity(self, gravity: Gravity) -> None: ... + def set_gravity(self, gravity: _GravityValueType) -> None: ... def set_size(self, size: int) -> None: ... - def set_stretch(self, stretch: Stretch) -> None: ... - def set_style(self, style: Style) -> None: ... - def set_variant(self, variant: Variant) -> None: ... + def set_stretch(self, stretch: _StretchValueType) -> None: ... + def set_style(self, style: _StyleValueType) -> None: ... + def set_variant(self, variant: _VariantValueType) -> None: ... def set_variations(self, variations: str | None = None) -> None: ... def set_variations_static(self, variations: str) -> None: ... - def set_weight(self, weight: Weight) -> None: ... + def set_weight(self, weight: _WeightValueType) -> None: ... def to_filename(self) -> str | None: ... def to_string(self) -> str: ... - def unset_fields(self, to_unset: FontMask) -> None: ... + def unset_fields(self, to_unset: _FontMaskValueType) -> None: ... class FontFace(GObject.Object): """ @@ -1131,7 +1138,7 @@ class Language(GObject.GBoxed): def get_preferred() -> list[Language]: ... def get_sample_string(self) -> str: ... def get_scripts(self) -> list[Script]: ... - def includes_script(self, script: Script) -> bool: ... + def includes_script(self, script: _ScriptValueType) -> bool: ... def matches(self, range_list: str) -> bool: ... def to_string(self) -> str: ... @@ -1154,7 +1161,7 @@ class Layout(GObject.Object): def copy(self) -> Layout: ... @staticmethod def deserialize( - context: Context, bytes: GLib.Bytes, flags: LayoutDeserializeFlags + context: Context, bytes: GLib.Bytes, flags: _LayoutDeserializeFlagsValueType ) -> Layout | None: ... def get_alignment(self) -> Alignment: ... def get_attributes(self) -> AttrList | None: ... @@ -1201,11 +1208,11 @@ class Layout(GObject.Object): ) -> tuple[int, int]: ... @classmethod def new(cls, context: Context) -> Layout: ... - def serialize(self, flags: LayoutSerializeFlags) -> GLib.Bytes: ... - def set_alignment(self, alignment: Alignment) -> None: ... + def serialize(self, flags: _LayoutSerializeFlagsValueType) -> GLib.Bytes: ... + def set_alignment(self, alignment: _AlignmentValueType) -> None: ... def set_attributes(self, attrs: AttrList | None = None) -> None: ... def set_auto_dir(self, auto_dir: bool) -> None: ... - def set_ellipsize(self, ellipsize: EllipsizeMode) -> None: ... + def set_ellipsize(self, ellipsize: _EllipsizeModeValueType) -> None: ... def set_font_description(self, desc: FontDescription | None = None) -> None: ... def set_height(self, height: int) -> None: ... def set_indent(self, indent: int) -> None: ... @@ -1221,8 +1228,10 @@ class Layout(GObject.Object): def set_tabs(self, tabs: TabArray | None = None) -> None: ... def set_text(self, text: str, length: int = -1) -> None: ... def set_width(self, width: int) -> None: ... - def set_wrap(self, wrap: WrapMode) -> None: ... - def write_to_file(self, flags: LayoutSerializeFlags, filename: str) -> bool: ... + def set_wrap(self, wrap: _WrapModeValueType) -> None: ... + def write_to_file( + self, flags: _LayoutSerializeFlagsValueType, filename: str + ) -> bool: ... def xy_to_index(self, x: int, y: int) -> tuple[bool, int, int]: ... class LayoutClass(_gi.Struct): ... @@ -1385,12 +1394,12 @@ class Renderer(GObject.Object): self, font: Font, glyphs: GlyphString, x: int, y: int ) -> None: ... def do_draw_rectangle( - self, part: RenderPart, x: int, y: int, width: int, height: int + self, part: _RenderPartValueType, x: int, y: int, width: int, height: int ) -> None: ... def do_draw_shape(self, attr: AttrShape, x: int, y: int) -> None: ... def do_draw_trapezoid( self, - part: RenderPart, + part: _RenderPartValueType, y1_: float, x11: float, x21: float, @@ -1399,7 +1408,7 @@ class Renderer(GObject.Object): x22: float, ) -> None: ... def do_end(self) -> None: ... - def do_part_changed(self, part: RenderPart) -> None: ... + def do_part_changed(self, part: _RenderPartValueType) -> None: ... def do_prepare_run(self, run: GlyphItem) -> None: ... def draw_error_underline(self, x: int, y: int, width: int, height: int) -> None: ... def draw_glyph(self, font: Font, glyph: int, x: float, y: float) -> None: ... @@ -1410,11 +1419,11 @@ class Renderer(GObject.Object): def draw_layout(self, layout: Layout, x: int, y: int) -> None: ... def draw_layout_line(self, line: LayoutLine, x: int, y: int) -> None: ... def draw_rectangle( - self, part: RenderPart, x: int, y: int, width: int, height: int + self, part: _RenderPartValueType, x: int, y: int, width: int, height: int ) -> None: ... def draw_trapezoid( self, - part: RenderPart, + part: _RenderPartValueType, y1_: float, x11: float, x21: float, @@ -1422,14 +1431,16 @@ class Renderer(GObject.Object): x12: float, x22: float, ) -> None: ... - def get_alpha(self, part: RenderPart) -> int: ... - def get_color(self, part: RenderPart) -> Color | None: ... + def get_alpha(self, part: _RenderPartValueType) -> int: ... + def get_color(self, part: _RenderPartValueType) -> Color | None: ... def get_layout(self) -> Layout | None: ... def get_layout_line(self) -> LayoutLine | None: ... def get_matrix(self) -> Matrix | None: ... - def part_changed(self, part: RenderPart) -> None: ... - def set_alpha(self, part: RenderPart, alpha: int) -> None: ... - def set_color(self, part: RenderPart, color: Color | None = None) -> None: ... + def part_changed(self, part: _RenderPartValueType) -> None: ... + def set_alpha(self, part: _RenderPartValueType, alpha: int) -> None: ... + def set_color( + self, part: _RenderPartValueType, color: Color | None = None + ) -> None: ... def set_matrix(self, matrix: Matrix | None = None) -> None: ... class RendererClass(_gi.Struct): @@ -1449,7 +1460,7 @@ class RendererClass(_gi.Struct): @property def draw_rectangle( self, - ) -> Callable[[Renderer, RenderPart, int, int, int, int], None]: ... + ) -> Callable[[Renderer, _RenderPartValueType, int, int, int, int], None]: ... @property def draw_error_underline( self, @@ -1460,12 +1471,12 @@ class RendererClass(_gi.Struct): def draw_trapezoid( self, ) -> Callable[ - [Renderer, RenderPart, float, float, float, float, float, float], None + [Renderer, _RenderPartValueType, float, float, float, float, float, float], None ]: ... @property def draw_glyph(self) -> Callable[[Renderer, Font, int, float, float], None]: ... @property - def part_changed(self) -> Callable[[Renderer, RenderPart], None]: ... + def part_changed(self) -> Callable[[Renderer, _RenderPartValueType], None]: ... @property def begin(self) -> Callable[[Renderer], None]: ... @property @@ -1517,7 +1528,9 @@ class TabArray(GObject.GBoxed): def resize(self, new_size: int) -> None: ... def set_decimal_point(self, tab_index: int, decimal_point: str) -> None: ... def set_positions_in_pixels(self, positions_in_pixels: bool) -> None: ... - def set_tab(self, tab_index: int, alignment: TabAlign, location: int) -> None: ... + def set_tab( + self, tab_index: int, alignment: _TabAlignValueType, location: int + ) -> None: ... def sort(self) -> None: ... def to_string(self) -> str: ... @@ -1533,30 +1546,113 @@ class FontMask(GObject.GFlags): VARIATIONS = 128 WEIGHT = 8 +_FontMaskLiteralType: TypeAlias = Literal[ + "PANGO_FONT_MASK_COLOR", + "PANGO_FONT_MASK_FAMILY", + "PANGO_FONT_MASK_FEATURES", + "PANGO_FONT_MASK_GRAVITY", + "PANGO_FONT_MASK_SIZE", + "PANGO_FONT_MASK_STRETCH", + "PANGO_FONT_MASK_STYLE", + "PANGO_FONT_MASK_VARIANT", + "PANGO_FONT_MASK_VARIATIONS", + "PANGO_FONT_MASK_WEIGHT", + "color", + "family", + "features", + "gravity", + "size", + "stretch", + "style", + "variant", + "variations", + "weight", +] +_FontMaskValueType: TypeAlias = ( + FontMask | _FontMaskLiteralType | tuple[_FontMaskLiteralType, ...] +) + class LayoutDeserializeFlags(GObject.GFlags): CONTEXT = 1 DEFAULT = 0 +_LayoutDeserializeFlagsLiteralType: TypeAlias = Literal[ + "PANGO_LAYOUT_DESERIALIZE_CONTEXT", + "PANGO_LAYOUT_DESERIALIZE_DEFAULT", + "context", + "default", +] +_LayoutDeserializeFlagsValueType: TypeAlias = ( + LayoutDeserializeFlags + | _LayoutDeserializeFlagsLiteralType + | tuple[_LayoutDeserializeFlagsLiteralType, ...] +) + class LayoutSerializeFlags(GObject.GFlags): CONTEXT = 1 DEFAULT = 0 OUTPUT = 2 +_LayoutSerializeFlagsLiteralType: TypeAlias = Literal[ + "PANGO_LAYOUT_SERIALIZE_CONTEXT", + "PANGO_LAYOUT_SERIALIZE_DEFAULT", + "PANGO_LAYOUT_SERIALIZE_OUTPUT", + "context", + "default", + "output", +] +_LayoutSerializeFlagsValueType: TypeAlias = ( + LayoutSerializeFlags + | _LayoutSerializeFlagsLiteralType + | tuple[_LayoutSerializeFlagsLiteralType, ...] +) + class ShapeFlags(GObject.GFlags): NONE = 0 ROUND_POSITIONS = 1 +_ShapeFlagsLiteralType: TypeAlias = Literal[ + "PANGO_SHAPE_NONE", "PANGO_SHAPE_ROUND_POSITIONS", "none", "round-positions" +] +_ShapeFlagsValueType: TypeAlias = ( + ShapeFlags | _ShapeFlagsLiteralType | tuple[_ShapeFlagsLiteralType, ...] +) + class ShowFlags(GObject.GFlags): IGNORABLES = 4 LINE_BREAKS = 2 NONE = 0 SPACES = 1 +_ShowFlagsLiteralType: TypeAlias = Literal[ + "PANGO_SHOW_IGNORABLES", + "PANGO_SHOW_LINE_BREAKS", + "PANGO_SHOW_NONE", + "PANGO_SHOW_SPACES", + "ignorables", + "line-breaks", + "none", + "spaces", +] +_ShowFlagsValueType: TypeAlias = ( + ShowFlags | _ShowFlagsLiteralType | tuple[_ShowFlagsLiteralType, ...] +) + class Alignment(GObject.GEnum): CENTER = 1 LEFT = 0 RIGHT = 2 +_AlignmentLiteralType: TypeAlias = Literal[ + "PANGO_ALIGN_CENTER", + "PANGO_ALIGN_LEFT", + "PANGO_ALIGN_RIGHT", + "center", + "left", + "right", +] +_AlignmentValueType: TypeAlias = Alignment | _AlignmentLiteralType + class AttrType(GObject.GEnum): ABSOLUTE_LINE_HEIGHT = 32 ABSOLUTE_SIZE = 20 @@ -1597,15 +1693,105 @@ class AttrType(GObject.GEnum): WEIGHT = 4 WORD = 34 @staticmethod - def get_name(type: AttrType) -> str | None: ... + def get_name(type: _AttrTypeValueType) -> str | None: ... @staticmethod def register(name: str) -> AttrType: ... +_AttrTypeLiteralType: TypeAlias = Literal[ + "PANGO_ATTR_ABSOLUTE_LINE_HEIGHT", + "PANGO_ATTR_ABSOLUTE_SIZE", + "PANGO_ATTR_ALLOW_BREAKS", + "PANGO_ATTR_BACKGROUND", + "PANGO_ATTR_BACKGROUND_ALPHA", + "PANGO_ATTR_BASELINE_SHIFT", + "PANGO_ATTR_FALLBACK", + "PANGO_ATTR_FAMILY", + "PANGO_ATTR_FONT_DESC", + "PANGO_ATTR_FONT_FEATURES", + "PANGO_ATTR_FONT_SCALE", + "PANGO_ATTR_FOREGROUND", + "PANGO_ATTR_FOREGROUND_ALPHA", + "PANGO_ATTR_GRAVITY", + "PANGO_ATTR_GRAVITY_HINT", + "PANGO_ATTR_INSERT_HYPHENS", + "PANGO_ATTR_INVALID", + "PANGO_ATTR_LANGUAGE", + "PANGO_ATTR_LETTER_SPACING", + "PANGO_ATTR_LINE_HEIGHT", + "PANGO_ATTR_OVERLINE", + "PANGO_ATTR_OVERLINE_COLOR", + "PANGO_ATTR_RISE", + "PANGO_ATTR_SCALE", + "PANGO_ATTR_SENTENCE", + "PANGO_ATTR_SHAPE", + "PANGO_ATTR_SHOW", + "PANGO_ATTR_SIZE", + "PANGO_ATTR_STRETCH", + "PANGO_ATTR_STRIKETHROUGH", + "PANGO_ATTR_STRIKETHROUGH_COLOR", + "PANGO_ATTR_STYLE", + "PANGO_ATTR_TEXT_TRANSFORM", + "PANGO_ATTR_UNDERLINE", + "PANGO_ATTR_UNDERLINE_COLOR", + "PANGO_ATTR_VARIANT", + "PANGO_ATTR_WEIGHT", + "PANGO_ATTR_WORD", + "absolute-line-height", + "absolute-size", + "allow-breaks", + "background", + "background-alpha", + "baseline-shift", + "fallback", + "family", + "font-desc", + "font-features", + "font-scale", + "foreground", + "foreground-alpha", + "gravity", + "gravity-hint", + "insert-hyphens", + "invalid", + "language", + "letter-spacing", + "line-height", + "overline", + "overline-color", + "rise", + "scale", + "sentence", + "shape", + "show", + "size", + "stretch", + "strikethrough", + "strikethrough-color", + "style", + "text-transform", + "underline", + "underline-color", + "variant", + "weight", + "word", +] +_AttrTypeValueType: TypeAlias = AttrType | _AttrTypeLiteralType + class BaselineShift(GObject.GEnum): NONE = 0 SUBSCRIPT = 2 SUPERSCRIPT = 1 +_BaselineShiftLiteralType: TypeAlias = Literal[ + "PANGO_BASELINE_SHIFT_NONE", + "PANGO_BASELINE_SHIFT_SUBSCRIPT", + "PANGO_BASELINE_SHIFT_SUPERSCRIPT", + "none", + "subscript", + "superscript", +] +_BaselineShiftValueType: TypeAlias = BaselineShift | _BaselineShiftLiteralType + class BidiType(GObject.GEnum): AL = 4 AN = 11 @@ -1633,12 +1819,74 @@ class BidiType(GObject.GEnum): @staticmethod def for_unichar(ch: str) -> BidiType: ... +_BidiTypeLiteralType: TypeAlias = Literal[ + "PANGO_BIDI_TYPE_AL", + "PANGO_BIDI_TYPE_AN", + "PANGO_BIDI_TYPE_B", + "PANGO_BIDI_TYPE_BN", + "PANGO_BIDI_TYPE_CS", + "PANGO_BIDI_TYPE_EN", + "PANGO_BIDI_TYPE_ES", + "PANGO_BIDI_TYPE_ET", + "PANGO_BIDI_TYPE_FSI", + "PANGO_BIDI_TYPE_L", + "PANGO_BIDI_TYPE_LRE", + "PANGO_BIDI_TYPE_LRI", + "PANGO_BIDI_TYPE_LRO", + "PANGO_BIDI_TYPE_NSM", + "PANGO_BIDI_TYPE_ON", + "PANGO_BIDI_TYPE_PDF", + "PANGO_BIDI_TYPE_PDI", + "PANGO_BIDI_TYPE_R", + "PANGO_BIDI_TYPE_RLE", + "PANGO_BIDI_TYPE_RLI", + "PANGO_BIDI_TYPE_RLO", + "PANGO_BIDI_TYPE_S", + "PANGO_BIDI_TYPE_WS", + "al", + "an", + "b", + "bn", + "cs", + "en", + "es", + "et", + "fsi", + "l", + "lre", + "lri", + "lro", + "nsm", + "on", + "pdf", + "pdi", + "r", + "rle", + "rli", + "rlo", + "s", + "ws", +] +_BidiTypeValueType: TypeAlias = BidiType | _BidiTypeLiteralType + class CoverageLevel(GObject.GEnum): APPROXIMATE = 2 EXACT = 3 FALLBACK = 1 NONE = 0 +_CoverageLevelLiteralType: TypeAlias = Literal[ + "PANGO_COVERAGE_APPROXIMATE", + "PANGO_COVERAGE_EXACT", + "PANGO_COVERAGE_FALLBACK", + "PANGO_COVERAGE_NONE", + "approximate", + "exact", + "fallback", + "none", +] +_CoverageLevelValueType: TypeAlias = CoverageLevel | _CoverageLevelLiteralType + class Direction(GObject.GEnum): LTR = 0 NEUTRAL = 6 @@ -1648,23 +1896,75 @@ class Direction(GObject.GEnum): WEAK_LTR = 4 WEAK_RTL = 5 +_DirectionLiteralType: TypeAlias = Literal[ + "PANGO_DIRECTION_LTR", + "PANGO_DIRECTION_NEUTRAL", + "PANGO_DIRECTION_RTL", + "PANGO_DIRECTION_TTB_LTR", + "PANGO_DIRECTION_TTB_RTL", + "PANGO_DIRECTION_WEAK_LTR", + "PANGO_DIRECTION_WEAK_RTL", + "ltr", + "neutral", + "rtl", + "ttb-ltr", + "ttb-rtl", + "weak-ltr", + "weak-rtl", +] +_DirectionValueType: TypeAlias = Direction | _DirectionLiteralType + class EllipsizeMode(GObject.GEnum): END = 3 MIDDLE = 2 NONE = 0 START = 1 +_EllipsizeModeLiteralType: TypeAlias = Literal[ + "PANGO_ELLIPSIZE_END", + "PANGO_ELLIPSIZE_MIDDLE", + "PANGO_ELLIPSIZE_NONE", + "PANGO_ELLIPSIZE_START", + "end", + "middle", + "none", + "start", +] +_EllipsizeModeValueType: TypeAlias = EllipsizeMode | _EllipsizeModeLiteralType + class FontColor(GObject.GEnum): DONT_CARE = 2 FORBIDDEN = 0 REQUIRED = 1 +_FontColorLiteralType: TypeAlias = Literal[ + "PANGO_FONT_COLOR_DONT_CARE", + "PANGO_FONT_COLOR_FORBIDDEN", + "PANGO_FONT_COLOR_REQUIRED", + "dont-care", + "forbidden", + "required", +] +_FontColorValueType: TypeAlias = FontColor | _FontColorLiteralType + class FontScale(GObject.GEnum): NONE = 0 SMALL_CAPS = 3 SUBSCRIPT = 2 SUPERSCRIPT = 1 +_FontScaleLiteralType: TypeAlias = Literal[ + "PANGO_FONT_SCALE_NONE", + "PANGO_FONT_SCALE_SMALL_CAPS", + "PANGO_FONT_SCALE_SUBSCRIPT", + "PANGO_FONT_SCALE_SUPERSCRIPT", + "none", + "small-caps", + "subscript", + "superscript", +] +_FontScaleValueType: TypeAlias = FontScale | _FontScaleLiteralType + class Gravity(GObject.GEnum): AUTO = 4 EAST = 1 @@ -1675,20 +1975,49 @@ class Gravity(GObject.GEnum): def get_for_matrix(matrix: Matrix | None = None) -> Gravity: ... @staticmethod def get_for_script( - script: Script, base_gravity: Gravity, hint: GravityHint + script: _ScriptValueType, + base_gravity: _GravityValueType, + hint: _GravityHintValueType, ) -> Gravity: ... @staticmethod def get_for_script_and_width( - script: Script, wide: bool, base_gravity: Gravity, hint: GravityHint + script: _ScriptValueType, + wide: bool, + base_gravity: _GravityValueType, + hint: _GravityHintValueType, ) -> Gravity: ... @staticmethod - def to_rotation(gravity: Gravity) -> float: ... + def to_rotation(gravity: _GravityValueType) -> float: ... + +_GravityLiteralType: TypeAlias = Literal[ + "PANGO_GRAVITY_AUTO", + "PANGO_GRAVITY_EAST", + "PANGO_GRAVITY_NORTH", + "PANGO_GRAVITY_SOUTH", + "PANGO_GRAVITY_WEST", + "auto", + "east", + "north", + "south", + "west", +] +_GravityValueType: TypeAlias = Gravity | _GravityLiteralType class GravityHint(GObject.GEnum): LINE = 2 NATURAL = 0 STRONG = 1 +_GravityHintLiteralType: TypeAlias = Literal[ + "PANGO_GRAVITY_HINT_LINE", + "PANGO_GRAVITY_HINT_NATURAL", + "PANGO_GRAVITY_HINT_STRONG", + "line", + "natural", + "strong", +] +_GravityHintValueType: TypeAlias = GravityHint | _GravityHintLiteralType + class LayoutDeserializeError(GObject.GEnum): INVALID = 0 INVALID_VALUE = 1 @@ -1696,10 +2025,27 @@ class LayoutDeserializeError(GObject.GEnum): @staticmethod def quark() -> int: ... +_LayoutDeserializeErrorLiteralType: TypeAlias = Literal[ + "PANGO_LAYOUT_DESERIALIZE_INVALID", + "PANGO_LAYOUT_DESERIALIZE_INVALID_VALUE", + "PANGO_LAYOUT_DESERIALIZE_MISSING_VALUE", + "invalid", + "invalid-value", + "missing-value", +] +_LayoutDeserializeErrorValueType: TypeAlias = ( + LayoutDeserializeError | _LayoutDeserializeErrorLiteralType +) + class Overline(GObject.GEnum): NONE = 0 SINGLE = 1 +_OverlineLiteralType: TypeAlias = Literal[ + "PANGO_OVERLINE_NONE", "PANGO_OVERLINE_SINGLE", "none", "single" +] +_OverlineValueType: TypeAlias = Overline | _OverlineLiteralType + class RenderPart(GObject.GEnum): BACKGROUND = 1 FOREGROUND = 0 @@ -1707,6 +2053,20 @@ class RenderPart(GObject.GEnum): STRIKETHROUGH = 3 UNDERLINE = 2 +_RenderPartLiteralType: TypeAlias = Literal[ + "PANGO_RENDER_PART_BACKGROUND", + "PANGO_RENDER_PART_FOREGROUND", + "PANGO_RENDER_PART_OVERLINE", + "PANGO_RENDER_PART_STRIKETHROUGH", + "PANGO_RENDER_PART_UNDERLINE", + "background", + "foreground", + "overline", + "strikethrough", + "underline", +] +_RenderPartValueType: TypeAlias = RenderPart | _RenderPartLiteralType + class Script(GObject.GEnum): AHOM = 111 ANATOLIAN_HIEROGLYPHS = 112 @@ -1829,7 +2189,247 @@ class Script(GObject.GEnum): @staticmethod def for_unichar(ch: str) -> Script: ... @staticmethod - def get_sample_language(script: Script) -> Language | None: ... + def get_sample_language(script: _ScriptValueType) -> Language | None: ... + +_ScriptLiteralType: TypeAlias = Literal[ + "PANGO_SCRIPT_AHOM", + "PANGO_SCRIPT_ANATOLIAN_HIEROGLYPHS", + "PANGO_SCRIPT_ARABIC", + "PANGO_SCRIPT_ARMENIAN", + "PANGO_SCRIPT_BALINESE", + "PANGO_SCRIPT_BASSA_VAH", + "PANGO_SCRIPT_BATAK", + "PANGO_SCRIPT_BENGALI", + "PANGO_SCRIPT_BOPOMOFO", + "PANGO_SCRIPT_BRAHMI", + "PANGO_SCRIPT_BRAILLE", + "PANGO_SCRIPT_BUGINESE", + "PANGO_SCRIPT_BUHID", + "PANGO_SCRIPT_CANADIAN_ABORIGINAL", + "PANGO_SCRIPT_CARIAN", + "PANGO_SCRIPT_CAUCASIAN_ALBANIAN", + "PANGO_SCRIPT_CHAKMA", + "PANGO_SCRIPT_CHAM", + "PANGO_SCRIPT_CHEROKEE", + "PANGO_SCRIPT_COMMON", + "PANGO_SCRIPT_COPTIC", + "PANGO_SCRIPT_CUNEIFORM", + "PANGO_SCRIPT_CYPRIOT", + "PANGO_SCRIPT_CYRILLIC", + "PANGO_SCRIPT_DESERET", + "PANGO_SCRIPT_DEVANAGARI", + "PANGO_SCRIPT_DUPLOYAN", + "PANGO_SCRIPT_ELBASAN", + "PANGO_SCRIPT_ETHIOPIC", + "PANGO_SCRIPT_GEORGIAN", + "PANGO_SCRIPT_GLAGOLITIC", + "PANGO_SCRIPT_GOTHIC", + "PANGO_SCRIPT_GRANTHA", + "PANGO_SCRIPT_GREEK", + "PANGO_SCRIPT_GUJARATI", + "PANGO_SCRIPT_GURMUKHI", + "PANGO_SCRIPT_HAN", + "PANGO_SCRIPT_HANGUL", + "PANGO_SCRIPT_HANUNOO", + "PANGO_SCRIPT_HATRAN", + "PANGO_SCRIPT_HEBREW", + "PANGO_SCRIPT_HIRAGANA", + "PANGO_SCRIPT_INHERITED", + "PANGO_SCRIPT_INVALID_CODE", + "PANGO_SCRIPT_KANNADA", + "PANGO_SCRIPT_KATAKANA", + "PANGO_SCRIPT_KAYAH_LI", + "PANGO_SCRIPT_KHAROSHTHI", + "PANGO_SCRIPT_KHMER", + "PANGO_SCRIPT_KHOJKI", + "PANGO_SCRIPT_KHUDAWADI", + "PANGO_SCRIPT_LAO", + "PANGO_SCRIPT_LATIN", + "PANGO_SCRIPT_LEPCHA", + "PANGO_SCRIPT_LIMBU", + "PANGO_SCRIPT_LINEAR_A", + "PANGO_SCRIPT_LINEAR_B", + "PANGO_SCRIPT_LYCIAN", + "PANGO_SCRIPT_LYDIAN", + "PANGO_SCRIPT_MAHAJANI", + "PANGO_SCRIPT_MALAYALAM", + "PANGO_SCRIPT_MANDAIC", + "PANGO_SCRIPT_MANICHAEAN", + "PANGO_SCRIPT_MENDE_KIKAKUI", + "PANGO_SCRIPT_MEROITIC_CURSIVE", + "PANGO_SCRIPT_MEROITIC_HIEROGLYPHS", + "PANGO_SCRIPT_MIAO", + "PANGO_SCRIPT_MODI", + "PANGO_SCRIPT_MONGOLIAN", + "PANGO_SCRIPT_MRO", + "PANGO_SCRIPT_MULTANI", + "PANGO_SCRIPT_MYANMAR", + "PANGO_SCRIPT_NABATAEAN", + "PANGO_SCRIPT_NEW_TAI_LUE", + "PANGO_SCRIPT_NKO", + "PANGO_SCRIPT_OGHAM", + "PANGO_SCRIPT_OLD_HUNGARIAN", + "PANGO_SCRIPT_OLD_ITALIC", + "PANGO_SCRIPT_OLD_NORTH_ARABIAN", + "PANGO_SCRIPT_OLD_PERMIC", + "PANGO_SCRIPT_OLD_PERSIAN", + "PANGO_SCRIPT_OL_CHIKI", + "PANGO_SCRIPT_ORIYA", + "PANGO_SCRIPT_OSMANYA", + "PANGO_SCRIPT_PAHAWH_HMONG", + "PANGO_SCRIPT_PALMYRENE", + "PANGO_SCRIPT_PAU_CIN_HAU", + "PANGO_SCRIPT_PHAGS_PA", + "PANGO_SCRIPT_PHOENICIAN", + "PANGO_SCRIPT_PSALTER_PAHLAVI", + "PANGO_SCRIPT_REJANG", + "PANGO_SCRIPT_RUNIC", + "PANGO_SCRIPT_SAURASHTRA", + "PANGO_SCRIPT_SHARADA", + "PANGO_SCRIPT_SHAVIAN", + "PANGO_SCRIPT_SIDDHAM", + "PANGO_SCRIPT_SIGNWRITING", + "PANGO_SCRIPT_SINHALA", + "PANGO_SCRIPT_SORA_SOMPENG", + "PANGO_SCRIPT_SUNDANESE", + "PANGO_SCRIPT_SYLOTI_NAGRI", + "PANGO_SCRIPT_SYRIAC", + "PANGO_SCRIPT_TAGALOG", + "PANGO_SCRIPT_TAGBANWA", + "PANGO_SCRIPT_TAI_LE", + "PANGO_SCRIPT_TAKRI", + "PANGO_SCRIPT_TAMIL", + "PANGO_SCRIPT_TELUGU", + "PANGO_SCRIPT_THAANA", + "PANGO_SCRIPT_THAI", + "PANGO_SCRIPT_TIBETAN", + "PANGO_SCRIPT_TIFINAGH", + "PANGO_SCRIPT_TIRHUTA", + "PANGO_SCRIPT_UGARITIC", + "PANGO_SCRIPT_UNKNOWN", + "PANGO_SCRIPT_VAI", + "PANGO_SCRIPT_WARANG_CITI", + "PANGO_SCRIPT_YI", + "ahom", + "anatolian-hieroglyphs", + "arabic", + "armenian", + "balinese", + "bassa-vah", + "batak", + "bengali", + "bopomofo", + "brahmi", + "braille", + "buginese", + "buhid", + "canadian-aboriginal", + "carian", + "caucasian-albanian", + "chakma", + "cham", + "cherokee", + "common", + "coptic", + "cuneiform", + "cypriot", + "cyrillic", + "deseret", + "devanagari", + "duployan", + "elbasan", + "ethiopic", + "georgian", + "glagolitic", + "gothic", + "grantha", + "greek", + "gujarati", + "gurmukhi", + "han", + "hangul", + "hanunoo", + "hatran", + "hebrew", + "hiragana", + "inherited", + "invalid-code", + "kannada", + "katakana", + "kayah-li", + "kharoshthi", + "khmer", + "khojki", + "khudawadi", + "lao", + "latin", + "lepcha", + "limbu", + "linear-a", + "linear-b", + "lycian", + "lydian", + "mahajani", + "malayalam", + "mandaic", + "manichaean", + "mende-kikakui", + "meroitic-cursive", + "meroitic-hieroglyphs", + "miao", + "modi", + "mongolian", + "mro", + "multani", + "myanmar", + "nabataean", + "new-tai-lue", + "nko", + "ogham", + "ol-chiki", + "old-hungarian", + "old-italic", + "old-north-arabian", + "old-permic", + "old-persian", + "oriya", + "osmanya", + "pahawh-hmong", + "palmyrene", + "pau-cin-hau", + "phags-pa", + "phoenician", + "psalter-pahlavi", + "rejang", + "runic", + "saurashtra", + "sharada", + "shavian", + "siddham", + "signwriting", + "sinhala", + "sora-sompeng", + "sundanese", + "syloti-nagri", + "syriac", + "tagalog", + "tagbanwa", + "tai-le", + "takri", + "tamil", + "telugu", + "thaana", + "thai", + "tibetan", + "tifinagh", + "tirhuta", + "ugaritic", + "unknown", + "vai", + "warang-citi", + "yi", +] +_ScriptValueType: TypeAlias = Script | _ScriptLiteralType class Stretch(GObject.GEnum): CONDENSED = 2 @@ -1842,23 +2442,79 @@ class Stretch(GObject.GEnum): ULTRA_CONDENSED = 0 ULTRA_EXPANDED = 8 +_StretchLiteralType: TypeAlias = Literal[ + "PANGO_STRETCH_CONDENSED", + "PANGO_STRETCH_EXPANDED", + "PANGO_STRETCH_EXTRA_CONDENSED", + "PANGO_STRETCH_EXTRA_EXPANDED", + "PANGO_STRETCH_NORMAL", + "PANGO_STRETCH_SEMI_CONDENSED", + "PANGO_STRETCH_SEMI_EXPANDED", + "PANGO_STRETCH_ULTRA_CONDENSED", + "PANGO_STRETCH_ULTRA_EXPANDED", + "condensed", + "expanded", + "extra-condensed", + "extra-expanded", + "normal", + "semi-condensed", + "semi-expanded", + "ultra-condensed", + "ultra-expanded", +] +_StretchValueType: TypeAlias = Stretch | _StretchLiteralType + class Style(GObject.GEnum): ITALIC = 2 NORMAL = 0 OBLIQUE = 1 +_StyleLiteralType: TypeAlias = Literal[ + "PANGO_STYLE_ITALIC", + "PANGO_STYLE_NORMAL", + "PANGO_STYLE_OBLIQUE", + "italic", + "normal", + "oblique", +] +_StyleValueType: TypeAlias = Style | _StyleLiteralType + class TabAlign(GObject.GEnum): CENTER = 2 DECIMAL = 3 LEFT = 0 RIGHT = 1 +_TabAlignLiteralType: TypeAlias = Literal[ + "PANGO_TAB_CENTER", + "PANGO_TAB_DECIMAL", + "PANGO_TAB_LEFT", + "PANGO_TAB_RIGHT", + "center", + "decimal", + "left", + "right", +] +_TabAlignValueType: TypeAlias = TabAlign | _TabAlignLiteralType + class TextTransform(GObject.GEnum): CAPITALIZE = 3 LOWERCASE = 1 NONE = 0 UPPERCASE = 2 +_TextTransformLiteralType: TypeAlias = Literal[ + "PANGO_TEXT_TRANSFORM_CAPITALIZE", + "PANGO_TEXT_TRANSFORM_LOWERCASE", + "PANGO_TEXT_TRANSFORM_NONE", + "PANGO_TEXT_TRANSFORM_UPPERCASE", + "capitalize", + "lowercase", + "none", + "uppercase", +] +_TextTransformValueType: TypeAlias = TextTransform | _TextTransformLiteralType + class Underline(GObject.GEnum): DOUBLE = 2 DOUBLE_LINE = 6 @@ -1869,6 +2525,26 @@ class Underline(GObject.GEnum): SINGLE = 1 SINGLE_LINE = 5 +_UnderlineLiteralType: TypeAlias = Literal[ + "PANGO_UNDERLINE_DOUBLE", + "PANGO_UNDERLINE_DOUBLE_LINE", + "PANGO_UNDERLINE_ERROR", + "PANGO_UNDERLINE_ERROR_LINE", + "PANGO_UNDERLINE_LOW", + "PANGO_UNDERLINE_NONE", + "PANGO_UNDERLINE_SINGLE", + "PANGO_UNDERLINE_SINGLE_LINE", + "double", + "double-line", + "error", + "error-line", + "low", + "none", + "single", + "single-line", +] +_UnderlineValueType: TypeAlias = Underline | _UnderlineLiteralType + class Variant(GObject.GEnum): ALL_PETITE_CAPS = 4 ALL_SMALL_CAPS = 2 @@ -1878,6 +2554,24 @@ class Variant(GObject.GEnum): TITLE_CAPS = 6 UNICASE = 5 +_VariantLiteralType: TypeAlias = Literal[ + "PANGO_VARIANT_ALL_PETITE_CAPS", + "PANGO_VARIANT_ALL_SMALL_CAPS", + "PANGO_VARIANT_NORMAL", + "PANGO_VARIANT_PETITE_CAPS", + "PANGO_VARIANT_SMALL_CAPS", + "PANGO_VARIANT_TITLE_CAPS", + "PANGO_VARIANT_UNICASE", + "all-petite-caps", + "all-small-caps", + "normal", + "petite-caps", + "small-caps", + "title-caps", + "unicase", +] +_VariantValueType: TypeAlias = Variant | _VariantLiteralType + class Weight(GObject.GEnum): BOLD = 700 BOOK = 380 @@ -1892,8 +2586,48 @@ class Weight(GObject.GEnum): ULTRAHEAVY = 1000 ULTRALIGHT = 200 +_WeightLiteralType: TypeAlias = Literal[ + "PANGO_WEIGHT_BOLD", + "PANGO_WEIGHT_BOOK", + "PANGO_WEIGHT_HEAVY", + "PANGO_WEIGHT_LIGHT", + "PANGO_WEIGHT_MEDIUM", + "PANGO_WEIGHT_NORMAL", + "PANGO_WEIGHT_SEMIBOLD", + "PANGO_WEIGHT_SEMILIGHT", + "PANGO_WEIGHT_THIN", + "PANGO_WEIGHT_ULTRABOLD", + "PANGO_WEIGHT_ULTRAHEAVY", + "PANGO_WEIGHT_ULTRALIGHT", + "bold", + "book", + "heavy", + "light", + "medium", + "normal", + "semibold", + "semilight", + "thin", + "ultrabold", + "ultraheavy", + "ultralight", +] +_WeightValueType: TypeAlias = Weight | _WeightLiteralType + class WrapMode(GObject.GEnum): CHAR = 1 NONE = 3 WORD = 0 WORD_CHAR = 2 + +_WrapModeLiteralType: TypeAlias = Literal[ + "PANGO_WRAP_CHAR", + "PANGO_WRAP_NONE", + "PANGO_WRAP_WORD", + "PANGO_WRAP_WORD_CHAR", + "char", + "none", + "word", + "word-char", +] +_WrapModeValueType: TypeAlias = WrapMode | _WrapModeLiteralType diff --git a/src/gi-stubs/repository/Rsvg.pyi b/src/gi-stubs/repository/Rsvg.pyi index 7a293bec..8b1de486 100644 --- a/src/gi-stubs/repository/Rsvg.pyi +++ b/src/gi-stubs/repository/Rsvg.pyi @@ -1,5 +1,7 @@ from typing import Final +from typing import Literal from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVar from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -109,7 +111,7 @@ class Handle(GObject.Object): base_uri: str = ..., dpi_x: float = ..., dpi_y: float = ..., - flags: HandleFlags = ..., + flags: _HandleFlagsValueType = ..., ) -> None: ... def close(self) -> bool: ... def free(self) -> None: ... @@ -144,7 +146,7 @@ class Handle(GObject.Object): def new_from_gfile_sync( cls, file: Gio.File, - flags: HandleFlags, + flags: _HandleFlagsValueType, cancellable: Gio.Cancellable | None = None, ) -> Handle | None: ... @classmethod @@ -152,11 +154,11 @@ class Handle(GObject.Object): cls, input_stream: Gio.InputStream, base_file: Gio.File | None, - flags: HandleFlags, + flags: _HandleFlagsValueType, cancellable: Gio.Cancellable | None = None, ) -> Handle | None: ... @classmethod - def new_with_flags(cls, flags: HandleFlags) -> Handle: ... + def new_with_flags(cls, flags: _HandleFlagsValueType) -> Handle: ... def read_stream_sync( self, stream: Gio.InputStream, cancellable: Gio.Cancellable | None = None ) -> bool: ... @@ -245,11 +247,26 @@ class HandleFlags(GObject.GFlags): FLAG_KEEP_IMAGE_DATA = 2 FLAG_UNLIMITED = 1 +_HandleFlagsLiteralType: TypeAlias = Literal[ + "RSVG_HANDLE_FLAGS_NONE", + "RSVG_HANDLE_FLAG_KEEP_IMAGE_DATA", + "RSVG_HANDLE_FLAG_UNLIMITED", + "flag-keep-image-data", + "flag-unlimited", + "flags-none", +] +_HandleFlagsValueType: TypeAlias = ( + HandleFlags | _HandleFlagsLiteralType | tuple[_HandleFlagsLiteralType, ...] +) + class Error(GObject.GEnum): FAILED = 0 @staticmethod def quark() -> int: ... +_ErrorLiteralType: TypeAlias = Literal["RSVG_ERROR_FAILED", "failed"] +_ErrorValueType: TypeAlias = Error | _ErrorLiteralType + class Unit(IntEnum): CH = 9 CM = 5 diff --git a/src/gi-stubs/repository/_Gdk3.pyi b/src/gi-stubs/repository/_Gdk3.pyi index 47ace769..99621ddf 100644 --- a/src/gi-stubs/repository/_Gdk3.pyi +++ b/src/gi-stubs/repository/_Gdk3.pyi @@ -1,7 +1,9 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVar from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -2391,14 +2393,16 @@ def drag_get_selection(context: DragContext) -> Atom: ... def drag_motion( context: DragContext, dest_window: Window, - protocol: DragProtocol, + protocol: _DragProtocolValueType, x_root: int, y_root: int, - suggested_action: DragAction, - possible_actions: DragAction, + suggested_action: _DragActionValueType, + possible_actions: _DragActionValueType, time_: int, ) -> bool: ... -def drag_status(context: DragContext, action: DragAction, time_: int) -> None: ... +def drag_status( + context: DragContext, action: _DragActionValueType, time_: int +) -> None: ... def drop_finish(context: DragContext, success: bool, time_: int) -> None: ... def drop_reply(context: DragContext, accepted: bool, time_: int) -> None: ... def error_trap_pop() -> int: ... @@ -2452,7 +2456,7 @@ def pixbuf_get_from_window( def pointer_grab( window: Window, owner_events: bool, - event_mask: EventMask, + event_mask: _EventMaskValueType, confine_to: Window | None, cursor: Cursor | None, time_: int, @@ -2502,7 +2506,7 @@ def set_program_class(program_class: str) -> None: ... def set_show_events(show_events: bool) -> None: ... def setting_get(name: str, value: Any) -> bool: ... def synthesize_window_state( - window: Window, unset_flags: WindowState, set_flags: WindowState + window: Window, unset_flags: _WindowStateValueType, set_flags: _WindowStateValueType ) -> None: ... def test_render_sync(window: Window) -> None: ... def test_simulate_button( @@ -2510,16 +2514,16 @@ def test_simulate_button( x: int, y: int, button: int, - modifiers: ModifierType, - button_pressrelease: EventType, + modifiers: _ModifierTypeValueType, + button_pressrelease: _EventTypeValueType, ) -> bool: ... def test_simulate_key( window: Window, x: int, y: int, keyval: int, - modifiers: ModifierType, - key_pressrelease: EventType, + modifiers: _ModifierTypeValueType, + key_pressrelease: _EventTypeValueType, ) -> bool: ... def text_property_to_utf8_list_for_display( display: Display, encoding: Atom, format: int, text: Sequence[int] @@ -2571,11 +2575,11 @@ class AppLaunchContext(Gio.AppLaunchContext): @type_check_only class Props(Gio.AppLaunchContext.Props): @property - def display(self) -> Display: ... + def display(self) -> Display | None: ... @property def props(self) -> Props: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... @classmethod def new(cls) -> AppLaunchContext: ... def set_desktop(self, desktop: int) -> None: ... @@ -2664,17 +2668,17 @@ class Cursor(GObject.Object): @property def props(self) -> Props: ... def __init__( - self, *, cursor_type: CursorType = ..., display: Display = ... + self, *, cursor_type: _CursorTypeValueType = ..., display: Display | None = ... ) -> None: ... def get_cursor_type(self) -> CursorType: ... def get_display(self) -> Display: ... def get_image(self) -> GdkPixbuf.Pixbuf | None: ... def get_surface(self) -> tuple[cairo.Surface | None, float, float]: ... @classmethod - def new(cls, cursor_type: CursorType) -> Cursor: ... + def new(cls, cursor_type: _CursorTypeValueType) -> Cursor: ... @classmethod def new_for_display( - cls, display: Display, cursor_type: CursorType + cls, display: Display, cursor_type: _CursorTypeValueType ) -> Cursor | None: ... @classmethod def new_from_name(cls, display: Display, name: str) -> Cursor | None: ... @@ -2745,12 +2749,15 @@ class Device(GObject.Object): @property def axes(self) -> AxisFlags: ... @property - def device_manager(self) -> DeviceManager: ... + def device_manager(self) -> DeviceManager | None: ... @property def display(self) -> Display: ... @property def has_cursor(self) -> bool: ... - input_mode: InputMode + @property + def input_mode(self) -> InputMode: ... + @input_mode.setter + def input_mode(self, value: _InputModeValueType) -> None: ... @property def input_source(self) -> InputSource: ... @property @@ -2761,9 +2768,12 @@ class Device(GObject.Object): def num_touches(self) -> int: ... @property def product_id(self) -> str | None: ... - seat: Seat @property - def tool(self) -> DeviceTool: ... + def seat(self) -> Seat: ... + @seat.setter + def seat(self, value: Seat | None) -> None: ... + @property + def tool(self) -> DeviceTool | None: ... @property def type(self) -> DeviceType: ... @property @@ -2774,17 +2784,17 @@ class Device(GObject.Object): def __init__( self, *, - device_manager: DeviceManager = ..., - display: Display = ..., + device_manager: DeviceManager | None = ..., + display: Display | None = ..., has_cursor: bool = ..., - input_mode: InputMode = ..., - input_source: InputSource = ..., - name: str = ..., + input_mode: _InputModeValueType = ..., + input_source: _InputSourceValueType = ..., + name: str | None = ..., num_touches: int = ..., - product_id: str = ..., - seat: Seat = ..., - type: DeviceType = ..., - vendor_id: str = ..., + product_id: str | None = ..., + seat: Seat | None = ..., + type: _DeviceTypeValueType = ..., + vendor_id: str | None = ..., ) -> None: ... def get_associated_device(self) -> Device | None: ... def get_axes(self) -> AxisFlags: ... @@ -2809,9 +2819,9 @@ class Device(GObject.Object): def grab( self, window: Window, - grab_ownership: GrabOwnership, + grab_ownership: _GrabOwnershipValueType, owner_events: bool, - event_mask: EventMask, + event_mask: _EventMaskValueType, cursor: Cursor | None, time_: int, ) -> GrabStatus: ... @@ -2821,9 +2831,11 @@ class Device(GObject.Object): ) -> tuple[bool, Window, bool]: ... def list_axes(self) -> list[Atom]: ... def list_slave_devices(self) -> list[Device]: ... - def set_axis_use(self, index_: int, use: AxisUse) -> None: ... - def set_key(self, index_: int, keyval: int, modifiers: ModifierType) -> None: ... - def set_mode(self, mode: InputMode) -> bool: ... + def set_axis_use(self, index_: int, use: _AxisUseValueType) -> None: ... + def set_key( + self, index_: int, keyval: int, modifiers: _ModifierTypeValueType + ) -> None: ... + def set_mode(self, mode: _InputModeValueType) -> bool: ... def ungrab(self, time_: int) -> None: ... def warp(self, screen: Screen, x: int, y: int) -> None: ... @@ -2856,10 +2868,10 @@ class DeviceManager(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... def get_client_pointer(self) -> Device: ... def get_display(self) -> Display | None: ... - def list_devices(self, type: DeviceType) -> list[Device]: ... + def list_devices(self, type: _DeviceTypeValueType) -> list[Device]: ... class DevicePad(GObject.GInterface, Protocol): """ @@ -2868,9 +2880,11 @@ class DevicePad(GObject.GInterface, Protocol): Signals from GObject: notify (GParam) """ - def get_feature_group(self, feature: DevicePadFeature, feature_idx: int) -> int: ... + def get_feature_group( + self, feature: _DevicePadFeatureValueType, feature_idx: int + ) -> int: ... def get_group_n_modes(self, group_idx: int) -> int: ... - def get_n_features(self, feature: DevicePadFeature) -> int: ... + def get_n_features(self, feature: _DevicePadFeatureValueType) -> int: ... def get_n_groups(self) -> int: ... class DevicePadInterface(_gi.Struct): ... @@ -2914,10 +2928,10 @@ class DeviceTool(GObject.Object): def __init__( self, *, - axes: AxisFlags = ..., + axes: _AxisFlagsValueType = ..., hardware_id: int = ..., serial: int = ..., - tool_type: DeviceToolType = ..., + tool_type: _DeviceToolTypeValueType = ..., ) -> None: ... def get_hardware_id(self) -> int: ... def get_serial(self) -> int: ... @@ -3023,7 +3037,10 @@ class DisplayManager(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - default_display: Display | None + @property + def default_display(self) -> Display | None: ... + @default_display.setter + def default_display(self, value: Display) -> None: ... @property def props(self) -> Props: ... @@ -3066,7 +3083,7 @@ class DragContext(GObject.Object): def get_source_window(self) -> Window: ... def get_suggested_action(self) -> DragAction: ... def list_targets(self) -> list[Atom]: ... - def manage_dnd(self, ipc_window: Window, actions: DragAction) -> bool: ... + def manage_dnd(self, ipc_window: Window, actions: _DragActionValueType) -> bool: ... def set_device(self, device: Device) -> None: ... def set_hotspot(self, hot_x: int, hot_y: int) -> None: ... @@ -3098,7 +3115,9 @@ class DrawingContext(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, clip: cairo.Region = ..., window: Window = ...) -> None: ... + def __init__( + self, *, clip: cairo.Region | None = ..., window: Window | None = ... + ) -> None: ... # override def get_cairo_context(self) -> cairo.Context[cairo.ImageSurface]: ... def get_clip(self) -> cairo.Region | None: ... @@ -3481,7 +3500,7 @@ class FrameClock(GObject.Object): def get_history_start(self) -> int: ... def get_refresh_info(self, base_time: int) -> tuple[int, int]: ... def get_timings(self, frame_counter: int) -> FrameTimings | None: ... - def request_phase(self, phase: FrameClockPhase) -> None: ... + def request_phase(self, phase: _FrameClockPhaseValueType) -> None: ... class FrameClockClass(_gi.Struct): ... class FrameClockPrivate(_gi.Struct): ... @@ -3531,9 +3550,9 @@ class GLContext(GObject.Object): def __init__( self, *, - display: Display = ..., - shared_context: GLContext = ..., - window: Window = ..., + display: Display | None = ..., + shared_context: GLContext | None = ..., + window: Window | None = ..., ) -> None: ... @staticmethod def clear_current() -> None: ... @@ -3594,7 +3613,7 @@ class Keymap(GObject.Object): Signals from GObject: notify (GParam) """ - def add_virtual_modifiers(self, state: ModifierType) -> ModifierType: ... + def add_virtual_modifiers(self, state: _ModifierTypeValueType) -> ModifierType: ... def get_caps_lock_state(self) -> bool: ... @staticmethod def get_default() -> Keymap: ... @@ -3605,17 +3624,17 @@ class Keymap(GObject.Object): def get_entries_for_keyval(self, keyval: int) -> tuple[bool, list[KeymapKey]]: ... @staticmethod def get_for_display(display: Display) -> Keymap: ... - def get_modifier_mask(self, intent: ModifierIntent) -> ModifierType: ... + def get_modifier_mask(self, intent: _ModifierIntentValueType) -> ModifierType: ... def get_modifier_state(self) -> int: ... def get_num_lock_state(self) -> bool: ... def get_scroll_lock_state(self) -> bool: ... def have_bidi_layouts(self) -> bool: ... def lookup_key(self, key: KeymapKey) -> int: ... def map_virtual_modifiers( - self, state: ModifierType + self, state: _ModifierTypeValueType ) -> tuple[bool, ModifierType]: ... def translate_keyboard_state( - self, hardware_keycode: int, state: ModifierType, group: int + self, hardware_keycode: int, state: _ModifierTypeValueType, group: int ) -> tuple[bool, int, int, int, ModifierType]: ... class KeymapKey(_gi.Struct): @@ -3694,7 +3713,7 @@ class Monitor(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... def get_display(self) -> Display: ... def get_geometry(self) -> Rectangle: ... def get_height_mm(self) -> int: ... @@ -3799,7 +3818,10 @@ class Screen(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - font_options: int | None + @property + def font_options(self) -> int: ... + @font_options.setter + def font_options(self, value: int | Any | None) -> None: ... resolution: float @property @@ -3880,16 +3902,16 @@ class Seat(GObject.Object): def props(self) -> Props: ... @property def parent_instance(self) -> GObject.Object: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... def get_capabilities(self) -> SeatCapabilities: ... def get_display(self) -> Display: ... def get_keyboard(self) -> Device | None: ... def get_pointer(self) -> Device | None: ... - def get_slaves(self, capabilities: SeatCapabilities) -> list[Device]: ... + def get_slaves(self, capabilities: _SeatCapabilitiesValueType) -> list[Device]: ... def grab( self, window: Window, - capabilities: SeatCapabilities, + capabilities: _SeatCapabilitiesValueType, owner_events: bool, cursor: Cursor | None = None, event: Event | None = None, @@ -3930,11 +3952,13 @@ class Visual(GObject.Object): @staticmethod def get_best_type() -> VisualType: ... @staticmethod - def get_best_with_both(depth: int, visual_type: VisualType) -> Visual | None: ... + def get_best_with_both( + depth: int, visual_type: _VisualTypeValueType + ) -> Visual | None: ... @staticmethod def get_best_with_depth(depth: int) -> Visual: ... @staticmethod - def get_best_with_type(visual_type: VisualType) -> Visual: ... + def get_best_with_type(visual_type: _VisualTypeValueType) -> Visual: ... def get_bits_per_rgb(self) -> int: ... def get_blue_pixel_details(self) -> tuple[int, int, int]: ... def get_byte_order(self) -> ByteOrder: ... @@ -3998,11 +4022,16 @@ class Window(GObject.Object): def begin_paint_rect(self, rectangle: Rectangle) -> None: ... def begin_paint_region(self, region: cairo.Region) -> None: ... def begin_resize_drag( - self, edge: WindowEdge, button: int, root_x: int, root_y: int, timestamp: int + self, + edge: _WindowEdgeValueType, + button: int, + root_x: int, + root_y: int, + timestamp: int, ) -> None: ... def begin_resize_drag_for_device( self, - edge: WindowEdge, + edge: _WindowEdgeValueType, device: Device, button: int, root_x: int, @@ -4013,7 +4042,7 @@ class Window(GObject.Object): def configure_finished(self) -> None: ... @staticmethod def constrain_size( - geometry: Geometry, flags: WindowHints, width: int, height: int + geometry: Geometry, flags: _WindowHintsValueType, width: int, height: int ) -> tuple[int, int]: ... def coords_from_parent( self, parent_x: float, parent_y: float @@ -4096,7 +4125,7 @@ class Window(GObject.Object): def get_root_origin(self) -> tuple[int, int]: ... def get_scale_factor(self) -> int: ... def get_screen(self) -> Screen: ... - def get_source_events(self, source: InputSource) -> EventMask: ... + def get_source_events(self, source: _InputSourceValueType) -> EventMask: ... def get_state(self) -> WindowState: ... def get_support_multidevice(self) -> bool: ... def get_toplevel(self) -> Window: ... @@ -4141,9 +4170,9 @@ class Window(GObject.Object): def move_to_rect( self, rect: Rectangle, - rect_anchor: Gravity, - window_anchor: Gravity, - anchor_hints: AnchorHints, + rect_anchor: _GravityValueType, + window_anchor: _GravityValueType, + anchor_hints: _AnchorHintsValueType, rect_anchor_dx: int, rect_anchor_dy: int, ) -> None: ... @@ -4152,7 +4181,7 @@ class Window(GObject.Object): cls, parent: Window | None, attributes: WindowAttr, - attributes_mask: WindowAttributesType, + attributes_mask: _WindowAttributesTypeValueType, ) -> Window: ... def peek_children(self) -> list[Window]: ... @staticmethod @@ -4174,16 +4203,18 @@ class Window(GObject.Object): def set_cursor(self, cursor: Cursor | None = None) -> None: ... @staticmethod def set_debug_updates(setting: bool) -> None: ... - def set_decorations(self, decorations: WMDecoration) -> None: ... + def set_decorations(self, decorations: _WMDecorationValueType) -> None: ... def set_device_cursor(self, device: Device, cursor: Cursor) -> None: ... - def set_device_events(self, device: Device, event_mask: EventMask) -> None: ... + def set_device_events( + self, device: Device, event_mask: _EventMaskValueType + ) -> None: ... def set_event_compression(self, event_compression: bool) -> None: ... - def set_events(self, event_mask: EventMask) -> None: ... + def set_events(self, event_mask: _EventMaskValueType) -> None: ... def set_focus_on_map(self, focus_on_map: bool) -> None: ... - def set_fullscreen_mode(self, mode: FullscreenMode) -> None: ... - def set_functions(self, functions: WMFunction) -> None: ... + def set_fullscreen_mode(self, mode: _FullscreenModeValueType) -> None: ... + def set_functions(self, functions: _WMFunctionValueType) -> None: ... def set_geometry_hints( - self, geometry: Geometry, geom_mask: WindowHints + self, geometry: Geometry, geom_mask: _WindowHintsValueType ) -> None: ... def set_group(self, leader: Window | None = None) -> None: ... def set_icon_list(self, pixbufs: list[GdkPixbuf.Pixbuf]) -> None: ... @@ -4201,13 +4232,15 @@ class Window(GObject.Object): ) -> None: ... def set_skip_pager_hint(self, skips_pager: bool) -> None: ... def set_skip_taskbar_hint(self, skips_taskbar: bool) -> None: ... - def set_source_events(self, source: InputSource, event_mask: EventMask) -> None: ... + def set_source_events( + self, source: _InputSourceValueType, event_mask: _EventMaskValueType + ) -> None: ... def set_startup_id(self, startup_id: str) -> None: ... def set_static_gravities(self, use_static: bool) -> bool: ... def set_support_multidevice(self, support_multidevice: bool) -> None: ... def set_title(self, title: str) -> None: ... def set_transient_for(self, parent: Window) -> None: ... - def set_type_hint(self, hint: WindowTypeHint) -> None: ... + def set_type_hint(self, hint: _WindowTypeHintValueType) -> None: ... def set_urgency_hint(self, urgent: bool) -> None: ... def set_user_data(self, user_data: GObject.Object | None = None) -> None: ... def shape_combine_region( @@ -4280,6 +4313,30 @@ class AnchorHints(GObject.GFlags): SLIDE_X = 4 SLIDE_Y = 8 +_AnchorHintsLiteralType: TypeAlias = Literal[ + "GDK_ANCHOR_FLIP", + "GDK_ANCHOR_FLIP_X", + "GDK_ANCHOR_FLIP_Y", + "GDK_ANCHOR_RESIZE", + "GDK_ANCHOR_RESIZE_X", + "GDK_ANCHOR_RESIZE_Y", + "GDK_ANCHOR_SLIDE", + "GDK_ANCHOR_SLIDE_X", + "GDK_ANCHOR_SLIDE_Y", + "flip", + "flip-x", + "flip-y", + "resize", + "resize-x", + "resize-y", + "slide", + "slide-x", + "slide-y", +] +_AnchorHintsValueType: TypeAlias = ( + AnchorHints | _AnchorHintsLiteralType | tuple[_AnchorHintsLiteralType, ...] +) + class AxisFlags(GObject.GFlags): DISTANCE = 128 PRESSURE = 8 @@ -4291,6 +4348,30 @@ class AxisFlags(GObject.GFlags): Y = 4 YTILT = 32 +_AxisFlagsLiteralType: TypeAlias = Literal[ + "GDK_AXIS_FLAG_DISTANCE", + "GDK_AXIS_FLAG_PRESSURE", + "GDK_AXIS_FLAG_ROTATION", + "GDK_AXIS_FLAG_SLIDER", + "GDK_AXIS_FLAG_WHEEL", + "GDK_AXIS_FLAG_X", + "GDK_AXIS_FLAG_XTILT", + "GDK_AXIS_FLAG_Y", + "GDK_AXIS_FLAG_YTILT", + "distance", + "pressure", + "rotation", + "slider", + "wheel", + "x", + "xtilt", + "y", + "ytilt", +] +_AxisFlagsValueType: TypeAlias = ( + AxisFlags | _AxisFlagsLiteralType | tuple[_AxisFlagsLiteralType, ...] +) + class DragAction(GObject.GFlags): ASK = 32 COPY = 2 @@ -4299,6 +4380,24 @@ class DragAction(GObject.GFlags): MOVE = 4 PRIVATE = 16 +_DragActionLiteralType: TypeAlias = Literal[ + "GDK_ACTION_ASK", + "GDK_ACTION_COPY", + "GDK_ACTION_DEFAULT", + "GDK_ACTION_LINK", + "GDK_ACTION_MOVE", + "GDK_ACTION_PRIVATE", + "ask", + "copy", + "default", + "link", + "move", + "private", +] +_DragActionValueType: TypeAlias = ( + DragAction | _DragActionLiteralType | tuple[_DragActionLiteralType, ...] +) + class EventMask(GObject.GFlags): ALL_EVENTS_MASK = 67108862 BUTTON1_MOTION_MASK = 32 @@ -4327,6 +4426,64 @@ class EventMask(GObject.GFlags): TOUCH_MASK = 4194304 VISIBILITY_NOTIFY_MASK = 131072 +_EventMaskLiteralType: TypeAlias = Literal[ + "GDK_ALL_EVENTS_MASK", + "GDK_BUTTON1_MOTION_MASK", + "GDK_BUTTON2_MOTION_MASK", + "GDK_BUTTON3_MOTION_MASK", + "GDK_BUTTON_MOTION_MASK", + "GDK_BUTTON_PRESS_MASK", + "GDK_BUTTON_RELEASE_MASK", + "GDK_ENTER_NOTIFY_MASK", + "GDK_EXPOSURE_MASK", + "GDK_FOCUS_CHANGE_MASK", + "GDK_KEY_PRESS_MASK", + "GDK_KEY_RELEASE_MASK", + "GDK_LEAVE_NOTIFY_MASK", + "GDK_POINTER_MOTION_HINT_MASK", + "GDK_POINTER_MOTION_MASK", + "GDK_PROPERTY_CHANGE_MASK", + "GDK_PROXIMITY_IN_MASK", + "GDK_PROXIMITY_OUT_MASK", + "GDK_SCROLL_MASK", + "GDK_SMOOTH_SCROLL_MASK", + "GDK_STRUCTURE_MASK", + "GDK_SUBSTRUCTURE_MASK", + "GDK_TABLET_PAD_MASK", + "GDK_TOUCHPAD_GESTURE_MASK", + "GDK_TOUCH_MASK", + "GDK_VISIBILITY_NOTIFY_MASK", + "all-events-mask", + "button-motion-mask", + "button-press-mask", + "button-release-mask", + "button1-motion-mask", + "button2-motion-mask", + "button3-motion-mask", + "enter-notify-mask", + "exposure-mask", + "focus-change-mask", + "key-press-mask", + "key-release-mask", + "leave-notify-mask", + "pointer-motion-hint-mask", + "pointer-motion-mask", + "property-change-mask", + "proximity-in-mask", + "proximity-out-mask", + "scroll-mask", + "smooth-scroll-mask", + "structure-mask", + "substructure-mask", + "tablet-pad-mask", + "touch-mask", + "touchpad-gesture-mask", + "visibility-notify-mask", +] +_EventMaskValueType: TypeAlias = ( + EventMask | _EventMaskLiteralType | tuple[_EventMaskLiteralType, ...] +) + class FrameClockPhase(GObject.GFlags): AFTER_PAINT = 64 BEFORE_PAINT = 2 @@ -4337,6 +4494,30 @@ class FrameClockPhase(GObject.GFlags): RESUME_EVENTS = 32 UPDATE = 4 +_FrameClockPhaseLiteralType: TypeAlias = Literal[ + "GDK_FRAME_CLOCK_PHASE_AFTER_PAINT", + "GDK_FRAME_CLOCK_PHASE_BEFORE_PAINT", + "GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS", + "GDK_FRAME_CLOCK_PHASE_LAYOUT", + "GDK_FRAME_CLOCK_PHASE_NONE", + "GDK_FRAME_CLOCK_PHASE_PAINT", + "GDK_FRAME_CLOCK_PHASE_RESUME_EVENTS", + "GDK_FRAME_CLOCK_PHASE_UPDATE", + "after-paint", + "before-paint", + "flush-events", + "layout", + "none", + "paint", + "resume-events", + "update", +] +_FrameClockPhaseValueType: TypeAlias = ( + FrameClockPhase + | _FrameClockPhaseLiteralType + | tuple[_FrameClockPhaseLiteralType, ...] +) + class ModifierType(GObject.GFlags): BUTTON1_MASK = 256 BUTTON2_MASK = 512 @@ -4371,6 +4552,76 @@ class ModifierType(GObject.GFlags): SHIFT_MASK = 1 SUPER_MASK = 67108864 +_ModifierTypeLiteralType: TypeAlias = Literal[ + "GDK_BUTTON1_MASK", + "GDK_BUTTON2_MASK", + "GDK_BUTTON3_MASK", + "GDK_BUTTON4_MASK", + "GDK_BUTTON5_MASK", + "GDK_CONTROL_MASK", + "GDK_HYPER_MASK", + "GDK_LOCK_MASK", + "GDK_META_MASK", + "GDK_MOD1_MASK", + "GDK_MOD2_MASK", + "GDK_MOD3_MASK", + "GDK_MOD4_MASK", + "GDK_MOD5_MASK", + "GDK_MODIFIER_MASK", + "GDK_MODIFIER_RESERVED_13_MASK", + "GDK_MODIFIER_RESERVED_14_MASK", + "GDK_MODIFIER_RESERVED_15_MASK", + "GDK_MODIFIER_RESERVED_16_MASK", + "GDK_MODIFIER_RESERVED_17_MASK", + "GDK_MODIFIER_RESERVED_18_MASK", + "GDK_MODIFIER_RESERVED_19_MASK", + "GDK_MODIFIER_RESERVED_20_MASK", + "GDK_MODIFIER_RESERVED_21_MASK", + "GDK_MODIFIER_RESERVED_22_MASK", + "GDK_MODIFIER_RESERVED_23_MASK", + "GDK_MODIFIER_RESERVED_24_MASK", + "GDK_MODIFIER_RESERVED_25_MASK", + "GDK_MODIFIER_RESERVED_29_MASK", + "GDK_RELEASE_MASK", + "GDK_SHIFT_MASK", + "GDK_SUPER_MASK", + "button1-mask", + "button2-mask", + "button3-mask", + "button4-mask", + "button5-mask", + "control-mask", + "hyper-mask", + "lock-mask", + "meta-mask", + "mod1-mask", + "mod2-mask", + "mod3-mask", + "mod4-mask", + "mod5-mask", + "modifier-mask", + "modifier-reserved-13-mask", + "modifier-reserved-14-mask", + "modifier-reserved-15-mask", + "modifier-reserved-16-mask", + "modifier-reserved-17-mask", + "modifier-reserved-18-mask", + "modifier-reserved-19-mask", + "modifier-reserved-20-mask", + "modifier-reserved-21-mask", + "modifier-reserved-22-mask", + "modifier-reserved-23-mask", + "modifier-reserved-24-mask", + "modifier-reserved-25-mask", + "modifier-reserved-29-mask", + "release-mask", + "shift-mask", + "super-mask", +] +_ModifierTypeValueType: TypeAlias = ( + ModifierType | _ModifierTypeLiteralType | tuple[_ModifierTypeLiteralType, ...] +) + class SeatCapabilities(GObject.GFlags): ALL = 15 ALL_POINTING = 7 @@ -4380,6 +4631,28 @@ class SeatCapabilities(GObject.GFlags): TABLET_STYLUS = 4 TOUCH = 2 +_SeatCapabilitiesLiteralType: TypeAlias = Literal[ + "GDK_SEAT_CAPABILITY_ALL", + "GDK_SEAT_CAPABILITY_ALL_POINTING", + "GDK_SEAT_CAPABILITY_KEYBOARD", + "GDK_SEAT_CAPABILITY_NONE", + "GDK_SEAT_CAPABILITY_POINTER", + "GDK_SEAT_CAPABILITY_TABLET_STYLUS", + "GDK_SEAT_CAPABILITY_TOUCH", + "all", + "all-pointing", + "keyboard", + "none", + "pointer", + "tablet-stylus", + "touch", +] +_SeatCapabilitiesValueType: TypeAlias = ( + SeatCapabilities + | _SeatCapabilitiesLiteralType + | tuple[_SeatCapabilitiesLiteralType, ...] +) + class WMDecoration(GObject.GFlags): ALL = 1 BORDER = 2 @@ -4389,6 +4662,26 @@ class WMDecoration(GObject.GFlags): RESIZEH = 4 TITLE = 8 +_WMDecorationLiteralType: TypeAlias = Literal[ + "GDK_DECOR_ALL", + "GDK_DECOR_BORDER", + "GDK_DECOR_MAXIMIZE", + "GDK_DECOR_MENU", + "GDK_DECOR_MINIMIZE", + "GDK_DECOR_RESIZEH", + "GDK_DECOR_TITLE", + "all", + "border", + "maximize", + "menu", + "minimize", + "resizeh", + "title", +] +_WMDecorationValueType: TypeAlias = ( + WMDecoration | _WMDecorationLiteralType | tuple[_WMDecorationLiteralType, ...] +) + class WMFunction(GObject.GFlags): ALL = 1 CLOSE = 32 @@ -4397,6 +4690,24 @@ class WMFunction(GObject.GFlags): MOVE = 4 RESIZE = 2 +_WMFunctionLiteralType: TypeAlias = Literal[ + "GDK_FUNC_ALL", + "GDK_FUNC_CLOSE", + "GDK_FUNC_MAXIMIZE", + "GDK_FUNC_MINIMIZE", + "GDK_FUNC_MOVE", + "GDK_FUNC_RESIZE", + "all", + "close", + "maximize", + "minimize", + "move", + "resize", +] +_WMFunctionValueType: TypeAlias = ( + WMFunction | _WMFunctionLiteralType | tuple[_WMFunctionLiteralType, ...] +) + class WindowAttributesType(GObject.GFlags): CURSOR = 16 NOREDIR = 128 @@ -4407,6 +4718,30 @@ class WindowAttributesType(GObject.GFlags): X = 4 Y = 8 +_WindowAttributesTypeLiteralType: TypeAlias = Literal[ + "GDK_WA_CURSOR", + "GDK_WA_NOREDIR", + "GDK_WA_TITLE", + "GDK_WA_TYPE_HINT", + "GDK_WA_VISUAL", + "GDK_WA_WMCLASS", + "GDK_WA_X", + "GDK_WA_Y", + "cursor", + "noredir", + "title", + "type-hint", + "visual", + "wmclass", + "x", + "y", +] +_WindowAttributesTypeValueType: TypeAlias = ( + WindowAttributesType + | _WindowAttributesTypeLiteralType + | tuple[_WindowAttributesTypeLiteralType, ...] +) + class WindowHints(GObject.GFlags): ASPECT = 16 BASE_SIZE = 8 @@ -4418,6 +4753,30 @@ class WindowHints(GObject.GFlags): USER_SIZE = 256 WIN_GRAVITY = 64 +_WindowHintsLiteralType: TypeAlias = Literal[ + "GDK_HINT_ASPECT", + "GDK_HINT_BASE_SIZE", + "GDK_HINT_MAX_SIZE", + "GDK_HINT_MIN_SIZE", + "GDK_HINT_POS", + "GDK_HINT_RESIZE_INC", + "GDK_HINT_USER_POS", + "GDK_HINT_USER_SIZE", + "GDK_HINT_WIN_GRAVITY", + "aspect", + "base-size", + "max-size", + "min-size", + "pos", + "resize-inc", + "user-pos", + "user-size", + "win-gravity", +] +_WindowHintsValueType: TypeAlias = ( + WindowHints | _WindowHintsLiteralType | tuple[_WindowHintsLiteralType, ...] +) + class WindowState(GObject.GFlags): ABOVE = 32 BELOW = 64 @@ -4437,6 +4796,46 @@ class WindowState(GObject.GFlags): TOP_TILED = 512 WITHDRAWN = 1 +_WindowStateLiteralType: TypeAlias = Literal[ + "GDK_WINDOW_STATE_ABOVE", + "GDK_WINDOW_STATE_BELOW", + "GDK_WINDOW_STATE_BOTTOM_RESIZABLE", + "GDK_WINDOW_STATE_BOTTOM_TILED", + "GDK_WINDOW_STATE_FOCUSED", + "GDK_WINDOW_STATE_FULLSCREEN", + "GDK_WINDOW_STATE_ICONIFIED", + "GDK_WINDOW_STATE_LEFT_RESIZABLE", + "GDK_WINDOW_STATE_LEFT_TILED", + "GDK_WINDOW_STATE_MAXIMIZED", + "GDK_WINDOW_STATE_RIGHT_RESIZABLE", + "GDK_WINDOW_STATE_RIGHT_TILED", + "GDK_WINDOW_STATE_STICKY", + "GDK_WINDOW_STATE_TILED", + "GDK_WINDOW_STATE_TOP_RESIZABLE", + "GDK_WINDOW_STATE_TOP_TILED", + "GDK_WINDOW_STATE_WITHDRAWN", + "above", + "below", + "bottom-resizable", + "bottom-tiled", + "focused", + "fullscreen", + "iconified", + "left-resizable", + "left-tiled", + "maximized", + "right-resizable", + "right-tiled", + "sticky", + "tiled", + "top-resizable", + "top-tiled", + "withdrawn", +] +_WindowStateValueType: TypeAlias = ( + WindowState | _WindowStateLiteralType | tuple[_WindowStateLiteralType, ...] +) + class AxisUse(GObject.GEnum): DISTANCE = 7 IGNORE = 0 @@ -4450,10 +4849,41 @@ class AxisUse(GObject.GEnum): Y = 2 YTILT = 5 +_AxisUseLiteralType: TypeAlias = Literal[ + "GDK_AXIS_DISTANCE", + "GDK_AXIS_IGNORE", + "GDK_AXIS_LAST", + "GDK_AXIS_PRESSURE", + "GDK_AXIS_ROTATION", + "GDK_AXIS_SLIDER", + "GDK_AXIS_WHEEL", + "GDK_AXIS_X", + "GDK_AXIS_XTILT", + "GDK_AXIS_Y", + "GDK_AXIS_YTILT", + "distance", + "ignore", + "last", + "pressure", + "rotation", + "slider", + "wheel", + "x", + "xtilt", + "y", + "ytilt", +] +_AxisUseValueType: TypeAlias = AxisUse | _AxisUseLiteralType + class ByteOrder(GObject.GEnum): LSB_FIRST = 0 MSB_FIRST = 1 +_ByteOrderLiteralType: TypeAlias = Literal[ + "GDK_LSB_FIRST", "GDK_MSB_FIRST", "lsb-first", "msb-first" +] +_ByteOrderValueType: TypeAlias = ByteOrder | _ByteOrderLiteralType + class CrossingMode(GObject.GEnum): DEVICE_SWITCH = 8 GRAB = 1 @@ -4465,6 +4895,28 @@ class CrossingMode(GObject.GEnum): TOUCH_END = 7 UNGRAB = 2 +_CrossingModeLiteralType: TypeAlias = Literal[ + "GDK_CROSSING_DEVICE_SWITCH", + "GDK_CROSSING_GRAB", + "GDK_CROSSING_GTK_GRAB", + "GDK_CROSSING_GTK_UNGRAB", + "GDK_CROSSING_NORMAL", + "GDK_CROSSING_STATE_CHANGED", + "GDK_CROSSING_TOUCH_BEGIN", + "GDK_CROSSING_TOUCH_END", + "GDK_CROSSING_UNGRAB", + "device-switch", + "grab", + "gtk-grab", + "gtk-ungrab", + "normal", + "state-changed", + "touch-begin", + "touch-end", + "ungrab", +] +_CrossingModeValueType: TypeAlias = CrossingMode | _CrossingModeLiteralType + class CursorType(GObject.GEnum): ARROW = 2 BASED_ARROW_DOWN = 4 @@ -4547,11 +4999,185 @@ class CursorType(GObject.GEnum): XTERM = 152 X_CURSOR = 0 +_CursorTypeLiteralType: TypeAlias = Literal[ + "GDK_ARROW", + "GDK_BASED_ARROW_DOWN", + "GDK_BASED_ARROW_UP", + "GDK_BLANK_CURSOR", + "GDK_BOAT", + "GDK_BOGOSITY", + "GDK_BOTTOM_LEFT_CORNER", + "GDK_BOTTOM_RIGHT_CORNER", + "GDK_BOTTOM_SIDE", + "GDK_BOTTOM_TEE", + "GDK_BOX_SPIRAL", + "GDK_CENTER_PTR", + "GDK_CIRCLE", + "GDK_CLOCK", + "GDK_COFFEE_MUG", + "GDK_CROSS", + "GDK_CROSSHAIR", + "GDK_CROSS_REVERSE", + "GDK_CURSOR_IS_PIXMAP", + "GDK_DIAMOND_CROSS", + "GDK_DOT", + "GDK_DOTBOX", + "GDK_DOUBLE_ARROW", + "GDK_DRAFT_LARGE", + "GDK_DRAFT_SMALL", + "GDK_DRAPED_BOX", + "GDK_EXCHANGE", + "GDK_FLEUR", + "GDK_GOBBLER", + "GDK_GUMBY", + "GDK_HAND1", + "GDK_HAND2", + "GDK_HEART", + "GDK_ICON", + "GDK_IRON_CROSS", + "GDK_LAST_CURSOR", + "GDK_LEFTBUTTON", + "GDK_LEFT_PTR", + "GDK_LEFT_SIDE", + "GDK_LEFT_TEE", + "GDK_LL_ANGLE", + "GDK_LR_ANGLE", + "GDK_MAN", + "GDK_MIDDLEBUTTON", + "GDK_MOUSE", + "GDK_PENCIL", + "GDK_PIRATE", + "GDK_PLUS", + "GDK_QUESTION_ARROW", + "GDK_RIGHTBUTTON", + "GDK_RIGHT_PTR", + "GDK_RIGHT_SIDE", + "GDK_RIGHT_TEE", + "GDK_RTL_LOGO", + "GDK_SAILBOAT", + "GDK_SB_DOWN_ARROW", + "GDK_SB_H_DOUBLE_ARROW", + "GDK_SB_LEFT_ARROW", + "GDK_SB_RIGHT_ARROW", + "GDK_SB_UP_ARROW", + "GDK_SB_V_DOUBLE_ARROW", + "GDK_SHUTTLE", + "GDK_SIZING", + "GDK_SPIDER", + "GDK_SPRAYCAN", + "GDK_STAR", + "GDK_TARGET", + "GDK_TCROSS", + "GDK_TOP_LEFT_ARROW", + "GDK_TOP_LEFT_CORNER", + "GDK_TOP_RIGHT_CORNER", + "GDK_TOP_SIDE", + "GDK_TOP_TEE", + "GDK_TREK", + "GDK_UL_ANGLE", + "GDK_UMBRELLA", + "GDK_UR_ANGLE", + "GDK_WATCH", + "GDK_XTERM", + "GDK_X_CURSOR", + "arrow", + "based-arrow-down", + "based-arrow-up", + "blank-cursor", + "boat", + "bogosity", + "bottom-left-corner", + "bottom-right-corner", + "bottom-side", + "bottom-tee", + "box-spiral", + "center-ptr", + "circle", + "clock", + "coffee-mug", + "cross", + "cross-reverse", + "crosshair", + "cursor-is-pixmap", + "diamond-cross", + "dot", + "dotbox", + "double-arrow", + "draft-large", + "draft-small", + "draped-box", + "exchange", + "fleur", + "gobbler", + "gumby", + "hand1", + "hand2", + "heart", + "icon", + "iron-cross", + "last-cursor", + "left-ptr", + "left-side", + "left-tee", + "leftbutton", + "ll-angle", + "lr-angle", + "man", + "middlebutton", + "mouse", + "pencil", + "pirate", + "plus", + "question-arrow", + "right-ptr", + "right-side", + "right-tee", + "rightbutton", + "rtl-logo", + "sailboat", + "sb-down-arrow", + "sb-h-double-arrow", + "sb-left-arrow", + "sb-right-arrow", + "sb-up-arrow", + "sb-v-double-arrow", + "shuttle", + "sizing", + "spider", + "spraycan", + "star", + "target", + "tcross", + "top-left-arrow", + "top-left-corner", + "top-right-corner", + "top-side", + "top-tee", + "trek", + "ul-angle", + "umbrella", + "ur-angle", + "watch", + "x-cursor", + "xterm", +] +_CursorTypeValueType: TypeAlias = CursorType | _CursorTypeLiteralType + class DevicePadFeature(GObject.GEnum): BUTTON = 0 RING = 1 STRIP = 2 +_DevicePadFeatureLiteralType: TypeAlias = Literal[ + "GDK_DEVICE_PAD_FEATURE_BUTTON", + "GDK_DEVICE_PAD_FEATURE_RING", + "GDK_DEVICE_PAD_FEATURE_STRIP", + "button", + "ring", + "strip", +] +_DevicePadFeatureValueType: TypeAlias = DevicePadFeature | _DevicePadFeatureLiteralType + class DeviceToolType(GObject.GEnum): AIRBRUSH = 5 BRUSH = 3 @@ -4562,16 +5188,56 @@ class DeviceToolType(GObject.GEnum): PENCIL = 4 UNKNOWN = 0 +_DeviceToolTypeLiteralType: TypeAlias = Literal[ + "GDK_DEVICE_TOOL_TYPE_AIRBRUSH", + "GDK_DEVICE_TOOL_TYPE_BRUSH", + "GDK_DEVICE_TOOL_TYPE_ERASER", + "GDK_DEVICE_TOOL_TYPE_LENS", + "GDK_DEVICE_TOOL_TYPE_MOUSE", + "GDK_DEVICE_TOOL_TYPE_PEN", + "GDK_DEVICE_TOOL_TYPE_PENCIL", + "GDK_DEVICE_TOOL_TYPE_UNKNOWN", + "airbrush", + "brush", + "eraser", + "lens", + "mouse", + "pen", + "pencil", + "unknown", +] +_DeviceToolTypeValueType: TypeAlias = DeviceToolType | _DeviceToolTypeLiteralType + class DeviceType(GObject.GEnum): FLOATING = 2 MASTER = 0 SLAVE = 1 +_DeviceTypeLiteralType: TypeAlias = Literal[ + "GDK_DEVICE_TYPE_FLOATING", + "GDK_DEVICE_TYPE_MASTER", + "GDK_DEVICE_TYPE_SLAVE", + "floating", + "master", + "slave", +] +_DeviceTypeValueType: TypeAlias = DeviceType | _DeviceTypeLiteralType + class DragCancelReason(GObject.GEnum): ERROR = 2 NO_TARGET = 0 USER_CANCELLED = 1 +_DragCancelReasonLiteralType: TypeAlias = Literal[ + "GDK_DRAG_CANCEL_ERROR", + "GDK_DRAG_CANCEL_NO_TARGET", + "GDK_DRAG_CANCEL_USER_CANCELLED", + "error", + "no-target", + "user-cancelled", +] +_DragCancelReasonValueType: TypeAlias = DragCancelReason | _DragCancelReasonLiteralType + class DragProtocol(GObject.GEnum): LOCAL = 6 MOTIF = 1 @@ -4582,6 +5248,26 @@ class DragProtocol(GObject.GEnum): WIN32_DROPFILES = 4 XDND = 2 +_DragProtocolLiteralType: TypeAlias = Literal[ + "GDK_DRAG_PROTO_LOCAL", + "GDK_DRAG_PROTO_MOTIF", + "GDK_DRAG_PROTO_NONE", + "GDK_DRAG_PROTO_OLE2", + "GDK_DRAG_PROTO_ROOTWIN", + "GDK_DRAG_PROTO_WAYLAND", + "GDK_DRAG_PROTO_WIN32_DROPFILES", + "GDK_DRAG_PROTO_XDND", + "local", + "motif", + "none", + "ole2", + "rootwin", + "wayland", + "win32-dropfiles", + "xdnd", +] +_DragProtocolValueType: TypeAlias = DragProtocol | _DragProtocolLiteralType + class EventType(GObject.GEnum): BUTTON_PRESS = 4 BUTTON_RELEASE = 7 @@ -4633,15 +5319,135 @@ class EventType(GObject.GEnum): VISIBILITY_NOTIFY = 29 WINDOW_STATE = 32 +_EventTypeLiteralType: TypeAlias = Literal[ + "2button-press", + "3button-press", + "GDK_2BUTTON_PRESS", + "GDK_3BUTTON_PRESS", + "GDK_BUTTON_PRESS", + "GDK_BUTTON_RELEASE", + "GDK_CLIENT_EVENT", + "GDK_CONFIGURE", + "GDK_DAMAGE", + "GDK_DELETE", + "GDK_DESTROY", + "GDK_DRAG_ENTER", + "GDK_DRAG_LEAVE", + "GDK_DRAG_MOTION", + "GDK_DRAG_STATUS", + "GDK_DROP_FINISHED", + "GDK_DROP_START", + "GDK_ENTER_NOTIFY", + "GDK_EVENT_LAST", + "GDK_EXPOSE", + "GDK_FOCUS_CHANGE", + "GDK_GRAB_BROKEN", + "GDK_KEY_PRESS", + "GDK_KEY_RELEASE", + "GDK_LEAVE_NOTIFY", + "GDK_MAP", + "GDK_MOTION_NOTIFY", + "GDK_NOTHING", + "GDK_OWNER_CHANGE", + "GDK_PAD_BUTTON_PRESS", + "GDK_PAD_BUTTON_RELEASE", + "GDK_PAD_GROUP_MODE", + "GDK_PAD_RING", + "GDK_PAD_STRIP", + "GDK_PROPERTY_NOTIFY", + "GDK_PROXIMITY_IN", + "GDK_PROXIMITY_OUT", + "GDK_SCROLL", + "GDK_SELECTION_CLEAR", + "GDK_SELECTION_NOTIFY", + "GDK_SELECTION_REQUEST", + "GDK_SETTING", + "GDK_TOUCHPAD_PINCH", + "GDK_TOUCHPAD_SWIPE", + "GDK_TOUCH_BEGIN", + "GDK_TOUCH_CANCEL", + "GDK_TOUCH_END", + "GDK_TOUCH_UPDATE", + "GDK_UNMAP", + "GDK_VISIBILITY_NOTIFY", + "GDK_WINDOW_STATE", + "button-press", + "button-release", + "client-event", + "configure", + "damage", + "delete", + "destroy", + "drag-enter", + "drag-leave", + "drag-motion", + "drag-status", + "drop-finished", + "drop-start", + "enter-notify", + "event-last", + "expose", + "focus-change", + "grab-broken", + "key-press", + "key-release", + "leave-notify", + "map", + "motion-notify", + "nothing", + "owner-change", + "pad-button-press", + "pad-button-release", + "pad-group-mode", + "pad-ring", + "pad-strip", + "property-notify", + "proximity-in", + "proximity-out", + "scroll", + "selection-clear", + "selection-notify", + "selection-request", + "setting", + "touch-begin", + "touch-cancel", + "touch-end", + "touch-update", + "touchpad-pinch", + "touchpad-swipe", + "unmap", + "visibility-notify", + "window-state", +] +_EventTypeValueType: TypeAlias = EventType | _EventTypeLiteralType + class FilterReturn(GObject.GEnum): CONTINUE = 0 REMOVE = 2 TRANSLATE = 1 +_FilterReturnLiteralType: TypeAlias = Literal[ + "GDK_FILTER_CONTINUE", + "GDK_FILTER_REMOVE", + "GDK_FILTER_TRANSLATE", + "continue", + "remove", + "translate", +] +_FilterReturnValueType: TypeAlias = FilterReturn | _FilterReturnLiteralType + class FullscreenMode(GObject.GEnum): ALL_MONITORS = 1 CURRENT_MONITOR = 0 +_FullscreenModeLiteralType: TypeAlias = Literal[ + "GDK_FULLSCREEN_ON_ALL_MONITORS", + "GDK_FULLSCREEN_ON_CURRENT_MONITOR", + "all-monitors", + "current-monitor", +] +_FullscreenModeValueType: TypeAlias = FullscreenMode | _FullscreenModeLiteralType + class GLError(GObject.GEnum): NOT_AVAILABLE = 0 UNSUPPORTED_FORMAT = 1 @@ -4649,11 +5455,31 @@ class GLError(GObject.GEnum): @staticmethod def quark() -> int: ... +_GLErrorLiteralType: TypeAlias = Literal[ + "GDK_GL_ERROR_NOT_AVAILABLE", + "GDK_GL_ERROR_UNSUPPORTED_FORMAT", + "GDK_GL_ERROR_UNSUPPORTED_PROFILE", + "not-available", + "unsupported-format", + "unsupported-profile", +] +_GLErrorValueType: TypeAlias = GLError | _GLErrorLiteralType + class GrabOwnership(GObject.GEnum): APPLICATION = 2 NONE = 0 WINDOW = 1 +_GrabOwnershipLiteralType: TypeAlias = Literal[ + "GDK_OWNERSHIP_APPLICATION", + "GDK_OWNERSHIP_NONE", + "GDK_OWNERSHIP_WINDOW", + "application", + "none", + "window", +] +_GrabOwnershipValueType: TypeAlias = GrabOwnership | _GrabOwnershipLiteralType + class GrabStatus(GObject.GEnum): ALREADY_GRABBED = 1 FAILED = 5 @@ -4662,6 +5488,22 @@ class GrabStatus(GObject.GEnum): NOT_VIEWABLE = 3 SUCCESS = 0 +_GrabStatusLiteralType: TypeAlias = Literal[ + "GDK_GRAB_ALREADY_GRABBED", + "GDK_GRAB_FAILED", + "GDK_GRAB_FROZEN", + "GDK_GRAB_INVALID_TIME", + "GDK_GRAB_NOT_VIEWABLE", + "GDK_GRAB_SUCCESS", + "already-grabbed", + "failed", + "frozen", + "invalid-time", + "not-viewable", + "success", +] +_GrabStatusValueType: TypeAlias = GrabStatus | _GrabStatusLiteralType + class Gravity(GObject.GEnum): CENTER = 5 EAST = 6 @@ -4674,11 +5516,45 @@ class Gravity(GObject.GEnum): STATIC = 10 WEST = 4 +_GravityLiteralType: TypeAlias = Literal[ + "GDK_GRAVITY_CENTER", + "GDK_GRAVITY_EAST", + "GDK_GRAVITY_NORTH", + "GDK_GRAVITY_NORTH_EAST", + "GDK_GRAVITY_NORTH_WEST", + "GDK_GRAVITY_SOUTH", + "GDK_GRAVITY_SOUTH_EAST", + "GDK_GRAVITY_SOUTH_WEST", + "GDK_GRAVITY_STATIC", + "GDK_GRAVITY_WEST", + "center", + "east", + "north", + "north-east", + "north-west", + "south", + "south-east", + "south-west", + "static", + "west", +] +_GravityValueType: TypeAlias = Gravity | _GravityLiteralType + class InputMode(GObject.GEnum): DISABLED = 0 SCREEN = 1 WINDOW = 2 +_InputModeLiteralType: TypeAlias = Literal[ + "GDK_MODE_DISABLED", + "GDK_MODE_SCREEN", + "GDK_MODE_WINDOW", + "disabled", + "screen", + "window", +] +_InputModeValueType: TypeAlias = InputMode | _InputModeLiteralType + class InputSource(GObject.GEnum): CURSOR = 3 ERASER = 2 @@ -4690,6 +5566,28 @@ class InputSource(GObject.GEnum): TOUCHSCREEN = 5 TRACKPOINT = 7 +_InputSourceLiteralType: TypeAlias = Literal[ + "GDK_SOURCE_CURSOR", + "GDK_SOURCE_ERASER", + "GDK_SOURCE_KEYBOARD", + "GDK_SOURCE_MOUSE", + "GDK_SOURCE_PEN", + "GDK_SOURCE_TABLET_PAD", + "GDK_SOURCE_TOUCHPAD", + "GDK_SOURCE_TOUCHSCREEN", + "GDK_SOURCE_TRACKPOINT", + "cursor", + "eraser", + "keyboard", + "mouse", + "pen", + "tablet-pad", + "touchpad", + "touchscreen", + "trackpoint", +] +_InputSourceValueType: TypeAlias = InputSource | _InputSourceLiteralType + class ModifierIntent(GObject.GEnum): CONTEXT_MENU = 1 DEFAULT_MOD_MASK = 6 @@ -4699,6 +5597,24 @@ class ModifierIntent(GObject.GEnum): PRIMARY_ACCELERATOR = 0 SHIFT_GROUP = 5 +_ModifierIntentLiteralType: TypeAlias = Literal[ + "GDK_MODIFIER_INTENT_CONTEXT_MENU", + "GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK", + "GDK_MODIFIER_INTENT_EXTEND_SELECTION", + "GDK_MODIFIER_INTENT_MODIFY_SELECTION", + "GDK_MODIFIER_INTENT_NO_TEXT_INPUT", + "GDK_MODIFIER_INTENT_PRIMARY_ACCELERATOR", + "GDK_MODIFIER_INTENT_SHIFT_GROUP", + "context-menu", + "default-mod-mask", + "extend-selection", + "modify-selection", + "no-text-input", + "primary-accelerator", + "shift-group", +] +_ModifierIntentValueType: TypeAlias = ModifierIntent | _ModifierIntentLiteralType + class NotifyType(GObject.GEnum): ANCESTOR = 0 INFERIOR = 2 @@ -4707,20 +5623,61 @@ class NotifyType(GObject.GEnum): UNKNOWN = 5 VIRTUAL = 1 +_NotifyTypeLiteralType: TypeAlias = Literal[ + "GDK_NOTIFY_ANCESTOR", + "GDK_NOTIFY_INFERIOR", + "GDK_NOTIFY_NONLINEAR", + "GDK_NOTIFY_NONLINEAR_VIRTUAL", + "GDK_NOTIFY_UNKNOWN", + "GDK_NOTIFY_VIRTUAL", + "ancestor", + "inferior", + "nonlinear", + "nonlinear-virtual", + "unknown", + "virtual", +] +_NotifyTypeValueType: TypeAlias = NotifyType | _NotifyTypeLiteralType + class OwnerChange(GObject.GEnum): CLOSE = 2 DESTROY = 1 NEW_OWNER = 0 +_OwnerChangeLiteralType: TypeAlias = Literal[ + "GDK_OWNER_CHANGE_CLOSE", + "GDK_OWNER_CHANGE_DESTROY", + "GDK_OWNER_CHANGE_NEW_OWNER", + "close", + "destroy", + "new-owner", +] +_OwnerChangeValueType: TypeAlias = OwnerChange | _OwnerChangeLiteralType + class PropMode(GObject.GEnum): APPEND = 2 PREPEND = 1 REPLACE = 0 +_PropModeLiteralType: TypeAlias = Literal[ + "GDK_PROP_MODE_APPEND", + "GDK_PROP_MODE_PREPEND", + "GDK_PROP_MODE_REPLACE", + "append", + "prepend", + "replace", +] +_PropModeValueType: TypeAlias = PropMode | _PropModeLiteralType + class PropertyState(GObject.GEnum): DELETE = 1 NEW_VALUE = 0 +_PropertyStateLiteralType: TypeAlias = Literal[ + "GDK_PROPERTY_DELETE", "GDK_PROPERTY_NEW_VALUE", "delete", "new-value" +] +_PropertyStateValueType: TypeAlias = PropertyState | _PropertyStateLiteralType + class ScrollDirection(GObject.GEnum): DOWN = 1 LEFT = 2 @@ -4728,11 +5685,35 @@ class ScrollDirection(GObject.GEnum): SMOOTH = 4 UP = 0 +_ScrollDirectionLiteralType: TypeAlias = Literal[ + "GDK_SCROLL_DOWN", + "GDK_SCROLL_LEFT", + "GDK_SCROLL_RIGHT", + "GDK_SCROLL_SMOOTH", + "GDK_SCROLL_UP", + "down", + "left", + "right", + "smooth", + "up", +] +_ScrollDirectionValueType: TypeAlias = ScrollDirection | _ScrollDirectionLiteralType + class SettingAction(GObject.GEnum): CHANGED = 1 DELETED = 2 NEW = 0 +_SettingActionLiteralType: TypeAlias = Literal[ + "GDK_SETTING_ACTION_CHANGED", + "GDK_SETTING_ACTION_DELETED", + "GDK_SETTING_ACTION_NEW", + "changed", + "deleted", + "new", +] +_SettingActionValueType: TypeAlias = SettingAction | _SettingActionLiteralType + class Status(GObject.GEnum): ERROR = -1 ERROR_FILE = -3 @@ -4740,6 +5721,20 @@ class Status(GObject.GEnum): ERROR_PARAM = -2 OK = 0 +_StatusLiteralType: TypeAlias = Literal[ + "GDK_ERROR", + "GDK_ERROR_FILE", + "GDK_ERROR_MEM", + "GDK_ERROR_PARAM", + "GDK_OK", + "error", + "error-file", + "error-mem", + "error-param", + "ok", +] +_StatusValueType: TypeAlias = Status | _StatusLiteralType + class SubpixelLayout(GObject.GEnum): HORIZONTAL_BGR = 3 HORIZONTAL_RGB = 2 @@ -4748,17 +5743,57 @@ class SubpixelLayout(GObject.GEnum): VERTICAL_BGR = 5 VERTICAL_RGB = 4 +_SubpixelLayoutLiteralType: TypeAlias = Literal[ + "GDK_SUBPIXEL_LAYOUT_HORIZONTAL_BGR", + "GDK_SUBPIXEL_LAYOUT_HORIZONTAL_RGB", + "GDK_SUBPIXEL_LAYOUT_NONE", + "GDK_SUBPIXEL_LAYOUT_UNKNOWN", + "GDK_SUBPIXEL_LAYOUT_VERTICAL_BGR", + "GDK_SUBPIXEL_LAYOUT_VERTICAL_RGB", + "horizontal-bgr", + "horizontal-rgb", + "none", + "unknown", + "vertical-bgr", + "vertical-rgb", +] +_SubpixelLayoutValueType: TypeAlias = SubpixelLayout | _SubpixelLayoutLiteralType + class TouchpadGesturePhase(GObject.GEnum): BEGIN = 0 CANCEL = 3 END = 2 UPDATE = 1 +_TouchpadGesturePhaseLiteralType: TypeAlias = Literal[ + "GDK_TOUCHPAD_GESTURE_PHASE_BEGIN", + "GDK_TOUCHPAD_GESTURE_PHASE_CANCEL", + "GDK_TOUCHPAD_GESTURE_PHASE_END", + "GDK_TOUCHPAD_GESTURE_PHASE_UPDATE", + "begin", + "cancel", + "end", + "update", +] +_TouchpadGesturePhaseValueType: TypeAlias = ( + TouchpadGesturePhase | _TouchpadGesturePhaseLiteralType +) + class VisibilityState(GObject.GEnum): FULLY_OBSCURED = 2 PARTIAL = 1 UNOBSCURED = 0 +_VisibilityStateLiteralType: TypeAlias = Literal[ + "GDK_VISIBILITY_FULLY_OBSCURED", + "GDK_VISIBILITY_PARTIAL", + "GDK_VISIBILITY_UNOBSCURED", + "fully-obscured", + "partial", + "unobscured", +] +_VisibilityStateValueType: TypeAlias = VisibilityState | _VisibilityStateLiteralType + class VisualType(GObject.GEnum): DIRECT_COLOR = 5 GRAYSCALE = 1 @@ -4767,6 +5802,22 @@ class VisualType(GObject.GEnum): STATIC_GRAY = 0 TRUE_COLOR = 4 +_VisualTypeLiteralType: TypeAlias = Literal[ + "GDK_VISUAL_DIRECT_COLOR", + "GDK_VISUAL_GRAYSCALE", + "GDK_VISUAL_PSEUDO_COLOR", + "GDK_VISUAL_STATIC_COLOR", + "GDK_VISUAL_STATIC_GRAY", + "GDK_VISUAL_TRUE_COLOR", + "direct-color", + "grayscale", + "pseudo-color", + "static-color", + "static-gray", + "true-color", +] +_VisualTypeValueType: TypeAlias = VisualType | _VisualTypeLiteralType + class WindowEdge(GObject.GEnum): EAST = 4 NORTH = 1 @@ -4777,6 +5828,26 @@ class WindowEdge(GObject.GEnum): SOUTH_WEST = 5 WEST = 3 +_WindowEdgeLiteralType: TypeAlias = Literal[ + "GDK_WINDOW_EDGE_EAST", + "GDK_WINDOW_EDGE_NORTH", + "GDK_WINDOW_EDGE_NORTH_EAST", + "GDK_WINDOW_EDGE_NORTH_WEST", + "GDK_WINDOW_EDGE_SOUTH", + "GDK_WINDOW_EDGE_SOUTH_EAST", + "GDK_WINDOW_EDGE_SOUTH_WEST", + "GDK_WINDOW_EDGE_WEST", + "east", + "north", + "north-east", + "north-west", + "south", + "south-east", + "south-west", + "west", +] +_WindowEdgeValueType: TypeAlias = WindowEdge | _WindowEdgeLiteralType + class WindowType(GObject.GEnum): CHILD = 2 FOREIGN = 4 @@ -4786,6 +5857,24 @@ class WindowType(GObject.GEnum): TEMP = 3 TOPLEVEL = 1 +_WindowTypeLiteralType: TypeAlias = Literal[ + "GDK_WINDOW_CHILD", + "GDK_WINDOW_FOREIGN", + "GDK_WINDOW_OFFSCREEN", + "GDK_WINDOW_ROOT", + "GDK_WINDOW_SUBSURFACE", + "GDK_WINDOW_TEMP", + "GDK_WINDOW_TOPLEVEL", + "child", + "foreign", + "offscreen", + "root", + "subsurface", + "temp", + "toplevel", +] +_WindowTypeValueType: TypeAlias = WindowType | _WindowTypeLiteralType + class WindowTypeHint(GObject.GEnum): COMBO = 12 DESKTOP = 7 @@ -4802,6 +5891,45 @@ class WindowTypeHint(GObject.GEnum): TOOLTIP = 10 UTILITY = 5 +_WindowTypeHintLiteralType: TypeAlias = Literal[ + "GDK_WINDOW_TYPE_HINT_COMBO", + "GDK_WINDOW_TYPE_HINT_DESKTOP", + "GDK_WINDOW_TYPE_HINT_DIALOG", + "GDK_WINDOW_TYPE_HINT_DND", + "GDK_WINDOW_TYPE_HINT_DOCK", + "GDK_WINDOW_TYPE_HINT_DROPDOWN_MENU", + "GDK_WINDOW_TYPE_HINT_MENU", + "GDK_WINDOW_TYPE_HINT_NORMAL", + "GDK_WINDOW_TYPE_HINT_NOTIFICATION", + "GDK_WINDOW_TYPE_HINT_POPUP_MENU", + "GDK_WINDOW_TYPE_HINT_SPLASHSCREEN", + "GDK_WINDOW_TYPE_HINT_TOOLBAR", + "GDK_WINDOW_TYPE_HINT_TOOLTIP", + "GDK_WINDOW_TYPE_HINT_UTILITY", + "combo", + "desktop", + "dialog", + "dnd", + "dock", + "dropdown-menu", + "menu", + "normal", + "notification", + "popup-menu", + "splashscreen", + "toolbar", + "tooltip", + "utility", +] +_WindowTypeHintValueType: TypeAlias = WindowTypeHint | _WindowTypeHintLiteralType + class WindowWindowClass(GObject.GEnum): INPUT_ONLY = 1 INPUT_OUTPUT = 0 + +_WindowWindowClassLiteralType: TypeAlias = Literal[ + "GDK_INPUT_ONLY", "GDK_INPUT_OUTPUT", "input-only", "input-output" +] +_WindowWindowClassValueType: TypeAlias = ( + WindowWindowClass | _WindowWindowClassLiteralType +) diff --git a/src/gi-stubs/repository/_Gdk4.pyi b/src/gi-stubs/repository/_Gdk4.pyi index 3e83cbc5..c1e5a653 100644 --- a/src/gi-stubs/repository/_Gdk4.pyi +++ b/src/gi-stubs/repository/_Gdk4.pyi @@ -1,7 +1,9 @@ from typing import Any from typing import Final +from typing import Literal from typing import Protocol from typing import type_check_only +from typing import TypeAlias from typing_extensions import TypeVar from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -2544,7 +2546,7 @@ def content_serialize_async( ) -> None: ... def content_serialize_finish(result: Gio.AsyncResult) -> bool: ... def dmabuf_error_quark() -> int: ... -def drag_action_is_unique(action: DragAction) -> bool: ... +def drag_action_is_unique(action: _DragActionValueType) -> bool: ... def events_get_angle(event1: Event, event2: Event) -> tuple[bool, float]: ... def events_get_center(event1: Event, event2: Event) -> tuple[bool, float, float]: ... def events_get_distance(event1: Event, event2: Event) -> tuple[bool, float]: ... @@ -2596,7 +2598,7 @@ class AppLaunchContext(Gio.AppLaunchContext): @property def props(self) -> Props: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... def get_display(self) -> Display: ... def set_desktop(self, desktop: int) -> None: ... def set_icon(self, icon: Gio.Icon | None = None) -> None: ... @@ -2630,7 +2632,9 @@ class CairoContext(DrawContext): Signals from GObject: notify (GParam) """ - def __init__(self, *, display: Display = ..., surface: Surface = ...) -> None: ... + def __init__( + self, *, display: Display | None = ..., surface: Surface | None = ... + ) -> None: ... def cairo_create(self) -> cairo.Context | None: ... class CicpParams(GObject.Object): @@ -2657,7 +2661,10 @@ class CicpParams(GObject.Object): class Props(GObject.Object.Props): color_primaries: int matrix_coefficients: int - range: CicpRange + @property + def range(self) -> CicpRange: ... + @range.setter + def range(self, value: _CicpRangeValueType) -> None: ... transfer_function: int @property @@ -2667,7 +2674,7 @@ class CicpParams(GObject.Object): *, color_primaries: int = ..., matrix_coefficients: int = ..., - range: CicpRange = ..., + range: _CicpRangeValueType = ..., transfer_function: int = ..., ) -> None: ... def build_color_state(self) -> ColorState: ... @@ -2679,7 +2686,7 @@ class CicpParams(GObject.Object): def new(cls) -> CicpParams: ... def set_color_primaries(self, color_primaries: int) -> None: ... def set_matrix_coefficients(self, matrix_coefficients: int) -> None: ... - def set_range(self, range: CicpRange) -> None: ... + def set_range(self, range: _CicpRangeValueType) -> None: ... def set_transfer_function(self, transfer_function: int) -> None: ... class CicpParamsClass(_gi.Struct): ... @@ -2719,7 +2726,7 @@ class Clipboard(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... def get_content(self) -> ContentProvider | None: ... def get_display(self) -> Display: ... def get_formats(self) -> ContentFormats: ... @@ -3089,11 +3096,11 @@ class Cursor(GObject.Object): def __init__( self, *, - fallback: Cursor = ..., + fallback: Cursor | None = ..., hotspot_x: int = ..., hotspot_y: int = ..., - name: str = ..., - texture: Texture = ..., + name: str | None = ..., + texture: Texture | None = ..., ) -> None: ... def get_fallback(self) -> Cursor | None: ... def get_hotspot_x(self) -> int: ... @@ -3193,7 +3200,7 @@ class Device(GObject.Object): @property def has_cursor(self) -> bool: ... @property - def layout_names(self) -> list[str] | None: ... + def layout_names(self) -> list[str]: ... @property def modifier_state(self) -> ModifierType: ... @property @@ -3208,7 +3215,10 @@ class Device(GObject.Object): def product_id(self) -> str | None: ... @property def scroll_lock_state(self) -> bool: ... - seat: Seat + @property + def seat(self) -> Seat: ... + @seat.setter + def seat(self, value: Seat | None) -> None: ... @property def source(self) -> InputSource: ... @property @@ -3221,14 +3231,14 @@ class Device(GObject.Object): def __init__( self, *, - display: Display = ..., + display: Display | None = ..., has_cursor: bool = ..., - name: str = ..., + name: str | None = ..., num_touches: int = ..., - product_id: str = ..., - seat: Seat = ..., - source: InputSource = ..., - vendor_id: str = ..., + product_id: str | None = ..., + seat: Seat | None = ..., + source: _InputSourceValueType = ..., + vendor_id: str | None = ..., ) -> None: ... def get_active_layout_index(self) -> int: ... def get_caps_lock_state(self) -> bool: ... @@ -3257,9 +3267,11 @@ class DevicePad(GObject.GInterface, Protocol): Signals from GObject: notify (GParam) """ - def get_feature_group(self, feature: DevicePadFeature, feature_idx: int) -> int: ... + def get_feature_group( + self, feature: _DevicePadFeatureValueType, feature_idx: int + ) -> int: ... def get_group_n_modes(self, group_idx: int) -> int: ... - def get_n_features(self, feature: DevicePadFeature) -> int: ... + def get_n_features(self, feature: _DevicePadFeatureValueType) -> int: ... def get_n_groups(self) -> int: ... class DevicePadInterface(_gi.Struct): ... @@ -3299,10 +3311,10 @@ class DeviceTool(GObject.Object): def __init__( self, *, - axes: AxisFlags = ..., + axes: _AxisFlagsValueType = ..., hardware_id: int = ..., serial: int = ..., - tool_type: DeviceToolType = ..., + tool_type: _DeviceToolTypeValueType = ..., ) -> None: ... def get_axes(self) -> AxisFlags: ... def get_hardware_id(self) -> int: ... @@ -3384,7 +3396,7 @@ class Display(GObject.Object): def supports_shadow_width(self) -> bool: ... def sync(self) -> None: ... def translate_key( - self, keycode: int, state: ModifierType, group: int + self, keycode: int, state: _ModifierTypeValueType, group: int ) -> tuple[bool, int, int, int, ModifierType]: ... class DisplayManager(GObject.Object): @@ -3408,7 +3420,10 @@ class DisplayManager(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - default_display: Display | None + @property + def default_display(self) -> Display | None: ... + @default_display.setter + def default_display(self, value: Display) -> None: ... @property def props(self) -> Props: ... @@ -3455,7 +3470,11 @@ class DmabufTexture(Texture): notify (GParam) """ def __init__( - self, *, color_state: ColorState = ..., height: int = ..., width: int = ... + self, + *, + color_state: ColorState | None = ..., + height: int = ..., + width: int = ..., ) -> None: ... class DmabufTextureBuilder(GObject.Object): @@ -3579,7 +3598,10 @@ class Drag(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - actions: DragAction + @property + def actions(self) -> DragAction: ... + @actions.setter + def actions(self, value: _DragActionValueType) -> None: ... @property def content(self) -> ContentProvider: ... @property @@ -3588,7 +3610,10 @@ class Drag(GObject.Object): def display(self) -> Display: ... @property def formats(self) -> ContentFormats: ... - selected_action: DragAction + @property + def selected_action(self) -> DragAction: ... + @selected_action.setter + def selected_action(self, value: _DragActionValueType) -> None: ... @property def surface(self) -> Surface: ... @@ -3597,19 +3622,19 @@ class Drag(GObject.Object): def __init__( self, *, - actions: DragAction = ..., - content: ContentProvider = ..., - device: Device = ..., - formats: ContentFormats = ..., - selected_action: DragAction = ..., - surface: Surface = ..., + actions: _DragActionValueType = ..., + content: ContentProvider | None = ..., + device: Device | None = ..., + formats: ContentFormats | None = ..., + selected_action: _DragActionValueType = ..., + surface: Surface | None = ..., ) -> None: ... @staticmethod def begin( surface: Surface, device: Device, content: ContentProvider, - actions: DragAction, + actions: _DragActionValueType, dx: float, dy: float, ) -> Drag | None: ... @@ -3664,7 +3689,9 @@ class DrawContext(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, display: Display = ..., surface: Surface = ...) -> None: ... + def __init__( + self, *, display: Display | None = ..., surface: Surface | None = ... + ) -> None: ... def begin_frame(self, region: cairo.Region) -> None: ... def end_frame(self) -> None: ... def get_display(self) -> Display | None: ... @@ -3713,13 +3740,13 @@ class Drop(GObject.Object): def __init__( self, *, - actions: DragAction = ..., - device: Device = ..., - drag: Drag = ..., - formats: ContentFormats = ..., - surface: Surface = ..., + actions: _DragActionValueType = ..., + device: Device | None = ..., + drag: Drag | None = ..., + formats: ContentFormats | None = ..., + surface: Surface | None = ..., ) -> None: ... - def finish(self, action: DragAction) -> None: ... + def finish(self, action: _DragActionValueType) -> None: ... def get_actions(self) -> DragAction: ... def get_device(self) -> Device: ... def get_display(self) -> Display: ... @@ -3752,7 +3779,9 @@ class Drop(GObject.Object): *user_data: Unpack[_DataTs], ) -> None: ... def read_value_finish(self, result: Gio.AsyncResult) -> Any: ... - def status(self, actions: DragAction, preferred: DragAction) -> None: ... + def status( + self, actions: _DragActionValueType, preferred: _DragActionValueType + ) -> None: ... class Event(_gi.Fundamental): """ @@ -3763,7 +3792,7 @@ class Event(_gi.Fundamental): Event(**properties) """ def get_axes(self) -> tuple[bool, list[float]]: ... - def get_axis(self, axis_use: AxisUse) -> tuple[bool, float]: ... + def get_axis(self, axis_use: _AxisUseValueType) -> tuple[bool, float]: ... def get_device(self) -> Device | None: ... def get_device_tool(self) -> DeviceTool | None: ... def get_display(self) -> Display | None: ... @@ -3844,7 +3873,7 @@ class FrameClock(GObject.Object): def get_history_start(self) -> int: ... def get_refresh_info(self, base_time: int) -> tuple[int, int]: ... def get_timings(self, frame_counter: int) -> FrameTimings | None: ... - def request_phase(self, phase: FrameClockPhase) -> None: ... + def request_phase(self, phase: _FrameClockPhaseValueType) -> None: ... class FrameClockClass(_gi.Struct): ... class FrameClockPrivate(_gi.Struct): ... @@ -3883,7 +3912,10 @@ class GLContext(DrawContext): """ @type_check_only class Props(DrawContext.Props): - allowed_apis: GLAPI + @property + def allowed_apis(self) -> GLAPI: ... + @allowed_apis.setter + def allowed_apis(self, value: _GLAPIValueType) -> None: ... @property def api(self) -> GLAPI: ... @property @@ -3894,10 +3926,10 @@ class GLContext(DrawContext): def __init__( self, *, - allowed_apis: GLAPI = ..., - shared_context: GLContext = ..., - display: Display = ..., - surface: Surface = ..., + allowed_apis: _GLAPIValueType = ..., + shared_context: GLContext | None = ..., + display: Display | None = ..., + surface: Surface | None = ..., ) -> None: ... @staticmethod def clear_current() -> None: ... @@ -3917,7 +3949,7 @@ class GLContext(DrawContext): def is_shared(self, other: GLContext) -> bool: ... def make_current(self) -> None: ... def realize(self) -> bool: ... - def set_allowed_apis(self, apis: GLAPI) -> None: ... + def set_allowed_apis(self, apis: _GLAPIValueType) -> None: ... def set_debug_enabled(self, enabled: bool) -> None: ... def set_forward_compatible(self, compatible: bool) -> None: ... def set_required_version(self, major: int, minor: int) -> None: ... @@ -3951,7 +3983,11 @@ class GLTexture(Texture): notify (GParam) """ def __init__( - self, *, color_state: ColorState = ..., height: int = ..., width: int = ... + self, + *, + color_state: ColorState | None = ..., + height: int = ..., + width: int = ..., ) -> None: ... @classmethod def new( @@ -3995,11 +4031,17 @@ class GLTextureBuilder(GObject.Object): class Props(GObject.Object.Props): color_state: ColorState context: GLContext | None - format: MemoryFormat + @property + def format(self) -> MemoryFormat: ... + @format.setter + def format(self, value: _MemoryFormatValueType) -> None: ... has_mipmap: bool height: int id: int - sync: int | None + @property + def sync(self) -> int: ... + @sync.setter + def sync(self, value: int | Any | None) -> None: ... update_region: cairo.Region | None update_texture: Texture | None width: int @@ -4011,7 +4053,7 @@ class GLTextureBuilder(GObject.Object): *, color_state: ColorState = ..., context: GLContext | None = ..., - format: MemoryFormat = ..., + format: _MemoryFormatValueType = ..., has_mipmap: bool = ..., height: int = ..., id: int = ..., @@ -4039,7 +4081,7 @@ class GLTextureBuilder(GObject.Object): def new(cls) -> GLTextureBuilder: ... def set_color_state(self, color_state: ColorState) -> None: ... def set_context(self, context: GLContext | None = None) -> None: ... - def set_format(self, format: MemoryFormat) -> None: ... + def set_format(self, format: _MemoryFormatValueType) -> None: ... def set_has_mipmap(self, has_mipmap: bool) -> None: ... def set_height(self, height: int) -> None: ... def set_id(self, id: int) -> None: ... @@ -4077,7 +4119,7 @@ class KeyEvent(Event): def get_level(self) -> int: ... def get_match(self) -> tuple[bool, int, ModifierType]: ... def is_modifier(self) -> bool: ... - def matches(self, keyval: int, modifiers: ModifierType) -> KeyMatch: ... + def matches(self, keyval: int, modifiers: _ModifierTypeValueType) -> KeyMatch: ... class KeymapKey(_gi.Struct): """ @@ -4120,14 +4162,18 @@ class MemoryTexture(Texture): notify (GParam) """ def __init__( - self, *, color_state: ColorState = ..., height: int = ..., width: int = ... + self, + *, + color_state: ColorState | None = ..., + height: int = ..., + width: int = ..., ) -> None: ... @classmethod def new( cls, width: int, height: int, - format: MemoryFormat, + format: _MemoryFormatValueType, bytes: GLib.Bytes, stride: int, ) -> MemoryTexture: ... @@ -4160,7 +4206,10 @@ class MemoryTextureBuilder(GObject.Object): class Props(GObject.Object.Props): bytes: GLib.Bytes | None color_state: ColorState - format: MemoryFormat + @property + def format(self) -> MemoryFormat: ... + @format.setter + def format(self, value: _MemoryFormatValueType) -> None: ... height: int stride: int update_region: cairo.Region | None @@ -4174,7 +4223,7 @@ class MemoryTextureBuilder(GObject.Object): *, bytes: GLib.Bytes | None = ..., color_state: ColorState = ..., - format: MemoryFormat = ..., + format: _MemoryFormatValueType = ..., height: int = ..., stride: int = ..., update_region: cairo.Region | None = ..., @@ -4196,7 +4245,7 @@ class MemoryTextureBuilder(GObject.Object): def new(cls) -> MemoryTextureBuilder: ... def set_bytes(self, bytes: GLib.Bytes | None = None) -> None: ... def set_color_state(self, color_state: ColorState) -> None: ... - def set_format(self, format: MemoryFormat) -> None: ... + def set_format(self, format: _MemoryFormatValueType) -> None: ... def set_height(self, height: int) -> None: ... def set_offset(self, plane: int, offset: int) -> None: ... def set_stride(self, stride: int) -> None: ... @@ -4270,7 +4319,7 @@ class Monitor(GObject.Object): @property def props(self) -> Props: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... def get_connector(self) -> str | None: ... def get_description(self) -> str | None: ... def get_display(self) -> Display: ... @@ -4382,7 +4431,10 @@ class PopupLayout(GObject.GBoxed): new(anchor_rect:Gdk.Rectangle, rect_anchor:Gdk.Gravity, surface_anchor:Gdk.Gravity) -> Gdk.PopupLayout """ def __init__( - self, anchor_rect: Rectangle, rect_anchor: Gravity, surface_anchor: Gravity + self, + anchor_rect: Rectangle, + rect_anchor: _GravityValueType, + surface_anchor: _GravityValueType, ) -> None: ... def copy(self) -> PopupLayout: ... def equal(self, other: PopupLayout) -> bool: ... @@ -4394,17 +4446,20 @@ class PopupLayout(GObject.GBoxed): def get_surface_anchor(self) -> Gravity: ... @classmethod def new( - cls, anchor_rect: Rectangle, rect_anchor: Gravity, surface_anchor: Gravity + cls, + anchor_rect: Rectangle, + rect_anchor: _GravityValueType, + surface_anchor: _GravityValueType, ) -> PopupLayout: ... def ref(self) -> PopupLayout: ... - def set_anchor_hints(self, anchor_hints: AnchorHints) -> None: ... + def set_anchor_hints(self, anchor_hints: _AnchorHintsValueType) -> None: ... def set_anchor_rect(self, anchor_rect: Rectangle) -> None: ... def set_offset(self, dx: int, dy: int) -> None: ... - def set_rect_anchor(self, anchor: Gravity) -> None: ... + def set_rect_anchor(self, anchor: _GravityValueType) -> None: ... def set_shadow_width( self, left: int, right: int, top: int, bottom: int ) -> None: ... - def set_surface_anchor(self, anchor: Gravity) -> None: ... + def set_surface_anchor(self, anchor: _GravityValueType) -> None: ... def unref(self) -> None: ... class ProximityEvent(Event): @@ -4512,9 +4567,9 @@ class Seat(GObject.Object): def props(self) -> Props: ... @property def parent_instance(self) -> GObject.Object: ... - def __init__(self, *, display: Display = ...) -> None: ... + def __init__(self, *, display: Display | None = ...) -> None: ... def get_capabilities(self) -> SeatCapabilities: ... - def get_devices(self, capabilities: SeatCapabilities) -> list[Device]: ... + def get_devices(self, capabilities: _SeatCapabilitiesValueType) -> list[Device]: ... def get_display(self) -> Display: ... def get_keyboard(self) -> Device | None: ... def get_pointer(self) -> Device | None: ... @@ -4592,8 +4647,8 @@ class Surface(GObject.Object): self, *, cursor: Cursor | None = ..., - display: Display = ..., - frame_clock: FrameClock = ..., + display: Display | None = ..., + frame_clock: FrameClock | None = ..., ) -> None: ... def beep(self) -> None: ... def create_cairo_context(self) -> CairoContext: ... @@ -4672,7 +4727,11 @@ class Texture(GObject.Object, Paintable, Gio.Icon, Gio.LoadableIcon): @property def props(self) -> Props: ... def __init__( - self, *, color_state: ColorState = ..., height: int = ..., width: int = ... + self, + *, + color_state: ColorState | None = ..., + height: int = ..., + width: int = ..., ) -> None: ... def download(self, data: Sequence[int], stride: int) -> None: ... def get_color_state(self) -> ColorState: ... @@ -4716,7 +4775,7 @@ class TextureDownloader(GObject.GBoxed): @classmethod def new(cls, texture: Texture) -> TextureDownloader: ... def set_color_state(self, color_state: ColorState) -> None: ... - def set_format(self, format: MemoryFormat) -> None: ... + def set_format(self, format: _MemoryFormatValueType) -> None: ... def set_texture(self, texture: Texture) -> None: ... class TimeCoord(_gi.Struct): @@ -4744,7 +4803,7 @@ class Toplevel(GObject.GInterface, Protocol): ) -> None: ... def begin_resize( self, - edge: SurfaceEdge, + edge: _SurfaceEdgeValueType, device: Device | None, button: int, x: float, @@ -4762,7 +4821,7 @@ class Toplevel(GObject.GInterface, Protocol): def restore_system_shortcuts(self) -> None: ... def set_decorated(self, decorated: bool) -> None: ... def set_deletable(self, deletable: bool) -> None: ... - def set_gravity(self, gravity: Gravity) -> None: ... + def set_gravity(self, gravity: _GravityValueType) -> None: ... def set_icon_list(self, surfaces: list[Texture]) -> None: ... def set_modal(self, modal: bool) -> None: ... def set_startup_id(self, startup_id: str) -> None: ... @@ -4770,7 +4829,7 @@ class Toplevel(GObject.GInterface, Protocol): def set_transient_for(self, parent: Surface) -> None: ... def show_window_menu(self, event: Event) -> bool: ... def supports_edge_constraints(self) -> bool: ... - def titlebar_gesture(self, gesture: TitlebarGesture) -> bool: ... + def titlebar_gesture(self, gesture: _TitlebarGestureValueType) -> bool: ... class ToplevelInterface(_gi.Struct): ... @@ -4851,7 +4910,9 @@ class VulkanContext(DrawContext): Signals from GObject: notify (GParam) """ - def __init__(self, *, display: Display = ..., surface: Surface = ...) -> None: ... + def __init__( + self, *, display: Display | None = ..., surface: Surface | None = ... + ) -> None: ... class AnchorHints(GObject.GFlags): FLIP = 3 @@ -4864,6 +4925,30 @@ class AnchorHints(GObject.GFlags): SLIDE_X = 4 SLIDE_Y = 8 +_AnchorHintsLiteralType: TypeAlias = Literal[ + "GDK_ANCHOR_FLIP", + "GDK_ANCHOR_FLIP_X", + "GDK_ANCHOR_FLIP_Y", + "GDK_ANCHOR_RESIZE", + "GDK_ANCHOR_RESIZE_X", + "GDK_ANCHOR_RESIZE_Y", + "GDK_ANCHOR_SLIDE", + "GDK_ANCHOR_SLIDE_X", + "GDK_ANCHOR_SLIDE_Y", + "flip", + "flip-x", + "flip-y", + "resize", + "resize-x", + "resize-y", + "slide", + "slide-x", + "slide-y", +] +_AnchorHintsValueType: TypeAlias = ( + AnchorHints | _AnchorHintsLiteralType | tuple[_AnchorHintsLiteralType, ...] +) + class AxisFlags(GObject.GFlags): DELTA_X = 8 DELTA_Y = 16 @@ -4877,6 +4962,34 @@ class AxisFlags(GObject.GFlags): Y = 4 YTILT = 128 +_AxisFlagsLiteralType: TypeAlias = Literal[ + "GDK_AXIS_FLAG_DELTA_X", + "GDK_AXIS_FLAG_DELTA_Y", + "GDK_AXIS_FLAG_DISTANCE", + "GDK_AXIS_FLAG_PRESSURE", + "GDK_AXIS_FLAG_ROTATION", + "GDK_AXIS_FLAG_SLIDER", + "GDK_AXIS_FLAG_WHEEL", + "GDK_AXIS_FLAG_X", + "GDK_AXIS_FLAG_XTILT", + "GDK_AXIS_FLAG_Y", + "GDK_AXIS_FLAG_YTILT", + "delta-x", + "delta-y", + "distance", + "pressure", + "rotation", + "slider", + "wheel", + "x", + "xtilt", + "y", + "ytilt", +] +_AxisFlagsValueType: TypeAlias = ( + AxisFlags | _AxisFlagsLiteralType | tuple[_AxisFlagsLiteralType, ...] +) + class DragAction(GObject.GFlags): ASK = 8 COPY = 1 @@ -4884,7 +4997,23 @@ class DragAction(GObject.GFlags): MOVE = 2 NONE = 0 @staticmethod - def is_unique(action: DragAction) -> bool: ... + def is_unique(action: _DragActionValueType) -> bool: ... + +_DragActionLiteralType: TypeAlias = Literal[ + "GDK_ACTION_ASK", + "GDK_ACTION_COPY", + "GDK_ACTION_LINK", + "GDK_ACTION_MOVE", + "GDK_ACTION_NONE", + "ask", + "copy", + "link", + "move", + "none", +] +_DragActionValueType: TypeAlias = ( + DragAction | _DragActionLiteralType | tuple[_DragActionLiteralType, ...] +) class FrameClockPhase(GObject.GFlags): AFTER_PAINT = 64 @@ -4896,10 +5025,37 @@ class FrameClockPhase(GObject.GFlags): RESUME_EVENTS = 32 UPDATE = 4 +_FrameClockPhaseLiteralType: TypeAlias = Literal[ + "GDK_FRAME_CLOCK_PHASE_AFTER_PAINT", + "GDK_FRAME_CLOCK_PHASE_BEFORE_PAINT", + "GDK_FRAME_CLOCK_PHASE_FLUSH_EVENTS", + "GDK_FRAME_CLOCK_PHASE_LAYOUT", + "GDK_FRAME_CLOCK_PHASE_NONE", + "GDK_FRAME_CLOCK_PHASE_PAINT", + "GDK_FRAME_CLOCK_PHASE_RESUME_EVENTS", + "GDK_FRAME_CLOCK_PHASE_UPDATE", + "after-paint", + "before-paint", + "flush-events", + "layout", + "none", + "paint", + "resume-events", + "update", +] +_FrameClockPhaseValueType: TypeAlias = ( + FrameClockPhase + | _FrameClockPhaseLiteralType + | tuple[_FrameClockPhaseLiteralType, ...] +) + class GLAPI(GObject.GFlags): GL = 1 GLES = 2 +_GLAPILiteralType: TypeAlias = Literal["GDK_GL_API_GL", "GDK_GL_API_GLES", "gl", "gles"] +_GLAPIValueType: TypeAlias = GLAPI | _GLAPILiteralType | tuple[_GLAPILiteralType, ...] + class ModifierType(GObject.GFlags): ALT_MASK = 8 BUTTON1_MASK = 256 @@ -4915,10 +5071,49 @@ class ModifierType(GObject.GFlags): SHIFT_MASK = 1 SUPER_MASK = 67108864 +_ModifierTypeLiteralType: TypeAlias = Literal[ + "GDK_ALT_MASK", + "GDK_BUTTON1_MASK", + "GDK_BUTTON2_MASK", + "GDK_BUTTON3_MASK", + "GDK_BUTTON4_MASK", + "GDK_BUTTON5_MASK", + "GDK_CONTROL_MASK", + "GDK_HYPER_MASK", + "GDK_LOCK_MASK", + "GDK_META_MASK", + "GDK_NO_MODIFIER_MASK", + "GDK_SHIFT_MASK", + "GDK_SUPER_MASK", + "alt-mask", + "button1-mask", + "button2-mask", + "button3-mask", + "button4-mask", + "button5-mask", + "control-mask", + "hyper-mask", + "lock-mask", + "meta-mask", + "no-modifier-mask", + "shift-mask", + "super-mask", +] +_ModifierTypeValueType: TypeAlias = ( + ModifierType | _ModifierTypeLiteralType | tuple[_ModifierTypeLiteralType, ...] +) + class PaintableFlags(GObject.GFlags): CONTENTS = 2 SIZE = 1 +_PaintableFlagsLiteralType: TypeAlias = Literal[ + "GDK_PAINTABLE_STATIC_CONTENTS", "GDK_PAINTABLE_STATIC_SIZE", "contents", "size" +] +_PaintableFlagsValueType: TypeAlias = ( + PaintableFlags | _PaintableFlagsLiteralType | tuple[_PaintableFlagsLiteralType, ...] +) + class SeatCapabilities(GObject.GFlags): ALL = 31 ALL_POINTING = 7 @@ -4929,6 +5124,30 @@ class SeatCapabilities(GObject.GFlags): TABLET_STYLUS = 4 TOUCH = 2 +_SeatCapabilitiesLiteralType: TypeAlias = Literal[ + "GDK_SEAT_CAPABILITY_ALL", + "GDK_SEAT_CAPABILITY_ALL_POINTING", + "GDK_SEAT_CAPABILITY_KEYBOARD", + "GDK_SEAT_CAPABILITY_NONE", + "GDK_SEAT_CAPABILITY_POINTER", + "GDK_SEAT_CAPABILITY_TABLET_PAD", + "GDK_SEAT_CAPABILITY_TABLET_STYLUS", + "GDK_SEAT_CAPABILITY_TOUCH", + "all", + "all-pointing", + "keyboard", + "none", + "pointer", + "tablet-pad", + "tablet-stylus", + "touch", +] +_SeatCapabilitiesValueType: TypeAlias = ( + SeatCapabilities + | _SeatCapabilitiesLiteralType + | tuple[_SeatCapabilitiesLiteralType, ...] +) + class ToplevelCapabilities(GObject.GFlags): EDGE_CONSTRAINTS = 1 FULLSCREEN = 32 @@ -4939,6 +5158,30 @@ class ToplevelCapabilities(GObject.GFlags): TITLEBAR_GESTURES = 4 WINDOW_MENU = 8 +_ToplevelCapabilitiesLiteralType: TypeAlias = Literal[ + "GDK_TOPLEVEL_CAPABILITIES_EDGE_CONSTRAINTS", + "GDK_TOPLEVEL_CAPABILITIES_FULLSCREEN", + "GDK_TOPLEVEL_CAPABILITIES_INHIBIT_SHORTCUTS", + "GDK_TOPLEVEL_CAPABILITIES_LOWER", + "GDK_TOPLEVEL_CAPABILITIES_MAXIMIZE", + "GDK_TOPLEVEL_CAPABILITIES_MINIMIZE", + "GDK_TOPLEVEL_CAPABILITIES_TITLEBAR_GESTURES", + "GDK_TOPLEVEL_CAPABILITIES_WINDOW_MENU", + "edge-constraints", + "fullscreen", + "inhibit-shortcuts", + "lower", + "maximize", + "minimize", + "titlebar-gestures", + "window-menu", +] +_ToplevelCapabilitiesValueType: TypeAlias = ( + ToplevelCapabilities + | _ToplevelCapabilitiesLiteralType + | tuple[_ToplevelCapabilitiesLiteralType, ...] +) + class ToplevelState(GObject.GFlags): ABOVE = 16 BELOW = 32 @@ -4958,6 +5201,46 @@ class ToplevelState(GObject.GFlags): TOP_RESIZABLE = 512 TOP_TILED = 256 +_ToplevelStateLiteralType: TypeAlias = Literal[ + "GDK_TOPLEVEL_STATE_ABOVE", + "GDK_TOPLEVEL_STATE_BELOW", + "GDK_TOPLEVEL_STATE_BOTTOM_RESIZABLE", + "GDK_TOPLEVEL_STATE_BOTTOM_TILED", + "GDK_TOPLEVEL_STATE_FOCUSED", + "GDK_TOPLEVEL_STATE_FULLSCREEN", + "GDK_TOPLEVEL_STATE_LEFT_RESIZABLE", + "GDK_TOPLEVEL_STATE_LEFT_TILED", + "GDK_TOPLEVEL_STATE_MAXIMIZED", + "GDK_TOPLEVEL_STATE_MINIMIZED", + "GDK_TOPLEVEL_STATE_RIGHT_RESIZABLE", + "GDK_TOPLEVEL_STATE_RIGHT_TILED", + "GDK_TOPLEVEL_STATE_STICKY", + "GDK_TOPLEVEL_STATE_SUSPENDED", + "GDK_TOPLEVEL_STATE_TILED", + "GDK_TOPLEVEL_STATE_TOP_RESIZABLE", + "GDK_TOPLEVEL_STATE_TOP_TILED", + "above", + "below", + "bottom-resizable", + "bottom-tiled", + "focused", + "fullscreen", + "left-resizable", + "left-tiled", + "maximized", + "minimized", + "right-resizable", + "right-tiled", + "sticky", + "suspended", + "tiled", + "top-resizable", + "top-tiled", +] +_ToplevelStateValueType: TypeAlias = ( + ToplevelState | _ToplevelStateLiteralType | tuple[_ToplevelStateLiteralType, ...] +) + class AxisUse(GObject.GEnum): DELTA_X = 3 DELTA_Y = 4 @@ -4973,10 +5256,45 @@ class AxisUse(GObject.GEnum): Y = 2 YTILT = 7 +_AxisUseLiteralType: TypeAlias = Literal[ + "GDK_AXIS_DELTA_X", + "GDK_AXIS_DELTA_Y", + "GDK_AXIS_DISTANCE", + "GDK_AXIS_IGNORE", + "GDK_AXIS_LAST", + "GDK_AXIS_PRESSURE", + "GDK_AXIS_ROTATION", + "GDK_AXIS_SLIDER", + "GDK_AXIS_WHEEL", + "GDK_AXIS_X", + "GDK_AXIS_XTILT", + "GDK_AXIS_Y", + "GDK_AXIS_YTILT", + "delta-x", + "delta-y", + "distance", + "ignore", + "last", + "pressure", + "rotation", + "slider", + "wheel", + "x", + "xtilt", + "y", + "ytilt", +] +_AxisUseValueType: TypeAlias = AxisUse | _AxisUseLiteralType + class CicpRange(GObject.GEnum): FULL = 1 NARROW = 0 +_CicpRangeLiteralType: TypeAlias = Literal[ + "GDK_CICP_RANGE_FULL", "GDK_CICP_RANGE_NARROW", "full", "narrow" +] +_CicpRangeValueType: TypeAlias = CicpRange | _CicpRangeLiteralType + class CrossingMode(GObject.GEnum): DEVICE_SWITCH = 8 GRAB = 1 @@ -4988,11 +5306,43 @@ class CrossingMode(GObject.GEnum): TOUCH_END = 7 UNGRAB = 2 +_CrossingModeLiteralType: TypeAlias = Literal[ + "GDK_CROSSING_DEVICE_SWITCH", + "GDK_CROSSING_GRAB", + "GDK_CROSSING_GTK_GRAB", + "GDK_CROSSING_GTK_UNGRAB", + "GDK_CROSSING_NORMAL", + "GDK_CROSSING_STATE_CHANGED", + "GDK_CROSSING_TOUCH_BEGIN", + "GDK_CROSSING_TOUCH_END", + "GDK_CROSSING_UNGRAB", + "device-switch", + "grab", + "gtk-grab", + "gtk-ungrab", + "normal", + "state-changed", + "touch-begin", + "touch-end", + "ungrab", +] +_CrossingModeValueType: TypeAlias = CrossingMode | _CrossingModeLiteralType + class DevicePadFeature(GObject.GEnum): BUTTON = 0 RING = 1 STRIP = 2 +_DevicePadFeatureLiteralType: TypeAlias = Literal[ + "GDK_DEVICE_PAD_FEATURE_BUTTON", + "GDK_DEVICE_PAD_FEATURE_RING", + "GDK_DEVICE_PAD_FEATURE_STRIP", + "button", + "ring", + "strip", +] +_DevicePadFeatureValueType: TypeAlias = DevicePadFeature | _DevicePadFeatureLiteralType + class DeviceToolType(GObject.GEnum): AIRBRUSH = 5 BRUSH = 3 @@ -5003,6 +5353,26 @@ class DeviceToolType(GObject.GEnum): PENCIL = 4 UNKNOWN = 0 +_DeviceToolTypeLiteralType: TypeAlias = Literal[ + "GDK_DEVICE_TOOL_TYPE_AIRBRUSH", + "GDK_DEVICE_TOOL_TYPE_BRUSH", + "GDK_DEVICE_TOOL_TYPE_ERASER", + "GDK_DEVICE_TOOL_TYPE_LENS", + "GDK_DEVICE_TOOL_TYPE_MOUSE", + "GDK_DEVICE_TOOL_TYPE_PEN", + "GDK_DEVICE_TOOL_TYPE_PENCIL", + "GDK_DEVICE_TOOL_TYPE_UNKNOWN", + "airbrush", + "brush", + "eraser", + "lens", + "mouse", + "pen", + "pencil", + "unknown", +] +_DeviceToolTypeValueType: TypeAlias = DeviceToolType | _DeviceToolTypeLiteralType + class DmabufError(GObject.GEnum): CREATION_FAILED = 2 NOT_AVAILABLE = 0 @@ -5010,11 +5380,31 @@ class DmabufError(GObject.GEnum): @staticmethod def quark() -> int: ... +_DmabufErrorLiteralType: TypeAlias = Literal[ + "GDK_DMABUF_ERROR_CREATION_FAILED", + "GDK_DMABUF_ERROR_NOT_AVAILABLE", + "GDK_DMABUF_ERROR_UNSUPPORTED_FORMAT", + "creation-failed", + "not-available", + "unsupported-format", +] +_DmabufErrorValueType: TypeAlias = DmabufError | _DmabufErrorLiteralType + class DragCancelReason(GObject.GEnum): ERROR = 2 NO_TARGET = 0 USER_CANCELLED = 1 +_DragCancelReasonLiteralType: TypeAlias = Literal[ + "GDK_DRAG_CANCEL_ERROR", + "GDK_DRAG_CANCEL_NO_TARGET", + "GDK_DRAG_CANCEL_USER_CANCELLED", + "error", + "no-target", + "user-cancelled", +] +_DragCancelReasonValueType: TypeAlias = DragCancelReason | _DragCancelReasonLiteralType + class EventType(GObject.GEnum): BUTTON_PRESS = 2 BUTTON_RELEASE = 3 @@ -5048,10 +5438,84 @@ class EventType(GObject.GEnum): TOUCH_END = 19 TOUCH_UPDATE = 18 +_EventTypeLiteralType: TypeAlias = Literal[ + "GDK_BUTTON_PRESS", + "GDK_BUTTON_RELEASE", + "GDK_DELETE", + "GDK_DRAG_ENTER", + "GDK_DRAG_LEAVE", + "GDK_DRAG_MOTION", + "GDK_DROP_START", + "GDK_ENTER_NOTIFY", + "GDK_EVENT_LAST", + "GDK_FOCUS_CHANGE", + "GDK_GRAB_BROKEN", + "GDK_KEY_PRESS", + "GDK_KEY_RELEASE", + "GDK_LEAVE_NOTIFY", + "GDK_MOTION_NOTIFY", + "GDK_PAD_BUTTON_PRESS", + "GDK_PAD_BUTTON_RELEASE", + "GDK_PAD_DIAL", + "GDK_PAD_GROUP_MODE", + "GDK_PAD_RING", + "GDK_PAD_STRIP", + "GDK_PROXIMITY_IN", + "GDK_PROXIMITY_OUT", + "GDK_SCROLL", + "GDK_TOUCHPAD_HOLD", + "GDK_TOUCHPAD_PINCH", + "GDK_TOUCHPAD_SWIPE", + "GDK_TOUCH_BEGIN", + "GDK_TOUCH_CANCEL", + "GDK_TOUCH_END", + "GDK_TOUCH_UPDATE", + "button-press", + "button-release", + "delete", + "drag-enter", + "drag-leave", + "drag-motion", + "drop-start", + "enter-notify", + "event-last", + "focus-change", + "grab-broken", + "key-press", + "key-release", + "leave-notify", + "motion-notify", + "pad-button-press", + "pad-button-release", + "pad-dial", + "pad-group-mode", + "pad-ring", + "pad-strip", + "proximity-in", + "proximity-out", + "scroll", + "touch-begin", + "touch-cancel", + "touch-end", + "touch-update", + "touchpad-hold", + "touchpad-pinch", + "touchpad-swipe", +] +_EventTypeValueType: TypeAlias = EventType | _EventTypeLiteralType + class FullscreenMode(GObject.GEnum): ALL_MONITORS = 1 CURRENT_MONITOR = 0 +_FullscreenModeLiteralType: TypeAlias = Literal[ + "GDK_FULLSCREEN_ON_ALL_MONITORS", + "GDK_FULLSCREEN_ON_CURRENT_MONITOR", + "all-monitors", + "current-monitor", +] +_FullscreenModeValueType: TypeAlias = FullscreenMode | _FullscreenModeLiteralType + class GLError(GObject.GEnum): COMPILATION_FAILED = 3 LINK_FAILED = 4 @@ -5061,6 +5525,20 @@ class GLError(GObject.GEnum): @staticmethod def quark() -> int: ... +_GLErrorLiteralType: TypeAlias = Literal[ + "GDK_GL_ERROR_COMPILATION_FAILED", + "GDK_GL_ERROR_LINK_FAILED", + "GDK_GL_ERROR_NOT_AVAILABLE", + "GDK_GL_ERROR_UNSUPPORTED_FORMAT", + "GDK_GL_ERROR_UNSUPPORTED_PROFILE", + "compilation-failed", + "link-failed", + "not-available", + "unsupported-format", + "unsupported-profile", +] +_GLErrorValueType: TypeAlias = GLError | _GLErrorLiteralType + class Gravity(GObject.GEnum): CENTER = 5 EAST = 6 @@ -5073,6 +5551,30 @@ class Gravity(GObject.GEnum): STATIC = 10 WEST = 4 +_GravityLiteralType: TypeAlias = Literal[ + "GDK_GRAVITY_CENTER", + "GDK_GRAVITY_EAST", + "GDK_GRAVITY_NORTH", + "GDK_GRAVITY_NORTH_EAST", + "GDK_GRAVITY_NORTH_WEST", + "GDK_GRAVITY_SOUTH", + "GDK_GRAVITY_SOUTH_EAST", + "GDK_GRAVITY_SOUTH_WEST", + "GDK_GRAVITY_STATIC", + "GDK_GRAVITY_WEST", + "center", + "east", + "north", + "north-east", + "north-west", + "south", + "south-east", + "south-west", + "static", + "west", +] +_GravityValueType: TypeAlias = Gravity | _GravityLiteralType + class InputSource(GObject.GEnum): KEYBOARD = 2 MOUSE = 0 @@ -5082,11 +5584,39 @@ class InputSource(GObject.GEnum): TOUCHSCREEN = 3 TRACKPOINT = 5 +_InputSourceLiteralType: TypeAlias = Literal[ + "GDK_SOURCE_KEYBOARD", + "GDK_SOURCE_MOUSE", + "GDK_SOURCE_PEN", + "GDK_SOURCE_TABLET_PAD", + "GDK_SOURCE_TOUCHPAD", + "GDK_SOURCE_TOUCHSCREEN", + "GDK_SOURCE_TRACKPOINT", + "keyboard", + "mouse", + "pen", + "tablet-pad", + "touchpad", + "touchscreen", + "trackpoint", +] +_InputSourceValueType: TypeAlias = InputSource | _InputSourceLiteralType + class KeyMatch(GObject.GEnum): EXACT = 2 NONE = 0 PARTIAL = 1 +_KeyMatchLiteralType: TypeAlias = Literal[ + "GDK_KEY_MATCH_EXACT", + "GDK_KEY_MATCH_NONE", + "GDK_KEY_MATCH_PARTIAL", + "exact", + "none", + "partial", +] +_KeyMatchValueType: TypeAlias = KeyMatch | _KeyMatchLiteralType + class MemoryFormat(GObject.GEnum): A16 = 25 A16_FLOAT = 26 @@ -5155,6 +5685,142 @@ class MemoryFormat(GObject.GEnum): X8B8G8R8 = 32 X8R8G8B8 = 30 +_MemoryFormatLiteralType: TypeAlias = Literal[ + "GDK_MEMORY_A16", + "GDK_MEMORY_A16_FLOAT", + "GDK_MEMORY_A32_FLOAT", + "GDK_MEMORY_A8", + "GDK_MEMORY_A8B8G8R8", + "GDK_MEMORY_A8B8G8R8_PREMULTIPLIED", + "GDK_MEMORY_A8R8G8B8", + "GDK_MEMORY_A8R8G8B8_PREMULTIPLIED", + "GDK_MEMORY_B8G8R8", + "GDK_MEMORY_B8G8R8A8", + "GDK_MEMORY_B8G8R8A8_PREMULTIPLIED", + "GDK_MEMORY_B8G8R8G8_422", + "GDK_MEMORY_B8G8R8X8", + "GDK_MEMORY_G10X6_B10X6R10X6_420", + "GDK_MEMORY_G12X4_B12X4R12X4_420", + "GDK_MEMORY_G16", + "GDK_MEMORY_G16A16", + "GDK_MEMORY_G16A16_PREMULTIPLIED", + "GDK_MEMORY_G16_B16R16_420", + "GDK_MEMORY_G16_B16_R16_420", + "GDK_MEMORY_G16_B16_R16_422", + "GDK_MEMORY_G16_B16_R16_444", + "GDK_MEMORY_G8", + "GDK_MEMORY_G8A8", + "GDK_MEMORY_G8A8_PREMULTIPLIED", + "GDK_MEMORY_G8B8G8R8_422", + "GDK_MEMORY_G8R8G8B8_422", + "GDK_MEMORY_G8_B8R8_420", + "GDK_MEMORY_G8_B8R8_422", + "GDK_MEMORY_G8_B8R8_444", + "GDK_MEMORY_G8_B8_R8_410", + "GDK_MEMORY_G8_B8_R8_411", + "GDK_MEMORY_G8_B8_R8_420", + "GDK_MEMORY_G8_B8_R8_422", + "GDK_MEMORY_G8_B8_R8_444", + "GDK_MEMORY_G8_R8B8_420", + "GDK_MEMORY_G8_R8B8_422", + "GDK_MEMORY_G8_R8B8_444", + "GDK_MEMORY_G8_R8_B8_410", + "GDK_MEMORY_G8_R8_B8_411", + "GDK_MEMORY_G8_R8_B8_420", + "GDK_MEMORY_G8_R8_B8_422", + "GDK_MEMORY_G8_R8_B8_444", + "GDK_MEMORY_N_FORMATS", + "GDK_MEMORY_R16G16B16", + "GDK_MEMORY_R16G16B16A16", + "GDK_MEMORY_R16G16B16A16_FLOAT", + "GDK_MEMORY_R16G16B16A16_FLOAT_PREMULTIPLIED", + "GDK_MEMORY_R16G16B16A16_PREMULTIPLIED", + "GDK_MEMORY_R16G16B16_FLOAT", + "GDK_MEMORY_R32G32B32A32_FLOAT", + "GDK_MEMORY_R32G32B32A32_FLOAT_PREMULTIPLIED", + "GDK_MEMORY_R32G32B32_FLOAT", + "GDK_MEMORY_R8G8B8", + "GDK_MEMORY_R8G8B8A8", + "GDK_MEMORY_R8G8B8A8_PREMULTIPLIED", + "GDK_MEMORY_R8G8B8G8_422", + "GDK_MEMORY_R8G8B8X8", + "GDK_MEMORY_X4G12_X4B12_X4R12_420", + "GDK_MEMORY_X4G12_X4B12_X4R12_422", + "GDK_MEMORY_X4G12_X4B12_X4R12_444", + "GDK_MEMORY_X6G10_X6B10_X6R10_420", + "GDK_MEMORY_X6G10_X6B10_X6R10_422", + "GDK_MEMORY_X6G10_X6B10_X6R10_444", + "GDK_MEMORY_X8B8G8R8", + "GDK_MEMORY_X8R8G8B8", + "a16", + "a16-float", + "a32-float", + "a8", + "a8b8g8r8", + "a8b8g8r8-premultiplied", + "a8r8g8b8", + "a8r8g8b8-premultiplied", + "b8g8r8", + "b8g8r8a8", + "b8g8r8a8-premultiplied", + "b8g8r8g8-422", + "b8g8r8x8", + "g10x6-b10x6r10x6-420", + "g12x4-b12x4r12x4-420", + "g16", + "g16-b16-r16-420", + "g16-b16-r16-422", + "g16-b16-r16-444", + "g16-b16r16-420", + "g16a16", + "g16a16-premultiplied", + "g8", + "g8-b8-r8-410", + "g8-b8-r8-411", + "g8-b8-r8-420", + "g8-b8-r8-422", + "g8-b8-r8-444", + "g8-b8r8-420", + "g8-b8r8-422", + "g8-b8r8-444", + "g8-r8-b8-410", + "g8-r8-b8-411", + "g8-r8-b8-420", + "g8-r8-b8-422", + "g8-r8-b8-444", + "g8-r8b8-420", + "g8-r8b8-422", + "g8-r8b8-444", + "g8a8", + "g8a8-premultiplied", + "g8b8g8r8-422", + "g8r8g8b8-422", + "n-formats", + "r16g16b16", + "r16g16b16-float", + "r16g16b16a16", + "r16g16b16a16-float", + "r16g16b16a16-float-premultiplied", + "r16g16b16a16-premultiplied", + "r32g32b32-float", + "r32g32b32a32-float", + "r32g32b32a32-float-premultiplied", + "r8g8b8", + "r8g8b8a8", + "r8g8b8a8-premultiplied", + "r8g8b8g8-422", + "r8g8b8x8", + "x4g12-x4b12-x4r12-420", + "x4g12-x4b12-x4r12-422", + "x4g12-x4b12-x4r12-444", + "x6g10-x6b10-x6r10-420", + "x6g10-x6b10-x6r10-422", + "x6g10-x6b10-x6r10-444", + "x8b8g8r8", + "x8r8g8b8", +] +_MemoryFormatValueType: TypeAlias = MemoryFormat | _MemoryFormatLiteralType + class NotifyType(GObject.GEnum): ANCESTOR = 0 INFERIOR = 2 @@ -5163,6 +5829,22 @@ class NotifyType(GObject.GEnum): UNKNOWN = 5 VIRTUAL = 1 +_NotifyTypeLiteralType: TypeAlias = Literal[ + "GDK_NOTIFY_ANCESTOR", + "GDK_NOTIFY_INFERIOR", + "GDK_NOTIFY_NONLINEAR", + "GDK_NOTIFY_NONLINEAR_VIRTUAL", + "GDK_NOTIFY_UNKNOWN", + "GDK_NOTIFY_VIRTUAL", + "ancestor", + "inferior", + "nonlinear", + "nonlinear-virtual", + "unknown", + "virtual", +] +_NotifyTypeValueType: TypeAlias = NotifyType | _NotifyTypeLiteralType + class ScrollDirection(GObject.GEnum): DOWN = 1 LEFT = 2 @@ -5170,15 +5852,46 @@ class ScrollDirection(GObject.GEnum): SMOOTH = 4 UP = 0 +_ScrollDirectionLiteralType: TypeAlias = Literal[ + "GDK_SCROLL_DOWN", + "GDK_SCROLL_LEFT", + "GDK_SCROLL_RIGHT", + "GDK_SCROLL_SMOOTH", + "GDK_SCROLL_UP", + "down", + "left", + "right", + "smooth", + "up", +] +_ScrollDirectionValueType: TypeAlias = ScrollDirection | _ScrollDirectionLiteralType + class ScrollRelativeDirection(GObject.GEnum): IDENTICAL = 0 INVERTED = 1 UNKNOWN = 2 +_ScrollRelativeDirectionLiteralType: TypeAlias = Literal[ + "GDK_SCROLL_RELATIVE_DIRECTION_IDENTICAL", + "GDK_SCROLL_RELATIVE_DIRECTION_INVERTED", + "GDK_SCROLL_RELATIVE_DIRECTION_UNKNOWN", + "identical", + "inverted", + "unknown", +] +_ScrollRelativeDirectionValueType: TypeAlias = ( + ScrollRelativeDirection | _ScrollRelativeDirectionLiteralType +) + class ScrollUnit(GObject.GEnum): SURFACE = 1 WHEEL = 0 +_ScrollUnitLiteralType: TypeAlias = Literal[ + "GDK_SCROLL_UNIT_SURFACE", "GDK_SCROLL_UNIT_WHEEL", "surface", "wheel" +] +_ScrollUnitValueType: TypeAlias = ScrollUnit | _ScrollUnitLiteralType + class SubpixelLayout(GObject.GEnum): HORIZONTAL_BGR = 3 HORIZONTAL_RGB = 2 @@ -5187,6 +5900,22 @@ class SubpixelLayout(GObject.GEnum): VERTICAL_BGR = 5 VERTICAL_RGB = 4 +_SubpixelLayoutLiteralType: TypeAlias = Literal[ + "GDK_SUBPIXEL_LAYOUT_HORIZONTAL_BGR", + "GDK_SUBPIXEL_LAYOUT_HORIZONTAL_RGB", + "GDK_SUBPIXEL_LAYOUT_NONE", + "GDK_SUBPIXEL_LAYOUT_UNKNOWN", + "GDK_SUBPIXEL_LAYOUT_VERTICAL_BGR", + "GDK_SUBPIXEL_LAYOUT_VERTICAL_RGB", + "horizontal-bgr", + "horizontal-rgb", + "none", + "unknown", + "vertical-bgr", + "vertical-rgb", +] +_SubpixelLayoutValueType: TypeAlias = SubpixelLayout | _SubpixelLayoutLiteralType + class SurfaceEdge(GObject.GEnum): EAST = 4 NORTH = 1 @@ -5197,6 +5926,26 @@ class SurfaceEdge(GObject.GEnum): SOUTH_WEST = 5 WEST = 3 +_SurfaceEdgeLiteralType: TypeAlias = Literal[ + "GDK_SURFACE_EDGE_EAST", + "GDK_SURFACE_EDGE_NORTH", + "GDK_SURFACE_EDGE_NORTH_EAST", + "GDK_SURFACE_EDGE_NORTH_WEST", + "GDK_SURFACE_EDGE_SOUTH", + "GDK_SURFACE_EDGE_SOUTH_EAST", + "GDK_SURFACE_EDGE_SOUTH_WEST", + "GDK_SURFACE_EDGE_WEST", + "east", + "north", + "north-east", + "north-west", + "south", + "south-east", + "south-west", + "west", +] +_SurfaceEdgeValueType: TypeAlias = SurfaceEdge | _SurfaceEdgeLiteralType + class TextureError(GObject.GEnum): CORRUPT_IMAGE = 1 TOO_LARGE = 0 @@ -5205,19 +5954,63 @@ class TextureError(GObject.GEnum): @staticmethod def quark() -> int: ... +_TextureErrorLiteralType: TypeAlias = Literal[ + "GDK_TEXTURE_ERROR_CORRUPT_IMAGE", + "GDK_TEXTURE_ERROR_TOO_LARGE", + "GDK_TEXTURE_ERROR_UNSUPPORTED_CONTENT", + "GDK_TEXTURE_ERROR_UNSUPPORTED_FORMAT", + "corrupt-image", + "too-large", + "unsupported-content", + "unsupported-format", +] +_TextureErrorValueType: TypeAlias = TextureError | _TextureErrorLiteralType + class TitlebarGesture(GObject.GEnum): DOUBLE_CLICK = 1 MIDDLE_CLICK = 3 RIGHT_CLICK = 2 +_TitlebarGestureLiteralType: TypeAlias = Literal[ + "GDK_TITLEBAR_GESTURE_DOUBLE_CLICK", + "GDK_TITLEBAR_GESTURE_MIDDLE_CLICK", + "GDK_TITLEBAR_GESTURE_RIGHT_CLICK", + "double-click", + "middle-click", + "right-click", +] +_TitlebarGestureValueType: TypeAlias = TitlebarGesture | _TitlebarGestureLiteralType + class TouchpadGesturePhase(GObject.GEnum): BEGIN = 0 CANCEL = 3 END = 2 UPDATE = 1 +_TouchpadGesturePhaseLiteralType: TypeAlias = Literal[ + "GDK_TOUCHPAD_GESTURE_PHASE_BEGIN", + "GDK_TOUCHPAD_GESTURE_PHASE_CANCEL", + "GDK_TOUCHPAD_GESTURE_PHASE_END", + "GDK_TOUCHPAD_GESTURE_PHASE_UPDATE", + "begin", + "cancel", + "end", + "update", +] +_TouchpadGesturePhaseValueType: TypeAlias = ( + TouchpadGesturePhase | _TouchpadGesturePhaseLiteralType +) + class VulkanError(GObject.GEnum): NOT_AVAILABLE = 1 UNSUPPORTED = 0 @staticmethod def quark() -> int: ... + +_VulkanErrorLiteralType: TypeAlias = Literal[ + "GDK_VULKAN_ERROR_NOT_AVAILABLE", + "GDK_VULKAN_ERROR_UNSUPPORTED", + "not-available", + "unsupported", +] +_VulkanErrorValueType: TypeAlias = VulkanError | _VulkanErrorLiteralType diff --git a/src/gi-stubs/repository/_Gtk3.pyi b/src/gi-stubs/repository/_Gtk3.pyi index 4cae48d7..05718fd6 100644 --- a/src/gi-stubs/repository/_Gtk3.pyi +++ b/src/gi-stubs/repository/_Gtk3.pyi @@ -1,8 +1,11 @@ from typing import Any from typing import Final +from typing import Literal from typing import overload from typing import Protocol from typing import type_check_only +from typing import TypeAlias +from typing_extensions import Never from typing_extensions import TypeVar from typing_extensions import TypeVarTuple from typing_extensions import Unpack @@ -300,34 +303,36 @@ TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID: Final[int] TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID: Final[int] def accel_groups_activate( - object: GObject.Object, accel_key: int, accel_mods: _Gdk3.ModifierType + object: GObject.Object, accel_key: int, accel_mods: _Gdk3._ModifierTypeValueType ) -> bool: ... def accel_groups_from_object(object: GObject.Object) -> list[AccelGroup]: ... def accelerator_get_default_mod_mask() -> _Gdk3.ModifierType: ... def accelerator_get_label( - accelerator_key: int, accelerator_mods: _Gdk3.ModifierType + accelerator_key: int, accelerator_mods: _Gdk3._ModifierTypeValueType ) -> str: ... def accelerator_get_label_with_keycode( display: _Gdk3.Display | None, accelerator_key: int, keycode: int, - accelerator_mods: _Gdk3.ModifierType, + accelerator_mods: _Gdk3._ModifierTypeValueType, ) -> str: ... def accelerator_name( - accelerator_key: int, accelerator_mods: _Gdk3.ModifierType + accelerator_key: int, accelerator_mods: _Gdk3._ModifierTypeValueType ) -> str: ... def accelerator_name_with_keycode( display: _Gdk3.Display | None, accelerator_key: int, keycode: int, - accelerator_mods: _Gdk3.ModifierType, + accelerator_mods: _Gdk3._ModifierTypeValueType, ) -> str: ... def accelerator_parse(accelerator: str) -> tuple[int, _Gdk3.ModifierType]: ... def accelerator_parse_with_keycode( accelerator: str, ) -> tuple[int, list[int], _Gdk3.ModifierType]: ... -def accelerator_set_default_mod_mask(default_mod_mask: _Gdk3.ModifierType) -> None: ... -def accelerator_valid(keyval: int, modifiers: _Gdk3.ModifierType) -> bool: ... +def accelerator_set_default_mod_mask( + default_mod_mask: _Gdk3._ModifierTypeValueType, +) -> None: ... +def accelerator_valid(keyval: int, modifiers: _Gdk3._ModifierTypeValueType) -> bool: ... def alternative_dialog_button_order(screen: _Gdk3.Screen | None = None) -> bool: ... def binding_entry_add_signal_from_string( binding_set: BindingSet, signal_desc: str @@ -335,19 +340,19 @@ def binding_entry_add_signal_from_string( def binding_entry_add_signall( binding_set: BindingSet, keyval: int, - modifiers: _Gdk3.ModifierType, + modifiers: _Gdk3._ModifierTypeValueType, signal_name: str, binding_args: list[BindingArg], ) -> None: ... def binding_entry_remove( - binding_set: BindingSet, keyval: int, modifiers: _Gdk3.ModifierType + binding_set: BindingSet, keyval: int, modifiers: _Gdk3._ModifierTypeValueType ) -> None: ... def binding_entry_skip( - binding_set: BindingSet, keyval: int, modifiers: _Gdk3.ModifierType + binding_set: BindingSet, keyval: int, modifiers: _Gdk3._ModifierTypeValueType ) -> None: ... def binding_set_find(set_name: str) -> BindingSet | None: ... def bindings_activate( - object: GObject.Object, keyval: int, modifiers: _Gdk3.ModifierType + object: GObject.Object, keyval: int, modifiers: _Gdk3._ModifierTypeValueType ) -> bool: ... def bindings_activate_event(object: GObject.Object, event: _Gdk3.EventKey) -> bool: ... def builder_error_quark() -> int: ... @@ -398,7 +403,7 @@ def draw_insertion_cursor( cr: cairo.Context[_SomeSurface], location: _Gdk3.Rectangle, is_primary: bool, - direction: TextDirection, + direction: _TextDirectionValueType, draw_arrow: bool, ) -> None: ... def events_pending() -> bool: ... @@ -450,11 +455,11 @@ def main_quit() -> None: ... def paint_arrow( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, - arrow_type: ArrowType, + arrow_type: _ArrowTypeValueType, fill: bool, x: int, y: int, @@ -464,8 +469,8 @@ def paint_arrow( def paint_box( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -476,23 +481,23 @@ def paint_box( def paint_box_gap( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, y: int, width: int, height: int, - gap_side: PositionType, + gap_side: _PositionTypeValueType, gap_x: int, gap_width: int, ) -> None: ... def paint_check( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -503,8 +508,8 @@ def paint_check( def paint_diamond( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -515,31 +520,31 @@ def paint_diamond( def paint_expander( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget | None, detail: str | None, x: int, y: int, - expander_style: ExpanderStyle, + expander_style: _ExpanderStyleValueType, ) -> None: ... def paint_extension( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, y: int, width: int, height: int, - gap_side: PositionType, + gap_side: _PositionTypeValueType, ) -> None: ... def paint_flat_box( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -550,7 +555,7 @@ def paint_flat_box( def paint_focus( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -561,20 +566,20 @@ def paint_focus( def paint_handle( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, y: int, width: int, height: int, - orientation: Orientation, + orientation: _OrientationValueType, ) -> None: ... def paint_hline( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget | None, detail: str | None, x1: int, @@ -584,7 +589,7 @@ def paint_hline( def paint_layout( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, use_text: bool, widget: Widget | None, detail: str | None, @@ -595,8 +600,8 @@ def paint_layout( def paint_option( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -607,10 +612,10 @@ def paint_option( def paint_resize_grip( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget | None, detail: str | None, - edge: _Gdk3.WindowEdge, + edge: _Gdk3._WindowEdgeValueType, x: int, y: int, width: int, @@ -619,8 +624,8 @@ def paint_resize_grip( def paint_shadow( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -631,35 +636,35 @@ def paint_shadow( def paint_shadow_gap( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, y: int, width: int, height: int, - gap_side: PositionType, + gap_side: _PositionTypeValueType, gap_x: int, gap_width: int, ) -> None: ... def paint_slider( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, y: int, width: int, height: int, - orientation: Orientation, + orientation: _OrientationValueType, ) -> None: ... def paint_spinner( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget | None, detail: str | None, step: int, @@ -671,8 +676,8 @@ def paint_spinner( def paint_tab( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget | None, detail: str | None, x: int, @@ -683,7 +688,7 @@ def paint_tab( def paint_vline( style: Style, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget | None, detail: str | None, y1_: int, @@ -724,7 +729,9 @@ def rc_parse_color(scanner: GLib.Scanner) -> tuple[int, _Gdk3.Color]: ... def rc_parse_color_full( scanner: GLib.Scanner, style: RcStyle | None = None ) -> tuple[int, _Gdk3.Color]: ... -def rc_parse_priority(scanner: GLib.Scanner, priority: PathPriorityType) -> int: ... +def rc_parse_priority( + scanner: GLib.Scanner, priority: _PathPriorityTypeValueType +) -> int: ... def rc_parse_state(scanner: GLib.Scanner) -> tuple[int, StateType]: ... def rc_parse_string(rc_string: str) -> None: ... def rc_property_parse_border( @@ -798,7 +805,7 @@ def render_extension( y: float, width: float, height: float, - gap_side: PositionType, + gap_side: _PositionTypeValueType, ) -> None: ... def render_focus( context: StyleContext, @@ -823,7 +830,7 @@ def render_frame_gap( y: float, width: float, height: float, - gap_side: PositionType, + gap_side: _PositionTypeValueType, xy0_gap: float, xy1_gap: float, ) -> None: ... @@ -859,7 +866,7 @@ def render_insertion_cursor( y: float, layout: Pango.Layout, index: int, - direction: Pango.Direction, + direction: Pango._DirectionValueType, ) -> None: ... def render_layout( context: StyleContext, @@ -891,7 +898,7 @@ def render_slider( y: float, width: float, height: float, - orientation: Orientation, + orientation: _OrientationValueType, ) -> None: ... def rgb_to_hsv(r: float, g: float, b: float) -> tuple[float, float, float]: ... def selection_add_target( @@ -943,10 +950,10 @@ def test_spin_button_click(spinner: SpinButton, button: int, upwards: bool) -> b def test_text_get(widget: Widget) -> str: ... def test_text_set(widget: Widget, string: str) -> None: ... def test_widget_click( - widget: Widget, button: int, modifiers: _Gdk3.ModifierType + widget: Widget, button: int, modifiers: _Gdk3._ModifierTypeValueType ) -> bool: ... def test_widget_send_key( - widget: Widget, keyval: int, modifiers: _Gdk3.ModifierType + widget: Widget, keyval: int, modifiers: _Gdk3._ModifierTypeValueType ) -> bool: ... def test_widget_wait_for_draw(widget: Widget) -> None: ... def tree_get_row_drag_data( @@ -1258,19 +1265,55 @@ class AboutDialog(Dialog): """ @type_check_only class Props(Dialog.Props): - artists: list[str] - authors: list[str] - comments: str | None - copyright: str | None - documenters: list[str] - license: str | None - license_type: License - logo: GdkPixbuf.Pixbuf | None - logo_icon_name: str | None + @property + def artists(self) -> list[str]: ... + @artists.setter + def artists(self, value: Sequence[str]) -> None: ... + @property + def authors(self) -> list[str]: ... + @authors.setter + def authors(self, value: Sequence[str]) -> None: ... + @property + def comments(self) -> str: ... + @comments.setter + def comments(self, value: str | None) -> None: ... + @property + def copyright(self) -> str: ... + @copyright.setter + def copyright(self, value: str | None) -> None: ... + @property + def documenters(self) -> list[str]: ... + @documenters.setter + def documenters(self, value: Sequence[str]) -> None: ... + @property + def license(self) -> str: ... + @license.setter + def license(self, value: str | None) -> None: ... + @property + def license_type(self) -> License: ... + @license_type.setter + def license_type(self, value: _LicenseValueType) -> None: ... + @property + def logo(self) -> GdkPixbuf.Pixbuf: ... + @logo.setter + def logo(self, value: GdkPixbuf.Pixbuf | None) -> None: ... + @property + def logo_icon_name(self) -> str: ... + @logo_icon_name.setter + def logo_icon_name(self, value: str | None) -> None: ... program_name: str - translator_credits: str | None - version: str | None - website: str | None + @property + def translator_credits(self) -> str: ... + @translator_credits.setter + def translator_credits(self, value: str | None) -> None: ... + @property + def version(self) -> str: ... + @version.setter + def version(self, value: str | None) -> None: ... + @property + def website(self) -> str: ... + @website.setter + def website(self, value: str | None) -> None: ... website_label: str wrap_license: bool @@ -1289,7 +1332,7 @@ class AboutDialog(Dialog): copyright: str | None = ..., documenters: Sequence[str] = ..., license: str | None = ..., - license_type: License = ..., + license_type: _LicenseValueType = ..., logo: GdkPixbuf.Pixbuf | None = ..., logo_icon_name: str | None = ..., program_name: str = ..., @@ -1309,7 +1352,7 @@ class AboutDialog(Dialog): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -1324,21 +1367,21 @@ class AboutDialog(Dialog): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -1362,7 +1405,7 @@ class AboutDialog(Dialog): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1393,7 +1436,7 @@ class AboutDialog(Dialog): def set_copyright(self, copyright: str | None = None) -> None: ... def set_documenters(self, documenters: Sequence[str]) -> None: ... def set_license(self, license: str | None = None) -> None: ... - def set_license_type(self, license_type: License) -> None: ... + def set_license_type(self, license_type: _LicenseValueType) -> None: ... def set_logo(self, logo: GdkPixbuf.Pixbuf | None = None) -> None: ... def set_logo_icon_name(self, icon_name: str | None = None) -> None: ... def set_program_name(self, name: str) -> None: ... @@ -1460,24 +1503,24 @@ class AccelGroup(GObject.Object): accel_quark: int, acceleratable: GObject.Object, accel_key: int, - accel_mods: _Gdk3.ModifierType, + accel_mods: _Gdk3._ModifierTypeValueType, ) -> bool: ... def connect( self, accel_key: int, - accel_mods: _Gdk3.ModifierType, - accel_flags: AccelFlags, + accel_mods: _Gdk3._ModifierTypeValueType, + accel_flags: _AccelFlagsValueType, closure: Callable[..., Any], ) -> None: ... def connect_by_path(self, accel_path: str, closure: Callable[..., Any]) -> None: ... def disconnect(self, closure: Callable[..., Any] | None = None) -> bool: ... def disconnect_key( - self, accel_key: int, accel_mods: _Gdk3.ModifierType + self, accel_key: int, accel_mods: _Gdk3._ModifierTypeValueType ) -> bool: ... def do_accel_changed( self, keyval: int, - modifier: _Gdk3.ModifierType, + modifier: _Gdk3._ModifierTypeValueType, accel_closure: Callable[..., Any], ) -> None: ... def find( @@ -1493,7 +1536,7 @@ class AccelGroup(GObject.Object): @classmethod def new(cls) -> AccelGroup: ... def query( - self, accel_key: int, accel_mods: _Gdk3.ModifierType + self, accel_key: int, accel_mods: _Gdk3._ModifierTypeValueType ) -> list[AccelGroupEntry]: ... def unlock(self) -> None: ... @@ -1510,7 +1553,9 @@ class AccelGroupClass(_gi.Struct): @property def accel_changed( self, - ) -> Callable[[AccelGroup, int, _Gdk3.ModifierType, Callable[..., Any]], None]: ... + ) -> Callable[ + [AccelGroup, int, _Gdk3._ModifierTypeValueType, Callable[..., Any]], None + ]: ... class AccelGroupEntry(_gi.Struct): """ @@ -1792,8 +1837,8 @@ class AccelLabel(Label): accel_widget: Widget | None = ..., angle: float = ..., attributes: Pango.AttrList | None = ..., - ellipsize: Pango.EllipsizeMode = ..., - justify: Justification = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., + justify: _JustificationValueType = ..., label: str = ..., lines: int = ..., max_width_chars: int = ..., @@ -1806,7 +1851,7 @@ class AccelLabel(Label): use_underline: bool = ..., width_chars: int = ..., wrap: bool = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., xalign: float = ..., yalign: float = ..., xpad: int = ..., @@ -1815,10 +1860,10 @@ class AccelLabel(Label): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -1842,7 +1887,7 @@ class AccelLabel(Label): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1855,7 +1900,7 @@ class AccelLabel(Label): def new(cls, string: str) -> AccelLabel: ... def refetch(self) -> bool: ... def set_accel( - self, accelerator_key: int, accelerator_mods: _Gdk3.ModifierType + self, accelerator_key: int, accelerator_mods: _Gdk3._ModifierTypeValueType ) -> None: ... def set_accel_closure( self, accel_closure: Callable[..., Any] | None = None @@ -1905,23 +1950,30 @@ class AccelMap(GObject.Object): """ @staticmethod def add_entry( - accel_path: str, accel_key: int, accel_mods: _Gdk3.ModifierType + accel_path: str, accel_key: int, accel_mods: _Gdk3._ModifierTypeValueType ) -> None: ... @staticmethod def add_filter(filter_pattern: str) -> None: ... @staticmethod def change_entry( - accel_path: str, accel_key: int, accel_mods: _Gdk3.ModifierType, replace: bool + accel_path: str, + accel_key: int, + accel_mods: _Gdk3._ModifierTypeValueType, + replace: bool, ) -> bool: ... @staticmethod def foreach( data: int | Any | None, - foreach_func: Callable[[Any | None, str, int, _Gdk3.ModifierType, bool], None], + foreach_func: Callable[ + [Any | None, str, int, _Gdk3._ModifierTypeValueType, bool], None + ], ) -> None: ... @staticmethod def foreach_unfiltered( data: int | Any | None, - foreach_func: Callable[[Any | None, str, int, _Gdk3.ModifierType, bool], None], + foreach_func: Callable[ + [Any | None, str, int, _Gdk3._ModifierTypeValueType, bool], None + ], ) -> None: ... @staticmethod def get() -> AccelMap: ... @@ -2022,19 +2074,19 @@ class Accessible(Atk.Object): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... def connect_widget_destroyed(self) -> None: ... @@ -2116,7 +2168,7 @@ class Action(GObject.Object, Buildable): """ @type_check_only class Props(GObject.Object.Props): - action_group: ActionGroup + action_group: ActionGroup | None always_show_image: bool gicon: Gio.Icon hide_if_empty: bool @@ -2143,14 +2195,14 @@ class Action(GObject.Object, Buildable): def __init__( self, *, - action_group: ActionGroup = ..., + action_group: ActionGroup | None = ..., always_show_image: bool = ..., gicon: Gio.Icon = ..., hide_if_empty: bool = ..., icon_name: str = ..., is_important: bool = ..., label: str = ..., - name: str = ..., + name: str | None = ..., sensitive: bool = ..., short_label: str = ..., stock_id: str = ..., @@ -2401,16 +2453,16 @@ class ActionBar(Bin): self, *, border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -2434,7 +2486,7 @@ class ActionBar(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2535,7 +2587,10 @@ class ActionGroup(GObject.Object, Buildable): """ @type_check_only class Props(GObject.Object.Props): - accel_group: AccelGroup | None + @property + def accel_group(self) -> AccelGroup: ... + @accel_group.setter + def accel_group(self, value: AccelGroup | None) -> None: ... @property def name(self) -> str: ... sensitive: bool @@ -2551,7 +2606,7 @@ class ActionGroup(GObject.Object, Buildable): self, *, accel_group: AccelGroup | None = ..., - name: str = ..., + name: str | None = ..., sensitive: bool = ..., visible: bool = ..., ) -> None: ... @@ -3081,16 +3136,16 @@ class Alignment(Bin): yalign: float = ..., yscale: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -3114,7 +3169,7 @@ class Alignment(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3401,7 +3456,10 @@ class AppChooserButton(ComboBox, AppChooser): """ @type_check_only class Props(ComboBox.Props): - heading: str | None + @property + def heading(self) -> str | None: ... + @heading.setter + def heading(self, value: str) -> None: ... show_default_item: bool show_dialog_item: bool @property @@ -3420,13 +3478,13 @@ class AppChooserButton(ComboBox, AppChooser): heading: str = ..., show_default_item: bool = ..., show_dialog_item: bool = ..., - content_type: str = ..., + content_type: str | None = ..., editing_canceled: bool = ..., active: int = ..., active_id: str | None = ..., add_tearoffs: bool = ..., - button_sensitivity: SensitivityType = ..., - cell_area: CellArea = ..., + button_sensitivity: _SensitivityTypeValueType = ..., + cell_area: CellArea | None = ..., column_span_column: int = ..., entry_text_column: int = ..., has_entry: bool = ..., @@ -3435,19 +3493,19 @@ class AppChooserButton(ComboBox, AppChooser): model: TreeModel | None = ..., popup_fixed_width: bool = ..., row_span_column: int = ..., - tearoff_title: str = ..., + tearoff_title: str | None = ..., wrap_width: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -3471,7 +3529,7 @@ class AppChooserButton(ComboBox, AppChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3779,8 +3837,11 @@ class AppChooserDialog(Dialog, AppChooser): @type_check_only class Props(Dialog.Props): @property - def gfile(self) -> Gio.File: ... - heading: str | None + def gfile(self) -> Gio.File | None: ... + @property + def heading(self) -> str | None: ... + @heading.setter + def heading(self, value: str) -> None: ... @property def content_type(self) -> str: ... @@ -3793,9 +3854,9 @@ class AppChooserDialog(Dialog, AppChooser): def __init__( self, *, - gfile: Gio.File = ..., + gfile: Gio.File | None = ..., heading: str = ..., - content_type: str = ..., + content_type: str | None = ..., use_header_bar: int = ..., accept_focus: bool = ..., application: Application | None = ..., @@ -3807,7 +3868,7 @@ class AppChooserDialog(Dialog, AppChooser): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -3822,21 +3883,21 @@ class AppChooserDialog(Dialog, AppChooser): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -3860,7 +3921,7 @@ class AppChooserDialog(Dialog, AppChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3870,11 +3931,11 @@ class AppChooserDialog(Dialog, AppChooser): def get_widget(self) -> Widget: ... @classmethod def new( - cls, parent: Window | None, flags: DialogFlags, file: Gio.File + cls, parent: Window | None, flags: _DialogFlagsValueType, file: Gio.File ) -> AppChooserDialog: ... @classmethod def new_for_content_type( - cls, parent: Window | None, flags: DialogFlags, content_type: str + cls, parent: Window | None, flags: _DialogFlagsValueType, content_type: str ) -> AppChooserDialog: ... def set_heading(self, heading: str) -> None: ... @@ -4109,7 +4170,10 @@ class AppChooserWidget(Box, AppChooser): show_recommended: bool @property def content_type(self) -> str: ... - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -4126,22 +4190,22 @@ class AppChooserWidget(Box, AppChooser): show_fallback: bool = ..., show_other: bool = ..., show_recommended: bool = ..., - content_type: str = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + content_type: str | None = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -4165,7 +4229,7 @@ class AppChooserWidget(Box, AppChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -4284,7 +4348,10 @@ class Application(Gio.Application): @property def active_window(self) -> Window | None: ... app_menu: Gio.MenuModel | None - menubar: Gio.MenuModel | None + @property + def menubar(self) -> Gio.MenuModel: ... + @menubar.setter + def menubar(self, value: Gio.MenuModel | None) -> None: ... register_session: bool @property def screensaver_active(self) -> bool: ... @@ -4303,7 +4370,7 @@ class Application(Gio.Application): register_session: bool = ..., action_group: Gio.ActionGroup | None = ..., application_id: str | None = ..., - flags: Gio.ApplicationFlags = ..., + flags: Gio._ApplicationFlagsValueType = ..., inactivity_timeout: int = ..., resource_base_path: str | None = ..., version: str = ..., @@ -4325,14 +4392,14 @@ class Application(Gio.Application): def inhibit( self, window: Window | None, - flags: ApplicationInhibitFlags, + flags: _ApplicationInhibitFlagsValueType, reason: str | None = None, ) -> int: ... - def is_inhibited(self, flags: ApplicationInhibitFlags) -> bool: ... + def is_inhibited(self, flags: _ApplicationInhibitFlagsValueType) -> bool: ... def list_action_descriptions(self) -> list[str]: ... @classmethod def new( - cls, application_id: str | None, flags: Gio.ApplicationFlags + cls, application_id: str | None, flags: Gio._ApplicationFlagsValueType ) -> Application: ... def prefers_app_menu(self) -> bool: ... def remove_accelerator( @@ -4653,7 +4720,7 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -4668,21 +4735,21 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -4706,7 +4773,7 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -4918,8 +4985,14 @@ class Arrow(Misc): """ @type_check_only class Props(Misc.Props): - arrow_type: ArrowType - shadow_type: ShadowType + @property + def arrow_type(self) -> ArrowType: ... + @arrow_type.setter + def arrow_type(self, value: _ArrowTypeValueType) -> None: ... + @property + def shadow_type(self) -> ShadowType: ... + @shadow_type.setter + def shadow_type(self, value: _ShadowTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -4930,8 +5003,8 @@ class Arrow(Misc): def __init__( self, *, - arrow_type: ArrowType = ..., - shadow_type: ShadowType = ..., + arrow_type: _ArrowTypeValueType = ..., + shadow_type: _ShadowTypeValueType = ..., xalign: float = ..., xpad: int = ..., yalign: float = ..., @@ -4940,10 +5013,10 @@ class Arrow(Misc): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -4967,15 +5040,19 @@ class Arrow(Misc): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... @classmethod - def new(cls, arrow_type: ArrowType, shadow_type: ShadowType) -> Arrow: ... - def set(self, arrow_type: ArrowType, shadow_type: ShadowType) -> None: ... + def new( + cls, arrow_type: _ArrowTypeValueType, shadow_type: _ShadowTypeValueType + ) -> Arrow: ... + def set( + self, arrow_type: _ArrowTypeValueType, shadow_type: _ShadowTypeValueType + ) -> None: ... class ArrowAccessible(WidgetAccessible, Atk.Image): """ @@ -5055,19 +5132,19 @@ class ArrowAccessible(WidgetAccessible, Atk.Image): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -5322,18 +5399,18 @@ class AspectFrame(Frame): label_widget: Widget | None = ..., label_xalign: float = ..., label_yalign: float = ..., - shadow_type: ShadowType = ..., + shadow_type: _ShadowTypeValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -5357,7 +5434,7 @@ class AspectFrame(Frame): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5679,7 +5756,7 @@ class Assistant(Window): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -5694,21 +5771,21 @@ class Assistant(Window): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -5732,7 +5809,7 @@ class Assistant(Window): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5777,7 +5854,9 @@ class Assistant(Window): self, page: Widget, pixbuf: GdkPixbuf.Pixbuf | None = None ) -> None: ... def set_page_title(self, page: Widget, title: str) -> None: ... - def set_page_type(self, page: Widget, type: AssistantPageType) -> None: ... + def set_page_type( + self, page: Widget, type: _AssistantPageTypeValueType + ) -> None: ... def update_buttons_state(self) -> None: ... class AssistantClass(_gi.Struct): @@ -5987,16 +6066,16 @@ class Bin(Container): self, *, border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -6020,7 +6099,7 @@ class Bin(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6078,17 +6157,17 @@ class BindingEntry(_gi.Struct): def add_signall( binding_set: BindingSet, keyval: int, - modifiers: _Gdk3.ModifierType, + modifiers: _Gdk3._ModifierTypeValueType, signal_name: str, binding_args: list[BindingArg], ) -> None: ... @staticmethod def remove( - binding_set: BindingSet, keyval: int, modifiers: _Gdk3.ModifierType + binding_set: BindingSet, keyval: int, modifiers: _Gdk3._ModifierTypeValueType ) -> None: ... @staticmethod def skip( - binding_set: BindingSet, keyval: int, modifiers: _Gdk3.ModifierType + binding_set: BindingSet, keyval: int, modifiers: _Gdk3._ModifierTypeValueType ) -> None: ... class BindingSet(_gi.Struct): @@ -6109,10 +6188,16 @@ class BindingSet(_gi.Struct): current: BindingEntry parsed: int def activate( - self, keyval: int, modifiers: _Gdk3.ModifierType, object: GObject.Object + self, + keyval: int, + modifiers: _Gdk3._ModifierTypeValueType, + object: GObject.Object, ) -> bool: ... def add_path( - self, path_type: PathType, path_pattern: str, priority: PathPriorityType + self, + path_type: _PathTypeValueType, + path_pattern: str, + priority: _PathPriorityTypeValueType, ) -> None: ... @staticmethod def find(set_name: str) -> BindingSet | None: ... @@ -6215,21 +6300,21 @@ class BooleanCellAccessible(RendererCellAccessible): def __init__( self, *, - renderer: CellRenderer = ..., + renderer: CellRenderer | None = ..., widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -6455,10 +6540,16 @@ class Box(Container, Orientable): """ @type_check_only class Props(Container.Props): - baseline_position: BaselinePosition + @property + def baseline_position(self) -> BaselinePosition: ... + @baseline_position.setter + def baseline_position(self, value: _BaselinePositionValueType) -> None: ... homogeneous: bool spacing: int - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -6469,21 +6560,21 @@ class Box(Container, Orientable): def __init__( self, *, - baseline_position: BaselinePosition = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -6507,7 +6598,7 @@ class Box(Container, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6518,7 +6609,7 @@ class Box(Container, Orientable): def get_homogeneous(self) -> bool: ... def get_spacing(self) -> int: ... @classmethod - def new(cls, orientation: Orientation, spacing: int) -> Box: ... + def new(cls, orientation: _OrientationValueType, spacing: int) -> Box: ... def pack_end( self, child: Widget, expand: bool, fill: bool, padding: int ) -> None: ... @@ -6529,10 +6620,15 @@ class Box(Container, Orientable): self, child: Widget ) -> tuple[bool, bool, int, PackType]: ... def reorder_child(self, child: Widget, position: int) -> None: ... - def set_baseline_position(self, position: BaselinePosition) -> None: ... + def set_baseline_position(self, position: _BaselinePositionValueType) -> None: ... def set_center_widget(self, widget: Widget | None = None) -> None: ... def set_child_packing( - self, child: Widget, expand: bool, fill: bool, padding: int, pack_type: PackType + self, + child: Widget, + expand: bool, + fill: bool, + padding: int, + pack_type: _PackTypeValueType, ) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_spacing(self, spacing: int) -> None: ... @@ -6663,7 +6759,10 @@ class Builder(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - translation_domain: str | None + @property + def translation_domain(self) -> str: ... + @translation_domain.setter + def translation_domain(self, value: str | None) -> None: ... @property def props(self) -> Props: ... @@ -6962,15 +7061,24 @@ class Button(Bin, Actionable, Activatable, Container): class Props(Bin.Props): always_show_image: bool image: Widget | None - image_position: PositionType + @property + def image_position(self) -> PositionType: ... + @image_position.setter + def image_position(self, value: _PositionTypeValueType) -> None: ... label: str - relief: ReliefStyle + @property + def relief(self) -> ReliefStyle: ... + @relief.setter + def relief(self, value: _ReliefStyleValueType) -> None: ... use_stock: bool use_underline: bool xalign: float yalign: float action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -6985,9 +7093,9 @@ class Button(Bin, Actionable, Activatable, Container): *, always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., @@ -6997,16 +7105,16 @@ class Button(Bin, Actionable, Activatable, Container): related_action: Action = ..., use_action_appearance: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -7030,7 +7138,7 @@ class Button(Bin, Actionable, Activatable, Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7075,9 +7183,9 @@ class Button(Bin, Actionable, Activatable, Container): self, *args, **kwargs ): ... # FIXME: Override is missing typing annotation def set_image(self, image: Widget | None = None) -> None: ... - def set_image_position(self, position: PositionType) -> None: ... + def set_image_position(self, position: _PositionTypeValueType) -> None: ... def set_label(self, label: str) -> None: ... - def set_relief(self, relief: ReliefStyle) -> None: ... + def set_relief(self, relief: _ReliefStyleValueType) -> None: ... def set_use_stock(self, use_stock: bool) -> None: ... def set_use_underline(self, use_underline: bool) -> None: ... @@ -7162,19 +7270,19 @@ class ButtonAccessible(ContainerAccessible, Atk.Action, Atk.Image): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -7384,8 +7492,14 @@ class ButtonBox(Box): """ @type_check_only class Props(Box.Props): - layout_style: ButtonBoxStyle - orientation: Orientation + @property + def layout_style(self) -> ButtonBoxStyle: ... + @layout_style.setter + def layout_style(self, value: _ButtonBoxStyleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -7396,22 +7510,22 @@ class ButtonBox(Box): def __init__( self, *, - layout_style: ButtonBoxStyle = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + layout_style: _ButtonBoxStyleValueType = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -7435,7 +7549,7 @@ class ButtonBox(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7445,12 +7559,12 @@ class ButtonBox(Box): def get_child_secondary(self, child: Widget) -> bool: ... def get_layout(self) -> ButtonBoxStyle: ... @classmethod - def new(cls, orientation: Orientation) -> ButtonBox: ... + def new(cls, orientation: _OrientationValueType) -> ButtonBox: ... def set_child_non_homogeneous( self, child: Widget, non_homogeneous: bool ) -> None: ... def set_child_secondary(self, child: Widget, is_secondary: bool) -> None: ... - def set_layout(self, layout_style: ButtonBoxStyle) -> None: ... + def set_layout(self, layout_style: _ButtonBoxStyleValueType) -> None: ... class ButtonBoxClass(_gi.Struct): """ @@ -7722,10 +7836,10 @@ class Calendar(Widget): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -7749,7 +7863,7 @@ class Calendar(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7780,7 +7894,7 @@ class Calendar(Widget): ) -> None: ... def set_detail_height_rows(self, rows: int) -> None: ... def set_detail_width_chars(self, chars: int) -> None: ... - def set_display_options(self, flags: CalendarDisplayOptions) -> None: ... + def set_display_options(self, flags: _CalendarDisplayOptionsValueType) -> None: ... def unmark_day(self, day: int) -> None: ... class CalendarClass(_gi.Struct): @@ -7885,19 +7999,19 @@ class CellAccessible(Accessible, Atk.Action, Atk.Component, Atk.TableCell): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... def do_update_cache(self, emit_signal: bool) -> None: ... @@ -7924,7 +8038,7 @@ class CellAccessibleParent(GObject.GInterface, Protocol): def expand_collapse(self, cell: CellAccessible) -> None: ... def get_cell_area(self, cell: CellAccessible) -> _Gdk3.Rectangle: ... def get_cell_extents( - self, cell: CellAccessible, coord_type: Atk.CoordType + self, cell: CellAccessible, coord_type: Atk._CoordTypeValueType ) -> tuple[int, int, int, int]: ... def get_cell_position(self, cell: CellAccessible) -> tuple[int, int]: ... def get_child_index(self, cell: CellAccessible) -> int: ... @@ -7950,7 +8064,8 @@ class CellAccessibleParentIface(_gi.Struct): def get_cell_extents( self, ) -> Callable[ - [CellAccessibleParent, CellAccessible, Atk.CoordType], tuple[int, int, int, int] + [CellAccessibleParent, CellAccessible, Atk._CoordTypeValueType], + tuple[int, int, int, int], ]: ... @property def get_cell_area( @@ -8040,7 +8155,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): context: CellAreaContext, widget: Widget, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, edit_only: bool, ) -> bool: ... def activate_cell( @@ -8049,7 +8164,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): renderer: CellRenderer, event: _Gdk3.Event, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> bool: ... def add(self, renderer: CellRenderer) -> None: ... def add_focus_sibling( @@ -8080,7 +8195,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): context: CellAreaContext, widget: Widget, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, edit_only: bool, ) -> bool: ... def do_add(self, renderer: CellRenderer) -> None: ... @@ -8099,9 +8214,9 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): widget: Widget, event: _Gdk3.Event, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> int: ... - def do_focus(self, direction: DirectionType) -> bool: ... + def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... def do_foreach( self, callback: Callable[[CellRenderer, Unpack[_DataTs]], bool], @@ -8147,7 +8262,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cr: cairo.Context[_SomeSurface], background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, paint_focus: bool, ) -> None: ... def do_set_cell_property( @@ -8163,10 +8278,10 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): widget: Widget, event: _Gdk3.Event, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> int: ... def find_cell_property(self, property_name: str) -> GObject.ParamSpec: ... - def focus(self, direction: DirectionType) -> bool: ... + def focus(self, direction: _DirectionTypeValueType) -> bool: ... def foreach( self, callback: Callable[[CellRenderer, Unpack[_DataTs]], bool], @@ -8240,13 +8355,13 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): cr: cairo.Context[_SomeSurface], background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, paint_focus: bool, ) -> None: ... def request_renderer( self, renderer: CellRenderer, - orientation: Orientation, + orientation: _OrientationValueType, widget: Widget, for_size: int, ) -> tuple[int, int]: ... @@ -8288,7 +8403,10 @@ class CellAreaBox(CellArea, Orientable): @type_check_only class Props(CellArea.Props): spacing: int - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -8300,7 +8418,7 @@ class CellAreaBox(CellArea, Orientable): self, *, spacing: int = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., focus_cell: CellRenderer = ..., ) -> None: ... def get_spacing(self) -> int: ... @@ -8374,7 +8492,7 @@ class CellAreaClass(_gi.Struct): Widget, _Gdk3.Event, _Gdk3.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], int, ]: ... @@ -8389,7 +8507,7 @@ class CellAreaClass(_gi.Struct): cairo.Context[_SomeSurface], _Gdk3.Rectangle, _Gdk3.Rectangle, - CellRendererState, + _CellRendererStateValueType, bool, ], None, @@ -8431,14 +8549,21 @@ class CellAreaClass(_gi.Struct): self, ) -> Callable[[CellArea, CellRenderer, int, Any, GObject.ParamSpec], None]: ... @property - def focus(self) -> Callable[[CellArea, DirectionType], bool]: ... + def focus(self) -> Callable[[CellArea, _DirectionTypeValueType], bool]: ... @property def is_activatable(self) -> Callable[[CellArea], bool]: ... @property def activate( self, ) -> Callable[ - [CellArea, CellAreaContext, Widget, _Gdk3.Rectangle, CellRendererState, bool], + [ + CellArea, + CellAreaContext, + Widget, + _Gdk3.Rectangle, + _CellRendererStateValueType, + bool, + ], bool, ]: ... def find_cell_property(self, property_name: str) -> GObject.ParamSpec: ... @@ -8491,7 +8616,7 @@ class CellAreaContext(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> CellAreaContextPrivate: ... - def __init__(self, *, area: CellArea = ...) -> None: ... + def __init__(self, *, area: CellArea | None = ...) -> None: ... def allocate(self, width: int, height: int) -> None: ... def do_allocate(self, width: int, height: int) -> None: ... def do_get_preferred_height_for_width(self, width: int) -> tuple[int, int]: ... @@ -8684,16 +8809,22 @@ class CellRenderer(GObject.InitiallyUnowned): """ @type_check_only class Props(GObject.InitiallyUnowned.Props): - cell_background: str - cell_background_gdk: _Gdk3.Color - cell_background_rgba: _Gdk3.RGBA + @property + def cell_background(self) -> Never: ... + @cell_background.setter + def cell_background(self, value: str | None) -> None: ... + cell_background_gdk: _Gdk3.Color | None + cell_background_rgba: _Gdk3.RGBA | None cell_background_set: bool @property def editing(self) -> bool: ... height: int is_expanded: bool is_expander: bool - mode: CellRendererMode + @property + def mode(self) -> CellRendererMode: ... + @mode.setter + def mode(self, value: _CellRendererModeValueType) -> None: ... sensitive: bool visible: bool width: int @@ -8711,14 +8842,14 @@ class CellRenderer(GObject.InitiallyUnowned): def __init__( self, *, - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -8734,7 +8865,7 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> bool: ... def do_activate( self, @@ -8743,12 +8874,15 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> bool: ... def do_editing_canceled(self) -> None: ... def do_editing_started(self, editable: CellEditable, path: str) -> None: ... def do_get_aligned_area( - self, widget: Widget, flags: CellRendererState, cell_area: _Gdk3.Rectangle + self, + widget: Widget, + flags: _CellRendererStateValueType, + cell_area: _Gdk3.Rectangle, ) -> _Gdk3.Rectangle: ... def do_get_preferred_height(self, widget: Widget) -> tuple[int, int]: ... def do_get_preferred_height_for_width( @@ -8768,7 +8902,7 @@ class CellRenderer(GObject.InitiallyUnowned): widget: Widget, background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> None: ... def do_start_editing( self, @@ -8777,10 +8911,13 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> CellEditable | None: ... def get_aligned_area( - self, widget: Widget, flags: CellRendererState, cell_area: _Gdk3.Rectangle + self, + widget: Widget, + flags: _CellRendererStateValueType, + cell_area: _Gdk3.Rectangle, ) -> _Gdk3.Rectangle: ... def get_alignment(self) -> tuple[float, float]: ... def get_fixed_size(self) -> tuple[int, int]: ... @@ -8800,7 +8937,7 @@ class CellRenderer(GObject.InitiallyUnowned): self, widget: Widget, cell_area: _Gdk3.Rectangle | None = None ) -> tuple[int, int, int, int]: ... def get_state( - self, widget: Widget | None, cell_state: CellRendererState + self, widget: Widget | None, cell_state: _CellRendererStateValueType ) -> StateFlags: ... def get_visible(self) -> bool: ... def is_activatable(self) -> bool: ... @@ -8810,7 +8947,7 @@ class CellRenderer(GObject.InitiallyUnowned): widget: Widget, background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> None: ... def set_accessible_type(self, type: type[Any]) -> None: ... def set_alignment(self, xalign: float, yalign: float) -> None: ... @@ -8825,7 +8962,7 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk3.Rectangle, cell_area: _Gdk3.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> CellEditable | None: ... def stop_editing(self, canceled: bool) -> None: ... @@ -8999,8 +9136,14 @@ class CellRendererAccel(CellRendererText): @type_check_only class Props(CellRendererText.Props): accel_key: int - accel_mode: CellRendererAccelMode - accel_mods: _Gdk3.ModifierType + @property + def accel_mode(self) -> CellRendererAccelMode: ... + @accel_mode.setter + def accel_mode(self, value: _CellRendererAccelModeValueType) -> None: ... + @property + def accel_mods(self) -> _Gdk3.ModifierType: ... + @accel_mods.setter + def accel_mods(self, value: _Gdk3._ModifierTypeValueType) -> None: ... keycode: int @property @@ -9013,33 +9156,33 @@ class CellRendererAccel(CellRendererText): self, *, accel_key: int = ..., - accel_mode: CellRendererAccelMode = ..., - accel_mods: _Gdk3.ModifierType = ..., + accel_mode: _CellRendererAccelModeValueType = ..., + accel_mods: _Gdk3._ModifierTypeValueType = ..., keycode: int = ..., align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_gdk: _Gdk3.Color = ..., - background_rgba: _Gdk3.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_gdk: _Gdk3.Color | None = ..., + background_rgba: _Gdk3.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_gdk: _Gdk3.Color = ..., - foreground_rgba: _Gdk3.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_gdk: _Gdk3.Color | None = ..., + foreground_rgba: _Gdk3.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -9048,30 +9191,30 @@ class CellRendererAccel(CellRendererText): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -9085,7 +9228,7 @@ class CellRendererAccel(CellRendererText): self, path_string: str, accel_key: int, - accel_mods: _Gdk3.ModifierType, + accel_mods: _Gdk3._ModifierTypeValueType, hardware_keycode: int, ) -> None: ... @classmethod @@ -9104,7 +9247,9 @@ class CellRendererAccelClass(_gi.Struct): @property def accel_edited( self, - ) -> Callable[[CellRendererAccel, str, int, _Gdk3.ModifierType, int], None]: ... + ) -> Callable[ + [CellRendererAccel, str, int, _Gdk3._ModifierTypeValueType, int], None + ]: ... @property def accel_cleared(self) -> Callable[[CellRendererAccel, str], None]: ... @@ -9142,7 +9287,8 @@ class CellRendererClass(_gi.Struct): def get_aligned_area( self, ) -> Callable[ - [CellRenderer, Widget, CellRendererState, _Gdk3.Rectangle], _Gdk3.Rectangle + [CellRenderer, Widget, _CellRendererStateValueType, _Gdk3.Rectangle], + _Gdk3.Rectangle, ]: ... @property def get_size( @@ -9160,7 +9306,7 @@ class CellRendererClass(_gi.Struct): Widget, _Gdk3.Rectangle, _Gdk3.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], None, ]: ... @@ -9175,7 +9321,7 @@ class CellRendererClass(_gi.Struct): str, _Gdk3.Rectangle, _Gdk3.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], bool, ]: ... @@ -9190,7 +9336,7 @@ class CellRendererClass(_gi.Struct): str, _Gdk3.Rectangle, _Gdk3.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], CellEditable | None, ]: ... @@ -9371,7 +9517,7 @@ class CellRendererCombo(CellRendererText): @type_check_only class Props(CellRendererText.Props): has_entry: bool - model: TreeModel + model: TreeModel | None text_column: int @property @@ -9384,32 +9530,32 @@ class CellRendererCombo(CellRendererText): self, *, has_entry: bool = ..., - model: TreeModel = ..., + model: TreeModel | None = ..., text_column: int = ..., align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_gdk: _Gdk3.Color = ..., - background_rgba: _Gdk3.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_gdk: _Gdk3.Color | None = ..., + background_rgba: _Gdk3.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_gdk: _Gdk3.Color = ..., - foreground_rgba: _Gdk3.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_gdk: _Gdk3.Color | None = ..., + foreground_rgba: _Gdk3.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -9418,30 +9564,30 @@ class CellRendererCombo(CellRendererText): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -9543,15 +9689,15 @@ class CellRendererPixbuf(CellRenderer): @type_check_only class Props(CellRenderer.Props): follow_state: bool - gicon: Gio.Icon - icon_name: str - pixbuf: GdkPixbuf.Pixbuf - pixbuf_expander_closed: GdkPixbuf.Pixbuf - pixbuf_expander_open: GdkPixbuf.Pixbuf - stock_detail: str - stock_id: str + gicon: Gio.Icon | None + icon_name: str | None + pixbuf: GdkPixbuf.Pixbuf | None + pixbuf_expander_closed: GdkPixbuf.Pixbuf | None + pixbuf_expander_open: GdkPixbuf.Pixbuf | None + stock_detail: str | None + stock_id: str | None stock_size: int - surface: cairo.Surface + surface: cairo.Surface | None @property def props(self) -> Props: ... @@ -9563,23 +9709,23 @@ class CellRendererPixbuf(CellRenderer): self, *, follow_state: bool = ..., - gicon: Gio.Icon = ..., - icon_name: str = ..., - pixbuf: GdkPixbuf.Pixbuf = ..., - pixbuf_expander_closed: GdkPixbuf.Pixbuf = ..., - pixbuf_expander_open: GdkPixbuf.Pixbuf = ..., - stock_detail: str = ..., - stock_id: str = ..., + gicon: Gio.Icon | None = ..., + icon_name: str | None = ..., + pixbuf: GdkPixbuf.Pixbuf | None = ..., + pixbuf_expander_closed: GdkPixbuf.Pixbuf | None = ..., + pixbuf_expander_open: GdkPixbuf.Pixbuf | None = ..., + stock_detail: str | None = ..., + stock_id: str | None = ..., stock_size: int = ..., - surface: cairo.Surface = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + surface: cairo.Surface | None = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -9675,11 +9821,14 @@ class CellRendererProgress(CellRenderer, Orientable): class Props(CellRenderer.Props): inverted: bool pulse: int - text: str + text: str | None text_xalign: float text_yalign: float value: int - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -9692,19 +9841,19 @@ class CellRendererProgress(CellRenderer, Orientable): *, inverted: bool = ..., pulse: int = ..., - text: str = ..., + text: str | None = ..., text_xalign: float = ..., text_yalign: float = ..., value: int = ..., - orientation: Orientation = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + orientation: _OrientationValueType = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -9892,7 +10041,7 @@ class CellRendererSpin(CellRendererText): """ @type_check_only class Props(CellRendererText.Props): - adjustment: Adjustment + adjustment: Adjustment | None climb_rate: float digits: int @@ -9905,33 +10054,33 @@ class CellRendererSpin(CellRendererText): def __init__( self, *, - adjustment: Adjustment = ..., + adjustment: Adjustment | None = ..., climb_rate: float = ..., digits: int = ..., align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_gdk: _Gdk3.Color = ..., - background_rgba: _Gdk3.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_gdk: _Gdk3.Color | None = ..., + background_rgba: _Gdk3.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_gdk: _Gdk3.Color = ..., - foreground_rgba: _Gdk3.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_gdk: _Gdk3.Color | None = ..., + foreground_rgba: _Gdk3.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -9940,30 +10089,30 @@ class CellRendererSpin(CellRendererText): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -10052,7 +10201,10 @@ class CellRendererSpinner(CellRenderer): class Props(CellRenderer.Props): active: bool pulse: int - size: IconSize + @property + def size(self) -> IconSize: ... + @size.setter + def size(self, value: _IconSizeValueType) -> None: ... @property def props(self) -> Props: ... @@ -10065,15 +10217,15 @@ class CellRendererSpinner(CellRenderer): *, active: bool = ..., pulse: int = ..., - size: IconSize = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + size: _IconSizeValueType = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -10254,29 +10406,44 @@ class CellRendererText(CellRenderer): @type_check_only class Props(CellRenderer.Props): align_set: bool - alignment: Pango.Alignment - attributes: Pango.AttrList - background: str - background_gdk: _Gdk3.Color - background_rgba: _Gdk3.RGBA + @property + def alignment(self) -> Pango.Alignment: ... + @alignment.setter + def alignment(self, value: Pango._AlignmentValueType) -> None: ... + attributes: Pango.AttrList | None + @property + def background(self) -> Never: ... + @background.setter + def background(self, value: str | None) -> None: ... + background_gdk: _Gdk3.Color | None + background_rgba: _Gdk3.RGBA | None background_set: bool editable: bool editable_set: bool - ellipsize: Pango.EllipsizeMode + @property + def ellipsize(self) -> Pango.EllipsizeMode: ... + @ellipsize.setter + def ellipsize(self, value: Pango._EllipsizeModeValueType) -> None: ... ellipsize_set: bool - family: str + family: str | None family_set: bool - font: str - font_desc: Pango.FontDescription - foreground: str - foreground_gdk: _Gdk3.Color - foreground_rgba: _Gdk3.RGBA + font: str | None + font_desc: Pango.FontDescription | None + @property + def foreground(self) -> Never: ... + @foreground.setter + def foreground(self, value: str | None) -> None: ... + foreground_gdk: _Gdk3.Color | None + foreground_rgba: _Gdk3.RGBA | None foreground_set: bool - language: str + language: str | None language_set: bool - markup: str + @property + def markup(self) -> Never: ... + @markup.setter + def markup(self, value: str | None) -> None: ... max_width_chars: int - placeholder_text: str + placeholder_text: str | None rise: int rise_set: bool scale: float @@ -10285,21 +10452,36 @@ class CellRendererText(CellRenderer): size: int size_points: float size_set: bool - stretch: Pango.Stretch + @property + def stretch(self) -> Pango.Stretch: ... + @stretch.setter + def stretch(self, value: Pango._StretchValueType) -> None: ... stretch_set: bool strikethrough: bool strikethrough_set: bool - style: Pango.Style + @property + def style(self) -> Pango.Style: ... + @style.setter + def style(self, value: Pango._StyleValueType) -> None: ... style_set: bool - text: str - underline: Pango.Underline + text: str | None + @property + def underline(self) -> Pango.Underline: ... + @underline.setter + def underline(self, value: Pango._UnderlineValueType) -> None: ... underline_set: bool - variant: Pango.Variant + @property + def variant(self) -> Pango.Variant: ... + @variant.setter + def variant(self, value: Pango._VariantValueType) -> None: ... variant_set: bool weight: int weight_set: bool width_chars: int - wrap_mode: Pango.WrapMode + @property + def wrap_mode(self) -> Pango.WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: Pango._WrapModeValueType) -> None: ... wrap_width: int @property @@ -10312,29 +10494,29 @@ class CellRendererText(CellRenderer): self, *, align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_gdk: _Gdk3.Color = ..., - background_rgba: _Gdk3.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_gdk: _Gdk3.Color | None = ..., + background_rgba: _Gdk3.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_gdk: _Gdk3.Color = ..., - foreground_rgba: _Gdk3.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_gdk: _Gdk3.Color | None = ..., + foreground_rgba: _Gdk3.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -10343,30 +10525,30 @@ class CellRendererText(CellRenderer): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -10484,14 +10666,14 @@ class CellRendererToggle(CellRenderer): inconsistent: bool = ..., indicator_size: int = ..., radio: bool = ..., - cell_background: str = ..., - cell_background_gdk: _Gdk3.Color = ..., - cell_background_rgba: _Gdk3.RGBA = ..., + cell_background: str | None = ..., + cell_background_gdk: _Gdk3.Color | None = ..., + cell_background_rgba: _Gdk3.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -10716,18 +10898,27 @@ class CellView(Widget, CellLayout, Orientable): """ @type_check_only class Props(Widget.Props): - background: str - background_gdk: _Gdk3.Color - background_rgba: _Gdk3.RGBA + @property + def background(self) -> Never: ... + @background.setter + def background(self, value: str | None) -> None: ... + background_gdk: _Gdk3.Color | None + @property + def background_rgba(self) -> _Gdk3.RGBA | None: ... + @background_rgba.setter + def background_rgba(self, value: _Gdk3.RGBA) -> None: ... background_set: bool @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... @property - def cell_area_context(self) -> CellAreaContext: ... + def cell_area_context(self) -> CellAreaContext | None: ... draw_sensitive: bool fit_model: bool model: TreeModel | None - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -10738,24 +10929,24 @@ class CellView(Widget, CellLayout, Orientable): def __init__( self, *, - background: str = ..., - background_gdk: _Gdk3.Color = ..., + background: str | None = ..., + background_gdk: _Gdk3.Color | None = ..., background_rgba: _Gdk3.RGBA = ..., background_set: bool = ..., - cell_area: CellArea = ..., - cell_area_context: CellAreaContext = ..., + cell_area: CellArea | None = ..., + cell_area_context: CellAreaContext | None = ..., draw_sensitive: bool = ..., fit_model: bool = ..., model: TreeModel | None = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -10779,7 +10970,7 @@ class CellView(Widget, CellLayout, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11043,7 +11234,10 @@ class CheckButton(ToggleButton): @type_check_only class Props(ToggleButton.Props): action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -11063,24 +11257,24 @@ class CheckButton(ToggleButton): inconsistent: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -11104,7 +11298,7 @@ class CheckButton(ToggleButton): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11351,7 +11545,10 @@ class CheckMenuItem(MenuItem): draw_as_radio: bool inconsistent: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -11377,16 +11574,16 @@ class CheckMenuItem(MenuItem): submenu: Menu | None = ..., use_underline: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -11410,7 +11607,7 @@ class CheckMenuItem(MenuItem): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11522,19 +11719,19 @@ class CheckMenuItemAccessible(MenuItemAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -11886,7 +12083,10 @@ class ColorButton(Button, ColorChooser): title: str use_alpha: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -11911,24 +12111,24 @@ class ColorButton(Button, ColorChooser): use_action_appearance: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -11952,7 +12152,7 @@ class ColorButton(Button, ColorChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11998,7 +12198,7 @@ class ColorChooser(GObject.GInterface, Protocol): """ def add_palette( self, - orientation: Orientation, + orientation: _OrientationValueType, colors_per_line: int, colors: Sequence[_Gdk3.RGBA] | None = None, ) -> None: ... @@ -12305,7 +12505,7 @@ class ColorChooserDialog(Dialog, ColorChooser): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -12320,21 +12520,21 @@ class ColorChooserDialog(Dialog, ColorChooser): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -12358,7 +12558,7 @@ class ColorChooserDialog(Dialog, ColorChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12400,7 +12600,8 @@ class ColorChooserInterface(_gi.Struct): def add_palette( self, ) -> Callable[ - [ColorChooser, Orientation, int, int, Sequence[_Gdk3.RGBA] | None], None + [ColorChooser, _OrientationValueType, int, int, Sequence[_Gdk3.RGBA] | None], + None, ]: ... @property def color_activated(self) -> Callable[[ColorChooser, _Gdk3.RGBA], None]: ... @@ -12606,7 +12807,10 @@ class ColorChooserWidget(Box, ColorChooser): show_editor: bool rgba: _Gdk3.RGBA use_alpha: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -12620,21 +12824,21 @@ class ColorChooserWidget(Box, ColorChooser): show_editor: bool = ..., rgba: _Gdk3.RGBA = ..., use_alpha: bool = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -12658,7 +12862,7 @@ class ColorChooserWidget(Box, ColorChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12889,7 +13093,10 @@ class ColorSelection(Box): current_rgba: _Gdk3.RGBA has_opacity_control: bool has_palette: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -12905,21 +13112,21 @@ class ColorSelection(Box): current_rgba: _Gdk3.RGBA = ..., has_opacity_control: bool = ..., has_palette: bool = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -12943,7 +13150,7 @@ class ColorSelection(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -13262,13 +13469,13 @@ class ColorSelectionDialog(Dialog): @type_check_only class Props(Dialog.Props): @property - def cancel_button(self) -> Widget: ... + def cancel_button(self) -> Widget | None: ... @property def color_selection(self) -> Widget: ... @property - def help_button(self) -> Widget: ... + def help_button(self) -> Widget | None: ... @property - def ok_button(self) -> Widget: ... + def ok_button(self) -> Widget | None: ... @property def props(self) -> Props: ... @@ -13290,7 +13497,7 @@ class ColorSelectionDialog(Dialog): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -13305,21 +13512,21 @@ class ColorSelectionDialog(Dialog): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -13343,7 +13550,7 @@ class ColorSelectionDialog(Dialog): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -13601,21 +13808,27 @@ class ComboBox(Bin, CellEditable, CellLayout, Container): active: int active_id: str | None add_tearoffs: bool - button_sensitivity: SensitivityType @property - def cell_area(self) -> CellArea: ... + def button_sensitivity(self) -> SensitivityType: ... + @button_sensitivity.setter + def button_sensitivity(self, value: _SensitivityTypeValueType) -> None: ... + @property + def cell_area(self) -> CellArea | None: ... column_span_column: int entry_text_column: int @property def has_entry(self) -> bool: ... has_frame: bool id_column: int - model: TreeModel | None + @property + def model(self) -> TreeModel: ... + @model.setter + def model(self, value: TreeModel | None) -> None: ... popup_fixed_width: bool @property def popup_shown(self) -> bool: ... row_span_column: int - tearoff_title: str + tearoff_title: str | None wrap_width: int editing_canceled: bool @@ -13631,8 +13844,8 @@ class ComboBox(Bin, CellEditable, CellLayout, Container): active: int = ..., active_id: str | None = ..., add_tearoffs: bool = ..., - button_sensitivity: SensitivityType = ..., - cell_area: CellArea = ..., + button_sensitivity: _SensitivityTypeValueType = ..., + cell_area: CellArea | None = ..., column_span_column: int = ..., entry_text_column: int = ..., has_entry: bool = ..., @@ -13641,20 +13854,20 @@ class ComboBox(Bin, CellEditable, CellLayout, Container): model: TreeModel | None = ..., popup_fixed_width: bool = ..., row_span_column: int = ..., - tearoff_title: str = ..., + tearoff_title: str | None = ..., wrap_width: int = ..., editing_canceled: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -13678,7 +13891,7 @@ class ComboBox(Bin, CellEditable, CellLayout, Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -13721,7 +13934,9 @@ class ComboBox(Bin, CellEditable, CellLayout, Container): def set_active_id(self, active_id: str | None = None) -> bool: ... def set_active_iter(self, iter: TreeIter | None = None) -> None: ... def set_add_tearoffs(self, add_tearoffs: bool) -> None: ... - def set_button_sensitivity(self, sensitivity: SensitivityType) -> None: ... + def set_button_sensitivity( + self, sensitivity: _SensitivityTypeValueType + ) -> None: ... def set_column_span_column(self, column_span: int) -> None: ... def set_entry_text_column(self, text_column: int) -> None: ... def set_focus_on_click(self, focus_on_click: bool) -> None: ... @@ -13821,19 +14036,19 @@ class ComboBoxAccessible(ContainerAccessible, Atk.Action, Atk.Selection): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -14113,8 +14328,8 @@ class ComboBoxText(ComboBox): active: int = ..., active_id: str | None = ..., add_tearoffs: bool = ..., - button_sensitivity: SensitivityType = ..., - cell_area: CellArea = ..., + button_sensitivity: _SensitivityTypeValueType = ..., + cell_area: CellArea | None = ..., column_span_column: int = ..., entry_text_column: int = ..., has_entry: bool = ..., @@ -14123,19 +14338,19 @@ class ComboBoxText(ComboBox): model: TreeModel | None = ..., popup_fixed_width: bool = ..., row_span_column: int = ..., - tearoff_title: str = ..., + tearoff_title: str | None = ..., wrap_width: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -14159,7 +14374,7 @@ class ComboBoxText(ComboBox): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -14374,8 +14589,14 @@ class Container(Widget): @type_check_only class Props(Widget.Props): border_width: int - child: Widget - resize_mode: ResizeMode + @property + def child(self) -> Never: ... + @child.setter + def child(self, value: Widget | None) -> None: ... + @property + def resize_mode(self) -> ResizeMode: ... + @resize_mode.setter + def resize_mode(self, value: _ResizeModeValueType) -> None: ... @property def props(self) -> Props: ... @@ -14387,16 +14608,16 @@ class Container(Widget): self, *, border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -14420,7 +14641,7 @@ class Container(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -14506,7 +14727,7 @@ class Container(Widget): def set_focus_hadjustment(self, adjustment: Adjustment) -> None: ... def set_focus_vadjustment(self, adjustment: Adjustment) -> None: ... def set_reallocate_redraws(self, needs_redraws: bool) -> None: ... - def set_resize_mode(self, resize_mode: ResizeMode) -> None: ... + def set_resize_mode(self, resize_mode: _ResizeModeValueType) -> None: ... def unset_focus_chain(self) -> None: ... class ContainerAccessible(WidgetAccessible): @@ -14587,19 +14808,19 @@ class ContainerAccessible(WidgetAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -14699,19 +14920,19 @@ class ContainerCellAccessible(CellAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... def add_child(self, child: CellAccessible) -> None: ... @@ -15134,7 +15355,7 @@ class Dialog(Window, Container): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -15149,21 +15370,21 @@ class Dialog(Window, Container): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -15187,7 +15408,7 @@ class Dialog(Window, Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15422,10 +15643,10 @@ class DrawingArea(Widget): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -15449,7 +15670,7 @@ class DrawingArea(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15821,55 +16042,76 @@ class Entry(Widget, CellEditable, Editable): @type_check_only class Props(Widget.Props): activates_default: bool - attributes: Pango.AttrList | None + @property + def attributes(self) -> Pango.AttrList | None: ... + @attributes.setter + def attributes(self, value: Pango.AttrList) -> None: ... buffer: EntryBuffer caps_lock_warning: bool - completion: EntryCompletion | None + @property + def completion(self) -> EntryCompletion: ... + @completion.setter + def completion(self, value: EntryCompletion | None) -> None: ... @property def cursor_position(self) -> int: ... editable: bool enable_emoji_completion: bool has_frame: bool - im_module: str + im_module: str | None inner_border: Border | None - input_hints: InputHints - input_purpose: InputPurpose + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... invisible_char: int invisible_char_set: bool max_length: int max_width_chars: int overwrite_mode: bool - placeholder_text: str | None + @property + def placeholder_text(self) -> str: ... + @placeholder_text.setter + def placeholder_text(self, value: str | None) -> None: ... populate_all: bool primary_icon_activatable: bool - primary_icon_gicon: Gio.Icon - primary_icon_name: str - primary_icon_pixbuf: GdkPixbuf.Pixbuf + primary_icon_gicon: Gio.Icon | None + primary_icon_name: str | None + primary_icon_pixbuf: GdkPixbuf.Pixbuf | None primary_icon_sensitive: bool - primary_icon_stock: str + primary_icon_stock: str | None @property def primary_icon_storage_type(self) -> ImageType: ... - primary_icon_tooltip_markup: str - primary_icon_tooltip_text: str + primary_icon_tooltip_markup: str | None + primary_icon_tooltip_text: str | None progress_fraction: float progress_pulse_step: float @property def scroll_offset(self) -> int: ... secondary_icon_activatable: bool - secondary_icon_gicon: Gio.Icon - secondary_icon_name: str - secondary_icon_pixbuf: GdkPixbuf.Pixbuf + secondary_icon_gicon: Gio.Icon | None + secondary_icon_name: str | None + secondary_icon_pixbuf: GdkPixbuf.Pixbuf | None secondary_icon_sensitive: bool - secondary_icon_stock: str + secondary_icon_stock: str | None @property def secondary_icon_storage_type(self) -> ImageType: ... - secondary_icon_tooltip_markup: str - secondary_icon_tooltip_text: str + secondary_icon_tooltip_markup: str | None + secondary_icon_tooltip_text: str | None @property def selection_bound(self) -> int: ... - shadow_type: ShadowType + @property + def shadow_type(self) -> ShadowType: ... + @shadow_type.setter + def shadow_type(self, value: _ShadowTypeValueType) -> None: ... show_emoji_icon: bool - tabs: Pango.TabArray | None + @property + def tabs(self) -> Pango.TabArray | None: ... + @tabs.setter + def tabs(self, value: Pango.TabArray) -> None: ... text: str @property def text_length(self) -> int: ... @@ -15896,10 +16138,10 @@ class Entry(Widget, CellEditable, Editable): editable: bool = ..., enable_emoji_completion: bool = ..., has_frame: bool = ..., - im_module: str = ..., + im_module: str | None = ..., inner_border: Border | None = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., invisible_char: int = ..., invisible_char_set: bool = ..., max_length: int = ..., @@ -15908,24 +16150,24 @@ class Entry(Widget, CellEditable, Editable): placeholder_text: str | None = ..., populate_all: bool = ..., primary_icon_activatable: bool = ..., - primary_icon_gicon: Gio.Icon = ..., - primary_icon_name: str = ..., - primary_icon_pixbuf: GdkPixbuf.Pixbuf = ..., + primary_icon_gicon: Gio.Icon | None = ..., + primary_icon_name: str | None = ..., + primary_icon_pixbuf: GdkPixbuf.Pixbuf | None = ..., primary_icon_sensitive: bool = ..., - primary_icon_stock: str = ..., - primary_icon_tooltip_markup: str = ..., - primary_icon_tooltip_text: str = ..., + primary_icon_stock: str | None = ..., + primary_icon_tooltip_markup: str | None = ..., + primary_icon_tooltip_text: str | None = ..., progress_fraction: float = ..., progress_pulse_step: float = ..., secondary_icon_activatable: bool = ..., - secondary_icon_gicon: Gio.Icon = ..., - secondary_icon_name: str = ..., - secondary_icon_pixbuf: GdkPixbuf.Pixbuf = ..., + secondary_icon_gicon: Gio.Icon | None = ..., + secondary_icon_name: str | None = ..., + secondary_icon_pixbuf: GdkPixbuf.Pixbuf | None = ..., secondary_icon_sensitive: bool = ..., - secondary_icon_stock: str = ..., - secondary_icon_tooltip_markup: str = ..., - secondary_icon_tooltip_text: str = ..., - shadow_type: ShadowType = ..., + secondary_icon_stock: str | None = ..., + secondary_icon_tooltip_markup: str | None = ..., + secondary_icon_tooltip_text: str | None = ..., + shadow_type: _ShadowTypeValueType = ..., show_emoji_icon: bool = ..., tabs: Pango.TabArray = ..., text: str = ..., @@ -15938,10 +16180,10 @@ class Entry(Widget, CellEditable, Editable): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -15965,7 +16207,7 @@ class Entry(Widget, CellEditable, Editable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15975,7 +16217,7 @@ class Entry(Widget, CellEditable, Editable): def do_backspace(self) -> None: ... def do_copy_clipboard(self) -> None: ... def do_cut_clipboard(self) -> None: ... - def do_delete_from_cursor(self, type: DeleteType, count: int) -> None: ... + def do_delete_from_cursor(self, type: _DeleteTypeValueType, count: int) -> None: ... def do_get_frame_size(self, x: int, y: int, width: int, height: int) -> None: ... def do_get_text_area_size( self, x: int, y: int, width: int, height: int @@ -15983,7 +16225,7 @@ class Entry(Widget, CellEditable, Editable): def do_insert_at_cursor(self, str: str) -> None: ... def do_insert_emoji(self) -> None: ... def do_move_cursor( - self, step: MovementStep, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool ) -> None: ... def do_paste_clipboard(self) -> None: ... def do_populate_popup(self, popup: Widget) -> None: ... @@ -15997,19 +16239,29 @@ class Entry(Widget, CellEditable, Editable): def get_current_icon_drag_source(self) -> int: ... def get_cursor_hadjustment(self) -> Adjustment | None: ... def get_has_frame(self) -> bool: ... - def get_icon_activatable(self, icon_pos: EntryIconPosition) -> bool: ... - def get_icon_area(self, icon_pos: EntryIconPosition) -> _Gdk3.Rectangle: ... + def get_icon_activatable(self, icon_pos: _EntryIconPositionValueType) -> bool: ... + def get_icon_area( + self, icon_pos: _EntryIconPositionValueType + ) -> _Gdk3.Rectangle: ... def get_icon_at_pos(self, x: int, y: int) -> int: ... - def get_icon_gicon(self, icon_pos: EntryIconPosition) -> Gio.Icon | None: ... - def get_icon_name(self, icon_pos: EntryIconPosition) -> str | None: ... + def get_icon_gicon( + self, icon_pos: _EntryIconPositionValueType + ) -> Gio.Icon | None: ... + def get_icon_name(self, icon_pos: _EntryIconPositionValueType) -> str | None: ... def get_icon_pixbuf( - self, icon_pos: EntryIconPosition + self, icon_pos: _EntryIconPositionValueType ) -> GdkPixbuf.Pixbuf | None: ... - def get_icon_sensitive(self, icon_pos: EntryIconPosition) -> bool: ... - def get_icon_stock(self, icon_pos: EntryIconPosition) -> str: ... - def get_icon_storage_type(self, icon_pos: EntryIconPosition) -> ImageType: ... - def get_icon_tooltip_markup(self, icon_pos: EntryIconPosition) -> str | None: ... - def get_icon_tooltip_text(self, icon_pos: EntryIconPosition) -> str | None: ... + def get_icon_sensitive(self, icon_pos: _EntryIconPositionValueType) -> bool: ... + def get_icon_stock(self, icon_pos: _EntryIconPositionValueType) -> str: ... + def get_icon_storage_type( + self, icon_pos: _EntryIconPositionValueType + ) -> ImageType: ... + def get_icon_tooltip_markup( + self, icon_pos: _EntryIconPositionValueType + ) -> str | None: ... + def get_icon_tooltip_text( + self, icon_pos: _EntryIconPositionValueType + ) -> str | None: ... def get_inner_border(self) -> Border | None: ... def get_input_hints(self) -> InputHints: ... def get_input_purpose(self) -> InputPurpose: ... @@ -16045,38 +16297,40 @@ class Entry(Widget, CellEditable, Editable): def set_cursor_hadjustment(self, adjustment: Adjustment | None = None) -> None: ... def set_has_frame(self, setting: bool) -> None: ... def set_icon_activatable( - self, icon_pos: EntryIconPosition, activatable: bool + self, icon_pos: _EntryIconPositionValueType, activatable: bool ) -> None: ... def set_icon_drag_source( self, - icon_pos: EntryIconPosition, + icon_pos: _EntryIconPositionValueType, target_list: TargetList, - actions: _Gdk3.DragAction, + actions: _Gdk3._DragActionValueType, ) -> None: ... def set_icon_from_gicon( - self, icon_pos: EntryIconPosition, icon: Gio.Icon | None = None + self, icon_pos: _EntryIconPositionValueType, icon: Gio.Icon | None = None ) -> None: ... def set_icon_from_icon_name( - self, icon_pos: EntryIconPosition, icon_name: str | None = None + self, icon_pos: _EntryIconPositionValueType, icon_name: str | None = None ) -> None: ... def set_icon_from_pixbuf( - self, icon_pos: EntryIconPosition, pixbuf: GdkPixbuf.Pixbuf | None = None + self, + icon_pos: _EntryIconPositionValueType, + pixbuf: GdkPixbuf.Pixbuf | None = None, ) -> None: ... def set_icon_from_stock( - self, icon_pos: EntryIconPosition, stock_id: str | None = None + self, icon_pos: _EntryIconPositionValueType, stock_id: str | None = None ) -> None: ... def set_icon_sensitive( - self, icon_pos: EntryIconPosition, sensitive: bool + self, icon_pos: _EntryIconPositionValueType, sensitive: bool ) -> None: ... def set_icon_tooltip_markup( - self, icon_pos: EntryIconPosition, tooltip: str | None = None + self, icon_pos: _EntryIconPositionValueType, tooltip: str | None = None ) -> None: ... def set_icon_tooltip_text( - self, icon_pos: EntryIconPosition, tooltip: str | None = None + self, icon_pos: _EntryIconPositionValueType, tooltip: str | None = None ) -> None: ... def set_inner_border(self, border: Border | None = None) -> None: ... - def set_input_hints(self, hints: InputHints) -> None: ... - def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_input_hints(self, hints: _InputHintsValueType) -> None: ... + def set_input_purpose(self, purpose: _InputPurposeValueType) -> None: ... def set_invisible_char(self, ch: str) -> None: ... def set_max_length(self, max: int) -> None: ... def set_max_width_chars(self, n_chars: int) -> None: ... @@ -16177,19 +16431,19 @@ class EntryAccessible(WidgetAccessible, Atk.Action, Atk.EditableText, Atk.Text): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -16305,11 +16559,15 @@ class EntryClass(_gi.Struct): @property def activate(self) -> Callable[[Entry], None]: ... @property - def move_cursor(self) -> Callable[[Entry, MovementStep, int, bool], None]: ... + def move_cursor( + self, + ) -> Callable[[Entry, _MovementStepValueType, int, bool], None]: ... @property def insert_at_cursor(self) -> Callable[[Entry, str], None]: ... @property - def delete_from_cursor(self) -> Callable[[Entry, DeleteType, int], None]: ... + def delete_from_cursor( + self, + ) -> Callable[[Entry, _DeleteTypeValueType, int], None]: ... @property def backspace(self) -> Callable[[Entry], None]: ... @property @@ -16374,7 +16632,7 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): @type_check_only class Props(GObject.Object.Props): @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... inline_completion: bool inline_selection: bool minimum_key_length: int @@ -16393,7 +16651,7 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): def __init__( self, *, - cell_area: CellArea = ..., + cell_area: CellArea | None = ..., inline_completion: bool = ..., inline_selection: bool = ..., minimum_key_length: int = ..., @@ -16535,19 +16793,19 @@ class EntryIconAccessible(Atk.Object, Atk.Action, Atk.Component): def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -16755,16 +17013,16 @@ class EventBox(Bin): above_child: bool = ..., visible_window: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -16788,7 +17046,7 @@ class EventBox(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -16835,20 +17093,26 @@ class EventController(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - propagation_phase: PropagationPhase + @property + def propagation_phase(self) -> PropagationPhase: ... + @propagation_phase.setter + def propagation_phase(self, value: _PropagationPhaseValueType) -> None: ... @property def widget(self) -> Widget: ... @property def props(self) -> Props: ... def __init__( - self, *, propagation_phase: PropagationPhase = ..., widget: Widget = ... + self, + *, + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_propagation_phase(self) -> PropagationPhase: ... def get_widget(self) -> Widget: ... def handle_event(self, event: _Gdk3.Event) -> bool: ... def reset(self) -> None: ... - def set_propagation_phase(self, phase: PropagationPhase) -> None: ... + def set_propagation_phase(self, phase: _PropagationPhaseValueType) -> None: ... class EventControllerClass(_gi.Struct): ... @@ -16881,7 +17145,10 @@ class EventControllerKey(EventController): notify (GParam) """ def __init__( - self, *, propagation_phase: PropagationPhase = ..., widget: Widget = ... + self, + *, + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def forward(self, widget: Widget) -> bool: ... def get_group(self) -> int: ... @@ -16918,7 +17185,10 @@ class EventControllerMotion(EventController): notify (GParam) """ def __init__( - self, *, propagation_phase: PropagationPhase = ..., widget: Widget = ... + self, + *, + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... @classmethod def new(cls, widget: Widget) -> EventControllerMotion: ... @@ -16957,23 +17227,26 @@ class EventControllerScroll(EventController): """ @type_check_only class Props(EventController.Props): - flags: EventControllerScrollFlags + @property + def flags(self) -> EventControllerScrollFlags: ... + @flags.setter + def flags(self, value: _EventControllerScrollFlagsValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - flags: EventControllerScrollFlags = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + flags: _EventControllerScrollFlagsValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_flags(self) -> EventControllerScrollFlags: ... @classmethod def new( - cls, widget: Widget, flags: EventControllerScrollFlags + cls, widget: Widget, flags: _EventControllerScrollFlagsValueType ) -> EventControllerScroll: ... - def set_flags(self, flags: EventControllerScrollFlags) -> None: ... + def set_flags(self, flags: _EventControllerScrollFlagsValueType) -> None: ... class EventControllerScrollClass(_gi.Struct): ... @@ -17207,16 +17480,16 @@ class Expander(Bin): use_markup: bool = ..., use_underline: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -17240,7 +17513,7 @@ class Expander(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -17349,19 +17622,19 @@ class ExpanderAccessible(ContainerAccessible, Atk.Action): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -17446,7 +17719,7 @@ class FileChooser(GObject.GInterface, Protocol): def select_file(self, file: Gio.File) -> bool: ... def select_filename(self, filename: str) -> bool: ... def select_uri(self, uri: str) -> bool: ... - def set_action(self, action: FileChooserAction) -> None: ... + def set_action(self, action: _FileChooserActionValueType) -> None: ... def set_choice(self, id: str, option: str) -> None: ... def set_create_folders(self, create_folders: bool) -> None: ... def set_current_folder(self, filename: str) -> bool: ... @@ -17682,18 +17955,33 @@ class FileChooserButton(Box, FileChooser): class Props(Box.Props): title: str width_chars: int - action: FileChooserAction + @property + def action(self) -> FileChooserAction: ... + @action.setter + def action(self, value: _FileChooserActionValueType) -> None: ... create_folders: bool do_overwrite_confirmation: bool - extra_widget: Widget | None - filter: FileFilter | None + @property + def extra_widget(self) -> Widget | None: ... + @extra_widget.setter + def extra_widget(self, value: Widget) -> None: ... + @property + def filter(self) -> FileFilter | None: ... + @filter.setter + def filter(self, value: FileFilter) -> None: ... local_only: bool - preview_widget: Widget | None + @property + def preview_widget(self) -> Widget | None: ... + @preview_widget.setter + def preview_widget(self, value: Widget) -> None: ... preview_widget_active: bool select_multiple: bool show_hidden: bool use_preview_label: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -17704,10 +17992,10 @@ class FileChooserButton(Box, FileChooser): def __init__( self, *, - dialog: FileChooser = ..., + dialog: FileChooser | None = ..., title: str = ..., width_chars: int = ..., - action: FileChooserAction = ..., + action: _FileChooserActionValueType = ..., create_folders: bool = ..., do_overwrite_confirmation: bool = ..., extra_widget: Widget = ..., @@ -17718,21 +18006,21 @@ class FileChooserButton(Box, FileChooser): select_multiple: bool = ..., show_hidden: bool = ..., use_preview_label: bool = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -17756,7 +18044,7 @@ class FileChooserButton(Box, FileChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -17767,7 +18055,9 @@ class FileChooserButton(Box, FileChooser): def get_title(self) -> str: ... def get_width_chars(self) -> int: ... @classmethod - def new(cls, title: str, action: FileChooserAction) -> FileChooserButton: ... + def new( + cls, title: str, action: _FileChooserActionValueType + ) -> FileChooserButton: ... @classmethod def new_with_dialog(cls, dialog: Dialog) -> FileChooserButton: ... def set_focus_on_click(self, focus_on_click: bool) -> None: ... @@ -18059,13 +18349,25 @@ class FileChooserDialog(Dialog, FileChooser): """ @type_check_only class Props(Dialog.Props): - action: FileChooserAction + @property + def action(self) -> FileChooserAction: ... + @action.setter + def action(self, value: _FileChooserActionValueType) -> None: ... create_folders: bool do_overwrite_confirmation: bool - extra_widget: Widget | None - filter: FileFilter | None + @property + def extra_widget(self) -> Widget | None: ... + @extra_widget.setter + def extra_widget(self, value: Widget) -> None: ... + @property + def filter(self) -> FileFilter | None: ... + @filter.setter + def filter(self, value: FileFilter) -> None: ... local_only: bool - preview_widget: Widget | None + @property + def preview_widget(self) -> Widget | None: ... + @preview_widget.setter + def preview_widget(self, value: Widget) -> None: ... preview_widget_active: bool select_multiple: bool show_hidden: bool @@ -18080,7 +18382,7 @@ class FileChooserDialog(Dialog, FileChooser): def __init__( self, *, - action: FileChooserAction = ..., + action: _FileChooserActionValueType = ..., create_folders: bool = ..., do_overwrite_confirmation: bool = ..., extra_widget: Widget = ..., @@ -18102,7 +18404,7 @@ class FileChooserDialog(Dialog, FileChooser): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -18117,21 +18419,21 @@ class FileChooserDialog(Dialog, FileChooser): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -18155,7 +18457,7 @@ class FileChooserDialog(Dialog, FileChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -18219,13 +18521,25 @@ class FileChooserNative(NativeDialog, FileChooser): class Props(NativeDialog.Props): accept_label: str | None cancel_label: str | None - action: FileChooserAction + @property + def action(self) -> FileChooserAction: ... + @action.setter + def action(self, value: _FileChooserActionValueType) -> None: ... create_folders: bool do_overwrite_confirmation: bool - extra_widget: Widget | None - filter: FileFilter | None + @property + def extra_widget(self) -> Widget | None: ... + @extra_widget.setter + def extra_widget(self, value: Widget) -> None: ... + @property + def filter(self) -> FileFilter | None: ... + @filter.setter + def filter(self, value: FileFilter) -> None: ... local_only: bool - preview_widget: Widget | None + @property + def preview_widget(self) -> Widget | None: ... + @preview_widget.setter + def preview_widget(self, value: Widget) -> None: ... preview_widget_active: bool select_multiple: bool show_hidden: bool @@ -18238,7 +18552,7 @@ class FileChooserNative(NativeDialog, FileChooser): *, accept_label: str | None = ..., cancel_label: str | None = ..., - action: FileChooserAction = ..., + action: _FileChooserActionValueType = ..., create_folders: bool = ..., do_overwrite_confirmation: bool = ..., extra_widget: Widget = ..., @@ -18261,7 +18575,7 @@ class FileChooserNative(NativeDialog, FileChooser): cls, title: str | None, parent: Window | None, - action: FileChooserAction, + action: _FileChooserActionValueType, accept_label: str | None = None, cancel_label: str | None = None, ) -> FileChooserNative: ... @@ -18501,19 +18815,34 @@ class FileChooserWidget(Box, FileChooser): class Props(Box.Props): search_mode: bool @property - def subtitle(self) -> str: ... - action: FileChooserAction + def subtitle(self) -> str | None: ... + @property + def action(self) -> FileChooserAction: ... + @action.setter + def action(self, value: _FileChooserActionValueType) -> None: ... create_folders: bool do_overwrite_confirmation: bool - extra_widget: Widget | None - filter: FileFilter | None + @property + def extra_widget(self) -> Widget | None: ... + @extra_widget.setter + def extra_widget(self, value: Widget) -> None: ... + @property + def filter(self) -> FileFilter | None: ... + @filter.setter + def filter(self, value: FileFilter) -> None: ... local_only: bool - preview_widget: Widget | None + @property + def preview_widget(self) -> Widget | None: ... + @preview_widget.setter + def preview_widget(self, value: Widget) -> None: ... preview_widget_active: bool select_multiple: bool show_hidden: bool use_preview_label: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -18525,7 +18854,7 @@ class FileChooserWidget(Box, FileChooser): self, *, search_mode: bool = ..., - action: FileChooserAction = ..., + action: _FileChooserActionValueType = ..., create_folders: bool = ..., do_overwrite_confirmation: bool = ..., extra_widget: Widget = ..., @@ -18536,21 +18865,21 @@ class FileChooserWidget(Box, FileChooser): select_multiple: bool = ..., show_hidden: bool = ..., use_preview_label: bool = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -18574,14 +18903,14 @@ class FileChooserWidget(Box, FileChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... @classmethod - def new(cls, action: FileChooserAction) -> FileChooserWidget: ... + def new(cls, action: _FileChooserActionValueType) -> FileChooserWidget: ... class FileChooserWidgetAccessible(ContainerAccessible, Atk.Action): """ @@ -18664,19 +18993,19 @@ class FileChooserWidgetAccessible(ContainerAccessible, Atk.Action): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -18723,7 +19052,7 @@ class FileFilter(GObject.InitiallyUnowned, Buildable): """ def add_custom( self, - needed: FileFilterFlags, + needed: _FileFilterFlagsValueType, func: Callable[[FileFilterInfo, Unpack[_DataTs]], bool], *data: Unpack[_DataTs], ) -> None: ... @@ -18942,16 +19271,16 @@ class Fixed(Container): self, *, border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -18975,7 +19304,7 @@ class Fixed(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -19224,8 +19553,14 @@ class FlowBox(Container, Orientable): max_children_per_line: int min_children_per_line: int row_spacing: int - selection_mode: SelectionMode - orientation: Orientation + @property + def selection_mode(self) -> SelectionMode: ... + @selection_mode.setter + def selection_mode(self, value: _SelectionModeValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -19240,19 +19575,19 @@ class FlowBox(Container, Orientable): max_children_per_line: int = ..., min_children_per_line: int = ..., row_spacing: int = ..., - selection_mode: SelectionMode = ..., - orientation: Orientation = ..., + selection_mode: _SelectionModeValueType = ..., + orientation: _OrientationValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -19276,7 +19611,7 @@ class FlowBox(Container, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -19290,7 +19625,7 @@ class FlowBox(Container, Orientable): ) -> None: ... def do_activate_cursor_child(self) -> None: ... def do_child_activated(self, child: FlowBoxChild) -> None: ... - def do_move_cursor(self, step: MovementStep, count: int) -> bool: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int) -> bool: ... def do_select_all(self) -> None: ... def do_selected_children_changed(self) -> None: ... def do_toggle_cursor_child(self) -> None: ... @@ -19329,7 +19664,7 @@ class FlowBox(Container, Orientable): def set_max_children_per_line(self, n_children: int) -> None: ... def set_min_children_per_line(self, n_children: int) -> None: ... def set_row_spacing(self, spacing: int) -> None: ... - def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_selection_mode(self, mode: _SelectionModeValueType) -> None: ... def set_sort_func( self, sort_func: Callable[[FlowBoxChild, FlowBoxChild, Unpack[_DataTs]], int] @@ -19424,19 +19759,19 @@ class FlowBoxAccessible(ContainerAccessible, Atk.Selection): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -19641,16 +19976,16 @@ class FlowBoxChild(Bin): self, *, border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -19674,7 +20009,7 @@ class FlowBoxChild(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -19766,19 +20101,19 @@ class FlowBoxChildAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -19825,7 +20160,7 @@ class FlowBoxClass(_gi.Struct): @property def toggle_cursor_child(self) -> Callable[[FlowBox], None]: ... @property - def move_cursor(self) -> Callable[[FlowBox, MovementStep, int], bool]: ... + def move_cursor(self) -> Callable[[FlowBox, _MovementStepValueType, int], bool]: ... @property def select_all(self) -> Callable[[FlowBox], None]: ... @property @@ -20068,15 +20403,27 @@ class FontButton(Button, FontChooser): use_font: bool use_size: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool - font: str | None - font_desc: Pango.FontDescription | None + @property + def font(self) -> str | None: ... + @font.setter + def font(self, value: str) -> None: ... + @property + def font_desc(self) -> Pango.FontDescription | None: ... + @font_desc.setter + def font_desc(self, value: Pango.FontDescription) -> None: ... @property def font_features(self) -> str: ... language: str - level: FontChooserLevel + @property + def level(self) -> FontChooserLevel: ... + @level.setter + def level(self, value: _FontChooserLevelValueType) -> None: ... preview_text: str show_preview_entry: bool @@ -20102,29 +20449,29 @@ class FontButton(Button, FontChooser): font: str = ..., font_desc: Pango.FontDescription = ..., language: str = ..., - level: FontChooserLevel = ..., + level: _FontChooserLevelValueType = ..., preview_text: str = ..., show_preview_entry: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -20148,7 +20495,7 @@ class FontButton(Button, FontChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -20215,7 +20562,7 @@ class FontChooser(GObject.GInterface, Protocol): def set_font_desc(self, font_desc: Pango.FontDescription) -> None: ... def set_font_map(self, fontmap: Pango.FontMap | None = None) -> None: ... def set_language(self, language: str) -> None: ... - def set_level(self, level: FontChooserLevel) -> None: ... + def set_level(self, level: _FontChooserLevelValueType) -> None: ... def set_preview_text(self, text: str) -> None: ... def set_show_preview_entry(self, show_preview_entry: bool) -> None: ... @@ -20486,12 +20833,21 @@ class FontChooserDialog(Dialog, FontChooser): """ @type_check_only class Props(Dialog.Props): - font: str | None - font_desc: Pango.FontDescription | None + @property + def font(self) -> str | None: ... + @font.setter + def font(self, value: str) -> None: ... + @property + def font_desc(self) -> Pango.FontDescription | None: ... + @font_desc.setter + def font_desc(self, value: Pango.FontDescription) -> None: ... @property def font_features(self) -> str: ... language: str - level: FontChooserLevel + @property + def level(self) -> FontChooserLevel: ... + @level.setter + def level(self, value: _FontChooserLevelValueType) -> None: ... preview_text: str show_preview_entry: bool @@ -20507,7 +20863,7 @@ class FontChooserDialog(Dialog, FontChooser): font: str = ..., font_desc: Pango.FontDescription = ..., language: str = ..., - level: FontChooserLevel = ..., + level: _FontChooserLevelValueType = ..., preview_text: str = ..., show_preview_entry: bool = ..., use_header_bar: int = ..., @@ -20521,7 +20877,7 @@ class FontChooserDialog(Dialog, FontChooser): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -20536,21 +20892,21 @@ class FontChooserDialog(Dialog, FontChooser): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -20574,7 +20930,7 @@ class FontChooserDialog(Dialog, FontChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -20832,16 +21188,28 @@ class FontChooserWidget(Box, FontChooser): @type_check_only class Props(Box.Props): @property - def tweak_action(self) -> Gio.Action: ... - font: str | None - font_desc: Pango.FontDescription | None + def tweak_action(self) -> Gio.Action | None: ... + @property + def font(self) -> str | None: ... + @font.setter + def font(self, value: str) -> None: ... + @property + def font_desc(self) -> Pango.FontDescription | None: ... + @font_desc.setter + def font_desc(self, value: Pango.FontDescription) -> None: ... @property def font_features(self) -> str: ... language: str - level: FontChooserLevel + @property + def level(self) -> FontChooserLevel: ... + @level.setter + def level(self, value: _FontChooserLevelValueType) -> None: ... preview_text: str show_preview_entry: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -20855,24 +21223,24 @@ class FontChooserWidget(Box, FontChooser): font: str = ..., font_desc: Pango.FontDescription = ..., language: str = ..., - level: FontChooserLevel = ..., + level: _FontChooserLevelValueType = ..., preview_text: str = ..., show_preview_entry: bool = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -20896,7 +21264,7 @@ class FontChooserWidget(Box, FontChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -21115,7 +21483,10 @@ class FontSelection(Box): class Props(Box.Props): font_name: str preview_text: str - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -21128,21 +21499,21 @@ class FontSelection(Box): *, font_name: str = ..., preview_text: str = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -21166,7 +21537,7 @@ class FontSelection(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -21478,7 +21849,7 @@ class FontSelectionDialog(Dialog): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -21493,21 +21864,21 @@ class FontSelectionDialog(Dialog): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -21531,7 +21902,7 @@ class FontSelectionDialog(Dialog): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -21758,7 +22129,10 @@ class Frame(Bin): label_widget: Widget | None label_xalign: float label_yalign: float - shadow_type: ShadowType + @property + def shadow_type(self) -> ShadowType: ... + @shadow_type.setter + def shadow_type(self, value: _ShadowTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -21773,18 +22147,18 @@ class Frame(Bin): label_widget: Widget | None = ..., label_xalign: float = ..., label_yalign: float = ..., - shadow_type: ShadowType = ..., + shadow_type: _ShadowTypeValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -21808,7 +22182,7 @@ class Frame(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -21824,7 +22198,7 @@ class Frame(Bin): def set_label(self, label: str | None = None) -> None: ... def set_label_align(self, xalign: float, yalign: float) -> None: ... def set_label_widget(self, label_widget: Widget | None = None) -> None: ... - def set_shadow_type(self, type: ShadowType) -> None: ... + def set_shadow_type(self, type: _ShadowTypeValueType) -> None: ... class FrameAccessible(ContainerAccessible): """ @@ -21907,19 +22281,19 @@ class FrameAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -22161,10 +22535,10 @@ class GLArea(Widget): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -22188,7 +22562,7 @@ class GLArea(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -22279,8 +22653,8 @@ class Gesture(EventController): *, n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_bounding_box(self) -> tuple[bool, _Gdk3.Rectangle]: ... def get_bounding_box_center(self) -> tuple[bool, float, float]: ... @@ -22304,9 +22678,9 @@ class Gesture(EventController): def is_grouped_with(self, other: Gesture) -> bool: ... def is_recognized(self) -> bool: ... def set_sequence_state( - self, sequence: _Gdk3.EventSequence, state: EventSequenceState + self, sequence: _Gdk3.EventSequence, state: _EventSequenceStateValueType ) -> bool: ... - def set_state(self, state: EventSequenceState) -> bool: ... + def set_state(self, state: _EventSequenceStateValueType) -> bool: ... def set_window(self, window: _Gdk3.Window | None = None) -> None: ... def ungroup(self) -> None: ... @@ -22366,8 +22740,8 @@ class GestureDrag(GestureSingle): touch_only: bool = ..., n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_offset(self) -> tuple[bool, float | None, float | None]: ... def get_start_point(self) -> tuple[bool, float | None, float | None]: ... @@ -22440,8 +22814,8 @@ class GestureLongPress(GestureSingle): touch_only: bool = ..., n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... @classmethod def new(cls, widget: Widget) -> GestureLongPress: ... @@ -22502,8 +22876,8 @@ class GestureMultiPress(GestureSingle): touch_only: bool = ..., n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_area(self) -> tuple[bool, _Gdk3.Rectangle]: ... @classmethod @@ -22567,26 +22941,29 @@ class GesturePan(GestureDrag): """ @type_check_only class Props(GestureDrag.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., button: int = ..., exclusive: bool = ..., touch_only: bool = ..., n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_orientation(self) -> Orientation: ... @classmethod - def new(cls, widget: Widget, orientation: Orientation) -> GesturePan: ... - def set_orientation(self, orientation: Orientation) -> None: ... + def new(cls, widget: Widget, orientation: _OrientationValueType) -> GesturePan: ... + def set_orientation(self, orientation: _OrientationValueType) -> None: ... class GesturePanClass(_gi.Struct): ... @@ -22631,8 +23008,8 @@ class GestureRotate(Gesture): *, n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_angle_delta(self) -> float: ... @classmethod @@ -22696,8 +23073,8 @@ class GestureSingle(Gesture): touch_only: bool = ..., n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_button(self) -> int: ... def get_current_button(self) -> int: ... @@ -22765,11 +23142,13 @@ class GestureStylus(GestureSingle): touch_only: bool = ..., n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... - def get_axes(self, axes: Sequence[_Gdk3.AxisUse]) -> tuple[bool, list[float]]: ... - def get_axis(self, axis: _Gdk3.AxisUse) -> tuple[bool, float]: ... + def get_axes( + self, axes: Sequence[_Gdk3._AxisUseValueType] + ) -> tuple[bool, list[float]]: ... + def get_axis(self, axis: _Gdk3._AxisUseValueType) -> tuple[bool, float]: ... def get_device_tool(self) -> _Gdk3.DeviceTool | None: ... @classmethod def new(cls, widget: Widget) -> GestureStylus: ... @@ -22828,8 +23207,8 @@ class GestureSwipe(GestureSingle): touch_only: bool = ..., n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_velocity(self) -> tuple[bool, float, float]: ... @classmethod @@ -22878,8 +23257,8 @@ class GestureZoom(Gesture): *, n_points: int = ..., window: _Gdk3.Window | None = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... def get_scale_delta(self) -> float: ... @classmethod @@ -23107,7 +23486,10 @@ class Grid(Container, Orientable): column_spacing: int row_homogeneous: bool row_spacing: int - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -23123,18 +23505,18 @@ class Grid(Container, Orientable): column_spacing: int = ..., row_homogeneous: bool = ..., row_spacing: int = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -23158,7 +23540,7 @@ class Grid(Container, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -23171,7 +23553,7 @@ class Grid(Container, Orientable): self, child: Widget, sibling: Widget | None, - side: PositionType, + side: _PositionTypeValueType, width: int, height: int, ) -> None: ... @@ -23183,7 +23565,7 @@ class Grid(Container, Orientable): def get_row_homogeneous(self) -> bool: ... def get_row_spacing(self) -> int: ... def insert_column(self, position: int) -> None: ... - def insert_next_to(self, sibling: Widget, side: PositionType) -> None: ... + def insert_next_to(self, sibling: Widget, side: _PositionTypeValueType) -> None: ... def insert_row(self, position: int) -> None: ... @classmethod def new(cls) -> Grid: ... @@ -23192,7 +23574,9 @@ class Grid(Container, Orientable): def set_baseline_row(self, row: int) -> None: ... def set_column_homogeneous(self, homogeneous: bool) -> None: ... def set_column_spacing(self, spacing: int) -> None: ... - def set_row_baseline_position(self, row: int, pos: BaselinePosition) -> None: ... + def set_row_baseline_position( + self, row: int, pos: _BaselinePositionValueType + ) -> None: ... def set_row_homogeneous(self, homogeneous: bool) -> None: ... def set_row_spacing(self, spacing: int) -> None: ... @@ -23398,7 +23782,10 @@ class HBox(Box): """ @type_check_only class Props(Box.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -23407,21 +23794,21 @@ class HBox(Box): def __init__( self, *, - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -23445,7 +23832,7 @@ class HBox(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -23658,7 +24045,10 @@ class HButtonBox(ButtonBox): """ @type_check_only class Props(ButtonBox.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -23667,22 +24057,22 @@ class HButtonBox(ButtonBox): def __init__( self, *, - orientation: Orientation = ..., - layout_style: ButtonBoxStyle = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + layout_style: _ButtonBoxStyleValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -23706,7 +24096,7 @@ class HButtonBox(ButtonBox): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -23927,7 +24317,10 @@ class HPaned(Paned): """ @type_check_only class Props(Paned.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -23936,21 +24329,21 @@ class HPaned(Paned): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., position: int = ..., position_set: bool = ..., wide_handle: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -23974,7 +24367,7 @@ class HPaned(Paned): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24174,10 +24567,10 @@ class HSV(Widget): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -24201,14 +24594,14 @@ class HSV(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... def do_changed(self) -> None: ... - def do_move(self, type: DirectionType) -> None: ... + def do_move(self, type: _DirectionTypeValueType) -> None: ... def get_color(self) -> tuple[float, float, float]: ... def get_metrics(self) -> tuple[int, int]: ... def is_adjusting(self) -> bool: ... @@ -24232,7 +24625,7 @@ class HSVClass(_gi.Struct): @property def changed(self) -> Callable[[HSV], None]: ... @property - def move(self) -> Callable[[HSV, DirectionType], None]: ... + def move(self) -> Callable[[HSV, _DirectionTypeValueType], None]: ... class HSVPrivate(_gi.Struct): ... @@ -24441,7 +24834,10 @@ class HScale(Scale): """ @type_check_only class Props(Scale.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -24450,27 +24846,27 @@ class HScale(Scale): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., digits: int = ..., draw_value: bool = ..., has_origin: bool = ..., - value_pos: PositionType = ..., + value_pos: _PositionTypeValueType = ..., adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., - lower_stepper_sensitivity: SensitivityType = ..., + lower_stepper_sensitivity: _SensitivityTypeValueType = ..., restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - upper_stepper_sensitivity: SensitivityType = ..., + upper_stepper_sensitivity: _SensitivityTypeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -24494,7 +24890,7 @@ class HScale(Scale): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24707,7 +25103,10 @@ class HScrollbar(Scrollbar): """ @type_check_only class Props(Scrollbar.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -24716,23 +25115,23 @@ class HScrollbar(Scrollbar): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., - lower_stepper_sensitivity: SensitivityType = ..., + lower_stepper_sensitivity: _SensitivityTypeValueType = ..., restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - upper_stepper_sensitivity: SensitivityType = ..., + upper_stepper_sensitivity: _SensitivityTypeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -24756,7 +25155,7 @@ class HScrollbar(Scrollbar): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24943,7 +25342,10 @@ class HSeparator(Separator): """ @type_check_only class Props(Separator.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -24952,15 +25354,15 @@ class HSeparator(Separator): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -24984,7 +25386,7 @@ class HSeparator(Separator): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25203,9 +25605,18 @@ class HandleBox(Bin): class Props(Bin.Props): @property def child_detached(self) -> bool: ... - handle_position: PositionType - shadow_type: ShadowType - snap_edge: PositionType + @property + def handle_position(self) -> PositionType: ... + @handle_position.setter + def handle_position(self, value: _PositionTypeValueType) -> None: ... + @property + def shadow_type(self) -> ShadowType: ... + @shadow_type.setter + def shadow_type(self, value: _ShadowTypeValueType) -> None: ... + @property + def snap_edge(self) -> PositionType: ... + @snap_edge.setter + def snap_edge(self, value: _PositionTypeValueType) -> None: ... snap_edge_set: bool @property @@ -25217,21 +25628,21 @@ class HandleBox(Bin): def __init__( self, *, - handle_position: PositionType = ..., - shadow_type: ShadowType = ..., - snap_edge: PositionType = ..., + handle_position: _PositionTypeValueType = ..., + shadow_type: _ShadowTypeValueType = ..., + snap_edge: _PositionTypeValueType = ..., snap_edge_set: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -25255,7 +25666,7 @@ class HandleBox(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25269,9 +25680,9 @@ class HandleBox(Bin): def get_snap_edge(self) -> PositionType: ... @classmethod def new(cls) -> HandleBox: ... - def set_handle_position(self, position: PositionType) -> None: ... - def set_shadow_type(self, type: ShadowType) -> None: ... - def set_snap_edge(self, edge: PositionType) -> None: ... + def set_handle_position(self, position: _PositionTypeValueType) -> None: ... + def set_shadow_type(self, type: _ShadowTypeValueType) -> None: ... + def set_snap_edge(self, edge: _PositionTypeValueType) -> None: ... class HandleBoxClass(_gi.Struct): """ @@ -25490,7 +25901,10 @@ class HeaderBar(Container): @type_check_only class Props(Container.Props): custom_title: Widget | None - decoration_layout: str | None + @property + def decoration_layout(self) -> str: ... + @decoration_layout.setter + def decoration_layout(self, value: str | None) -> None: ... decoration_layout_set: bool has_subtitle: bool show_close_button: bool @@ -25514,16 +25928,16 @@ class HeaderBar(Container): subtitle: str | None = ..., title: str | None = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -25547,7 +25961,7 @@ class HeaderBar(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25649,19 +26063,19 @@ class HeaderBarAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -25720,15 +26134,24 @@ class IMContext(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - input_hints: InputHints - input_purpose: InputPurpose + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... @property def props(self) -> Props: ... @property def parent_instance(self) -> GObject.Object: ... def __init__( - self, *, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + self, + *, + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., ) -> None: ... def delete_surrounding(self, offset: int, n_chars: int) -> bool: ... def do_commit(self, str: str) -> None: ... @@ -25851,7 +26274,10 @@ class IMContextSimple(IMContext): @property def priv(self) -> IMContextSimplePrivate: ... def __init__( - self, *, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + self, + *, + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., ) -> None: ... def add_compose_file(self, compose_file: str) -> None: ... @classmethod @@ -25903,7 +26329,10 @@ class IMMulticontext(IMContext): @property def priv(self) -> IMMulticontextPrivate: ... def __init__( - self, *, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + self, + *, + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., ) -> None: ... def append_menuitems(self, menushell: MenuShell) -> None: ... def get_context_id(self) -> str: ... @@ -26041,7 +26470,7 @@ class IconInfo(GObject.Object): self, res: Gio.AsyncResult ) -> tuple[GdkPixbuf.Pixbuf, bool]: ... def load_symbolic_for_style( - self, style: Style, state: StateType + self, style: Style, state: _StateTypeValueType ) -> tuple[GdkPixbuf.Pixbuf, bool]: ... @classmethod def new_for_pixbuf( @@ -26074,8 +26503,8 @@ class IconSet(GObject.GBoxed): def render_icon( self, style: Style | None, - direction: TextDirection, - state: StateType, + direction: _TextDirectionValueType, + state: _StateTypeValueType, size: int, widget: Widget | None = None, detail: str | None = None, @@ -26114,14 +26543,14 @@ class IconSource(GObject.GBoxed): def get_state_wildcarded(self) -> bool: ... @classmethod def new(cls) -> IconSource: ... - def set_direction(self, direction: TextDirection) -> None: ... + def set_direction(self, direction: _TextDirectionValueType) -> None: ... def set_direction_wildcarded(self, setting: bool) -> None: ... def set_filename(self, filename: str) -> None: ... def set_icon_name(self, icon_name: str | None = None) -> None: ... def set_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ... def set_size(self, size: int) -> None: ... def set_size_wildcarded(self, setting: bool) -> None: ... - def set_state(self, state: StateType) -> None: ... + def set_state(self, state: _StateTypeValueType) -> None: ... def set_state_wildcarded(self, setting: bool) -> None: ... class IconTheme(GObject.Object): @@ -26152,10 +26581,14 @@ class IconTheme(GObject.Object): def add_resource_path(self, path: str) -> None: ... def append_search_path(self, path: str) -> None: ... def choose_icon( - self, icon_names: Sequence[str], size: int, flags: IconLookupFlags + self, icon_names: Sequence[str], size: int, flags: _IconLookupFlagsValueType ) -> IconInfo | None: ... def choose_icon_for_scale( - self, icon_names: Sequence[str], size: int, scale: int, flags: IconLookupFlags + self, + icon_names: Sequence[str], + size: int, + scale: int, + flags: _IconLookupFlagsValueType, ) -> IconInfo | None: ... def do_changed(self) -> None: ... @staticmethod @@ -26169,10 +26602,10 @@ class IconTheme(GObject.Object): def list_contexts(self) -> list[str]: ... def list_icons(self, context: str | None = None) -> list[str]: ... def load_icon( - self, icon_name: str, size: int, flags: IconLookupFlags + self, icon_name: str, size: int, flags: _IconLookupFlagsValueType ) -> GdkPixbuf.Pixbuf | None: ... def load_icon_for_scale( - self, icon_name: str, size: int, scale: int, flags: IconLookupFlags + self, icon_name: str, size: int, scale: int, flags: _IconLookupFlagsValueType ) -> GdkPixbuf.Pixbuf | None: ... # override def load_surface( @@ -26184,16 +26617,16 @@ class IconTheme(GObject.Object): flags: IconLookupFlags, ) -> cairo.ImageSurface | None: ... def lookup_by_gicon( - self, icon: Gio.Icon, size: int, flags: IconLookupFlags + self, icon: Gio.Icon, size: int, flags: _IconLookupFlagsValueType ) -> IconInfo | None: ... def lookup_by_gicon_for_scale( - self, icon: Gio.Icon, size: int, scale: int, flags: IconLookupFlags + self, icon: Gio.Icon, size: int, scale: int, flags: _IconLookupFlagsValueType ) -> IconInfo | None: ... def lookup_icon( - self, icon_name: str, size: int, flags: IconLookupFlags + self, icon_name: str, size: int, flags: _IconLookupFlagsValueType ) -> IconInfo | None: ... def lookup_icon_for_scale( - self, icon_name: str, size: int, scale: int, flags: IconLookupFlags + self, icon_name: str, size: int, scale: int, flags: _IconLookupFlagsValueType ) -> IconInfo | None: ... @classmethod def new(cls) -> IconTheme: ... @@ -26449,10 +26882,13 @@ class IconView(Container, CellLayout, Scrollable): class Props(Container.Props): activate_on_single_click: bool @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... column_spacing: int columns: int - item_orientation: Orientation + @property + def item_orientation(self) -> Orientation: ... + @item_orientation.setter + def item_orientation(self, value: _OrientationValueType) -> None: ... item_padding: int item_width: int margin: int @@ -26461,14 +26897,29 @@ class IconView(Container, CellLayout, Scrollable): pixbuf_column: int reorderable: bool row_spacing: int - selection_mode: SelectionMode + @property + def selection_mode(self) -> SelectionMode: ... + @selection_mode.setter + def selection_mode(self, value: _SelectionModeValueType) -> None: ... spacing: int text_column: int tooltip_column: int - hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy - vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -26480,10 +26931,10 @@ class IconView(Container, CellLayout, Scrollable): self, *, activate_on_single_click: bool = ..., - cell_area: CellArea = ..., + cell_area: CellArea | None = ..., column_spacing: int = ..., columns: int = ..., - item_orientation: Orientation = ..., + item_orientation: _OrientationValueType = ..., item_padding: int = ..., item_width: int = ..., margin: int = ..., @@ -26492,25 +26943,25 @@ class IconView(Container, CellLayout, Scrollable): pixbuf_column: int = ..., reorderable: bool = ..., row_spacing: int = ..., - selection_mode: SelectionMode = ..., + selection_mode: _SelectionModeValueType = ..., spacing: int = ..., text_column: int = ..., tooltip_column: int = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -26533,7 +26984,7 @@ class IconView(Container, CellLayout, Scrollable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -26545,20 +26996,20 @@ class IconView(Container, CellLayout, Scrollable): def create_drag_icon(self, path: TreePath) -> cairo.Surface: ... def do_activate_cursor_item(self) -> bool: ... def do_item_activated(self, path: TreePath) -> None: ... - def do_move_cursor(self, step: MovementStep, count: int) -> bool: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int) -> bool: ... def do_select_all(self) -> None: ... def do_select_cursor_item(self) -> None: ... def do_selection_changed(self) -> None: ... def do_toggle_cursor_item(self) -> None: ... def do_unselect_all(self) -> None: ... def enable_model_drag_dest( - self, targets: Sequence[TargetEntry], actions: _Gdk3.DragAction + self, targets: Sequence[TargetEntry], actions: _Gdk3._DragActionValueType ) -> None: ... def enable_model_drag_source( self, - start_button_mask: _Gdk3.ModifierType, + start_button_mask: _Gdk3._ModifierTypeValueType, targets: Sequence[TargetEntry], - actions: _Gdk3.DragAction, + actions: _Gdk3._DragActionValueType, ) -> None: ... def get_activate_on_single_click(self) -> bool: ... def get_cell_rect( @@ -26622,9 +27073,9 @@ class IconView(Container, CellLayout, Scrollable): self, path: TreePath, cell: CellRenderer | None, start_editing: bool ) -> None: ... def set_drag_dest_item( - self, path: TreePath | None, pos: IconViewDropPosition + self, path: TreePath | None, pos: _IconViewDropPositionValueType ) -> None: ... - def set_item_orientation(self, orientation: Orientation) -> None: ... + def set_item_orientation(self, orientation: _OrientationValueType) -> None: ... def set_item_padding(self, item_padding: int) -> None: ... def set_item_width(self, item_width: int) -> None: ... def set_margin(self, margin: int) -> None: ... @@ -26633,7 +27084,7 @@ class IconView(Container, CellLayout, Scrollable): def set_pixbuf_column(self, column: int) -> None: ... def set_reorderable(self, reorderable: bool) -> None: ... def set_row_spacing(self, row_spacing: int) -> None: ... - def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_selection_mode(self, mode: _SelectionModeValueType) -> None: ... def set_spacing(self, spacing: int) -> None: ... def set_text_column(self, column: int) -> None: ... def set_tooltip_cell( @@ -26730,19 +27181,19 @@ class IconViewAccessible(ContainerAccessible, Atk.Selection): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -26782,7 +27233,9 @@ class IconViewClass(_gi.Struct): @property def toggle_cursor_item(self) -> Callable[[IconView], None]: ... @property - def move_cursor(self) -> Callable[[IconView, MovementStep, int], bool]: ... + def move_cursor( + self, + ) -> Callable[[IconView, _MovementStepValueType, int], bool]: ... @property def activate_cursor_item(self) -> Callable[[IconView], bool]: ... @@ -27002,19 +27455,31 @@ class Image(Misc): """ @type_check_only class Props(Misc.Props): - file: str - gicon: Gio.Icon - icon_name: str - icon_set: IconSet + file: str | None + @property + def gicon(self) -> Gio.Icon: ... + @gicon.setter + def gicon(self, value: Gio.Icon | None) -> None: ... + @property + def icon_name(self) -> str: ... + @icon_name.setter + def icon_name(self, value: str | None) -> None: ... + @property + def icon_set(self) -> IconSet: ... + @icon_set.setter + def icon_set(self, value: IconSet | None) -> None: ... icon_size: int pixbuf: GdkPixbuf.Pixbuf | None - pixbuf_animation: GdkPixbuf.PixbufAnimation + pixbuf_animation: GdkPixbuf.PixbufAnimation | None pixel_size: int - resource: str - stock: str + resource: str | None + @property + def stock(self) -> str: ... + @stock.setter + def stock(self, value: str | None) -> None: ... @property def storage_type(self) -> ImageType: ... - surface: cairo.Surface + surface: cairo.Surface | None use_fallback: bool @property @@ -27026,17 +27491,17 @@ class Image(Misc): def __init__( self, *, - file: str = ..., - gicon: Gio.Icon = ..., - icon_name: str = ..., - icon_set: IconSet = ..., + file: str | None = ..., + gicon: Gio.Icon | None = ..., + icon_name: str | None = ..., + icon_set: IconSet | None = ..., icon_size: int = ..., - pixbuf: GdkPixbuf.Pixbuf = ..., - pixbuf_animation: GdkPixbuf.PixbufAnimation = ..., + pixbuf: GdkPixbuf.Pixbuf | None = ..., + pixbuf_animation: GdkPixbuf.PixbufAnimation | None = ..., pixel_size: int = ..., - resource: str = ..., - stock: str = ..., - surface: cairo.Surface = ..., + resource: str | None = ..., + stock: str | None = ..., + surface: cairo.Surface | None = ..., use_fallback: bool = ..., xalign: float = ..., xpad: int = ..., @@ -27046,10 +27511,10 @@ class Image(Misc): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -27073,7 +27538,7 @@ class Image(Misc): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -27197,19 +27662,19 @@ class ImageAccessible(WidgetAccessible, Atk.Image): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -27310,21 +27775,21 @@ class ImageCellAccessible(RendererCellAccessible, Atk.Image): def __init__( self, *, - renderer: CellRenderer = ..., + renderer: CellRenderer | None = ..., widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -27566,12 +28031,21 @@ class ImageMenuItem(MenuItem): """ @type_check_only class Props(MenuItem.Props): - accel_group: AccelGroup + @property + def accel_group(self) -> Never: ... + @accel_group.setter + def accel_group(self, value: AccelGroup) -> None: ... always_show_image: bool - image: Widget | None + @property + def image(self) -> Widget: ... + @image.setter + def image(self, value: Widget | None) -> None: ... use_stock: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -27598,16 +28072,16 @@ class ImageMenuItem(MenuItem): submenu: Menu | None = ..., use_underline: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -27631,7 +28105,7 @@ class ImageMenuItem(MenuItem): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -27870,10 +28344,16 @@ class InfoBar(Box): """ @type_check_only class Props(Box.Props): - message_type: MessageType + @property + def message_type(self) -> MessageType: ... + @message_type.setter + def message_type(self, value: _MessageTypeValueType) -> None: ... revealed: bool show_close_button: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -27884,24 +28364,24 @@ class InfoBar(Box): def __init__( self, *, - message_type: MessageType = ..., + message_type: _MessageTypeValueType = ..., revealed: bool = ..., show_close_button: bool = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -27925,7 +28405,7 @@ class InfoBar(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -27944,7 +28424,7 @@ class InfoBar(Box): def new(cls) -> InfoBar: ... def response(self, response_id: int) -> None: ... def set_default_response(self, response_id: int) -> None: ... - def set_message_type(self, message_type: MessageType) -> None: ... + def set_message_type(self, message_type: _MessageTypeValueType) -> None: ... def set_response_sensitive(self, response_id: int, setting: bool) -> None: ... def set_revealed(self, revealed: bool) -> None: ... def set_show_close_button(self, setting: bool) -> None: ... @@ -28154,10 +28634,10 @@ class Invisible(Widget): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -28181,7 +28661,7 @@ class Invisible(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -28442,15 +28922,24 @@ class Label(Misc): attributes: Pango.AttrList | None @property def cursor_position(self) -> int: ... - ellipsize: Pango.EllipsizeMode - justify: Justification + @property + def ellipsize(self) -> Pango.EllipsizeMode: ... + @ellipsize.setter + def ellipsize(self, value: Pango._EllipsizeModeValueType) -> None: ... + @property + def justify(self) -> Justification: ... + @justify.setter + def justify(self, value: _JustificationValueType) -> None: ... label: str lines: int max_width_chars: int @property def mnemonic_keyval(self) -> int: ... mnemonic_widget: Widget | None - pattern: str + @property + def pattern(self) -> Never: ... + @pattern.setter + def pattern(self, value: str) -> None: ... selectable: bool @property def selection_bound(self) -> int: ... @@ -28460,7 +28949,10 @@ class Label(Misc): use_underline: bool width_chars: int wrap: bool - wrap_mode: Pango.WrapMode + @property + def wrap_mode(self) -> Pango.WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: Pango._WrapModeValueType) -> None: ... xalign: float yalign: float @@ -28475,8 +28967,8 @@ class Label(Misc): *, angle: float = ..., attributes: Pango.AttrList | None = ..., - ellipsize: Pango.EllipsizeMode = ..., - justify: Justification = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., + justify: _JustificationValueType = ..., label: str = ..., lines: int = ..., max_width_chars: int = ..., @@ -28489,7 +28981,7 @@ class Label(Misc): use_underline: bool = ..., width_chars: int = ..., wrap: bool = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., xalign: float = ..., yalign: float = ..., xpad: int = ..., @@ -28498,10 +28990,10 @@ class Label(Misc): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -28525,7 +29017,7 @@ class Label(Misc): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -28534,7 +29026,7 @@ class Label(Misc): def do_activate_link(self, uri: str) -> bool: ... def do_copy_clipboard(self) -> None: ... def do_move_cursor( - self, step: MovementStep, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool ) -> None: ... def do_populate_popup(self, menu: Menu) -> None: ... def get_angle(self) -> float: ... @@ -28568,11 +29060,11 @@ class Label(Misc): def select_region(self, start_offset: int, end_offset: int) -> None: ... def set_angle(self, angle: float) -> None: ... def set_attributes(self, attrs: Pango.AttrList | None = None) -> None: ... - def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ... - def set_justify(self, jtype: Justification) -> None: ... + def set_ellipsize(self, mode: Pango._EllipsizeModeValueType) -> None: ... + def set_justify(self, jtype: _JustificationValueType) -> None: ... def set_label(self, str: str) -> None: ... def set_line_wrap(self, wrap: bool) -> None: ... - def set_line_wrap_mode(self, wrap_mode: Pango.WrapMode) -> None: ... + def set_line_wrap_mode(self, wrap_mode: Pango._WrapModeValueType) -> None: ... def set_lines(self, lines: int) -> None: ... def set_markup(self, str: str) -> None: ... def set_markup_with_mnemonic(self, str: str) -> None: ... @@ -28679,19 +29171,19 @@ class LabelAccessible(WidgetAccessible, Atk.Hypertext, Atk.Text): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -28719,7 +29211,9 @@ class LabelClass(_gi.Struct): @property def parent_class(self) -> MiscClass: ... @property - def move_cursor(self) -> Callable[[Label, MovementStep, int, bool], None]: ... + def move_cursor( + self, + ) -> Callable[[Label, _MovementStepValueType, int, bool], None]: ... @property def copy_clipboard(self) -> Callable[[Label], None]: ... @property @@ -28919,10 +29413,22 @@ class Layout(Container, Scrollable): class Props(Container.Props): height: int width: int - hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy - vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -28936,20 +29442,20 @@ class Layout(Container, Scrollable): height: int = ..., width: int = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -28973,7 +29479,7 @@ class Layout(Container, Scrollable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -29194,9 +29700,15 @@ class LevelBar(Widget, Orientable): inverted: bool max_value: float min_value: float - mode: LevelBarMode + @property + def mode(self) -> LevelBarMode: ... + @mode.setter + def mode(self, value: _LevelBarModeValueType) -> None: ... value: float - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -29210,17 +29722,17 @@ class LevelBar(Widget, Orientable): inverted: bool = ..., max_value: float = ..., min_value: float = ..., - mode: LevelBarMode = ..., + mode: _LevelBarModeValueType = ..., value: float = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -29244,7 +29756,7 @@ class LevelBar(Widget, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -29266,7 +29778,7 @@ class LevelBar(Widget, Orientable): def set_inverted(self, inverted: bool) -> None: ... def set_max_value(self, value: float) -> None: ... def set_min_value(self, value: float) -> None: ... - def set_mode(self, mode: LevelBarMode) -> None: ... + def set_mode(self, mode: _LevelBarModeValueType) -> None: ... def set_value(self, value: float) -> None: ... class LevelBarAccessible(WidgetAccessible, Atk.Value): @@ -29350,19 +29862,19 @@ class LevelBarAccessible(WidgetAccessible, Atk.Value): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -29618,7 +30130,10 @@ class LinkButton(Button): uri: str visited: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -29639,24 +30154,24 @@ class LinkButton(Button): use_action_appearance: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -29680,7 +30195,7 @@ class LinkButton(Button): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -29780,19 +30295,19 @@ class LinkButtonAccessible(ButtonAccessible, Atk.HyperlinkImpl): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -30022,7 +30537,10 @@ class ListBox(Container): @type_check_only class Props(Container.Props): activate_on_single_click: bool - selection_mode: SelectionMode + @property + def selection_mode(self) -> SelectionMode: ... + @selection_mode.setter + def selection_mode(self, value: _SelectionModeValueType) -> None: ... @property def props(self) -> Props: ... @@ -30032,18 +30550,18 @@ class ListBox(Container): self, *, activate_on_single_click: bool = ..., - selection_mode: SelectionMode = ..., + selection_mode: _SelectionModeValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -30067,7 +30585,7 @@ class ListBox(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -30081,7 +30599,7 @@ class ListBox(Container): *user_data: Unpack[_DataTs], ) -> None: ... def do_activate_cursor_row(self) -> None: ... - def do_move_cursor(self, step: MovementStep, count: int) -> None: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int) -> None: ... def do_row_activated(self, row: ListBoxRow) -> None: ... def do_row_selected(self, row: ListBoxRow) -> None: ... def do_select_all(self) -> None: ... @@ -30125,7 +30643,7 @@ class ListBox(Container): *user_data: Unpack[_DataTs], ) -> None: ... def set_placeholder(self, placeholder: Widget | None = None) -> None: ... - def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_selection_mode(self, mode: _SelectionModeValueType) -> None: ... def set_sort_func( self, sort_func: Callable[[ListBoxRow, ListBoxRow, Unpack[_DataTs]], int] @@ -30219,19 +30737,19 @@ class ListBoxAccessible(ContainerAccessible, Atk.Selection): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -30267,7 +30785,7 @@ class ListBoxClass(_gi.Struct): @property def toggle_cursor_row(self) -> Callable[[ListBox], None]: ... @property - def move_cursor(self) -> Callable[[ListBox, MovementStep, int], None]: ... + def move_cursor(self) -> Callable[[ListBox, _MovementStepValueType, int], None]: ... @property def selected_rows_changed(self) -> Callable[[ListBox], None]: ... @property @@ -30468,7 +30986,10 @@ class ListBoxRow(Bin, Actionable): activatable: bool selectable: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -30482,16 +31003,16 @@ class ListBoxRow(Bin, Actionable): action_name: str | None = ..., action_target: GLib.Variant = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -30515,7 +31036,7 @@ class ListBoxRow(Bin, Actionable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -30613,19 +31134,19 @@ class ListBoxRowAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -30963,14 +31484,20 @@ class LockButton(Button): """ @type_check_only class Props(Button.Props): - permission: Gio.Permission | None - text_lock: str - text_unlock: str - tooltip_lock: str - tooltip_not_authorized: str - tooltip_unlock: str + @property + def permission(self) -> Gio.Permission: ... + @permission.setter + def permission(self, value: Gio.Permission | None) -> None: ... + text_lock: str | None + text_unlock: str | None + tooltip_lock: str | None + tooltip_not_authorized: str | None + tooltip_unlock: str | None action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -30984,35 +31511,35 @@ class LockButton(Button): self, *, permission: Gio.Permission | None = ..., - text_lock: str = ..., - text_unlock: str = ..., - tooltip_lock: str = ..., - tooltip_not_authorized: str = ..., - tooltip_unlock: str = ..., + text_lock: str | None = ..., + text_unlock: str | None = ..., + tooltip_lock: str | None = ..., + tooltip_not_authorized: str | None = ..., + tooltip_unlock: str | None = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., related_action: Action = ..., use_action_appearance: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -31036,7 +31563,7 @@ class LockButton(Button): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -31131,19 +31658,19 @@ class LockButtonAccessible(ButtonAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -31415,18 +31942,33 @@ class Menu(MenuShell): """ @type_check_only class Props(MenuShell.Props): - accel_group: AccelGroup | None - accel_path: str | None + @property + def accel_group(self) -> AccelGroup: ... + @accel_group.setter + def accel_group(self, value: AccelGroup | None) -> None: ... + @property + def accel_path(self) -> str: ... + @accel_path.setter + def accel_path(self, value: str | None) -> None: ... active: int - anchor_hints: _Gdk3.AnchorHints - attach_widget: Widget - menu_type_hint: _Gdk3.WindowTypeHint + @property + def anchor_hints(self) -> _Gdk3.AnchorHints: ... + @anchor_hints.setter + def anchor_hints(self, value: _Gdk3._AnchorHintsValueType) -> None: ... + @property + def attach_widget(self) -> Widget: ... + @attach_widget.setter + def attach_widget(self, value: Widget | None) -> None: ... + @property + def menu_type_hint(self) -> _Gdk3.WindowTypeHint: ... + @menu_type_hint.setter + def menu_type_hint(self, value: _Gdk3._WindowTypeHintValueType) -> None: ... monitor: int rect_anchor_dx: int rect_anchor_dy: int reserve_toggle_size: bool tearoff_state: bool - tearoff_title: str + tearoff_title: str | None @property def props(self) -> Props: ... @@ -31440,27 +31982,27 @@ class Menu(MenuShell): accel_group: AccelGroup | None = ..., accel_path: str | None = ..., active: int = ..., - anchor_hints: _Gdk3.AnchorHints = ..., - attach_widget: Widget = ..., - menu_type_hint: _Gdk3.WindowTypeHint = ..., + anchor_hints: _Gdk3._AnchorHintsValueType = ..., + attach_widget: Widget | None = ..., + menu_type_hint: _Gdk3._WindowTypeHintValueType = ..., monitor: int = ..., rect_anchor_dx: int = ..., rect_anchor_dy: int = ..., reserve_toggle_size: bool = ..., tearoff_state: bool = ..., - tearoff_title: str = ..., + tearoff_title: str | None = ..., take_focus: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -31484,7 +32026,7 @@ class Menu(MenuShell): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -31535,15 +32077,15 @@ class Menu(MenuShell): self, rect_window: _Gdk3.Window, rect: _Gdk3.Rectangle, - rect_anchor: _Gdk3.Gravity, - menu_anchor: _Gdk3.Gravity, + rect_anchor: _Gdk3._GravityValueType, + menu_anchor: _Gdk3._GravityValueType, trigger_event: _Gdk3.Event | None = None, ) -> None: ... def popup_at_widget( self, widget: Widget, - widget_anchor: _Gdk3.Gravity, - menu_anchor: _Gdk3.Gravity, + widget_anchor: _Gdk3._GravityValueType, + menu_anchor: _Gdk3._GravityValueType, trigger_event: _Gdk3.Event | None = None, ) -> None: ... def popup_for_device( @@ -31657,19 +32199,19 @@ class MenuAccessible(MenuShellAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -31888,8 +32430,14 @@ class MenuBar(MenuShell): """ @type_check_only class Props(MenuShell.Props): - child_pack_direction: PackDirection - pack_direction: PackDirection + @property + def child_pack_direction(self) -> PackDirection: ... + @child_pack_direction.setter + def child_pack_direction(self, value: _PackDirectionValueType) -> None: ... + @property + def pack_direction(self) -> PackDirection: ... + @pack_direction.setter + def pack_direction(self, value: _PackDirectionValueType) -> None: ... @property def props(self) -> Props: ... @@ -31900,20 +32448,20 @@ class MenuBar(MenuShell): def __init__( self, *, - child_pack_direction: PackDirection = ..., - pack_direction: PackDirection = ..., + child_pack_direction: _PackDirectionValueType = ..., + pack_direction: _PackDirectionValueType = ..., take_focus: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -31937,7 +32485,7 @@ class MenuBar(MenuShell): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -31949,8 +32497,10 @@ class MenuBar(MenuShell): def new(cls) -> MenuBar: ... @classmethod def new_from_model(cls, model: Gio.MenuModel) -> MenuBar: ... - def set_child_pack_direction(self, child_pack_dir: PackDirection) -> None: ... - def set_pack_direction(self, pack_dir: PackDirection) -> None: ... + def set_child_pack_direction( + self, child_pack_dir: _PackDirectionValueType + ) -> None: ... + def set_pack_direction(self, pack_dir: _PackDirectionValueType) -> None: ... class MenuBarClass(_gi.Struct): """ @@ -32200,13 +32750,19 @@ class MenuButton(ToggleButton): @type_check_only class Props(ToggleButton.Props): align_widget: Container | None - direction: ArrowType + @property + def direction(self) -> ArrowType: ... + @direction.setter + def direction(self, value: _ArrowTypeValueType) -> None: ... menu_model: Gio.MenuModel | None popover: Popover | None popup: Menu | None use_popover: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -32220,7 +32776,7 @@ class MenuButton(ToggleButton): self, *, align_widget: Container | None = ..., - direction: ArrowType = ..., + direction: _ArrowTypeValueType = ..., menu_model: Gio.MenuModel | None = ..., popover: Popover | None = ..., popup: Menu | None = ..., @@ -32234,24 +32790,24 @@ class MenuButton(ToggleButton): inconsistent: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -32275,7 +32831,7 @@ class MenuButton(ToggleButton): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -32290,7 +32846,7 @@ class MenuButton(ToggleButton): @classmethod def new(cls) -> MenuButton: ... def set_align_widget(self, align_widget: Widget | None = None) -> None: ... - def set_direction(self, direction: ArrowType) -> None: ... + def set_direction(self, direction: _ArrowTypeValueType) -> None: ... def set_menu_model(self, menu_model: Gio.MenuModel | None = None) -> None: ... def set_popover(self, popover: Widget | None = None) -> None: ... def set_popup(self, menu: Widget | None = None) -> None: ... @@ -32383,19 +32939,19 @@ class MenuButtonAccessible(ToggleButtonAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -32645,7 +33201,10 @@ class MenuItem(Bin, Actionable, Activatable): submenu: Menu | None use_underline: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -32668,16 +33227,16 @@ class MenuItem(Bin, Actionable, Activatable): related_action: Action = ..., use_action_appearance: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -32701,7 +33260,7 @@ class MenuItem(Bin, Actionable, Activatable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -32823,19 +33382,19 @@ class MenuItemAccessible(ContainerAccessible, Atk.Action, Atk.Selection): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -33091,16 +33650,16 @@ class MenuShell(Container): *, take_focus: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -33124,7 +33683,7 @@ class MenuShell(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -33146,7 +33705,7 @@ class MenuShell(Container): def do_deactivate(self) -> None: ... def do_get_popup_delay(self) -> int: ... def do_insert(self, child: Widget, position: int) -> None: ... - def do_move_current(self, direction: MenuDirectionType) -> None: ... + def do_move_current(self, direction: _MenuDirectionTypeValueType) -> None: ... def do_move_selected(self, distance: int) -> bool: ... def do_select_item(self, menu_item: Widget) -> None: ... def do_selection_done(self) -> None: ... @@ -33243,19 +33802,19 @@ class MenuShellAccessible(ContainerAccessible, Atk.Selection): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -33289,7 +33848,9 @@ class MenuShellClass(_gi.Struct): @property def selection_done(self) -> Callable[[MenuShell], None]: ... @property - def move_current(self) -> Callable[[MenuShell, MenuDirectionType], None]: ... + def move_current( + self, + ) -> Callable[[MenuShell, _MenuDirectionTypeValueType], None]: ... @property def activate_current(self) -> Callable[[MenuShell, bool], None]: ... @property @@ -33525,7 +34086,10 @@ class MenuToolButton(ToolButton): class Props(ToolButton.Props): menu: Menu action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -33553,16 +34117,16 @@ class MenuToolButton(ToolButton): visible_horizontal: bool = ..., visible_vertical: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -33586,7 +34150,7 @@ class MenuToolButton(ToolButton): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -33903,10 +34467,13 @@ class MessageDialog(Dialog): image: Widget @property def message_area(self) -> Widget: ... - message_type: MessageType - secondary_text: str + @property + def message_type(self) -> MessageType: ... + @message_type.setter + def message_type(self, value: _MessageTypeValueType) -> None: ... + secondary_text: str | None secondary_use_markup: bool - text: str + text: str | None use_markup: bool @property @@ -33918,12 +34485,12 @@ class MessageDialog(Dialog): def __init__( self, *, - buttons: ButtonsType = ..., + buttons: _ButtonsTypeValueType = ..., image: Widget = ..., - message_type: MessageType = ..., - secondary_text: str = ..., + message_type: _MessageTypeValueType = ..., + secondary_text: str | None = ..., secondary_use_markup: bool = ..., - text: str = ..., + text: str | None = ..., use_markup: bool = ..., use_header_bar: int = ..., accept_focus: bool = ..., @@ -33936,7 +34503,7 @@ class MessageDialog(Dialog): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -33951,21 +34518,21 @@ class MessageDialog(Dialog): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -33989,7 +34556,7 @@ class MessageDialog(Dialog): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -34215,10 +34782,10 @@ class Misc(Widget): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -34242,7 +34809,7 @@ class Misc(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -34497,15 +35064,21 @@ class ModelButton(Button): class Props(Button.Props): active: bool centered: bool - icon: Gio.Icon + icon: Gio.Icon | None iconic: bool inverted: bool - menu_name: str - role: ButtonRole - text: str + menu_name: str | None + @property + def role(self) -> ButtonRole: ... + @role.setter + def role(self, value: _ButtonRoleValueType) -> None: ... + text: str | None use_markup: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -34516,12 +35089,12 @@ class ModelButton(Button): *, active: bool = ..., centered: bool = ..., - icon: Gio.Icon = ..., + icon: Gio.Icon | None = ..., iconic: bool = ..., inverted: bool = ..., - menu_name: str = ..., - role: ButtonRole = ..., - text: str = ..., + menu_name: str | None = ..., + role: _ButtonRoleValueType = ..., + text: str | None = ..., use_markup: bool = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., @@ -34529,24 +35102,24 @@ class ModelButton(Button): use_action_appearance: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -34570,7 +35143,7 @@ class ModelButton(Button): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -34624,7 +35197,10 @@ class MountOperation(Gio.MountOperation): class Props(Gio.MountOperation.Props): @property def is_showing(self) -> bool: ... - parent: Window | None + @property + def parent(self) -> Window: ... + @parent.setter + def parent(self, value: Window | None) -> None: ... screen: _Gdk3.Screen @property @@ -34644,7 +35220,7 @@ class MountOperation(Gio.MountOperation): is_tcrypt_hidden_volume: bool = ..., is_tcrypt_system_volume: bool = ..., password: str | None = ..., - password_save: Gio.PasswordSave = ..., + password_save: Gio._PasswordSaveValueType = ..., pim: int = ..., username: str | None = ..., ) -> None: ... @@ -34698,7 +35274,10 @@ class NativeDialog(GObject.Object): @type_check_only class Props(GObject.Object.Props): modal: bool - title: str | None + @property + def title(self) -> str | None: ... + @title.setter + def title(self, value: str) -> None: ... transient_for: Window | None visible: bool @@ -34961,7 +35540,10 @@ class Notebook(Container): scrollable: bool show_border: bool show_tabs: bool - tab_pos: PositionType + @property + def tab_pos(self) -> PositionType: ... + @tab_pos.setter + def tab_pos(self, value: _PositionTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -34978,18 +35560,18 @@ class Notebook(Container): scrollable: bool = ..., show_border: bool = ..., show_tabs: bool = ..., - tab_pos: PositionType = ..., + tab_pos: _PositionTypeValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -35013,7 +35595,7 @@ class Notebook(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -35028,18 +35610,20 @@ class Notebook(Container): ) -> int: ... def detach_tab(self, child: Widget) -> None: ... def do_change_current_page(self, offset: int) -> bool: ... - def do_focus_tab(self, type: NotebookTab) -> bool: ... + def do_focus_tab(self, type: _NotebookTabValueType) -> bool: ... def do_insert_page( self, child: Widget, tab_label: Widget, menu_label: Widget, position: int ) -> int: ... - def do_move_focus_out(self, direction: DirectionType) -> None: ... + def do_move_focus_out(self, direction: _DirectionTypeValueType) -> None: ... def do_page_added(self, child: Widget, page_num: int) -> None: ... def do_page_removed(self, child: Widget, page_num: int) -> None: ... def do_page_reordered(self, child: Widget, page_num: int) -> None: ... - def do_reorder_tab(self, direction: DirectionType, move_to_last: bool) -> bool: ... + def do_reorder_tab( + self, direction: _DirectionTypeValueType, move_to_last: bool + ) -> bool: ... def do_select_page(self, move_focus: bool) -> bool: ... def do_switch_page(self, page: Widget, page_num: int) -> None: ... - def get_action_widget(self, pack_type: PackType) -> Widget | None: ... + def get_action_widget(self, pack_type: _PackTypeValueType) -> Widget | None: ... def get_current_page(self) -> int: ... def get_group_name(self) -> str | None: ... def get_menu_label(self, child: Widget) -> Widget | None: ... @@ -35082,7 +35666,9 @@ class Notebook(Container): def prev_page(self) -> None: ... def remove_page(self, page_num: int) -> None: ... def reorder_child(self, child: Widget, position: int) -> None: ... - def set_action_widget(self, widget: Widget, pack_type: PackType) -> None: ... + def set_action_widget( + self, widget: Widget, pack_type: _PackTypeValueType + ) -> None: ... def set_current_page(self, page_num: int) -> None: ... def set_group_name(self, group_name: str | None = None) -> None: ... def set_menu_label( @@ -35095,7 +35681,7 @@ class Notebook(Container): def set_tab_detachable(self, child: Widget, detachable: bool) -> None: ... def set_tab_label(self, child: Widget, tab_label: Widget | None = None) -> None: ... def set_tab_label_text(self, child: Widget, tab_text: str) -> None: ... - def set_tab_pos(self, pos: PositionType) -> None: ... + def set_tab_pos(self, pos: _PositionTypeValueType) -> None: ... def set_tab_reorderable(self, child: Widget, reorderable: bool) -> None: ... class NotebookAccessible(ContainerAccessible, Atk.Selection): @@ -35182,19 +35768,19 @@ class NotebookAccessible(ContainerAccessible, Atk.Selection): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -35226,13 +35812,15 @@ class NotebookClass(_gi.Struct): @property def select_page(self) -> Callable[[Notebook, bool], bool]: ... @property - def focus_tab(self) -> Callable[[Notebook, NotebookTab], bool]: ... + def focus_tab(self) -> Callable[[Notebook, _NotebookTabValueType], bool]: ... @property def change_current_page(self) -> Callable[[Notebook, int], bool]: ... @property - def move_focus_out(self) -> Callable[[Notebook, DirectionType], None]: ... + def move_focus_out(self) -> Callable[[Notebook, _DirectionTypeValueType], None]: ... @property - def reorder_tab(self) -> Callable[[Notebook, DirectionType, bool], bool]: ... + def reorder_tab( + self, + ) -> Callable[[Notebook, _DirectionTypeValueType, bool], bool]: ... @property def insert_page(self) -> Callable[[Notebook, Widget, Widget, Widget, int], int]: ... @property @@ -35315,19 +35903,19 @@ class NotebookPageAccessible(Atk.Object, Atk.Component): def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... def invalidate(self) -> None: ... @@ -35380,11 +35968,14 @@ class NumerableIcon(Gio.EmblemedIcon): """ @type_check_only class Props(Gio.EmblemedIcon.Props): - background_icon: Gio.Icon + background_icon: Gio.Icon | None background_icon_name: str | None count: int label: str | None - style_context: StyleContext | None + @property + def style_context(self) -> StyleContext | None: ... + @style_context.setter + def style_context(self, value: StyleContext) -> None: ... @property def props(self) -> Props: ... @@ -35395,12 +35986,12 @@ class NumerableIcon(Gio.EmblemedIcon): def __init__( self, *, - background_icon: Gio.Icon = ..., + background_icon: Gio.Icon | None = ..., background_icon_name: str | None = ..., count: int = ..., label: str | None = ..., style_context: StyleContext = ..., - gicon: Gio.Icon = ..., + gicon: Gio.Icon | None = ..., ) -> None: ... def get_background_gicon(self) -> Gio.Icon | None: ... def get_background_icon_name(self) -> str | None: ... @@ -35703,7 +36294,7 @@ class OffscreenWindow(Window): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -35718,21 +36309,21 @@ class OffscreenWindow(Window): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -35756,7 +36347,7 @@ class OffscreenWindow(Window): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -35786,7 +36377,7 @@ class Orientable(GObject.GInterface, Protocol): notify (GParam) """ def get_orientation(self) -> Orientation: ... - def set_orientation(self, orientation: Orientation) -> None: ... + def set_orientation(self, orientation: _OrientationValueType) -> None: ... class OrientableIface(_gi.Struct): """ @@ -35989,16 +36580,16 @@ class Overlay(Bin): self, *, border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -36022,7 +36613,7 @@ class Overlay(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -36099,26 +36690,31 @@ class PadController(EventController): @type_check_only class Props(EventController.Props): @property - def action_group(self) -> Gio.ActionGroup: ... + def action_group(self) -> Gio.ActionGroup | None: ... @property - def pad(self) -> _Gdk3.Device: ... + def pad(self) -> _Gdk3.Device | None: ... @property def props(self) -> Props: ... def __init__( self, *, - action_group: Gio.ActionGroup = ..., - pad: _Gdk3.Device = ..., - propagation_phase: PropagationPhase = ..., - widget: Widget = ..., + action_group: Gio.ActionGroup | None = ..., + pad: _Gdk3.Device | None = ..., + propagation_phase: _PropagationPhaseValueType = ..., + widget: Widget | None = ..., ) -> None: ... @classmethod def new( cls, window: Window, group: Gio.ActionGroup, pad: _Gdk3.Device | None = None ) -> PadController: ... def set_action( - self, type: PadActionType, index: int, mode: int, label: str, action_name: str + self, + type: _PadActionTypeValueType, + index: int, + mode: int, + label: str, + action_name: str, ) -> None: ... def set_action_entries(self, entries: Sequence[PadActionEntry]) -> None: ... @@ -36154,16 +36750,16 @@ class PageSetup(GObject.Object): notify (GParam) """ def copy(self) -> PageSetup: ... - def get_bottom_margin(self, unit: Unit) -> float: ... - def get_left_margin(self, unit: Unit) -> float: ... + def get_bottom_margin(self, unit: _UnitValueType) -> float: ... + def get_left_margin(self, unit: _UnitValueType) -> float: ... def get_orientation(self) -> PageOrientation: ... - def get_page_height(self, unit: Unit) -> float: ... - def get_page_width(self, unit: Unit) -> float: ... - def get_paper_height(self, unit: Unit) -> float: ... + def get_page_height(self, unit: _UnitValueType) -> float: ... + def get_page_width(self, unit: _UnitValueType) -> float: ... + def get_paper_height(self, unit: _UnitValueType) -> float: ... def get_paper_size(self) -> PaperSize: ... - def get_paper_width(self, unit: Unit) -> float: ... - def get_right_margin(self, unit: Unit) -> float: ... - def get_top_margin(self, unit: Unit) -> float: ... + def get_paper_width(self, unit: _UnitValueType) -> float: ... + def get_right_margin(self, unit: _UnitValueType) -> float: ... + def get_top_margin(self, unit: _UnitValueType) -> float: ... def load_file(self, file_name: str) -> bool: ... def load_key_file( self, key_file: GLib.KeyFile, group_name: str | None = None @@ -36178,13 +36774,13 @@ class PageSetup(GObject.Object): def new_from_key_file( cls, key_file: GLib.KeyFile, group_name: str | None = None ) -> PageSetup: ... - def set_bottom_margin(self, margin: float, unit: Unit) -> None: ... - def set_left_margin(self, margin: float, unit: Unit) -> None: ... - def set_orientation(self, orientation: PageOrientation) -> None: ... + def set_bottom_margin(self, margin: float, unit: _UnitValueType) -> None: ... + def set_left_margin(self, margin: float, unit: _UnitValueType) -> None: ... + def set_orientation(self, orientation: _PageOrientationValueType) -> None: ... def set_paper_size(self, size: PaperSize) -> None: ... def set_paper_size_and_default_margins(self, size: PaperSize) -> None: ... - def set_right_margin(self, margin: float, unit: Unit) -> None: ... - def set_top_margin(self, margin: float, unit: Unit) -> None: ... + def set_right_margin(self, margin: float, unit: _UnitValueType) -> None: ... + def set_top_margin(self, margin: float, unit: _UnitValueType) -> None: ... def to_file(self, file_name: str) -> bool: ... def to_gvariant(self) -> GLib.Variant: ... def to_key_file( @@ -36399,7 +36995,10 @@ class Paned(Container, Orientable): position: int position_set: bool wide_handle: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -36413,18 +37012,18 @@ class Paned(Container, Orientable): position: int = ..., position_set: bool = ..., wide_handle: bool = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -36448,7 +37047,7 @@ class Paned(Container, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -36460,7 +37059,7 @@ class Paned(Container, Orientable): def do_cancel_position(self) -> bool: ... def do_cycle_child_focus(self, reverse: bool) -> bool: ... def do_cycle_handle_focus(self, reverse: bool) -> bool: ... - def do_move_handle(self, scroll: ScrollType) -> bool: ... + def do_move_handle(self, scroll: _ScrollTypeValueType) -> bool: ... def do_toggle_handle_focus(self) -> bool: ... def get_child1(self) -> Widget | None: ... def get_child2(self) -> Widget | None: ... @@ -36468,7 +37067,7 @@ class Paned(Container, Orientable): def get_position(self) -> int: ... def get_wide_handle(self) -> bool: ... @classmethod - def new(cls, orientation: Orientation) -> Paned: ... + def new(cls, orientation: _OrientationValueType) -> Paned: ... # override def pack1( self, child: Widget, resize: bool = False, shrink: bool = True @@ -36564,19 +37163,19 @@ class PanedAccessible(ContainerAccessible, Atk.Value): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -36608,7 +37207,7 @@ class PanedClass(_gi.Struct): @property def toggle_handle_focus(self) -> Callable[[Paned], bool]: ... @property - def move_handle(self) -> Callable[[Paned, ScrollType], bool]: ... + def move_handle(self) -> Callable[[Paned, _ScrollTypeValueType], bool]: ... @property def cycle_handle_focus(self) -> Callable[[Paned, bool], bool]: ... @property @@ -36636,17 +37235,17 @@ class PaperSize(GObject.GBoxed): def free(self) -> None: ... @staticmethod def get_default() -> str: ... - def get_default_bottom_margin(self, unit: Unit) -> float: ... - def get_default_left_margin(self, unit: Unit) -> float: ... - def get_default_right_margin(self, unit: Unit) -> float: ... - def get_default_top_margin(self, unit: Unit) -> float: ... + def get_default_bottom_margin(self, unit: _UnitValueType) -> float: ... + def get_default_left_margin(self, unit: _UnitValueType) -> float: ... + def get_default_right_margin(self, unit: _UnitValueType) -> float: ... + def get_default_top_margin(self, unit: _UnitValueType) -> float: ... def get_display_name(self) -> str: ... - def get_height(self, unit: Unit) -> float: ... + def get_height(self, unit: _UnitValueType) -> float: ... def get_name(self) -> str: ... @staticmethod def get_paper_sizes(include_custom: bool) -> list[PaperSize]: ... def get_ppd_name(self) -> str: ... - def get_width(self, unit: Unit) -> float: ... + def get_width(self, unit: _UnitValueType) -> float: ... def is_custom(self) -> bool: ... def is_equal(self, size2: PaperSize) -> bool: ... def is_ipp(self) -> bool: ... @@ -36654,7 +37253,12 @@ class PaperSize(GObject.GBoxed): def new(cls, name: str | None = None) -> PaperSize: ... @classmethod def new_custom( - cls, name: str, display_name: str, width: float, height: float, unit: Unit + cls, + name: str, + display_name: str, + width: float, + height: float, + unit: _UnitValueType, ) -> PaperSize: ... @classmethod def new_from_gvariant(cls, variant: GLib.Variant) -> PaperSize: ... @@ -36668,7 +37272,7 @@ class PaperSize(GObject.GBoxed): def new_from_ppd( cls, ppd_name: str, ppd_display_name: str, width: float, height: float ) -> PaperSize: ... - def set_size(self, width: float, height: float, unit: Unit) -> None: ... + def set_size(self, width: float, height: float, unit: _UnitValueType) -> None: ... def to_gvariant(self) -> GLib.Variant: ... def to_key_file(self, key_file: GLib.KeyFile, group_name: str) -> None: ... @@ -36932,7 +37536,10 @@ class PlacesSidebar(ScrolledWindow): class Props(ScrolledWindow.Props): local_only: bool location: Gio.File | None - open_flags: PlacesOpenFlags + @property + def open_flags(self) -> PlacesOpenFlags: ... + @open_flags.setter + def open_flags(self, value: _PlacesOpenFlagsValueType) -> None: ... populate_all: bool show_connect_to_server: bool show_desktop: bool @@ -36949,7 +37556,7 @@ class PlacesSidebar(ScrolledWindow): *, local_only: bool = ..., location: Gio.File | None = ..., - open_flags: PlacesOpenFlags = ..., + open_flags: _PlacesOpenFlagsValueType = ..., populate_all: bool = ..., show_connect_to_server: bool = ..., show_desktop: bool = ..., @@ -36959,7 +37566,7 @@ class PlacesSidebar(ScrolledWindow): show_starred_location: bool = ..., show_trash: bool = ..., hadjustment: Adjustment | None = ..., - hscrollbar_policy: PolicyType = ..., + hscrollbar_policy: _PolicyTypeValueType = ..., kinetic_scrolling: bool = ..., max_content_height: int = ..., max_content_width: int = ..., @@ -36968,22 +37575,22 @@ class PlacesSidebar(ScrolledWindow): overlay_scrolling: bool = ..., propagate_natural_height: bool = ..., propagate_natural_width: bool = ..., - shadow_type: ShadowType = ..., + shadow_type: _ShadowTypeValueType = ..., vadjustment: Adjustment | None = ..., - vscrollbar_policy: PolicyType = ..., - window_placement: CornerType = ..., + vscrollbar_policy: _PolicyTypeValueType = ..., + window_placement: _CornerTypeValueType = ..., window_placement_set: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -37007,7 +37614,7 @@ class PlacesSidebar(ScrolledWindow): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -37034,7 +37641,7 @@ class PlacesSidebar(ScrolledWindow): ) -> None: ... def set_local_only(self, local_only: bool) -> None: ... def set_location(self, location: Gio.File | None = None) -> None: ... - def set_open_flags(self, flags: PlacesOpenFlags) -> None: ... + def set_open_flags(self, flags: _PlacesOpenFlagsValueType) -> None: ... def set_show_connect_to_server(self, show_connect_to_server: bool) -> None: ... def set_show_desktop(self, show_desktop: bool) -> None: ... def set_show_enter_location(self, show_enter_location: bool) -> None: ... @@ -37335,7 +37942,7 @@ class Plug(Window): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -37350,21 +37957,21 @@ class Plug(Window): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -37388,7 +37995,7 @@ class Plug(Window): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -37511,19 +38118,19 @@ class PlugAccessible(WindowAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... def get_id(self) -> str: ... @@ -37755,11 +38362,20 @@ class Popover(Bin): """ @type_check_only class Props(Bin.Props): - constrain_to: PopoverConstraint + @property + def constrain_to(self) -> PopoverConstraint: ... + @constrain_to.setter + def constrain_to(self, value: _PopoverConstraintValueType) -> None: ... modal: bool pointing_to: _Gdk3.Rectangle - position: PositionType - relative_to: Widget | None + @property + def position(self) -> PositionType: ... + @position.setter + def position(self, value: _PositionTypeValueType) -> None: ... + @property + def relative_to(self) -> Widget: ... + @relative_to.setter + def relative_to(self, value: Widget | None) -> None: ... transitions_enabled: bool @property @@ -37771,23 +38387,23 @@ class Popover(Bin): def __init__( self, *, - constrain_to: PopoverConstraint = ..., + constrain_to: _PopoverConstraintValueType = ..., modal: bool = ..., pointing_to: _Gdk3.Rectangle = ..., - position: PositionType = ..., + position: _PositionTypeValueType = ..., relative_to: Widget | None = ..., transitions_enabled: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -37811,7 +38427,7 @@ class Popover(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -37836,11 +38452,11 @@ class Popover(Bin): ) -> Popover: ... def popdown(self) -> None: ... def popup(self) -> None: ... - def set_constrain_to(self, constraint: PopoverConstraint) -> None: ... + def set_constrain_to(self, constraint: _PopoverConstraintValueType) -> None: ... def set_default_widget(self, widget: Widget | None = None) -> None: ... def set_modal(self, modal: bool) -> None: ... def set_pointing_to(self, rect: _Gdk3.Rectangle) -> None: ... - def set_position(self, position: PositionType) -> None: ... + def set_position(self, position: _PositionTypeValueType) -> None: ... def set_relative_to(self, relative_to: Widget | None = None) -> None: ... def set_transitions_enabled(self, transitions_enabled: bool) -> None: ... @@ -37923,19 +38539,19 @@ class PopoverAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -38167,31 +38783,31 @@ class PopoverMenu(Popover): """ @type_check_only class Props(Popover.Props): - visible_submenu: str + visible_submenu: str | None @property def props(self) -> Props: ... def __init__( self, *, - visible_submenu: str = ..., - constrain_to: PopoverConstraint = ..., + visible_submenu: str | None = ..., + constrain_to: _PopoverConstraintValueType = ..., modal: bool = ..., pointing_to: _Gdk3.Rectangle = ..., - position: PositionType = ..., + position: _PositionTypeValueType = ..., relative_to: Widget | None = ..., transitions_enabled: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -38215,7 +38831,7 @@ class PopoverMenu(Popover): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -38341,15 +38957,27 @@ class PrintOperation(GObject.Object, PrintOperationPreview): allow_async: bool current_page: int custom_tab_label: str | None - default_page_setup: PageSetup | None + @property + def default_page_setup(self) -> PageSetup: ... + @default_page_setup.setter + def default_page_setup(self, value: PageSetup | None) -> None: ... embed_page_setup: bool - export_filename: str + @property + def export_filename(self) -> str | None: ... + @export_filename.setter + def export_filename(self, value: str) -> None: ... has_selection: bool - job_name: str + @property + def job_name(self) -> str | None: ... + @job_name.setter + def job_name(self, value: str) -> None: ... n_pages: int @property def n_pages_to_print(self) -> int: ... - print_settings: PrintSettings | None + @property + def print_settings(self) -> PrintSettings: ... + @print_settings.setter + def print_settings(self, value: PrintSettings | None) -> None: ... show_progress: bool @property def status(self) -> PrintStatus: ... @@ -38357,7 +38985,10 @@ class PrintOperation(GObject.Object, PrintOperationPreview): def status_string(self) -> str: ... support_selection: bool track_print_status: bool - unit: Unit + @property + def unit(self) -> Unit: ... + @unit.setter + def unit(self, value: _UnitValueType) -> None: ... use_full_page: bool @property @@ -38382,13 +39013,13 @@ class PrintOperation(GObject.Object, PrintOperationPreview): show_progress: bool = ..., support_selection: bool = ..., track_print_status: bool = ..., - unit: Unit = ..., + unit: _UnitValueType = ..., use_full_page: bool = ..., ) -> None: ... def cancel(self) -> None: ... def do_begin_print(self, context: PrintContext) -> None: ... def do_custom_widget_apply(self, widget: Widget) -> None: ... - def do_done(self, result: PrintOperationResult) -> None: ... + def do_done(self, result: _PrintOperationResultValueType) -> None: ... def do_draw_page(self, context: PrintContext, page_nr: int) -> None: ... def do_end_print(self, context: PrintContext) -> None: ... def do_paginate(self, context: PrintContext) -> bool: ... @@ -38416,7 +39047,7 @@ class PrintOperation(GObject.Object, PrintOperationPreview): @classmethod def new(cls) -> PrintOperation: ... def run( - self, action: PrintOperationAction, parent: Window | None = None + self, action: _PrintOperationActionValueType, parent: Window | None = None ) -> PrintOperationResult: ... def set_allow_async(self, allow_async: bool) -> None: ... def set_current_page(self, current_page: int) -> None: ... @@ -38436,7 +39067,7 @@ class PrintOperation(GObject.Object, PrintOperationPreview): def set_show_progress(self, show_progress: bool) -> None: ... def set_support_selection(self, support_selection: bool) -> None: ... def set_track_print_status(self, track_status: bool) -> None: ... - def set_unit(self, unit: Unit) -> None: ... + def set_unit(self, unit: _UnitValueType) -> None: ... def set_use_full_page(self, full_page: bool) -> None: ... class PrintOperationClass(_gi.Struct): @@ -38450,7 +39081,9 @@ class PrintOperationClass(_gi.Struct): @property def parent_class(self) -> GObject.ObjectClass: ... @property - def done(self) -> Callable[[PrintOperation, PrintOperationResult], None]: ... + def done( + self, + ) -> Callable[[PrintOperation, _PrintOperationResultValueType], None]: ... @property def begin_print(self) -> Callable[[PrintOperation, PrintContext], None]: ... @property @@ -38550,7 +39183,7 @@ class PrintSettings(GObject.Object): def get_finishings(self) -> str: ... def get_int(self, key: str) -> int: ... def get_int_with_default(self, key: str, def_: int) -> int: ... - def get_length(self, key: str, unit: Unit) -> float: ... + def get_length(self, key: str, unit: _UnitValueType) -> float: ... def get_media_type(self) -> str: ... def get_n_copies(self) -> int: ... def get_number_up(self) -> int: ... @@ -38559,9 +39192,9 @@ class PrintSettings(GObject.Object): def get_output_bin(self) -> str: ... def get_page_ranges(self) -> list[PageRange]: ... def get_page_set(self) -> PageSet: ... - def get_paper_height(self, unit: Unit) -> float: ... + def get_paper_height(self, unit: _UnitValueType) -> float: ... def get_paper_size(self) -> PaperSize: ... - def get_paper_width(self, unit: Unit) -> float: ... + def get_paper_width(self, unit: _UnitValueType) -> float: ... def get_print_pages(self) -> PrintPages: ... def get_printer(self) -> str: ... def get_printer_lpi(self) -> float: ... @@ -38593,25 +39226,27 @@ class PrintSettings(GObject.Object): def set_default_source(self, default_source: str) -> None: ... def set_dither(self, dither: str) -> None: ... def set_double(self, key: str, value: float) -> None: ... - def set_duplex(self, duplex: PrintDuplex) -> None: ... + def set_duplex(self, duplex: _PrintDuplexValueType) -> None: ... def set_finishings(self, finishings: str) -> None: ... def set_int(self, key: str, value: int) -> None: ... - def set_length(self, key: str, value: float, unit: Unit) -> None: ... + def set_length(self, key: str, value: float, unit: _UnitValueType) -> None: ... def set_media_type(self, media_type: str) -> None: ... def set_n_copies(self, num_copies: int) -> None: ... def set_number_up(self, number_up: int) -> None: ... - def set_number_up_layout(self, number_up_layout: NumberUpLayout) -> None: ... - def set_orientation(self, orientation: PageOrientation) -> None: ... + def set_number_up_layout( + self, number_up_layout: _NumberUpLayoutValueType + ) -> None: ... + def set_orientation(self, orientation: _PageOrientationValueType) -> None: ... def set_output_bin(self, output_bin: str) -> None: ... def set_page_ranges(self, page_ranges: Sequence[PageRange]) -> None: ... - def set_page_set(self, page_set: PageSet) -> None: ... - def set_paper_height(self, height: float, unit: Unit) -> None: ... + def set_page_set(self, page_set: _PageSetValueType) -> None: ... + def set_paper_height(self, height: float, unit: _UnitValueType) -> None: ... def set_paper_size(self, paper_size: PaperSize) -> None: ... - def set_paper_width(self, width: float, unit: Unit) -> None: ... - def set_print_pages(self, pages: PrintPages) -> None: ... + def set_paper_width(self, width: float, unit: _UnitValueType) -> None: ... + def set_print_pages(self, pages: _PrintPagesValueType) -> None: ... def set_printer(self, printer: str) -> None: ... def set_printer_lpi(self, lpi: float) -> None: ... - def set_quality(self, quality: PrintQuality) -> None: ... + def set_quality(self, quality: _PrintQualityValueType) -> None: ... def set_resolution(self, resolution: int) -> None: ... def set_resolution_xy(self, resolution_x: int, resolution_y: int) -> None: ... def set_reverse(self, reverse: bool) -> None: ... @@ -38805,13 +39440,19 @@ class ProgressBar(Widget, Orientable): """ @type_check_only class Props(Widget.Props): - ellipsize: Pango.EllipsizeMode + @property + def ellipsize(self) -> Pango.EllipsizeMode: ... + @ellipsize.setter + def ellipsize(self, value: Pango._EllipsizeModeValueType) -> None: ... fraction: float inverted: bool pulse_step: float show_text: bool text: str | None - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -38822,21 +39463,21 @@ class ProgressBar(Widget, Orientable): def __init__( self, *, - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., fraction: float = ..., inverted: bool = ..., pulse_step: float = ..., show_text: bool = ..., text: str | None = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -38860,7 +39501,7 @@ class ProgressBar(Widget, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -38875,7 +39516,7 @@ class ProgressBar(Widget, Orientable): @classmethod def new(cls) -> ProgressBar: ... def pulse(self) -> None: ... - def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ... + def set_ellipsize(self, mode: Pango._EllipsizeModeValueType) -> None: ... def set_fraction(self, fraction: float) -> None: ... def set_inverted(self, inverted: bool) -> None: ... def set_pulse_step(self, fraction: float) -> None: ... @@ -38963,19 +39604,19 @@ class ProgressBarAccessible(WidgetAccessible, Atk.Value): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -39080,7 +39721,10 @@ class RadioAction(ToggleAction): @type_check_only class Props(ToggleAction.Props): current_value: int - group: RadioAction | None + @property + def group(self) -> Never: ... + @group.setter + def group(self, value: RadioAction | None) -> None: ... value: int @property @@ -39097,14 +39741,14 @@ class RadioAction(ToggleAction): value: int = ..., active: bool = ..., draw_as_radio: bool = ..., - action_group: ActionGroup = ..., + action_group: ActionGroup | None = ..., always_show_image: bool = ..., gicon: Gio.Icon = ..., hide_if_empty: bool = ..., icon_name: str = ..., is_important: bool = ..., label: str = ..., - name: str = ..., + name: str | None = ..., sensitive: bool = ..., short_label: str = ..., stock_id: str = ..., @@ -39393,9 +40037,15 @@ class RadioButton(CheckButton): """ @type_check_only class Props(CheckButton.Props): - group: RadioButton | None + @property + def group(self) -> Never: ... + @group.setter + def group(self, value: RadioButton | None) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -39418,24 +40068,24 @@ class RadioButton(CheckButton): inconsistent: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -39459,7 +40109,7 @@ class RadioButton(CheckButton): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -39579,19 +40229,19 @@ class RadioButtonAccessible(ToggleButtonAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -39847,9 +40497,15 @@ class RadioMenuItem(CheckMenuItem): """ @type_check_only class Props(CheckMenuItem.Props): - group: RadioMenuItem | None + @property + def group(self) -> Never: ... + @group.setter + def group(self, value: RadioMenuItem | None) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -39876,16 +40532,16 @@ class RadioMenuItem(CheckMenuItem): submenu: Menu | None = ..., use_underline: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -39909,7 +40565,7 @@ class RadioMenuItem(CheckMenuItem): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -40036,19 +40692,19 @@ class RadioMenuItemAccessible(CheckMenuItemAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -40304,9 +40960,15 @@ class RadioToolButton(ToggleToolButton): """ @type_check_only class Props(ToggleToolButton.Props): - group: RadioToolButton | None + @property + def group(self) -> Never: ... + @group.setter + def group(self, value: RadioToolButton | None) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -40333,16 +40995,16 @@ class RadioToolButton(ToggleToolButton): visible_horizontal: bool = ..., visible_vertical: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -40366,7 +41028,7 @@ class RadioToolButton(ToggleToolButton): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -40593,12 +41255,25 @@ class Range(Widget, Orientable): adjustment: Adjustment fill_level: float inverted: bool - lower_stepper_sensitivity: SensitivityType + @property + def lower_stepper_sensitivity(self) -> SensitivityType: ... + @lower_stepper_sensitivity.setter + def lower_stepper_sensitivity( + self, value: _SensitivityTypeValueType + ) -> None: ... restrict_to_fill_level: bool round_digits: int show_fill_level: bool - upper_stepper_sensitivity: SensitivityType - orientation: Orientation + @property + def upper_stepper_sensitivity(self) -> SensitivityType: ... + @upper_stepper_sensitivity.setter + def upper_stepper_sensitivity( + self, value: _SensitivityTypeValueType + ) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -40612,20 +41287,20 @@ class Range(Widget, Orientable): adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., - lower_stepper_sensitivity: SensitivityType = ..., + lower_stepper_sensitivity: _SensitivityTypeValueType = ..., restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - upper_stepper_sensitivity: SensitivityType = ..., - orientation: Orientation = ..., + upper_stepper_sensitivity: _SensitivityTypeValueType = ..., + orientation: _OrientationValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -40649,19 +41324,21 @@ class Range(Widget, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... def do_adjust_bounds(self, new_value: float) -> None: ... - def do_change_value(self, scroll: ScrollType, new_value: float) -> bool: ... + def do_change_value( + self, scroll: _ScrollTypeValueType, new_value: float + ) -> bool: ... def do_get_range_border(self, border_: Border) -> None: ... def do_get_range_size_request( - self, orientation: Orientation, minimum: int, natural: int + self, orientation: _OrientationValueType, minimum: int, natural: int ) -> None: ... - def do_move_slider(self, scroll: ScrollType) -> None: ... + def do_move_slider(self, scroll: _ScrollTypeValueType) -> None: ... def do_value_changed(self) -> None: ... def get_adjustment(self) -> Adjustment: ... def get_fill_level(self) -> float: ... @@ -40682,14 +41359,18 @@ class Range(Widget, Orientable): def set_flippable(self, flippable: bool) -> None: ... def set_increments(self, step: float, page: float) -> None: ... def set_inverted(self, setting: bool) -> None: ... - def set_lower_stepper_sensitivity(self, sensitivity: SensitivityType) -> None: ... + def set_lower_stepper_sensitivity( + self, sensitivity: _SensitivityTypeValueType + ) -> None: ... def set_min_slider_size(self, min_size: int) -> None: ... def set_range(self, min: float, max: float) -> None: ... def set_restrict_to_fill_level(self, restrict_to_fill_level: bool) -> None: ... def set_round_digits(self, round_digits: int) -> None: ... def set_show_fill_level(self, show_fill_level: bool) -> None: ... def set_slider_size_fixed(self, size_fixed: bool) -> None: ... - def set_upper_stepper_sensitivity(self, sensitivity: SensitivityType) -> None: ... + def set_upper_stepper_sensitivity( + self, sensitivity: _SensitivityTypeValueType + ) -> None: ... def set_value(self, value: float) -> None: ... class RangeAccessible(WidgetAccessible, Atk.Value): @@ -40773,19 +41454,19 @@ class RangeAccessible(WidgetAccessible, Atk.Value): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -40821,15 +41502,15 @@ class RangeClass(_gi.Struct): @property def adjust_bounds(self) -> Callable[[Range, float], None]: ... @property - def move_slider(self) -> Callable[[Range, ScrollType], None]: ... + def move_slider(self) -> Callable[[Range, _ScrollTypeValueType], None]: ... @property def get_range_border(self) -> Callable[[Range, Border], None]: ... @property - def change_value(self) -> Callable[[Range, ScrollType, float], bool]: ... + def change_value(self) -> Callable[[Range, _ScrollTypeValueType, float], bool]: ... @property def get_range_size_request( self, - ) -> Callable[[Range, Orientation, int, int], None]: ... + ) -> Callable[[Range, _OrientationValueType, int, int], None]: ... class RangePrivate(_gi.Struct): ... class RcContext(_gi.Struct): ... @@ -41000,7 +41681,10 @@ class RecentAction(Action, RecentChooser): @type_check_only class Props(Action.Props): show_numbers: bool - filter: RecentFilter | None + @property + def filter(self) -> RecentFilter: ... + @filter.setter + def filter(self, value: RecentFilter | None) -> None: ... limit: int local_only: bool select_multiple: bool @@ -41008,7 +41692,10 @@ class RecentAction(Action, RecentChooser): show_not_found: bool show_private: bool show_tips: bool - sort_type: RecentSortType + @property + def sort_type(self) -> RecentSortType: ... + @sort_type.setter + def sort_type(self, value: _RecentSortTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -41023,21 +41710,21 @@ class RecentAction(Action, RecentChooser): filter: RecentFilter | None = ..., limit: int = ..., local_only: bool = ..., - recent_manager: RecentManager = ..., + recent_manager: RecentManager | None = ..., select_multiple: bool = ..., show_icons: bool = ..., show_not_found: bool = ..., show_private: bool = ..., show_tips: bool = ..., - sort_type: RecentSortType = ..., - action_group: ActionGroup = ..., + sort_type: _RecentSortTypeValueType = ..., + action_group: ActionGroup | None = ..., always_show_image: bool = ..., gicon: Gio.Icon = ..., hide_if_empty: bool = ..., icon_name: str = ..., is_important: bool = ..., label: str = ..., - name: str = ..., + name: str | None = ..., sensitive: bool = ..., short_label: str = ..., stock_id: str = ..., @@ -41119,7 +41806,7 @@ class RecentChooser(GObject.GInterface, Protocol): sort_func: Callable[[RecentInfo, RecentInfo, Unpack[_DataTs]], int], *sort_data: Unpack[_DataTs], ) -> None: ... - def set_sort_type(self, sort_type: RecentSortType) -> None: ... + def set_sort_type(self, sort_type: _RecentSortTypeValueType) -> None: ... def unselect_all(self) -> None: ... def unselect_uri(self, uri: str) -> None: ... @@ -41390,7 +42077,10 @@ class RecentChooserDialog(Dialog, RecentChooser): """ @type_check_only class Props(Dialog.Props): - filter: RecentFilter | None + @property + def filter(self) -> RecentFilter: ... + @filter.setter + def filter(self, value: RecentFilter | None) -> None: ... limit: int local_only: bool select_multiple: bool @@ -41398,7 +42088,10 @@ class RecentChooserDialog(Dialog, RecentChooser): show_not_found: bool show_private: bool show_tips: bool - sort_type: RecentSortType + @property + def sort_type(self) -> RecentSortType: ... + @sort_type.setter + def sort_type(self, value: _RecentSortTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -41412,13 +42105,13 @@ class RecentChooserDialog(Dialog, RecentChooser): filter: RecentFilter | None = ..., limit: int = ..., local_only: bool = ..., - recent_manager: RecentManager = ..., + recent_manager: RecentManager | None = ..., select_multiple: bool = ..., show_icons: bool = ..., show_not_found: bool = ..., show_private: bool = ..., show_tips: bool = ..., - sort_type: RecentSortType = ..., + sort_type: _RecentSortTypeValueType = ..., use_header_bar: int = ..., accept_focus: bool = ..., application: Application | None = ..., @@ -41430,7 +42123,7 @@ class RecentChooserDialog(Dialog, RecentChooser): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -41445,21 +42138,21 @@ class RecentChooserDialog(Dialog, RecentChooser): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -41483,7 +42176,7 @@ class RecentChooserDialog(Dialog, RecentChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -41789,7 +42482,10 @@ class RecentChooserMenu(Menu, Activatable, RecentChooser): show_numbers: bool related_action: Action use_action_appearance: bool - filter: RecentFilter | None + @property + def filter(self) -> RecentFilter: ... + @filter.setter + def filter(self, value: RecentFilter | None) -> None: ... limit: int local_only: bool select_multiple: bool @@ -41797,7 +42493,10 @@ class RecentChooserMenu(Menu, Activatable, RecentChooser): show_not_found: bool show_private: bool show_tips: bool - sort_type: RecentSortType + @property + def sort_type(self) -> RecentSortType: ... + @sort_type.setter + def sort_type(self, value: _RecentSortTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -41814,37 +42513,37 @@ class RecentChooserMenu(Menu, Activatable, RecentChooser): filter: RecentFilter | None = ..., limit: int = ..., local_only: bool = ..., - recent_manager: RecentManager = ..., + recent_manager: RecentManager | None = ..., select_multiple: bool = ..., show_icons: bool = ..., show_not_found: bool = ..., show_private: bool = ..., show_tips: bool = ..., - sort_type: RecentSortType = ..., + sort_type: _RecentSortTypeValueType = ..., accel_group: AccelGroup | None = ..., accel_path: str | None = ..., active: int = ..., - anchor_hints: _Gdk3.AnchorHints = ..., - attach_widget: Widget = ..., - menu_type_hint: _Gdk3.WindowTypeHint = ..., + anchor_hints: _Gdk3._AnchorHintsValueType = ..., + attach_widget: Widget | None = ..., + menu_type_hint: _Gdk3._WindowTypeHintValueType = ..., monitor: int = ..., rect_anchor_dx: int = ..., rect_anchor_dy: int = ..., reserve_toggle_size: bool = ..., tearoff_state: bool = ..., - tearoff_title: str = ..., + tearoff_title: str | None = ..., take_focus: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -41868,7 +42567,7 @@ class RecentChooserMenu(Menu, Activatable, RecentChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -42096,8 +42795,14 @@ class RecentChooserWidget(Box, RecentChooser): """ @type_check_only class Props(Box.Props): - orientation: Orientation - filter: RecentFilter | None + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... + @property + def filter(self) -> RecentFilter: ... + @filter.setter + def filter(self, value: RecentFilter | None) -> None: ... limit: int local_only: bool select_multiple: bool @@ -42105,7 +42810,10 @@ class RecentChooserWidget(Box, RecentChooser): show_not_found: bool show_private: bool show_tips: bool - sort_type: RecentSortType + @property + def sort_type(self) -> RecentSortType: ... + @sort_type.setter + def sort_type(self, value: _RecentSortTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -42116,31 +42824,31 @@ class RecentChooserWidget(Box, RecentChooser): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., filter: RecentFilter | None = ..., limit: int = ..., local_only: bool = ..., - recent_manager: RecentManager = ..., + recent_manager: RecentManager | None = ..., select_multiple: bool = ..., show_icons: bool = ..., show_not_found: bool = ..., show_private: bool = ..., show_tips: bool = ..., - sort_type: RecentSortType = ..., - baseline_position: BaselinePosition = ..., + sort_type: _RecentSortTypeValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -42164,7 +42872,7 @@ class RecentChooserWidget(Box, RecentChooser): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -42223,7 +42931,7 @@ class RecentFilter(GObject.InitiallyUnowned, Buildable): def add_application(self, application: str) -> None: ... def add_custom( self, - needed: RecentFilterFlags, + needed: _RecentFilterFlagsValueType, func: Callable[[RecentFilterInfo, Unpack[_DataTs]], bool], *data: Unpack[_DataTs], ) -> None: ... @@ -42310,7 +43018,7 @@ class RecentManager(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def filename(self) -> str: ... + def filename(self) -> str | None: ... @property def size(self) -> int: ... @@ -42320,7 +43028,7 @@ class RecentManager(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> RecentManagerPrivate: ... - def __init__(self, *, filename: str = ...) -> None: ... + def __init__(self, *, filename: str | None = ...) -> None: ... def add_full(self, uri: str, recent_data: RecentData) -> bool: ... def add_item(self, uri: str) -> bool: ... def do_changed(self) -> None: ... @@ -42428,7 +43136,7 @@ class RendererCellAccessible(CellAccessible): @type_check_only class Props(CellAccessible.Props): @property - def renderer(self) -> CellRenderer: ... + def renderer(self) -> CellRenderer | None: ... @property def props(self) -> Props: ... @@ -42439,21 +43147,21 @@ class RendererCellAccessible(CellAccessible): def __init__( self, *, - renderer: CellRenderer = ..., + renderer: CellRenderer | None = ..., widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @classmethod @@ -42698,7 +43406,10 @@ class Revealer(Bin): def child_revealed(self) -> bool: ... reveal_child: bool transition_duration: int - transition_type: RevealerTransitionType + @property + def transition_type(self) -> RevealerTransitionType: ... + @transition_type.setter + def transition_type(self, value: _RevealerTransitionTypeValueType) -> None: ... @property def props(self) -> Props: ... @@ -42709,18 +43420,18 @@ class Revealer(Bin): *, reveal_child: bool = ..., transition_duration: int = ..., - transition_type: RevealerTransitionType = ..., + transition_type: _RevealerTransitionTypeValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -42744,7 +43455,7 @@ class Revealer(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -42758,7 +43469,9 @@ class Revealer(Bin): def new(cls) -> Revealer: ... def set_reveal_child(self, reveal_child: bool) -> None: ... def set_transition_duration(self, duration: int) -> None: ... - def set_transition_type(self, transition: RevealerTransitionType) -> None: ... + def set_transition_type( + self, transition: _RevealerTransitionTypeValueType + ) -> None: ... class RevealerClass(_gi.Struct): """ @@ -42979,8 +43692,14 @@ class Scale(Range): digits: int draw_value: bool has_origin: bool - value_pos: PositionType - orientation: Orientation + @property + def value_pos(self) -> PositionType: ... + @value_pos.setter + def value_pos(self, value: _PositionTypeValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -42994,24 +43713,24 @@ class Scale(Range): digits: int = ..., draw_value: bool = ..., has_origin: bool = ..., - value_pos: PositionType = ..., - orientation: Orientation = ..., + value_pos: _PositionTypeValueType = ..., + orientation: _OrientationValueType = ..., adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., - lower_stepper_sensitivity: SensitivityType = ..., + lower_stepper_sensitivity: _SensitivityTypeValueType = ..., restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - upper_stepper_sensitivity: SensitivityType = ..., + upper_stepper_sensitivity: _SensitivityTypeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -43035,14 +43754,14 @@ class Scale(Range): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... def add_mark( - self, value: float, position: PositionType, markup: str | None = None + self, value: float, position: _PositionTypeValueType, markup: str | None = None ) -> None: ... def clear_marks(self) -> None: ... def do_draw_value(self) -> None: ... @@ -43056,16 +43775,16 @@ class Scale(Range): def get_value_pos(self) -> PositionType: ... @classmethod def new( - cls, orientation: Orientation, adjustment: Adjustment | None = None + cls, orientation: _OrientationValueType, adjustment: Adjustment | None = None ) -> Scale: ... @classmethod def new_with_range( - cls, orientation: Orientation, min: float, max: float, step: float + cls, orientation: _OrientationValueType, min: float, max: float, step: float ) -> Scale: ... def set_digits(self, digits: int) -> None: ... def set_draw_value(self, draw_value: bool) -> None: ... def set_has_origin(self, has_origin: bool) -> None: ... - def set_value_pos(self, pos: PositionType) -> None: ... + def set_value_pos(self, pos: _PositionTypeValueType) -> None: ... class ScaleAccessible(RangeAccessible): """ @@ -43154,19 +43873,19 @@ class ScaleAccessible(RangeAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -43408,14 +44127,26 @@ class ScaleButton(Button, Orientable): @type_check_only class Props(Button.Props): adjustment: Adjustment - icons: list[str] - size: IconSize + @property + def icons(self) -> list[str]: ... + @icons.setter + def icons(self, value: Sequence[str]) -> None: ... + @property + def size(self) -> IconSize: ... + @size.setter + def size(self, value: _IconSizeValueType) -> None: ... value: float action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -43428,33 +44159,33 @@ class ScaleButton(Button, Orientable): *, adjustment: Adjustment = ..., icons: Sequence[str] = ..., - size: IconSize = ..., + size: _IconSizeValueType = ..., value: float = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., related_action: Action = ..., use_action_appearance: bool = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -43478,7 +44209,7 @@ class ScaleButton(Button, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -43590,19 +44321,19 @@ class ScaleButtonAccessible(ButtonAccessible, Atk.Value): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -43666,9 +44397,9 @@ class Scrollable(GObject.GInterface, Protocol): def get_vadjustment(self) -> Adjustment: ... def get_vscroll_policy(self) -> ScrollablePolicy: ... def set_hadjustment(self, hadjustment: Adjustment | None = None) -> None: ... - def set_hscroll_policy(self, policy: ScrollablePolicy) -> None: ... + def set_hscroll_policy(self, policy: _ScrollablePolicyValueType) -> None: ... def set_vadjustment(self, vadjustment: Adjustment | None = None) -> None: ... - def set_vscroll_policy(self, policy: ScrollablePolicy) -> None: ... + def set_vscroll_policy(self, policy: _ScrollablePolicyValueType) -> None: ... class ScrollableInterface(_gi.Struct): """ @@ -43874,7 +44605,10 @@ class Scrollbar(Range): """ @type_check_only class Props(Range.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -43883,23 +44617,23 @@ class Scrollbar(Range): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., - lower_stepper_sensitivity: SensitivityType = ..., + lower_stepper_sensitivity: _SensitivityTypeValueType = ..., restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - upper_stepper_sensitivity: SensitivityType = ..., + upper_stepper_sensitivity: _SensitivityTypeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -43923,7 +44657,7 @@ class Scrollbar(Range): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -43931,7 +44665,7 @@ class Scrollbar(Range): ) -> None: ... @classmethod def new( - cls, orientation: Orientation, adjustment: Adjustment | None = None + cls, orientation: _OrientationValueType, adjustment: Adjustment | None = None ) -> Scrollbar: ... class ScrollbarClass(_gi.Struct): @@ -44164,8 +44898,14 @@ class ScrolledWindow(Bin): """ @type_check_only class Props(Bin.Props): - hadjustment: Adjustment | None - hscrollbar_policy: PolicyType + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... + @property + def hscrollbar_policy(self) -> PolicyType: ... + @hscrollbar_policy.setter + def hscrollbar_policy(self, value: _PolicyTypeValueType) -> None: ... kinetic_scrolling: bool max_content_height: int max_content_width: int @@ -44174,10 +44914,22 @@ class ScrolledWindow(Bin): overlay_scrolling: bool propagate_natural_height: bool propagate_natural_width: bool - shadow_type: ShadowType - vadjustment: Adjustment | None - vscrollbar_policy: PolicyType - window_placement: CornerType + @property + def shadow_type(self) -> ShadowType: ... + @shadow_type.setter + def shadow_type(self, value: _ShadowTypeValueType) -> None: ... + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscrollbar_policy(self) -> PolicyType: ... + @vscrollbar_policy.setter + def vscrollbar_policy(self, value: _PolicyTypeValueType) -> None: ... + @property + def window_placement(self) -> CornerType: ... + @window_placement.setter + def window_placement(self, value: _CornerTypeValueType) -> None: ... window_placement_set: bool @property @@ -44190,7 +44942,7 @@ class ScrolledWindow(Bin): self, *, hadjustment: Adjustment | None = ..., - hscrollbar_policy: PolicyType = ..., + hscrollbar_policy: _PolicyTypeValueType = ..., kinetic_scrolling: bool = ..., max_content_height: int = ..., max_content_width: int = ..., @@ -44199,22 +44951,22 @@ class ScrolledWindow(Bin): overlay_scrolling: bool = ..., propagate_natural_height: bool = ..., propagate_natural_width: bool = ..., - shadow_type: ShadowType = ..., + shadow_type: _ShadowTypeValueType = ..., vadjustment: Adjustment | None = ..., - vscrollbar_policy: PolicyType = ..., - window_placement: CornerType = ..., + vscrollbar_policy: _PolicyTypeValueType = ..., + window_placement: _CornerTypeValueType = ..., window_placement_set: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -44238,15 +44990,17 @@ class ScrolledWindow(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... def add_with_viewport(self, child: Widget) -> None: ... - def do_move_focus_out(self, direction: DirectionType) -> None: ... - def do_scroll_child(self, scroll: ScrollType, horizontal: bool) -> bool: ... + def do_move_focus_out(self, direction: _DirectionTypeValueType) -> None: ... + def do_scroll_child( + self, scroll: _ScrollTypeValueType, horizontal: bool + ) -> bool: ... def get_capture_button_press(self) -> bool: ... def get_hadjustment(self) -> Adjustment: ... def get_hscrollbar(self) -> Widget: ... @@ -44277,13 +45031,15 @@ class ScrolledWindow(Bin): def set_min_content_height(self, height: int) -> None: ... def set_min_content_width(self, width: int) -> None: ... def set_overlay_scrolling(self, overlay_scrolling: bool) -> None: ... - def set_placement(self, window_placement: CornerType) -> None: ... + def set_placement(self, window_placement: _CornerTypeValueType) -> None: ... def set_policy( - self, hscrollbar_policy: PolicyType, vscrollbar_policy: PolicyType + self, + hscrollbar_policy: _PolicyTypeValueType, + vscrollbar_policy: _PolicyTypeValueType, ) -> None: ... def set_propagate_natural_height(self, propagate: bool) -> None: ... def set_propagate_natural_width(self, propagate: bool) -> None: ... - def set_shadow_type(self, type: ShadowType) -> None: ... + def set_shadow_type(self, type: _ShadowTypeValueType) -> None: ... def set_vadjustment(self, vadjustment: Adjustment | None = None) -> None: ... def unset_placement(self) -> None: ... @@ -44368,19 +45124,19 @@ class ScrolledWindowAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -44410,9 +45166,13 @@ class ScrolledWindowClass(_gi.Struct): @property def scrollbar_spacing(self) -> int: ... @property - def scroll_child(self) -> Callable[[ScrolledWindow, ScrollType, bool], bool]: ... + def scroll_child( + self, + ) -> Callable[[ScrolledWindow, _ScrollTypeValueType, bool], bool]: ... @property - def move_focus_out(self) -> Callable[[ScrolledWindow, DirectionType], None]: ... + def move_focus_out( + self, + ) -> Callable[[ScrolledWindow, _DirectionTypeValueType], None]: ... class ScrolledWindowPrivate(_gi.Struct): ... @@ -44616,16 +45376,16 @@ class SearchBar(Bin): search_mode_enabled: bool = ..., show_close_button: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -44649,7 +45409,7 @@ class SearchBar(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -45005,10 +45765,10 @@ class SearchEntry(Entry): editable: bool = ..., enable_emoji_completion: bool = ..., has_frame: bool = ..., - im_module: str = ..., + im_module: str | None = ..., inner_border: Border | None = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., invisible_char: int = ..., invisible_char_set: bool = ..., max_length: int = ..., @@ -45017,24 +45777,24 @@ class SearchEntry(Entry): placeholder_text: str | None = ..., populate_all: bool = ..., primary_icon_activatable: bool = ..., - primary_icon_gicon: Gio.Icon = ..., - primary_icon_name: str = ..., - primary_icon_pixbuf: GdkPixbuf.Pixbuf = ..., + primary_icon_gicon: Gio.Icon | None = ..., + primary_icon_name: str | None = ..., + primary_icon_pixbuf: GdkPixbuf.Pixbuf | None = ..., primary_icon_sensitive: bool = ..., - primary_icon_stock: str = ..., - primary_icon_tooltip_markup: str = ..., - primary_icon_tooltip_text: str = ..., + primary_icon_stock: str | None = ..., + primary_icon_tooltip_markup: str | None = ..., + primary_icon_tooltip_text: str | None = ..., progress_fraction: float = ..., progress_pulse_step: float = ..., secondary_icon_activatable: bool = ..., - secondary_icon_gicon: Gio.Icon = ..., - secondary_icon_name: str = ..., - secondary_icon_pixbuf: GdkPixbuf.Pixbuf = ..., + secondary_icon_gicon: Gio.Icon | None = ..., + secondary_icon_name: str | None = ..., + secondary_icon_pixbuf: GdkPixbuf.Pixbuf | None = ..., secondary_icon_sensitive: bool = ..., - secondary_icon_stock: str = ..., - secondary_icon_tooltip_markup: str = ..., - secondary_icon_tooltip_text: str = ..., - shadow_type: ShadowType = ..., + secondary_icon_stock: str | None = ..., + secondary_icon_tooltip_markup: str | None = ..., + secondary_icon_tooltip_text: str | None = ..., + shadow_type: _ShadowTypeValueType = ..., show_emoji_icon: bool = ..., tabs: Pango.TabArray = ..., text: str = ..., @@ -45046,10 +45806,10 @@ class SearchEntry(Entry): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -45073,7 +45833,7 @@ class SearchEntry(Entry): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -45296,7 +46056,10 @@ class Separator(Widget, Orientable): """ @type_check_only class Props(Widget.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -45307,15 +46070,15 @@ class Separator(Widget, Orientable): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -45339,14 +46102,14 @@ class Separator(Widget, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... @classmethod - def new(cls, orientation: Orientation) -> Separator: ... + def new(cls, orientation: _OrientationValueType) -> Separator: ... class SeparatorClass(_gi.Struct): """ @@ -45561,7 +46324,10 @@ class SeparatorMenuItem(MenuItem): @type_check_only class Props(MenuItem.Props): action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -45582,16 +46348,16 @@ class SeparatorMenuItem(MenuItem): submenu: Menu | None = ..., use_underline: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -45615,7 +46381,7 @@ class SeparatorMenuItem(MenuItem): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -45854,16 +46620,16 @@ class SeparatorToolItem(ToolItem): visible_horizontal: bool = ..., visible_vertical: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -45887,7 +46653,7 @@ class SeparatorToolItem(ToolItem): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -46102,22 +46868,22 @@ class Settings(GObject.Object, StyleProvider): @type_check_only class Props(GObject.Object.Props): @property - def color_hash(self) -> dict[str, _Gdk3.Color]: ... + def color_hash(self) -> dict[str, _Gdk3.Color] | None: ... gtk_alternative_button_order: bool gtk_alternative_sort_arrows: bool gtk_application_prefer_dark_theme: bool gtk_auto_mnemonics: bool gtk_button_images: bool gtk_can_change_accels: bool - gtk_color_palette: str - gtk_color_scheme: str + gtk_color_palette: str | None + gtk_color_scheme: str | None gtk_cursor_aspect_ratio: float gtk_cursor_blink: bool gtk_cursor_blink_time: int gtk_cursor_blink_timeout: int - gtk_cursor_theme_name: str + gtk_cursor_theme_name: str | None gtk_cursor_theme_size: int - gtk_decoration_layout: str + gtk_decoration_layout: str | None gtk_dialogs_use_header: bool gtk_dnd_drag_threshold: int gtk_double_click_distance: int @@ -46132,61 +46898,81 @@ class Settings(GObject.Object, StyleProvider): gtk_entry_password_hint_timeout: int gtk_entry_select_on_focus: bool gtk_error_bell: bool - gtk_fallback_icon_theme: str - gtk_file_chooser_backend: str - gtk_font_name: str + gtk_fallback_icon_theme: str | None + gtk_file_chooser_backend: str | None + gtk_font_name: str | None gtk_fontconfig_timestamp: int - gtk_icon_sizes: str - gtk_icon_theme_name: str - gtk_im_module: str - gtk_im_preedit_style: IMPreeditStyle - gtk_im_status_style: IMStatusStyle - gtk_key_theme_name: str + gtk_icon_sizes: str | None + gtk_icon_theme_name: str | None + gtk_im_module: str | None + @property + def gtk_im_preedit_style(self) -> IMPreeditStyle: ... + @gtk_im_preedit_style.setter + def gtk_im_preedit_style(self, value: _IMPreeditStyleValueType) -> None: ... + @property + def gtk_im_status_style(self) -> IMStatusStyle: ... + @gtk_im_status_style.setter + def gtk_im_status_style(self, value: _IMStatusStyleValueType) -> None: ... + gtk_key_theme_name: str | None gtk_keynav_cursor_only: bool gtk_keynav_use_caret: bool gtk_keynav_wrap_around: bool gtk_label_select_on_focus: bool gtk_long_press_time: int - gtk_menu_bar_accel: str + gtk_menu_bar_accel: str | None gtk_menu_bar_popup_delay: int gtk_menu_images: bool gtk_menu_popdown_delay: int gtk_menu_popup_delay: int - gtk_modules: str + gtk_modules: str | None gtk_overlay_scrolling: bool gtk_primary_button_warps_slider: bool - gtk_print_backends: str - gtk_print_preview_command: str + gtk_print_backends: str | None + gtk_print_preview_command: str | None gtk_recent_files_enabled: bool gtk_recent_files_limit: int gtk_recent_files_max_age: int - gtk_scrolled_window_placement: CornerType + @property + def gtk_scrolled_window_placement(self) -> CornerType: ... + @gtk_scrolled_window_placement.setter + def gtk_scrolled_window_placement( + self, value: _CornerTypeValueType + ) -> None: ... gtk_shell_shows_app_menu: bool gtk_shell_shows_desktop: bool gtk_shell_shows_menubar: bool gtk_show_input_method_menu: bool gtk_show_unicode_menu: bool - gtk_sound_theme_name: str + gtk_sound_theme_name: str | None gtk_split_cursor: bool - gtk_theme_name: str + gtk_theme_name: str | None gtk_timeout_expand: int gtk_timeout_initial: int gtk_timeout_repeat: int - gtk_titlebar_double_click: str - gtk_titlebar_middle_click: str - gtk_titlebar_right_click: str - gtk_toolbar_icon_size: IconSize - gtk_toolbar_style: ToolbarStyle + gtk_titlebar_double_click: str | None + gtk_titlebar_middle_click: str | None + gtk_titlebar_right_click: str | None + @property + def gtk_toolbar_icon_size(self) -> IconSize: ... + @gtk_toolbar_icon_size.setter + def gtk_toolbar_icon_size(self, value: _IconSizeValueType) -> None: ... + @property + def gtk_toolbar_style(self) -> ToolbarStyle: ... + @gtk_toolbar_style.setter + def gtk_toolbar_style(self, value: _ToolbarStyleValueType) -> None: ... gtk_tooltip_browse_mode_timeout: int gtk_tooltip_browse_timeout: int gtk_tooltip_timeout: int gtk_touchscreen_mode: bool - gtk_visible_focus: PolicyType + @property + def gtk_visible_focus(self) -> PolicyType: ... + @gtk_visible_focus.setter + def gtk_visible_focus(self, value: _PolicyTypeValueType) -> None: ... gtk_xft_antialias: int gtk_xft_dpi: int gtk_xft_hinting: int - gtk_xft_hintstyle: str - gtk_xft_rgba: str + gtk_xft_hintstyle: str | None + gtk_xft_rgba: str | None @property def props(self) -> Props: ... @@ -46203,15 +46989,15 @@ class Settings(GObject.Object, StyleProvider): gtk_auto_mnemonics: bool = ..., gtk_button_images: bool = ..., gtk_can_change_accels: bool = ..., - gtk_color_palette: str = ..., - gtk_color_scheme: str = ..., + gtk_color_palette: str | None = ..., + gtk_color_scheme: str | None = ..., gtk_cursor_aspect_ratio: float = ..., gtk_cursor_blink: bool = ..., gtk_cursor_blink_time: int = ..., gtk_cursor_blink_timeout: int = ..., - gtk_cursor_theme_name: str = ..., + gtk_cursor_theme_name: str | None = ..., gtk_cursor_theme_size: int = ..., - gtk_decoration_layout: str = ..., + gtk_decoration_layout: str | None = ..., gtk_dialogs_use_header: bool = ..., gtk_dnd_drag_threshold: int = ..., gtk_double_click_distance: int = ..., @@ -46226,61 +47012,61 @@ class Settings(GObject.Object, StyleProvider): gtk_entry_password_hint_timeout: int = ..., gtk_entry_select_on_focus: bool = ..., gtk_error_bell: bool = ..., - gtk_fallback_icon_theme: str = ..., - gtk_file_chooser_backend: str = ..., - gtk_font_name: str = ..., + gtk_fallback_icon_theme: str | None = ..., + gtk_file_chooser_backend: str | None = ..., + gtk_font_name: str | None = ..., gtk_fontconfig_timestamp: int = ..., - gtk_icon_sizes: str = ..., - gtk_icon_theme_name: str = ..., - gtk_im_module: str = ..., - gtk_im_preedit_style: IMPreeditStyle = ..., - gtk_im_status_style: IMStatusStyle = ..., - gtk_key_theme_name: str = ..., + gtk_icon_sizes: str | None = ..., + gtk_icon_theme_name: str | None = ..., + gtk_im_module: str | None = ..., + gtk_im_preedit_style: _IMPreeditStyleValueType = ..., + gtk_im_status_style: _IMStatusStyleValueType = ..., + gtk_key_theme_name: str | None = ..., gtk_keynav_cursor_only: bool = ..., gtk_keynav_use_caret: bool = ..., gtk_keynav_wrap_around: bool = ..., gtk_label_select_on_focus: bool = ..., gtk_long_press_time: int = ..., - gtk_menu_bar_accel: str = ..., + gtk_menu_bar_accel: str | None = ..., gtk_menu_bar_popup_delay: int = ..., gtk_menu_images: bool = ..., gtk_menu_popdown_delay: int = ..., gtk_menu_popup_delay: int = ..., - gtk_modules: str = ..., + gtk_modules: str | None = ..., gtk_overlay_scrolling: bool = ..., gtk_primary_button_warps_slider: bool = ..., - gtk_print_backends: str = ..., - gtk_print_preview_command: str = ..., + gtk_print_backends: str | None = ..., + gtk_print_preview_command: str | None = ..., gtk_recent_files_enabled: bool = ..., gtk_recent_files_limit: int = ..., gtk_recent_files_max_age: int = ..., - gtk_scrolled_window_placement: CornerType = ..., + gtk_scrolled_window_placement: _CornerTypeValueType = ..., gtk_shell_shows_app_menu: bool = ..., gtk_shell_shows_desktop: bool = ..., gtk_shell_shows_menubar: bool = ..., gtk_show_input_method_menu: bool = ..., gtk_show_unicode_menu: bool = ..., - gtk_sound_theme_name: str = ..., + gtk_sound_theme_name: str | None = ..., gtk_split_cursor: bool = ..., - gtk_theme_name: str = ..., + gtk_theme_name: str | None = ..., gtk_timeout_expand: int = ..., gtk_timeout_initial: int = ..., gtk_timeout_repeat: int = ..., - gtk_titlebar_double_click: str = ..., - gtk_titlebar_middle_click: str = ..., - gtk_titlebar_right_click: str = ..., - gtk_toolbar_icon_size: IconSize = ..., - gtk_toolbar_style: ToolbarStyle = ..., + gtk_titlebar_double_click: str | None = ..., + gtk_titlebar_middle_click: str | None = ..., + gtk_titlebar_right_click: str | None = ..., + gtk_toolbar_icon_size: _IconSizeValueType = ..., + gtk_toolbar_style: _ToolbarStyleValueType = ..., gtk_tooltip_browse_mode_timeout: int = ..., gtk_tooltip_browse_timeout: int = ..., gtk_tooltip_timeout: int = ..., gtk_touchscreen_mode: bool = ..., - gtk_visible_focus: PolicyType = ..., + gtk_visible_focus: _PolicyTypeValueType = ..., gtk_xft_antialias: int = ..., gtk_xft_dpi: int = ..., gtk_xft_hinting: int = ..., - gtk_xft_hintstyle: str = ..., - gtk_xft_rgba: str = ..., + gtk_xft_hintstyle: str | None = ..., + gtk_xft_rgba: str | None = ..., ) -> None: ... @staticmethod def get_default() -> Settings | None: ... @@ -46519,9 +47305,18 @@ class ShortcutLabel(Box): """ @type_check_only class Props(Box.Props): - accelerator: str | None - disabled_text: str | None - orientation: Orientation + @property + def accelerator(self) -> str | None: ... + @accelerator.setter + def accelerator(self, value: str) -> None: ... + @property + def disabled_text(self) -> str | None: ... + @disabled_text.setter + def disabled_text(self, value: str) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -46530,21 +47325,21 @@ class ShortcutLabel(Box): *, accelerator: str = ..., disabled_text: str = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -46568,7 +47363,7 @@ class ShortcutLabel(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -46783,38 +47578,47 @@ class ShortcutsGroup(Box): """ @type_check_only class Props(Box.Props): - accel_size_group: SizeGroup + @property + def accel_size_group(self) -> Never: ... + @accel_size_group.setter + def accel_size_group(self, value: SizeGroup | None) -> None: ... @property def height(self) -> int: ... - title: str - title_size_group: SizeGroup - view: str - orientation: Orientation + title: str | None + @property + def title_size_group(self) -> Never: ... + @title_size_group.setter + def title_size_group(self, value: SizeGroup | None) -> None: ... + view: str | None + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accel_size_group: SizeGroup = ..., - title: str = ..., - title_size_group: SizeGroup = ..., - view: str = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + accel_size_group: SizeGroup | None = ..., + title: str | None = ..., + title_size_group: SizeGroup | None = ..., + view: str | None = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -46838,7 +47642,7 @@ class ShortcutsGroup(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -47049,10 +47853,13 @@ class ShortcutsSection(Box): @type_check_only class Props(Box.Props): max_height: int - section_name: str - title: str - view_name: str - orientation: Orientation + section_name: str | None + title: str | None + view_name: str | None + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -47060,24 +47867,24 @@ class ShortcutsSection(Box): self, *, max_height: int = ..., - section_name: str = ..., - title: str = ..., - view_name: str = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + section_name: str | None = ..., + title: str | None = ..., + view_name: str | None = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -47101,7 +47908,7 @@ class ShortcutsSection(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -47322,50 +48129,65 @@ class ShortcutsShortcut(Box): """ @type_check_only class Props(Box.Props): - accel_size_group: SizeGroup - accelerator: str - action_name: str - direction: TextDirection - icon: Gio.Icon + @property + def accel_size_group(self) -> Never: ... + @accel_size_group.setter + def accel_size_group(self, value: SizeGroup | None) -> None: ... + accelerator: str | None + action_name: str | None + @property + def direction(self) -> TextDirection: ... + @direction.setter + def direction(self, value: _TextDirectionValueType) -> None: ... + icon: Gio.Icon | None icon_set: bool - shortcut_type: ShortcutType - subtitle: str + @property + def shortcut_type(self) -> ShortcutType: ... + @shortcut_type.setter + def shortcut_type(self, value: _ShortcutTypeValueType) -> None: ... + subtitle: str | None subtitle_set: bool - title: str - title_size_group: SizeGroup - orientation: Orientation + title: str | None + @property + def title_size_group(self) -> Never: ... + @title_size_group.setter + def title_size_group(self, value: SizeGroup | None) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accel_size_group: SizeGroup = ..., - accelerator: str = ..., - action_name: str = ..., - direction: TextDirection = ..., - icon: Gio.Icon = ..., + accel_size_group: SizeGroup | None = ..., + accelerator: str | None = ..., + action_name: str | None = ..., + direction: _TextDirectionValueType = ..., + icon: Gio.Icon | None = ..., icon_set: bool = ..., - shortcut_type: ShortcutType = ..., - subtitle: str = ..., + shortcut_type: _ShortcutTypeValueType = ..., + subtitle: str | None = ..., subtitle_set: bool = ..., - title: str = ..., - title_size_group: SizeGroup = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + title: str | None = ..., + title_size_group: SizeGroup | None = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -47389,7 +48211,7 @@ class ShortcutsShortcut(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -47663,8 +48485,8 @@ class ShortcutsWindow(Window): """ @type_check_only class Props(Window.Props): - section_name: str - view_name: str + section_name: str | None + view_name: str | None @property def props(self) -> Props: ... @@ -47673,8 +48495,8 @@ class ShortcutsWindow(Window): def __init__( self, *, - section_name: str = ..., - view_name: str = ..., + section_name: str | None = ..., + view_name: str | None = ..., accept_focus: bool = ..., application: Application | None = ..., attached_to: Widget | None = ..., @@ -47685,7 +48507,7 @@ class ShortcutsWindow(Window): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -47700,21 +48522,21 @@ class ShortcutsWindow(Window): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -47738,7 +48560,7 @@ class ShortcutsWindow(Window): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -47785,7 +48607,10 @@ class SizeGroup(GObject.Object, Buildable): @type_check_only class Props(GObject.Object.Props): ignore_hidden: bool - mode: SizeGroupMode + @property + def mode(self) -> SizeGroupMode: ... + @mode.setter + def mode(self, value: _SizeGroupModeValueType) -> None: ... @property def props(self) -> Props: ... @@ -47794,17 +48619,17 @@ class SizeGroup(GObject.Object, Buildable): @property def priv(self) -> SizeGroupPrivate: ... def __init__( - self, *, ignore_hidden: bool = ..., mode: SizeGroupMode = ... + self, *, ignore_hidden: bool = ..., mode: _SizeGroupModeValueType = ... ) -> None: ... def add_widget(self, widget: Widget) -> None: ... def get_ignore_hidden(self) -> bool: ... def get_mode(self) -> SizeGroupMode: ... def get_widgets(self) -> list[Widget]: ... @classmethod - def new(cls, mode: SizeGroupMode) -> SizeGroup: ... + def new(cls, mode: _SizeGroupModeValueType) -> SizeGroup: ... def remove_widget(self, widget: Widget) -> None: ... def set_ignore_hidden(self, ignore_hidden: bool) -> None: ... - def set_mode(self, mode: SizeGroupMode) -> None: ... + def set_mode(self, mode: _SizeGroupModeValueType) -> None: ... class SizeGroupClass(_gi.Struct): """ @@ -48010,16 +48835,16 @@ class Socket(Container): self, *, border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -48043,7 +48868,7 @@ class Socket(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -48138,19 +48963,19 @@ class SocketAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... def embed(self, path: str) -> None: ... @@ -48522,11 +49347,17 @@ class SpinButton(Entry, Orientable): digits: int numeric: bool snap_to_ticks: bool - update_policy: SpinButtonUpdatePolicy + @property + def update_policy(self) -> SpinButtonUpdatePolicy: ... + @update_policy.setter + def update_policy(self, value: _SpinButtonUpdatePolicyValueType) -> None: ... value: float wrap: bool editing_canceled: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -48542,11 +49373,11 @@ class SpinButton(Entry, Orientable): digits: int = ..., numeric: bool = ..., snap_to_ticks: bool = ..., - update_policy: SpinButtonUpdatePolicy = ..., + update_policy: _SpinButtonUpdatePolicyValueType = ..., value: float = ..., wrap: bool = ..., editing_canceled: bool = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., activates_default: bool = ..., attributes: Pango.AttrList = ..., buffer: EntryBuffer = ..., @@ -48555,10 +49386,10 @@ class SpinButton(Entry, Orientable): editable: bool = ..., enable_emoji_completion: bool = ..., has_frame: bool = ..., - im_module: str = ..., + im_module: str | None = ..., inner_border: Border | None = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., invisible_char: int = ..., invisible_char_set: bool = ..., max_length: int = ..., @@ -48567,24 +49398,24 @@ class SpinButton(Entry, Orientable): placeholder_text: str | None = ..., populate_all: bool = ..., primary_icon_activatable: bool = ..., - primary_icon_gicon: Gio.Icon = ..., - primary_icon_name: str = ..., - primary_icon_pixbuf: GdkPixbuf.Pixbuf = ..., + primary_icon_gicon: Gio.Icon | None = ..., + primary_icon_name: str | None = ..., + primary_icon_pixbuf: GdkPixbuf.Pixbuf | None = ..., primary_icon_sensitive: bool = ..., - primary_icon_stock: str = ..., - primary_icon_tooltip_markup: str = ..., - primary_icon_tooltip_text: str = ..., + primary_icon_stock: str | None = ..., + primary_icon_tooltip_markup: str | None = ..., + primary_icon_tooltip_text: str | None = ..., progress_fraction: float = ..., progress_pulse_step: float = ..., secondary_icon_activatable: bool = ..., - secondary_icon_gicon: Gio.Icon = ..., - secondary_icon_name: str = ..., - secondary_icon_pixbuf: GdkPixbuf.Pixbuf = ..., + secondary_icon_gicon: Gio.Icon | None = ..., + secondary_icon_name: str | None = ..., + secondary_icon_pixbuf: GdkPixbuf.Pixbuf | None = ..., secondary_icon_sensitive: bool = ..., - secondary_icon_stock: str = ..., - secondary_icon_tooltip_markup: str = ..., - secondary_icon_tooltip_text: str = ..., - shadow_type: ShadowType = ..., + secondary_icon_stock: str | None = ..., + secondary_icon_tooltip_markup: str | None = ..., + secondary_icon_tooltip_text: str | None = ..., + shadow_type: _ShadowTypeValueType = ..., show_emoji_icon: bool = ..., tabs: Pango.TabArray = ..., text: str = ..., @@ -48596,10 +49427,10 @@ class SpinButton(Entry, Orientable): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -48623,7 +49454,7 @@ class SpinButton(Entry, Orientable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -48632,7 +49463,7 @@ class SpinButton(Entry, Orientable): def configure( self, adjustment: Adjustment | None, climb_rate: float, digits: int ) -> None: ... - def do_change_value(self, scroll: ScrollType) -> None: ... + def do_change_value(self, scroll: _ScrollTypeValueType) -> None: ... def do_input(self, new_value: float) -> int: ... def do_output(self) -> int: ... def do_value_changed(self) -> None: ... @@ -48659,10 +49490,10 @@ class SpinButton(Entry, Orientable): def set_numeric(self, numeric: bool) -> None: ... def set_range(self, min: float, max: float) -> None: ... def set_snap_to_ticks(self, snap_to_ticks: bool) -> None: ... - def set_update_policy(self, policy: SpinButtonUpdatePolicy) -> None: ... + def set_update_policy(self, policy: _SpinButtonUpdatePolicyValueType) -> None: ... def set_value(self, value: float) -> None: ... def set_wrap(self, wrap: bool) -> None: ... - def spin(self, direction: SpinType, increment: float) -> None: ... + def spin(self, direction: _SpinTypeValueType, increment: float) -> None: ... def update(self) -> None: ... class SpinButtonAccessible(EntryAccessible, Atk.Value): @@ -48765,19 +49596,19 @@ class SpinButtonAccessible(EntryAccessible, Atk.Value): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -48811,7 +49642,7 @@ class SpinButtonClass(_gi.Struct): @property def value_changed(self) -> Callable[[SpinButton], None]: ... @property - def change_value(self) -> Callable[[SpinButton, ScrollType], None]: ... + def change_value(self) -> Callable[[SpinButton, _ScrollTypeValueType], None]: ... @property def wrapped(self) -> Callable[[SpinButton], None]: ... @@ -49004,10 +49835,10 @@ class Spinner(Widget): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -49031,7 +49862,7 @@ class Spinner(Widget): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -49120,19 +49951,19 @@ class SpinnerAccessible(WidgetAccessible, Atk.Image): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -49369,10 +50200,19 @@ class Stack(Container): transition_duration: int @property def transition_running(self) -> bool: ... - transition_type: StackTransitionType + @property + def transition_type(self) -> StackTransitionType: ... + @transition_type.setter + def transition_type(self, value: _StackTransitionTypeValueType) -> None: ... vhomogeneous: bool - visible_child: Widget | None - visible_child_name: str | None + @property + def visible_child(self) -> Widget | None: ... + @visible_child.setter + def visible_child(self, value: Widget) -> None: ... + @property + def visible_child_name(self) -> str | None: ... + @visible_child_name.setter + def visible_child_name(self, value: str) -> None: ... @property def props(self) -> Props: ... @@ -49385,21 +50225,21 @@ class Stack(Container): homogeneous: bool = ..., interpolate_size: bool = ..., transition_duration: int = ..., - transition_type: StackTransitionType = ..., + transition_type: _StackTransitionTypeValueType = ..., vhomogeneous: bool = ..., visible_child: Widget = ..., visible_child_name: str = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -49423,7 +50263,7 @@ class Stack(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -49447,11 +50287,13 @@ class Stack(Container): def set_homogeneous(self, homogeneous: bool) -> None: ... def set_interpolate_size(self, interpolate_size: bool) -> None: ... def set_transition_duration(self, duration: int) -> None: ... - def set_transition_type(self, transition: StackTransitionType) -> None: ... + def set_transition_type( + self, transition: _StackTransitionTypeValueType + ) -> None: ... def set_vhomogeneous(self, vhomogeneous: bool) -> None: ... def set_visible_child(self, child: Widget) -> None: ... def set_visible_child_full( - self, name: str, transition: StackTransitionType + self, name: str, transition: _StackTransitionTypeValueType ) -> None: ... def set_visible_child_name(self, name: str) -> None: ... @@ -49534,19 +50376,19 @@ class StackAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -49757,7 +50599,10 @@ class StackSidebar(Bin): """ @type_check_only class Props(Bin.Props): - stack: Stack | None + @property + def stack(self) -> Stack | None: ... + @stack.setter + def stack(self, value: Stack) -> None: ... @property def props(self) -> Props: ... @@ -49768,16 +50613,16 @@ class StackSidebar(Bin): *, stack: Stack = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -49801,7 +50646,7 @@ class StackSidebar(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -50022,7 +50867,10 @@ class StackSwitcher(Box): class Props(Box.Props): icon_size: int stack: Stack | None - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -50033,21 +50881,21 @@ class StackSwitcher(Box): *, icon_size: int = ..., stack: Stack | None = ..., - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -50071,7 +50919,7 @@ class StackSwitcher(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -50157,7 +51005,10 @@ class StatusIcon(GObject.Object): class Props(GObject.Object.Props): @property def embedded(self) -> bool: ... - file: str + @property + def file(self) -> Never: ... + @file.setter + def file(self, value: str | None) -> None: ... gicon: Gio.Icon | None has_tooltip: bool icon_name: str | None @@ -50172,7 +51023,10 @@ class StatusIcon(GObject.Object): def storage_type(self) -> ImageType: ... title: str tooltip_markup: str | None - tooltip_text: str | None + @property + def tooltip_text(self) -> str | None: ... + @tooltip_text.setter + def tooltip_text(self, value: str) -> None: ... visible: bool @property @@ -50184,13 +51038,13 @@ class StatusIcon(GObject.Object): def __init__( self, *, - file: str = ..., - gicon: Gio.Icon = ..., + file: str | None = ..., + gicon: Gio.Icon | None = ..., has_tooltip: bool = ..., - icon_name: str = ..., - pixbuf: GdkPixbuf.Pixbuf = ..., + icon_name: str | None = ..., + pixbuf: GdkPixbuf.Pixbuf | None = ..., screen: _Gdk3.Screen = ..., - stock: str = ..., + stock: str | None = ..., title: str = ..., tooltip_markup: str | None = ..., tooltip_text: str = ..., @@ -50475,7 +51329,10 @@ class Statusbar(Box): """ @type_check_only class Props(Box.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -50486,21 +51343,21 @@ class Statusbar(Box): def __init__( self, *, - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -50524,7 +51381,7 @@ class Statusbar(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -50622,19 +51479,19 @@ class StatusbarAccessible(ContainerAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -50711,7 +51568,7 @@ class Style(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def context(self) -> StyleContext: ... + def context(self) -> StyleContext | None: ... @property def props(self) -> Props: ... @@ -50759,12 +51616,12 @@ class Style(GObject.Object): def property_cache(self) -> list[int]: ... @property def icon_factories(self) -> list[int]: ... - def __init__(self, *, context: StyleContext = ...) -> None: ... + def __init__(self, *, context: StyleContext | None = ...) -> None: ... def apply_default_background( self, cr: cairo.Context[_SomeSurface], window: _Gdk3.Window, - state_type: StateType, + state_type: _StateTypeValueType, x: int, y: int, width: int, @@ -50776,11 +51633,11 @@ class Style(GObject.Object): def do_draw_arrow( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, - arrow_type: ArrowType, + arrow_type: _ArrowTypeValueType, fill: bool, x: int, y: int, @@ -50790,8 +51647,8 @@ class Style(GObject.Object): def do_draw_box( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, @@ -50802,23 +51659,23 @@ class Style(GObject.Object): def do_draw_box_gap( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, y: int, width: int, height: int, - gap_side: PositionType, + gap_side: _PositionTypeValueType, gap_x: int, gap_width: int, ) -> None: ... def do_draw_check( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, @@ -50829,8 +51686,8 @@ class Style(GObject.Object): def do_draw_diamond( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, @@ -50841,31 +51698,31 @@ class Style(GObject.Object): def do_draw_expander( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget, detail: str, x: int, y: int, - expander_style: ExpanderStyle, + expander_style: _ExpanderStyleValueType, ) -> None: ... def do_draw_extension( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, y: int, width: int, height: int, - gap_side: PositionType, + gap_side: _PositionTypeValueType, ) -> None: ... def do_draw_flat_box( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, @@ -50876,7 +51733,7 @@ class Style(GObject.Object): def do_draw_focus( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget, detail: str, x: int, @@ -50887,20 +51744,20 @@ class Style(GObject.Object): def do_draw_handle( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, y: int, width: int, height: int, - orientation: Orientation, + orientation: _OrientationValueType, ) -> None: ... def do_draw_hline( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget, detail: str, x1: int, @@ -50910,7 +51767,7 @@ class Style(GObject.Object): def do_draw_layout( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, use_text: bool, widget: Widget, detail: str, @@ -50921,8 +51778,8 @@ class Style(GObject.Object): def do_draw_option( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, @@ -50933,10 +51790,10 @@ class Style(GObject.Object): def do_draw_resize_grip( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget, detail: str, - edge: _Gdk3.WindowEdge, + edge: _Gdk3._WindowEdgeValueType, x: int, y: int, width: int, @@ -50945,8 +51802,8 @@ class Style(GObject.Object): def do_draw_shadow( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, @@ -50957,35 +51814,35 @@ class Style(GObject.Object): def do_draw_shadow_gap( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, y: int, width: int, height: int, - gap_side: PositionType, + gap_side: _PositionTypeValueType, gap_x: int, gap_width: int, ) -> None: ... def do_draw_slider( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, y: int, width: int, height: int, - orientation: Orientation, + orientation: _OrientationValueType, ) -> None: ... def do_draw_spinner( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget, detail: str, step: int, @@ -50997,8 +51854,8 @@ class Style(GObject.Object): def do_draw_tab( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, - shadow_type: ShadowType, + state_type: _StateTypeValueType, + shadow_type: _ShadowTypeValueType, widget: Widget, detail: str, x: int, @@ -51009,7 +51866,7 @@ class Style(GObject.Object): def do_draw_vline( self, cr: cairo.Context[_SomeSurface], - state_type: StateType, + state_type: _StateTypeValueType, widget: Widget, detail: str, y1_: int, @@ -51021,14 +51878,14 @@ class Style(GObject.Object): def do_render_icon( self, source: IconSource, - direction: TextDirection, - state: StateType, + direction: _TextDirectionValueType, + state: _StateTypeValueType, size: int, widget: Widget | None, detail: str | None, ) -> GdkPixbuf.Pixbuf: ... def do_set_background( - self, window: _Gdk3.Window, state_type: StateType + self, window: _Gdk3.Window, state_type: _StateTypeValueType ) -> None: ... def do_unrealize(self) -> None: ... def get_style_property(self, widget_type: type[Any], property_name: str) -> Any: ... @@ -51040,13 +51897,15 @@ class Style(GObject.Object): def render_icon( self, source: IconSource, - direction: TextDirection, - state: StateType, + direction: _TextDirectionValueType, + state: _StateTypeValueType, size: int, widget: Widget | None = None, detail: str | None = None, ) -> GdkPixbuf.Pixbuf: ... - def set_background(self, window: _Gdk3.Window, state_type: StateType) -> None: ... + def set_background( + self, window: _Gdk3.Window, state_type: _StateTypeValueType + ) -> None: ... class StyleClass(_gi.Struct): """ @@ -51069,26 +51928,54 @@ class StyleClass(_gi.Struct): @property def init_from_rc(self) -> Callable[[Style, RcStyle], None]: ... @property - def set_background(self) -> Callable[[Style, _Gdk3.Window, StateType], None]: ... + def set_background( + self, + ) -> Callable[[Style, _Gdk3.Window, _StateTypeValueType], None]: ... @property def render_icon( self, ) -> Callable[ - [Style, IconSource, TextDirection, StateType, int, Widget | None, str | None], + [ + Style, + IconSource, + _TextDirectionValueType, + _StateTypeValueType, + int, + Widget | None, + str | None, + ], GdkPixbuf.Pixbuf, ]: ... @property def draw_hline( self, ) -> Callable[ - [Style, cairo.Context[_SomeSurface], StateType, Widget, str, int, int, int], + [ + Style, + cairo.Context[_SomeSurface], + _StateTypeValueType, + Widget, + str, + int, + int, + int, + ], None, ]: ... @property def draw_vline( self, ) -> Callable[ - [Style, cairo.Context[_SomeSurface], StateType, Widget, str, int, int, int], + [ + Style, + cairo.Context[_SomeSurface], + _StateTypeValueType, + Widget, + str, + int, + int, + int, + ], None, ]: ... @property @@ -51098,8 +51985,8 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, @@ -51116,11 +52003,11 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, - ArrowType, + _ArrowTypeValueType, bool, int, int, @@ -51136,8 +52023,8 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, @@ -51154,8 +52041,8 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, @@ -51172,8 +52059,8 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, @@ -51190,8 +52077,8 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, @@ -51208,8 +52095,8 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, @@ -51226,8 +52113,8 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, @@ -51244,15 +52131,15 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, int, int, int, - PositionType, + _PositionTypeValueType, int, int, ], @@ -51265,15 +52152,15 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, int, int, int, - PositionType, + _PositionTypeValueType, int, int, ], @@ -51286,15 +52173,15 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, int, int, int, - PositionType, + _PositionTypeValueType, ], None, ]: ... @@ -51305,7 +52192,7 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, + _StateTypeValueType, Widget, str, int, @@ -51322,15 +52209,15 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, int, int, int, - Orientation, + _OrientationValueType, ], None, ]: ... @@ -51341,15 +52228,15 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, - ShadowType, + _StateTypeValueType, + _ShadowTypeValueType, Widget, str, int, int, int, int, - Orientation, + _OrientationValueType, ], None, ]: ... @@ -51360,12 +52247,12 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, + _StateTypeValueType, Widget, str, int, int, - ExpanderStyle, + _ExpanderStyleValueType, ], None, ]: ... @@ -51376,7 +52263,7 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, + _StateTypeValueType, bool, Widget, str, @@ -51393,10 +52280,10 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, + _StateTypeValueType, Widget, str, - _Gdk3.WindowEdge, + _Gdk3._WindowEdgeValueType, int, int, int, @@ -51411,7 +52298,7 @@ class StyleClass(_gi.Struct): [ Style, cairo.Context[_SomeSurface], - StateType, + _StateTypeValueType, Widget, str, int, @@ -51452,8 +52339,11 @@ class StyleContext(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - direction: TextDirection - paint_clock: _Gdk3.FrameClock + @property + def direction(self) -> TextDirection: ... + @direction.setter + def direction(self, value: _TextDirectionValueType) -> None: ... + paint_clock: _Gdk3.FrameClock | None parent: StyleContext | None screen: _Gdk3.Screen @@ -51466,8 +52356,8 @@ class StyleContext(GObject.Object): def __init__( self, *, - direction: TextDirection = ..., - paint_clock: _Gdk3.FrameClock = ..., + direction: _TextDirectionValueType = ..., + paint_clock: _Gdk3.FrameClock | None = ..., parent: StyleContext | None = ..., screen: _Gdk3.Screen = ..., ) -> None: ... @@ -51477,22 +52367,22 @@ class StyleContext(GObject.Object): def add_provider_for_screen( screen: _Gdk3.Screen, provider: StyleProvider, priority: int ) -> None: ... - def add_region(self, region_name: str, flags: RegionFlags) -> None: ... + def add_region(self, region_name: str, flags: _RegionFlagsValueType) -> None: ... def cancel_animations(self, region_id: int | Any | None = None) -> None: ... def do_changed(self) -> None: ... - def get_background_color(self, state: StateFlags) -> _Gdk3.RGBA: ... - def get_border(self, state: StateFlags) -> Border: ... - def get_border_color(self, state: StateFlags) -> _Gdk3.RGBA: ... - def get_color(self, state: StateFlags) -> _Gdk3.RGBA: ... + def get_background_color(self, state: _StateFlagsValueType) -> _Gdk3.RGBA: ... + def get_border(self, state: _StateFlagsValueType) -> Border: ... + def get_border_color(self, state: _StateFlagsValueType) -> _Gdk3.RGBA: ... + def get_color(self, state: _StateFlagsValueType) -> _Gdk3.RGBA: ... def get_direction(self) -> TextDirection: ... - def get_font(self, state: StateFlags) -> Pango.FontDescription: ... + def get_font(self, state: _StateFlagsValueType) -> Pango.FontDescription: ... def get_frame_clock(self) -> _Gdk3.FrameClock | None: ... def get_junction_sides(self) -> JunctionSides: ... - def get_margin(self, state: StateFlags) -> Border: ... - def get_padding(self, state: StateFlags) -> Border: ... + def get_margin(self, state: _StateFlagsValueType) -> Border: ... + def get_padding(self, state: _StateFlagsValueType) -> Border: ... def get_parent(self) -> StyleContext | None: ... def get_path(self) -> WidgetPath: ... - def get_property(self, property: str, state: StateFlags) -> Any: ... + def get_property(self, property: str, state: _StateFlagsValueType) -> Any: ... def get_scale(self) -> int: ... def get_screen(self) -> _Gdk3.Screen: ... def get_section(self, property: str) -> CssSection | None: ... @@ -51511,7 +52401,7 @@ class StyleContext(GObject.Object): self, window: _Gdk3.Window, region_id: int | Any | None, - state: StateType, + state: _StateTypeValueType, state_value: bool, ) -> None: ... def pop_animatable_region(self) -> None: ... @@ -51529,16 +52419,16 @@ class StyleContext(GObject.Object): def save(self) -> None: ... def scroll_animations(self, window: _Gdk3.Window, dx: int, dy: int) -> None: ... def set_background(self, window: _Gdk3.Window) -> None: ... - def set_direction(self, direction: TextDirection) -> None: ... + def set_direction(self, direction: _TextDirectionValueType) -> None: ... def set_frame_clock(self, frame_clock: _Gdk3.FrameClock) -> None: ... - def set_junction_sides(self, sides: JunctionSides) -> None: ... + def set_junction_sides(self, sides: _JunctionSidesValueType) -> None: ... def set_parent(self, parent: StyleContext | None = None) -> None: ... def set_path(self, path: WidgetPath) -> None: ... def set_scale(self, scale: int) -> None: ... def set_screen(self, screen: _Gdk3.Screen) -> None: ... - def set_state(self, flags: StateFlags) -> None: ... - def state_is_running(self, state: StateType) -> tuple[bool, float]: ... - def to_string(self, flags: StyleContextPrintFlags) -> str: ... + def set_state(self, flags: _StateFlagsValueType) -> None: ... + def state_is_running(self, state: _StateTypeValueType) -> tuple[bool, float]: ... + def to_string(self, flags: _StyleContextPrintFlagsValueType) -> str: ... class StyleContextClass(_gi.Struct): """ @@ -51577,14 +52467,18 @@ class StyleProperties(GObject.Object, StyleProvider): @property def priv(self) -> StylePropertiesPrivate: ... def clear(self) -> None: ... - def get_property(self, property: str, state: StateFlags) -> tuple[bool, Any]: ... + def get_property( + self, property: str, state: _StateFlagsValueType + ) -> tuple[bool, Any]: ... def lookup_color(self, name: str) -> SymbolicColor: ... def map_color(self, name: str, color: SymbolicColor) -> None: ... def merge(self, props_to_merge: StyleProperties, replace: bool) -> None: ... @classmethod def new(cls) -> StyleProperties: ... - def set_property(self, property: str, state: StateFlags, value: Any) -> None: ... - def unset_property(self, property: str, state: StateFlags) -> None: ... + def set_property( + self, property: str, state: _StateFlagsValueType, value: Any + ) -> None: ... + def unset_property(self, property: str, state: _StateFlagsValueType) -> None: ... class StylePropertiesClass(_gi.Struct): """ @@ -51606,7 +52500,7 @@ class StyleProvider(GObject.GInterface, Protocol): def get_icon_factory(self, path: WidgetPath) -> IconFactory | None: ... def get_style(self, path: WidgetPath) -> StyleProperties | None: ... def get_style_property( - self, path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec + self, path: WidgetPath, state: _StateFlagsValueType, pspec: GObject.ParamSpec ) -> tuple[bool, Any]: ... class StyleProviderIface(_gi.Struct): @@ -51627,7 +52521,8 @@ class StyleProviderIface(_gi.Struct): def get_style_property( self, ) -> Callable[ - [StyleProvider, WidgetPath, StateFlags, GObject.ParamSpec], tuple[bool, Any] + [StyleProvider, WidgetPath, _StateFlagsValueType, GObject.ParamSpec], + tuple[bool, Any], ]: ... @property def get_icon_factory( @@ -51814,7 +52709,10 @@ class Switch(Widget, Actionable, Activatable): active: bool state: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -51837,10 +52735,10 @@ class Switch(Widget, Actionable, Activatable): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -51864,7 +52762,7 @@ class Switch(Widget, Actionable, Activatable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -51957,19 +52855,19 @@ class SwitchAccessible(WidgetAccessible, Atk.Action): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -52251,16 +53149,16 @@ class Table(Container): n_rows: int = ..., row_spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -52284,7 +53182,7 @@ class Table(Container): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -52637,7 +53535,10 @@ class TearoffMenuItem(MenuItem): @type_check_only class Props(MenuItem.Props): action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -52660,16 +53561,16 @@ class TearoffMenuItem(MenuItem): submenu: Menu | None = ..., use_underline: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -52693,7 +53594,7 @@ class TearoffMenuItem(MenuItem): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -52842,7 +53743,9 @@ class TextBuffer(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> TextBufferPrivate: ... - def __init__(self, *, tag_table: TextTagTable = ..., text: str = ...) -> None: ... + def __init__( + self, *, tag_table: TextTagTable | None = ..., text: str = ... + ) -> None: ... def add_mark(self, mark: TextMark, where: TextIter) -> None: ... def add_selection_clipboard(self, clipboard: Clipboard) -> None: ... def apply_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ... @@ -53150,21 +54053,21 @@ class TextCellAccessible(RendererCellAccessible, Atk.Text): def __init__( self, *, - renderer: CellRenderer = ..., + renderer: CellRenderer | None = ..., widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -53265,7 +54168,7 @@ class TextIter(GObject.GBoxed): def backward_line(self) -> bool: ... def backward_lines(self, count: int) -> bool: ... def backward_search( - self, str: str, flags: TextSearchFlags, limit: TextIter | None = None + self, str: str, flags: _TextSearchFlagsValueType, limit: TextIter | None = None ) -> tuple[TextIter, TextIter] | None: ... # CHECK Wrapped function def backward_sentence_start(self) -> bool: ... def backward_sentence_starts(self, count: int) -> bool: ... @@ -53301,7 +54204,7 @@ class TextIter(GObject.GBoxed): def forward_line(self) -> bool: ... def forward_lines(self, count: int) -> bool: ... def forward_search( - self, str: str, flags: TextSearchFlags, limit: TextIter | None = None + self, str: str, flags: _TextSearchFlagsValueType, limit: TextIter | None = None ) -> tuple[TextIter, TextIter] | None: ... # CHECK Wrapped function def forward_sentence_end(self) -> bool: ... def forward_sentence_ends(self, count: int) -> bool: ... @@ -53391,7 +54294,7 @@ class TextMark(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def segment(self) -> int: ... - def __init__(self, *, left_gravity: bool = ..., name: str = ...) -> None: ... + def __init__(self, *, left_gravity: bool = ..., name: str | None = ...) -> None: ... def get_buffer(self) -> TextBuffer: ... def get_deleted(self) -> bool: ... def get_left_gravity(self) -> bool: ... @@ -53582,44 +54485,59 @@ class TextTag(GObject.Object): @type_check_only class Props(GObject.Object.Props): accumulative_margin: bool - background: str + @property + def background(self) -> Never: ... + @background.setter + def background(self, value: str | None) -> None: ... background_full_height: bool background_full_height_set: bool - background_gdk: _Gdk3.Color - background_rgba: _Gdk3.RGBA + background_gdk: _Gdk3.Color | None + background_rgba: _Gdk3.RGBA | None background_set: bool - direction: TextDirection + @property + def direction(self) -> TextDirection: ... + @direction.setter + def direction(self, value: _TextDirectionValueType) -> None: ... editable: bool editable_set: bool fallback: bool fallback_set: bool - family: str + family: str | None family_set: bool - font: str - font_desc: Pango.FontDescription - font_features: str + font: str | None + font_desc: Pango.FontDescription | None + font_features: str | None font_features_set: bool - foreground: str - foreground_gdk: _Gdk3.Color - foreground_rgba: _Gdk3.RGBA + @property + def foreground(self) -> Never: ... + @foreground.setter + def foreground(self, value: str | None) -> None: ... + foreground_gdk: _Gdk3.Color | None + foreground_rgba: _Gdk3.RGBA | None foreground_set: bool indent: int indent_set: bool invisible: bool invisible_set: bool - justification: Justification + @property + def justification(self) -> Justification: ... + @justification.setter + def justification(self, value: _JustificationValueType) -> None: ... justification_set: bool - language: str + language: str | None language_set: bool left_margin: int left_margin_set: bool letter_spacing: int letter_spacing_set: bool @property - def name(self) -> str: ... - paragraph_background: str - paragraph_background_gdk: _Gdk3.Color - paragraph_background_rgba: _Gdk3.RGBA + def name(self) -> str | None: ... + @property + def paragraph_background(self) -> Never: ... + @paragraph_background.setter + def paragraph_background(self, value: str | None) -> None: ... + paragraph_background_gdk: _Gdk3.Color | None + paragraph_background_rgba: _Gdk3.RGBA | None paragraph_background_set: bool pixels_above_lines: int pixels_above_lines_set: bool @@ -53636,25 +54554,40 @@ class TextTag(GObject.Object): size: int size_points: float size_set: bool - stretch: Pango.Stretch + @property + def stretch(self) -> Pango.Stretch: ... + @stretch.setter + def stretch(self, value: Pango._StretchValueType) -> None: ... stretch_set: bool strikethrough: bool - strikethrough_rgba: _Gdk3.RGBA + strikethrough_rgba: _Gdk3.RGBA | None strikethrough_rgba_set: bool strikethrough_set: bool - style: Pango.Style + @property + def style(self) -> Pango.Style: ... + @style.setter + def style(self, value: Pango._StyleValueType) -> None: ... style_set: bool - tabs: Pango.TabArray + tabs: Pango.TabArray | None tabs_set: bool - underline: Pango.Underline - underline_rgba: _Gdk3.RGBA + @property + def underline(self) -> Pango.Underline: ... + @underline.setter + def underline(self, value: Pango._UnderlineValueType) -> None: ... + underline_rgba: _Gdk3.RGBA | None underline_rgba_set: bool underline_set: bool - variant: Pango.Variant + @property + def variant(self) -> Pango.Variant: ... + @variant.setter + def variant(self, value: Pango._VariantValueType) -> None: ... variant_set: bool weight: int weight_set: bool - wrap_mode: WrapMode + @property + def wrap_mode(self) -> WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: _WrapModeValueType) -> None: ... wrap_mode_set: bool @property @@ -53667,43 +54600,43 @@ class TextTag(GObject.Object): self, *, accumulative_margin: bool = ..., - background: str = ..., + background: str | None = ..., background_full_height: bool = ..., background_full_height_set: bool = ..., - background_gdk: _Gdk3.Color = ..., - background_rgba: _Gdk3.RGBA = ..., + background_gdk: _Gdk3.Color | None = ..., + background_rgba: _Gdk3.RGBA | None = ..., background_set: bool = ..., - direction: TextDirection = ..., + direction: _TextDirectionValueType = ..., editable: bool = ..., editable_set: bool = ..., fallback: bool = ..., fallback_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - font_features: str = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + font_features: str | None = ..., font_features_set: bool = ..., - foreground: str = ..., - foreground_gdk: _Gdk3.Color = ..., - foreground_rgba: _Gdk3.RGBA = ..., + foreground: str | None = ..., + foreground_gdk: _Gdk3.Color | None = ..., + foreground_rgba: _Gdk3.RGBA | None = ..., foreground_set: bool = ..., indent: int = ..., indent_set: bool = ..., invisible: bool = ..., invisible_set: bool = ..., - justification: Justification = ..., + justification: _JustificationValueType = ..., justification_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., left_margin: int = ..., left_margin_set: bool = ..., letter_spacing: int = ..., letter_spacing_set: bool = ..., - name: str = ..., - paragraph_background: str = ..., - paragraph_background_gdk: _Gdk3.Color = ..., - paragraph_background_rgba: _Gdk3.RGBA = ..., + name: str | None = ..., + paragraph_background: str | None = ..., + paragraph_background_gdk: _Gdk3.Color | None = ..., + paragraph_background_rgba: _Gdk3.RGBA | None = ..., paragraph_background_set: bool = ..., pixels_above_lines: int = ..., pixels_above_lines_set: bool = ..., @@ -53720,25 +54653,25 @@ class TextTag(GObject.Object): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., - strikethrough_rgba: _Gdk3.RGBA = ..., + strikethrough_rgba: _Gdk3.RGBA | None = ..., strikethrough_rgba_set: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - tabs: Pango.TabArray = ..., + tabs: Pango.TabArray | None = ..., tabs_set: bool = ..., - underline: Pango.Underline = ..., - underline_rgba: _Gdk3.RGBA = ..., + underline: Pango._UnderlineValueType = ..., + underline_rgba: _Gdk3.RGBA | None = ..., underline_rgba_set: bool = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., - wrap_mode: WrapMode = ..., + wrap_mode: _WrapModeValueType = ..., wrap_mode_set: bool = ..., ) -> None: ... def changed(self, size_changed: bool) -> None: ... @@ -54071,14 +55004,26 @@ class TextView(Container, Scrollable): class Props(Container.Props): accepts_tab: bool bottom_margin: int - buffer: TextBuffer | None + @property + def buffer(self) -> TextBuffer: ... + @buffer.setter + def buffer(self, value: TextBuffer | None) -> None: ... cursor_visible: bool editable: bool - im_module: str + im_module: str | None indent: int - input_hints: InputHints - input_purpose: InputPurpose - justification: Justification + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... + @property + def justification(self) -> Justification: ... + @justification.setter + def justification(self, value: _JustificationValueType) -> None: ... left_margin: int monospace: bool overwrite: bool @@ -54087,13 +55032,31 @@ class TextView(Container, Scrollable): pixels_inside_wrap: int populate_all: bool right_margin: int - tabs: Pango.TabArray | None + @property + def tabs(self) -> Pango.TabArray | None: ... + @tabs.setter + def tabs(self, value: Pango.TabArray) -> None: ... top_margin: int - wrap_mode: WrapMode - hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy - vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def wrap_mode(self) -> WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: _WrapModeValueType) -> None: ... + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -54109,11 +55072,11 @@ class TextView(Container, Scrollable): buffer: TextBuffer | None = ..., cursor_visible: bool = ..., editable: bool = ..., - im_module: str = ..., + im_module: str | None = ..., indent: int = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., - justification: Justification = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., + justification: _JustificationValueType = ..., left_margin: int = ..., monospace: bool = ..., overwrite: bool = ..., @@ -54124,22 +55087,22 @@ class TextView(Container, Scrollable): right_margin: int = ..., tabs: Pango.TabArray = ..., top_margin: int = ..., - wrap_mode: WrapMode = ..., + wrap_mode: _WrapModeValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -54163,7 +55126,7 @@ class TextView(Container, Scrollable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -54171,23 +55134,27 @@ class TextView(Container, Scrollable): ) -> None: ... def add_child_at_anchor(self, child: Widget, anchor: TextChildAnchor) -> None: ... def add_child_in_window( - self, child: Widget, which_window: TextWindowType, xpos: int, ypos: int + self, + child: Widget, + which_window: _TextWindowTypeValueType, + xpos: int, + ypos: int, ) -> None: ... def backward_display_line(self, iter: TextIter) -> bool: ... def backward_display_line_start(self, iter: TextIter) -> bool: ... def buffer_to_window_coords( - self, win: TextWindowType, buffer_x: int, buffer_y: int + self, win: _TextWindowTypeValueType, buffer_x: int, buffer_y: int ) -> tuple[int, int]: ... def do_backspace(self) -> None: ... def do_copy_clipboard(self) -> None: ... def do_cut_clipboard(self) -> None: ... - def do_delete_from_cursor(self, type: DeleteType, count: int) -> None: ... + def do_delete_from_cursor(self, type: _DeleteTypeValueType, count: int) -> None: ... def do_draw_layer( - self, layer: TextViewLayer, cr: cairo.Context[_SomeSurface] + self, layer: _TextViewLayerValueType, cr: cairo.Context[_SomeSurface] ) -> None: ... def do_extend_selection( self, - granularity: TextExtendSelection, + granularity: _TextExtendSelectionValueType, location: TextIter, start: TextIter, end: TextIter, @@ -54195,7 +55162,7 @@ class TextView(Container, Scrollable): def do_insert_at_cursor(self, str: str) -> None: ... def do_insert_emoji(self) -> None: ... def do_move_cursor( - self, step: MovementStep, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool ) -> None: ... def do_paste_clipboard(self) -> None: ... def do_populate_popup(self, popup: Widget) -> None: ... @@ -54204,7 +55171,7 @@ class TextView(Container, Scrollable): def forward_display_line(self, iter: TextIter) -> bool: ... def forward_display_line_end(self, iter: TextIter) -> bool: ... def get_accepts_tab(self) -> bool: ... - def get_border_window_size(self, type: TextWindowType) -> int: ... + def get_border_window_size(self, type: _TextWindowTypeValueType) -> int: ... def get_bottom_margin(self) -> int: ... def get_buffer(self) -> TextBuffer: ... def get_cursor_locations( @@ -54234,7 +55201,7 @@ class TextView(Container, Scrollable): def get_top_margin(self) -> int: ... def get_vadjustment(self) -> Adjustment: ... def get_visible_rect(self) -> _Gdk3.Rectangle: ... - def get_window(self, win: TextWindowType) -> _Gdk3.Window | None: ... + def get_window(self, win: _TextWindowTypeValueType) -> _Gdk3.Window | None: ... def get_window_type(self, window: _Gdk3.Window) -> TextWindowType: ... def get_wrap_mode(self) -> WrapMode: ... def im_context_filter_keypress(self, event: _Gdk3.EventKey) -> bool: ... @@ -54266,15 +55233,17 @@ class TextView(Container, Scrollable): yalign: float, ) -> None: ... def set_accepts_tab(self, accepts_tab: bool) -> None: ... - def set_border_window_size(self, type: TextWindowType, size: int) -> None: ... + def set_border_window_size( + self, type: _TextWindowTypeValueType, size: int + ) -> None: ... def set_bottom_margin(self, bottom_margin: int) -> None: ... def set_buffer(self, buffer: TextBuffer | None = None) -> None: ... def set_cursor_visible(self, setting: bool) -> None: ... def set_editable(self, setting: bool) -> None: ... def set_indent(self, indent: int) -> None: ... - def set_input_hints(self, hints: InputHints) -> None: ... - def set_input_purpose(self, purpose: InputPurpose) -> None: ... - def set_justification(self, justification: Justification) -> None: ... + def set_input_hints(self, hints: _InputHintsValueType) -> None: ... + def set_input_purpose(self, purpose: _InputPurposeValueType) -> None: ... + def set_justification(self, justification: _JustificationValueType) -> None: ... def set_left_margin(self, left_margin: int) -> None: ... def set_monospace(self, monospace: bool) -> None: ... def set_overwrite(self, overwrite: bool) -> None: ... @@ -54284,10 +55253,10 @@ class TextView(Container, Scrollable): def set_right_margin(self, right_margin: int) -> None: ... def set_tabs(self, tabs: Pango.TabArray) -> None: ... def set_top_margin(self, top_margin: int) -> None: ... - def set_wrap_mode(self, wrap_mode: WrapMode) -> None: ... + def set_wrap_mode(self, wrap_mode: _WrapModeValueType) -> None: ... def starts_display_line(self, iter: TextIter) -> bool: ... def window_to_buffer_coords( - self, win: TextWindowType, window_x: int, window_y: int + self, win: _TextWindowTypeValueType, window_x: int, window_y: int ) -> tuple[int, int]: ... class TextViewAccessible( @@ -54381,19 +55350,19 @@ class TextViewAccessible( self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -54423,13 +55392,17 @@ class TextViewClass(_gi.Struct): @property def populate_popup(self) -> Callable[[TextView, Widget], None]: ... @property - def move_cursor(self) -> Callable[[TextView, MovementStep, int, bool], None]: ... + def move_cursor( + self, + ) -> Callable[[TextView, _MovementStepValueType, int, bool], None]: ... @property def set_anchor(self) -> Callable[[TextView], None]: ... @property def insert_at_cursor(self) -> Callable[[TextView, str], None]: ... @property - def delete_from_cursor(self) -> Callable[[TextView, DeleteType, int], None]: ... + def delete_from_cursor( + self, + ) -> Callable[[TextView, _DeleteTypeValueType, int], None]: ... @property def backspace(self) -> Callable[[TextView], None]: ... @property @@ -54445,12 +55418,14 @@ class TextViewClass(_gi.Struct): @property def draw_layer( self, - ) -> Callable[[TextView, TextViewLayer, cairo.Context[_SomeSurface]], None]: ... + ) -> Callable[ + [TextView, _TextViewLayerValueType, cairo.Context[_SomeSurface]], None + ]: ... @property def extend_selection( self, ) -> Callable[ - [TextView, TextExtendSelection, TextIter, TextIter, TextIter], bool + [TextView, _TextExtendSelectionValueType, TextIter, TextIter, TextIter], bool ]: ... @property def insert_emoji(self) -> Callable[[TextView], None]: ... @@ -54478,7 +55453,7 @@ class ThemingEngine(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def name(self) -> str: ... + def name(self) -> str | None: ... @property def props(self) -> Props: ... @@ -54486,7 +55461,7 @@ class ThemingEngine(GObject.Object): def parent_object(self) -> GObject.Object: ... @property def priv(self) -> ThemingEnginePrivate: ... - def __init__(self, *, name: str = ...) -> None: ... + def __init__(self, *, name: str | None = ...) -> None: ... def do_render_activity( self, cr: cairo.Context[_SomeSurface], @@ -54534,7 +55509,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, - gap_side: PositionType, + gap_side: _PositionTypeValueType, ) -> None: ... def do_render_focus( self, @@ -54559,7 +55534,7 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, - gap_side: PositionType, + gap_side: _PositionTypeValueType, xy0_gap: float, xy1_gap: float, ) -> None: ... @@ -54611,19 +55586,19 @@ class ThemingEngine(GObject.Object): y: float, width: float, height: float, - orientation: Orientation, + orientation: _OrientationValueType, ) -> None: ... - def get_background_color(self, state: StateFlags) -> _Gdk3.RGBA: ... - def get_border(self, state: StateFlags) -> Border: ... - def get_border_color(self, state: StateFlags) -> _Gdk3.RGBA: ... - def get_color(self, state: StateFlags) -> _Gdk3.RGBA: ... + def get_background_color(self, state: _StateFlagsValueType) -> _Gdk3.RGBA: ... + def get_border(self, state: _StateFlagsValueType) -> Border: ... + def get_border_color(self, state: _StateFlagsValueType) -> _Gdk3.RGBA: ... + def get_color(self, state: _StateFlagsValueType) -> _Gdk3.RGBA: ... def get_direction(self) -> TextDirection: ... - def get_font(self, state: StateFlags) -> Pango.FontDescription: ... + def get_font(self, state: _StateFlagsValueType) -> Pango.FontDescription: ... def get_junction_sides(self) -> JunctionSides: ... - def get_margin(self, state: StateFlags) -> Border: ... - def get_padding(self, state: StateFlags) -> Border: ... + def get_margin(self, state: _StateFlagsValueType) -> Border: ... + def get_padding(self, state: _StateFlagsValueType) -> Border: ... def get_path(self) -> WidgetPath: ... - def get_property(self, property: str, state: StateFlags) -> Any: ... + def get_property(self, property: str, state: _StateFlagsValueType) -> Any: ... def get_screen(self) -> _Gdk3.Screen | None: ... def get_state(self) -> StateFlags: ... def get_style_property(self, property_name: str) -> Any: ... @@ -54632,7 +55607,7 @@ class ThemingEngine(GObject.Object): @staticmethod def load(name: str) -> ThemingEngine | None: ... def lookup_color(self, color_name: str) -> tuple[bool, _Gdk3.RGBA]: ... - def state_is_running(self, state: StateType) -> tuple[bool, float]: ... + def state_is_running(self, state: _StateTypeValueType) -> tuple[bool, float]: ... class ThemingEngineClass(_gi.Struct): """ @@ -54673,7 +55648,7 @@ class ThemingEngineClass(_gi.Struct): float, float, float, - PositionType, + _PositionTypeValueType, float, float, ], @@ -54690,7 +55665,7 @@ class ThemingEngineClass(_gi.Struct): float, float, float, - PositionType, + _PositionTypeValueType, ], None, ]: ... @@ -54741,7 +55716,7 @@ class ThemingEngineClass(_gi.Struct): float, float, float, - Orientation, + _OrientationValueType, ], None, ]: ... @@ -54853,14 +55828,14 @@ class ToggleAction(Action): *, active: bool = ..., draw_as_radio: bool = ..., - action_group: ActionGroup = ..., + action_group: ActionGroup | None = ..., always_show_image: bool = ..., gicon: Gio.Icon = ..., hide_if_empty: bool = ..., icon_name: str = ..., is_important: bool = ..., label: str = ..., - name: str = ..., + name: str | None = ..., sensitive: bool = ..., short_label: str = ..., stock_id: str = ..., @@ -55143,7 +56118,10 @@ class ToggleButton(Button): draw_indicator: bool inconsistent: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -55165,24 +56143,24 @@ class ToggleButton(Button): use_action_appearance: bool = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -55206,7 +56184,7 @@ class ToggleButton(Button): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -55311,19 +56289,19 @@ class ToggleButtonAccessible(ButtonAccessible): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -55575,7 +56553,10 @@ class ToggleToolButton(ToolButton): class Props(ToolButton.Props): active: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -55603,16 +56584,16 @@ class ToggleToolButton(ToolButton): visible_horizontal: bool = ..., visible_vertical: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -55636,7 +56617,7 @@ class ToggleToolButton(ToolButton): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -55880,10 +56861,16 @@ class ToolButton(ToolItem, Actionable): icon_widget: Widget | None label: str | None label_widget: Widget | None - stock_id: str | None + @property + def stock_id(self) -> str: ... + @stock_id.setter + def stock_id(self, value: str | None) -> None: ... use_underline: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool @@ -55910,16 +56897,16 @@ class ToolButton(ToolItem, Actionable): visible_horizontal: bool = ..., visible_vertical: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -55943,7 +56930,7 @@ class ToolButton(ToolItem, Actionable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -56200,16 +57187,16 @@ class ToolItem(Bin, Activatable): related_action: Action = ..., use_action_appearance: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -56233,7 +57220,7 @@ class ToolItem(Bin, Activatable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -56482,8 +57469,14 @@ class ToolItemGroup(Container, ToolShell): @type_check_only class Props(Container.Props): collapsed: bool - ellipsize: Pango.EllipsizeMode - header_relief: ReliefStyle + @property + def ellipsize(self) -> Pango.EllipsizeMode: ... + @ellipsize.setter + def ellipsize(self, value: Pango._EllipsizeModeValueType) -> None: ... + @property + def header_relief(self) -> ReliefStyle: ... + @header_relief.setter + def header_relief(self, value: _ReliefStyleValueType) -> None: ... label: str label_widget: Widget @@ -56497,21 +57490,21 @@ class ToolItemGroup(Container, ToolShell): self, *, collapsed: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., - header_relief: ReliefStyle = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., + header_relief: _ReliefStyleValueType = ..., label: str = ..., label_widget: Widget = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -56535,7 +57528,7 @@ class ToolItemGroup(Container, ToolShell): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -56554,8 +57547,8 @@ class ToolItemGroup(Container, ToolShell): @classmethod def new(cls, label: str) -> ToolItemGroup: ... def set_collapsed(self, collapsed: bool) -> None: ... - def set_ellipsize(self, ellipsize: Pango.EllipsizeMode) -> None: ... - def set_header_relief(self, style: ReliefStyle) -> None: ... + def set_ellipsize(self, ellipsize: Pango._EllipsizeModeValueType) -> None: ... + def set_header_relief(self, style: _ReliefStyleValueType) -> None: ... def set_item_position(self, item: ToolItem, position: int) -> None: ... def set_label(self, label: str) -> None: ... def set_label_widget(self, label_widget: Widget) -> None: ... @@ -56763,14 +57756,35 @@ class ToolPalette(Container, Orientable, Scrollable): """ @type_check_only class Props(Container.Props): - icon_size: IconSize + @property + def icon_size(self) -> IconSize: ... + @icon_size.setter + def icon_size(self, value: _IconSizeValueType) -> None: ... icon_size_set: bool - toolbar_style: ToolbarStyle - orientation: Orientation - hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy - vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def toolbar_style(self) -> ToolbarStyle: ... + @toolbar_style.setter + def toolbar_style(self, value: _ToolbarStyleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -56781,25 +57795,25 @@ class ToolPalette(Container, Orientable, Scrollable): def __init__( self, *, - icon_size: IconSize = ..., + icon_size: _IconSizeValueType = ..., icon_size_set: bool = ..., - toolbar_style: ToolbarStyle = ..., - orientation: Orientation = ..., + toolbar_style: _ToolbarStyleValueType = ..., + orientation: _OrientationValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -56823,7 +57837,7 @@ class ToolPalette(Container, Orientable, Scrollable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -56832,9 +57846,9 @@ class ToolPalette(Container, Orientable, Scrollable): def add_drag_dest( self, widget: Widget, - flags: DestDefaults, - targets: ToolPaletteDragTargets, - actions: _Gdk3.DragAction, + flags: _DestDefaultsValueType, + targets: _ToolPaletteDragTargetsValueType, + actions: _Gdk3._DragActionValueType, ) -> None: ... def get_drag_item(self, selection: SelectionData) -> Widget: ... @staticmethod @@ -56852,12 +57866,12 @@ class ToolPalette(Container, Orientable, Scrollable): def get_vadjustment(self) -> Adjustment: ... @classmethod def new(cls) -> ToolPalette: ... - def set_drag_source(self, targets: ToolPaletteDragTargets) -> None: ... + def set_drag_source(self, targets: _ToolPaletteDragTargetsValueType) -> None: ... def set_exclusive(self, group: ToolItemGroup, exclusive: bool) -> None: ... def set_expand(self, group: ToolItemGroup, expand: bool) -> None: ... def set_group_position(self, group: ToolItemGroup, position: int) -> None: ... def set_icon_size(self, icon_size: int) -> None: ... - def set_style(self, style: ToolbarStyle) -> None: ... + def set_style(self, style: _ToolbarStyleValueType) -> None: ... def unset_icon_size(self) -> None: ... def unset_style(self) -> None: ... @@ -57117,11 +58131,20 @@ class Toolbar(Container, Orientable, ToolShell): """ @type_check_only class Props(Container.Props): - icon_size: IconSize + @property + def icon_size(self) -> IconSize: ... + @icon_size.setter + def icon_size(self, value: _IconSizeValueType) -> None: ... icon_size_set: bool show_arrow: bool - toolbar_style: ToolbarStyle - orientation: Orientation + @property + def toolbar_style(self) -> ToolbarStyle: ... + @toolbar_style.setter + def toolbar_style(self, value: _ToolbarStyleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -57132,22 +58155,22 @@ class Toolbar(Container, Orientable, ToolShell): def __init__( self, *, - icon_size: IconSize = ..., + icon_size: _IconSizeValueType = ..., icon_size_set: bool = ..., show_arrow: bool = ..., - toolbar_style: ToolbarStyle = ..., - orientation: Orientation = ..., + toolbar_style: _ToolbarStyleValueType = ..., + orientation: _OrientationValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -57171,15 +58194,15 @@ class Toolbar(Container, Orientable, ToolShell): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... - def do_orientation_changed(self, orientation: Orientation) -> None: ... + def do_orientation_changed(self, orientation: _OrientationValueType) -> None: ... def do_popup_context_menu(self, x: int, y: int, button_number: int) -> bool: ... - def do_style_changed(self, style: ToolbarStyle) -> None: ... + def do_style_changed(self, style: _ToolbarStyleValueType) -> None: ... def get_drop_index(self, x: int, y: int) -> int: ... def get_icon_size(self) -> IconSize: ... def get_item_index(self, item: ToolItem) -> int: ... @@ -57194,9 +58217,9 @@ class Toolbar(Container, Orientable, ToolShell): def set_drop_highlight_item( self, tool_item: ToolItem | None, index_: int ) -> None: ... - def set_icon_size(self, icon_size: IconSize) -> None: ... + def set_icon_size(self, icon_size: _IconSizeValueType) -> None: ... def set_show_arrow(self, show_arrow: bool) -> None: ... - def set_style(self, style: ToolbarStyle) -> None: ... + def set_style(self, style: _ToolbarStyleValueType) -> None: ... def unset_icon_size(self) -> None: ... def unset_style(self) -> None: ... @@ -57211,9 +58234,11 @@ class ToolbarClass(_gi.Struct): @property def parent_class(self) -> ContainerClass: ... @property - def orientation_changed(self) -> Callable[[Toolbar, Orientation], None]: ... + def orientation_changed( + self, + ) -> Callable[[Toolbar, _OrientationValueType], None]: ... @property - def style_changed(self) -> Callable[[Toolbar, ToolbarStyle], None]: ... + def style_changed(self) -> Callable[[Toolbar, _ToolbarStyleValueType], None]: ... @property def popup_context_menu(self) -> Callable[[Toolbar, int, int, int], bool]: ... @@ -57310,19 +58335,19 @@ class ToplevelAccessible(Atk.Object): def __init__( self, *, - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... def get_children(self) -> list[Window]: ... @@ -57524,9 +58549,9 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): @type_check_only class Props(GObject.Object.Props): @property - def child_model(self) -> TreeModel: ... + def child_model(self) -> TreeModel | None: ... @property - def virtual_root(self) -> TreePath: ... + def virtual_root(self) -> TreePath | None: ... @property def props(self) -> Props: ... @@ -57535,7 +58560,10 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): @property def priv(self) -> TreeModelFilterPrivate: ... def __init__( - self, *, child_model: TreeModel = ..., virtual_root: TreePath = ... + self, + *, + child_model: TreeModel | None = ..., + virtual_root: TreePath | None = ..., ) -> None: ... def clear_cache(self) -> None: ... def convert_child_iter_to_iter( @@ -57705,7 +58733,7 @@ class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable): def parent(self) -> GObject.Object: ... @property def priv(self) -> TreeModelSortPrivate: ... - def __init__(self, *, model: TreeModel = ...) -> None: ... + def __init__(self, *, model: TreeModel | None = ...) -> None: ... def clear_cache(self) -> None: ... def convert_child_iter_to_iter( self, child_iter: TreeIter @@ -57822,7 +58850,10 @@ class TreeSelection(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - mode: SelectionMode + @property + def mode(self) -> SelectionMode: ... + @mode.setter + def mode(self, value: _SelectionModeValueType) -> None: ... @property def props(self) -> Props: ... @@ -57830,7 +58861,7 @@ class TreeSelection(GObject.Object): def parent(self) -> GObject.Object: ... @property def priv(self) -> TreeSelectionPrivate: ... - def __init__(self, *, mode: SelectionMode = ...) -> None: ... + def __init__(self, *, mode: _SelectionModeValueType = ...) -> None: ... def count_selected_rows(self) -> int: ... def do_changed(self) -> None: ... def get_mode(self) -> SelectionMode: ... @@ -57851,7 +58882,7 @@ class TreeSelection(GObject.Object): func: Callable[[TreeModel, TreePath, TreeIter, Unpack[_DataTs]], None], *data: Unpack[_DataTs], ) -> None: ... - def set_mode(self, type: SelectionMode) -> None: ... + def set_mode(self, type: _SelectionModeValueType) -> None: ... def set_select_function( self, func: Callable[ @@ -57897,7 +58928,9 @@ class TreeSortable(GObject.GInterface, Protocol): sort_func: Callable[[TreeModel, TreeIter, TreeIter, Any], int], user_data: Any | None = None, ): ... - def set_sort_column_id(self, sort_column_id: int, order: SortType) -> None: ... + def set_sort_column_id( + self, sort_column_id: int, order: _SortTypeValueType + ) -> None: ... # override def set_sort_func( self, @@ -57924,7 +58957,9 @@ class TreeSortableIface(_gi.Struct): self, ) -> Callable[[TreeSortable], tuple[bool, int, SortType]]: ... @property - def set_sort_column_id(self) -> Callable[[TreeSortable, int, SortType], None]: ... + def set_sort_column_id( + self, + ) -> Callable[[TreeSortable, int, _SortTypeValueType], None]: ... @property def set_sort_func( self, @@ -58275,10 +59310,16 @@ class TreeView(Container, Scrollable): @type_check_only class Props(Container.Props): activate_on_single_click: bool - enable_grid_lines: TreeViewGridLines + @property + def enable_grid_lines(self) -> TreeViewGridLines: ... + @enable_grid_lines.setter + def enable_grid_lines(self, value: _TreeViewGridLinesValueType) -> None: ... enable_search: bool enable_tree_lines: bool - expander_column: TreeViewColumn | None + @property + def expander_column(self) -> TreeViewColumn: ... + @expander_column.setter + def expander_column(self, value: TreeViewColumn | None) -> None: ... fixed_height_mode: bool headers_clickable: bool headers_visible: bool @@ -58292,10 +59333,22 @@ class TreeView(Container, Scrollable): search_column: int show_expanders: bool tooltip_column: int - hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy - vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -58307,7 +59360,7 @@ class TreeView(Container, Scrollable): self, *, activate_on_single_click: bool = ..., - enable_grid_lines: TreeViewGridLines = ..., + enable_grid_lines: _TreeViewGridLinesValueType = ..., enable_search: bool = ..., enable_tree_lines: bool = ..., expander_column: TreeViewColumn | None = ..., @@ -58325,20 +59378,20 @@ class TreeView(Container, Scrollable): show_expanders: bool = ..., tooltip_column: int = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -58362,7 +59415,7 @@ class TreeView(Container, Scrollable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -58392,7 +59445,7 @@ class TreeView(Container, Scrollable): def do_expand_collapse_cursor_row( self, logical: bool, expand: bool, open_all: bool ) -> bool: ... - def do_move_cursor(self, step: MovementStep, count: int) -> bool: ... + def do_move_cursor(self, step: _MovementStepValueType, count: int) -> bool: ... def do_row_activated(self, path: TreePath, column: TreeViewColumn) -> None: ... def do_row_collapsed(self, iter: TreeIter, path: TreePath) -> None: ... def do_row_expanded(self, iter: TreeIter, path: TreePath) -> None: ... @@ -58546,13 +59599,13 @@ class TreeView(Container, Scrollable): *data: Unpack[_DataTs], ) -> None: ... def set_drag_dest_row( - self, path: TreePath | None, pos: TreeViewDropPosition + self, path: TreePath | None, pos: _TreeViewDropPositionValueType ) -> None: ... def set_enable_search(self, enable_search: bool) -> None: ... def set_enable_tree_lines(self, enabled: bool) -> None: ... def set_expander_column(self, column: TreeViewColumn | None = None) -> None: ... def set_fixed_height_mode(self, enable: bool) -> None: ... - def set_grid_lines(self, grid_lines: TreeViewGridLines) -> None: ... + def set_grid_lines(self, grid_lines: _TreeViewGridLinesValueType) -> None: ... def set_hadjustment(self, adjustment: Adjustment | None = None) -> None: ... def set_headers_clickable(self, setting: bool) -> None: ... def set_headers_visible(self, headers_visible: bool) -> None: ... @@ -58691,19 +59744,19 @@ class TreeViewAccessible( self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -58745,7 +59798,9 @@ class TreeViewClass(_gi.Struct): @property def cursor_changed(self) -> Callable[[TreeView], None]: ... @property - def move_cursor(self) -> Callable[[TreeView, MovementStep, int], bool]: ... + def move_cursor( + self, + ) -> Callable[[TreeView, _MovementStepValueType, int], bool]: ... @property def select_all(self) -> Callable[[TreeView], bool]: ... @property @@ -58825,7 +59880,7 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): class Props(GObject.InitiallyUnowned.Props): alignment: float @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... clickable: bool expand: bool fixed_width: int @@ -58833,10 +59888,16 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): min_width: int reorderable: bool resizable: bool - sizing: TreeViewColumnSizing + @property + def sizing(self) -> TreeViewColumnSizing: ... + @sizing.setter + def sizing(self, value: _TreeViewColumnSizingValueType) -> None: ... sort_column_id: int sort_indicator: bool - sort_order: SortType + @property + def sort_order(self) -> SortType: ... + @sort_order.setter + def sort_order(self, value: _SortTypeValueType) -> None: ... spacing: int title: str visible: bool @@ -58944,10 +60005,10 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): def set_min_width(self, min_width: int) -> None: ... def set_reorderable(self, reorderable: bool) -> None: ... def set_resizable(self, resizable: bool) -> None: ... - def set_sizing(self, type: TreeViewColumnSizing) -> None: ... + def set_sizing(self, type: _TreeViewColumnSizingValueType) -> None: ... def set_sort_column_id(self, sort_column_id: int) -> None: ... def set_sort_indicator(self, setting: bool) -> None: ... - def set_sort_order(self, order: SortType) -> None: ... + def set_sort_order(self, order: _SortTypeValueType) -> None: ... def set_spacing(self, spacing: int) -> None: ... def set_title(self, title: str) -> None: ... def set_visible(self, visible: bool) -> None: ... @@ -59016,7 +60077,7 @@ class UIManager(GObject.Object, Buildable): path: str, name: str, action: str | None, - type: UIManagerItemType, + type: _UIManagerItemTypeValueType, top: bool, ) -> None: ... def add_ui_from_file(self, filename: str) -> int: ... @@ -59037,7 +60098,7 @@ class UIManager(GObject.Object, Buildable): def get_action(self, path: str) -> Action: ... def get_action_groups(self) -> list[ActionGroup]: ... def get_add_tearoffs(self) -> bool: ... - def get_toplevels(self, types: UIManagerItemType) -> list[Widget]: ... + def get_toplevels(self, types: _UIManagerItemTypeValueType) -> list[Widget]: ... def get_ui(self) -> str: ... def get_widget(self, path: str) -> Widget: ... def insert_action_group( @@ -59268,7 +60329,10 @@ class VBox(Box): """ @type_check_only class Props(Box.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -59277,21 +60341,21 @@ class VBox(Box): def __init__( self, *, - orientation: Orientation = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -59315,7 +60379,7 @@ class VBox(Box): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -59528,7 +60592,10 @@ class VButtonBox(ButtonBox): """ @type_check_only class Props(ButtonBox.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -59537,22 +60604,22 @@ class VButtonBox(ButtonBox): def __init__( self, *, - orientation: Orientation = ..., - layout_style: ButtonBoxStyle = ..., - baseline_position: BaselinePosition = ..., + orientation: _OrientationValueType = ..., + layout_style: _ButtonBoxStyleValueType = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -59576,7 +60643,7 @@ class VButtonBox(ButtonBox): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -59797,7 +60864,10 @@ class VPaned(Paned): """ @type_check_only class Props(Paned.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -59806,21 +60876,21 @@ class VPaned(Paned): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., position: int = ..., position_set: bool = ..., wide_handle: bool = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -59844,7 +60914,7 @@ class VPaned(Paned): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -60069,7 +61139,10 @@ class VScale(Scale): """ @type_check_only class Props(Scale.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -60078,27 +61151,27 @@ class VScale(Scale): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., digits: int = ..., draw_value: bool = ..., has_origin: bool = ..., - value_pos: PositionType = ..., + value_pos: _PositionTypeValueType = ..., adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., - lower_stepper_sensitivity: SensitivityType = ..., + lower_stepper_sensitivity: _SensitivityTypeValueType = ..., restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - upper_stepper_sensitivity: SensitivityType = ..., + upper_stepper_sensitivity: _SensitivityTypeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -60122,7 +61195,7 @@ class VScale(Scale): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -60335,7 +61408,10 @@ class VScrollbar(Scrollbar): """ @type_check_only class Props(Scrollbar.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -60344,23 +61420,23 @@ class VScrollbar(Scrollbar): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., - lower_stepper_sensitivity: SensitivityType = ..., + lower_stepper_sensitivity: _SensitivityTypeValueType = ..., restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - upper_stepper_sensitivity: SensitivityType = ..., + upper_stepper_sensitivity: _SensitivityTypeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -60384,7 +61460,7 @@ class VScrollbar(Scrollbar): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -60571,7 +61647,10 @@ class VSeparator(Separator): """ @type_check_only class Props(Separator.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -60580,15 +61659,15 @@ class VSeparator(Separator): def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -60612,7 +61691,7 @@ class VSeparator(Separator): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -60817,11 +61896,26 @@ class Viewport(Bin, Scrollable): """ @type_check_only class Props(Bin.Props): - shadow_type: ShadowType - hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy - vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def shadow_type(self) -> ShadowType: ... + @shadow_type.setter + def shadow_type(self, value: _ShadowTypeValueType) -> None: ... + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -60832,22 +61926,22 @@ class Viewport(Bin, Scrollable): def __init__( self, *, - shadow_type: ShadowType = ..., + shadow_type: _ShadowTypeValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -60871,7 +61965,7 @@ class Viewport(Bin, Scrollable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -60889,7 +61983,7 @@ class Viewport(Bin, Scrollable): vadjustment: Adjustment | None = None, ) -> Viewport: ... def set_hadjustment(self, adjustment: Adjustment | None = None) -> None: ... - def set_shadow_type(self, type: ShadowType) -> None: ... + def set_shadow_type(self, type: _ShadowTypeValueType) -> None: ... def set_vadjustment(self, adjustment: Adjustment | None = None) -> None: ... class ViewportClass(_gi.Struct): @@ -61135,10 +62229,16 @@ class VolumeButton(ScaleButton): class Props(ScaleButton.Props): use_symbolic: bool action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... related_action: Action use_action_appearance: bool - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -61152,31 +62252,31 @@ class VolumeButton(ScaleButton): action_target: GLib.Variant = ..., related_action: Action = ..., use_action_appearance: bool = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., adjustment: Adjustment = ..., icons: Sequence[str] = ..., - size: IconSize = ..., + size: _IconSizeValueType = ..., value: float = ..., always_show_image: bool = ..., image: Widget | None = ..., - image_position: PositionType = ..., + image_position: _PositionTypeValueType = ..., label: str = ..., - relief: ReliefStyle = ..., + relief: _ReliefStyleValueType = ..., use_stock: bool = ..., use_underline: bool = ..., xalign: float = ..., yalign: float = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -61200,7 +62300,7 @@ class VolumeButton(ScaleButton): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -61392,10 +62492,16 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): @property def composite_child(self) -> bool: ... double_buffered: bool - events: _Gdk3.EventMask + @property + def events(self) -> _Gdk3.EventMask: ... + @events.setter + def events(self, value: _Gdk3._EventMaskValueType) -> None: ... expand: bool focus_on_click: bool - halign: Align + @property + def halign(self) -> Align: ... + @halign.setter + def halign(self, value: _AlignValueType) -> None: ... has_default: bool has_focus: bool has_tooltip: bool @@ -61413,15 +62519,24 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): name: str no_show_all: bool opacity: float - parent: Container | None + @property + def parent(self) -> Container | None: ... + @parent.setter + def parent(self, value: Container) -> None: ... receives_default: bool @property def scale_factor(self) -> int: ... sensitive: bool - style: Style | None + @property + def style(self) -> Style: ... + @style.setter + def style(self, value: Style | None) -> None: ... tooltip_markup: str | None tooltip_text: str | None - valign: Align + @property + def valign(self) -> Align: ... + @valign.setter + def valign(self, value: _AlignValueType) -> None: ... vexpand: bool vexpand_set: bool visible: bool @@ -61442,10 +62557,10 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -61469,7 +62584,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -61481,11 +62596,11 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): accel_signal: str, accel_group: AccelGroup, accel_key: int, - accel_mods: _Gdk3.ModifierType, - accel_flags: AccelFlags, + accel_mods: _Gdk3._ModifierTypeValueType, + accel_flags: _AccelFlagsValueType, ) -> None: ... def add_device_events( - self, device: _Gdk3.Device, events: _Gdk3.EventMask + self, device: _Gdk3.Device, events: _Gdk3._EventMaskValueType ) -> None: ... def add_events(self, events: int) -> None: ... def add_mnemonic_label(self, label: Widget) -> None: ... @@ -61501,10 +62616,10 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): self, name: str, internal_child: bool, struct_offset: int ) -> None: ... def can_activate_accel(self, signal_id: int) -> bool: ... - def child_focus(self, direction: DirectionType) -> bool: ... + def child_focus(self, direction: _DirectionTypeValueType) -> bool: ... def child_notify(self, child_property: str) -> None: ... def class_path(self) -> tuple[int, str, str]: ... - def compute_expand(self, orientation: Orientation) -> bool: ... + def compute_expand(self, orientation: _OrientationValueType) -> bool: ... def create_pango_context(self) -> Pango.Context: ... def create_pango_layout(self, text: str | None = None) -> Pango.Layout: ... def destroy(self) -> None: ... @@ -61516,14 +62631,14 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): ) -> None: ... def do_adjust_size_allocation( self, - orientation: Orientation, + orientation: _OrientationValueType, minimum_size: int, natural_size: int, allocated_pos: int, allocated_size: int, ) -> None: ... def do_adjust_size_request( - self, orientation: Orientation, minimum_size: int, natural_size: int + self, orientation: _OrientationValueType, minimum_size: int, natural_size: int ) -> None: ... def do_button_press_event(self, event: _Gdk3.EventButton) -> bool: ... def do_button_release_event(self, event: _Gdk3.EventButton) -> bool: ... @@ -61536,7 +62651,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def do_delete_event(self, event: _Gdk3.EventAny) -> bool: ... def do_destroy(self) -> None: ... def do_destroy_event(self, event: _Gdk3.EventAny) -> bool: ... - def do_direction_changed(self, previous_direction: TextDirection) -> None: ... + def do_direction_changed( + self, previous_direction: _TextDirectionValueType + ) -> None: ... def do_dispatch_child_properties_changed( self, n_pspecs: int, pspecs: GObject.ParamSpec ) -> None: ... @@ -61563,7 +62680,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): ) -> bool: ... def do_drag_end(self, context: _Gdk3.DragContext) -> None: ... def do_drag_failed( - self, context: _Gdk3.DragContext, result: DragResult + self, context: _Gdk3.DragContext, result: _DragResultValueType ) -> bool: ... def do_drag_leave(self, context: _Gdk3.DragContext, time_: int) -> None: ... def do_drag_motion( @@ -61572,7 +62689,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def do_draw(self, cr: cairo.Context[_SomeSurface]) -> bool: ... def do_enter_notify_event(self, event: _Gdk3.EventCrossing) -> bool: ... def do_event(self, event: _Gdk3.Event) -> bool: ... - def do_focus(self, direction: DirectionType) -> bool: ... + def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... def do_focus_in_event(self, event: _Gdk3.EventFocus) -> bool: ... def do_focus_out_event(self, event: _Gdk3.EventFocus) -> bool: ... def do_get_accessible(self) -> Atk.Object: ... @@ -61591,13 +62708,13 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def do_hierarchy_changed(self, previous_toplevel: Widget) -> None: ... def do_key_press_event(self, event: _Gdk3.EventKey) -> bool: ... def do_key_release_event(self, event: _Gdk3.EventKey) -> bool: ... - def do_keynav_failed(self, direction: DirectionType) -> bool: ... + def do_keynav_failed(self, direction: _DirectionTypeValueType) -> bool: ... def do_leave_notify_event(self, event: _Gdk3.EventCrossing) -> bool: ... def do_map(self) -> None: ... def do_map_event(self, event: _Gdk3.EventAny) -> bool: ... def do_mnemonic_activate(self, group_cycling: bool) -> bool: ... def do_motion_notify_event(self, event: _Gdk3.EventMotion) -> bool: ... - def do_move_focus(self, direction: DirectionType) -> None: ... + def do_move_focus(self, direction: _DirectionTypeValueType) -> None: ... def do_parent_set(self, previous_parent: Widget) -> None: ... def do_popup_menu(self) -> bool: ... def do_property_notify_event(self, event: _Gdk3.EventProperty) -> bool: ... @@ -61621,10 +62738,12 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def do_selection_request_event(self, event: _Gdk3.EventSelection) -> bool: ... def do_show(self) -> None: ... def do_show_all(self) -> None: ... - def do_show_help(self, help_type: WidgetHelpType) -> bool: ... + def do_show_help(self, help_type: _WidgetHelpTypeValueType) -> bool: ... def do_size_allocate(self, allocation: _Gdk3.Rectangle) -> None: ... - def do_state_changed(self, previous_state: StateType) -> None: ... - def do_state_flags_changed(self, previous_state_flags: StateFlags) -> None: ... + def do_state_changed(self, previous_state: _StateTypeValueType) -> None: ... + def do_state_flags_changed( + self, previous_state_flags: _StateFlagsValueType + ) -> None: ... def do_style_set(self, previous_style: Style) -> None: ... def do_style_updated(self) -> None: ... def do_touch_event(self, event: _Gdk3.EventTouch) -> bool: ... @@ -61636,14 +62755,14 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def drag_begin( self, targets: TargetList, - actions: _Gdk3.DragAction, + actions: _Gdk3._DragActionValueType, button: int, event: _Gdk3.Event | None = None, ) -> _Gdk3.DragContext: ... def drag_begin_with_coordinates( self, targets: TargetList, - actions: _Gdk3.DragAction, + actions: _Gdk3._DragActionValueType, button: int, event: _Gdk3.Event | None, x: int, @@ -61662,14 +62781,14 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def drag_dest_get_track_motion(self) -> bool: ... def drag_dest_set( self, - flags: DestDefaults, + flags: _DestDefaultsValueType, targets: Sequence[TargetEntry] | None, - actions: _Gdk3.DragAction, + actions: _Gdk3._DragActionValueType, ) -> None: ... def drag_dest_set_proxy( self, proxy_window: _Gdk3.Window, - protocol: _Gdk3.DragProtocol, + protocol: _Gdk3._DragProtocolValueType, use_coordinates: bool, ) -> None: ... # override @@ -61686,9 +62805,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def drag_source_get_target_list(self) -> TargetList | None: ... def drag_source_set( self, - start_button_mask: _Gdk3.ModifierType, + start_button_mask: _Gdk3._ModifierTypeValueType, targets: Sequence[TargetEntry] | None, - actions: _Gdk3.DragAction, + actions: _Gdk3._DragActionValueType, ) -> None: ... def drag_source_set_icon_gicon(self, icon: Gio.Icon) -> None: ... def drag_source_set_icon_name(self, icon_name: str) -> None: ... @@ -61748,7 +62867,9 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def get_margin_right(self) -> int: ... def get_margin_start(self) -> int: ... def get_margin_top(self) -> int: ... - def get_modifier_mask(self, intent: _Gdk3.ModifierIntent) -> _Gdk3.ModifierType: ... + def get_modifier_mask( + self, intent: _Gdk3._ModifierIntentValueType + ) -> _Gdk3.ModifierType: ... def get_modifier_style(self) -> RcStyle: ... def get_name(self) -> str: ... def get_no_show_all(self) -> bool: ... @@ -61824,7 +62945,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def is_sensitive(self) -> bool: ... def is_toplevel(self) -> bool: ... def is_visible(self) -> bool: ... - def keynav_failed(self, direction: DirectionType) -> bool: ... + def keynav_failed(self, direction: _DirectionTypeValueType) -> bool: ... def list_accel_closures(self) -> list[Callable[..., Any]]: ... def list_action_prefixes(self) -> list[str]: ... def list_mnemonic_labels(self) -> list[Widget]: ... @@ -61832,23 +62953,27 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def map(self) -> None: ... def mnemonic_activate(self, group_cycling: bool) -> bool: ... def modify_base( - self, state: StateType, color: _Gdk3.Color | None = None + self, state: _StateTypeValueType, color: _Gdk3.Color | None = None + ) -> None: ... + def modify_bg( + self, state: _StateTypeValueType, color: _Gdk3.Color | None = None ) -> None: ... - def modify_bg(self, state: StateType, color: _Gdk3.Color | None = None) -> None: ... def modify_cursor( self, primary: _Gdk3.Color | None = None, secondary: _Gdk3.Color | None = None ) -> None: ... - def modify_fg(self, state: StateType, color: _Gdk3.Color | None = None) -> None: ... + def modify_fg( + self, state: _StateTypeValueType, color: _Gdk3.Color | None = None + ) -> None: ... def modify_font(self, font_desc: Pango.FontDescription | None = None) -> None: ... def modify_style(self, style: RcStyle) -> None: ... def modify_text( - self, state: StateType, color: _Gdk3.Color | None = None + self, state: _StateTypeValueType, color: _Gdk3.Color | None = None ) -> None: ... def override_background_color( - self, state: StateFlags, color: _Gdk3.RGBA | None = None + self, state: _StateFlagsValueType, color: _Gdk3.RGBA | None = None ) -> None: ... def override_color( - self, state: StateFlags, color: _Gdk3.RGBA | None = None + self, state: _StateFlagsValueType, color: _Gdk3.RGBA | None = None ) -> None: ... def override_cursor( self, @@ -61875,7 +63000,10 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def region_intersect(self, region: cairo.Region) -> cairo.Region: ... def register_window(self, window: _Gdk3.Window) -> None: ... def remove_accelerator( - self, accel_group: AccelGroup, accel_key: int, accel_mods: _Gdk3.ModifierType + self, + accel_group: AccelGroup, + accel_key: int, + accel_mods: _Gdk3._ModifierTypeValueType, ) -> bool: ... def remove_mnemonic_label(self, label: Widget) -> None: ... def remove_tick_callback(self, id: int) -> None: ... @@ -61893,7 +63021,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def set_accel_path( self, accel_path: str | None = None, accel_group: AccelGroup | None = None ) -> None: ... - def set_accessible_role(self, role: Atk.Role) -> None: ... + def set_accessible_role(self, role: Atk._RoleValueType) -> None: ... def set_accessible_type(self, type: type[Any]) -> None: ... def set_allocation(self, allocation: _Gdk3.Rectangle) -> None: ... def set_app_paintable(self, app_paintable: bool) -> None: ... @@ -61920,18 +63048,18 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): ) -> None: ... def set_css_name(self, name: str) -> None: ... @staticmethod - def set_default_direction(dir: TextDirection) -> None: ... + def set_default_direction(dir: _TextDirectionValueType) -> None: ... def set_device_enabled(self, device: _Gdk3.Device, enabled: bool) -> None: ... def set_device_events( - self, device: _Gdk3.Device, events: _Gdk3.EventMask + self, device: _Gdk3.Device, events: _Gdk3._EventMaskValueType ) -> None: ... - def set_direction(self, dir: TextDirection) -> None: ... + def set_direction(self, dir: _TextDirectionValueType) -> None: ... def set_double_buffered(self, double_buffered: bool) -> None: ... def set_events(self, events: int) -> None: ... def set_focus_on_click(self, focus_on_click: bool) -> None: ... def set_font_map(self, font_map: Pango.FontMap | None = None) -> None: ... def set_font_options(self, options: cairo.FontOptions | None = None) -> None: ... - def set_halign(self, align: Align) -> None: ... + def set_halign(self, align: _AlignValueType) -> None: ... def set_has_tooltip(self, has_tooltip: bool) -> None: ... def set_has_window(self, has_window: bool) -> None: ... def set_hexpand(self, expand: bool) -> None: ... @@ -61953,8 +63081,8 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def set_redraw_on_allocate(self, redraw_on_allocate: bool) -> None: ... def set_sensitive(self, sensitive: bool) -> None: ... def set_size_request(self, width: int, height: int) -> None: ... - def set_state(self, state: StateType) -> None: ... - def set_state_flags(self, flags: StateFlags, clear: bool) -> None: ... + def set_state(self, state: _StateTypeValueType) -> None: ... + def set_state_flags(self, flags: _StateFlagsValueType, clear: bool) -> None: ... def set_style(self, style: Style | None = None) -> None: ... def set_support_multidevice(self, support_multidevice: bool) -> None: ... def set_template(self, template_bytes: GLib.Bytes) -> None: ... @@ -61962,7 +63090,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def set_tooltip_markup(self, markup: str | None = None) -> None: ... def set_tooltip_text(self, text: str | None = None) -> None: ... def set_tooltip_window(self, custom_window: Window | None = None) -> None: ... - def set_valign(self, align: Align) -> None: ... + def set_valign(self, align: _AlignValueType) -> None: ... def set_vexpand(self, expand: bool) -> None: ... def set_vexpand_set(self, set: bool) -> None: ... def set_visible(self, visible: bool) -> None: ... @@ -61990,7 +63118,7 @@ class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable): def unparent(self) -> None: ... def unrealize(self) -> None: ... def unregister_window(self, window: _Gdk3.Window) -> None: ... - def unset_state_flags(self, flags: StateFlags) -> None: ... + def unset_state_flags(self, flags: _StateFlagsValueType) -> None: ... class WidgetAccessible(Accessible, Atk.Component): """ @@ -62067,19 +63195,19 @@ class WidgetAccessible(Accessible, Atk.Component): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -62133,9 +63261,9 @@ class WidgetClass(_gi.Struct): @property def size_allocate(self) -> Callable[[Widget, _Gdk3.Rectangle], None]: ... @property - def state_changed(self) -> Callable[[Widget, StateType], None]: ... + def state_changed(self) -> Callable[[Widget, _StateTypeValueType], None]: ... @property - def state_flags_changed(self) -> Callable[[Widget, StateFlags], None]: ... + def state_flags_changed(self) -> Callable[[Widget, _StateFlagsValueType], None]: ... @property def parent_set(self) -> Callable[[Widget, Widget], None]: ... @property @@ -62143,7 +63271,9 @@ class WidgetClass(_gi.Struct): @property def style_set(self) -> Callable[[Widget, Style], None]: ... @property - def direction_changed(self) -> Callable[[Widget, TextDirection], None]: ... + def direction_changed( + self, + ) -> Callable[[Widget, _TextDirectionValueType], None]: ... @property def grab_notify(self) -> Callable[[Widget, bool], None]: ... @property @@ -62169,11 +63299,11 @@ class WidgetClass(_gi.Struct): @property def grab_focus(self) -> Callable[[Widget], None]: ... @property - def focus(self) -> Callable[[Widget, DirectionType], bool]: ... + def focus(self) -> Callable[[Widget, _DirectionTypeValueType], bool]: ... @property - def move_focus(self) -> Callable[[Widget, DirectionType], None]: ... + def move_focus(self) -> Callable[[Widget, _DirectionTypeValueType], None]: ... @property - def keynav_failed(self) -> Callable[[Widget, DirectionType], bool]: ... + def keynav_failed(self) -> Callable[[Widget, _DirectionTypeValueType], bool]: ... @property def event(self) -> Callable[[Widget, _Gdk3.Event], bool]: ... @property @@ -62271,11 +63401,11 @@ class WidgetClass(_gi.Struct): @property def drag_failed( self, - ) -> Callable[[Widget, _Gdk3.DragContext, DragResult], bool]: ... + ) -> Callable[[Widget, _Gdk3.DragContext, _DragResultValueType], bool]: ... @property def popup_menu(self) -> Callable[[Widget], bool]: ... @property - def show_help(self) -> Callable[[Widget, WidgetHelpType], bool]: ... + def show_help(self) -> Callable[[Widget, _WidgetHelpTypeValueType], bool]: ... @property def get_accessible(self) -> Callable[[Widget], Atk.Object]: ... @property @@ -62291,11 +63421,11 @@ class WidgetClass(_gi.Struct): @property def adjust_size_request( self, - ) -> Callable[[Widget, Orientation, int, int], None]: ... + ) -> Callable[[Widget, _OrientationValueType, int, int], None]: ... @property def adjust_size_allocation( self, - ) -> Callable[[Widget, Orientation, int, int, int, int], None]: ... + ) -> Callable[[Widget, _OrientationValueType, int, int, int, int], None]: ... @property def style_updated(self) -> Callable[[Widget], None]: ... @property @@ -62322,7 +63452,7 @@ class WidgetClass(_gi.Struct): def get_css_name(self) -> str: ... def install_style_property(self, pspec: GObject.ParamSpec) -> None: ... def list_style_properties(self) -> list[GObject.ParamSpec]: ... - def set_accessible_role(self, role: Atk.Role) -> None: ... + def set_accessible_role(self, role: Atk._RoleValueType) -> None: ... def set_accessible_type(self, type: type[Any]) -> None: ... def set_connect_func( self, @@ -62364,7 +63494,9 @@ class WidgetPath(GObject.GBoxed): def has_parent(self, type: type[Any]) -> bool: ... def is_type(self, type: type[Any]) -> bool: ... def iter_add_class(self, pos: int, name: str) -> None: ... - def iter_add_region(self, pos: int, name: str, flags: RegionFlags) -> None: ... + def iter_add_region( + self, pos: int, name: str, flags: _RegionFlagsValueType + ) -> None: ... def iter_clear_classes(self, pos: int) -> None: ... def iter_clear_regions(self, pos: int) -> None: ... def iter_get_name(self, pos: int) -> str | None: ... @@ -62386,7 +63518,7 @@ class WidgetPath(GObject.GBoxed): def iter_set_name(self, pos: int, name: str) -> None: ... def iter_set_object_name(self, pos: int, name: str | None = None) -> None: ... def iter_set_object_type(self, pos: int, type: type[Any]) -> None: ... - def iter_set_state(self, pos: int, state: StateFlags) -> None: ... + def iter_set_state(self, pos: int, state: _StateFlagsValueType) -> None: ... def length(self) -> int: ... @classmethod def new(cls) -> WidgetPath: ... @@ -62663,7 +63795,10 @@ class Window(Bin): destroy_with_parent: bool focus_on_map: bool focus_visible: bool - gravity: _Gdk3.Gravity + @property + def gravity(self) -> _Gdk3.Gravity: ... + @gravity.setter + def gravity(self, value: _Gdk3._GravityValueType) -> None: ... has_resize_grip: bool @property def has_toplevel_focus(self) -> bool: ... @@ -62679,18 +63814,33 @@ class Window(Bin): resizable: bool @property def resize_grip_visible(self) -> bool: ... - role: str | None + @property + def role(self) -> str | None: ... + @role.setter + def role(self, value: str) -> None: ... screen: _Gdk3.Screen skip_pager_hint: bool skip_taskbar_hint: bool - startup_id: str - title: str | None + @property + def startup_id(self) -> Never: ... + @startup_id.setter + def startup_id(self, value: str) -> None: ... + @property + def title(self) -> str | None: ... + @title.setter + def title(self, value: str) -> None: ... transient_for: Window | None @property def type(self) -> WindowType: ... - type_hint: _Gdk3.WindowTypeHint + @property + def type_hint(self) -> _Gdk3.WindowTypeHint: ... + @type_hint.setter + def type_hint(self, value: _Gdk3._WindowTypeHintValueType) -> None: ... urgency_hint: bool - window_position: WindowPosition + @property + def window_position(self) -> WindowPosition: ... + @window_position.setter + def window_position(self, value: _WindowPositionValueType) -> None: ... @property def props(self) -> Props: ... @@ -62711,7 +63861,7 @@ class Window(Bin): destroy_with_parent: bool = ..., focus_on_map: bool = ..., focus_visible: bool = ..., - gravity: _Gdk3.Gravity = ..., + gravity: _Gdk3._GravityValueType = ..., has_resize_grip: bool = ..., hide_titlebar_when_maximized: bool = ..., icon: GdkPixbuf.Pixbuf | None = ..., @@ -62726,21 +63876,21 @@ class Window(Bin): startup_id: str = ..., title: str = ..., transient_for: Window | None = ..., - type: WindowType = ..., - type_hint: _Gdk3.WindowTypeHint = ..., + type: _WindowTypeValueType = ..., + type_hint: _Gdk3._WindowTypeHintValueType = ..., urgency_hint: bool = ..., - window_position: WindowPosition = ..., + window_position: _WindowPositionValueType = ..., border_width: int = ..., - child: Widget = ..., - resize_mode: ResizeMode = ..., + child: Widget | None = ..., + resize_mode: _ResizeModeValueType = ..., app_paintable: bool = ..., can_default: bool = ..., can_focus: bool = ..., double_buffered: bool = ..., - events: _Gdk3.EventMask = ..., + events: _Gdk3._EventMaskValueType = ..., expand: bool = ..., focus_on_click: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_default: bool = ..., has_focus: bool = ..., has_tooltip: bool = ..., @@ -62764,7 +63914,7 @@ class Window(Bin): style: Style | None = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -62780,7 +63930,7 @@ class Window(Bin): ) -> None: ... def begin_resize_drag( self, - edge: _Gdk3.WindowEdge, + edge: _Gdk3._WindowEdgeValueType, button: int, root_x: int, root_y: int, @@ -62843,10 +63993,12 @@ class Window(Bin): @staticmethod def list_toplevels() -> list[Widget]: ... def maximize(self) -> None: ... - def mnemonic_activate(self, keyval: int, modifier: _Gdk3.ModifierType) -> bool: ... + def mnemonic_activate( + self, keyval: int, modifier: _Gdk3._ModifierTypeValueType + ) -> bool: ... def move(self, x: int, y: int) -> None: ... @classmethod - def new(cls, type: WindowType) -> Window: ... + def new(cls, type: _WindowTypeValueType) -> Window: ... def parse_geometry(self, geometry: str) -> bool: ... def present(self) -> None: ... def present_with_time(self, timestamp: int) -> None: ... @@ -62883,9 +64035,9 @@ class Window(Bin): self, geometry_widget: Widget | None, geometry: _Gdk3.Geometry | None, - geom_mask: _Gdk3.WindowHints, + geom_mask: _Gdk3._WindowHintsValueType, ) -> None: ... - def set_gravity(self, gravity: _Gdk3.Gravity) -> None: ... + def set_gravity(self, gravity: _Gdk3._GravityValueType) -> None: ... def set_has_resize_grip(self, value: bool) -> None: ... def set_has_user_ref_count(self, setting: bool) -> None: ... def set_hide_titlebar_when_maximized(self, setting: bool) -> None: ... @@ -62897,11 +64049,11 @@ class Window(Bin): def set_interactive_debugging(enable: bool) -> None: ... def set_keep_above(self, setting: bool) -> None: ... def set_keep_below(self, setting: bool) -> None: ... - def set_mnemonic_modifier(self, modifier: _Gdk3.ModifierType) -> None: ... + def set_mnemonic_modifier(self, modifier: _Gdk3._ModifierTypeValueType) -> None: ... def set_mnemonics_visible(self, setting: bool) -> None: ... def set_modal(self, modal: bool) -> None: ... def set_opacity(self, opacity: float) -> None: ... - def set_position(self, position: WindowPosition) -> None: ... + def set_position(self, position: _WindowPositionValueType) -> None: ... def set_resizable(self, resizable: bool) -> None: ... def set_role(self, role: str) -> None: ... def set_screen(self, screen: _Gdk3.Screen) -> None: ... @@ -62911,7 +64063,7 @@ class Window(Bin): def set_title(self, title: str) -> None: ... def set_titlebar(self, titlebar: Widget | None = None) -> None: ... def set_transient_for(self, parent: Window | None = None) -> None: ... - def set_type_hint(self, hint: _Gdk3.WindowTypeHint) -> None: ... + def set_type_hint(self, hint: _Gdk3._WindowTypeHintValueType) -> None: ... def set_urgency_hint(self, setting: bool) -> None: ... def set_wmclass(self, wmclass_name: str, wmclass_class: str) -> None: ... def stick(self) -> None: ... @@ -63011,19 +64163,19 @@ class WindowAccessible(ContainerAccessible, Atk.Window): self, *, widget: Widget | None = ..., - accessible_description: str = ..., - accessible_help_text: str = ..., + accessible_description: str | None = ..., + accessible_help_text: str | None = ..., accessible_id: str = ..., - accessible_name: str = ..., - accessible_parent: Atk.Object = ..., - accessible_role: Atk.Role = ..., - accessible_table_caption: str = ..., - accessible_table_caption_object: Atk.Object = ..., - accessible_table_column_description: str = ..., - accessible_table_column_header: Atk.Object = ..., - accessible_table_row_description: str = ..., - accessible_table_row_header: Atk.Object = ..., - accessible_table_summary: Atk.Object = ..., + accessible_name: str | None = ..., + accessible_parent: Atk.Object | None = ..., + accessible_role: Atk._RoleValueType = ..., + accessible_table_caption: str | None = ..., + accessible_table_caption_object: Atk.Object | None = ..., + accessible_table_column_description: str | None = ..., + accessible_table_column_header: Atk.Object | None = ..., + accessible_table_row_description: str | None = ..., + accessible_table_row_header: Atk.Object | None = ..., + accessible_table_summary: Atk.Object | None = ..., accessible_value: float = ..., ) -> None: ... @@ -63180,17 +64332,52 @@ class AccelFlags(GObject.GFlags): MASK = 7 VISIBLE = 1 +_AccelFlagsLiteralType: TypeAlias = Literal[ + "GTK_ACCEL_LOCKED", + "GTK_ACCEL_MASK", + "GTK_ACCEL_VISIBLE", + "locked", + "mask", + "visible", +] +_AccelFlagsValueType: TypeAlias = ( + AccelFlags | _AccelFlagsLiteralType | tuple[_AccelFlagsLiteralType, ...] +) + class ApplicationInhibitFlags(GObject.GFlags): IDLE = 8 LOGOUT = 1 SUSPEND = 4 SWITCH = 2 +_ApplicationInhibitFlagsLiteralType: TypeAlias = Literal[ + "GTK_APPLICATION_INHIBIT_IDLE", + "GTK_APPLICATION_INHIBIT_LOGOUT", + "GTK_APPLICATION_INHIBIT_SUSPEND", + "GTK_APPLICATION_INHIBIT_SWITCH", + "idle", + "logout", + "suspend", + "switch", +] +_ApplicationInhibitFlagsValueType: TypeAlias = ( + ApplicationInhibitFlags + | _ApplicationInhibitFlagsLiteralType + | tuple[_ApplicationInhibitFlagsLiteralType, ...] +) + class AttachOptions(GObject.GFlags): EXPAND = 1 FILL = 4 SHRINK = 2 +_AttachOptionsLiteralType: TypeAlias = Literal[ + "GTK_EXPAND", "GTK_FILL", "GTK_SHRINK", "expand", "fill", "shrink" +] +_AttachOptionsValueType: TypeAlias = ( + AttachOptions | _AttachOptionsLiteralType | tuple[_AttachOptionsLiteralType, ...] +) + class CalendarDisplayOptions(GObject.GFlags): NO_MONTH_CHANGE = 4 SHOW_DAY_NAMES = 2 @@ -63198,6 +64385,24 @@ class CalendarDisplayOptions(GObject.GFlags): SHOW_HEADING = 1 SHOW_WEEK_NUMBERS = 8 +_CalendarDisplayOptionsLiteralType: TypeAlias = Literal[ + "GTK_CALENDAR_NO_MONTH_CHANGE", + "GTK_CALENDAR_SHOW_DAY_NAMES", + "GTK_CALENDAR_SHOW_DETAILS", + "GTK_CALENDAR_SHOW_HEADING", + "GTK_CALENDAR_SHOW_WEEK_NUMBERS", + "no-month-change", + "show-day-names", + "show-details", + "show-heading", + "show-week-numbers", +] +_CalendarDisplayOptionsValueType: TypeAlias = ( + CalendarDisplayOptions + | _CalendarDisplayOptionsLiteralType + | tuple[_CalendarDisplayOptionsLiteralType, ...] +) + class CellRendererState(GObject.GFlags): EXPANDABLE = 32 EXPANDED = 64 @@ -63207,6 +64412,28 @@ class CellRendererState(GObject.GFlags): SELECTED = 1 SORTED = 8 +_CellRendererStateLiteralType: TypeAlias = Literal[ + "GTK_CELL_RENDERER_EXPANDABLE", + "GTK_CELL_RENDERER_EXPANDED", + "GTK_CELL_RENDERER_FOCUSED", + "GTK_CELL_RENDERER_INSENSITIVE", + "GTK_CELL_RENDERER_PRELIT", + "GTK_CELL_RENDERER_SELECTED", + "GTK_CELL_RENDERER_SORTED", + "expandable", + "expanded", + "focused", + "insensitive", + "prelit", + "selected", + "sorted", +] +_CellRendererStateValueType: TypeAlias = ( + CellRendererState + | _CellRendererStateLiteralType + | tuple[_CellRendererStateLiteralType, ...] +) + class DebugFlag(GObject.GFlags): ACTIONS = 524288 BASELINES = 16384 @@ -63231,17 +64458,93 @@ class DebugFlag(GObject.GFlags): TREE = 8 UPDATES = 16 +_DebugFlagLiteralType: TypeAlias = Literal[ + "GTK_DEBUG_ACTIONS", + "GTK_DEBUG_BASELINES", + "GTK_DEBUG_BUILDER", + "GTK_DEBUG_GEOMETRY", + "GTK_DEBUG_ICONTHEME", + "GTK_DEBUG_INTERACTIVE", + "GTK_DEBUG_KEYBINDINGS", + "GTK_DEBUG_LAYOUT", + "GTK_DEBUG_MISC", + "GTK_DEBUG_MODULES", + "GTK_DEBUG_MULTIHEAD", + "GTK_DEBUG_NO_CSS_CACHE", + "GTK_DEBUG_NO_PIXEL_CACHE", + "GTK_DEBUG_PIXEL_CACHE", + "GTK_DEBUG_PLUGSOCKET", + "GTK_DEBUG_PRINTING", + "GTK_DEBUG_RESIZE", + "GTK_DEBUG_SIZE_REQUEST", + "GTK_DEBUG_TEXT", + "GTK_DEBUG_TOUCHSCREEN", + "GTK_DEBUG_TREE", + "GTK_DEBUG_UPDATES", + "actions", + "baselines", + "builder", + "geometry", + "icontheme", + "interactive", + "keybindings", + "layout", + "misc", + "modules", + "multihead", + "no-css-cache", + "no-pixel-cache", + "pixel-cache", + "plugsocket", + "printing", + "resize", + "size-request", + "text", + "touchscreen", + "tree", + "updates", +] +_DebugFlagValueType: TypeAlias = ( + DebugFlag | _DebugFlagLiteralType | tuple[_DebugFlagLiteralType, ...] +) + class DestDefaults(GObject.GFlags): ALL = 7 DROP = 4 HIGHLIGHT = 2 MOTION = 1 +_DestDefaultsLiteralType: TypeAlias = Literal[ + "GTK_DEST_DEFAULT_ALL", + "GTK_DEST_DEFAULT_DROP", + "GTK_DEST_DEFAULT_HIGHLIGHT", + "GTK_DEST_DEFAULT_MOTION", + "all", + "drop", + "highlight", + "motion", +] +_DestDefaultsValueType: TypeAlias = ( + DestDefaults | _DestDefaultsLiteralType | tuple[_DestDefaultsLiteralType, ...] +) + class DialogFlags(GObject.GFlags): DESTROY_WITH_PARENT = 2 MODAL = 1 USE_HEADER_BAR = 4 +_DialogFlagsLiteralType: TypeAlias = Literal[ + "GTK_DIALOG_DESTROY_WITH_PARENT", + "GTK_DIALOG_MODAL", + "GTK_DIALOG_USE_HEADER_BAR", + "destroy-with-parent", + "modal", + "use-header-bar", +] +_DialogFlagsValueType: TypeAlias = ( + DialogFlags | _DialogFlagsLiteralType | tuple[_DialogFlagsLiteralType, ...] +) + class EventControllerScrollFlags(GObject.GFlags): BOTH_AXES = 3 DISCRETE = 4 @@ -63250,12 +64553,48 @@ class EventControllerScrollFlags(GObject.GFlags): NONE = 0 VERTICAL = 1 +_EventControllerScrollFlagsLiteralType: TypeAlias = Literal[ + "GTK_EVENT_CONTROLLER_SCROLL_BOTH_AXES", + "GTK_EVENT_CONTROLLER_SCROLL_DISCRETE", + "GTK_EVENT_CONTROLLER_SCROLL_HORIZONTAL", + "GTK_EVENT_CONTROLLER_SCROLL_KINETIC", + "GTK_EVENT_CONTROLLER_SCROLL_NONE", + "GTK_EVENT_CONTROLLER_SCROLL_VERTICAL", + "both-axes", + "discrete", + "horizontal", + "kinetic", + "none", + "vertical", +] +_EventControllerScrollFlagsValueType: TypeAlias = ( + EventControllerScrollFlags + | _EventControllerScrollFlagsLiteralType + | tuple[_EventControllerScrollFlagsLiteralType, ...] +) + class FileFilterFlags(GObject.GFlags): DISPLAY_NAME = 4 FILENAME = 1 MIME_TYPE = 8 URI = 2 +_FileFilterFlagsLiteralType: TypeAlias = Literal[ + "GTK_FILE_FILTER_DISPLAY_NAME", + "GTK_FILE_FILTER_FILENAME", + "GTK_FILE_FILTER_MIME_TYPE", + "GTK_FILE_FILTER_URI", + "display-name", + "filename", + "mime-type", + "uri", +] +_FileFilterFlagsValueType: TypeAlias = ( + FileFilterFlags + | _FileFilterFlagsLiteralType + | tuple[_FileFilterFlagsLiteralType, ...] +) + class FontChooserLevel(GObject.GFlags): FAMILY = 0 FEATURES = 8 @@ -63263,6 +64602,24 @@ class FontChooserLevel(GObject.GFlags): STYLE = 1 VARIATIONS = 4 +_FontChooserLevelLiteralType: TypeAlias = Literal[ + "GTK_FONT_CHOOSER_LEVEL_FAMILY", + "GTK_FONT_CHOOSER_LEVEL_FEATURES", + "GTK_FONT_CHOOSER_LEVEL_SIZE", + "GTK_FONT_CHOOSER_LEVEL_STYLE", + "GTK_FONT_CHOOSER_LEVEL_VARIATIONS", + "family", + "features", + "size", + "style", + "variations", +] +_FontChooserLevelValueType: TypeAlias = ( + FontChooserLevel + | _FontChooserLevelLiteralType + | tuple[_FontChooserLevelLiteralType, ...] +) + class IconLookupFlags(GObject.GFlags): DIR_LTR = 128 DIR_RTL = 256 @@ -63274,6 +64631,32 @@ class IconLookupFlags(GObject.GFlags): NO_SVG = 1 USE_BUILTIN = 4 +_IconLookupFlagsLiteralType: TypeAlias = Literal[ + "GTK_ICON_LOOKUP_DIR_LTR", + "GTK_ICON_LOOKUP_DIR_RTL", + "GTK_ICON_LOOKUP_FORCE_REGULAR", + "GTK_ICON_LOOKUP_FORCE_SIZE", + "GTK_ICON_LOOKUP_FORCE_SVG", + "GTK_ICON_LOOKUP_FORCE_SYMBOLIC", + "GTK_ICON_LOOKUP_GENERIC_FALLBACK", + "GTK_ICON_LOOKUP_NO_SVG", + "GTK_ICON_LOOKUP_USE_BUILTIN", + "dir-ltr", + "dir-rtl", + "force-regular", + "force-size", + "force-svg", + "force-symbolic", + "generic-fallback", + "no-svg", + "use-builtin", +] +_IconLookupFlagsValueType: TypeAlias = ( + IconLookupFlags + | _IconLookupFlagsLiteralType + | tuple[_IconLookupFlagsLiteralType, ...] +) + class InputHints(GObject.GFlags): EMOJI = 512 INHIBIT_OSK = 128 @@ -63288,6 +64671,36 @@ class InputHints(GObject.GFlags): VERTICAL_WRITING = 256 WORD_COMPLETION = 4 +_InputHintsLiteralType: TypeAlias = Literal[ + "GTK_INPUT_HINT_EMOJI", + "GTK_INPUT_HINT_INHIBIT_OSK", + "GTK_INPUT_HINT_LOWERCASE", + "GTK_INPUT_HINT_NONE", + "GTK_INPUT_HINT_NO_EMOJI", + "GTK_INPUT_HINT_NO_SPELLCHECK", + "GTK_INPUT_HINT_SPELLCHECK", + "GTK_INPUT_HINT_UPPERCASE_CHARS", + "GTK_INPUT_HINT_UPPERCASE_SENTENCES", + "GTK_INPUT_HINT_UPPERCASE_WORDS", + "GTK_INPUT_HINT_VERTICAL_WRITING", + "GTK_INPUT_HINT_WORD_COMPLETION", + "emoji", + "inhibit-osk", + "lowercase", + "no-emoji", + "no-spellcheck", + "none", + "spellcheck", + "uppercase-chars", + "uppercase-sentences", + "uppercase-words", + "vertical-writing", + "word-completion", +] +_InputHintsValueType: TypeAlias = ( + InputHints | _InputHintsLiteralType | tuple[_InputHintsLiteralType, ...] +) + class JunctionSides(GObject.GFlags): BOTTOM = 12 CORNER_BOTTOMLEFT = 4 @@ -63299,17 +64712,62 @@ class JunctionSides(GObject.GFlags): RIGHT = 10 TOP = 3 +_JunctionSidesLiteralType: TypeAlias = Literal[ + "GTK_JUNCTION_BOTTOM", + "GTK_JUNCTION_CORNER_BOTTOMLEFT", + "GTK_JUNCTION_CORNER_BOTTOMRIGHT", + "GTK_JUNCTION_CORNER_TOPLEFT", + "GTK_JUNCTION_CORNER_TOPRIGHT", + "GTK_JUNCTION_LEFT", + "GTK_JUNCTION_NONE", + "GTK_JUNCTION_RIGHT", + "GTK_JUNCTION_TOP", + "bottom", + "corner-bottomleft", + "corner-bottomright", + "corner-topleft", + "corner-topright", + "left", + "none", + "right", + "top", +] +_JunctionSidesValueType: TypeAlias = ( + JunctionSides | _JunctionSidesLiteralType | tuple[_JunctionSidesLiteralType, ...] +) + class PlacesOpenFlags(GObject.GFlags): NEW_TAB = 2 NEW_WINDOW = 4 NORMAL = 1 +_PlacesOpenFlagsLiteralType: TypeAlias = Literal[ + "GTK_PLACES_OPEN_NEW_TAB", + "GTK_PLACES_OPEN_NEW_WINDOW", + "GTK_PLACES_OPEN_NORMAL", + "new-tab", + "new-window", + "normal", +] +_PlacesOpenFlagsValueType: TypeAlias = ( + PlacesOpenFlags + | _PlacesOpenFlagsLiteralType + | tuple[_PlacesOpenFlagsLiteralType, ...] +) + class RcFlags(GObject.GFlags): BASE = 8 BG = 2 FG = 1 TEXT = 4 +_RcFlagsLiteralType: TypeAlias = Literal[ + "GTK_RC_BASE", "GTK_RC_BG", "GTK_RC_FG", "GTK_RC_TEXT", "base", "bg", "fg", "text" +] +_RcFlagsValueType: TypeAlias = ( + RcFlags | _RcFlagsLiteralType | tuple[_RcFlagsLiteralType, ...] +) + class RecentFilterFlags(GObject.GFlags): AGE = 32 APPLICATION = 8 @@ -63318,6 +64776,26 @@ class RecentFilterFlags(GObject.GFlags): MIME_TYPE = 4 URI = 1 +_RecentFilterFlagsLiteralType: TypeAlias = Literal[ + "GTK_RECENT_FILTER_AGE", + "GTK_RECENT_FILTER_APPLICATION", + "GTK_RECENT_FILTER_DISPLAY_NAME", + "GTK_RECENT_FILTER_GROUP", + "GTK_RECENT_FILTER_MIME_TYPE", + "GTK_RECENT_FILTER_URI", + "age", + "application", + "display-name", + "group", + "mime-type", + "uri", +] +_RecentFilterFlagsValueType: TypeAlias = ( + RecentFilterFlags + | _RecentFilterFlagsLiteralType + | tuple[_RecentFilterFlagsLiteralType, ...] +) + class RegionFlags(GObject.GFlags): EVEN = 1 FIRST = 4 @@ -63326,6 +64804,24 @@ class RegionFlags(GObject.GFlags): ONLY = 16 SORTED = 32 +_RegionFlagsLiteralType: TypeAlias = Literal[ + "GTK_REGION_EVEN", + "GTK_REGION_FIRST", + "GTK_REGION_LAST", + "GTK_REGION_ODD", + "GTK_REGION_ONLY", + "GTK_REGION_SORTED", + "even", + "first", + "last", + "odd", + "only", + "sorted", +] +_RegionFlagsValueType: TypeAlias = ( + RegionFlags | _RegionFlagsLiteralType | tuple[_RegionFlagsLiteralType, ...] +) + class StateFlags(GObject.GFlags): ACTIVE = 1 BACKDROP = 64 @@ -63342,30 +64838,125 @@ class StateFlags(GObject.GFlags): SELECTED = 4 VISITED = 1024 +_StateFlagsLiteralType: TypeAlias = Literal[ + "GTK_STATE_FLAG_ACTIVE", + "GTK_STATE_FLAG_BACKDROP", + "GTK_STATE_FLAG_CHECKED", + "GTK_STATE_FLAG_DIR_LTR", + "GTK_STATE_FLAG_DIR_RTL", + "GTK_STATE_FLAG_DROP_ACTIVE", + "GTK_STATE_FLAG_FOCUSED", + "GTK_STATE_FLAG_INCONSISTENT", + "GTK_STATE_FLAG_INSENSITIVE", + "GTK_STATE_FLAG_LINK", + "GTK_STATE_FLAG_NORMAL", + "GTK_STATE_FLAG_PRELIGHT", + "GTK_STATE_FLAG_SELECTED", + "GTK_STATE_FLAG_VISITED", + "active", + "backdrop", + "checked", + "dir-ltr", + "dir-rtl", + "drop-active", + "focused", + "inconsistent", + "insensitive", + "link", + "normal", + "prelight", + "selected", + "visited", +] +_StateFlagsValueType: TypeAlias = ( + StateFlags | _StateFlagsLiteralType | tuple[_StateFlagsLiteralType, ...] +) + class StyleContextPrintFlags(GObject.GFlags): NONE = 0 RECURSE = 1 SHOW_STYLE = 2 +_StyleContextPrintFlagsLiteralType: TypeAlias = Literal[ + "GTK_STYLE_CONTEXT_PRINT_NONE", + "GTK_STYLE_CONTEXT_PRINT_RECURSE", + "GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE", + "none", + "recurse", + "show-style", +] +_StyleContextPrintFlagsValueType: TypeAlias = ( + StyleContextPrintFlags + | _StyleContextPrintFlagsLiteralType + | tuple[_StyleContextPrintFlagsLiteralType, ...] +) + class TargetFlags(GObject.GFlags): OTHER_APP = 4 OTHER_WIDGET = 8 SAME_APP = 1 SAME_WIDGET = 2 +_TargetFlagsLiteralType: TypeAlias = Literal[ + "GTK_TARGET_OTHER_APP", + "GTK_TARGET_OTHER_WIDGET", + "GTK_TARGET_SAME_APP", + "GTK_TARGET_SAME_WIDGET", + "other-app", + "other-widget", + "same-app", + "same-widget", +] +_TargetFlagsValueType: TypeAlias = ( + TargetFlags | _TargetFlagsLiteralType | tuple[_TargetFlagsLiteralType, ...] +) + class TextSearchFlags(GObject.GFlags): CASE_INSENSITIVE = 4 TEXT_ONLY = 2 VISIBLE_ONLY = 1 +_TextSearchFlagsLiteralType: TypeAlias = Literal[ + "GTK_TEXT_SEARCH_CASE_INSENSITIVE", + "GTK_TEXT_SEARCH_TEXT_ONLY", + "GTK_TEXT_SEARCH_VISIBLE_ONLY", + "case-insensitive", + "text-only", + "visible-only", +] +_TextSearchFlagsValueType: TypeAlias = ( + TextSearchFlags + | _TextSearchFlagsLiteralType + | tuple[_TextSearchFlagsLiteralType, ...] +) + class ToolPaletteDragTargets(GObject.GFlags): GROUPS = 2 ITEMS = 1 +_ToolPaletteDragTargetsLiteralType: TypeAlias = Literal[ + "GTK_TOOL_PALETTE_DRAG_GROUPS", "GTK_TOOL_PALETTE_DRAG_ITEMS", "groups", "items" +] +_ToolPaletteDragTargetsValueType: TypeAlias = ( + ToolPaletteDragTargets + | _ToolPaletteDragTargetsLiteralType + | tuple[_ToolPaletteDragTargetsLiteralType, ...] +) + class TreeModelFlags(GObject.GFlags): ITERS_PERSIST = 1 LIST_ONLY = 2 +_TreeModelFlagsLiteralType: TypeAlias = Literal[ + "GTK_TREE_MODEL_ITERS_PERSIST", + "GTK_TREE_MODEL_LIST_ONLY", + "iters-persist", + "list-only", +] +_TreeModelFlagsValueType: TypeAlias = ( + TreeModelFlags | _TreeModelFlagsLiteralType | tuple[_TreeModelFlagsLiteralType, ...] +) + class UIManagerItemType(GObject.GFlags): ACCELERATOR = 256 AUTO = 0 @@ -63379,6 +64970,36 @@ class UIManagerItemType(GObject.GFlags): TOOLBAR = 4 TOOLITEM = 64 +_UIManagerItemTypeLiteralType: TypeAlias = Literal[ + "GTK_UI_MANAGER_ACCELERATOR", + "GTK_UI_MANAGER_AUTO", + "GTK_UI_MANAGER_MENU", + "GTK_UI_MANAGER_MENUBAR", + "GTK_UI_MANAGER_MENUITEM", + "GTK_UI_MANAGER_PLACEHOLDER", + "GTK_UI_MANAGER_POPUP", + "GTK_UI_MANAGER_POPUP_WITH_ACCELS", + "GTK_UI_MANAGER_SEPARATOR", + "GTK_UI_MANAGER_TOOLBAR", + "GTK_UI_MANAGER_TOOLITEM", + "accelerator", + "auto", + "menu", + "menubar", + "menuitem", + "placeholder", + "popup", + "popup-with-accels", + "separator", + "toolbar", + "toolitem", +] +_UIManagerItemTypeValueType: TypeAlias = ( + UIManagerItemType + | _UIManagerItemTypeLiteralType + | tuple[_UIManagerItemTypeLiteralType, ...] +) + class Align(GObject.GEnum): BASELINE = 4 CENTER = 3 @@ -63386,11 +65007,30 @@ class Align(GObject.GEnum): FILL = 0 START = 1 +_AlignLiteralType: TypeAlias = Literal[ + "GTK_ALIGN_BASELINE", + "GTK_ALIGN_CENTER", + "GTK_ALIGN_END", + "GTK_ALIGN_FILL", + "GTK_ALIGN_START", + "baseline", + "center", + "end", + "fill", + "start", +] +_AlignValueType: TypeAlias = Align | _AlignLiteralType + class ArrowPlacement(GObject.GEnum): BOTH = 0 END = 2 START = 1 +_ArrowPlacementLiteralType: TypeAlias = Literal[ + "GTK_ARROWS_BOTH", "GTK_ARROWS_END", "GTK_ARROWS_START", "both", "end", "start" +] +_ArrowPlacementValueType: TypeAlias = ArrowPlacement | _ArrowPlacementLiteralType + class ArrowType(GObject.GEnum): DOWN = 1 LEFT = 2 @@ -63398,6 +65038,20 @@ class ArrowType(GObject.GEnum): RIGHT = 3 UP = 0 +_ArrowTypeLiteralType: TypeAlias = Literal[ + "GTK_ARROW_DOWN", + "GTK_ARROW_LEFT", + "GTK_ARROW_NONE", + "GTK_ARROW_RIGHT", + "GTK_ARROW_UP", + "down", + "left", + "none", + "right", + "up", +] +_ArrowTypeValueType: TypeAlias = ArrowType | _ArrowTypeLiteralType + class AssistantPageType(GObject.GEnum): CONFIRM = 2 CONTENT = 0 @@ -63406,11 +65060,39 @@ class AssistantPageType(GObject.GEnum): PROGRESS = 4 SUMMARY = 3 +_AssistantPageTypeLiteralType: TypeAlias = Literal[ + "GTK_ASSISTANT_PAGE_CONFIRM", + "GTK_ASSISTANT_PAGE_CONTENT", + "GTK_ASSISTANT_PAGE_CUSTOM", + "GTK_ASSISTANT_PAGE_INTRO", + "GTK_ASSISTANT_PAGE_PROGRESS", + "GTK_ASSISTANT_PAGE_SUMMARY", + "confirm", + "content", + "custom", + "intro", + "progress", + "summary", +] +_AssistantPageTypeValueType: TypeAlias = ( + AssistantPageType | _AssistantPageTypeLiteralType +) + class BaselinePosition(GObject.GEnum): BOTTOM = 2 CENTER = 1 TOP = 0 +_BaselinePositionLiteralType: TypeAlias = Literal[ + "GTK_BASELINE_POSITION_BOTTOM", + "GTK_BASELINE_POSITION_CENTER", + "GTK_BASELINE_POSITION_TOP", + "bottom", + "center", + "top", +] +_BaselinePositionValueType: TypeAlias = BaselinePosition | _BaselinePositionLiteralType + class BorderStyle(GObject.GEnum): DASHED = 6 DOTTED = 5 @@ -63423,6 +65105,30 @@ class BorderStyle(GObject.GEnum): RIDGE = 9 SOLID = 1 +_BorderStyleLiteralType: TypeAlias = Literal[ + "GTK_BORDER_STYLE_DASHED", + "GTK_BORDER_STYLE_DOTTED", + "GTK_BORDER_STYLE_DOUBLE", + "GTK_BORDER_STYLE_GROOVE", + "GTK_BORDER_STYLE_HIDDEN", + "GTK_BORDER_STYLE_INSET", + "GTK_BORDER_STYLE_NONE", + "GTK_BORDER_STYLE_OUTSET", + "GTK_BORDER_STYLE_RIDGE", + "GTK_BORDER_STYLE_SOLID", + "dashed", + "dotted", + "double", + "groove", + "hidden", + "inset", + "none", + "outset", + "ridge", + "solid", +] +_BorderStyleValueType: TypeAlias = BorderStyle | _BorderStyleLiteralType + class BuilderError(GObject.GEnum): DUPLICATE_ID = 8 INVALID_ATTRIBUTE = 3 @@ -63441,6 +65147,38 @@ class BuilderError(GObject.GEnum): @staticmethod def quark() -> int: ... +_BuilderErrorLiteralType: TypeAlias = Literal[ + "GTK_BUILDER_ERROR_DUPLICATE_ID", + "GTK_BUILDER_ERROR_INVALID_ATTRIBUTE", + "GTK_BUILDER_ERROR_INVALID_ID", + "GTK_BUILDER_ERROR_INVALID_PROPERTY", + "GTK_BUILDER_ERROR_INVALID_SIGNAL", + "GTK_BUILDER_ERROR_INVALID_TAG", + "GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION", + "GTK_BUILDER_ERROR_INVALID_VALUE", + "GTK_BUILDER_ERROR_MISSING_ATTRIBUTE", + "GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE", + "GTK_BUILDER_ERROR_OBJECT_TYPE_REFUSED", + "GTK_BUILDER_ERROR_TEMPLATE_MISMATCH", + "GTK_BUILDER_ERROR_UNHANDLED_TAG", + "GTK_BUILDER_ERROR_VERSION_MISMATCH", + "duplicate-id", + "invalid-attribute", + "invalid-id", + "invalid-property", + "invalid-signal", + "invalid-tag", + "invalid-type-function", + "invalid-value", + "missing-attribute", + "missing-property-value", + "object-type-refused", + "template-mismatch", + "unhandled-tag", + "version-mismatch", +] +_BuilderErrorValueType: TypeAlias = BuilderError | _BuilderErrorLiteralType + class ButtonBoxStyle(GObject.GEnum): CENTER = 5 EDGE = 2 @@ -63449,11 +65187,37 @@ class ButtonBoxStyle(GObject.GEnum): SPREAD = 1 START = 3 +_ButtonBoxStyleLiteralType: TypeAlias = Literal[ + "GTK_BUTTONBOX_CENTER", + "GTK_BUTTONBOX_EDGE", + "GTK_BUTTONBOX_END", + "GTK_BUTTONBOX_EXPAND", + "GTK_BUTTONBOX_SPREAD", + "GTK_BUTTONBOX_START", + "center", + "edge", + "end", + "expand", + "spread", + "start", +] +_ButtonBoxStyleValueType: TypeAlias = ButtonBoxStyle | _ButtonBoxStyleLiteralType + class ButtonRole(GObject.GEnum): CHECK = 1 NORMAL = 0 RADIO = 2 +_ButtonRoleLiteralType: TypeAlias = Literal[ + "GTK_BUTTON_ROLE_CHECK", + "GTK_BUTTON_ROLE_NORMAL", + "GTK_BUTTON_ROLE_RADIO", + "check", + "normal", + "radio", +] +_ButtonRoleValueType: TypeAlias = ButtonRole | _ButtonRoleLiteralType + class ButtonsType(GObject.GEnum): CANCEL = 3 CLOSE = 2 @@ -63462,21 +65226,69 @@ class ButtonsType(GObject.GEnum): OK_CANCEL = 5 YES_NO = 4 +_ButtonsTypeLiteralType: TypeAlias = Literal[ + "GTK_BUTTONS_CANCEL", + "GTK_BUTTONS_CLOSE", + "GTK_BUTTONS_NONE", + "GTK_BUTTONS_OK", + "GTK_BUTTONS_OK_CANCEL", + "GTK_BUTTONS_YES_NO", + "cancel", + "close", + "none", + "ok", + "ok-cancel", + "yes-no", +] +_ButtonsTypeValueType: TypeAlias = ButtonsType | _ButtonsTypeLiteralType + class CellRendererAccelMode(GObject.GEnum): GTK = 0 OTHER = 1 +_CellRendererAccelModeLiteralType: TypeAlias = Literal[ + "GTK_CELL_RENDERER_ACCEL_MODE_GTK", + "GTK_CELL_RENDERER_ACCEL_MODE_OTHER", + "gtk", + "other", +] +_CellRendererAccelModeValueType: TypeAlias = ( + CellRendererAccelMode | _CellRendererAccelModeLiteralType +) + class CellRendererMode(GObject.GEnum): ACTIVATABLE = 1 EDITABLE = 2 INERT = 0 +_CellRendererModeLiteralType: TypeAlias = Literal[ + "GTK_CELL_RENDERER_MODE_ACTIVATABLE", + "GTK_CELL_RENDERER_MODE_EDITABLE", + "GTK_CELL_RENDERER_MODE_INERT", + "activatable", + "editable", + "inert", +] +_CellRendererModeValueType: TypeAlias = CellRendererMode | _CellRendererModeLiteralType + class CornerType(GObject.GEnum): BOTTOM_LEFT = 1 BOTTOM_RIGHT = 3 TOP_LEFT = 0 TOP_RIGHT = 2 +_CornerTypeLiteralType: TypeAlias = Literal[ + "GTK_CORNER_BOTTOM_LEFT", + "GTK_CORNER_BOTTOM_RIGHT", + "GTK_CORNER_TOP_LEFT", + "GTK_CORNER_TOP_RIGHT", + "bottom-left", + "bottom-right", + "top-left", + "top-right", +] +_CornerTypeValueType: TypeAlias = CornerType | _CornerTypeLiteralType + class CssProviderError(GObject.GEnum): DEPRECATED = 4 FAILED = 0 @@ -63487,6 +65299,22 @@ class CssProviderError(GObject.GEnum): @staticmethod def quark() -> int: ... +_CssProviderErrorLiteralType: TypeAlias = Literal[ + "GTK_CSS_PROVIDER_ERROR_DEPRECATED", + "GTK_CSS_PROVIDER_ERROR_FAILED", + "GTK_CSS_PROVIDER_ERROR_IMPORT", + "GTK_CSS_PROVIDER_ERROR_NAME", + "GTK_CSS_PROVIDER_ERROR_SYNTAX", + "GTK_CSS_PROVIDER_ERROR_UNKNOWN_VALUE", + "deprecated", + "failed", + "import", + "name", + "syntax", + "unknown-value", +] +_CssProviderErrorValueType: TypeAlias = CssProviderError | _CssProviderErrorLiteralType + class CssSectionType(GObject.GEnum): BINDING_SET = 3 COLOR_DEFINITION = 2 @@ -63498,6 +65326,28 @@ class CssSectionType(GObject.GEnum): SELECTOR = 5 VALUE = 7 +_CssSectionTypeLiteralType: TypeAlias = Literal[ + "GTK_CSS_SECTION_BINDING_SET", + "GTK_CSS_SECTION_COLOR_DEFINITION", + "GTK_CSS_SECTION_DECLARATION", + "GTK_CSS_SECTION_DOCUMENT", + "GTK_CSS_SECTION_IMPORT", + "GTK_CSS_SECTION_KEYFRAMES", + "GTK_CSS_SECTION_RULESET", + "GTK_CSS_SECTION_SELECTOR", + "GTK_CSS_SECTION_VALUE", + "binding-set", + "color-definition", + "declaration", + "document", + "import", + "keyframes", + "ruleset", + "selector", + "value", +] +_CssSectionTypeValueType: TypeAlias = CssSectionType | _CssSectionTypeLiteralType + class DeleteType(GObject.GEnum): CHARS = 0 DISPLAY_LINES = 3 @@ -63508,6 +65358,26 @@ class DeleteType(GObject.GEnum): WORDS = 2 WORD_ENDS = 1 +_DeleteTypeLiteralType: TypeAlias = Literal[ + "GTK_DELETE_CHARS", + "GTK_DELETE_DISPLAY_LINES", + "GTK_DELETE_DISPLAY_LINE_ENDS", + "GTK_DELETE_PARAGRAPHS", + "GTK_DELETE_PARAGRAPH_ENDS", + "GTK_DELETE_WHITESPACE", + "GTK_DELETE_WORDS", + "GTK_DELETE_WORD_ENDS", + "chars", + "display-line-ends", + "display-lines", + "paragraph-ends", + "paragraphs", + "whitespace", + "word-ends", + "words", +] +_DeleteTypeValueType: TypeAlias = DeleteType | _DeleteTypeLiteralType + class DirectionType(GObject.GEnum): DOWN = 3 LEFT = 4 @@ -63516,6 +65386,22 @@ class DirectionType(GObject.GEnum): TAB_FORWARD = 0 UP = 2 +_DirectionTypeLiteralType: TypeAlias = Literal[ + "GTK_DIR_DOWN", + "GTK_DIR_LEFT", + "GTK_DIR_RIGHT", + "GTK_DIR_TAB_BACKWARD", + "GTK_DIR_TAB_FORWARD", + "GTK_DIR_UP", + "down", + "left", + "right", + "tab-backward", + "tab-forward", + "up", +] +_DirectionTypeValueType: TypeAlias = DirectionType | _DirectionTypeLiteralType + class DragResult(GObject.GEnum): ERROR = 5 GRAB_BROKEN = 4 @@ -63524,32 +65410,105 @@ class DragResult(GObject.GEnum): TIMEOUT_EXPIRED = 3 USER_CANCELLED = 2 +_DragResultLiteralType: TypeAlias = Literal[ + "GTK_DRAG_RESULT_ERROR", + "GTK_DRAG_RESULT_GRAB_BROKEN", + "GTK_DRAG_RESULT_NO_TARGET", + "GTK_DRAG_RESULT_SUCCESS", + "GTK_DRAG_RESULT_TIMEOUT_EXPIRED", + "GTK_DRAG_RESULT_USER_CANCELLED", + "error", + "grab-broken", + "no-target", + "success", + "timeout-expired", + "user-cancelled", +] +_DragResultValueType: TypeAlias = DragResult | _DragResultLiteralType + class EntryIconPosition(GObject.GEnum): PRIMARY = 0 SECONDARY = 1 +_EntryIconPositionLiteralType: TypeAlias = Literal[ + "GTK_ENTRY_ICON_PRIMARY", "GTK_ENTRY_ICON_SECONDARY", "primary", "secondary" +] +_EntryIconPositionValueType: TypeAlias = ( + EntryIconPosition | _EntryIconPositionLiteralType +) + class EventSequenceState(GObject.GEnum): CLAIMED = 1 DENIED = 2 NONE = 0 +_EventSequenceStateLiteralType: TypeAlias = Literal[ + "GTK_EVENT_SEQUENCE_CLAIMED", + "GTK_EVENT_SEQUENCE_DENIED", + "GTK_EVENT_SEQUENCE_NONE", + "claimed", + "denied", + "none", +] +_EventSequenceStateValueType: TypeAlias = ( + EventSequenceState | _EventSequenceStateLiteralType +) + class ExpanderStyle(GObject.GEnum): COLLAPSED = 0 EXPANDED = 3 SEMI_COLLAPSED = 1 SEMI_EXPANDED = 2 +_ExpanderStyleLiteralType: TypeAlias = Literal[ + "GTK_EXPANDER_COLLAPSED", + "GTK_EXPANDER_EXPANDED", + "GTK_EXPANDER_SEMI_COLLAPSED", + "GTK_EXPANDER_SEMI_EXPANDED", + "collapsed", + "expanded", + "semi-collapsed", + "semi-expanded", +] +_ExpanderStyleValueType: TypeAlias = ExpanderStyle | _ExpanderStyleLiteralType + class FileChooserAction(GObject.GEnum): CREATE_FOLDER = 3 OPEN = 0 SAVE = 1 SELECT_FOLDER = 2 +_FileChooserActionLiteralType: TypeAlias = Literal[ + "GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER", + "GTK_FILE_CHOOSER_ACTION_OPEN", + "GTK_FILE_CHOOSER_ACTION_SAVE", + "GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER", + "create-folder", + "open", + "save", + "select-folder", +] +_FileChooserActionValueType: TypeAlias = ( + FileChooserAction | _FileChooserActionLiteralType +) + class FileChooserConfirmation(GObject.GEnum): ACCEPT_FILENAME = 1 CONFIRM = 0 SELECT_AGAIN = 2 +_FileChooserConfirmationLiteralType: TypeAlias = Literal[ + "GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME", + "GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM", + "GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN", + "accept-filename", + "confirm", + "select-again", +] +_FileChooserConfirmationValueType: TypeAlias = ( + FileChooserConfirmation | _FileChooserConfirmationLiteralType +) + class FileChooserError(GObject.GEnum): ALREADY_EXISTS = 2 BAD_FILENAME = 1 @@ -63558,16 +65517,48 @@ class FileChooserError(GObject.GEnum): @staticmethod def quark() -> int: ... +_FileChooserErrorLiteralType: TypeAlias = Literal[ + "GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS", + "GTK_FILE_CHOOSER_ERROR_BAD_FILENAME", + "GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME", + "GTK_FILE_CHOOSER_ERROR_NONEXISTENT", + "already-exists", + "bad-filename", + "incomplete-hostname", + "nonexistent", +] +_FileChooserErrorValueType: TypeAlias = FileChooserError | _FileChooserErrorLiteralType + class IMPreeditStyle(GObject.GEnum): CALLBACK = 1 NONE = 2 NOTHING = 0 +_IMPreeditStyleLiteralType: TypeAlias = Literal[ + "GTK_IM_PREEDIT_CALLBACK", + "GTK_IM_PREEDIT_NONE", + "GTK_IM_PREEDIT_NOTHING", + "callback", + "none", + "nothing", +] +_IMPreeditStyleValueType: TypeAlias = IMPreeditStyle | _IMPreeditStyleLiteralType + class IMStatusStyle(GObject.GEnum): CALLBACK = 1 NONE = 2 NOTHING = 0 +_IMStatusStyleLiteralType: TypeAlias = Literal[ + "GTK_IM_STATUS_CALLBACK", + "GTK_IM_STATUS_NONE", + "GTK_IM_STATUS_NOTHING", + "callback", + "none", + "nothing", +] +_IMStatusStyleValueType: TypeAlias = IMStatusStyle | _IMStatusStyleLiteralType + class IconSize(GObject.GEnum): BUTTON = 4 DIALOG = 6 @@ -63589,12 +65580,35 @@ class IconSize(GObject.GEnum): @staticmethod def register_alias(alias: str, target: int) -> None: ... +_IconSizeLiteralType: TypeAlias = Literal[ + "GTK_ICON_SIZE_BUTTON", + "GTK_ICON_SIZE_DIALOG", + "GTK_ICON_SIZE_DND", + "GTK_ICON_SIZE_INVALID", + "GTK_ICON_SIZE_LARGE_TOOLBAR", + "GTK_ICON_SIZE_MENU", + "GTK_ICON_SIZE_SMALL_TOOLBAR", + "button", + "dialog", + "dnd", + "invalid", + "large-toolbar", + "menu", + "small-toolbar", +] +_IconSizeValueType: TypeAlias = IconSize | _IconSizeLiteralType + class IconThemeError(GObject.GEnum): FAILED = 1 NOT_FOUND = 0 @staticmethod def quark() -> int: ... +_IconThemeErrorLiteralType: TypeAlias = Literal[ + "GTK_ICON_THEME_FAILED", "GTK_ICON_THEME_NOT_FOUND", "failed", "not-found" +] +_IconThemeErrorValueType: TypeAlias = IconThemeError | _IconThemeErrorLiteralType + class IconViewDropPosition(GObject.GEnum): DROP_ABOVE = 4 DROP_BELOW = 5 @@ -63603,6 +65617,24 @@ class IconViewDropPosition(GObject.GEnum): DROP_RIGHT = 3 NO_DROP = 0 +_IconViewDropPositionLiteralType: TypeAlias = Literal[ + "GTK_ICON_VIEW_DROP_ABOVE", + "GTK_ICON_VIEW_DROP_BELOW", + "GTK_ICON_VIEW_DROP_INTO", + "GTK_ICON_VIEW_DROP_LEFT", + "GTK_ICON_VIEW_DROP_RIGHT", + "GTK_ICON_VIEW_NO_DROP", + "drop-above", + "drop-below", + "drop-into", + "drop-left", + "drop-right", + "no-drop", +] +_IconViewDropPositionValueType: TypeAlias = ( + IconViewDropPosition | _IconViewDropPositionLiteralType +) + class ImageType(GObject.GEnum): ANIMATION = 4 EMPTY = 0 @@ -63613,6 +65645,26 @@ class ImageType(GObject.GEnum): STOCK = 2 SURFACE = 7 +_ImageTypeLiteralType: TypeAlias = Literal[ + "GTK_IMAGE_ANIMATION", + "GTK_IMAGE_EMPTY", + "GTK_IMAGE_GICON", + "GTK_IMAGE_ICON_NAME", + "GTK_IMAGE_ICON_SET", + "GTK_IMAGE_PIXBUF", + "GTK_IMAGE_STOCK", + "GTK_IMAGE_SURFACE", + "animation", + "empty", + "gicon", + "icon-name", + "icon-set", + "pixbuf", + "stock", + "surface", +] +_ImageTypeValueType: TypeAlias = ImageType | _ImageTypeLiteralType + class InputPurpose(GObject.GEnum): ALPHA = 1 DIGITS = 2 @@ -63626,16 +65678,62 @@ class InputPurpose(GObject.GEnum): TERMINAL = 10 URL = 5 +_InputPurposeLiteralType: TypeAlias = Literal[ + "GTK_INPUT_PURPOSE_ALPHA", + "GTK_INPUT_PURPOSE_DIGITS", + "GTK_INPUT_PURPOSE_EMAIL", + "GTK_INPUT_PURPOSE_FREE_FORM", + "GTK_INPUT_PURPOSE_NAME", + "GTK_INPUT_PURPOSE_NUMBER", + "GTK_INPUT_PURPOSE_PASSWORD", + "GTK_INPUT_PURPOSE_PHONE", + "GTK_INPUT_PURPOSE_PIN", + "GTK_INPUT_PURPOSE_TERMINAL", + "GTK_INPUT_PURPOSE_URL", + "alpha", + "digits", + "email", + "free-form", + "name", + "number", + "password", + "phone", + "pin", + "terminal", + "url", +] +_InputPurposeValueType: TypeAlias = InputPurpose | _InputPurposeLiteralType + class Justification(GObject.GEnum): CENTER = 2 FILL = 3 LEFT = 0 RIGHT = 1 +_JustificationLiteralType: TypeAlias = Literal[ + "GTK_JUSTIFY_CENTER", + "GTK_JUSTIFY_FILL", + "GTK_JUSTIFY_LEFT", + "GTK_JUSTIFY_RIGHT", + "center", + "fill", + "left", + "right", +] +_JustificationValueType: TypeAlias = Justification | _JustificationLiteralType + class LevelBarMode(GObject.GEnum): CONTINUOUS = 0 DISCRETE = 1 +_LevelBarModeLiteralType: TypeAlias = Literal[ + "GTK_LEVEL_BAR_MODE_CONTINUOUS", + "GTK_LEVEL_BAR_MODE_DISCRETE", + "continuous", + "discrete", +] +_LevelBarModeValueType: TypeAlias = LevelBarMode | _LevelBarModeLiteralType + class License(GObject.GEnum): AGPL_3_0 = 13 AGPL_3_0_ONLY = 14 @@ -63656,12 +65754,66 @@ class License(GObject.GEnum): MPL_2_0 = 17 UNKNOWN = 0 +_LicenseLiteralType: TypeAlias = Literal[ + "GTK_LICENSE_AGPL_3_0", + "GTK_LICENSE_AGPL_3_0_ONLY", + "GTK_LICENSE_APACHE_2_0", + "GTK_LICENSE_ARTISTIC", + "GTK_LICENSE_BSD", + "GTK_LICENSE_BSD_3", + "GTK_LICENSE_CUSTOM", + "GTK_LICENSE_GPL_2_0", + "GTK_LICENSE_GPL_2_0_ONLY", + "GTK_LICENSE_GPL_3_0", + "GTK_LICENSE_GPL_3_0_ONLY", + "GTK_LICENSE_LGPL_2_1", + "GTK_LICENSE_LGPL_2_1_ONLY", + "GTK_LICENSE_LGPL_3_0", + "GTK_LICENSE_LGPL_3_0_ONLY", + "GTK_LICENSE_MIT_X11", + "GTK_LICENSE_MPL_2_0", + "GTK_LICENSE_UNKNOWN", + "agpl-3-0", + "agpl-3-0-only", + "apache-2-0", + "artistic", + "bsd", + "bsd-3", + "custom", + "gpl-2-0", + "gpl-2-0-only", + "gpl-3-0", + "gpl-3-0-only", + "lgpl-2-1", + "lgpl-2-1-only", + "lgpl-3-0", + "lgpl-3-0-only", + "mit-x11", + "mpl-2-0", + "unknown", +] +_LicenseValueType: TypeAlias = License | _LicenseLiteralType + class MenuDirectionType(GObject.GEnum): CHILD = 1 NEXT = 2 PARENT = 0 PREV = 3 +_MenuDirectionTypeLiteralType: TypeAlias = Literal[ + "GTK_MENU_DIR_CHILD", + "GTK_MENU_DIR_NEXT", + "GTK_MENU_DIR_PARENT", + "GTK_MENU_DIR_PREV", + "child", + "next", + "parent", + "prev", +] +_MenuDirectionTypeValueType: TypeAlias = ( + MenuDirectionType | _MenuDirectionTypeLiteralType +) + class MessageType(GObject.GEnum): ERROR = 3 INFO = 0 @@ -63669,6 +65821,20 @@ class MessageType(GObject.GEnum): QUESTION = 2 WARNING = 1 +_MessageTypeLiteralType: TypeAlias = Literal[ + "GTK_MESSAGE_ERROR", + "GTK_MESSAGE_INFO", + "GTK_MESSAGE_OTHER", + "GTK_MESSAGE_QUESTION", + "GTK_MESSAGE_WARNING", + "error", + "info", + "other", + "question", + "warning", +] +_MessageTypeValueType: TypeAlias = MessageType | _MessageTypeLiteralType + class MovementStep(GObject.GEnum): BUFFER_ENDS = 8 DISPLAY_LINES = 3 @@ -63681,10 +65847,39 @@ class MovementStep(GObject.GEnum): VISUAL_POSITIONS = 1 WORDS = 2 +_MovementStepLiteralType: TypeAlias = Literal[ + "GTK_MOVEMENT_BUFFER_ENDS", + "GTK_MOVEMENT_DISPLAY_LINES", + "GTK_MOVEMENT_DISPLAY_LINE_ENDS", + "GTK_MOVEMENT_HORIZONTAL_PAGES", + "GTK_MOVEMENT_LOGICAL_POSITIONS", + "GTK_MOVEMENT_PAGES", + "GTK_MOVEMENT_PARAGRAPHS", + "GTK_MOVEMENT_PARAGRAPH_ENDS", + "GTK_MOVEMENT_VISUAL_POSITIONS", + "GTK_MOVEMENT_WORDS", + "buffer-ends", + "display-line-ends", + "display-lines", + "horizontal-pages", + "logical-positions", + "pages", + "paragraph-ends", + "paragraphs", + "visual-positions", + "words", +] +_MovementStepValueType: TypeAlias = MovementStep | _MovementStepLiteralType + class NotebookTab(GObject.GEnum): FIRST = 0 LAST = 1 +_NotebookTabLiteralType: TypeAlias = Literal[ + "GTK_NOTEBOOK_TAB_FIRST", "GTK_NOTEBOOK_TAB_LAST", "first", "last" +] +_NotebookTabValueType: TypeAlias = NotebookTab | _NotebookTabLiteralType + class NumberUpLayout(GObject.GEnum): BTLR = 6 BTRL = 7 @@ -63695,42 +65890,123 @@ class NumberUpLayout(GObject.GEnum): TBLR = 4 TBRL = 5 +_NumberUpLayoutLiteralType: TypeAlias = Literal[ + "GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT", + "GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT", + "GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP", + "GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM", + "GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP", + "GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM", + "GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT", + "GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT", + "btlr", + "btrl", + "lrbt", + "lrtb", + "rlbt", + "rltb", + "tblr", + "tbrl", +] +_NumberUpLayoutValueType: TypeAlias = NumberUpLayout | _NumberUpLayoutLiteralType + class Orientation(GObject.GEnum): HORIZONTAL = 0 VERTICAL = 1 +_OrientationLiteralType: TypeAlias = Literal[ + "GTK_ORIENTATION_HORIZONTAL", "GTK_ORIENTATION_VERTICAL", "horizontal", "vertical" +] +_OrientationValueType: TypeAlias = Orientation | _OrientationLiteralType + class PackDirection(GObject.GEnum): BTT = 3 LTR = 0 RTL = 1 TTB = 2 +_PackDirectionLiteralType: TypeAlias = Literal[ + "GTK_PACK_DIRECTION_BTT", + "GTK_PACK_DIRECTION_LTR", + "GTK_PACK_DIRECTION_RTL", + "GTK_PACK_DIRECTION_TTB", + "btt", + "ltr", + "rtl", + "ttb", +] +_PackDirectionValueType: TypeAlias = PackDirection | _PackDirectionLiteralType + class PackType(GObject.GEnum): END = 1 START = 0 +_PackTypeLiteralType: TypeAlias = Literal[ + "GTK_PACK_END", "GTK_PACK_START", "end", "start" +] +_PackTypeValueType: TypeAlias = PackType | _PackTypeLiteralType + class PadActionType(GObject.GEnum): BUTTON = 0 RING = 1 STRIP = 2 +_PadActionTypeLiteralType: TypeAlias = Literal[ + "GTK_PAD_ACTION_BUTTON", + "GTK_PAD_ACTION_RING", + "GTK_PAD_ACTION_STRIP", + "button", + "ring", + "strip", +] +_PadActionTypeValueType: TypeAlias = PadActionType | _PadActionTypeLiteralType + class PageOrientation(GObject.GEnum): LANDSCAPE = 1 PORTRAIT = 0 REVERSE_LANDSCAPE = 3 REVERSE_PORTRAIT = 2 +_PageOrientationLiteralType: TypeAlias = Literal[ + "GTK_PAGE_ORIENTATION_LANDSCAPE", + "GTK_PAGE_ORIENTATION_PORTRAIT", + "GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE", + "GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT", + "landscape", + "portrait", + "reverse-landscape", + "reverse-portrait", +] +_PageOrientationValueType: TypeAlias = PageOrientation | _PageOrientationLiteralType + class PageSet(GObject.GEnum): ALL = 0 EVEN = 1 ODD = 2 +_PageSetLiteralType: TypeAlias = Literal[ + "GTK_PAGE_SET_ALL", "GTK_PAGE_SET_EVEN", "GTK_PAGE_SET_ODD", "all", "even", "odd" +] +_PageSetValueType: TypeAlias = PageSet | _PageSetLiteralType + class PanDirection(GObject.GEnum): DOWN = 3 LEFT = 0 RIGHT = 1 UP = 2 +_PanDirectionLiteralType: TypeAlias = Literal[ + "GTK_PAN_DIRECTION_DOWN", + "GTK_PAN_DIRECTION_LEFT", + "GTK_PAN_DIRECTION_RIGHT", + "GTK_PAN_DIRECTION_UP", + "down", + "left", + "right", + "up", +] +_PanDirectionValueType: TypeAlias = PanDirection | _PanDirectionLiteralType + class PathPriorityType(GObject.GEnum): APPLICATION = 8 GTK = 4 @@ -63739,32 +66015,99 @@ class PathPriorityType(GObject.GEnum): RC = 12 THEME = 10 +_PathPriorityTypeLiteralType: TypeAlias = Literal[ + "GTK_PATH_PRIO_APPLICATION", + "GTK_PATH_PRIO_GTK", + "GTK_PATH_PRIO_HIGHEST", + "GTK_PATH_PRIO_LOWEST", + "GTK_PATH_PRIO_RC", + "GTK_PATH_PRIO_THEME", + "application", + "gtk", + "highest", + "lowest", + "rc", + "theme", +] +_PathPriorityTypeValueType: TypeAlias = PathPriorityType | _PathPriorityTypeLiteralType + class PathType(GObject.GEnum): CLASS = 2 WIDGET = 0 WIDGET_CLASS = 1 +_PathTypeLiteralType: TypeAlias = Literal[ + "GTK_PATH_CLASS", + "GTK_PATH_WIDGET", + "GTK_PATH_WIDGET_CLASS", + "class", + "widget", + "widget-class", +] +_PathTypeValueType: TypeAlias = PathType | _PathTypeLiteralType + class PolicyType(GObject.GEnum): ALWAYS = 0 AUTOMATIC = 1 EXTERNAL = 3 NEVER = 2 +_PolicyTypeLiteralType: TypeAlias = Literal[ + "GTK_POLICY_ALWAYS", + "GTK_POLICY_AUTOMATIC", + "GTK_POLICY_EXTERNAL", + "GTK_POLICY_NEVER", + "always", + "automatic", + "external", + "never", +] +_PolicyTypeValueType: TypeAlias = PolicyType | _PolicyTypeLiteralType + class PopoverConstraint(GObject.GEnum): NONE = 0 WINDOW = 1 +_PopoverConstraintLiteralType: TypeAlias = Literal[ + "GTK_POPOVER_CONSTRAINT_NONE", "GTK_POPOVER_CONSTRAINT_WINDOW", "none", "window" +] +_PopoverConstraintValueType: TypeAlias = ( + PopoverConstraint | _PopoverConstraintLiteralType +) + class PositionType(GObject.GEnum): BOTTOM = 3 LEFT = 0 RIGHT = 1 TOP = 2 +_PositionTypeLiteralType: TypeAlias = Literal[ + "GTK_POS_BOTTOM", + "GTK_POS_LEFT", + "GTK_POS_RIGHT", + "GTK_POS_TOP", + "bottom", + "left", + "right", + "top", +] +_PositionTypeValueType: TypeAlias = PositionType | _PositionTypeLiteralType + class PrintDuplex(GObject.GEnum): HORIZONTAL = 1 SIMPLEX = 0 VERTICAL = 2 +_PrintDuplexLiteralType: TypeAlias = Literal[ + "GTK_PRINT_DUPLEX_HORIZONTAL", + "GTK_PRINT_DUPLEX_SIMPLEX", + "GTK_PRINT_DUPLEX_VERTICAL", + "horizontal", + "simplex", + "vertical", +] +_PrintDuplexValueType: TypeAlias = PrintDuplex | _PrintDuplexLiteralType + class PrintError(GObject.GEnum): GENERAL = 0 INTERNAL_ERROR = 1 @@ -63773,30 +66116,94 @@ class PrintError(GObject.GEnum): @staticmethod def quark() -> int: ... +_PrintErrorLiteralType: TypeAlias = Literal[ + "GTK_PRINT_ERROR_GENERAL", + "GTK_PRINT_ERROR_INTERNAL_ERROR", + "GTK_PRINT_ERROR_INVALID_FILE", + "GTK_PRINT_ERROR_NOMEM", + "general", + "internal-error", + "invalid-file", + "nomem", +] +_PrintErrorValueType: TypeAlias = PrintError | _PrintErrorLiteralType + class PrintOperationAction(GObject.GEnum): EXPORT = 3 PREVIEW = 2 PRINT = 1 PRINT_DIALOG = 0 +_PrintOperationActionLiteralType: TypeAlias = Literal[ + "GTK_PRINT_OPERATION_ACTION_EXPORT", + "GTK_PRINT_OPERATION_ACTION_PREVIEW", + "GTK_PRINT_OPERATION_ACTION_PRINT", + "GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG", + "export", + "preview", + "print", + "print-dialog", +] +_PrintOperationActionValueType: TypeAlias = ( + PrintOperationAction | _PrintOperationActionLiteralType +) + class PrintOperationResult(GObject.GEnum): APPLY = 1 CANCEL = 2 ERROR = 0 IN_PROGRESS = 3 +_PrintOperationResultLiteralType: TypeAlias = Literal[ + "GTK_PRINT_OPERATION_RESULT_APPLY", + "GTK_PRINT_OPERATION_RESULT_CANCEL", + "GTK_PRINT_OPERATION_RESULT_ERROR", + "GTK_PRINT_OPERATION_RESULT_IN_PROGRESS", + "apply", + "cancel", + "error", + "in-progress", +] +_PrintOperationResultValueType: TypeAlias = ( + PrintOperationResult | _PrintOperationResultLiteralType +) + class PrintPages(GObject.GEnum): ALL = 0 CURRENT = 1 RANGES = 2 SELECTION = 3 +_PrintPagesLiteralType: TypeAlias = Literal[ + "GTK_PRINT_PAGES_ALL", + "GTK_PRINT_PAGES_CURRENT", + "GTK_PRINT_PAGES_RANGES", + "GTK_PRINT_PAGES_SELECTION", + "all", + "current", + "ranges", + "selection", +] +_PrintPagesValueType: TypeAlias = PrintPages | _PrintPagesLiteralType + class PrintQuality(GObject.GEnum): DRAFT = 3 HIGH = 2 LOW = 0 NORMAL = 1 +_PrintQualityLiteralType: TypeAlias = Literal[ + "GTK_PRINT_QUALITY_DRAFT", + "GTK_PRINT_QUALITY_HIGH", + "GTK_PRINT_QUALITY_LOW", + "GTK_PRINT_QUALITY_NORMAL", + "draft", + "high", + "low", + "normal", +] +_PrintQualityValueType: TypeAlias = PrintQuality | _PrintQualityLiteralType + class PrintStatus(GObject.GEnum): FINISHED = 7 FINISHED_ABORTED = 8 @@ -63808,12 +66215,46 @@ class PrintStatus(GObject.GEnum): PRINTING = 6 SENDING_DATA = 3 +_PrintStatusLiteralType: TypeAlias = Literal[ + "GTK_PRINT_STATUS_FINISHED", + "GTK_PRINT_STATUS_FINISHED_ABORTED", + "GTK_PRINT_STATUS_GENERATING_DATA", + "GTK_PRINT_STATUS_INITIAL", + "GTK_PRINT_STATUS_PENDING", + "GTK_PRINT_STATUS_PENDING_ISSUE", + "GTK_PRINT_STATUS_PREPARING", + "GTK_PRINT_STATUS_PRINTING", + "GTK_PRINT_STATUS_SENDING_DATA", + "finished", + "finished-aborted", + "generating-data", + "initial", + "pending", + "pending-issue", + "preparing", + "printing", + "sending-data", +] +_PrintStatusValueType: TypeAlias = PrintStatus | _PrintStatusLiteralType + class PropagationPhase(GObject.GEnum): BUBBLE = 2 CAPTURE = 1 NONE = 0 TARGET = 3 +_PropagationPhaseLiteralType: TypeAlias = Literal[ + "GTK_PHASE_BUBBLE", + "GTK_PHASE_CAPTURE", + "GTK_PHASE_NONE", + "GTK_PHASE_TARGET", + "bubble", + "capture", + "none", + "target", +] +_PropagationPhaseValueType: TypeAlias = PropagationPhase | _PropagationPhaseLiteralType + class RcTokenType(GObject.GEnum): ACTIVE = 273 APPLICATION = 296 @@ -63856,12 +66297,106 @@ class RcTokenType(GObject.GEnum): XTHICKNESS = 281 YTHICKNESS = 282 +_RcTokenTypeLiteralType: TypeAlias = Literal[ + "GTK_RC_TOKEN_ACTIVE", + "GTK_RC_TOKEN_APPLICATION", + "GTK_RC_TOKEN_BASE", + "GTK_RC_TOKEN_BG", + "GTK_RC_TOKEN_BG_PIXMAP", + "GTK_RC_TOKEN_BIND", + "GTK_RC_TOKEN_BINDING", + "GTK_RC_TOKEN_CLASS", + "GTK_RC_TOKEN_COLOR", + "GTK_RC_TOKEN_ENGINE", + "GTK_RC_TOKEN_FG", + "GTK_RC_TOKEN_FONT", + "GTK_RC_TOKEN_FONTSET", + "GTK_RC_TOKEN_FONT_NAME", + "GTK_RC_TOKEN_GTK", + "GTK_RC_TOKEN_HIGHEST", + "GTK_RC_TOKEN_IM_MODULE_FILE", + "GTK_RC_TOKEN_IM_MODULE_PATH", + "GTK_RC_TOKEN_INCLUDE", + "GTK_RC_TOKEN_INSENSITIVE", + "GTK_RC_TOKEN_INVALID", + "GTK_RC_TOKEN_LAST", + "GTK_RC_TOKEN_LOWEST", + "GTK_RC_TOKEN_LTR", + "GTK_RC_TOKEN_MODULE_PATH", + "GTK_RC_TOKEN_NORMAL", + "GTK_RC_TOKEN_PIXMAP_PATH", + "GTK_RC_TOKEN_PRELIGHT", + "GTK_RC_TOKEN_RC", + "GTK_RC_TOKEN_RTL", + "GTK_RC_TOKEN_SELECTED", + "GTK_RC_TOKEN_STOCK", + "GTK_RC_TOKEN_STYLE", + "GTK_RC_TOKEN_TEXT", + "GTK_RC_TOKEN_THEME", + "GTK_RC_TOKEN_UNBIND", + "GTK_RC_TOKEN_WIDGET", + "GTK_RC_TOKEN_WIDGET_CLASS", + "GTK_RC_TOKEN_XTHICKNESS", + "GTK_RC_TOKEN_YTHICKNESS", + "active", + "application", + "base", + "bg", + "bg-pixmap", + "bind", + "binding", + "class", + "color", + "engine", + "fg", + "font", + "font-name", + "fontset", + "gtk", + "highest", + "im-module-file", + "im-module-path", + "include", + "insensitive", + "invalid", + "last", + "lowest", + "ltr", + "module-path", + "normal", + "pixmap-path", + "prelight", + "rc", + "rtl", + "selected", + "stock", + "style", + "text", + "theme", + "unbind", + "widget", + "widget-class", + "xthickness", + "ythickness", +] +_RcTokenTypeValueType: TypeAlias = RcTokenType | _RcTokenTypeLiteralType + class RecentChooserError(GObject.GEnum): INVALID_URI = 1 NOT_FOUND = 0 @staticmethod def quark() -> int: ... +_RecentChooserErrorLiteralType: TypeAlias = Literal[ + "GTK_RECENT_CHOOSER_ERROR_INVALID_URI", + "GTK_RECENT_CHOOSER_ERROR_NOT_FOUND", + "invalid-uri", + "not-found", +] +_RecentChooserErrorValueType: TypeAlias = ( + RecentChooserError | _RecentChooserErrorLiteralType +) + class RecentManagerError(GObject.GEnum): INVALID_ENCODING = 2 INVALID_URI = 1 @@ -63873,22 +66408,69 @@ class RecentManagerError(GObject.GEnum): @staticmethod def quark() -> int: ... +_RecentManagerErrorLiteralType: TypeAlias = Literal[ + "GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING", + "GTK_RECENT_MANAGER_ERROR_INVALID_URI", + "GTK_RECENT_MANAGER_ERROR_NOT_FOUND", + "GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED", + "GTK_RECENT_MANAGER_ERROR_READ", + "GTK_RECENT_MANAGER_ERROR_UNKNOWN", + "GTK_RECENT_MANAGER_ERROR_WRITE", + "invalid-encoding", + "invalid-uri", + "not-found", + "not-registered", + "read", + "unknown", + "write", +] +_RecentManagerErrorValueType: TypeAlias = ( + RecentManagerError | _RecentManagerErrorLiteralType +) + class RecentSortType(GObject.GEnum): CUSTOM = 3 LRU = 2 MRU = 1 NONE = 0 +_RecentSortTypeLiteralType: TypeAlias = Literal[ + "GTK_RECENT_SORT_CUSTOM", + "GTK_RECENT_SORT_LRU", + "GTK_RECENT_SORT_MRU", + "GTK_RECENT_SORT_NONE", + "custom", + "lru", + "mru", + "none", +] +_RecentSortTypeValueType: TypeAlias = RecentSortType | _RecentSortTypeLiteralType + class ReliefStyle(GObject.GEnum): HALF = 1 NONE = 2 NORMAL = 0 +_ReliefStyleLiteralType: TypeAlias = Literal[ + "GTK_RELIEF_HALF", "GTK_RELIEF_NONE", "GTK_RELIEF_NORMAL", "half", "none", "normal" +] +_ReliefStyleValueType: TypeAlias = ReliefStyle | _ReliefStyleLiteralType + class ResizeMode(GObject.GEnum): IMMEDIATE = 2 PARENT = 0 QUEUE = 1 +_ResizeModeLiteralType: TypeAlias = Literal[ + "GTK_RESIZE_IMMEDIATE", + "GTK_RESIZE_PARENT", + "GTK_RESIZE_QUEUE", + "immediate", + "parent", + "queue", +] +_ResizeModeValueType: TypeAlias = ResizeMode | _ResizeModeLiteralType + class ResponseType(GObject.GEnum): ACCEPT = -3 APPLY = -10 @@ -63902,6 +66484,32 @@ class ResponseType(GObject.GEnum): REJECT = -2 YES = -8 +_ResponseTypeLiteralType: TypeAlias = Literal[ + "GTK_RESPONSE_ACCEPT", + "GTK_RESPONSE_APPLY", + "GTK_RESPONSE_CANCEL", + "GTK_RESPONSE_CLOSE", + "GTK_RESPONSE_DELETE_EVENT", + "GTK_RESPONSE_HELP", + "GTK_RESPONSE_NO", + "GTK_RESPONSE_NONE", + "GTK_RESPONSE_OK", + "GTK_RESPONSE_REJECT", + "GTK_RESPONSE_YES", + "accept", + "apply", + "cancel", + "close", + "delete-event", + "help", + "no", + "none", + "ok", + "reject", + "yes", +] +_ResponseTypeValueType: TypeAlias = ResponseType | _ResponseTypeLiteralType + class RevealerTransitionType(GObject.GEnum): CROSSFADE = 1 NONE = 0 @@ -63910,6 +66518,24 @@ class RevealerTransitionType(GObject.GEnum): SLIDE_RIGHT = 2 SLIDE_UP = 4 +_RevealerTransitionTypeLiteralType: TypeAlias = Literal[ + "GTK_REVEALER_TRANSITION_TYPE_CROSSFADE", + "GTK_REVEALER_TRANSITION_TYPE_NONE", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP", + "crossfade", + "none", + "slide-down", + "slide-left", + "slide-right", + "slide-up", +] +_RevealerTransitionTypeValueType: TypeAlias = ( + RevealerTransitionType | _RevealerTransitionTypeLiteralType +) + class ScrollStep(GObject.GEnum): ENDS = 2 HORIZONTAL_ENDS = 5 @@ -63918,6 +66544,22 @@ class ScrollStep(GObject.GEnum): PAGES = 1 STEPS = 0 +_ScrollStepLiteralType: TypeAlias = Literal[ + "GTK_SCROLL_ENDS", + "GTK_SCROLL_HORIZONTAL_ENDS", + "GTK_SCROLL_HORIZONTAL_PAGES", + "GTK_SCROLL_HORIZONTAL_STEPS", + "GTK_SCROLL_PAGES", + "GTK_SCROLL_STEPS", + "ends", + "horizontal-ends", + "horizontal-pages", + "horizontal-steps", + "pages", + "steps", +] +_ScrollStepValueType: TypeAlias = ScrollStep | _ScrollStepLiteralType + class ScrollType(GObject.GEnum): END = 15 JUMP = 1 @@ -63936,21 +66578,84 @@ class ScrollType(GObject.GEnum): STEP_RIGHT = 11 STEP_UP = 6 +_ScrollTypeLiteralType: TypeAlias = Literal[ + "GTK_SCROLL_END", + "GTK_SCROLL_JUMP", + "GTK_SCROLL_NONE", + "GTK_SCROLL_PAGE_BACKWARD", + "GTK_SCROLL_PAGE_DOWN", + "GTK_SCROLL_PAGE_FORWARD", + "GTK_SCROLL_PAGE_LEFT", + "GTK_SCROLL_PAGE_RIGHT", + "GTK_SCROLL_PAGE_UP", + "GTK_SCROLL_START", + "GTK_SCROLL_STEP_BACKWARD", + "GTK_SCROLL_STEP_DOWN", + "GTK_SCROLL_STEP_FORWARD", + "GTK_SCROLL_STEP_LEFT", + "GTK_SCROLL_STEP_RIGHT", + "GTK_SCROLL_STEP_UP", + "end", + "jump", + "none", + "page-backward", + "page-down", + "page-forward", + "page-left", + "page-right", + "page-up", + "start", + "step-backward", + "step-down", + "step-forward", + "step-left", + "step-right", + "step-up", +] +_ScrollTypeValueType: TypeAlias = ScrollType | _ScrollTypeLiteralType + class ScrollablePolicy(GObject.GEnum): MINIMUM = 0 NATURAL = 1 +_ScrollablePolicyLiteralType: TypeAlias = Literal[ + "GTK_SCROLL_MINIMUM", "GTK_SCROLL_NATURAL", "minimum", "natural" +] +_ScrollablePolicyValueType: TypeAlias = ScrollablePolicy | _ScrollablePolicyLiteralType + class SelectionMode(GObject.GEnum): BROWSE = 2 MULTIPLE = 3 NONE = 0 SINGLE = 1 +_SelectionModeLiteralType: TypeAlias = Literal[ + "GTK_SELECTION_BROWSE", + "GTK_SELECTION_MULTIPLE", + "GTK_SELECTION_NONE", + "GTK_SELECTION_SINGLE", + "browse", + "multiple", + "none", + "single", +] +_SelectionModeValueType: TypeAlias = SelectionMode | _SelectionModeLiteralType + class SensitivityType(GObject.GEnum): AUTO = 0 OFF = 2 ON = 1 +_SensitivityTypeLiteralType: TypeAlias = Literal[ + "GTK_SENSITIVITY_AUTO", + "GTK_SENSITIVITY_OFF", + "GTK_SENSITIVITY_ON", + "auto", + "off", + "on", +] +_SensitivityTypeValueType: TypeAlias = SensitivityType | _SensitivityTypeLiteralType + class ShadowType(GObject.GEnum): ETCHED_IN = 3 ETCHED_OUT = 4 @@ -63958,6 +66663,20 @@ class ShadowType(GObject.GEnum): NONE = 0 OUT = 2 +_ShadowTypeLiteralType: TypeAlias = Literal[ + "GTK_SHADOW_ETCHED_IN", + "GTK_SHADOW_ETCHED_OUT", + "GTK_SHADOW_IN", + "GTK_SHADOW_NONE", + "GTK_SHADOW_OUT", + "etched-in", + "etched-out", + "in", + "none", + "out", +] +_ShadowTypeValueType: TypeAlias = ShadowType | _ShadowTypeLiteralType + class ShortcutType(GObject.GEnum): ACCELERATOR = 0 GESTURE = 7 @@ -63968,25 +66687,79 @@ class ShortcutType(GObject.GEnum): GESTURE_TWO_FINGER_SWIPE_LEFT = 5 GESTURE_TWO_FINGER_SWIPE_RIGHT = 6 +_ShortcutTypeLiteralType: TypeAlias = Literal[ + "GTK_SHORTCUT_ACCELERATOR", + "GTK_SHORTCUT_GESTURE", + "GTK_SHORTCUT_GESTURE_PINCH", + "GTK_SHORTCUT_GESTURE_ROTATE_CLOCKWISE", + "GTK_SHORTCUT_GESTURE_ROTATE_COUNTERCLOCKWISE", + "GTK_SHORTCUT_GESTURE_STRETCH", + "GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_LEFT", + "GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_RIGHT", + "accelerator", + "gesture", + "gesture-pinch", + "gesture-rotate-clockwise", + "gesture-rotate-counterclockwise", + "gesture-stretch", + "gesture-two-finger-swipe-left", + "gesture-two-finger-swipe-right", +] +_ShortcutTypeValueType: TypeAlias = ShortcutType | _ShortcutTypeLiteralType + class SizeGroupMode(GObject.GEnum): BOTH = 3 HORIZONTAL = 1 NONE = 0 VERTICAL = 2 +_SizeGroupModeLiteralType: TypeAlias = Literal[ + "GTK_SIZE_GROUP_BOTH", + "GTK_SIZE_GROUP_HORIZONTAL", + "GTK_SIZE_GROUP_NONE", + "GTK_SIZE_GROUP_VERTICAL", + "both", + "horizontal", + "none", + "vertical", +] +_SizeGroupModeValueType: TypeAlias = SizeGroupMode | _SizeGroupModeLiteralType + class SizeRequestMode(GObject.GEnum): CONSTANT_SIZE = 2 HEIGHT_FOR_WIDTH = 0 WIDTH_FOR_HEIGHT = 1 +_SizeRequestModeLiteralType: TypeAlias = Literal[ + "GTK_SIZE_REQUEST_CONSTANT_SIZE", + "GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH", + "GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT", + "constant-size", + "height-for-width", + "width-for-height", +] +_SizeRequestModeValueType: TypeAlias = SizeRequestMode | _SizeRequestModeLiteralType + class SortType(GObject.GEnum): ASCENDING = 0 DESCENDING = 1 +_SortTypeLiteralType: TypeAlias = Literal[ + "GTK_SORT_ASCENDING", "GTK_SORT_DESCENDING", "ascending", "descending" +] +_SortTypeValueType: TypeAlias = SortType | _SortTypeLiteralType + class SpinButtonUpdatePolicy(GObject.GEnum): ALWAYS = 0 IF_VALID = 1 +_SpinButtonUpdatePolicyLiteralType: TypeAlias = Literal[ + "GTK_UPDATE_ALWAYS", "GTK_UPDATE_IF_VALID", "always", "if-valid" +] +_SpinButtonUpdatePolicyValueType: TypeAlias = ( + SpinButtonUpdatePolicy | _SpinButtonUpdatePolicyLiteralType +) + class SpinType(GObject.GEnum): END = 5 HOME = 4 @@ -63996,6 +66769,24 @@ class SpinType(GObject.GEnum): STEP_FORWARD = 0 USER_DEFINED = 6 +_SpinTypeLiteralType: TypeAlias = Literal[ + "GTK_SPIN_END", + "GTK_SPIN_HOME", + "GTK_SPIN_PAGE_BACKWARD", + "GTK_SPIN_PAGE_FORWARD", + "GTK_SPIN_STEP_BACKWARD", + "GTK_SPIN_STEP_FORWARD", + "GTK_SPIN_USER_DEFINED", + "end", + "home", + "page-backward", + "page-forward", + "step-backward", + "step-forward", + "user-defined", +] +_SpinTypeValueType: TypeAlias = SpinType | _SpinTypeLiteralType + class StackTransitionType(GObject.GEnum): CROSSFADE = 1 NONE = 0 @@ -64018,6 +66809,52 @@ class StackTransitionType(GObject.GEnum): UNDER_RIGHT = 15 UNDER_UP = 12 +_StackTransitionTypeLiteralType: TypeAlias = Literal[ + "GTK_STACK_TRANSITION_TYPE_CROSSFADE", + "GTK_STACK_TRANSITION_TYPE_NONE", + "GTK_STACK_TRANSITION_TYPE_OVER_DOWN", + "GTK_STACK_TRANSITION_TYPE_OVER_DOWN_UP", + "GTK_STACK_TRANSITION_TYPE_OVER_LEFT", + "GTK_STACK_TRANSITION_TYPE_OVER_LEFT_RIGHT", + "GTK_STACK_TRANSITION_TYPE_OVER_RIGHT", + "GTK_STACK_TRANSITION_TYPE_OVER_RIGHT_LEFT", + "GTK_STACK_TRANSITION_TYPE_OVER_UP", + "GTK_STACK_TRANSITION_TYPE_OVER_UP_DOWN", + "GTK_STACK_TRANSITION_TYPE_SLIDE_DOWN", + "GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT", + "GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT", + "GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT", + "GTK_STACK_TRANSITION_TYPE_SLIDE_UP", + "GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN", + "GTK_STACK_TRANSITION_TYPE_UNDER_DOWN", + "GTK_STACK_TRANSITION_TYPE_UNDER_LEFT", + "GTK_STACK_TRANSITION_TYPE_UNDER_RIGHT", + "GTK_STACK_TRANSITION_TYPE_UNDER_UP", + "crossfade", + "none", + "over-down", + "over-down-up", + "over-left", + "over-left-right", + "over-right", + "over-right-left", + "over-up", + "over-up-down", + "slide-down", + "slide-left", + "slide-left-right", + "slide-right", + "slide-up", + "slide-up-down", + "under-down", + "under-left", + "under-right", + "under-up", +] +_StackTransitionTypeValueType: TypeAlias = ( + StackTransitionType | _StackTransitionTypeLiteralType +) + class StateType(GObject.GEnum): ACTIVE = 1 FOCUSED = 6 @@ -64027,26 +66864,80 @@ class StateType(GObject.GEnum): PRELIGHT = 2 SELECTED = 3 +_StateTypeLiteralType: TypeAlias = Literal[ + "GTK_STATE_ACTIVE", + "GTK_STATE_FOCUSED", + "GTK_STATE_INCONSISTENT", + "GTK_STATE_INSENSITIVE", + "GTK_STATE_NORMAL", + "GTK_STATE_PRELIGHT", + "GTK_STATE_SELECTED", + "active", + "focused", + "inconsistent", + "insensitive", + "normal", + "prelight", + "selected", +] +_StateTypeValueType: TypeAlias = StateType | _StateTypeLiteralType + class TextBufferTargetInfo(GObject.GEnum): BUFFER_CONTENTS = -1 RICH_TEXT = -2 TEXT = -3 +_TextBufferTargetInfoLiteralType: TypeAlias = Literal[ + "GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS", + "GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT", + "GTK_TEXT_BUFFER_TARGET_INFO_TEXT", + "buffer-contents", + "rich-text", + "text", +] +_TextBufferTargetInfoValueType: TypeAlias = ( + TextBufferTargetInfo | _TextBufferTargetInfoLiteralType +) + class TextDirection(GObject.GEnum): LTR = 1 NONE = 0 RTL = 2 +_TextDirectionLiteralType: TypeAlias = Literal[ + "GTK_TEXT_DIR_LTR", "GTK_TEXT_DIR_NONE", "GTK_TEXT_DIR_RTL", "ltr", "none", "rtl" +] +_TextDirectionValueType: TypeAlias = TextDirection | _TextDirectionLiteralType + class TextExtendSelection(GObject.GEnum): LINE = 1 WORD = 0 +_TextExtendSelectionLiteralType: TypeAlias = Literal[ + "GTK_TEXT_EXTEND_SELECTION_LINE", "GTK_TEXT_EXTEND_SELECTION_WORD", "line", "word" +] +_TextExtendSelectionValueType: TypeAlias = ( + TextExtendSelection | _TextExtendSelectionLiteralType +) + class TextViewLayer(GObject.GEnum): ABOVE = 1 ABOVE_TEXT = 3 BELOW = 0 BELOW_TEXT = 2 +_TextViewLayerLiteralType: TypeAlias = Literal[ + "GTK_TEXT_VIEW_LAYER_ABOVE", + "GTK_TEXT_VIEW_LAYER_ABOVE_TEXT", + "GTK_TEXT_VIEW_LAYER_BELOW", + "GTK_TEXT_VIEW_LAYER_BELOW_TEXT", + "above", + "above-text", + "below", + "below-text", +] +_TextViewLayerValueType: TypeAlias = TextViewLayer | _TextViewLayerLiteralType + class TextWindowType(GObject.GEnum): BOTTOM = 6 LEFT = 3 @@ -64056,43 +66947,137 @@ class TextWindowType(GObject.GEnum): TOP = 5 WIDGET = 1 +_TextWindowTypeLiteralType: TypeAlias = Literal[ + "GTK_TEXT_WINDOW_BOTTOM", + "GTK_TEXT_WINDOW_LEFT", + "GTK_TEXT_WINDOW_PRIVATE", + "GTK_TEXT_WINDOW_RIGHT", + "GTK_TEXT_WINDOW_TEXT", + "GTK_TEXT_WINDOW_TOP", + "GTK_TEXT_WINDOW_WIDGET", + "bottom", + "left", + "private", + "right", + "text", + "top", + "widget", +] +_TextWindowTypeValueType: TypeAlias = TextWindowType | _TextWindowTypeLiteralType + class ToolbarSpaceStyle(GObject.GEnum): EMPTY = 0 LINE = 1 +_ToolbarSpaceStyleLiteralType: TypeAlias = Literal[ + "GTK_TOOLBAR_SPACE_EMPTY", "GTK_TOOLBAR_SPACE_LINE", "empty", "line" +] +_ToolbarSpaceStyleValueType: TypeAlias = ( + ToolbarSpaceStyle | _ToolbarSpaceStyleLiteralType +) + class ToolbarStyle(GObject.GEnum): BOTH = 2 BOTH_HORIZ = 3 ICONS = 0 TEXT = 1 +_ToolbarStyleLiteralType: TypeAlias = Literal[ + "GTK_TOOLBAR_BOTH", + "GTK_TOOLBAR_BOTH_HORIZ", + "GTK_TOOLBAR_ICONS", + "GTK_TOOLBAR_TEXT", + "both", + "both-horiz", + "icons", + "text", +] +_ToolbarStyleValueType: TypeAlias = ToolbarStyle | _ToolbarStyleLiteralType + class TreeViewColumnSizing(GObject.GEnum): AUTOSIZE = 1 FIXED = 2 GROW_ONLY = 0 +_TreeViewColumnSizingLiteralType: TypeAlias = Literal[ + "GTK_TREE_VIEW_COLUMN_AUTOSIZE", + "GTK_TREE_VIEW_COLUMN_FIXED", + "GTK_TREE_VIEW_COLUMN_GROW_ONLY", + "autosize", + "fixed", + "grow-only", +] +_TreeViewColumnSizingValueType: TypeAlias = ( + TreeViewColumnSizing | _TreeViewColumnSizingLiteralType +) + class TreeViewDropPosition(GObject.GEnum): AFTER = 1 BEFORE = 0 INTO_OR_AFTER = 3 INTO_OR_BEFORE = 2 +_TreeViewDropPositionLiteralType: TypeAlias = Literal[ + "GTK_TREE_VIEW_DROP_AFTER", + "GTK_TREE_VIEW_DROP_BEFORE", + "GTK_TREE_VIEW_DROP_INTO_OR_AFTER", + "GTK_TREE_VIEW_DROP_INTO_OR_BEFORE", + "after", + "before", + "into-or-after", + "into-or-before", +] +_TreeViewDropPositionValueType: TypeAlias = ( + TreeViewDropPosition | _TreeViewDropPositionLiteralType +) + class TreeViewGridLines(GObject.GEnum): BOTH = 3 HORIZONTAL = 1 NONE = 0 VERTICAL = 2 +_TreeViewGridLinesLiteralType: TypeAlias = Literal[ + "GTK_TREE_VIEW_GRID_LINES_BOTH", + "GTK_TREE_VIEW_GRID_LINES_HORIZONTAL", + "GTK_TREE_VIEW_GRID_LINES_NONE", + "GTK_TREE_VIEW_GRID_LINES_VERTICAL", + "both", + "horizontal", + "none", + "vertical", +] +_TreeViewGridLinesValueType: TypeAlias = ( + TreeViewGridLines | _TreeViewGridLinesLiteralType +) + class Unit(GObject.GEnum): INCH = 2 MM = 3 NONE = 0 POINTS = 1 +_UnitLiteralType: TypeAlias = Literal[ + "GTK_UNIT_INCH", + "GTK_UNIT_MM", + "GTK_UNIT_NONE", + "GTK_UNIT_POINTS", + "inch", + "mm", + "none", + "points", +] +_UnitValueType: TypeAlias = Unit | _UnitLiteralType + class WidgetHelpType(GObject.GEnum): TOOLTIP = 0 WHATS_THIS = 1 +_WidgetHelpTypeLiteralType: TypeAlias = Literal[ + "GTK_WIDGET_HELP_TOOLTIP", "GTK_WIDGET_HELP_WHATS_THIS", "tooltip", "whats-this" +] +_WidgetHelpTypeValueType: TypeAlias = WidgetHelpType | _WidgetHelpTypeLiteralType + class WindowPosition(GObject.GEnum): CENTER = 1 CENTER_ALWAYS = 3 @@ -64100,12 +67085,43 @@ class WindowPosition(GObject.GEnum): MOUSE = 2 NONE = 0 +_WindowPositionLiteralType: TypeAlias = Literal[ + "GTK_WIN_POS_CENTER", + "GTK_WIN_POS_CENTER_ALWAYS", + "GTK_WIN_POS_CENTER_ON_PARENT", + "GTK_WIN_POS_MOUSE", + "GTK_WIN_POS_NONE", + "center", + "center-always", + "center-on-parent", + "mouse", + "none", +] +_WindowPositionValueType: TypeAlias = WindowPosition | _WindowPositionLiteralType + class WindowType(GObject.GEnum): POPUP = 1 TOPLEVEL = 0 +_WindowTypeLiteralType: TypeAlias = Literal[ + "GTK_WINDOW_POPUP", "GTK_WINDOW_TOPLEVEL", "popup", "toplevel" +] +_WindowTypeValueType: TypeAlias = WindowType | _WindowTypeLiteralType + class WrapMode(GObject.GEnum): CHAR = 1 NONE = 0 WORD = 2 WORD_CHAR = 3 + +_WrapModeLiteralType: TypeAlias = Literal[ + "GTK_WRAP_CHAR", + "GTK_WRAP_NONE", + "GTK_WRAP_WORD", + "GTK_WRAP_WORD_CHAR", + "char", + "none", + "word", + "word-char", +] +_WrapModeValueType: TypeAlias = WrapMode | _WrapModeLiteralType diff --git a/src/gi-stubs/repository/_Gtk4.pyi b/src/gi-stubs/repository/_Gtk4.pyi index 63adffcd..1be28bee 100644 --- a/src/gi-stubs/repository/_Gtk4.pyi +++ b/src/gi-stubs/repository/_Gtk4.pyi @@ -1,8 +1,11 @@ from typing import Any from typing import Final +from typing import Literal from typing import overload from typing import Protocol from typing import type_check_only +from typing import TypeAlias +from typing_extensions import Never from typing_extensions import Self from typing_extensions import TypeVar from typing_extensions import TypeVarTuple @@ -143,35 +146,37 @@ TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID: Final[int] def accelerator_get_default_mod_mask() -> _Gdk4.ModifierType: ... def accelerator_get_label( - accelerator_key: int, accelerator_mods: _Gdk4.ModifierType + accelerator_key: int, accelerator_mods: _Gdk4._ModifierTypeValueType ) -> str: ... def accelerator_get_label_with_keycode( display: _Gdk4.Display | None, accelerator_key: int, keycode: int, - accelerator_mods: _Gdk4.ModifierType, + accelerator_mods: _Gdk4._ModifierTypeValueType, ) -> str: ... def accelerator_name( - accelerator_key: int, accelerator_mods: _Gdk4.ModifierType + accelerator_key: int, accelerator_mods: _Gdk4._ModifierTypeValueType ) -> str: ... def accelerator_name_with_keycode( display: _Gdk4.Display | None, accelerator_key: int, keycode: int, - accelerator_mods: _Gdk4.ModifierType, + accelerator_mods: _Gdk4._ModifierTypeValueType, ) -> str: ... def accelerator_parse(accelerator: str) -> tuple[bool, int, _Gdk4.ModifierType]: ... def accelerator_parse_with_keycode( accelerator: str, display: _Gdk4.Display | None = None ) -> tuple[bool, int, list[int], _Gdk4.ModifierType]: ... -def accelerator_valid(keyval: int, modifiers: _Gdk4.ModifierType) -> bool: ... +def accelerator_valid(keyval: int, modifiers: _Gdk4._ModifierTypeValueType) -> bool: ... def accessible_property_init_value( - property: AccessibleProperty, value: Any + property: _AccessiblePropertyValueType, value: Any ) -> None: ... def accessible_relation_init_value( - relation: AccessibleRelation, value: Any + relation: _AccessibleRelationValueType, value: Any +) -> None: ... +def accessible_state_init_value( + state: _AccessibleStateValueType, value: Any ) -> None: ... -def accessible_state_init_value(state: AccessibleState, value: Any) -> None: ... def bitset_iter_init_at(set: Bitset, target: int) -> tuple[bool, BitsetIter, int]: ... def bitset_iter_init_first(set: Bitset) -> tuple[bool, BitsetIter, int]: ... def bitset_iter_init_last(set: Bitset) -> tuple[bool, BitsetIter, int]: ... @@ -327,7 +332,7 @@ def render_option( height: float, ) -> None: ... def rgb_to_hsv(r: float, g: float, b: float) -> tuple[float, float, float]: ... -def set_debug_flags(flags: DebugFlags) -> None: ... +def set_debug_flags(flags: _DebugFlagsValueType) -> None: ... def show_uri(parent: Window | None, uri: str, timestamp: int) -> None: ... def show_uri_full( parent: Window | None, @@ -346,18 +351,20 @@ def test_accessible_assertion_message_role( func: str, expr: str, accessible: Accessible, - expected_role: AccessibleRole, - actual_role: AccessibleRole, + expected_role: _AccessibleRoleValueType, + actual_role: _AccessibleRoleValueType, ) -> None: ... def test_accessible_has_property( - accessible: Accessible, property: AccessibleProperty + accessible: Accessible, property: _AccessiblePropertyValueType ) -> bool: ... def test_accessible_has_relation( - accessible: Accessible, relation: AccessibleRelation + accessible: Accessible, relation: _AccessibleRelationValueType +) -> bool: ... +def test_accessible_has_role( + accessible: Accessible, role: _AccessibleRoleValueType ) -> bool: ... -def test_accessible_has_role(accessible: Accessible, role: AccessibleRole) -> bool: ... def test_accessible_has_state( - accessible: Accessible, state: AccessibleState + accessible: Accessible, state: _AccessibleStateValueType ) -> bool: ... def test_list_all_types() -> list[type[Any]]: ... def test_register_all_types() -> None: ... @@ -401,22 +408,25 @@ class ATContext(GObject.Object): class Props(GObject.Object.Props): @property def accessible(self) -> Accessible: ... - accessible_role: AccessibleRole - display: _Gdk4.Display + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + display: _Gdk4.Display | None @property def props(self) -> Props: ... def __init__( self, *, - accessible: Accessible = ..., - accessible_role: AccessibleRole = ..., - display: _Gdk4.Display = ..., + accessible: Accessible | None = ..., + accessible_role: _AccessibleRoleValueType = ..., + display: _Gdk4.Display | None = ..., ) -> None: ... @classmethod def create( cls, - accessible_role: AccessibleRole, + accessible_role: _AccessibleRoleValueType, accessible: Accessible, display: _Gdk4.Display, ) -> ATContext | None: ... @@ -549,13 +559,25 @@ class AboutDialog(Window): """ @type_check_only class Props(Window.Props): - artists: list[str] - authors: list[str] + @property + def artists(self) -> list[str]: ... + @artists.setter + def artists(self, value: Sequence[str]) -> None: ... + @property + def authors(self) -> list[str]: ... + @authors.setter + def authors(self, value: Sequence[str]) -> None: ... comments: str | None copyright: str | None - documenters: list[str] + @property + def documenters(self) -> list[str]: ... + @documenters.setter + def documenters(self, value: Sequence[str]) -> None: ... license: str | None - license_type: License + @property + def license_type(self) -> License: ... + @license_type.setter + def license_type(self, value: _LicenseValueType) -> None: ... logo: _Gdk4.Paintable | None logo_icon_name: str | None program_name: str | None @@ -563,9 +585,15 @@ class AboutDialog(Window): translator_credits: str | None version: str | None website: str | None - website_label: str | None + @property + def website_label(self) -> str | None: ... + @website_label.setter + def website_label(self, value: str) -> None: ... wrap_license: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -578,7 +606,7 @@ class AboutDialog(Window): copyright: str | None = ..., documenters: Sequence[str] = ..., license: str | None = ..., - license_type: License = ..., + license_type: _LicenseValueType = ..., logo: _Gdk4.Paintable | None = ..., logo_icon_name: str | None = ..., program_name: str | None = ..., @@ -588,7 +616,7 @@ class AboutDialog(Window): website: str | None = ..., website_label: str = ..., wrap_license: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., application: Application | None = ..., child: Widget | None = ..., decorated: bool = ..., @@ -601,7 +629,7 @@ class AboutDialog(Window): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -616,11 +644,11 @@ class AboutDialog(Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -633,12 +661,12 @@ class AboutDialog(Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -669,7 +697,7 @@ class AboutDialog(Window): def set_copyright(self, copyright: str | None = None) -> None: ... def set_documenters(self, documenters: Sequence[str]) -> None: ... def set_license(self, license: str | None = None) -> None: ... - def set_license_type(self, license_type: License) -> None: ... + def set_license_type(self, license_type: _LicenseValueType) -> None: ... def set_logo(self, logo: _Gdk4.Paintable | None = None) -> None: ... def set_logo_icon_name(self, icon_name: str | None = None) -> None: ... def set_program_name(self, name: str | None = None) -> None: ... @@ -688,7 +716,7 @@ class Accessible(GObject.GInterface, Protocol): notify (GParam) """ def announce( - self, message: str, priority: AccessibleAnnouncementPriority + self, message: str, priority: _AccessibleAnnouncementPriorityValueType ) -> None: ... def get_accessible_parent(self) -> Accessible | None: ... def get_accessible_role(self) -> AccessibleRole: ... @@ -696,25 +724,27 @@ class Accessible(GObject.GInterface, Protocol): def get_bounds(self) -> tuple[bool, int, int, int, int]: ... def get_first_accessible_child(self) -> Accessible | None: ... def get_next_accessible_sibling(self) -> Accessible | None: ... - def get_platform_state(self, state: AccessiblePlatformState) -> bool: ... - def reset_property(self, property: AccessibleProperty) -> None: ... - def reset_relation(self, relation: AccessibleRelation) -> None: ... - def reset_state(self, state: AccessibleState) -> None: ... + def get_platform_state(self, state: _AccessiblePlatformStateValueType) -> bool: ... + def reset_property(self, property: _AccessiblePropertyValueType) -> None: ... + def reset_relation(self, relation: _AccessibleRelationValueType) -> None: ... + def reset_state(self, state: _AccessibleStateValueType) -> None: ... def set_accessible_parent( self, parent: Accessible | None = None, next_sibling: Accessible | None = None ) -> None: ... def update_next_accessible_sibling( self, new_sibling: Accessible | None = None ) -> None: ... - def update_platform_state(self, state: AccessiblePlatformState) -> None: ... + def update_platform_state( + self, state: _AccessiblePlatformStateValueType + ) -> None: ... def update_property( - self, properties: Sequence[AccessibleProperty], values: Sequence[Any] + self, properties: Sequence[_AccessiblePropertyValueType], values: Sequence[Any] ) -> None: ... def update_relation( - self, relations: Sequence[AccessibleRelation], values: Sequence[Any] + self, relations: Sequence[_AccessibleRelationValueType], values: Sequence[Any] ) -> None: ... def update_state( - self, states: Sequence[AccessibleState], values: Sequence[Any] + self, states: Sequence[_AccessibleStateValueType], values: Sequence[Any] ) -> None: ... class AccessibleInterface(_gi.Struct): @@ -732,7 +762,7 @@ class AccessibleInterface(_gi.Struct): @property def get_platform_state( self, - ) -> Callable[[Accessible, AccessiblePlatformState], bool]: ... + ) -> Callable[[Accessible, _AccessiblePlatformStateValueType], bool]: ... @property def get_accessible_parent(self) -> Callable[[Accessible], Accessible | None]: ... @property @@ -791,7 +821,7 @@ class AccessibleText(GObject.GInterface, Protocol): """ def update_caret_position(self) -> None: ... def update_contents( - self, change: AccessibleTextContentChange, start: int, end: int + self, change: _AccessibleTextContentChangeValueType, start: int, end: int ) -> None: ... def update_selection_bound(self) -> None: ... @@ -811,7 +841,8 @@ class AccessibleTextInterface(_gi.Struct): def get_contents_at( self, ) -> Callable[ - [AccessibleText, int, AccessibleTextGranularity], tuple[GLib.Bytes, int, int] + [AccessibleText, int, _AccessibleTextGranularityValueType], + tuple[GLib.Bytes, int, int], ]: ... @property def get_caret_position(self) -> Callable[[AccessibleText], int]: ... @@ -923,7 +954,10 @@ class ActionBar(Widget): @type_check_only class Props(Widget.Props): revealed: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -931,15 +965,15 @@ class ActionBar(Widget): self, *, revealed: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -952,12 +986,12 @@ class ActionBar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1152,7 +1186,10 @@ class AlertDialog(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - buttons: list[str] | None + @property + def buttons(self) -> list[str]: ... + @buttons.setter + def buttons(self, value: Sequence[str]) -> None: ... cancel_button: int default_button: int detail: str @@ -1235,7 +1272,10 @@ class AlternativeTrigger(ShortcutTrigger): @property def props(self) -> Props: ... def __init__( - self, *, first: ShortcutTrigger = ..., second: ShortcutTrigger = ... + self, + *, + first: ShortcutTrigger | None = ..., + second: ShortcutTrigger | None = ..., ) -> None: ... def get_first(self) -> ShortcutTrigger: ... def get_second(self) -> ShortcutTrigger: ... @@ -1368,11 +1408,17 @@ class AppChooserButton(Widget, AppChooser): """ @type_check_only class Props(Widget.Props): - heading: str | None + @property + def heading(self) -> str | None: ... + @heading.setter + def heading(self, value: str) -> None: ... modal: bool show_default_item: bool show_dialog_item: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def content_type(self) -> str: ... @@ -1385,16 +1431,16 @@ class AppChooserButton(Widget, AppChooser): modal: bool = ..., show_default_item: bool = ..., show_dialog_item: bool = ..., - accessible_role: AccessibleRole = ..., - content_type: str = ..., + accessible_role: _AccessibleRoleValueType = ..., + content_type: str | None = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -1407,12 +1453,12 @@ class AppChooserButton(Widget, AppChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1548,9 +1594,15 @@ class AppChooserDialog(Dialog, AppChooser): @type_check_only class Props(Dialog.Props): @property - def gfile(self) -> Gio.File: ... - heading: str | None - accessible_role: AccessibleRole + def gfile(self) -> Gio.File | None: ... + @property + def heading(self) -> str | None: ... + @heading.setter + def heading(self, value: str) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def content_type(self) -> str: ... @@ -1559,10 +1611,10 @@ class AppChooserDialog(Dialog, AppChooser): def __init__( self, *, - gfile: Gio.File = ..., + gfile: Gio.File | None = ..., heading: str = ..., - accessible_role: AccessibleRole = ..., - content_type: str = ..., + accessible_role: _AccessibleRoleValueType = ..., + content_type: str | None = ..., use_header_bar: int = ..., application: Application | None = ..., child: Widget | None = ..., @@ -1576,7 +1628,7 @@ class AppChooserDialog(Dialog, AppChooser): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -1591,11 +1643,11 @@ class AppChooserDialog(Dialog, AppChooser): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -1608,12 +1660,12 @@ class AppChooserDialog(Dialog, AppChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1623,11 +1675,11 @@ class AppChooserDialog(Dialog, AppChooser): def get_widget(self) -> Widget: ... @classmethod def new( - cls, parent: Window | None, flags: DialogFlags, file: Gio.File + cls, parent: Window | None, flags: _DialogFlagsValueType, file: Gio.File ) -> AppChooserDialog: ... @classmethod def new_for_content_type( - cls, parent: Window | None, flags: DialogFlags, content_type: str + cls, parent: Window | None, flags: _DialogFlagsValueType, content_type: str ) -> AppChooserDialog: ... def set_heading(self, heading: str) -> None: ... @@ -1711,13 +1763,19 @@ class AppChooserWidget(Widget, AppChooser): """ @type_check_only class Props(Widget.Props): - default_text: str | None + @property + def default_text(self) -> str | None: ... + @default_text.setter + def default_text(self, value: str) -> None: ... show_all: bool show_default: bool show_fallback: bool show_other: bool show_recommended: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def content_type(self) -> str: ... @@ -1732,16 +1790,16 @@ class AppChooserWidget(Widget, AppChooser): show_fallback: bool = ..., show_other: bool = ..., show_recommended: bool = ..., - accessible_role: AccessibleRole = ..., - content_type: str = ..., + accessible_role: _AccessibleRoleValueType = ..., + content_type: str | None = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -1754,12 +1812,12 @@ class AppChooserWidget(Widget, AppChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -1857,7 +1915,7 @@ class Application(Gio.Application): register_session: bool = ..., action_group: Gio.ActionGroup | None = ..., application_id: str | None = ..., - flags: Gio.ApplicationFlags = ..., + flags: Gio._ApplicationFlagsValueType = ..., inactivity_timeout: int = ..., resource_base_path: str | None = ..., version: str = ..., @@ -1875,13 +1933,13 @@ class Application(Gio.Application): def inhibit( self, window: Window | None, - flags: ApplicationInhibitFlags, + flags: _ApplicationInhibitFlagsValueType, reason: str | None = None, ) -> int: ... def list_action_descriptions(self) -> list[str]: ... @classmethod def new( - cls, application_id: str | None, flags: Gio.ApplicationFlags + cls, application_id: str | None, flags: Gio._ApplicationFlagsValueType ) -> Application: ... def remove_window(self, window: Window) -> None: ... def set_accels_for_action( @@ -2020,7 +2078,10 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): @type_check_only class Props(Window.Props): show_menubar: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -2030,7 +2091,7 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): self, *, show_menubar: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., application: Application | None = ..., child: Widget | None = ..., decorated: bool = ..., @@ -2043,7 +2104,7 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -2058,11 +2119,11 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2075,12 +2136,12 @@ class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2187,7 +2248,10 @@ class AspectFrame(Widget): ratio: float xalign: float yalign: float - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -2199,15 +2263,15 @@ class AspectFrame(Widget): ratio: float = ..., xalign: float = ..., yalign: float = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2220,12 +2284,12 @@ class AspectFrame(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2364,7 +2428,10 @@ class Assistant(Window): def pages(self) -> Gio.ListModel: ... @property def use_header_bar(self) -> int: ... - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -2372,7 +2439,7 @@ class Assistant(Window): self, *, use_header_bar: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., application: Application | None = ..., child: Widget | None = ..., decorated: bool = ..., @@ -2385,7 +2452,7 @@ class Assistant(Window): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -2400,11 +2467,11 @@ class Assistant(Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2417,12 +2484,12 @@ class Assistant(Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2455,7 +2522,9 @@ class Assistant(Window): ) -> None: ... def set_page_complete(self, page: Widget, complete: bool) -> None: ... def set_page_title(self, page: Widget, title: str) -> None: ... - def set_page_type(self, page: Widget, type: AssistantPageType) -> None: ... + def set_page_type( + self, page: Widget, type: _AssistantPageTypeValueType + ) -> None: ... def update_buttons_state(self) -> None: ... class AssistantPage(GObject.Object): @@ -2482,18 +2551,21 @@ class AssistantPage(GObject.Object): @property def child(self) -> Widget: ... complete: bool - page_type: AssistantPageType - title: str + @property + def page_type(self) -> AssistantPageType: ... + @page_type.setter + def page_type(self, value: _AssistantPageTypeValueType) -> None: ... + title: str | None @property def props(self) -> Props: ... def __init__( self, *, - child: Widget = ..., + child: Widget | None = ..., complete: bool = ..., - page_type: AssistantPageType = ..., - title: str = ..., + page_type: _AssistantPageTypeValueType = ..., + title: str | None = ..., ) -> None: ... def get_child(self) -> Widget: ... @@ -2635,7 +2707,7 @@ class BookmarkList(GObject.Object, Gio.ListModel): self, *, attributes: str | None = ..., - filename: str = ..., + filename: str | None = ..., io_priority: int = ..., ) -> None: ... def get_attributes(self) -> str | None: ... @@ -2804,11 +2876,20 @@ class Box(Widget, Orientable): @type_check_only class Props(Widget.Props): baseline_child: int - baseline_position: BaselinePosition + @property + def baseline_position(self) -> BaselinePosition: ... + @baseline_position.setter + def baseline_position(self, value: _BaselinePositionValueType) -> None: ... homogeneous: bool spacing: int - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -2818,19 +2899,19 @@ class Box(Widget, Orientable): self, *, baseline_child: int = ..., - baseline_position: BaselinePosition = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -2843,12 +2924,12 @@ class Box(Widget, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -2863,14 +2944,14 @@ class Box(Widget, Orientable): self, child: Widget, sibling: Widget | None = None ) -> None: ... @classmethod - def new(cls, orientation: Orientation, spacing: int) -> Box: ... + def new(cls, orientation: _OrientationValueType, spacing: int) -> Box: ... def prepend(self, child: Widget) -> None: ... def remove(self, child: Widget) -> None: ... def reorder_child_after( self, child: Widget, sibling: Widget | None = None ) -> None: ... def set_baseline_child(self, child: int) -> None: ... - def set_baseline_position(self, position: BaselinePosition) -> None: ... + def set_baseline_position(self, position: _BaselinePositionValueType) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_spacing(self, spacing: int) -> None: ... @@ -2910,10 +2991,16 @@ class BoxLayout(LayoutManager, Orientable): @type_check_only class Props(LayoutManager.Props): baseline_child: int - baseline_position: BaselinePosition + @property + def baseline_position(self) -> BaselinePosition: ... + @baseline_position.setter + def baseline_position(self, value: _BaselinePositionValueType) -> None: ... homogeneous: bool spacing: int - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -2921,19 +3008,19 @@ class BoxLayout(LayoutManager, Orientable): self, *, baseline_child: int = ..., - baseline_position: BaselinePosition = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., ) -> None: ... def get_baseline_child(self) -> int: ... def get_baseline_position(self) -> BaselinePosition: ... def get_homogeneous(self) -> bool: ... def get_spacing(self) -> int: ... @classmethod - def new(cls, orientation: Orientation) -> BoxLayout: ... + def new(cls, orientation: _OrientationValueType) -> BoxLayout: ... def set_baseline_child(self, child: int) -> None: ... - def set_baseline_position(self, position: BaselinePosition) -> None: ... + def set_baseline_position(self, position: _BaselinePositionValueType) -> None: ... def set_homogeneous(self, homogeneous: bool) -> None: ... def set_spacing(self, spacing: int) -> None: ... @@ -3066,7 +3153,10 @@ class Builder(GObject.Object): @type_check_only class Props(GObject.Object.Props): current_object: GObject.Object | None - scope: BuilderScope | None + @property + def scope(self) -> BuilderScope: ... + @scope.setter + def scope(self, value: BuilderScope | None) -> None: ... translation_domain: str | None @property @@ -3088,7 +3178,7 @@ class Builder(GObject.Object): def create_closure( self, function_name: str, - flags: BuilderClosureFlags, + flags: _BuilderClosureFlagsValueType, object: GObject.Object | None = None, ) -> Callable[..., Any] | None: ... def define_builder_scope(): ... # FIXME: Override is missing typing annotation @@ -3192,7 +3282,11 @@ class BuilderListItemFactory(ListItemFactory): @property def props(self) -> Props: ... def __init__( - self, *, bytes: GLib.Bytes = ..., resource: str = ..., scope: BuilderScope = ... + self, + *, + bytes: GLib.Bytes | None = ..., + resource: str | None = ..., + scope: BuilderScope | None = ..., ) -> None: ... def get_bytes(self) -> GLib.Bytes: ... def get_resource(self) -> str | None: ... @@ -3238,7 +3332,7 @@ class BuilderScopeInterface(_gi.Struct): def create_closure( self, ) -> Callable[ - [BuilderScope, Builder, str, BuilderClosureFlags, GObject.Object], + [BuilderScope, Builder, str, _BuilderClosureFlagsValueType, GObject.Object], Callable[..., Any], ]: ... @@ -3328,12 +3422,24 @@ class Button(Widget, Actionable): can_shrink: bool child: Widget | None has_frame: bool - icon_name: str | None - label: str | None + @property + def icon_name(self) -> str | None: ... + @icon_name.setter + def icon_name(self, value: str) -> None: ... + @property + def label(self) -> str | None: ... + @label.setter + def label(self, value: str) -> None: ... use_underline: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -3348,17 +3454,17 @@ class Button(Widget, Actionable): icon_name: str = ..., label: str = ..., use_underline: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -3371,12 +3477,12 @@ class Button(Widget, Actionable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3545,7 +3651,10 @@ class Calendar(Widget): show_heading: bool show_week_numbers: bool year: int - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -3559,15 +3668,15 @@ class Calendar(Widget): show_heading: bool = ..., show_week_numbers: bool = ..., year: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -3580,12 +3689,12 @@ class Calendar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -3678,7 +3787,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): context: CellAreaContext, widget: Widget, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, edit_only: bool, ) -> bool: ... def activate_cell( @@ -3687,7 +3796,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): renderer: CellRenderer, event: _Gdk4.Event, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> bool: ... def add(self, renderer: CellRenderer) -> None: ... def add_focus_sibling( @@ -3718,7 +3827,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): context: CellAreaContext, widget: Widget, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, edit_only: bool, ) -> bool: ... def do_add(self, renderer: CellRenderer) -> None: ... @@ -3737,9 +3846,9 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): widget: Widget, event: _Gdk4.Event, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> int: ... - def do_focus(self, direction: DirectionType) -> bool: ... + def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... def do_foreach( self, callback: Callable[[CellRenderer, Unpack[_DataTs]], bool], @@ -3792,7 +3901,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): snapshot: Snapshot, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, paint_focus: bool, ) -> None: ... def event( @@ -3801,11 +3910,11 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): widget: Widget, event: _Gdk4.Event, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> int: ... # override def find_cell_property(self, property_name: str) -> GObject.ParamSpec: ... - def focus(self, direction: DirectionType) -> bool: ... + def focus(self, direction: _DirectionTypeValueType) -> bool: ... def foreach( self, callback: Callable[[CellRenderer, Unpack[_DataTs]], bool], @@ -3877,7 +3986,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): def request_renderer( self, renderer: CellRenderer, - orientation: Orientation, + orientation: _OrientationValueType, widget: Widget, for_size: int, ) -> tuple[int, int]: ... @@ -3889,7 +3998,7 @@ class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout): snapshot: Snapshot, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, paint_focus: bool, ) -> None: ... def stop_editing(self, canceled: bool) -> None: ... @@ -3925,7 +4034,10 @@ class CellAreaBox(CellArea, Orientable): @type_check_only class Props(CellArea.Props): spacing: int - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -3933,7 +4045,7 @@ class CellAreaBox(CellArea, Orientable): self, *, spacing: int = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., focus_cell: CellRenderer | None = ..., ) -> None: ... def get_spacing(self) -> int: ... @@ -3994,7 +4106,7 @@ class CellAreaClass(_gi.Struct): Widget, _Gdk4.Event, _Gdk4.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], int, ]: ... @@ -4009,7 +4121,7 @@ class CellAreaClass(_gi.Struct): Snapshot, _Gdk4.Rectangle, _Gdk4.Rectangle, - CellRendererState, + _CellRendererStateValueType, bool, ], None, @@ -4051,14 +4163,21 @@ class CellAreaClass(_gi.Struct): self, ) -> Callable[[CellArea, CellRenderer, int, Any, GObject.ParamSpec], None]: ... @property - def focus(self) -> Callable[[CellArea, DirectionType], bool]: ... + def focus(self) -> Callable[[CellArea, _DirectionTypeValueType], bool]: ... @property def is_activatable(self) -> Callable[[CellArea], bool]: ... @property def activate( self, ) -> Callable[ - [CellArea, CellAreaContext, Widget, _Gdk4.Rectangle, CellRendererState, bool], + [ + CellArea, + CellAreaContext, + Widget, + _Gdk4.Rectangle, + _CellRendererStateValueType, + bool, + ], bool, ]: ... @property @@ -4106,7 +4225,7 @@ class CellAreaContext(GObject.Object): def props(self) -> Props: ... @property def parent_instance(self) -> GObject.Object: ... - def __init__(self, *, area: CellArea = ...) -> None: ... + def __init__(self, *, area: CellArea | None = ...) -> None: ... def allocate(self, width: int, height: int) -> None: ... def do_allocate(self, width: int, height: int) -> None: ... def do_get_preferred_height_for_width(self, width: int) -> tuple[int, int]: ... @@ -4283,15 +4402,21 @@ class CellRenderer(GObject.InitiallyUnowned): """ @type_check_only class Props(GObject.InitiallyUnowned.Props): - cell_background: str - cell_background_rgba: _Gdk4.RGBA + @property + def cell_background(self) -> Never: ... + @cell_background.setter + def cell_background(self, value: str | None) -> None: ... + cell_background_rgba: _Gdk4.RGBA | None cell_background_set: bool @property def editing(self) -> bool: ... height: int is_expanded: bool is_expander: bool - mode: CellRendererMode + @property + def mode(self) -> CellRendererMode: ... + @mode.setter + def mode(self, value: _CellRendererModeValueType) -> None: ... sensitive: bool visible: bool width: int @@ -4309,13 +4434,13 @@ class CellRenderer(GObject.InitiallyUnowned): def __init__( self, *, - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -4331,7 +4456,7 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> bool: ... def do_activate( self, @@ -4340,12 +4465,15 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> bool: ... def do_editing_canceled(self) -> None: ... def do_editing_started(self, editable: CellEditable, path: str) -> None: ... def do_get_aligned_area( - self, widget: Widget, flags: CellRendererState, cell_area: _Gdk4.Rectangle + self, + widget: Widget, + flags: _CellRendererStateValueType, + cell_area: _Gdk4.Rectangle, ) -> _Gdk4.Rectangle: ... def do_get_preferred_height(self, widget: Widget) -> tuple[int, int]: ... def do_get_preferred_height_for_width( @@ -4362,7 +4490,7 @@ class CellRenderer(GObject.InitiallyUnowned): widget: Widget, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> None: ... def do_start_editing( self, @@ -4371,10 +4499,13 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> CellEditable | None: ... def get_aligned_area( - self, widget: Widget, flags: CellRendererState, cell_area: _Gdk4.Rectangle + self, + widget: Widget, + flags: _CellRendererStateValueType, + cell_area: _Gdk4.Rectangle, ) -> _Gdk4.Rectangle: ... def get_alignment(self) -> tuple[float, float]: ... def get_fixed_size(self) -> tuple[int, int]: ... @@ -4393,7 +4524,7 @@ class CellRenderer(GObject.InitiallyUnowned): def get_request_mode(self) -> SizeRequestMode: ... def get_sensitive(self) -> bool: ... def get_state( - self, widget: Widget | None, cell_state: CellRendererState + self, widget: Widget | None, cell_state: _CellRendererStateValueType ) -> StateFlags: ... def get_visible(self) -> bool: ... def is_activatable(self) -> bool: ... @@ -4410,7 +4541,7 @@ class CellRenderer(GObject.InitiallyUnowned): widget: Widget, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> None: ... def start_editing( self, @@ -4419,7 +4550,7 @@ class CellRenderer(GObject.InitiallyUnowned): path: str, background_area: _Gdk4.Rectangle, cell_area: _Gdk4.Rectangle, - flags: CellRendererState, + flags: _CellRendererStateValueType, ) -> CellEditable | None: ... def stop_editing(self, canceled: bool) -> None: ... @@ -4522,8 +4653,14 @@ class CellRendererAccel(CellRendererText): @type_check_only class Props(CellRendererText.Props): accel_key: int - accel_mode: CellRendererAccelMode - accel_mods: _Gdk4.ModifierType + @property + def accel_mode(self) -> CellRendererAccelMode: ... + @accel_mode.setter + def accel_mode(self, value: _CellRendererAccelModeValueType) -> None: ... + @property + def accel_mods(self) -> _Gdk4.ModifierType: ... + @accel_mods.setter + def accel_mods(self, value: _Gdk4._ModifierTypeValueType) -> None: ... keycode: int @property @@ -4532,31 +4669,31 @@ class CellRendererAccel(CellRendererText): self, *, accel_key: int = ..., - accel_mode: CellRendererAccelMode = ..., - accel_mods: _Gdk4.ModifierType = ..., + accel_mode: _CellRendererAccelModeValueType = ..., + accel_mods: _Gdk4._ModifierTypeValueType = ..., keycode: int = ..., align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_rgba: _Gdk4.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_rgba: _Gdk4.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_rgba: _Gdk4.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_rgba: _Gdk4.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -4565,29 +4702,29 @@ class CellRendererAccel(CellRendererText): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -4631,7 +4768,8 @@ class CellRendererClass(_gi.Struct): def get_aligned_area( self, ) -> Callable[ - [CellRenderer, Widget, CellRendererState, _Gdk4.Rectangle], _Gdk4.Rectangle + [CellRenderer, Widget, _CellRendererStateValueType, _Gdk4.Rectangle], + _Gdk4.Rectangle, ]: ... @property def snapshot( @@ -4643,7 +4781,7 @@ class CellRendererClass(_gi.Struct): Widget, _Gdk4.Rectangle, _Gdk4.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], None, ]: ... @@ -4658,7 +4796,7 @@ class CellRendererClass(_gi.Struct): str, _Gdk4.Rectangle, _Gdk4.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], bool, ]: ... @@ -4673,7 +4811,7 @@ class CellRendererClass(_gi.Struct): str, _Gdk4.Rectangle, _Gdk4.Rectangle, - CellRendererState, + _CellRendererStateValueType, ], CellEditable | None, ]: ... @@ -4783,7 +4921,7 @@ class CellRendererCombo(CellRendererText): @type_check_only class Props(CellRendererText.Props): has_entry: bool - model: TreeModel + model: TreeModel | None text_column: int @property @@ -4792,30 +4930,30 @@ class CellRendererCombo(CellRendererText): self, *, has_entry: bool = ..., - model: TreeModel = ..., + model: TreeModel | None = ..., text_column: int = ..., align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_rgba: _Gdk4.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_rgba: _Gdk4.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_rgba: _Gdk4.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_rgba: _Gdk4.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -4824,29 +4962,29 @@ class CellRendererCombo(CellRendererText): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -4904,33 +5042,39 @@ class CellRendererPixbuf(CellRenderer): """ @type_check_only class Props(CellRenderer.Props): - gicon: Gio.Icon - icon_name: str - icon_size: IconSize - pixbuf: GdkPixbuf.Pixbuf - pixbuf_expander_closed: GdkPixbuf.Pixbuf - pixbuf_expander_open: GdkPixbuf.Pixbuf - texture: _Gdk4.Texture + gicon: Gio.Icon | None + icon_name: str | None + @property + def icon_size(self) -> IconSize: ... + @icon_size.setter + def icon_size(self, value: _IconSizeValueType) -> None: ... + @property + def pixbuf(self) -> Never: ... + @pixbuf.setter + def pixbuf(self, value: GdkPixbuf.Pixbuf | None) -> None: ... + pixbuf_expander_closed: GdkPixbuf.Pixbuf | None + pixbuf_expander_open: GdkPixbuf.Pixbuf | None + texture: _Gdk4.Texture | None @property def props(self) -> Props: ... def __init__( self, *, - gicon: Gio.Icon = ..., - icon_name: str = ..., - icon_size: IconSize = ..., - pixbuf: GdkPixbuf.Pixbuf = ..., - pixbuf_expander_closed: GdkPixbuf.Pixbuf = ..., - pixbuf_expander_open: GdkPixbuf.Pixbuf = ..., - texture: _Gdk4.Texture = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + gicon: Gio.Icon | None = ..., + icon_name: str | None = ..., + icon_size: _IconSizeValueType = ..., + pixbuf: GdkPixbuf.Pixbuf | None = ..., + pixbuf_expander_closed: GdkPixbuf.Pixbuf | None = ..., + pixbuf_expander_open: GdkPixbuf.Pixbuf | None = ..., + texture: _Gdk4.Texture | None = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -4991,11 +5135,14 @@ class CellRendererProgress(CellRenderer, Orientable): class Props(CellRenderer.Props): inverted: bool pulse: int - text: str + text: str | None text_xalign: float text_yalign: float value: int - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -5004,18 +5151,18 @@ class CellRendererProgress(CellRenderer, Orientable): *, inverted: bool = ..., pulse: int = ..., - text: str = ..., + text: str | None = ..., text_xalign: float = ..., text_yalign: float = ..., value: int = ..., - orientation: Orientation = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + orientation: _OrientationValueType = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -5120,7 +5267,7 @@ class CellRendererSpin(CellRendererText): """ @type_check_only class Props(CellRendererText.Props): - adjustment: Adjustment + adjustment: Adjustment | None climb_rate: float digits: int @@ -5129,31 +5276,31 @@ class CellRendererSpin(CellRendererText): def __init__( self, *, - adjustment: Adjustment = ..., + adjustment: Adjustment | None = ..., climb_rate: float = ..., digits: int = ..., align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_rgba: _Gdk4.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_rgba: _Gdk4.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_rgba: _Gdk4.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_rgba: _Gdk4.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -5162,29 +5309,29 @@ class CellRendererSpin(CellRendererText): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -5240,7 +5387,10 @@ class CellRendererSpinner(CellRenderer): class Props(CellRenderer.Props): active: bool pulse: int - size: IconSize + @property + def size(self) -> IconSize: ... + @size.setter + def size(self, value: _IconSizeValueType) -> None: ... @property def props(self) -> Props: ... @@ -5249,14 +5399,14 @@ class CellRendererSpinner(CellRenderer): *, active: bool = ..., pulse: int = ..., - size: IconSize = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + size: _IconSizeValueType = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -5357,27 +5507,42 @@ class CellRendererText(CellRenderer): @type_check_only class Props(CellRenderer.Props): align_set: bool - alignment: Pango.Alignment - attributes: Pango.AttrList - background: str - background_rgba: _Gdk4.RGBA + @property + def alignment(self) -> Pango.Alignment: ... + @alignment.setter + def alignment(self, value: Pango._AlignmentValueType) -> None: ... + attributes: Pango.AttrList | None + @property + def background(self) -> Never: ... + @background.setter + def background(self, value: str | None) -> None: ... + background_rgba: _Gdk4.RGBA | None background_set: bool editable: bool editable_set: bool - ellipsize: Pango.EllipsizeMode + @property + def ellipsize(self) -> Pango.EllipsizeMode: ... + @ellipsize.setter + def ellipsize(self, value: Pango._EllipsizeModeValueType) -> None: ... ellipsize_set: bool - family: str + family: str | None family_set: bool - font: str - font_desc: Pango.FontDescription - foreground: str - foreground_rgba: _Gdk4.RGBA + font: str | None + font_desc: Pango.FontDescription | None + @property + def foreground(self) -> Never: ... + @foreground.setter + def foreground(self, value: str | None) -> None: ... + foreground_rgba: _Gdk4.RGBA | None foreground_set: bool - language: str + language: str | None language_set: bool - markup: str + @property + def markup(self) -> Never: ... + @markup.setter + def markup(self, value: str | None) -> None: ... max_width_chars: int - placeholder_text: str + placeholder_text: str | None rise: int rise_set: bool scale: float @@ -5386,21 +5551,36 @@ class CellRendererText(CellRenderer): size: int size_points: float size_set: bool - stretch: Pango.Stretch + @property + def stretch(self) -> Pango.Stretch: ... + @stretch.setter + def stretch(self, value: Pango._StretchValueType) -> None: ... stretch_set: bool strikethrough: bool strikethrough_set: bool - style: Pango.Style + @property + def style(self) -> Pango.Style: ... + @style.setter + def style(self, value: Pango._StyleValueType) -> None: ... style_set: bool - text: str - underline: Pango.Underline + text: str | None + @property + def underline(self) -> Pango.Underline: ... + @underline.setter + def underline(self, value: Pango._UnderlineValueType) -> None: ... underline_set: bool - variant: Pango.Variant + @property + def variant(self) -> Pango.Variant: ... + @variant.setter + def variant(self, value: Pango._VariantValueType) -> None: ... variant_set: bool weight: int weight_set: bool width_chars: int - wrap_mode: Pango.WrapMode + @property + def wrap_mode(self) -> Pango.WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: Pango._WrapModeValueType) -> None: ... wrap_width: int @property @@ -5411,27 +5591,27 @@ class CellRendererText(CellRenderer): self, *, align_set: bool = ..., - alignment: Pango.Alignment = ..., - attributes: Pango.AttrList = ..., - background: str = ..., - background_rgba: _Gdk4.RGBA = ..., + alignment: Pango._AlignmentValueType = ..., + attributes: Pango.AttrList | None = ..., + background: str | None = ..., + background_rgba: _Gdk4.RGBA | None = ..., background_set: bool = ..., editable: bool = ..., editable_set: bool = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., ellipsize_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - foreground: str = ..., - foreground_rgba: _Gdk4.RGBA = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + foreground: str | None = ..., + foreground_rgba: _Gdk4.RGBA | None = ..., foreground_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., - markup: str = ..., + markup: str | None = ..., max_width_chars: int = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., rise: int = ..., rise_set: bool = ..., scale: float = ..., @@ -5440,29 +5620,29 @@ class CellRendererText(CellRenderer): size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - text: str = ..., - underline: Pango.Underline = ..., + text: str | None = ..., + underline: Pango._UnderlineValueType = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., width_chars: int = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., wrap_width: int = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -5551,13 +5731,13 @@ class CellRendererToggle(CellRenderer): active: bool = ..., inconsistent: bool = ..., radio: bool = ..., - cell_background: str = ..., - cell_background_rgba: _Gdk4.RGBA = ..., + cell_background: str | None = ..., + cell_background_rgba: _Gdk4.RGBA | None = ..., cell_background_set: bool = ..., height: int = ..., is_expanded: bool = ..., is_expander: bool = ..., - mode: CellRendererMode = ..., + mode: _CellRendererModeValueType = ..., sensitive: bool = ..., visible: bool = ..., width: int = ..., @@ -5655,35 +5835,41 @@ class CellView(Widget, CellLayout, Orientable): @type_check_only class Props(Widget.Props): @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... @property - def cell_area_context(self) -> CellAreaContext: ... + def cell_area_context(self) -> CellAreaContext | None: ... draw_sensitive: bool fit_model: bool model: TreeModel | None - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - cell_area: CellArea = ..., - cell_area_context: CellAreaContext = ..., + cell_area: CellArea | None = ..., + cell_area_context: CellAreaContext | None = ..., draw_sensitive: bool = ..., fit_model: bool = ..., model: TreeModel | None = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -5696,12 +5882,12 @@ class CellView(Widget, CellLayout, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5801,34 +5987,43 @@ class CenterBox(Widget, Orientable): """ @type_check_only class Props(Widget.Props): - baseline_position: BaselinePosition + @property + def baseline_position(self) -> BaselinePosition: ... + @baseline_position.setter + def baseline_position(self, value: _BaselinePositionValueType) -> None: ... center_widget: Widget | None end_widget: Widget | None shrink_center_last: bool start_widget: Widget | None - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - baseline_position: BaselinePosition = ..., + baseline_position: _BaselinePositionValueType = ..., center_widget: Widget | None = ..., end_widget: Widget | None = ..., shrink_center_last: bool = ..., start_widget: Widget | None = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -5841,12 +6036,12 @@ class CenterBox(Widget, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -5859,7 +6054,7 @@ class CenterBox(Widget, Orientable): def get_start_widget(self) -> Widget | None: ... @classmethod def new(cls) -> CenterBox: ... - def set_baseline_position(self, position: BaselinePosition) -> None: ... + def set_baseline_position(self, position: _BaselinePositionValueType) -> None: ... def set_center_widget(self, child: Widget | None = None) -> None: ... def set_end_widget(self, child: Widget | None = None) -> None: ... def set_shrink_center_last(self, shrink_center_last: bool) -> None: ... @@ -5899,10 +6094,12 @@ class CenterLayout(LayoutManager): def get_start_widget(self) -> Widget | None: ... @classmethod def new(cls) -> CenterLayout: ... - def set_baseline_position(self, baseline_position: BaselinePosition) -> None: ... + def set_baseline_position( + self, baseline_position: _BaselinePositionValueType + ) -> None: ... def set_center_widget(self, widget: Widget | None = None) -> None: ... def set_end_widget(self, widget: Widget | None = None) -> None: ... - def set_orientation(self, orientation: Orientation) -> None: ... + def set_orientation(self, orientation: _OrientationValueType) -> None: ... def set_shrink_center_last(self, shrink_center_last: bool) -> None: ... def set_start_widget(self, widget: Widget | None = None) -> None: ... @@ -6001,13 +6198,22 @@ class CheckButton(Widget, Actionable): class Props(Widget.Props): active: bool child: Widget | None - group: CheckButton | None + @property + def group(self) -> Never: ... + @group.setter + def group(self, value: CheckButton | None) -> None: ... inconsistent: bool label: str | None use_underline: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -6022,17 +6228,17 @@ class CheckButton(Widget, Actionable): inconsistent: bool = ..., label: str | None = ..., use_underline: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6045,12 +6251,12 @@ class CheckButton(Widget, Actionable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6194,7 +6400,10 @@ class ColorButton(Widget, ColorChooser): modal: bool show_editor: bool title: str - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... rgba: _Gdk4.RGBA use_alpha: bool @@ -6206,17 +6415,17 @@ class ColorButton(Widget, ColorChooser): modal: bool = ..., show_editor: bool = ..., title: str = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., rgba: _Gdk4.RGBA = ..., use_alpha: bool = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6229,12 +6438,12 @@ class ColorButton(Widget, ColorChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6258,7 +6467,7 @@ class ColorChooser(GObject.GInterface, Protocol): """ def add_palette( self, - orientation: Orientation, + orientation: _OrientationValueType, colors_per_line: int, colors: Sequence[_Gdk4.RGBA] | None = None, ) -> None: ... @@ -6384,7 +6593,10 @@ class ColorChooserDialog(Dialog, ColorChooser): @type_check_only class Props(Dialog.Props): show_editor: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... rgba: _Gdk4.RGBA use_alpha: bool @@ -6394,7 +6606,7 @@ class ColorChooserDialog(Dialog, ColorChooser): self, *, show_editor: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., rgba: _Gdk4.RGBA = ..., use_alpha: bool = ..., use_header_bar: int = ..., @@ -6410,7 +6622,7 @@ class ColorChooserDialog(Dialog, ColorChooser): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -6425,11 +6637,11 @@ class ColorChooserDialog(Dialog, ColorChooser): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6442,12 +6654,12 @@ class ColorChooserDialog(Dialog, ColorChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6476,7 +6688,8 @@ class ColorChooserInterface(_gi.Struct): def add_palette( self, ) -> Callable[ - [ColorChooser, Orientation, int, int, Sequence[_Gdk4.RGBA] | None], None + [ColorChooser, _OrientationValueType, int, int, Sequence[_Gdk4.RGBA] | None], + None, ]: ... @property def color_activated(self) -> Callable[[ColorChooser, _Gdk4.RGBA], None]: ... @@ -6558,7 +6771,10 @@ class ColorChooserWidget(Widget, ColorChooser): @type_check_only class Props(Widget.Props): show_editor: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... rgba: _Gdk4.RGBA use_alpha: bool @@ -6568,17 +6784,17 @@ class ColorChooserWidget(Widget, ColorChooser): self, *, show_editor: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., rgba: _Gdk4.RGBA = ..., use_alpha: bool = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6591,12 +6807,12 @@ class ColorChooserWidget(Widget, ColorChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6731,9 +6947,15 @@ class ColorDialogButton(Widget): """ @type_check_only class Props(Widget.Props): - dialog: ColorDialog | None + @property + def dialog(self) -> ColorDialog | None: ... + @dialog.setter + def dialog(self, value: ColorDialog) -> None: ... rgba: _Gdk4.RGBA - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -6742,15 +6964,15 @@ class ColorDialogButton(Widget): *, dialog: ColorDialog = ..., rgba: _Gdk4.RGBA = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6763,12 +6985,12 @@ class ColorDialogButton(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6899,12 +7121,24 @@ class ColumnView(Widget, Scrollable): single_click_activate: bool @property def sorter(self) -> Sorter | None: ... - tab_behavior: ListTabBehavior - accessible_role: AccessibleRole + @property + def tab_behavior(self) -> ListTabBehavior: ... + @tab_behavior.setter + def tab_behavior(self, value: _ListTabBehaviorValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -6919,20 +7153,20 @@ class ColumnView(Widget, Scrollable): show_column_separators: bool = ..., show_row_separators: bool = ..., single_click_activate: bool = ..., - tab_behavior: ListTabBehavior = ..., - accessible_role: AccessibleRole = ..., + tab_behavior: _ListTabBehaviorValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -6945,12 +7179,12 @@ class ColumnView(Widget, Scrollable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -6976,7 +7210,7 @@ class ColumnView(Widget, Scrollable): self, pos: int, column: ColumnViewColumn | None, - flags: ListScrollFlags, + flags: _ListScrollFlagsValueType, scroll: ScrollInfo | None = None, ) -> None: ... def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... @@ -6987,9 +7221,9 @@ class ColumnView(Widget, Scrollable): def set_show_column_separators(self, show_column_separators: bool) -> None: ... def set_show_row_separators(self, show_row_separators: bool) -> None: ... def set_single_click_activate(self, single_click_activate: bool) -> None: ... - def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... + def set_tab_behavior(self, tab_behavior: _ListTabBehaviorValueType) -> None: ... def sort_by_column( - self, column: ColumnViewColumn | None, direction: SortType + self, column: ColumnViewColumn | None, direction: _SortTypeValueType ) -> None: ... class ColumnViewCell(ListItem): @@ -7347,7 +7581,10 @@ class ComboBox(Widget, CellEditable, CellLayout): class Props(Widget.Props): active: int active_id: str | None - button_sensitivity: SensitivityType + @property + def button_sensitivity(self) -> SensitivityType: ... + @button_sensitivity.setter + def button_sensitivity(self, value: _SensitivityTypeValueType) -> None: ... child: Widget | None entry_text_column: int @property @@ -7358,7 +7595,10 @@ class ComboBox(Widget, CellEditable, CellLayout): popup_fixed_width: bool @property def popup_shown(self) -> bool: ... - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... editing_canceled: bool @property @@ -7370,7 +7610,7 @@ class ComboBox(Widget, CellEditable, CellLayout): *, active: int = ..., active_id: str | None = ..., - button_sensitivity: SensitivityType = ..., + button_sensitivity: _SensitivityTypeValueType = ..., child: Widget | None = ..., entry_text_column: int = ..., has_entry: bool = ..., @@ -7378,16 +7618,16 @@ class ComboBox(Widget, CellEditable, CellLayout): id_column: int = ..., model: TreeModel | None = ..., popup_fixed_width: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editing_canceled: bool = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -7400,12 +7640,12 @@ class ComboBox(Widget, CellEditable, CellLayout): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7438,7 +7678,9 @@ class ComboBox(Widget, CellEditable, CellLayout): def set_active(self, index_: int) -> None: ... def set_active_id(self, active_id: str | None = None) -> bool: ... def set_active_iter(self, iter: TreeIter | None = None) -> None: ... - def set_button_sensitivity(self, sensitivity: SensitivityType) -> None: ... + def set_button_sensitivity( + self, sensitivity: _SensitivityTypeValueType + ) -> None: ... def set_child(self, child: Widget | None = None) -> None: ... def set_entry_text_column(self, text_column: int) -> None: ... def set_id_column(self, id_column: int) -> None: ... @@ -7567,7 +7809,10 @@ class ComboBoxText(ComboBox): """ @type_check_only class Props(ComboBox.Props): - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... editing_canceled: bool @property @@ -7575,11 +7820,11 @@ class ComboBoxText(ComboBox): def __init__( self, *, - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editing_canceled: bool = ..., active: int = ..., active_id: str | None = ..., - button_sensitivity: SensitivityType = ..., + button_sensitivity: _SensitivityTypeValueType = ..., child: Widget | None = ..., entry_text_column: int = ..., has_entry: bool = ..., @@ -7590,11 +7835,11 @@ class ComboBoxText(ComboBox): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -7607,12 +7852,12 @@ class ComboBoxText(ComboBox): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -7696,12 +7941,12 @@ class Constraint(GObject.Object): *, constant: float = ..., multiplier: float = ..., - relation: ConstraintRelation = ..., - source: ConstraintTarget = ..., - source_attribute: ConstraintAttribute = ..., + relation: _ConstraintRelationValueType = ..., + source: ConstraintTarget | None = ..., + source_attribute: _ConstraintAttributeValueType = ..., strength: int = ..., - target: ConstraintTarget = ..., - target_attribute: ConstraintAttribute = ..., + target: ConstraintTarget | None = ..., + target_attribute: _ConstraintAttributeValueType = ..., ) -> None: ... def get_constant(self) -> float: ... def get_multiplier(self) -> float: ... @@ -7718,10 +7963,10 @@ class Constraint(GObject.Object): def new( cls, target: ConstraintTarget | None, - target_attribute: ConstraintAttribute, - relation: ConstraintRelation, + target_attribute: _ConstraintAttributeValueType, + relation: _ConstraintRelationValueType, source: ConstraintTarget | None, - source_attribute: ConstraintAttribute, + source_attribute: _ConstraintAttributeValueType, multiplier: float, constant: float, strength: int, @@ -7730,8 +7975,8 @@ class Constraint(GObject.Object): def new_constant( cls, target: ConstraintTarget | None, - target_attribute: ConstraintAttribute, - relation: ConstraintRelation, + target_attribute: _ConstraintAttributeValueType, + relation: _ConstraintRelationValueType, constant: float, strength: int, ) -> Constraint: ... @@ -7780,7 +8025,10 @@ class ConstraintGuide(GObject.Object, ConstraintTarget): name: str | None nat_height: int nat_width: int - strength: ConstraintStrength + @property + def strength(self) -> ConstraintStrength: ... + @strength.setter + def strength(self, value: _ConstraintStrengthValueType) -> None: ... @property def props(self) -> Props: ... @@ -7794,7 +8042,7 @@ class ConstraintGuide(GObject.Object, ConstraintTarget): name: str | None = ..., nat_height: int = ..., nat_width: int = ..., - strength: ConstraintStrength = ..., + strength: _ConstraintStrengthValueType = ..., ) -> None: ... def get_max_size(self) -> tuple[int, int]: ... def get_min_size(self) -> tuple[int, int]: ... @@ -7807,7 +8055,7 @@ class ConstraintGuide(GObject.Object, ConstraintTarget): def set_min_size(self, width: int, height: int) -> None: ... def set_name(self, name: str | None = None) -> None: ... def set_nat_size(self, width: int, height: int) -> None: ... - def set_strength(self, strength: ConstraintStrength) -> None: ... + def set_strength(self, strength: _ConstraintStrengthValueType) -> None: ... class ConstraintGuideClass(_gi.Struct): """ @@ -7869,7 +8117,10 @@ class ConstraintLayoutChild(LayoutChild): notify (GParam) """ def __init__( - self, *, child_widget: Widget = ..., layout_manager: LayoutManager = ... + self, + *, + child_widget: Widget | None = ..., + layout_manager: LayoutManager | None = ..., ) -> None: ... class ConstraintLayoutChildClass(_gi.Struct): @@ -7945,8 +8196,16 @@ class CssProvider(GObject.Object, StyleProvider): """ @type_check_only class Props(GObject.Object.Props): - prefers_color_scheme: InterfaceColorScheme - prefers_contrast: InterfaceContrast + @property + def prefers_color_scheme(self) -> InterfaceColorScheme: ... + @prefers_color_scheme.setter + def prefers_color_scheme( + self, value: _InterfaceColorSchemeValueType + ) -> None: ... + @property + def prefers_contrast(self) -> InterfaceContrast: ... + @prefers_contrast.setter + def prefers_contrast(self, value: _InterfaceContrastValueType) -> None: ... @property def props(self) -> Props: ... @@ -7955,8 +8214,8 @@ class CssProvider(GObject.Object, StyleProvider): def __init__( self, *, - prefers_color_scheme: InterfaceColorScheme = ..., - prefers_contrast: InterfaceContrast = ..., + prefers_color_scheme: _InterfaceColorSchemeValueType = ..., + prefers_contrast: _InterfaceContrastValueType = ..., ) -> None: ... def load_from_bytes(self, data: GLib.Bytes) -> None: ... def load_from_data( @@ -8068,7 +8327,9 @@ class CustomLayout(LayoutManager): def new( cls, request_mode: Callable[[Widget], SizeRequestMode] | None, - measure: Callable[[Widget, Orientation, int], tuple[int, int, int, int]], + measure: Callable[ + [Widget, _OrientationValueType, int], tuple[int, int, int, int] + ], allocate: Callable[[Widget, int, int, int], None], ) -> CustomLayout: ... @@ -8252,7 +8513,10 @@ class Dialog(Window): class Props(Window.Props): @property def use_header_bar(self) -> int: ... - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -8262,7 +8526,7 @@ class Dialog(Window): self, *, use_header_bar: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., application: Application | None = ..., child: Widget | None = ..., decorated: bool = ..., @@ -8275,7 +8539,7 @@ class Dialog(Window): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -8290,11 +8554,11 @@ class Dialog(Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8307,12 +8571,12 @@ class Dialog(Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8513,7 +8777,10 @@ class DragIcon(Widget, Native, Root): @type_check_only class Props(Widget.Props): child: Widget | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -8521,15 +8788,15 @@ class DragIcon(Widget, Native, Root): self, *, child: Widget | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8542,12 +8809,12 @@ class DragIcon(Widget, Native, Root): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8622,7 +8889,10 @@ class DragSource(GestureSingle): """ @type_check_only class Props(GestureSingle.Props): - actions: _Gdk4.DragAction + @property + def actions(self) -> _Gdk4.DragAction: ... + @actions.setter + def actions(self, value: _Gdk4._DragActionValueType) -> None: ... content: _Gdk4.ContentProvider | None @property @@ -8630,15 +8900,15 @@ class DragSource(GestureSingle): def __init__( self, *, - actions: _Gdk4.DragAction = ..., + actions: _Gdk4._DragActionValueType = ..., content: _Gdk4.ContentProvider | None = ..., button: int = ..., exclusive: bool = ..., touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def drag_cancel(self) -> None: ... def get_actions(self) -> _Gdk4.DragAction: ... @@ -8646,7 +8916,7 @@ class DragSource(GestureSingle): def get_drag(self) -> _Gdk4.Drag | None: ... @classmethod def new(cls) -> DragSource: ... - def set_actions(self, actions: _Gdk4.DragAction) -> None: ... + def set_actions(self, actions: _Gdk4._DragActionValueType) -> None: ... def set_content(self, content: _Gdk4.ContentProvider | None = None) -> None: ... def set_icon( self, paintable: _Gdk4.Paintable | None, hot_x: int, hot_y: int @@ -8731,7 +9001,10 @@ class DrawingArea(Widget): class Props(Widget.Props): content_height: int content_width: int - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -8742,15 +9015,15 @@ class DrawingArea(Widget): *, content_height: int = ..., content_width: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8763,12 +9036,12 @@ class DrawingArea(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -8850,8 +9123,8 @@ class DropControllerMotion(EventController): self, *, name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def contains_pointer(self) -> bool: ... def get_drop(self) -> _Gdk4.Drop | None: ... @@ -8951,12 +9224,18 @@ class DropDown(Widget): header_factory: ListItemFactory | None list_factory: ListItemFactory | None model: Gio.ListModel | None - search_match_mode: StringFilterMatchMode + @property + def search_match_mode(self) -> StringFilterMatchMode: ... + @search_match_mode.setter + def search_match_mode(self, value: _StringFilterMatchModeValueType) -> None: ... selected: int @property def selected_item(self) -> GObject.Object | None: ... show_arrow: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -8969,18 +9248,18 @@ class DropDown(Widget): header_factory: ListItemFactory | None = ..., list_factory: ListItemFactory | None = ..., model: Gio.ListModel | None = ..., - search_match_mode: StringFilterMatchMode = ..., + search_match_mode: _StringFilterMatchModeValueType = ..., selected: int = ..., show_arrow: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -8993,12 +9272,12 @@ class DropDown(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9027,7 +9306,7 @@ class DropDown(Widget): def set_list_factory(self, factory: ListItemFactory | None = None) -> None: ... def set_model(self, model: Gio.ListModel | None = None) -> None: ... def set_search_match_mode( - self, search_match_mode: StringFilterMatchMode + self, search_match_mode: _StringFilterMatchModeValueType ) -> None: ... def set_selected(self, position: int) -> None: ... def set_show_arrow(self, show_arrow: bool) -> None: ... @@ -9080,7 +9359,10 @@ class DropTarget(EventController): """ @type_check_only class Props(EventController.Props): - actions: _Gdk4.DragAction + @property + def actions(self) -> _Gdk4.DragAction: ... + @actions.setter + def actions(self, value: _Gdk4._DragActionValueType) -> None: ... @property def current_drop(self) -> _Gdk4.Drop | None: ... @property @@ -9096,12 +9378,12 @@ class DropTarget(EventController): def __init__( self, *, - actions: _Gdk4.DragAction = ..., - formats: _Gdk4.ContentFormats = ..., + actions: _Gdk4._DragActionValueType = ..., + formats: _Gdk4.ContentFormats | None = ..., preload: bool = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_actions(self) -> _Gdk4.DragAction: ... def get_current_drop(self) -> _Gdk4.Drop | None: ... @@ -9114,7 +9396,7 @@ class DropTarget(EventController): @classmethod def new(cls, type: type[Any], actions: _Gdk4.DragAction) -> DropTarget: ... def reject(self) -> None: ... - def set_actions(self, actions: _Gdk4.DragAction) -> None: ... + def set_actions(self, actions: _Gdk4._DragActionValueType) -> None: ... def set_gtypes(self, types: Sequence[type[Any]] | None = None) -> None: ... def set_preload(self, preload: bool) -> None: ... @@ -9151,7 +9433,10 @@ class DropTargetAsync(EventController): """ @type_check_only class Props(EventController.Props): - actions: _Gdk4.DragAction + @property + def actions(self) -> _Gdk4.DragAction: ... + @actions.setter + def actions(self, value: _Gdk4._DragActionValueType) -> None: ... formats: _Gdk4.ContentFormats | None @property @@ -9159,20 +9444,20 @@ class DropTargetAsync(EventController): def __init__( self, *, - actions: _Gdk4.DragAction = ..., + actions: _Gdk4._DragActionValueType = ..., formats: _Gdk4.ContentFormats | None = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_actions(self) -> _Gdk4.DragAction: ... def get_formats(self) -> _Gdk4.ContentFormats | None: ... @classmethod def new( - cls, formats: _Gdk4.ContentFormats | None, actions: _Gdk4.DragAction + cls, formats: _Gdk4.ContentFormats | None, actions: _Gdk4._DragActionValueType ) -> DropTargetAsync: ... def reject_drop(self, drop: _Gdk4.Drop) -> None: ... - def set_actions(self, actions: _Gdk4.DragAction) -> None: ... + def set_actions(self, actions: _Gdk4._DragActionValueType) -> None: ... def set_formats(self, formats: _Gdk4.ContentFormats | None = None) -> None: ... class DropTargetAsyncClass(_gi.Struct): ... @@ -9186,7 +9471,7 @@ class Editable(GObject.GInterface, Protocol): notify (GParam) """ def delegate_get_accessible_platform_state( - self, state: AccessiblePlatformState + self, state: _AccessiblePlatformStateValueType ) -> bool: ... @staticmethod def delegate_get_property( @@ -9334,7 +9619,10 @@ class EditableLabel(Widget, Editable): @type_check_only class Props(Widget.Props): editing: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def cursor_position(self) -> int: ... editable: bool @@ -9352,7 +9640,7 @@ class EditableLabel(Widget, Editable): self, *, editing: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editable: bool = ..., enable_undo: bool = ..., max_width_chars: int = ..., @@ -9362,11 +9650,11 @@ class EditableLabel(Widget, Editable): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -9379,12 +9667,12 @@ class EditableLabel(Widget, Editable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9492,14 +9780,17 @@ class EmojiChooser(Popover): """ @type_check_only class Props(Popover.Props): - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., autohide: bool = ..., cascade_popdown: bool = ..., child: Widget | None = ..., @@ -9507,15 +9798,15 @@ class EmojiChooser(Popover): has_arrow: bool = ..., mnemonics_visible: bool = ..., pointing_to: _Gdk4.Rectangle | None = ..., - position: PositionType = ..., + position: _PositionTypeValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -9528,12 +9819,12 @@ class EmojiChooser(Popover): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9671,51 +9962,63 @@ class Entry(Widget, CellEditable, Editable): @type_check_only class Props(Widget.Props): activates_default: bool - attributes: Pango.AttrList | None + @property + def attributes(self) -> Pango.AttrList | None: ... + @attributes.setter + def attributes(self, value: Pango.AttrList) -> None: ... buffer: EntryBuffer completion: EntryCompletion | None enable_emoji_completion: bool extra_menu: Gio.MenuModel | None has_frame: bool - im_module: str - input_hints: InputHints - input_purpose: InputPurpose + im_module: str | None + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... invisible_char: int invisible_char_set: bool max_length: int - menu_entry_icon_primary_text: str - menu_entry_icon_secondary_text: str + menu_entry_icon_primary_text: str | None + menu_entry_icon_secondary_text: str | None overwrite_mode: bool placeholder_text: str | None primary_icon_activatable: bool - primary_icon_gicon: Gio.Icon - primary_icon_name: str - primary_icon_paintable: _Gdk4.Paintable + primary_icon_gicon: Gio.Icon | None + primary_icon_name: str | None + primary_icon_paintable: _Gdk4.Paintable | None primary_icon_sensitive: bool @property def primary_icon_storage_type(self) -> ImageType: ... - primary_icon_tooltip_markup: str - primary_icon_tooltip_text: str + primary_icon_tooltip_markup: str | None + primary_icon_tooltip_text: str | None progress_fraction: float progress_pulse_step: float @property def scroll_offset(self) -> int: ... secondary_icon_activatable: bool - secondary_icon_gicon: Gio.Icon - secondary_icon_name: str - secondary_icon_paintable: _Gdk4.Paintable + secondary_icon_gicon: Gio.Icon | None + secondary_icon_name: str | None + secondary_icon_paintable: _Gdk4.Paintable | None secondary_icon_sensitive: bool @property def secondary_icon_storage_type(self) -> ImageType: ... - secondary_icon_tooltip_markup: str - secondary_icon_tooltip_text: str + secondary_icon_tooltip_markup: str | None + secondary_icon_tooltip_text: str | None show_emoji_icon: bool tabs: Pango.TabArray | None @property def text_length(self) -> int: ... truncate_multiline: bool visibility: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... editing_canceled: bool @property def cursor_position(self) -> int: ... @@ -9742,37 +10045,37 @@ class Entry(Widget, CellEditable, Editable): enable_emoji_completion: bool = ..., extra_menu: Gio.MenuModel | None = ..., has_frame: bool = ..., - im_module: str = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., + im_module: str | None = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., invisible_char: int = ..., invisible_char_set: bool = ..., max_length: int = ..., - menu_entry_icon_primary_text: str = ..., - menu_entry_icon_secondary_text: str = ..., + menu_entry_icon_primary_text: str | None = ..., + menu_entry_icon_secondary_text: str | None = ..., overwrite_mode: bool = ..., placeholder_text: str | None = ..., primary_icon_activatable: bool = ..., - primary_icon_gicon: Gio.Icon = ..., - primary_icon_name: str = ..., - primary_icon_paintable: _Gdk4.Paintable = ..., + primary_icon_gicon: Gio.Icon | None = ..., + primary_icon_name: str | None = ..., + primary_icon_paintable: _Gdk4.Paintable | None = ..., primary_icon_sensitive: bool = ..., - primary_icon_tooltip_markup: str = ..., - primary_icon_tooltip_text: str = ..., + primary_icon_tooltip_markup: str | None = ..., + primary_icon_tooltip_text: str | None = ..., progress_fraction: float = ..., progress_pulse_step: float = ..., secondary_icon_activatable: bool = ..., - secondary_icon_gicon: Gio.Icon = ..., - secondary_icon_name: str = ..., - secondary_icon_paintable: _Gdk4.Paintable = ..., + secondary_icon_gicon: Gio.Icon | None = ..., + secondary_icon_name: str | None = ..., + secondary_icon_paintable: _Gdk4.Paintable | None = ..., secondary_icon_sensitive: bool = ..., - secondary_icon_tooltip_markup: str = ..., - secondary_icon_tooltip_text: str = ..., + secondary_icon_tooltip_markup: str | None = ..., + secondary_icon_tooltip_text: str | None = ..., show_emoji_icon: bool = ..., tabs: Pango.TabArray | None = ..., truncate_multiline: bool = ..., visibility: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editing_canceled: bool = ..., editable: bool = ..., enable_undo: bool = ..., @@ -9783,11 +10086,11 @@ class Entry(Widget, CellEditable, Editable): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -9800,12 +10103,12 @@ class Entry(Widget, CellEditable, Editable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -9820,23 +10123,35 @@ class Entry(Widget, CellEditable, Editable): def get_current_icon_drag_source(self) -> int: ... def get_extra_menu(self) -> Gio.MenuModel | None: ... def get_has_frame(self) -> bool: ... - def get_icon_activatable(self, icon_pos: EntryIconPosition) -> bool: ... - def get_icon_area(self, icon_pos: EntryIconPosition) -> _Gdk4.Rectangle: ... + def get_icon_activatable(self, icon_pos: _EntryIconPositionValueType) -> bool: ... + def get_icon_area( + self, icon_pos: _EntryIconPositionValueType + ) -> _Gdk4.Rectangle: ... def get_icon_at_pos(self, x: int, y: int) -> int: ... - def get_icon_gicon(self, icon_pos: EntryIconPosition) -> Gio.Icon | None: ... - def get_icon_name(self, icon_pos: EntryIconPosition) -> str | None: ... + def get_icon_gicon( + self, icon_pos: _EntryIconPositionValueType + ) -> Gio.Icon | None: ... + def get_icon_name(self, icon_pos: _EntryIconPositionValueType) -> str | None: ... def get_icon_paintable( - self, icon_pos: EntryIconPosition + self, icon_pos: _EntryIconPositionValueType ) -> _Gdk4.Paintable | None: ... - def get_icon_sensitive(self, icon_pos: EntryIconPosition) -> bool: ... - def get_icon_storage_type(self, icon_pos: EntryIconPosition) -> ImageType: ... - def get_icon_tooltip_markup(self, icon_pos: EntryIconPosition) -> str | None: ... - def get_icon_tooltip_text(self, icon_pos: EntryIconPosition) -> str | None: ... + def get_icon_sensitive(self, icon_pos: _EntryIconPositionValueType) -> bool: ... + def get_icon_storage_type( + self, icon_pos: _EntryIconPositionValueType + ) -> ImageType: ... + def get_icon_tooltip_markup( + self, icon_pos: _EntryIconPositionValueType + ) -> str | None: ... + def get_icon_tooltip_text( + self, icon_pos: _EntryIconPositionValueType + ) -> str | None: ... def get_input_hints(self) -> InputHints: ... def get_input_purpose(self) -> InputPurpose: ... def get_invisible_char(self) -> str: ... def get_max_length(self) -> int: ... - def get_menu_entry_icon_text(self, icon_pos: EntryIconPosition) -> str | None: ... + def get_menu_entry_icon_text( + self, icon_pos: _EntryIconPositionValueType + ) -> str | None: ... def get_overwrite_mode(self) -> bool: ... def get_placeholder_text(self) -> str | None: ... def get_progress_fraction(self) -> float: ... @@ -9859,38 +10174,40 @@ class Entry(Widget, CellEditable, Editable): def set_extra_menu(self, model: Gio.MenuModel | None = None) -> None: ... def set_has_frame(self, setting: bool) -> None: ... def set_icon_activatable( - self, icon_pos: EntryIconPosition, activatable: bool + self, icon_pos: _EntryIconPositionValueType, activatable: bool ) -> None: ... def set_icon_drag_source( self, - icon_pos: EntryIconPosition, + icon_pos: _EntryIconPositionValueType, provider: _Gdk4.ContentProvider, - actions: _Gdk4.DragAction, + actions: _Gdk4._DragActionValueType, ) -> None: ... def set_icon_from_gicon( - self, icon_pos: EntryIconPosition, icon: Gio.Icon | None = None + self, icon_pos: _EntryIconPositionValueType, icon: Gio.Icon | None = None ) -> None: ... def set_icon_from_icon_name( - self, icon_pos: EntryIconPosition, icon_name: str | None = None + self, icon_pos: _EntryIconPositionValueType, icon_name: str | None = None ) -> None: ... def set_icon_from_paintable( - self, icon_pos: EntryIconPosition, paintable: _Gdk4.Paintable | None = None + self, + icon_pos: _EntryIconPositionValueType, + paintable: _Gdk4.Paintable | None = None, ) -> None: ... def set_icon_sensitive( - self, icon_pos: EntryIconPosition, sensitive: bool + self, icon_pos: _EntryIconPositionValueType, sensitive: bool ) -> None: ... def set_icon_tooltip_markup( - self, icon_pos: EntryIconPosition, tooltip: str | None = None + self, icon_pos: _EntryIconPositionValueType, tooltip: str | None = None ) -> None: ... def set_icon_tooltip_text( - self, icon_pos: EntryIconPosition, tooltip: str | None = None + self, icon_pos: _EntryIconPositionValueType, tooltip: str | None = None ) -> None: ... - def set_input_hints(self, hints: InputHints) -> None: ... - def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_input_hints(self, hints: _InputHintsValueType) -> None: ... + def set_input_purpose(self, purpose: _InputPurposeValueType) -> None: ... def set_invisible_char(self, ch: str) -> None: ... def set_max_length(self, max: int) -> None: ... def set_menu_entry_icon_text( - self, icon_pos: EntryIconPosition, text: str + self, icon_pos: _EntryIconPositionValueType, text: str ) -> None: ... def set_overwrite_mode(self, overwrite: bool) -> None: ... def set_placeholder_text(self, text: str | None = None) -> None: ... @@ -10027,7 +10344,7 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): @type_check_only class Props(GObject.Object.Props): @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... inline_completion: bool inline_selection: bool minimum_key_length: int @@ -10042,7 +10359,7 @@ class EntryCompletion(GObject.Object, Buildable, CellLayout): def __init__( self, *, - cell_area: CellArea = ..., + cell_area: CellArea | None = ..., inline_completion: bool = ..., inline_selection: bool = ..., minimum_key_length: int = ..., @@ -10105,8 +10422,14 @@ class EventController(GObject.Object): @type_check_only class Props(GObject.Object.Props): name: str | None - propagation_limit: PropagationLimit - propagation_phase: PropagationPhase + @property + def propagation_limit(self) -> PropagationLimit: ... + @propagation_limit.setter + def propagation_limit(self, value: _PropagationLimitValueType) -> None: ... + @property + def propagation_phase(self) -> PropagationPhase: ... + @propagation_phase.setter + def propagation_phase(self, value: _PropagationPhaseValueType) -> None: ... @property def widget(self) -> Widget | None: ... @@ -10116,8 +10439,8 @@ class EventController(GObject.Object): self, *, name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_current_event(self) -> _Gdk4.Event | None: ... def get_current_event_device(self) -> _Gdk4.Device | None: ... @@ -10129,8 +10452,8 @@ class EventController(GObject.Object): def get_widget(self) -> Widget | None: ... def reset(self) -> None: ... def set_name(self, name: str | None = None) -> None: ... - def set_propagation_limit(self, limit: PropagationLimit) -> None: ... - def set_propagation_phase(self, phase: PropagationPhase) -> None: ... + def set_propagation_limit(self, limit: _PropagationLimitValueType) -> None: ... + def set_propagation_phase(self, phase: _PropagationPhaseValueType) -> None: ... def set_static_name(self, name: str | None = None) -> None: ... class EventControllerClass(_gi.Struct): ... @@ -10176,8 +10499,8 @@ class EventControllerFocus(EventController): self, *, name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def contains_focus(self) -> bool: ... def is_focus(self) -> bool: ... @@ -10216,8 +10539,8 @@ class EventControllerKey(EventController): self, *, name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def forward(self, widget: Widget) -> bool: ... def get_group(self) -> int: ... @@ -10255,8 +10578,8 @@ class EventControllerLegacy(EventController): self, *, name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... @classmethod def new(cls) -> EventControllerLegacy: ... @@ -10305,8 +10628,8 @@ class EventControllerMotion(EventController): self, *, name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def contains_pointer(self) -> bool: ... def is_pointer(self) -> bool: ... @@ -10346,23 +10669,28 @@ class EventControllerScroll(EventController): """ @type_check_only class Props(EventController.Props): - flags: EventControllerScrollFlags + @property + def flags(self) -> EventControllerScrollFlags: ... + @flags.setter + def flags(self, value: _EventControllerScrollFlagsValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - flags: EventControllerScrollFlags = ..., + flags: _EventControllerScrollFlagsValueType = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_flags(self) -> EventControllerScrollFlags: ... def get_unit(self) -> _Gdk4.ScrollUnit: ... @classmethod - def new(cls, flags: EventControllerScrollFlags) -> EventControllerScroll: ... - def set_flags(self, flags: EventControllerScrollFlags) -> None: ... + def new( + cls, flags: _EventControllerScrollFlagsValueType + ) -> EventControllerScroll: ... + def set_flags(self, flags: _EventControllerScrollFlagsValueType) -> None: ... class EventControllerScrollClass(_gi.Struct): ... @@ -10486,7 +10814,10 @@ class Expander(Widget): resize_toplevel: bool use_markup: bool use_underline: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -10500,15 +10831,15 @@ class Expander(Widget): resize_toplevel: bool = ..., use_markup: bool = ..., use_underline: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -10521,12 +10852,12 @@ class Expander(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -10611,7 +10942,7 @@ class FileChooser(GObject.GInterface, Protocol): def remove_choice(self, id: str) -> None: ... def remove_filter(self, filter: FileFilter) -> None: ... def remove_shortcut_folder(self, folder: Gio.File) -> bool: ... - def set_action(self, action: FileChooserAction) -> None: ... + def set_action(self, action: _FileChooserActionValueType) -> None: ... def set_choice(self, id: str, option: str) -> None: ... def set_create_folders(self, create_folders: bool) -> None: ... def set_current_folder(self, file: Gio.File | None = None) -> bool: ... @@ -10729,10 +11060,19 @@ class FileChooserDialog(Dialog, FileChooser): """ @type_check_only class Props(Dialog.Props): - accessible_role: AccessibleRole - action: FileChooserAction + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def action(self) -> FileChooserAction: ... + @action.setter + def action(self, value: _FileChooserActionValueType) -> None: ... create_folders: bool - filter: FileFilter | None + @property + def filter(self) -> FileFilter | None: ... + @filter.setter + def filter(self, value: FileFilter) -> None: ... @property def filters(self) -> Gio.ListModel: ... select_multiple: bool @@ -10744,8 +11084,8 @@ class FileChooserDialog(Dialog, FileChooser): def __init__( self, *, - accessible_role: AccessibleRole = ..., - action: FileChooserAction = ..., + accessible_role: _AccessibleRoleValueType = ..., + action: _FileChooserActionValueType = ..., create_folders: bool = ..., filter: FileFilter = ..., select_multiple: bool = ..., @@ -10762,7 +11102,7 @@ class FileChooserDialog(Dialog, FileChooser): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -10777,11 +11117,11 @@ class FileChooserDialog(Dialog, FileChooser): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -10794,12 +11134,12 @@ class FileChooserDialog(Dialog, FileChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -10837,9 +11177,15 @@ class FileChooserNative(NativeDialog, FileChooser): class Props(NativeDialog.Props): accept_label: str | None cancel_label: str | None - action: FileChooserAction + @property + def action(self) -> FileChooserAction: ... + @action.setter + def action(self, value: _FileChooserActionValueType) -> None: ... create_folders: bool - filter: FileFilter | None + @property + def filter(self) -> FileFilter | None: ... + @filter.setter + def filter(self, value: FileFilter) -> None: ... @property def filters(self) -> Gio.ListModel: ... select_multiple: bool @@ -10853,7 +11199,7 @@ class FileChooserNative(NativeDialog, FileChooser): *, accept_label: str | None = ..., cancel_label: str | None = ..., - action: FileChooserAction = ..., + action: _FileChooserActionValueType = ..., create_folders: bool = ..., filter: FileFilter = ..., select_multiple: bool = ..., @@ -10869,7 +11215,7 @@ class FileChooserNative(NativeDialog, FileChooser): cls, title: str | None, parent: Window | None, - action: FileChooserAction, + action: _FileChooserActionValueType, accept_label: str | None = None, cancel_label: str | None = None, ) -> FileChooserNative: ... @@ -10978,11 +11324,20 @@ class FileChooserWidget(Widget, FileChooser): @property def show_time(self) -> bool: ... @property - def subtitle(self) -> str: ... - accessible_role: AccessibleRole - action: FileChooserAction + def subtitle(self) -> str | None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def action(self) -> FileChooserAction: ... + @action.setter + def action(self, value: _FileChooserActionValueType) -> None: ... create_folders: bool - filter: FileFilter | None + @property + def filter(self) -> FileFilter | None: ... + @filter.setter + def filter(self, value: FileFilter) -> None: ... @property def filters(self) -> Gio.ListModel: ... select_multiple: bool @@ -10995,19 +11350,19 @@ class FileChooserWidget(Widget, FileChooser): self, *, search_mode: bool = ..., - accessible_role: AccessibleRole = ..., - action: FileChooserAction = ..., + accessible_role: _AccessibleRoleValueType = ..., + action: _FileChooserActionValueType = ..., create_folders: bool = ..., filter: FileFilter = ..., select_multiple: bool = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11020,19 +11375,19 @@ class FileChooserWidget(Widget, FileChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... @classmethod - def new(cls, action: FileChooserAction) -> FileChooserWidget: ... + def new(cls, action: _FileChooserActionValueType) -> FileChooserWidget: ... class FileDialog(GObject.Object): """ @@ -11244,10 +11599,10 @@ class FileFilter(Filter, Buildable): def __init__( self, *, - mime_types: Sequence[str] = ..., + mime_types: Sequence[str] | None = ..., name: str | None = ..., - patterns: Sequence[str] = ..., - suffixes: Sequence[str] = ..., + patterns: Sequence[str] | None = ..., + suffixes: Sequence[str] | None = ..., ) -> None: ... def add_mime_type(self, mime_type: str) -> None: ... def add_pattern(self, pattern: str) -> None: ... @@ -11356,7 +11711,7 @@ class Filter(GObject.Object): """ @property def parent_instance(self) -> GObject.Object: ... - def changed(self, change: FilterChange) -> None: ... + def changed(self, change: _FilterChangeValueType) -> None: ... def do_get_strictness(self) -> FilterMatch: ... def do_match(self, item: GObject.Object | None) -> bool: ... def get_strictness(self) -> FilterMatch: ... @@ -11522,7 +11877,10 @@ class Fixed(Widget): """ @type_check_only class Props(Widget.Props): - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -11531,15 +11889,15 @@ class Fixed(Widget): def __init__( self, *, - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11552,12 +11910,12 @@ class Fixed(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11626,7 +11984,10 @@ class FixedLayoutChild(LayoutChild): """ @type_check_only class Props(LayoutChild.Props): - transform: Gsk.Transform | None + @property + def transform(self) -> Gsk.Transform | None: ... + @transform.setter + def transform(self, value: Gsk.Transform) -> None: ... @property def props(self) -> Props: ... @@ -11634,8 +11995,8 @@ class FixedLayoutChild(LayoutChild): self, *, transform: Gsk.Transform = ..., - child_widget: Widget = ..., - layout_manager: LayoutManager = ..., + child_widget: Widget | None = ..., + layout_manager: LayoutManager | None = ..., ) -> None: ... def get_transform(self) -> Gsk.Transform | None: ... def set_transform(self, transform: Gsk.Transform) -> None: ... @@ -11809,9 +12170,18 @@ class FlowBox(Widget, Orientable): max_children_per_line: int min_children_per_line: int row_spacing: int - selection_mode: SelectionMode - accessible_role: AccessibleRole - orientation: Orientation + @property + def selection_mode(self) -> SelectionMode: ... + @selection_mode.setter + def selection_mode(self, value: _SelectionModeValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -11825,17 +12195,17 @@ class FlowBox(Widget, Orientable): max_children_per_line: int = ..., min_children_per_line: int = ..., row_spacing: int = ..., - selection_mode: SelectionMode = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + selection_mode: _SelectionModeValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -11848,12 +12218,12 @@ class FlowBox(Widget, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -11903,7 +12273,7 @@ class FlowBox(Widget, Orientable): def set_max_children_per_line(self, n_children: int) -> None: ... def set_min_children_per_line(self, n_children: int) -> None: ... def set_row_spacing(self, spacing: int) -> None: ... - def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_selection_mode(self, mode: _SelectionModeValueType) -> None: ... def set_sort_func( self, sort_func: Callable[[FlowBoxChild, FlowBoxChild, Unpack[_DataTs]], int] @@ -11989,7 +12359,10 @@ class FlowBoxChild(Widget): @type_check_only class Props(Widget.Props): child: Widget | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -11999,15 +12372,15 @@ class FlowBoxChild(Widget): self, *, child: Widget | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -12020,12 +12393,12 @@ class FlowBoxChild(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12141,13 +12514,25 @@ class FontButton(Widget, FontChooser): title: str use_font: bool use_size: bool - accessible_role: AccessibleRole - font: str | None - font_desc: Pango.FontDescription | None + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def font(self) -> str | None: ... + @font.setter + def font(self, value: str) -> None: ... + @property + def font_desc(self) -> Pango.FontDescription | None: ... + @font_desc.setter + def font_desc(self, value: Pango.FontDescription) -> None: ... @property def font_features(self) -> str: ... language: str - level: FontChooserLevel + @property + def level(self) -> FontChooserLevel: ... + @level.setter + def level(self, value: _FontChooserLevelValueType) -> None: ... preview_text: str show_preview_entry: bool @@ -12160,21 +12545,21 @@ class FontButton(Widget, FontChooser): title: str = ..., use_font: bool = ..., use_size: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., font: str = ..., font_desc: Pango.FontDescription = ..., language: str = ..., - level: FontChooserLevel = ..., + level: _FontChooserLevelValueType = ..., preview_text: str = ..., show_preview_entry: bool = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -12187,12 +12572,12 @@ class FontButton(Widget, FontChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12239,7 +12624,7 @@ class FontChooser(GObject.GInterface, Protocol): def set_font_desc(self, font_desc: Pango.FontDescription) -> None: ... def set_font_map(self, fontmap: Pango.FontMap | None = None) -> None: ... def set_language(self, language: str) -> None: ... - def set_level(self, level: FontChooserLevel) -> None: ... + def set_level(self, level: _FontChooserLevelValueType) -> None: ... def set_preview_text(self, text: str) -> None: ... def set_show_preview_entry(self, show_preview_entry: bool) -> None: ... @@ -12356,13 +12741,25 @@ class FontChooserDialog(Dialog, FontChooser): """ @type_check_only class Props(Dialog.Props): - accessible_role: AccessibleRole - font: str | None - font_desc: Pango.FontDescription | None + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def font(self) -> str | None: ... + @font.setter + def font(self, value: str) -> None: ... + @property + def font_desc(self) -> Pango.FontDescription | None: ... + @font_desc.setter + def font_desc(self, value: Pango.FontDescription) -> None: ... @property def font_features(self) -> str: ... language: str - level: FontChooserLevel + @property + def level(self) -> FontChooserLevel: ... + @level.setter + def level(self, value: _FontChooserLevelValueType) -> None: ... preview_text: str show_preview_entry: bool @@ -12371,11 +12768,11 @@ class FontChooserDialog(Dialog, FontChooser): def __init__( self, *, - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., font: str = ..., font_desc: Pango.FontDescription = ..., language: str = ..., - level: FontChooserLevel = ..., + level: _FontChooserLevelValueType = ..., preview_text: str = ..., show_preview_entry: bool = ..., use_header_bar: int = ..., @@ -12391,7 +12788,7 @@ class FontChooserDialog(Dialog, FontChooser): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -12406,11 +12803,11 @@ class FontChooserDialog(Dialog, FontChooser): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -12423,12 +12820,12 @@ class FontChooserDialog(Dialog, FontChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12551,14 +12948,26 @@ class FontChooserWidget(Widget, FontChooser): @type_check_only class Props(Widget.Props): @property - def tweak_action(self) -> Gio.Action: ... - accessible_role: AccessibleRole - font: str | None - font_desc: Pango.FontDescription | None + def tweak_action(self) -> Gio.Action | None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def font(self) -> str | None: ... + @font.setter + def font(self, value: str) -> None: ... + @property + def font_desc(self) -> Pango.FontDescription | None: ... + @font_desc.setter + def font_desc(self, value: Pango.FontDescription) -> None: ... @property def font_features(self) -> str: ... language: str - level: FontChooserLevel + @property + def level(self) -> FontChooserLevel: ... + @level.setter + def level(self, value: _FontChooserLevelValueType) -> None: ... preview_text: str show_preview_entry: bool @@ -12567,21 +12976,21 @@ class FontChooserWidget(Widget, FontChooser): def __init__( self, *, - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., font: str = ..., font_desc: Pango.FontDescription = ..., language: str = ..., - level: FontChooserLevel = ..., + level: _FontChooserLevelValueType = ..., preview_text: str = ..., show_preview_entry: bool = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -12594,12 +13003,12 @@ class FontChooserWidget(Widget, FontChooser): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12633,7 +13042,10 @@ class FontDialog(GObject.Object): class Props(GObject.Object.Props): filter: Filter | None font_map: Pango.FontMap | None - language: Pango.Language | None + @property + def language(self) -> Pango.Language | None: ... + @language.setter + def language(self, value: Pango.Language) -> None: ... modal: bool title: str @@ -12791,14 +13203,26 @@ class FontDialogButton(Widget): """ @type_check_only class Props(Widget.Props): - dialog: FontDialog | None - font_desc: Pango.FontDescription | None + @property + def dialog(self) -> FontDialog | None: ... + @dialog.setter + def dialog(self, value: FontDialog) -> None: ... + @property + def font_desc(self) -> Pango.FontDescription | None: ... + @font_desc.setter + def font_desc(self, value: Pango.FontDescription) -> None: ... font_features: str | None language: Pango.Language | None - level: FontLevel + @property + def level(self) -> FontLevel: ... + @level.setter + def level(self, value: _FontLevelValueType) -> None: ... use_font: bool use_size: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -12809,18 +13233,18 @@ class FontDialogButton(Widget): font_desc: Pango.FontDescription = ..., font_features: str | None = ..., language: Pango.Language | None = ..., - level: FontLevel = ..., + level: _FontLevelValueType = ..., use_font: bool = ..., use_size: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -12833,12 +13257,12 @@ class FontDialogButton(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -12857,7 +13281,7 @@ class FontDialogButton(Widget): def set_font_desc(self, font_desc: Pango.FontDescription) -> None: ... def set_font_features(self, font_features: str | None = None) -> None: ... def set_language(self, language: Pango.Language | None = None) -> None: ... - def set_level(self, level: FontLevel) -> None: ... + def set_level(self, level: _FontLevelValueType) -> None: ... def set_use_font(self, use_font: bool) -> None: ... def set_use_size(self, use_size: bool) -> None: ... @@ -12961,7 +13385,10 @@ class Frame(Widget): label: str | None label_widget: Widget | None label_xalign: float - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -12974,15 +13401,15 @@ class Frame(Widget): label: str | None = ..., label_widget: Widget | None = ..., label_xalign: float = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -12995,12 +13422,12 @@ class Frame(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -13115,7 +13542,10 @@ class GLArea(Widget): """ @type_check_only class Props(Widget.Props): - allowed_apis: _Gdk4.GLAPI + @property + def allowed_apis(self) -> _Gdk4.GLAPI: ... + @allowed_apis.setter + def allowed_apis(self, value: _Gdk4._GLAPIValueType) -> None: ... @property def api(self) -> _Gdk4.GLAPI: ... auto_render: bool @@ -13124,7 +13554,10 @@ class GLArea(Widget): has_depth_buffer: bool has_stencil_buffer: bool use_es: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -13133,20 +13566,20 @@ class GLArea(Widget): def __init__( self, *, - allowed_apis: _Gdk4.GLAPI = ..., + allowed_apis: _Gdk4._GLAPIValueType = ..., auto_render: bool = ..., has_depth_buffer: bool = ..., has_stencil_buffer: bool = ..., use_es: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -13159,12 +13592,12 @@ class GLArea(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -13186,7 +13619,7 @@ class GLArea(Widget): @classmethod def new(cls) -> GLArea: ... def queue_render(self) -> None: ... - def set_allowed_apis(self, apis: _Gdk4.GLAPI) -> None: ... + def set_allowed_apis(self, apis: _Gdk4._GLAPIValueType) -> None: ... def set_auto_render(self, auto_render: bool) -> None: ... def set_error(self, error: GLib.Error | None = None) -> None: ... def set_has_depth_buffer(self, has_depth_buffer: bool) -> None: ... @@ -13252,8 +13685,8 @@ class Gesture(EventController): *, n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_bounding_box(self) -> tuple[bool, _Gdk4.Rectangle]: ... def get_bounding_box_center(self) -> tuple[bool, float, float]: ... @@ -13276,9 +13709,9 @@ class Gesture(EventController): def is_grouped_with(self, other: Gesture) -> bool: ... def is_recognized(self) -> bool: ... def set_sequence_state( - self, sequence: _Gdk4.EventSequence, state: EventSequenceState + self, sequence: _Gdk4.EventSequence, state: _EventSequenceStateValueType ) -> bool: ... - def set_state(self, state: EventSequenceState) -> bool: ... + def set_state(self, state: _EventSequenceStateValueType) -> bool: ... def ungroup(self) -> None: ... class GestureClass(_gi.Struct): ... @@ -13332,8 +13765,8 @@ class GestureClick(GestureSingle): touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... @classmethod def new(cls) -> GestureClick: ... @@ -13388,8 +13821,8 @@ class GestureDrag(GestureSingle): touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_offset(self) -> tuple[bool, float, float]: ... def get_start_point(self) -> tuple[bool, float, float]: ... @@ -13455,8 +13888,8 @@ class GestureLongPress(GestureSingle): touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_delay_factor(self) -> float: ... @classmethod @@ -13513,26 +13946,29 @@ class GesturePan(GestureDrag): """ @type_check_only class Props(GestureDrag.Props): - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., button: int = ..., exclusive: bool = ..., touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_orientation(self) -> Orientation: ... @classmethod - def new(cls, orientation: Orientation) -> GesturePan: ... - def set_orientation(self, orientation: Orientation) -> None: ... + def new(cls, orientation: _OrientationValueType) -> GesturePan: ... + def set_orientation(self, orientation: _OrientationValueType) -> None: ... class GesturePanClass(_gi.Struct): ... @@ -13574,8 +14010,8 @@ class GestureRotate(Gesture): *, n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_angle_delta(self) -> float: ... @classmethod @@ -13633,8 +14069,8 @@ class GestureSingle(Gesture): touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_button(self) -> int: ... def get_current_button(self) -> int: ... @@ -13706,11 +14142,13 @@ class GestureStylus(GestureSingle): touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... - def get_axes(self, axes: Sequence[_Gdk4.AxisUse]) -> tuple[bool, list[float]]: ... - def get_axis(self, axis: _Gdk4.AxisUse) -> tuple[bool, float]: ... + def get_axes( + self, axes: Sequence[_Gdk4._AxisUseValueType] + ) -> tuple[bool, list[float]]: ... + def get_axis(self, axis: _Gdk4._AxisUseValueType) -> tuple[bool, float]: ... def get_backlog(self) -> tuple[bool, list[_Gdk4.TimeCoord]]: ... def get_device_tool(self) -> _Gdk4.DeviceTool | None: ... def get_stylus_only(self) -> bool: ... @@ -13766,8 +14204,8 @@ class GestureSwipe(GestureSingle): touch_only: bool = ..., n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_velocity(self) -> tuple[bool, float, float]: ... @classmethod @@ -13813,8 +14251,8 @@ class GestureZoom(Gesture): *, n_points: int = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def get_scale_delta(self) -> float: ... @classmethod @@ -13897,8 +14335,14 @@ class GraphicsOffload(Widget): class Props(Widget.Props): black_background: bool child: Widget | None - enabled: GraphicsOffloadEnabled - accessible_role: AccessibleRole + @property + def enabled(self) -> GraphicsOffloadEnabled: ... + @enabled.setter + def enabled(self, value: _GraphicsOffloadEnabledValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -13907,16 +14351,16 @@ class GraphicsOffload(Widget): *, black_background: bool = ..., child: Widget | None = ..., - enabled: GraphicsOffloadEnabled = ..., - accessible_role: AccessibleRole = ..., + enabled: _GraphicsOffloadEnabledValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -13929,12 +14373,12 @@ class GraphicsOffload(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -13947,7 +14391,7 @@ class GraphicsOffload(Widget): def new(cls, child: Widget | None = None) -> GraphicsOffload: ... def set_black_background(self, value: bool) -> None: ... def set_child(self, child: Widget | None = None) -> None: ... - def set_enabled(self, enabled: GraphicsOffloadEnabled) -> None: ... + def set_enabled(self, enabled: _GraphicsOffloadEnabledValueType) -> None: ... class GraphicsOffloadClass(_gi.Struct): """ @@ -14040,8 +14484,14 @@ class Grid(Widget, Orientable): column_spacing: int row_homogeneous: bool row_spacing: int - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -14055,16 +14505,16 @@ class Grid(Widget, Orientable): column_spacing: int = ..., row_homogeneous: bool = ..., row_spacing: int = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -14077,12 +14527,12 @@ class Grid(Widget, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -14095,7 +14545,7 @@ class Grid(Widget, Orientable): self, child: Widget, sibling: Widget | None, - side: PositionType, + side: _PositionTypeValueType, width: int, height: int, ) -> None: ... @@ -14107,7 +14557,7 @@ class Grid(Widget, Orientable): def get_row_homogeneous(self) -> bool: ... def get_row_spacing(self) -> int: ... def insert_column(self, position: int) -> None: ... - def insert_next_to(self, sibling: Widget, side: PositionType) -> None: ... + def insert_next_to(self, sibling: Widget, side: _PositionTypeValueType) -> None: ... def insert_row(self, position: int) -> None: ... @classmethod def new(cls) -> Grid: ... @@ -14118,7 +14568,9 @@ class Grid(Widget, Orientable): def set_baseline_row(self, row: int) -> None: ... def set_column_homogeneous(self, homogeneous: bool) -> None: ... def set_column_spacing(self, spacing: int) -> None: ... - def set_row_baseline_position(self, row: int, pos: BaselinePosition) -> None: ... + def set_row_baseline_position( + self, row: int, pos: _BaselinePositionValueType + ) -> None: ... def set_row_homogeneous(self, homogeneous: bool) -> None: ... def set_row_spacing(self, spacing: int) -> None: ... @@ -14186,7 +14638,9 @@ class GridLayout(LayoutManager): def set_baseline_row(self, row: int) -> None: ... def set_column_homogeneous(self, homogeneous: bool) -> None: ... def set_column_spacing(self, spacing: int) -> None: ... - def set_row_baseline_position(self, row: int, pos: BaselinePosition) -> None: ... + def set_row_baseline_position( + self, row: int, pos: _BaselinePositionValueType + ) -> None: ... def set_row_homogeneous(self, homogeneous: bool) -> None: ... def set_row_spacing(self, spacing: int) -> None: ... @@ -14229,8 +14683,8 @@ class GridLayoutChild(LayoutChild): column_span: int = ..., row: int = ..., row_span: int = ..., - child_widget: Widget = ..., - layout_manager: LayoutManager = ..., + child_widget: Widget | None = ..., + layout_manager: LayoutManager | None = ..., ) -> None: ... def get_column(self) -> int: ... def get_column_span(self) -> int: ... @@ -14352,13 +14806,28 @@ class GridView(ListBase): min_columns: int model: SelectionModel | None single_click_activate: bool - tab_behavior: ListTabBehavior - accessible_role: AccessibleRole - orientation: Orientation + @property + def tab_behavior(self) -> ListTabBehavior: ... + @tab_behavior.setter + def tab_behavior(self, value: _ListTabBehaviorValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -14371,21 +14840,21 @@ class GridView(ListBase): min_columns: int = ..., model: SelectionModel | None = ..., single_click_activate: bool = ..., - tab_behavior: ListTabBehavior = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + tab_behavior: _ListTabBehaviorValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -14398,12 +14867,12 @@ class GridView(ListBase): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -14421,7 +14890,10 @@ class GridView(ListBase): cls, model: SelectionModel | None = None, factory: ListItemFactory | None = None ) -> GridView: ... def scroll_to( - self, pos: int, flags: ListScrollFlags, scroll: ScrollInfo | None = None + self, + pos: int, + flags: _ListScrollFlagsValueType, + scroll: ScrollInfo | None = None, ) -> None: ... def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... def set_factory(self, factory: ListItemFactory | None = None) -> None: ... @@ -14429,7 +14901,7 @@ class GridView(ListBase): def set_min_columns(self, min_columns: int) -> None: ... def set_model(self, model: SelectionModel | None = None) -> None: ... def set_single_click_activate(self, single_click_activate: bool) -> None: ... - def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... + def set_tab_behavior(self, tab_behavior: _ListTabBehaviorValueType) -> None: ... class GridViewClass(_gi.Struct): ... @@ -14511,7 +14983,10 @@ class HeaderBar(Widget): show_title_buttons: bool title_widget: Widget | None use_native_controls: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -14522,15 +14997,15 @@ class HeaderBar(Widget): show_title_buttons: bool = ..., title_widget: Widget | None = ..., use_native_controls: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -14543,12 +15018,12 @@ class HeaderBar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -14595,15 +15070,24 @@ class IMContext(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - input_hints: InputHints - input_purpose: InputPurpose + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... @property def props(self) -> Props: ... @property def parent_instance(self) -> GObject.Object: ... def __init__( - self, *, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + self, + *, + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., ) -> None: ... def activate_osk(self, event: _Gdk4.Event | None = None) -> bool: ... def delete_surrounding(self, offset: int, n_chars: int) -> bool: ... @@ -14636,7 +15120,7 @@ class IMContext(GObject.Object): device: _Gdk4.Device, time: int, keycode: int, - state: _Gdk4.ModifierType, + state: _Gdk4._ModifierTypeValueType, group: int, ) -> bool: ... def filter_keypress(self, event: _Gdk4.Event) -> bool: ... @@ -14742,7 +15226,10 @@ class IMContextSimple(IMContext): @property def priv(self) -> IMContextSimplePrivate: ... def __init__( - self, *, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + self, + *, + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., ) -> None: ... def add_compose_file(self, compose_file: str) -> None: ... @classmethod @@ -14792,7 +15279,10 @@ class IMMulticontext(IMContext): @property def priv(self) -> IMMulticontextPrivate: ... def __init__( - self, *, input_hints: InputHints = ..., input_purpose: InputPurpose = ... + self, + *, + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., ) -> None: ... def get_context_id(self) -> str: ... @classmethod @@ -14852,8 +15342,8 @@ class IconPaintable(GObject.Object, _Gdk4.Paintable, SymbolicPaintable): def __init__( self, *, - file: Gio.File = ..., - icon_name: str = ..., + file: Gio.File | None = ..., + icon_name: str | None = ..., is_symbolic: bool = ..., scale: int = ..., size: int = ..., @@ -14904,16 +15394,25 @@ class IconTheme(GObject.Object): display: _Gdk4.Display | None @property def icon_names(self) -> list[str]: ... - resource_path: list[str] | None - search_path: list[str] | None - theme_name: str | None + @property + def resource_path(self) -> list[str]: ... + @resource_path.setter + def resource_path(self, value: Sequence[str] | None) -> None: ... + @property + def search_path(self) -> list[str]: ... + @search_path.setter + def search_path(self, value: Sequence[str] | None) -> None: ... + @property + def theme_name(self) -> str: ... + @theme_name.setter + def theme_name(self, value: str | None) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - display: _Gdk4.Display = ..., + display: _Gdk4.Display | None = ..., resource_path: Sequence[str] | None = ..., search_path: Sequence[str] | None = ..., theme_name: str | None = ..., @@ -14935,8 +15434,8 @@ class IconTheme(GObject.Object): icon: Gio.Icon, size: int, scale: int, - direction: TextDirection, - flags: IconLookupFlags, + direction: _TextDirectionValueType, + flags: _IconLookupFlagsValueType, ) -> IconPaintable: ... def lookup_icon( self, @@ -14944,8 +15443,8 @@ class IconTheme(GObject.Object): fallbacks: Sequence[str] | None, size: int, scale: int, - direction: TextDirection, - flags: IconLookupFlags, + direction: _TextDirectionValueType, + flags: _IconLookupFlagsValueType, ) -> IconPaintable: ... @classmethod def new(cls) -> IconTheme: ... @@ -15054,10 +15553,13 @@ class IconView(Widget, CellLayout, Scrollable): class Props(Widget.Props): activate_on_single_click: bool @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... column_spacing: int columns: int - item_orientation: Orientation + @property + def item_orientation(self) -> Orientation: ... + @item_orientation.setter + def item_orientation(self, value: _OrientationValueType) -> None: ... item_padding: int item_width: int margin: int @@ -15066,15 +15568,27 @@ class IconView(Widget, CellLayout, Scrollable): pixbuf_column: int reorderable: bool row_spacing: int - selection_mode: SelectionMode + @property + def selection_mode(self) -> SelectionMode: ... + @selection_mode.setter + def selection_mode(self, value: _SelectionModeValueType) -> None: ... spacing: int text_column: int tooltip_column: int - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -15082,10 +15596,10 @@ class IconView(Widget, CellLayout, Scrollable): self, *, activate_on_single_click: bool = ..., - cell_area: CellArea = ..., + cell_area: CellArea | None = ..., column_spacing: int = ..., columns: int = ..., - item_orientation: Orientation = ..., + item_orientation: _OrientationValueType = ..., item_padding: int = ..., item_width: int = ..., margin: int = ..., @@ -15094,23 +15608,23 @@ class IconView(Widget, CellLayout, Scrollable): pixbuf_column: int = ..., reorderable: bool = ..., row_spacing: int = ..., - selection_mode: SelectionMode = ..., + selection_mode: _SelectionModeValueType = ..., spacing: int = ..., text_column: int = ..., tooltip_column: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -15123,12 +15637,12 @@ class IconView(Widget, CellLayout, Scrollable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15136,13 +15650,13 @@ class IconView(Widget, CellLayout, Scrollable): ) -> None: ... def create_drag_icon(self, path: TreePath) -> _Gdk4.Paintable | None: ... def enable_model_drag_dest( - self, formats: _Gdk4.ContentFormats, actions: _Gdk4.DragAction + self, formats: _Gdk4.ContentFormats, actions: _Gdk4._DragActionValueType ) -> None: ... def enable_model_drag_source( self, - start_button_mask: _Gdk4.ModifierType, + start_button_mask: _Gdk4._ModifierTypeValueType, formats: _Gdk4.ContentFormats, - actions: _Gdk4.DragAction, + actions: _Gdk4._DragActionValueType, ) -> None: ... def get_activate_on_single_click(self) -> bool: ... def get_cell_rect( @@ -15206,9 +15720,9 @@ class IconView(Widget, CellLayout, Scrollable): self, path: TreePath, cell: CellRenderer | None, start_editing: bool ) -> None: ... def set_drag_dest_item( - self, path: TreePath | None, pos: IconViewDropPosition + self, path: TreePath | None, pos: _IconViewDropPositionValueType ) -> None: ... - def set_item_orientation(self, orientation: Orientation) -> None: ... + def set_item_orientation(self, orientation: _OrientationValueType) -> None: ... def set_item_padding(self, item_padding: int) -> None: ... def set_item_width(self, item_width: int) -> None: ... def set_margin(self, margin: int) -> None: ... @@ -15217,7 +15731,7 @@ class IconView(Widget, CellLayout, Scrollable): def set_pixbuf_column(self, column: int) -> None: ... def set_reorderable(self, reorderable: bool) -> None: ... def set_row_spacing(self, row_spacing: int) -> None: ... - def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_selection_mode(self, mode: _SelectionModeValueType) -> None: ... def set_spacing(self, spacing: int) -> None: ... def set_text_column(self, column: int) -> None: ... def set_tooltip_cell( @@ -15315,40 +15829,49 @@ class Image(Widget): """ @type_check_only class Props(Widget.Props): - file: str - gicon: Gio.Icon | None + file: str | None + @property + def gicon(self) -> Gio.Icon | None: ... + @gicon.setter + def gicon(self, value: Gio.Icon) -> None: ... icon_name: str | None - icon_size: IconSize + @property + def icon_size(self) -> IconSize: ... + @icon_size.setter + def icon_size(self, value: _IconSizeValueType) -> None: ... paintable: _Gdk4.Paintable | None pixel_size: int - resource: str + resource: str | None @property def storage_type(self) -> ImageType: ... use_fallback: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - file: str = ..., + file: str | None = ..., gicon: Gio.Icon = ..., icon_name: str | None = ..., - icon_size: IconSize = ..., + icon_size: _IconSizeValueType = ..., paintable: _Gdk4.Paintable | None = ..., pixel_size: int = ..., - resource: str = ..., + resource: str | None = ..., use_fallback: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -15361,12 +15884,12 @@ class Image(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15399,7 +15922,7 @@ class Image(Widget): def set_from_paintable(self, paintable: _Gdk4.Paintable | None = None) -> None: ... def set_from_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf | None = None) -> None: ... def set_from_resource(self, resource_path: str | None = None) -> None: ... - def set_icon_size(self, icon_size: IconSize) -> None: ... + def set_icon_size(self, icon_size: _IconSizeValueType) -> None: ... def set_pixel_size(self, pixel_size: int) -> None: ... class InfoBar(Widget): @@ -15479,28 +16002,34 @@ class InfoBar(Widget): """ @type_check_only class Props(Widget.Props): - message_type: MessageType + @property + def message_type(self) -> MessageType: ... + @message_type.setter + def message_type(self, value: _MessageTypeValueType) -> None: ... revealed: bool show_close_button: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - message_type: MessageType = ..., + message_type: _MessageTypeValueType = ..., revealed: bool = ..., show_close_button: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -15513,12 +16042,12 @@ class InfoBar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15536,7 +16065,7 @@ class InfoBar(Widget): def remove_child(self, widget: Widget) -> None: ... def response(self, response_id: int) -> None: ... def set_default_response(self, response_id: int) -> None: ... - def set_message_type(self, message_type: MessageType) -> None: ... + def set_message_type(self, message_type: _MessageTypeValueType) -> None: ... def set_response_sensitive(self, response_id: int, setting: bool) -> None: ... def set_revealed(self, revealed: bool) -> None: ... def set_show_close_button(self, setting: bool) -> None: ... @@ -15623,17 +16152,29 @@ class Inscription(Widget, AccessibleText): @type_check_only class Props(Widget.Props): attributes: Pango.AttrList | None - markup: str | None + @property + def markup(self) -> Never: ... + @markup.setter + def markup(self, value: str | None) -> None: ... min_chars: int min_lines: int nat_chars: int nat_lines: int text: str | None - text_overflow: InscriptionOverflow - wrap_mode: Pango.WrapMode + @property + def text_overflow(self) -> InscriptionOverflow: ... + @text_overflow.setter + def text_overflow(self, value: _InscriptionOverflowValueType) -> None: ... + @property + def wrap_mode(self) -> Pango.WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: Pango._WrapModeValueType) -> None: ... xalign: float yalign: float - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -15647,19 +16188,19 @@ class Inscription(Widget, AccessibleText): nat_chars: int = ..., nat_lines: int = ..., text: str | None = ..., - text_overflow: InscriptionOverflow = ..., - wrap_mode: Pango.WrapMode = ..., + text_overflow: _InscriptionOverflowValueType = ..., + wrap_mode: Pango._WrapModeValueType = ..., xalign: float = ..., yalign: float = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -15672,12 +16213,12 @@ class Inscription(Widget, AccessibleText): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15702,8 +16243,8 @@ class Inscription(Widget, AccessibleText): def set_nat_chars(self, nat_chars: int) -> None: ... def set_nat_lines(self, nat_lines: int) -> None: ... def set_text(self, text: str | None = None) -> None: ... - def set_text_overflow(self, overflow: InscriptionOverflow) -> None: ... - def set_wrap_mode(self, wrap_mode: Pango.WrapMode) -> None: ... + def set_text_overflow(self, overflow: _InscriptionOverflowValueType) -> None: ... + def set_wrap_mode(self, wrap_mode: Pango._WrapModeValueType) -> None: ... def set_xalign(self, xalign: float) -> None: ... def set_yalign(self, yalign: float) -> None: ... @@ -15746,12 +16287,14 @@ class KeyvalTrigger(ShortcutTrigger): @property def props(self) -> Props: ... def __init__( - self, *, keyval: int = ..., modifiers: _Gdk4.ModifierType = ... + self, *, keyval: int = ..., modifiers: _Gdk4._ModifierTypeValueType = ... ) -> None: ... def get_keyval(self) -> int: ... def get_modifiers(self) -> _Gdk4.ModifierType: ... @classmethod - def new(cls, keyval: int, modifiers: _Gdk4.ModifierType) -> KeyvalTrigger: ... + def new( + cls, keyval: int, modifiers: _Gdk4._ModifierTypeValueType + ) -> KeyvalTrigger: ... class KeyvalTriggerClass(_gi.Struct): ... @@ -15853,16 +16396,25 @@ class Label(Widget, AccessibleText): @type_check_only class Props(Widget.Props): attributes: Pango.AttrList | None - ellipsize: Pango.EllipsizeMode + @property + def ellipsize(self) -> Pango.EllipsizeMode: ... + @ellipsize.setter + def ellipsize(self, value: Pango._EllipsizeModeValueType) -> None: ... extra_menu: Gio.MenuModel | None - justify: Justification + @property + def justify(self) -> Justification: ... + @justify.setter + def justify(self, value: _JustificationValueType) -> None: ... label: str lines: int max_width_chars: int @property def mnemonic_keyval(self) -> int: ... mnemonic_widget: Widget | None - natural_wrap_mode: NaturalWrapMode + @property + def natural_wrap_mode(self) -> NaturalWrapMode: ... + @natural_wrap_mode.setter + def natural_wrap_mode(self, value: _NaturalWrapModeValueType) -> None: ... selectable: bool single_line_mode: bool tabs: Pango.TabArray | None @@ -15870,10 +16422,16 @@ class Label(Widget, AccessibleText): use_underline: bool width_chars: int wrap: bool - wrap_mode: Pango.WrapMode + @property + def wrap_mode(self) -> Pango.WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: Pango._WrapModeValueType) -> None: ... xalign: float yalign: float - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -15881,14 +16439,14 @@ class Label(Widget, AccessibleText): self, *, attributes: Pango.AttrList | None = ..., - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., extra_menu: Gio.MenuModel | None = ..., - justify: Justification = ..., + justify: _JustificationValueType = ..., label: str = ..., lines: int = ..., max_width_chars: int = ..., mnemonic_widget: Widget | None = ..., - natural_wrap_mode: NaturalWrapMode = ..., + natural_wrap_mode: _NaturalWrapModeValueType = ..., selectable: bool = ..., single_line_mode: bool = ..., tabs: Pango.TabArray | None = ..., @@ -15896,18 +16454,18 @@ class Label(Widget, AccessibleText): use_underline: bool = ..., width_chars: int = ..., wrap: bool = ..., - wrap_mode: Pango.WrapMode = ..., + wrap_mode: Pango._WrapModeValueType = ..., xalign: float = ..., yalign: float = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -15920,12 +16478,12 @@ class Label(Widget, AccessibleText): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -15962,16 +16520,16 @@ class Label(Widget, AccessibleText): def new_with_mnemonic(cls, str: str | None = None) -> Label: ... def select_region(self, start_offset: int, end_offset: int) -> None: ... def set_attributes(self, attrs: Pango.AttrList | None = None) -> None: ... - def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ... + def set_ellipsize(self, mode: Pango._EllipsizeModeValueType) -> None: ... def set_extra_menu(self, model: Gio.MenuModel | None = None) -> None: ... - def set_justify(self, jtype: Justification) -> None: ... + def set_justify(self, jtype: _JustificationValueType) -> None: ... def set_label(self, str: str) -> None: ... def set_lines(self, lines: int) -> None: ... def set_markup(self, str: str) -> None: ... def set_markup_with_mnemonic(self, str: str) -> None: ... def set_max_width_chars(self, n_chars: int) -> None: ... def set_mnemonic_widget(self, widget: Widget | None = None) -> None: ... - def set_natural_wrap_mode(self, wrap_mode: NaturalWrapMode) -> None: ... + def set_natural_wrap_mode(self, wrap_mode: _NaturalWrapModeValueType) -> None: ... def set_selectable(self, setting: bool) -> None: ... def set_single_line_mode(self, single_line_mode: bool) -> None: ... def set_tabs(self, tabs: Pango.TabArray | None = None) -> None: ... @@ -15981,7 +16539,7 @@ class Label(Widget, AccessibleText): def set_use_underline(self, setting: bool) -> None: ... def set_width_chars(self, n_chars: int) -> None: ... def set_wrap(self, wrap: bool) -> None: ... - def set_wrap_mode(self, wrap_mode: Pango.WrapMode) -> None: ... + def set_wrap_mode(self, wrap_mode: Pango._WrapModeValueType) -> None: ... def set_xalign(self, xalign: float) -> None: ... def set_yalign(self, yalign: float) -> None: ... @@ -16014,7 +16572,10 @@ class LayoutChild(GObject.Object): @property def parent_instance(self) -> GObject.Object: ... def __init__( - self, *, child_widget: Widget = ..., layout_manager: LayoutManager = ... + self, + *, + child_widget: Widget | None = ..., + layout_manager: LayoutManager | None = ..., ) -> None: ... def get_child_widget(self) -> Widget: ... def get_layout_manager(self) -> LayoutManager: ... @@ -16056,7 +16617,7 @@ class LayoutManager(GObject.Object): ) -> LayoutChild: ... def do_get_request_mode(self, widget: Widget) -> SizeRequestMode: ... def do_measure( - self, widget: Widget, orientation: Orientation, for_size: int + self, widget: Widget, orientation: _OrientationValueType, for_size: int ) -> tuple[int, int, int, int]: ... def do_root(self) -> None: ... def do_unroot(self) -> None: ... @@ -16065,7 +16626,7 @@ class LayoutManager(GObject.Object): def get_widget(self) -> Widget | None: ... def layout_changed(self) -> None: ... def measure( - self, widget: Widget, orientation: Orientation, for_size: int + self, widget: Widget, orientation: _OrientationValueType, for_size: int ) -> tuple[int, int, int, int]: ... class LayoutManagerClass(_gi.Struct): @@ -16086,7 +16647,7 @@ class LayoutManagerClass(_gi.Struct): def measure( self, ) -> Callable[ - [LayoutManager, Widget, Orientation, int], tuple[int, int, int, int] + [LayoutManager, Widget, _OrientationValueType, int], tuple[int, int, int, int] ]: ... @property def allocate(self) -> Callable[[LayoutManager, Widget, int, int, int], None]: ... @@ -16183,10 +16744,19 @@ class LevelBar(Widget, AccessibleRange, Orientable): inverted: bool max_value: float min_value: float - mode: LevelBarMode + @property + def mode(self) -> LevelBarMode: ... + @mode.setter + def mode(self, value: _LevelBarModeValueType) -> None: ... value: float - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -16196,18 +16766,18 @@ class LevelBar(Widget, AccessibleRange, Orientable): inverted: bool = ..., max_value: float = ..., min_value: float = ..., - mode: LevelBarMode = ..., + mode: _LevelBarModeValueType = ..., value: float = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -16220,12 +16790,12 @@ class LevelBar(Widget, AccessibleRange, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -16246,7 +16816,7 @@ class LevelBar(Widget, AccessibleRange, Orientable): def set_inverted(self, inverted: bool) -> None: ... def set_max_value(self, value: float) -> None: ... def set_min_value(self, value: float) -> None: ... - def set_mode(self, mode: LevelBarMode) -> None: ... + def set_mode(self, mode: _LevelBarModeValueType) -> None: ... def set_value(self, value: float) -> None: ... class LinkButton(Button): @@ -16339,9 +16909,15 @@ class LinkButton(Button): class Props(Button.Props): uri: str visited: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -16350,7 +16926,7 @@ class LinkButton(Button): *, uri: str = ..., visited: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_shrink: bool = ..., @@ -16362,11 +16938,11 @@ class LinkButton(Button): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -16379,12 +16955,12 @@ class LinkButton(Button): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -16469,32 +17045,44 @@ class ListBase(Widget, Orientable, Scrollable): """ @type_check_only class Props(Widget.Props): - orientation: Orientation - accessible_role: AccessibleRole + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - orientation: Orientation = ..., - accessible_role: AccessibleRole = ..., + orientation: _OrientationValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -16507,12 +17095,12 @@ class ListBase(Widget, Orientable, Scrollable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -16608,10 +17196,19 @@ class ListBox(Widget): class Props(Widget.Props): accept_unpaired_release: bool activate_on_single_click: bool - selection_mode: SelectionMode + @property + def selection_mode(self) -> SelectionMode: ... + @selection_mode.setter + def selection_mode(self, value: _SelectionModeValueType) -> None: ... show_separators: bool - tab_behavior: ListTabBehavior - accessible_role: AccessibleRole + @property + def tab_behavior(self) -> ListTabBehavior: ... + @tab_behavior.setter + def tab_behavior(self, value: _ListTabBehaviorValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -16620,18 +17217,18 @@ class ListBox(Widget): *, accept_unpaired_release: bool = ..., activate_on_single_click: bool = ..., - selection_mode: SelectionMode = ..., + selection_mode: _SelectionModeValueType = ..., show_separators: bool = ..., - tab_behavior: ListTabBehavior = ..., - accessible_role: AccessibleRole = ..., + tab_behavior: _ListTabBehaviorValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -16644,12 +17241,12 @@ class ListBox(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -16704,7 +17301,7 @@ class ListBox(Widget): *user_data: Unpack[_DataTs], ) -> None: ... def set_placeholder(self, placeholder: Widget | None = None) -> None: ... - def set_selection_mode(self, mode: SelectionMode) -> None: ... + def set_selection_mode(self, mode: _SelectionModeValueType) -> None: ... def set_show_separators(self, show_separators: bool) -> None: ... def set_sort_func( self, @@ -16712,7 +17309,7 @@ class ListBox(Widget): | None = None, *user_data: Unpack[_DataTs], ) -> None: ... - def set_tab_behavior(self, behavior: ListTabBehavior) -> None: ... + def set_tab_behavior(self, behavior: _ListTabBehaviorValueType) -> None: ... def unselect_all(self) -> None: ... def unselect_row(self, row: ListBoxRow) -> None: ... @@ -16795,9 +17392,15 @@ class ListBoxRow(Widget, Actionable): activatable: bool child: Widget | None selectable: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -16809,17 +17412,17 @@ class ListBoxRow(Widget, Actionable): activatable: bool = ..., child: Widget | None = ..., selectable: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -16832,12 +17435,12 @@ class ListBoxRow(Widget, Actionable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -17180,13 +17783,28 @@ class ListView(ListBase): model: SelectionModel | None show_separators: bool single_click_activate: bool - tab_behavior: ListTabBehavior - accessible_role: AccessibleRole - orientation: Orientation + @property + def tab_behavior(self) -> ListTabBehavior: ... + @tab_behavior.setter + def tab_behavior(self, value: _ListTabBehaviorValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -17199,21 +17817,21 @@ class ListView(ListBase): model: SelectionModel | None = ..., show_separators: bool = ..., single_click_activate: bool = ..., - tab_behavior: ListTabBehavior = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + tab_behavior: _ListTabBehaviorValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -17226,12 +17844,12 @@ class ListView(ListBase): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -17249,7 +17867,10 @@ class ListView(ListBase): cls, model: SelectionModel | None = None, factory: ListItemFactory | None = None ) -> ListView: ... def scroll_to( - self, pos: int, flags: ListScrollFlags, scroll: ScrollInfo | None = None + self, + pos: int, + flags: _ListScrollFlagsValueType, + scroll: ScrollInfo | None = None, ) -> None: ... def set_enable_rubberband(self, enable_rubberband: bool) -> None: ... def set_factory(self, factory: ListItemFactory | None = None) -> None: ... @@ -17257,7 +17878,7 @@ class ListView(ListBase): def set_model(self, model: SelectionModel | None = None) -> None: ... def set_show_separators(self, show_separators: bool) -> None: ... def set_single_click_activate(self, single_click_activate: bool) -> None: ... - def set_tab_behavior(self, tab_behavior: ListTabBehavior) -> None: ... + def set_tab_behavior(self, tab_behavior: _ListTabBehaviorValueType) -> None: ... class ListViewClass(_gi.Struct): ... @@ -17350,14 +17971,20 @@ class LockButton(Button): @type_check_only class Props(Button.Props): permission: Gio.Permission | None - text_lock: str - text_unlock: str - tooltip_lock: str - tooltip_not_authorized: str - tooltip_unlock: str - accessible_role: AccessibleRole + text_lock: str | None + text_unlock: str | None + tooltip_lock: str | None + tooltip_not_authorized: str | None + tooltip_unlock: str | None + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -17365,12 +17992,12 @@ class LockButton(Button): self, *, permission: Gio.Permission | None = ..., - text_lock: str = ..., - text_unlock: str = ..., - tooltip_lock: str = ..., - tooltip_not_authorized: str = ..., - tooltip_unlock: str = ..., - accessible_role: AccessibleRole = ..., + text_lock: str | None = ..., + text_unlock: str | None = ..., + tooltip_lock: str | None = ..., + tooltip_not_authorized: str | None = ..., + tooltip_unlock: str | None = ..., + accessible_role: _AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_shrink: bool = ..., @@ -17382,11 +18009,11 @@ class LockButton(Button): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -17399,12 +18026,12 @@ class LockButton(Button): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -17555,7 +18182,10 @@ class MediaControls(Widget): @type_check_only class Props(Widget.Props): media_stream: MediaStream | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -17563,15 +18193,15 @@ class MediaControls(Widget): self, *, media_stream: MediaStream | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -17584,12 +18214,12 @@ class MediaControls(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -17929,15 +18559,27 @@ class MenuButton(Widget): always_show_arrow: bool can_shrink: bool child: Widget | None - direction: ArrowType + @property + def direction(self) -> ArrowType: ... + @direction.setter + def direction(self, value: _ArrowTypeValueType) -> None: ... has_frame: bool - icon_name: str | None - label: str | None + @property + def icon_name(self) -> str | None: ... + @icon_name.setter + def icon_name(self, value: str) -> None: ... + @property + def label(self) -> str | None: ... + @label.setter + def label(self, value: str) -> None: ... menu_model: Gio.MenuModel | None popover: Popover | None primary: bool use_underline: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -17948,7 +18590,7 @@ class MenuButton(Widget): always_show_arrow: bool = ..., can_shrink: bool = ..., child: Widget | None = ..., - direction: ArrowType = ..., + direction: _ArrowTypeValueType = ..., has_frame: bool = ..., icon_name: str = ..., label: str = ..., @@ -17956,15 +18598,15 @@ class MenuButton(Widget): popover: Popover | None = ..., primary: bool = ..., use_underline: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -17977,12 +18619,12 @@ class MenuButton(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -18013,7 +18655,7 @@ class MenuButton(Widget): func: Callable[[MenuButton, Unpack[_DataTs]], None] | None = None, *user_data: Unpack[_DataTs], ) -> None: ... - def set_direction(self, direction: ArrowType) -> None: ... + def set_direction(self, direction: _ArrowTypeValueType) -> None: ... def set_has_frame(self, has_frame: bool) -> None: ... def set_icon_name(self, icon_name: str) -> None: ... def set_label(self, label: str) -> None: ... @@ -18142,12 +18784,18 @@ class MessageDialog(Dialog): class Props(Dialog.Props): @property def message_area(self) -> Widget: ... - message_type: MessageType - secondary_text: str + @property + def message_type(self) -> MessageType: ... + @message_type.setter + def message_type(self, value: _MessageTypeValueType) -> None: ... + secondary_text: str | None secondary_use_markup: bool - text: str + text: str | None use_markup: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -18156,13 +18804,13 @@ class MessageDialog(Dialog): def __init__( self, *, - buttons: ButtonsType = ..., - message_type: MessageType = ..., - secondary_text: str = ..., + buttons: _ButtonsTypeValueType = ..., + message_type: _MessageTypeValueType = ..., + secondary_text: str | None = ..., secondary_use_markup: bool = ..., - text: str = ..., + text: str | None = ..., use_markup: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., use_header_bar: int = ..., application: Application | None = ..., child: Widget | None = ..., @@ -18176,7 +18824,7 @@ class MessageDialog(Dialog): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -18191,11 +18839,11 @@ class MessageDialog(Dialog): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -18208,12 +18856,12 @@ class MessageDialog(Dialog): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -18335,7 +18983,7 @@ class MountOperation(Gio.MountOperation): is_tcrypt_hidden_volume: bool = ..., is_tcrypt_system_volume: bool = ..., password: str | None = ..., - password_save: Gio.PasswordSave = ..., + password_save: Gio._PasswordSaveValueType = ..., pim: int = ..., username: str | None = ..., ) -> None: ... @@ -18525,7 +19173,7 @@ class NamedAction(ShortcutAction): @property def props(self) -> Props: ... - def __init__(self, *, action_name: str = ...) -> None: ... + def __init__(self, *, action_name: str | None = ...) -> None: ... def get_action_name(self) -> str: ... @classmethod def new(cls, name: str) -> NamedAction: ... @@ -18572,7 +19220,10 @@ class NativeDialog(GObject.Object): @type_check_only class Props(GObject.Object.Props): modal: bool - title: str | None + @property + def title(self) -> str | None: ... + @title.setter + def title(self, value: str) -> None: ... transient_for: Window | None visible: bool @@ -18792,8 +19443,14 @@ class Notebook(Widget): scrollable: bool show_border: bool show_tabs: bool - tab_pos: PositionType - accessible_role: AccessibleRole + @property + def tab_pos(self) -> PositionType: ... + @tab_pos.setter + def tab_pos(self, value: _PositionTypeValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -18806,16 +19463,16 @@ class Notebook(Widget): scrollable: bool = ..., show_border: bool = ..., show_tabs: bool = ..., - tab_pos: PositionType = ..., - accessible_role: AccessibleRole = ..., + tab_pos: _PositionTypeValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -18828,12 +19485,12 @@ class Notebook(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -18847,7 +19504,7 @@ class Notebook(Widget): menu_label: Widget | None = None, ) -> int: ... def detach_tab(self, child: Widget) -> None: ... - def get_action_widget(self, pack_type: PackType) -> Widget | None: ... + def get_action_widget(self, pack_type: _PackTypeValueType) -> Widget | None: ... def get_current_page(self) -> int: ... def get_group_name(self) -> str | None: ... def get_menu_label(self, child: Widget) -> Widget | None: ... @@ -18890,7 +19547,9 @@ class Notebook(Widget): def prev_page(self) -> None: ... def remove_page(self, page_num: int) -> None: ... def reorder_child(self, child: Widget, position: int) -> None: ... - def set_action_widget(self, widget: Widget, pack_type: PackType) -> None: ... + def set_action_widget( + self, widget: Widget, pack_type: _PackTypeValueType + ) -> None: ... def set_current_page(self, page_num: int) -> None: ... def set_group_name(self, group_name: str | None = None) -> None: ... def set_menu_label( @@ -18903,7 +19562,7 @@ class Notebook(Widget): def set_tab_detachable(self, child: Widget, detachable: bool) -> None: ... def set_tab_label(self, child: Widget, tab_label: Widget | None = None) -> None: ... def set_tab_label_text(self, child: Widget, tab_text: str) -> None: ... - def set_tab_pos(self, pos: PositionType) -> None: ... + def set_tab_pos(self, pos: _PositionTypeValueType) -> None: ... def set_tab_reorderable(self, child: Widget, reorderable: bool) -> None: ... class NotebookPage(GObject.Object): @@ -18937,31 +19596,31 @@ class NotebookPage(GObject.Object): def child(self) -> Widget: ... detachable: bool @property - def menu(self) -> Widget: ... - menu_label: str + def menu(self) -> Widget | None: ... + menu_label: str | None position: int reorderable: bool @property - def tab(self) -> Widget: ... + def tab(self) -> Widget | None: ... tab_expand: bool tab_fill: bool - tab_label: str + tab_label: str | None @property def props(self) -> Props: ... def __init__( self, *, - child: Widget = ..., + child: Widget | None = ..., detachable: bool = ..., - menu: Widget = ..., - menu_label: str = ..., + menu: Widget | None = ..., + menu_label: str | None = ..., position: int = ..., reorderable: bool = ..., - tab: Widget = ..., + tab: Widget | None = ..., tab_expand: bool = ..., tab_fill: bool = ..., - tab_label: str = ..., + tab_label: str | None = ..., ) -> None: ... def get_child(self) -> Widget: ... @@ -19007,19 +19666,25 @@ class NumericSorter(Sorter): @type_check_only class Props(Sorter.Props): expression: Expression | None - sort_order: SortType + @property + def sort_order(self) -> SortType: ... + @sort_order.setter + def sort_order(self, value: _SortTypeValueType) -> None: ... @property def props(self) -> Props: ... def __init__( - self, *, expression: Expression | None = ..., sort_order: SortType = ... + self, + *, + expression: Expression | None = ..., + sort_order: _SortTypeValueType = ..., ) -> None: ... def get_expression(self) -> Expression | None: ... def get_sort_order(self) -> SortType: ... @classmethod def new(cls, expression: Expression | None = None) -> NumericSorter: ... def set_expression(self, expression: Expression | None = None) -> None: ... - def set_sort_order(self, sort_order: SortType) -> None: ... + def set_sort_order(self, sort_order: _SortTypeValueType) -> None: ... class NumericSorterClass(_gi.Struct): """ @@ -19053,7 +19718,7 @@ class Orientable(GObject.GInterface, Protocol): notify (GParam) """ def get_orientation(self) -> Orientation: ... - def set_orientation(self, orientation: Orientation) -> None: ... + def set_orientation(self, orientation: _OrientationValueType) -> None: ... class OrientableIface(_gi.Struct): """ @@ -19141,7 +19806,10 @@ class Overlay(Widget): @type_check_only class Props(Widget.Props): child: Widget | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -19149,15 +19817,15 @@ class Overlay(Widget): self, *, child: Widget | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -19170,12 +19838,12 @@ class Overlay(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -19242,8 +19910,8 @@ class OverlayLayoutChild(LayoutChild): *, clip_overlay: bool = ..., measure: bool = ..., - child_widget: Widget = ..., - layout_manager: LayoutManager = ..., + child_widget: Widget | None = ..., + layout_manager: LayoutManager | None = ..., ) -> None: ... def get_clip_overlay(self) -> bool: ... def get_measure(self) -> bool: ... @@ -19314,27 +19982,32 @@ class PadController(EventController): @type_check_only class Props(EventController.Props): @property - def action_group(self) -> Gio.ActionGroup: ... + def action_group(self) -> Gio.ActionGroup | None: ... @property - def pad(self) -> _Gdk4.Device: ... + def pad(self) -> _Gdk4.Device | None: ... @property def props(self) -> Props: ... def __init__( self, *, - action_group: Gio.ActionGroup = ..., - pad: _Gdk4.Device = ..., + action_group: Gio.ActionGroup | None = ..., + pad: _Gdk4.Device | None = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... @classmethod def new( cls, group: Gio.ActionGroup, pad: _Gdk4.Device | None = None ) -> PadController: ... def set_action( - self, type: PadActionType, index: int, mode: int, label: str, action_name: str + self, + type: _PadActionTypeValueType, + index: int, + mode: int, + label: str, + action_name: str, ) -> None: ... def set_action_entries(self, entries: Sequence[PadActionEntry]) -> None: ... @@ -19370,16 +20043,16 @@ class PageSetup(GObject.Object): notify (GParam) """ def copy(self) -> PageSetup: ... - def get_bottom_margin(self, unit: Unit) -> float: ... - def get_left_margin(self, unit: Unit) -> float: ... + def get_bottom_margin(self, unit: _UnitValueType) -> float: ... + def get_left_margin(self, unit: _UnitValueType) -> float: ... def get_orientation(self) -> PageOrientation: ... - def get_page_height(self, unit: Unit) -> float: ... - def get_page_width(self, unit: Unit) -> float: ... - def get_paper_height(self, unit: Unit) -> float: ... + def get_page_height(self, unit: _UnitValueType) -> float: ... + def get_page_width(self, unit: _UnitValueType) -> float: ... + def get_paper_height(self, unit: _UnitValueType) -> float: ... def get_paper_size(self) -> PaperSize: ... - def get_paper_width(self, unit: Unit) -> float: ... - def get_right_margin(self, unit: Unit) -> float: ... - def get_top_margin(self, unit: Unit) -> float: ... + def get_paper_width(self, unit: _UnitValueType) -> float: ... + def get_right_margin(self, unit: _UnitValueType) -> float: ... + def get_top_margin(self, unit: _UnitValueType) -> float: ... def load_file(self, file_name: str) -> bool: ... def load_key_file( self, key_file: GLib.KeyFile, group_name: str | None = None @@ -19394,13 +20067,13 @@ class PageSetup(GObject.Object): def new_from_key_file( cls, key_file: GLib.KeyFile, group_name: str | None = None ) -> PageSetup: ... - def set_bottom_margin(self, margin: float, unit: Unit) -> None: ... - def set_left_margin(self, margin: float, unit: Unit) -> None: ... - def set_orientation(self, orientation: PageOrientation) -> None: ... + def set_bottom_margin(self, margin: float, unit: _UnitValueType) -> None: ... + def set_left_margin(self, margin: float, unit: _UnitValueType) -> None: ... + def set_orientation(self, orientation: _PageOrientationValueType) -> None: ... def set_paper_size(self, size: PaperSize) -> None: ... def set_paper_size_and_default_margins(self, size: PaperSize) -> None: ... - def set_right_margin(self, margin: float, unit: Unit) -> None: ... - def set_top_margin(self, margin: float, unit: Unit) -> None: ... + def set_right_margin(self, margin: float, unit: _UnitValueType) -> None: ... + def set_top_margin(self, margin: float, unit: _UnitValueType) -> None: ... def to_file(self, file_name: str) -> bool: ... def to_gvariant(self) -> GLib.Variant: ... def to_key_file( @@ -19517,14 +20190,17 @@ class PageSetupUnixDialog(Dialog): """ @type_check_only class Props(Dialog.Props): - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., use_header_bar: int = ..., application: Application | None = ..., child: Widget | None = ..., @@ -19538,7 +20214,7 @@ class PageSetupUnixDialog(Dialog): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -19553,11 +20229,11 @@ class PageSetupUnixDialog(Dialog): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -19570,12 +20246,12 @@ class PageSetupUnixDialog(Dialog): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -19694,8 +20370,14 @@ class Paned(Widget, AccessibleRange, Orientable): shrink_start_child: bool start_child: Widget | None wide_handle: bool - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -19711,16 +20393,16 @@ class Paned(Widget, AccessibleRange, Orientable): shrink_start_child: bool = ..., start_child: Widget | None = ..., wide_handle: bool = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -19733,12 +20415,12 @@ class Paned(Widget, AccessibleRange, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -19753,7 +20435,7 @@ class Paned(Widget, AccessibleRange, Orientable): def get_start_child(self) -> Widget | None: ... def get_wide_handle(self) -> bool: ... @classmethod - def new(cls, orientation: Orientation) -> Paned: ... + def new(cls, orientation: _OrientationValueType) -> Paned: ... def set_end_child(self, child: Widget | None = None) -> None: ... def set_position(self, position: int) -> None: ... def set_resize_end_child(self, resize: bool) -> None: ... @@ -19781,17 +20463,17 @@ class PaperSize(GObject.GBoxed): def free(self) -> None: ... @staticmethod def get_default() -> str: ... - def get_default_bottom_margin(self, unit: Unit) -> float: ... - def get_default_left_margin(self, unit: Unit) -> float: ... - def get_default_right_margin(self, unit: Unit) -> float: ... - def get_default_top_margin(self, unit: Unit) -> float: ... + def get_default_bottom_margin(self, unit: _UnitValueType) -> float: ... + def get_default_left_margin(self, unit: _UnitValueType) -> float: ... + def get_default_right_margin(self, unit: _UnitValueType) -> float: ... + def get_default_top_margin(self, unit: _UnitValueType) -> float: ... def get_display_name(self) -> str: ... - def get_height(self, unit: Unit) -> float: ... + def get_height(self, unit: _UnitValueType) -> float: ... def get_name(self) -> str: ... @staticmethod def get_paper_sizes(include_custom: bool) -> list[PaperSize]: ... def get_ppd_name(self) -> str: ... - def get_width(self, unit: Unit) -> float: ... + def get_width(self, unit: _UnitValueType) -> float: ... def is_custom(self) -> bool: ... def is_equal(self, size2: PaperSize) -> bool: ... def is_ipp(self) -> bool: ... @@ -19799,7 +20481,12 @@ class PaperSize(GObject.GBoxed): def new(cls, name: str | None = None) -> PaperSize: ... @classmethod def new_custom( - cls, name: str, display_name: str, width: float, height: float, unit: Unit + cls, + name: str, + display_name: str, + width: float, + height: float, + unit: _UnitValueType, ) -> PaperSize: ... @classmethod def new_from_gvariant(cls, variant: GLib.Variant) -> PaperSize: ... @@ -19813,7 +20500,7 @@ class PaperSize(GObject.GBoxed): def new_from_ppd( cls, ppd_name: str, ppd_display_name: str, width: float, height: float ) -> PaperSize: ... - def set_size(self, width: float, height: float, unit: Unit) -> None: ... + def set_size(self, width: float, height: float, unit: _UnitValueType) -> None: ... def to_gvariant(self) -> GLib.Variant: ... def to_key_file(self, key_file: GLib.KeyFile, group_name: str) -> None: ... @@ -19912,9 +20599,12 @@ class PasswordEntry(Widget, Editable): class Props(Widget.Props): activates_default: bool extra_menu: Gio.MenuModel | None - placeholder_text: str + placeholder_text: str | None show_peek_icon: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def cursor_position(self) -> int: ... editable: bool @@ -19933,9 +20623,9 @@ class PasswordEntry(Widget, Editable): *, activates_default: bool = ..., extra_menu: Gio.MenuModel | None = ..., - placeholder_text: str = ..., + placeholder_text: str | None = ..., show_peek_icon: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editable: bool = ..., enable_undo: bool = ..., max_width_chars: int = ..., @@ -19945,11 +20635,11 @@ class PasswordEntry(Widget, Editable): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -19962,12 +20652,12 @@ class PasswordEntry(Widget, Editable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -20103,11 +20793,17 @@ class Picture(Widget): class Props(Widget.Props): alternative_text: str | None can_shrink: bool - content_fit: ContentFit + @property + def content_fit(self) -> ContentFit: ... + @content_fit.setter + def content_fit(self, value: _ContentFitValueType) -> None: ... file: Gio.File | None keep_aspect_ratio: bool paintable: _Gdk4.Paintable | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -20116,19 +20812,19 @@ class Picture(Widget): *, alternative_text: str | None = ..., can_shrink: bool = ..., - content_fit: ContentFit = ..., + content_fit: _ContentFitValueType = ..., file: Gio.File | None = ..., keep_aspect_ratio: bool = ..., paintable: _Gdk4.Paintable | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -20141,12 +20837,12 @@ class Picture(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -20172,7 +20868,7 @@ class Picture(Widget): def new_for_resource(cls, resource_path: str | None = None) -> Picture: ... def set_alternative_text(self, alternative_text: str | None = None) -> None: ... def set_can_shrink(self, can_shrink: bool) -> None: ... - def set_content_fit(self, content_fit: ContentFit) -> None: ... + def set_content_fit(self, content_fit: _ContentFitValueType) -> None: ... def set_file(self, file: Gio.File | None = None) -> None: ... def set_filename(self, filename: str | None = None) -> None: ... def set_keep_aspect_ratio(self, keep_aspect_ratio: bool) -> None: ... @@ -20279,9 +20975,18 @@ class Popover(Widget, Native, ShortcutManager): default_widget: Widget | None has_arrow: bool mnemonics_visible: bool - pointing_to: _Gdk4.Rectangle | None - position: PositionType - accessible_role: AccessibleRole + @property + def pointing_to(self) -> _Gdk4.Rectangle: ... + @pointing_to.setter + def pointing_to(self, value: _Gdk4.Rectangle | None) -> None: ... + @property + def position(self) -> PositionType: ... + @position.setter + def position(self, value: _PositionTypeValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -20297,16 +21002,16 @@ class Popover(Widget, Native, ShortcutManager): has_arrow: bool = ..., mnemonics_visible: bool = ..., pointing_to: _Gdk4.Rectangle | None = ..., - position: PositionType = ..., - accessible_role: AccessibleRole = ..., + position: _PositionTypeValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -20319,12 +21024,12 @@ class Popover(Widget, Native, ShortcutManager): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -20353,7 +21058,7 @@ class Popover(Widget, Native, ShortcutManager): def set_mnemonics_visible(self, mnemonics_visible: bool) -> None: ... def set_offset(self, x_offset: int, y_offset: int) -> None: ... def set_pointing_to(self, rect: _Gdk4.Rectangle | None = None) -> None: ... - def set_position(self, position: PositionType) -> None: ... + def set_position(self, position: _PositionTypeValueType) -> None: ... class PopoverClass(_gi.Struct): """ @@ -20460,20 +21165,26 @@ class PopoverMenu(Popover): """ @type_check_only class Props(Popover.Props): - flags: PopoverMenuFlags + @property + def flags(self) -> PopoverMenuFlags: ... + @flags.setter + def flags(self, value: _PopoverMenuFlagsValueType) -> None: ... menu_model: Gio.MenuModel | None - visible_submenu: str - accessible_role: AccessibleRole + visible_submenu: str | None + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - flags: PopoverMenuFlags = ..., + flags: _PopoverMenuFlagsValueType = ..., menu_model: Gio.MenuModel | None = ..., - visible_submenu: str = ..., - accessible_role: AccessibleRole = ..., + visible_submenu: str | None = ..., + accessible_role: _AccessibleRoleValueType = ..., autohide: bool = ..., cascade_popdown: bool = ..., child: Widget | None = ..., @@ -20481,15 +21192,15 @@ class PopoverMenu(Popover): has_arrow: bool = ..., mnemonics_visible: bool = ..., pointing_to: _Gdk4.Rectangle | None = ..., - position: PositionType = ..., + position: _PositionTypeValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -20502,12 +21213,12 @@ class PopoverMenu(Popover): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -20520,10 +21231,10 @@ class PopoverMenu(Popover): def new_from_model(cls, model: Gio.MenuModel | None = None) -> PopoverMenu: ... @classmethod def new_from_model_full( - cls, model: Gio.MenuModel, flags: PopoverMenuFlags + cls, model: Gio.MenuModel, flags: _PopoverMenuFlagsValueType ) -> PopoverMenu: ... def remove_child(self, child: Widget) -> bool: ... - def set_flags(self, flags: PopoverMenuFlags) -> None: ... + def set_flags(self, flags: _PopoverMenuFlagsValueType) -> None: ... def set_menu_model(self, model: Gio.MenuModel | None = None) -> None: ... class PopoverMenuBar(Widget): @@ -20598,7 +21309,10 @@ class PopoverMenuBar(Widget): @type_check_only class Props(Widget.Props): menu_model: Gio.MenuModel | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -20606,15 +21320,15 @@ class PopoverMenuBar(Widget): self, *, menu_model: Gio.MenuModel | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -20627,12 +21341,12 @@ class PopoverMenuBar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -20699,8 +21413,14 @@ class PrintDialog(GObject.Object): class Props(GObject.Object.Props): accept_label: str modal: bool - page_setup: PageSetup | None - print_settings: PrintSettings | None + @property + def page_setup(self) -> PageSetup | None: ... + @page_setup.setter + def page_setup(self, value: PageSetup) -> None: ... + @property + def print_settings(self) -> PrintSettings | None: ... + @print_settings.setter + def print_settings(self, value: PrintSettings) -> None: ... title: str @property @@ -20801,7 +21521,7 @@ class PrintJob(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def page_setup(self) -> PageSetup: ... + def page_setup(self) -> PageSetup | None: ... @property def printer(self) -> Printer: ... @property @@ -20815,10 +21535,10 @@ class PrintJob(GObject.Object): def __init__( self, *, - page_setup: PageSetup = ..., - printer: Printer = ..., - settings: PrintSettings = ..., - title: str = ..., + page_setup: PageSetup | None = ..., + printer: Printer | None = ..., + settings: PrintSettings | None = ..., + title: str | None = ..., track_print_status: bool = ..., ) -> None: ... def get_collate(self) -> bool: ... @@ -20852,11 +21572,11 @@ class PrintJob(GObject.Object): ) -> None: ... def set_collate(self, collate: bool) -> None: ... def set_n_up(self, n_up: int) -> None: ... - def set_n_up_layout(self, layout: NumberUpLayout) -> None: ... + def set_n_up_layout(self, layout: _NumberUpLayoutValueType) -> None: ... def set_num_copies(self, num_copies: int) -> None: ... def set_page_ranges(self, ranges: Sequence[PageRange]) -> None: ... - def set_page_set(self, page_set: PageSet) -> None: ... - def set_pages(self, pages: PrintPages) -> None: ... + def set_page_set(self, page_set: _PageSetValueType) -> None: ... + def set_pages(self, pages: _PrintPagesValueType) -> None: ... def set_reverse(self, reverse: bool) -> None: ... def set_rotate(self, rotate: bool) -> None: ... def set_scale(self, scale: float) -> None: ... @@ -20920,11 +21640,20 @@ class PrintOperation(GObject.Object, PrintOperationPreview): allow_async: bool current_page: int custom_tab_label: str | None - default_page_setup: PageSetup | None + @property + def default_page_setup(self) -> PageSetup: ... + @default_page_setup.setter + def default_page_setup(self, value: PageSetup | None) -> None: ... embed_page_setup: bool - export_filename: str + @property + def export_filename(self) -> str | None: ... + @export_filename.setter + def export_filename(self, value: str) -> None: ... has_selection: bool - job_name: str + @property + def job_name(self) -> str | None: ... + @job_name.setter + def job_name(self, value: str) -> None: ... n_pages: int @property def n_pages_to_print(self) -> int: ... @@ -20936,7 +21665,10 @@ class PrintOperation(GObject.Object, PrintOperationPreview): def status_string(self) -> str: ... support_selection: bool track_print_status: bool - unit: Unit + @property + def unit(self) -> Unit: ... + @unit.setter + def unit(self, value: _UnitValueType) -> None: ... use_full_page: bool @property @@ -20961,13 +21693,13 @@ class PrintOperation(GObject.Object, PrintOperationPreview): show_progress: bool = ..., support_selection: bool = ..., track_print_status: bool = ..., - unit: Unit = ..., + unit: _UnitValueType = ..., use_full_page: bool = ..., ) -> None: ... def cancel(self) -> None: ... def do_begin_print(self, context: PrintContext) -> None: ... def do_custom_widget_apply(self, widget: Widget) -> None: ... - def do_done(self, result: PrintOperationResult) -> None: ... + def do_done(self, result: _PrintOperationResultValueType) -> None: ... def do_draw_page(self, context: PrintContext, page_nr: int) -> None: ... def do_end_print(self, context: PrintContext) -> None: ... def do_paginate(self, context: PrintContext) -> bool: ... @@ -20995,7 +21727,7 @@ class PrintOperation(GObject.Object, PrintOperationPreview): @classmethod def new(cls) -> PrintOperation: ... def run( - self, action: PrintOperationAction, parent: Window | None = None + self, action: _PrintOperationActionValueType, parent: Window | None = None ) -> PrintOperationResult: ... def set_allow_async(self, allow_async: bool) -> None: ... def set_current_page(self, current_page: int) -> None: ... @@ -21015,7 +21747,7 @@ class PrintOperation(GObject.Object, PrintOperationPreview): def set_show_progress(self, show_progress: bool) -> None: ... def set_support_selection(self, support_selection: bool) -> None: ... def set_track_print_status(self, track_status: bool) -> None: ... - def set_unit(self, unit: Unit) -> None: ... + def set_unit(self, unit: _UnitValueType) -> None: ... def set_use_full_page(self, full_page: bool) -> None: ... class PrintOperationClass(_gi.Struct): @@ -21029,7 +21761,9 @@ class PrintOperationClass(_gi.Struct): @property def parent_class(self) -> GObject.ObjectClass: ... @property - def done(self) -> Callable[[PrintOperation, PrintOperationResult], None]: ... + def done( + self, + ) -> Callable[[PrintOperation, _PrintOperationResultValueType], None]: ... @property def begin_print(self) -> Callable[[PrintOperation, PrintContext], None]: ... @property @@ -21131,7 +21865,7 @@ class PrintSettings(GObject.Object): def get_finishings(self) -> str | None: ... def get_int(self, key: str) -> int: ... def get_int_with_default(self, key: str, def_: int) -> int: ... - def get_length(self, key: str, unit: Unit) -> float: ... + def get_length(self, key: str, unit: _UnitValueType) -> float: ... def get_media_type(self) -> str | None: ... def get_n_copies(self) -> int: ... def get_number_up(self) -> int: ... @@ -21140,9 +21874,9 @@ class PrintSettings(GObject.Object): def get_output_bin(self) -> str | None: ... def get_page_ranges(self) -> list[PageRange]: ... def get_page_set(self) -> PageSet: ... - def get_paper_height(self, unit: Unit) -> float: ... + def get_paper_height(self, unit: _UnitValueType) -> float: ... def get_paper_size(self) -> PaperSize | None: ... - def get_paper_width(self, unit: Unit) -> float: ... + def get_paper_width(self, unit: _UnitValueType) -> float: ... def get_print_pages(self) -> PrintPages: ... def get_printer(self) -> str | None: ... def get_printer_lpi(self) -> float: ... @@ -21174,25 +21908,27 @@ class PrintSettings(GObject.Object): def set_default_source(self, default_source: str) -> None: ... def set_dither(self, dither: str) -> None: ... def set_double(self, key: str, value: float) -> None: ... - def set_duplex(self, duplex: PrintDuplex) -> None: ... + def set_duplex(self, duplex: _PrintDuplexValueType) -> None: ... def set_finishings(self, finishings: str) -> None: ... def set_int(self, key: str, value: int) -> None: ... - def set_length(self, key: str, value: float, unit: Unit) -> None: ... + def set_length(self, key: str, value: float, unit: _UnitValueType) -> None: ... def set_media_type(self, media_type: str) -> None: ... def set_n_copies(self, num_copies: int) -> None: ... def set_number_up(self, number_up: int) -> None: ... - def set_number_up_layout(self, number_up_layout: NumberUpLayout) -> None: ... - def set_orientation(self, orientation: PageOrientation) -> None: ... + def set_number_up_layout( + self, number_up_layout: _NumberUpLayoutValueType + ) -> None: ... + def set_orientation(self, orientation: _PageOrientationValueType) -> None: ... def set_output_bin(self, output_bin: str) -> None: ... def set_page_ranges(self, page_ranges: Sequence[PageRange]) -> None: ... - def set_page_set(self, page_set: PageSet) -> None: ... - def set_paper_height(self, height: float, unit: Unit) -> None: ... + def set_page_set(self, page_set: _PageSetValueType) -> None: ... + def set_paper_height(self, height: float, unit: _UnitValueType) -> None: ... def set_paper_size(self, paper_size: PaperSize) -> None: ... - def set_paper_width(self, width: float, unit: Unit) -> None: ... - def set_print_pages(self, pages: PrintPages) -> None: ... + def set_paper_width(self, width: float, unit: _UnitValueType) -> None: ... + def set_print_pages(self, pages: _PrintPagesValueType) -> None: ... def set_printer(self, printer: str) -> None: ... def set_printer_lpi(self, lpi: float) -> None: ... - def set_quality(self, quality: PrintQuality) -> None: ... + def set_quality(self, quality: _PrintQualityValueType) -> None: ... def set_resolution(self, resolution: int) -> None: ... def set_resolution_xy(self, resolution_x: int, resolution_y: int) -> None: ... def set_reverse(self, reverse: bool) -> None: ... @@ -21334,13 +22070,22 @@ class PrintUnixDialog(Dialog): current_page: int embed_page_setup: bool has_selection: bool - manual_capabilities: PrintCapabilities + @property + def manual_capabilities(self) -> PrintCapabilities: ... + @manual_capabilities.setter + def manual_capabilities(self, value: _PrintCapabilitiesValueType) -> None: ... page_setup: PageSetup - print_settings: PrintSettings | None + @property + def print_settings(self) -> PrintSettings: ... + @print_settings.setter + def print_settings(self, value: PrintSettings | None) -> None: ... @property def selected_printer(self) -> Printer | None: ... support_selection: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -21350,11 +22095,11 @@ class PrintUnixDialog(Dialog): current_page: int = ..., embed_page_setup: bool = ..., has_selection: bool = ..., - manual_capabilities: PrintCapabilities = ..., + manual_capabilities: _PrintCapabilitiesValueType = ..., page_setup: PageSetup = ..., print_settings: PrintSettings | None = ..., support_selection: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., use_header_bar: int = ..., application: Application | None = ..., child: Widget | None = ..., @@ -21368,7 +22113,7 @@ class PrintUnixDialog(Dialog): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -21383,11 +22128,11 @@ class PrintUnixDialog(Dialog): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -21400,12 +22145,12 @@ class PrintUnixDialog(Dialog): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -21428,7 +22173,9 @@ class PrintUnixDialog(Dialog): def set_current_page(self, current_page: int) -> None: ... def set_embed_page_setup(self, embed: bool) -> None: ... def set_has_selection(self, has_selection: bool) -> None: ... - def set_manual_capabilities(self, capabilities: PrintCapabilities) -> None: ... + def set_manual_capabilities( + self, capabilities: _PrintCapabilitiesValueType + ) -> None: ... def set_page_setup(self, page_setup: PageSetup) -> None: ... def set_settings(self, settings: PrintSettings | None = None) -> None: ... def set_support_selection(self, support_selection: bool) -> None: ... @@ -21494,7 +22241,7 @@ class Printer(GObject.Object): accepts_pdf: bool = ..., accepts_ps: bool = ..., is_virtual: bool = ..., - name: str = ..., + name: str | None = ..., ) -> None: ... def accepts_pdf(self) -> bool: ... def accepts_ps(self) -> bool: ... @@ -21599,36 +22346,45 @@ class ProgressBar(Widget, AccessibleRange, Orientable): """ @type_check_only class Props(Widget.Props): - ellipsize: Pango.EllipsizeMode + @property + def ellipsize(self) -> Pango.EllipsizeMode: ... + @ellipsize.setter + def ellipsize(self, value: Pango._EllipsizeModeValueType) -> None: ... fraction: float inverted: bool pulse_step: float show_text: bool text: str | None - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - ellipsize: Pango.EllipsizeMode = ..., + ellipsize: Pango._EllipsizeModeValueType = ..., fraction: float = ..., inverted: bool = ..., pulse_step: float = ..., show_text: bool = ..., text: str | None = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -21641,12 +22397,12 @@ class ProgressBar(Widget, AccessibleRange, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -21661,7 +22417,7 @@ class ProgressBar(Widget, AccessibleRange, Orientable): @classmethod def new(cls) -> ProgressBar: ... def pulse(self) -> None: ... - def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ... + def set_ellipsize(self, mode: Pango._EllipsizeModeValueType) -> None: ... def set_fraction(self, fraction: float) -> None: ... def set_inverted(self, inverted: bool) -> None: ... def set_pulse_step(self, fraction: float) -> None: ... @@ -21778,8 +22534,14 @@ class Range(Widget, AccessibleRange, Orientable): restrict_to_fill_level: bool round_digits: int show_fill_level: bool - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -21794,16 +22556,16 @@ class Range(Widget, AccessibleRange, Orientable): restrict_to_fill_level: bool = ..., round_digits: int = ..., show_fill_level: bool = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -21816,21 +22578,23 @@ class Range(Widget, AccessibleRange, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... def do_adjust_bounds(self, new_value: float) -> None: ... - def do_change_value(self, scroll: ScrollType, new_value: float) -> bool: ... + def do_change_value( + self, scroll: _ScrollTypeValueType, new_value: float + ) -> bool: ... def do_get_range_border(self, border_: Border) -> None: ... - def do_move_slider(self, scroll: ScrollType) -> None: ... + def do_move_slider(self, scroll: _ScrollTypeValueType) -> None: ... def do_value_changed(self) -> None: ... def get_adjustment(self) -> Adjustment: ... def get_fill_level(self) -> float: ... @@ -21870,11 +22634,11 @@ class RangeClass(_gi.Struct): @property def adjust_bounds(self) -> Callable[[Range, float], None]: ... @property - def move_slider(self) -> Callable[[Range, ScrollType], None]: ... + def move_slider(self) -> Callable[[Range, _ScrollTypeValueType], None]: ... @property def get_range_border(self) -> Callable[[Range, Border], None]: ... @property - def change_value(self) -> Callable[[Range, ScrollType, float], bool]: ... + def change_value(self) -> Callable[[Range, _ScrollTypeValueType, float], bool]: ... @property def padding(self) -> list[int]: ... @@ -21947,7 +22711,7 @@ class RecentManager(GObject.Object): @type_check_only class Props(GObject.Object.Props): @property - def filename(self) -> str: ... + def filename(self) -> str | None: ... @property def size(self) -> int: ... @@ -21957,7 +22721,7 @@ class RecentManager(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def priv(self) -> RecentManagerPrivate: ... - def __init__(self, *, filename: str = ...) -> None: ... + def __init__(self, *, filename: str | None = ...) -> None: ... def add_full(self, uri: str, recent_data: RecentData) -> bool: ... def add_item(self, uri: str) -> bool: ... def do_changed(self) -> None: ... @@ -22098,8 +22862,14 @@ class Revealer(Widget): def child_revealed(self) -> bool: ... reveal_child: bool transition_duration: int - transition_type: RevealerTransitionType - accessible_role: AccessibleRole + @property + def transition_type(self) -> RevealerTransitionType: ... + @transition_type.setter + def transition_type(self, value: _RevealerTransitionTypeValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -22109,16 +22879,16 @@ class Revealer(Widget): child: Widget | None = ..., reveal_child: bool = ..., transition_duration: int = ..., - transition_type: RevealerTransitionType = ..., - accessible_role: AccessibleRole = ..., + transition_type: _RevealerTransitionTypeValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -22131,12 +22901,12 @@ class Revealer(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -22152,7 +22922,9 @@ class Revealer(Widget): def set_child(self, child: Widget | None = None) -> None: ... def set_reveal_child(self, reveal_child: bool) -> None: ... def set_transition_duration(self, duration: int) -> None: ... - def set_transition_type(self, transition: RevealerTransitionType) -> None: ... + def set_transition_type( + self, transition: _RevealerTransitionTypeValueType + ) -> None: ... class Root(GObject.GInterface, Protocol): """ @@ -22259,9 +23031,18 @@ class Scale(Range): digits: int draw_value: bool has_origin: bool - value_pos: PositionType - accessible_role: AccessibleRole - orientation: Orientation + @property + def value_pos(self) -> PositionType: ... + @value_pos.setter + def value_pos(self, value: _PositionTypeValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -22273,9 +23054,9 @@ class Scale(Range): digits: int = ..., draw_value: bool = ..., has_origin: bool = ..., - value_pos: PositionType = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + value_pos: _PositionTypeValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., adjustment: Adjustment = ..., fill_level: float = ..., inverted: bool = ..., @@ -22285,11 +23066,11 @@ class Scale(Range): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -22302,19 +23083,19 @@ class Scale(Range): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... def add_mark( - self, value: float, position: PositionType, markup: str | None = None + self, value: float, position: _PositionTypeValueType, markup: str | None = None ) -> None: ... def clear_marks(self) -> None: ... def do_get_layout_offsets(self) -> tuple[int, int]: ... @@ -22326,11 +23107,11 @@ class Scale(Range): def get_value_pos(self) -> PositionType: ... @classmethod def new( - cls, orientation: Orientation, adjustment: Adjustment | None = None + cls, orientation: _OrientationValueType, adjustment: Adjustment | None = None ) -> Scale: ... @classmethod def new_with_range( - cls, orientation: Orientation, min: float, max: float, step: float + cls, orientation: _OrientationValueType, min: float, max: float, step: float ) -> Scale: ... def set_digits(self, digits: int) -> None: ... def set_draw_value(self, draw_value: bool) -> None: ... @@ -22340,7 +23121,7 @@ class Scale(Range): *user_data: Unpack[_DataTs], ) -> None: ... def set_has_origin(self, has_origin: bool) -> None: ... - def set_value_pos(self, pos: PositionType) -> None: ... + def set_value_pos(self, pos: _PositionTypeValueType) -> None: ... class ScaleButton(Widget, AccessibleRange, Orientable): """ @@ -22426,10 +23207,19 @@ class ScaleButton(Widget, AccessibleRange, Orientable): def active(self) -> bool: ... adjustment: Adjustment has_frame: bool - icons: list[str] + @property + def icons(self) -> list[str]: ... + @icons.setter + def icons(self, value: Sequence[str]) -> None: ... value: float - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -22442,16 +23232,16 @@ class ScaleButton(Widget, AccessibleRange, Orientable): has_frame: bool = ..., icons: Sequence[str] = ..., value: float = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -22464,12 +23254,12 @@ class ScaleButton(Widget, AccessibleRange, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -22553,9 +23343,9 @@ class Scrollable(GObject.GInterface, Protocol): def get_vadjustment(self) -> Adjustment | None: ... def get_vscroll_policy(self) -> ScrollablePolicy: ... def set_hadjustment(self, hadjustment: Adjustment | None = None) -> None: ... - def set_hscroll_policy(self, policy: ScrollablePolicy) -> None: ... + def set_hscroll_policy(self, policy: _ScrollablePolicyValueType) -> None: ... def set_vadjustment(self, vadjustment: Adjustment | None = None) -> None: ... - def set_vscroll_policy(self, policy: ScrollablePolicy) -> None: ... + def set_vscroll_policy(self, policy: _ScrollablePolicyValueType) -> None: ... class ScrollableInterface(_gi.Struct): """ @@ -22641,9 +23431,18 @@ class Scrollbar(Widget, AccessibleRange, Orientable): """ @type_check_only class Props(Widget.Props): - adjustment: Adjustment | None - accessible_role: AccessibleRole - orientation: Orientation + @property + def adjustment(self) -> Adjustment: ... + @adjustment.setter + def adjustment(self, value: Adjustment | None) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -22651,16 +23450,16 @@ class Scrollbar(Widget, AccessibleRange, Orientable): self, *, adjustment: Adjustment | None = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -22673,12 +23472,12 @@ class Scrollbar(Widget, AccessibleRange, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -22687,7 +23486,7 @@ class Scrollbar(Widget, AccessibleRange, Orientable): def get_adjustment(self) -> Adjustment: ... @classmethod def new( - cls, orientation: Orientation, adjustment: Adjustment | None = None + cls, orientation: _OrientationValueType, adjustment: Adjustment | None = None ) -> Scrollbar: ... def set_adjustment(self, adjustment: Adjustment | None = None) -> None: ... @@ -22783,9 +23582,15 @@ class ScrolledWindow(Widget): @type_check_only class Props(Widget.Props): child: Widget | None - hadjustment: Adjustment | None + @property + def hadjustment(self) -> Adjustment: ... + @hadjustment.setter + def hadjustment(self, value: Adjustment | None) -> None: ... has_frame: bool - hscrollbar_policy: PolicyType + @property + def hscrollbar_policy(self) -> PolicyType: ... + @hscrollbar_policy.setter + def hscrollbar_policy(self, value: _PolicyTypeValueType) -> None: ... kinetic_scrolling: bool max_content_height: int max_content_width: int @@ -22794,10 +23599,22 @@ class ScrolledWindow(Widget): overlay_scrolling: bool propagate_natural_height: bool propagate_natural_width: bool - vadjustment: Adjustment | None - vscrollbar_policy: PolicyType - window_placement: CornerType - accessible_role: AccessibleRole + @property + def vadjustment(self) -> Adjustment: ... + @vadjustment.setter + def vadjustment(self, value: Adjustment | None) -> None: ... + @property + def vscrollbar_policy(self) -> PolicyType: ... + @vscrollbar_policy.setter + def vscrollbar_policy(self, value: _PolicyTypeValueType) -> None: ... + @property + def window_placement(self) -> CornerType: ... + @window_placement.setter + def window_placement(self, value: _CornerTypeValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -22807,7 +23624,7 @@ class ScrolledWindow(Widget): child: Widget | None = ..., hadjustment: Adjustment | None = ..., has_frame: bool = ..., - hscrollbar_policy: PolicyType = ..., + hscrollbar_policy: _PolicyTypeValueType = ..., kinetic_scrolling: bool = ..., max_content_height: int = ..., max_content_width: int = ..., @@ -22817,17 +23634,17 @@ class ScrolledWindow(Widget): propagate_natural_height: bool = ..., propagate_natural_width: bool = ..., vadjustment: Adjustment | None = ..., - vscrollbar_policy: PolicyType = ..., - window_placement: CornerType = ..., - accessible_role: AccessibleRole = ..., + vscrollbar_policy: _PolicyTypeValueType = ..., + window_placement: _CornerTypeValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -22840,12 +23657,12 @@ class ScrolledWindow(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -22878,9 +23695,11 @@ class ScrolledWindow(Widget): def set_min_content_height(self, height: int) -> None: ... def set_min_content_width(self, width: int) -> None: ... def set_overlay_scrolling(self, overlay_scrolling: bool) -> None: ... - def set_placement(self, window_placement: CornerType) -> None: ... + def set_placement(self, window_placement: _CornerTypeValueType) -> None: ... def set_policy( - self, hscrollbar_policy: PolicyType, vscrollbar_policy: PolicyType + self, + hscrollbar_policy: _PolicyTypeValueType, + vscrollbar_policy: _PolicyTypeValueType, ) -> None: ... def set_propagate_natural_height(self, propagate: bool) -> None: ... def set_propagate_natural_width(self, propagate: bool) -> None: ... @@ -22965,7 +23784,10 @@ class SearchBar(Widget): key_capture_widget: Widget | None search_mode_enabled: bool show_close_button: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -22976,15 +23798,15 @@ class SearchBar(Widget): key_capture_widget: Widget | None = ..., search_mode_enabled: bool = ..., show_close_button: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -22997,12 +23819,12 @@ class SearchBar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -23109,11 +23931,20 @@ class SearchEntry(Widget, Editable): @type_check_only class Props(Widget.Props): activates_default: bool - input_hints: InputHints - input_purpose: InputPurpose + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... placeholder_text: str | None search_delay: int - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def cursor_position(self) -> int: ... editable: bool @@ -23131,11 +23962,11 @@ class SearchEntry(Widget, Editable): self, *, activates_default: bool = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., placeholder_text: str | None = ..., search_delay: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editable: bool = ..., enable_undo: bool = ..., max_width_chars: int = ..., @@ -23145,11 +23976,11 @@ class SearchEntry(Widget, Editable): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -23162,12 +23993,12 @@ class SearchEntry(Widget, Editable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -23180,8 +24011,8 @@ class SearchEntry(Widget, Editable): def get_search_delay(self) -> int: ... @classmethod def new(cls) -> SearchEntry: ... - def set_input_hints(self, hints: InputHints) -> None: ... - def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_input_hints(self, hints: _InputHintsValueType) -> None: ... + def set_input_purpose(self, purpose: _InputPurposeValueType) -> None: ... def set_key_capture_widget(self, widget: Widget | None = None) -> None: ... def set_placeholder_text(self, text: str | None = None) -> None: ... def set_search_delay(self, delay: int) -> None: ... @@ -23378,24 +24209,30 @@ class Separator(Widget, Orientable): """ @type_check_only class Props(Widget.Props): - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -23408,19 +24245,19 @@ class Separator(Widget, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., ) -> None: ... @classmethod - def new(cls, orientation: Orientation) -> Separator: ... + def new(cls, orientation: _OrientationValueType) -> Separator: ... class Settings(GObject.Object, StyleProvider): """ @@ -23503,9 +24340,9 @@ class Settings(GObject.Object, StyleProvider): gtk_cursor_blink: bool gtk_cursor_blink_time: int gtk_cursor_blink_timeout: int - gtk_cursor_theme_name: str + gtk_cursor_theme_name: str | None gtk_cursor_theme_size: int - gtk_decoration_layout: str + gtk_decoration_layout: str | None gtk_dialogs_use_header: bool gtk_dnd_drag_threshold: int gtk_double_click_distance: int @@ -23518,38 +24355,51 @@ class Settings(GObject.Object, StyleProvider): gtk_entry_password_hint_timeout: int gtk_entry_select_on_focus: bool gtk_error_bell: bool - gtk_font_name: str - gtk_font_rendering: FontRendering + gtk_font_name: str | None + @property + def gtk_font_rendering(self) -> FontRendering: ... + @gtk_font_rendering.setter + def gtk_font_rendering(self, value: _FontRenderingValueType) -> None: ... gtk_fontconfig_timestamp: int gtk_hint_font_metrics: bool - gtk_icon_theme_name: str - gtk_im_module: str - gtk_interface_color_scheme: InterfaceColorScheme - gtk_interface_contrast: InterfaceContrast + gtk_icon_theme_name: str | None + gtk_im_module: str | None + @property + def gtk_interface_color_scheme(self) -> InterfaceColorScheme: ... + @gtk_interface_color_scheme.setter + def gtk_interface_color_scheme( + self, value: _InterfaceColorSchemeValueType + ) -> None: ... + @property + def gtk_interface_contrast(self) -> InterfaceContrast: ... + @gtk_interface_contrast.setter + def gtk_interface_contrast( + self, value: _InterfaceContrastValueType + ) -> None: ... gtk_keynav_use_caret: bool gtk_label_select_on_focus: bool gtk_long_press_time: int gtk_overlay_scrolling: bool gtk_primary_button_warps_slider: bool - gtk_print_backends: str - gtk_print_preview_command: str + gtk_print_backends: str | None + gtk_print_preview_command: str | None gtk_recent_files_enabled: bool gtk_recent_files_max_age: int gtk_shell_shows_app_menu: bool gtk_shell_shows_desktop: bool gtk_shell_shows_menubar: bool gtk_show_status_shapes: bool - gtk_sound_theme_name: str + gtk_sound_theme_name: str | None gtk_split_cursor: bool - gtk_theme_name: str - gtk_titlebar_double_click: str - gtk_titlebar_middle_click: str - gtk_titlebar_right_click: str + gtk_theme_name: str | None + gtk_titlebar_double_click: str | None + gtk_titlebar_middle_click: str | None + gtk_titlebar_right_click: str | None gtk_xft_antialias: int gtk_xft_dpi: int gtk_xft_hinting: int - gtk_xft_hintstyle: str - gtk_xft_rgba: str + gtk_xft_hintstyle: str | None + gtk_xft_rgba: str | None @property def props(self) -> Props: ... @@ -23563,9 +24413,9 @@ class Settings(GObject.Object, StyleProvider): gtk_cursor_blink: bool = ..., gtk_cursor_blink_time: int = ..., gtk_cursor_blink_timeout: int = ..., - gtk_cursor_theme_name: str = ..., + gtk_cursor_theme_name: str | None = ..., gtk_cursor_theme_size: int = ..., - gtk_decoration_layout: str = ..., + gtk_decoration_layout: str | None = ..., gtk_dialogs_use_header: bool = ..., gtk_dnd_drag_threshold: int = ..., gtk_double_click_distance: int = ..., @@ -23578,38 +24428,38 @@ class Settings(GObject.Object, StyleProvider): gtk_entry_password_hint_timeout: int = ..., gtk_entry_select_on_focus: bool = ..., gtk_error_bell: bool = ..., - gtk_font_name: str = ..., - gtk_font_rendering: FontRendering = ..., + gtk_font_name: str | None = ..., + gtk_font_rendering: _FontRenderingValueType = ..., gtk_fontconfig_timestamp: int = ..., gtk_hint_font_metrics: bool = ..., - gtk_icon_theme_name: str = ..., - gtk_im_module: str = ..., - gtk_interface_color_scheme: InterfaceColorScheme = ..., - gtk_interface_contrast: InterfaceContrast = ..., + gtk_icon_theme_name: str | None = ..., + gtk_im_module: str | None = ..., + gtk_interface_color_scheme: _InterfaceColorSchemeValueType = ..., + gtk_interface_contrast: _InterfaceContrastValueType = ..., gtk_keynav_use_caret: bool = ..., gtk_label_select_on_focus: bool = ..., gtk_long_press_time: int = ..., gtk_overlay_scrolling: bool = ..., gtk_primary_button_warps_slider: bool = ..., - gtk_print_backends: str = ..., - gtk_print_preview_command: str = ..., + gtk_print_backends: str | None = ..., + gtk_print_preview_command: str | None = ..., gtk_recent_files_enabled: bool = ..., gtk_recent_files_max_age: int = ..., gtk_shell_shows_app_menu: bool = ..., gtk_shell_shows_desktop: bool = ..., gtk_shell_shows_menubar: bool = ..., gtk_show_status_shapes: bool = ..., - gtk_sound_theme_name: str = ..., + gtk_sound_theme_name: str | None = ..., gtk_split_cursor: bool = ..., - gtk_theme_name: str = ..., - gtk_titlebar_double_click: str = ..., - gtk_titlebar_middle_click: str = ..., - gtk_titlebar_right_click: str = ..., + gtk_theme_name: str | None = ..., + gtk_titlebar_double_click: str | None = ..., + gtk_titlebar_middle_click: str | None = ..., + gtk_titlebar_right_click: str | None = ..., gtk_xft_antialias: int = ..., gtk_xft_dpi: int = ..., gtk_xft_hinting: int = ..., - gtk_xft_hintstyle: str = ..., - gtk_xft_rgba: str = ..., + gtk_xft_hintstyle: str | None = ..., + gtk_xft_rgba: str | None = ..., ) -> None: ... @staticmethod def get_default() -> Settings | None: ... @@ -23680,7 +24530,7 @@ class ShortcutAction(GObject.Object): """ def activate( self, - flags: ShortcutActionFlags, + flags: _ShortcutActionFlagsValueType, widget: Widget, args: GLib.Variant | None = None, ) -> bool: ... @@ -23737,22 +24587,28 @@ class ShortcutController(EventController, Gio.ListModel, Buildable): class Props(EventController.Props): @property def item_type(self) -> type[Any]: ... - mnemonic_modifiers: _Gdk4.ModifierType + @property + def mnemonic_modifiers(self) -> _Gdk4.ModifierType: ... + @mnemonic_modifiers.setter + def mnemonic_modifiers(self, value: _Gdk4._ModifierTypeValueType) -> None: ... @property def n_items(self) -> int: ... - scope: ShortcutScope + @property + def scope(self) -> ShortcutScope: ... + @scope.setter + def scope(self, value: _ShortcutScopeValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - mnemonic_modifiers: _Gdk4.ModifierType = ..., - model: Gio.ListModel = ..., - scope: ShortcutScope = ..., + mnemonic_modifiers: _Gdk4._ModifierTypeValueType = ..., + model: Gio.ListModel | None = ..., + scope: _ShortcutScopeValueType = ..., name: str | None = ..., - propagation_limit: PropagationLimit = ..., - propagation_phase: PropagationPhase = ..., + propagation_limit: _PropagationLimitValueType = ..., + propagation_phase: _PropagationPhaseValueType = ..., ) -> None: ... def add_shortcut(self, shortcut: Shortcut) -> None: ... def get_mnemonics_modifiers(self) -> _Gdk4.ModifierType: ... @@ -23762,8 +24618,10 @@ class ShortcutController(EventController, Gio.ListModel, Buildable): @classmethod def new_for_model(cls, model: Gio.ListModel) -> ShortcutController: ... def remove_shortcut(self, shortcut: Shortcut) -> None: ... - def set_mnemonics_modifiers(self, modifiers: _Gdk4.ModifierType) -> None: ... - def set_scope(self, scope: ShortcutScope) -> None: ... + def set_mnemonics_modifiers( + self, modifiers: _Gdk4._ModifierTypeValueType + ) -> None: ... + def set_scope(self, scope: _ShortcutScopeValueType) -> None: ... class ShortcutControllerClass(_gi.Struct): ... @@ -23839,9 +24697,18 @@ class ShortcutLabel(Widget): """ @type_check_only class Props(Widget.Props): - accelerator: str | None - disabled_text: str | None - accessible_role: AccessibleRole + @property + def accelerator(self) -> str | None: ... + @accelerator.setter + def accelerator(self, value: str) -> None: ... + @property + def disabled_text(self) -> str | None: ... + @disabled_text.setter + def disabled_text(self, value: str) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -23850,15 +24717,15 @@ class ShortcutLabel(Widget): *, accelerator: str = ..., disabled_text: str = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -23871,12 +24738,12 @@ class ShortcutLabel(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24025,38 +24892,50 @@ class ShortcutsGroup(Box): """ @type_check_only class Props(Box.Props): - accel_size_group: SizeGroup + @property + def accel_size_group(self) -> Never: ... + @accel_size_group.setter + def accel_size_group(self, value: SizeGroup | None) -> None: ... @property def height(self) -> int: ... - title: str - title_size_group: SizeGroup - view: str - accessible_role: AccessibleRole - orientation: Orientation + title: str | None + @property + def title_size_group(self) -> Never: ... + @title_size_group.setter + def title_size_group(self, value: SizeGroup | None) -> None: ... + view: str | None + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accel_size_group: SizeGroup = ..., - title: str = ..., - title_size_group: SizeGroup = ..., - view: str = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accel_size_group: SizeGroup | None = ..., + title: str | None = ..., + title_size_group: SizeGroup | None = ..., + view: str | None = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., baseline_child: int = ..., - baseline_position: BaselinePosition = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -24069,12 +24948,12 @@ class ShortcutsGroup(Box): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24167,11 +25046,17 @@ class ShortcutsSection(Box): @type_check_only class Props(Box.Props): max_height: int - section_name: str - title: str - view_name: str - accessible_role: AccessibleRole - orientation: Orientation + section_name: str | None + title: str | None + view_name: str | None + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -24179,23 +25064,23 @@ class ShortcutsSection(Box): self, *, max_height: int = ..., - section_name: str = ..., - title: str = ..., - view_name: str = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + section_name: str | None = ..., + title: str | None = ..., + view_name: str | None = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., baseline_child: int = ..., - baseline_position: BaselinePosition = ..., + baseline_position: _BaselinePositionValueType = ..., homogeneous: bool = ..., spacing: int = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -24208,12 +25093,12 @@ class ShortcutsSection(Box): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24303,44 +25188,59 @@ class ShortcutsShortcut(Widget): """ @type_check_only class Props(Widget.Props): - accel_size_group: SizeGroup - accelerator: str - action_name: str - direction: TextDirection - icon: Gio.Icon + @property + def accel_size_group(self) -> Never: ... + @accel_size_group.setter + def accel_size_group(self, value: SizeGroup | None) -> None: ... + accelerator: str | None + action_name: str | None + @property + def direction(self) -> TextDirection: ... + @direction.setter + def direction(self, value: _TextDirectionValueType) -> None: ... + icon: Gio.Icon | None icon_set: bool - shortcut_type: ShortcutType - subtitle: str + @property + def shortcut_type(self) -> ShortcutType: ... + @shortcut_type.setter + def shortcut_type(self, value: _ShortcutTypeValueType) -> None: ... + subtitle: str | None subtitle_set: bool - title: str - title_size_group: SizeGroup - accessible_role: AccessibleRole + title: str | None + @property + def title_size_group(self) -> Never: ... + @title_size_group.setter + def title_size_group(self, value: SizeGroup | None) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accel_size_group: SizeGroup = ..., - accelerator: str = ..., - action_name: str = ..., - direction: TextDirection = ..., - icon: Gio.Icon = ..., + accel_size_group: SizeGroup | None = ..., + accelerator: str | None = ..., + action_name: str | None = ..., + direction: _TextDirectionValueType = ..., + icon: Gio.Icon | None = ..., icon_set: bool = ..., - shortcut_type: ShortcutType = ..., - subtitle: str = ..., + shortcut_type: _ShortcutTypeValueType = ..., + subtitle: str | None = ..., subtitle_set: bool = ..., - title: str = ..., - title_size_group: SizeGroup = ..., - accessible_role: AccessibleRole = ..., + title: str | None = ..., + title_size_group: SizeGroup | None = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -24353,12 +25253,12 @@ class ShortcutsShortcut(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24477,18 +25377,21 @@ class ShortcutsWindow(Window): """ @type_check_only class Props(Window.Props): - section_name: str - view_name: str - accessible_role: AccessibleRole + section_name: str | None + view_name: str | None + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - section_name: str = ..., - view_name: str = ..., - accessible_role: AccessibleRole = ..., + section_name: str | None = ..., + view_name: str | None = ..., + accessible_role: _AccessibleRoleValueType = ..., application: Application | None = ..., child: Widget | None = ..., decorated: bool = ..., @@ -24501,7 +25404,7 @@ class ShortcutsWindow(Window): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -24516,11 +25419,11 @@ class ShortcutsWindow(Window): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -24533,12 +25436,12 @@ class ShortcutsWindow(Window): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -24570,7 +25473,7 @@ class SignalAction(ShortcutAction): @property def props(self) -> Props: ... - def __init__(self, *, signal_name: str = ...) -> None: ... + def __init__(self, *, signal_name: str | None = ...) -> None: ... def get_signal_name(self) -> str: ... @classmethod def new(cls, signal_name: str) -> SignalAction: ... @@ -24699,20 +25602,23 @@ class SizeGroup(GObject.Object, Buildable): """ @type_check_only class Props(GObject.Object.Props): - mode: SizeGroupMode + @property + def mode(self) -> SizeGroupMode: ... + @mode.setter + def mode(self, value: _SizeGroupModeValueType) -> None: ... @property def props(self) -> Props: ... @property def parent_instance(self) -> GObject.Object: ... - def __init__(self, *, mode: SizeGroupMode = ...) -> None: ... + def __init__(self, *, mode: _SizeGroupModeValueType = ...) -> None: ... def add_widget(self, widget: Widget) -> None: ... def get_mode(self) -> SizeGroupMode: ... def get_widgets(self) -> list[Widget]: ... @classmethod - def new(cls, mode: SizeGroupMode) -> SizeGroup: ... + def new(cls, mode: _SizeGroupModeValueType) -> SizeGroup: ... def remove_widget(self, widget: Widget) -> None: ... - def set_mode(self, mode: SizeGroupMode) -> None: ... + def set_mode(self, mode: _SizeGroupModeValueType) -> None: ... class SliceListModel(GObject.Object, Gio.ListModel, SectionModel): """ @@ -24808,7 +25714,7 @@ class Snapshot(_Gdk4.Snapshot): stops: Sequence[Gsk.ColorStop], ) -> None: ... def append_fill( - self, path: Gsk.Path, fill_rule: Gsk.FillRule, color: _Gdk4.RGBA + self, path: Gsk.Path, fill_rule: Gsk._FillRuleValueType, color: _Gdk4.RGBA ) -> None: ... def append_inset_shadow( self, @@ -24865,7 +25771,10 @@ class Snapshot(_Gdk4.Snapshot): stops: Sequence[Gsk.ColorStop], ) -> None: ... def append_scaled_texture( - self, texture: _Gdk4.Texture, filter: Gsk.ScalingFilter, bounds: Graphene.Rect + self, + texture: _Gdk4.Texture, + filter: Gsk._ScalingFilterValueType, + bounds: Graphene.Rect, ) -> None: ... def append_stroke( self, path: Gsk.Path, stroke: Gsk.Stroke, color: _Gdk4.RGBA @@ -24876,7 +25785,7 @@ class Snapshot(_Gdk4.Snapshot): def new(cls) -> Snapshot: ... def perspective(self, depth: float) -> None: ... def pop(self) -> None: ... - def push_blend(self, blend_mode: Gsk.BlendMode) -> None: ... + def push_blend(self, blend_mode: Gsk._BlendModeValueType) -> None: ... def push_blur(self, radius: float) -> None: ... def push_clip(self, bounds: Graphene.Rect) -> None: ... def push_color_matrix( @@ -24890,11 +25799,11 @@ class Snapshot(_Gdk4.Snapshot): alpha: Gsk.ComponentTransfer, ) -> None: ... def push_cross_fade(self, progress: float) -> None: ... - def push_fill(self, path: Gsk.Path, fill_rule: Gsk.FillRule) -> None: ... + def push_fill(self, path: Gsk.Path, fill_rule: Gsk._FillRuleValueType) -> None: ... def push_gl_shader( self, shader: Gsk.GLShader, bounds: Graphene.Rect, take_args: GLib.Bytes ) -> None: ... - def push_mask(self, mask_mode: Gsk.MaskMode) -> None: ... + def push_mask(self, mask_mode: Gsk._MaskModeValueType) -> None: ... def push_opacity(self, opacity: float) -> None: ... def push_repeat( self, bounds: Graphene.Rect, child_bounds: Graphene.Rect | None = None @@ -24918,7 +25827,7 @@ class Snapshot(_Gdk4.Snapshot): y: float, layout: Pango.Layout, index: int, - direction: Pango.Direction, + direction: Pango._DirectionValueType, ) -> None: ... def render_layout( self, context: StyleContext, x: float, y: float, layout: Pango.Layout @@ -25035,7 +25944,7 @@ class Sorter(GObject.Object): """ @property def parent_instance(self) -> GObject.Object: ... - def changed(self, change: SorterChange) -> None: ... + def changed(self, change: _SorterChangeValueType) -> None: ... def compare(self, item1: GObject.Object, item2: GObject.Object) -> Ordering: ... def do_compare( self, item1: GObject.Object | None, item2: GObject.Object | None @@ -25163,10 +26072,16 @@ class SpinButton(Widget, AccessibleRange, CellEditable, Editable, Orientable): digits: int numeric: bool snap_to_ticks: bool - update_policy: SpinButtonUpdatePolicy + @property + def update_policy(self) -> SpinButtonUpdatePolicy: ... + @update_policy.setter + def update_policy(self, value: _SpinButtonUpdatePolicyValueType) -> None: ... value: float wrap: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... editing_canceled: bool @property def cursor_position(self) -> int: ... @@ -25178,7 +26093,10 @@ class SpinButton(Widget, AccessibleRange, CellEditable, Editable, Orientable): text: str width_chars: int xalign: float - orientation: Orientation + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -25191,10 +26109,10 @@ class SpinButton(Widget, AccessibleRange, CellEditable, Editable, Orientable): digits: int = ..., numeric: bool = ..., snap_to_ticks: bool = ..., - update_policy: SpinButtonUpdatePolicy = ..., + update_policy: _SpinButtonUpdatePolicyValueType = ..., value: float = ..., wrap: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editing_canceled: bool = ..., editable: bool = ..., enable_undo: bool = ..., @@ -25202,15 +26120,15 @@ class SpinButton(Widget, AccessibleRange, CellEditable, Editable, Orientable): text: str = ..., width_chars: int = ..., xalign: float = ..., - orientation: Orientation = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -25223,12 +26141,12 @@ class SpinButton(Widget, AccessibleRange, CellEditable, Editable, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25263,10 +26181,10 @@ class SpinButton(Widget, AccessibleRange, CellEditable, Editable, Orientable): def set_numeric(self, numeric: bool) -> None: ... def set_range(self, min: float, max: float) -> None: ... def set_snap_to_ticks(self, snap_to_ticks: bool) -> None: ... - def set_update_policy(self, policy: SpinButtonUpdatePolicy) -> None: ... + def set_update_policy(self, policy: _SpinButtonUpdatePolicyValueType) -> None: ... def set_value(self, value: float) -> None: ... def set_wrap(self, wrap: bool) -> None: ... - def spin(self, direction: SpinType, increment: float) -> None: ... + def spin(self, direction: _SpinTypeValueType, increment: float) -> None: ... def update(self) -> None: ... class Spinner(Widget): @@ -25341,7 +26259,10 @@ class Spinner(Widget): @type_check_only class Props(Widget.Props): spinning: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -25349,15 +26270,15 @@ class Spinner(Widget): self, *, spinning: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -25370,12 +26291,12 @@ class Spinner(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25474,11 +26395,23 @@ class Stack(Widget): transition_duration: int @property def transition_running(self) -> bool: ... - transition_type: StackTransitionType + @property + def transition_type(self) -> StackTransitionType: ... + @transition_type.setter + def transition_type(self, value: _StackTransitionTypeValueType) -> None: ... vhomogeneous: bool - visible_child: Widget | None - visible_child_name: str | None - accessible_role: AccessibleRole + @property + def visible_child(self) -> Widget | None: ... + @visible_child.setter + def visible_child(self, value: Widget) -> None: ... + @property + def visible_child_name(self) -> str | None: ... + @visible_child_name.setter + def visible_child_name(self, value: str) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -25488,19 +26421,19 @@ class Stack(Widget): hhomogeneous: bool = ..., interpolate_size: bool = ..., transition_duration: int = ..., - transition_type: StackTransitionType = ..., + transition_type: _StackTransitionTypeValueType = ..., vhomogeneous: bool = ..., visible_child: Widget = ..., visible_child_name: str = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -25513,12 +26446,12 @@ class Stack(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25544,11 +26477,13 @@ class Stack(Widget): def set_hhomogeneous(self, hhomogeneous: bool) -> None: ... def set_interpolate_size(self, interpolate_size: bool) -> None: ... def set_transition_duration(self, duration: int) -> None: ... - def set_transition_type(self, transition: StackTransitionType) -> None: ... + def set_transition_type( + self, transition: _StackTransitionTypeValueType + ) -> None: ... def set_vhomogeneous(self, vhomogeneous: bool) -> None: ... def set_visible_child(self, child: Widget) -> None: ... def set_visible_child_full( - self, name: str, transition: StackTransitionType + self, name: str, transition: _StackTransitionTypeValueType ) -> None: ... def set_visible_child_name(self, name: str) -> None: ... @@ -25578,27 +26513,39 @@ class StackPage(GObject.Object, Accessible): class Props(GObject.Object.Props): @property def child(self) -> Widget: ... - icon_name: str | None - name: str | None + @property + def icon_name(self) -> str | None: ... + @icon_name.setter + def icon_name(self, value: str) -> None: ... + @property + def name(self) -> str | None: ... + @name.setter + def name(self, value: str) -> None: ... needs_attention: bool - title: str | None + @property + def title(self) -> str | None: ... + @title.setter + def title(self, value: str) -> None: ... use_underline: bool visible: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - child: Widget = ..., + child: Widget | None = ..., icon_name: str = ..., name: str = ..., needs_attention: bool = ..., title: str = ..., use_underline: bool = ..., visible: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., ) -> None: ... def get_child(self) -> Widget: ... def get_icon_name(self) -> str | None: ... @@ -25685,8 +26632,14 @@ class StackSidebar(Widget): """ @type_check_only class Props(Widget.Props): - stack: Stack | None - accessible_role: AccessibleRole + @property + def stack(self) -> Stack | None: ... + @stack.setter + def stack(self, value: Stack) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -25694,15 +26647,15 @@ class StackSidebar(Widget): self, *, stack: Stack = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -25715,12 +26668,12 @@ class StackSidebar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25803,8 +26756,14 @@ class StackSwitcher(Widget, Orientable): @type_check_only class Props(Widget.Props): stack: Stack | None - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -25812,16 +26771,16 @@ class StackSwitcher(Widget, Orientable): self, *, stack: Stack | None = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -25834,12 +26793,12 @@ class StackSwitcher(Widget, Orientable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25922,22 +26881,25 @@ class Statusbar(Widget): """ @type_check_only class Props(Widget.Props): - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... def __init__( self, *, - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -25950,12 +26912,12 @@ class Statusbar(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -25996,7 +26958,10 @@ class StringFilter(Filter): class Props(Filter.Props): expression: Expression | None ignore_case: bool - match_mode: StringFilterMatchMode + @property + def match_mode(self) -> StringFilterMatchMode: ... + @match_mode.setter + def match_mode(self, value: _StringFilterMatchModeValueType) -> None: ... search: str | None @property @@ -26006,7 +26971,7 @@ class StringFilter(Filter): *, expression: Expression | None = ..., ignore_case: bool = ..., - match_mode: StringFilterMatchMode = ..., + match_mode: _StringFilterMatchModeValueType = ..., search: str | None = ..., ) -> None: ... def get_expression(self) -> Expression | None: ... @@ -26017,7 +26982,7 @@ class StringFilter(Filter): def new(cls, expression: Expression | None = None) -> StringFilter: ... def set_expression(self, expression: Expression | None = None) -> None: ... def set_ignore_case(self, ignore_case: bool) -> None: ... - def set_match_mode(self, mode: StringFilterMatchMode) -> None: ... + def set_match_mode(self, mode: _StringFilterMatchModeValueType) -> None: ... def set_search(self, search: str | None = None) -> None: ... class StringFilterClass(_gi.Struct): @@ -26062,7 +27027,7 @@ class StringList(GObject.Object, Gio.ListModel, Buildable): @property def props(self) -> Props: ... - def __init__(self, *, strings: Sequence[str] = ...) -> None: ... + def __init__(self, *, strings: Sequence[str] | None = ...) -> None: ... def append(self, string: str) -> None: ... def find(self, string: str) -> int: ... def get_string(self, position: int) -> str | None: ... @@ -26148,7 +27113,10 @@ class StringSorter(Sorter): """ @type_check_only class Props(Sorter.Props): - collation: Collation + @property + def collation(self) -> Collation: ... + @collation.setter + def collation(self, value: _CollationValueType) -> None: ... expression: Expression | None ignore_case: bool @@ -26157,7 +27125,7 @@ class StringSorter(Sorter): def __init__( self, *, - collation: Collation = ..., + collation: _CollationValueType = ..., expression: Expression | None = ..., ignore_case: bool = ..., ) -> None: ... @@ -26166,7 +27134,7 @@ class StringSorter(Sorter): def get_ignore_case(self) -> bool: ... @classmethod def new(cls, expression: Expression | None = None) -> StringSorter: ... - def set_collation(self, collation: Collation) -> None: ... + def set_collation(self, collation: _CollationValueType) -> None: ... def set_expression(self, expression: Expression | None = None) -> None: ... def set_ignore_case(self, ignore_case: bool) -> None: ... @@ -26232,8 +27200,8 @@ class StyleContext(GObject.Object): def save(self) -> None: ... def set_display(self, display: _Gdk4.Display) -> None: ... def set_scale(self, scale: int) -> None: ... - def set_state(self, flags: StateFlags) -> None: ... - def to_string(self, flags: StyleContextPrintFlags) -> str: ... + def set_state(self, flags: _StateFlagsValueType) -> None: ... + def to_string(self, flags: _StyleContextPrintFlagsValueType) -> str: ... class StyleContextClass(_gi.Struct): """ @@ -26334,9 +27302,15 @@ class Switch(Widget, Actionable): class Props(Widget.Props): active: bool state: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -26345,17 +27319,17 @@ class Switch(Widget, Actionable): *, active: bool = ..., state: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -26368,12 +27342,12 @@ class Switch(Widget, Actionable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -26533,9 +27507,15 @@ class Text(Widget, AccessibleText, Editable): buffer: EntryBuffer enable_emoji_completion: bool extra_menu: Gio.MenuModel | None - im_module: str - input_hints: InputHints - input_purpose: InputPurpose + im_module: str | None + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... invisible_char: int invisible_char_set: bool max_length: int @@ -26547,7 +27527,10 @@ class Text(Widget, AccessibleText, Editable): tabs: Pango.TabArray | None truncate_multiline: bool visibility: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def cursor_position(self) -> int: ... editable: bool @@ -26571,9 +27554,9 @@ class Text(Widget, AccessibleText, Editable): buffer: EntryBuffer = ..., enable_emoji_completion: bool = ..., extra_menu: Gio.MenuModel | None = ..., - im_module: str = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., + im_module: str | None = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., invisible_char: int = ..., invisible_char_set: bool = ..., max_length: int = ..., @@ -26583,7 +27566,7 @@ class Text(Widget, AccessibleText, Editable): tabs: Pango.TabArray | None = ..., truncate_multiline: bool = ..., visibility: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., editable: bool = ..., enable_undo: bool = ..., max_width_chars: int = ..., @@ -26593,11 +27576,11 @@ class Text(Widget, AccessibleText, Editable): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -26610,12 +27593,12 @@ class Text(Widget, AccessibleText, Editable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -26650,8 +27633,8 @@ class Text(Widget, AccessibleText, Editable): def set_buffer(self, buffer: EntryBuffer) -> None: ... def set_enable_emoji_completion(self, enable_emoji_completion: bool) -> None: ... def set_extra_menu(self, model: Gio.MenuModel | None = None) -> None: ... - def set_input_hints(self, hints: InputHints) -> None: ... - def set_input_purpose(self, purpose: InputPurpose) -> None: ... + def set_input_hints(self, hints: _InputHintsValueType) -> None: ... + def set_input_purpose(self, purpose: _InputPurposeValueType) -> None: ... def set_invisible_char(self, ch: str) -> None: ... def set_max_length(self, length: int) -> None: ... def set_overwrite_mode(self, overwrite: bool) -> None: ... @@ -26724,13 +27707,18 @@ class TextBuffer(GObject.Object): @property def priv(self) -> TextBufferPrivate: ... def __init__( - self, *, enable_undo: bool = ..., tag_table: TextTagTable = ..., text: str = ... + self, + *, + enable_undo: bool = ..., + tag_table: TextTagTable | None = ..., + text: str = ..., ) -> None: ... def add_commit_notify( self, - flags: TextBufferNotifyFlags, + flags: _TextBufferNotifyFlagsValueType, commit_notify: Callable[ - [TextBuffer, TextBufferNotifyFlags, int, int, Unpack[_DataTs]], None + [TextBuffer, _TextBufferNotifyFlagsValueType, int, int, Unpack[_DataTs]], + None, ], *user_data: Unpack[_DataTs], ) -> int: ... @@ -27006,7 +27994,7 @@ class TextIter(GObject.GBoxed): def backward_line(self) -> bool: ... def backward_lines(self, count: int) -> bool: ... def backward_search( - self, str: str, flags: TextSearchFlags, limit: TextIter | None = None + self, str: str, flags: _TextSearchFlagsValueType, limit: TextIter | None = None ) -> tuple[TextIter, TextIter] | None: ... # CHECK Wrapped function def backward_sentence_start(self) -> bool: ... def backward_sentence_starts(self, count: int) -> bool: ... @@ -27041,7 +28029,7 @@ class TextIter(GObject.GBoxed): def forward_line(self) -> bool: ... def forward_lines(self, count: int) -> bool: ... def forward_search( - self, str: str, flags: TextSearchFlags, limit: TextIter | None = None + self, str: str, flags: _TextSearchFlagsValueType, limit: TextIter | None = None ) -> tuple[TextIter, TextIter] | None: ... # CHECK Wrapped function def forward_sentence_end(self) -> bool: ... def forward_sentence_ends(self, count: int) -> bool: ... @@ -27128,7 +28116,7 @@ class TextMark(GObject.Object): def parent_instance(self) -> GObject.Object: ... @property def segment(self) -> int: ... - def __init__(self, *, left_gravity: bool = ..., name: str = ...) -> None: ... + def __init__(self, *, left_gravity: bool = ..., name: str | None = ...) -> None: ... def get_buffer(self) -> TextBuffer | None: ... def get_deleted(self) -> bool: ... def get_left_gravity(self) -> bool: ... @@ -27261,24 +28249,33 @@ class TextTag(GObject.Object): accumulative_margin: bool allow_breaks: bool allow_breaks_set: bool - background: str + @property + def background(self) -> Never: ... + @background.setter + def background(self, value: str | None) -> None: ... background_full_height: bool background_full_height_set: bool - background_rgba: _Gdk4.RGBA + background_rgba: _Gdk4.RGBA | None background_set: bool - direction: TextDirection + @property + def direction(self) -> TextDirection: ... + @direction.setter + def direction(self, value: _TextDirectionValueType) -> None: ... editable: bool editable_set: bool fallback: bool fallback_set: bool - family: str + family: str | None family_set: bool - font: str - font_desc: Pango.FontDescription - font_features: str + font: str | None + font_desc: Pango.FontDescription | None + font_features: str | None font_features_set: bool - foreground: str - foreground_rgba: _Gdk4.RGBA + @property + def foreground(self) -> Never: ... + @foreground.setter + def foreground(self, value: str | None) -> None: ... + foreground_rgba: _Gdk4.RGBA | None foreground_set: bool indent: int indent_set: bool @@ -27286,9 +28283,12 @@ class TextTag(GObject.Object): insert_hyphens_set: bool invisible: bool invisible_set: bool - justification: Justification + @property + def justification(self) -> Justification: ... + @justification.setter + def justification(self, value: _JustificationValueType) -> None: ... justification_set: bool - language: str + language: str | None language_set: bool left_margin: int left_margin_set: bool @@ -27297,13 +28297,19 @@ class TextTag(GObject.Object): line_height: float line_height_set: bool @property - def name(self) -> str: ... - overline: Pango.Overline - overline_rgba: _Gdk4.RGBA + def name(self) -> str | None: ... + @property + def overline(self) -> Pango.Overline: ... + @overline.setter + def overline(self, value: Pango._OverlineValueType) -> None: ... + overline_rgba: _Gdk4.RGBA | None overline_rgba_set: bool overline_set: bool - paragraph_background: str - paragraph_background_rgba: _Gdk4.RGBA + @property + def paragraph_background(self) -> Never: ... + @paragraph_background.setter + def paragraph_background(self, value: str | None) -> None: ... + paragraph_background_rgba: _Gdk4.RGBA | None paragraph_background_set: bool pixels_above_lines: int pixels_above_lines_set: bool @@ -27319,34 +28325,55 @@ class TextTag(GObject.Object): scale_set: bool sentence: bool sentence_set: bool - show_spaces: Pango.ShowFlags + @property + def show_spaces(self) -> Pango.ShowFlags: ... + @show_spaces.setter + def show_spaces(self, value: Pango._ShowFlagsValueType) -> None: ... show_spaces_set: bool size: int size_points: float size_set: bool - stretch: Pango.Stretch + @property + def stretch(self) -> Pango.Stretch: ... + @stretch.setter + def stretch(self, value: Pango._StretchValueType) -> None: ... stretch_set: bool strikethrough: bool - strikethrough_rgba: _Gdk4.RGBA + strikethrough_rgba: _Gdk4.RGBA | None strikethrough_rgba_set: bool strikethrough_set: bool - style: Pango.Style + @property + def style(self) -> Pango.Style: ... + @style.setter + def style(self, value: Pango._StyleValueType) -> None: ... style_set: bool - tabs: Pango.TabArray + tabs: Pango.TabArray | None tabs_set: bool - text_transform: Pango.TextTransform + @property + def text_transform(self) -> Pango.TextTransform: ... + @text_transform.setter + def text_transform(self, value: Pango._TextTransformValueType) -> None: ... text_transform_set: bool - underline: Pango.Underline - underline_rgba: _Gdk4.RGBA + @property + def underline(self) -> Pango.Underline: ... + @underline.setter + def underline(self, value: Pango._UnderlineValueType) -> None: ... + underline_rgba: _Gdk4.RGBA | None underline_rgba_set: bool underline_set: bool - variant: Pango.Variant + @property + def variant(self) -> Pango.Variant: ... + @variant.setter + def variant(self, value: Pango._VariantValueType) -> None: ... variant_set: bool weight: int weight_set: bool word: bool word_set: bool - wrap_mode: WrapMode + @property + def wrap_mode(self) -> WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: _WrapModeValueType) -> None: ... wrap_mode_set: bool @property @@ -27361,24 +28388,24 @@ class TextTag(GObject.Object): accumulative_margin: bool = ..., allow_breaks: bool = ..., allow_breaks_set: bool = ..., - background: str = ..., + background: str | None = ..., background_full_height: bool = ..., background_full_height_set: bool = ..., - background_rgba: _Gdk4.RGBA = ..., + background_rgba: _Gdk4.RGBA | None = ..., background_set: bool = ..., - direction: TextDirection = ..., + direction: _TextDirectionValueType = ..., editable: bool = ..., editable_set: bool = ..., fallback: bool = ..., fallback_set: bool = ..., - family: str = ..., + family: str | None = ..., family_set: bool = ..., - font: str = ..., - font_desc: Pango.FontDescription = ..., - font_features: str = ..., + font: str | None = ..., + font_desc: Pango.FontDescription | None = ..., + font_features: str | None = ..., font_features_set: bool = ..., - foreground: str = ..., - foreground_rgba: _Gdk4.RGBA = ..., + foreground: str | None = ..., + foreground_rgba: _Gdk4.RGBA | None = ..., foreground_set: bool = ..., indent: int = ..., indent_set: bool = ..., @@ -27386,9 +28413,9 @@ class TextTag(GObject.Object): insert_hyphens_set: bool = ..., invisible: bool = ..., invisible_set: bool = ..., - justification: Justification = ..., + justification: _JustificationValueType = ..., justification_set: bool = ..., - language: str = ..., + language: str | None = ..., language_set: bool = ..., left_margin: int = ..., left_margin_set: bool = ..., @@ -27396,13 +28423,13 @@ class TextTag(GObject.Object): letter_spacing_set: bool = ..., line_height: float = ..., line_height_set: bool = ..., - name: str = ..., - overline: Pango.Overline = ..., - overline_rgba: _Gdk4.RGBA = ..., + name: str | None = ..., + overline: Pango._OverlineValueType = ..., + overline_rgba: _Gdk4.RGBA | None = ..., overline_rgba_set: bool = ..., overline_set: bool = ..., - paragraph_background: str = ..., - paragraph_background_rgba: _Gdk4.RGBA = ..., + paragraph_background: str | None = ..., + paragraph_background_rgba: _Gdk4.RGBA | None = ..., paragraph_background_set: bool = ..., pixels_above_lines: int = ..., pixels_above_lines_set: bool = ..., @@ -27418,34 +28445,34 @@ class TextTag(GObject.Object): scale_set: bool = ..., sentence: bool = ..., sentence_set: bool = ..., - show_spaces: Pango.ShowFlags = ..., + show_spaces: Pango._ShowFlagsValueType = ..., show_spaces_set: bool = ..., size: int = ..., size_points: float = ..., size_set: bool = ..., - stretch: Pango.Stretch = ..., + stretch: Pango._StretchValueType = ..., stretch_set: bool = ..., strikethrough: bool = ..., - strikethrough_rgba: _Gdk4.RGBA = ..., + strikethrough_rgba: _Gdk4.RGBA | None = ..., strikethrough_rgba_set: bool = ..., strikethrough_set: bool = ..., - style: Pango.Style = ..., + style: Pango._StyleValueType = ..., style_set: bool = ..., - tabs: Pango.TabArray = ..., + tabs: Pango.TabArray | None = ..., tabs_set: bool = ..., - text_transform: Pango.TextTransform = ..., + text_transform: Pango._TextTransformValueType = ..., text_transform_set: bool = ..., - underline: Pango.Underline = ..., - underline_rgba: _Gdk4.RGBA = ..., + underline: Pango._UnderlineValueType = ..., + underline_rgba: _Gdk4.RGBA | None = ..., underline_rgba_set: bool = ..., underline_set: bool = ..., - variant: Pango.Variant = ..., + variant: Pango._VariantValueType = ..., variant_set: bool = ..., weight: int = ..., weight_set: bool = ..., word: bool = ..., word_set: bool = ..., - wrap_mode: WrapMode = ..., + wrap_mode: _WrapModeValueType = ..., wrap_mode_set: bool = ..., ) -> None: ... def changed(self, size_changed: bool) -> None: ... @@ -27609,15 +28636,30 @@ class TextView(Widget, AccessibleText, Scrollable): class Props(Widget.Props): accepts_tab: bool bottom_margin: int - buffer: TextBuffer | None + @property + def buffer(self) -> TextBuffer: ... + @buffer.setter + def buffer(self, value: TextBuffer | None) -> None: ... cursor_visible: bool editable: bool - extra_menu: Gio.MenuModel | None - im_module: str + @property + def extra_menu(self) -> Gio.MenuModel: ... + @extra_menu.setter + def extra_menu(self, value: Gio.MenuModel | None) -> None: ... + im_module: str | None indent: int - input_hints: InputHints - input_purpose: InputPurpose - justification: Justification + @property + def input_hints(self) -> InputHints: ... + @input_hints.setter + def input_hints(self, value: _InputHintsValueType) -> None: ... + @property + def input_purpose(self) -> InputPurpose: ... + @input_purpose.setter + def input_purpose(self, value: _InputPurposeValueType) -> None: ... + @property + def justification(self) -> Justification: ... + @justification.setter + def justification(self, value: _JustificationValueType) -> None: ... left_margin: int monospace: bool overwrite: bool @@ -27625,14 +28667,29 @@ class TextView(Widget, AccessibleText, Scrollable): pixels_below_lines: int pixels_inside_wrap: int right_margin: int - tabs: Pango.TabArray | None + @property + def tabs(self) -> Pango.TabArray | None: ... + @tabs.setter + def tabs(self, value: Pango.TabArray) -> None: ... top_margin: int - wrap_mode: WrapMode - accessible_role: AccessibleRole + @property + def wrap_mode(self) -> WrapMode: ... + @wrap_mode.setter + def wrap_mode(self, value: _WrapModeValueType) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -27649,11 +28706,11 @@ class TextView(Widget, AccessibleText, Scrollable): cursor_visible: bool = ..., editable: bool = ..., extra_menu: Gio.MenuModel | None = ..., - im_module: str = ..., + im_module: str | None = ..., indent: int = ..., - input_hints: InputHints = ..., - input_purpose: InputPurpose = ..., - justification: Justification = ..., + input_hints: _InputHintsValueType = ..., + input_purpose: _InputPurposeValueType = ..., + justification: _JustificationValueType = ..., left_margin: int = ..., monospace: bool = ..., overwrite: bool = ..., @@ -27663,20 +28720,20 @@ class TextView(Widget, AccessibleText, Scrollable): right_margin: int = ..., tabs: Pango.TabArray = ..., top_margin: int = ..., - wrap_mode: WrapMode = ..., - accessible_role: AccessibleRole = ..., + wrap_mode: _WrapModeValueType = ..., + accessible_role: _AccessibleRoleValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -27689,12 +28746,12 @@ class TextView(Widget, AccessibleText, Scrollable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -27705,15 +28762,15 @@ class TextView(Widget, AccessibleText, Scrollable): def backward_display_line(self, iter: TextIter) -> bool: ... def backward_display_line_start(self, iter: TextIter) -> bool: ... def buffer_to_window_coords( - self, win: TextWindowType, buffer_x: int, buffer_y: int + self, win: _TextWindowTypeValueType, buffer_x: int, buffer_y: int ) -> tuple[int, int]: ... def do_backspace(self) -> None: ... def do_copy_clipboard(self) -> None: ... def do_cut_clipboard(self) -> None: ... - def do_delete_from_cursor(self, type: DeleteType, count: int) -> None: ... + def do_delete_from_cursor(self, type: _DeleteTypeValueType, count: int) -> None: ... def do_extend_selection( self, - granularity: TextExtendSelection, + granularity: _TextExtendSelectionValueType, location: TextIter, start: TextIter, end: TextIter, @@ -27721,11 +28778,13 @@ class TextView(Widget, AccessibleText, Scrollable): def do_insert_at_cursor(self, str: str) -> None: ... def do_insert_emoji(self) -> None: ... def do_move_cursor( - self, step: MovementStep, count: int, extend_selection: bool + self, step: _MovementStepValueType, count: int, extend_selection: bool ) -> None: ... def do_paste_clipboard(self) -> None: ... def do_set_anchor(self) -> None: ... - def do_snapshot_layer(self, layer: TextViewLayer, snapshot: Snapshot) -> None: ... + def do_snapshot_layer( + self, layer: _TextViewLayerValueType, snapshot: Snapshot + ) -> None: ... def do_toggle_overwrite(self) -> None: ... def forward_display_line(self, iter: TextIter) -> bool: ... def forward_display_line_end(self, iter: TextIter) -> bool: ... @@ -27738,7 +28797,7 @@ class TextView(Widget, AccessibleText, Scrollable): def get_cursor_visible(self) -> bool: ... def get_editable(self) -> bool: ... def get_extra_menu(self) -> Gio.MenuModel: ... - def get_gutter(self, win: TextWindowType) -> Widget | None: ... + def get_gutter(self, win: _TextWindowTypeValueType) -> Widget | None: ... def get_indent(self) -> int: ... def get_input_hints(self) -> InputHints: ... def get_input_purpose(self) -> InputPurpose: ... @@ -27797,11 +28856,13 @@ class TextView(Widget, AccessibleText, Scrollable): def set_cursor_visible(self, setting: bool) -> None: ... def set_editable(self, setting: bool) -> None: ... def set_extra_menu(self, model: Gio.MenuModel | None = None) -> None: ... - def set_gutter(self, win: TextWindowType, widget: Widget | None = None) -> None: ... + def set_gutter( + self, win: _TextWindowTypeValueType, widget: Widget | None = None + ) -> None: ... def set_indent(self, indent: int) -> None: ... - def set_input_hints(self, hints: InputHints) -> None: ... - def set_input_purpose(self, purpose: InputPurpose) -> None: ... - def set_justification(self, justification: Justification) -> None: ... + def set_input_hints(self, hints: _InputHintsValueType) -> None: ... + def set_input_purpose(self, purpose: _InputPurposeValueType) -> None: ... + def set_justification(self, justification: _JustificationValueType) -> None: ... def set_left_margin(self, left_margin: int) -> None: ... def set_monospace(self, monospace: bool) -> None: ... def set_overwrite(self, overwrite: bool) -> None: ... @@ -27811,10 +28872,10 @@ class TextView(Widget, AccessibleText, Scrollable): def set_right_margin(self, right_margin: int) -> None: ... def set_tabs(self, tabs: Pango.TabArray) -> None: ... def set_top_margin(self, top_margin: int) -> None: ... - def set_wrap_mode(self, wrap_mode: WrapMode) -> None: ... + def set_wrap_mode(self, wrap_mode: _WrapModeValueType) -> None: ... def starts_display_line(self, iter: TextIter) -> bool: ... def window_to_buffer_coords( - self, win: TextWindowType, window_x: int, window_y: int + self, win: _TextWindowTypeValueType, window_x: int, window_y: int ) -> tuple[int, int]: ... class TextViewClass(_gi.Struct): @@ -27828,13 +28889,17 @@ class TextViewClass(_gi.Struct): @property def parent_class(self) -> WidgetClass: ... @property - def move_cursor(self) -> Callable[[TextView, MovementStep, int, bool], None]: ... + def move_cursor( + self, + ) -> Callable[[TextView, _MovementStepValueType, int, bool], None]: ... @property def set_anchor(self) -> Callable[[TextView], None]: ... @property def insert_at_cursor(self) -> Callable[[TextView, str], None]: ... @property - def delete_from_cursor(self) -> Callable[[TextView, DeleteType, int], None]: ... + def delete_from_cursor( + self, + ) -> Callable[[TextView, _DeleteTypeValueType, int], None]: ... @property def backspace(self) -> Callable[[TextView], None]: ... @property @@ -27848,12 +28913,14 @@ class TextViewClass(_gi.Struct): @property def create_buffer(self) -> int: ... @property - def snapshot_layer(self) -> Callable[[TextView, TextViewLayer, Snapshot], None]: ... + def snapshot_layer( + self, + ) -> Callable[[TextView, _TextViewLayerValueType, Snapshot], None]: ... @property def extend_selection( self, ) -> Callable[ - [TextView, TextExtendSelection, TextIter, TextIter, TextIter], bool + [TextView, _TextExtendSelectionValueType, TextIter, TextIter, TextIter], bool ]: ... @property def insert_emoji(self) -> Callable[[TextView], None]: ... @@ -27952,10 +29019,19 @@ class ToggleButton(Button): @type_check_only class Props(Button.Props): active: bool - group: ToggleButton | None - accessible_role: AccessibleRole + @property + def group(self) -> Never: ... + @group.setter + def group(self, value: ToggleButton | None) -> None: ... + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... action_name: str | None - action_target: GLib.Variant + @property + def action_target(self) -> GLib.Variant | None: ... + @action_target.setter + def action_target(self, value: GLib.Variant) -> None: ... @property def props(self) -> Props: ... @@ -27966,7 +29042,7 @@ class ToggleButton(Button): *, active: bool = ..., group: ToggleButton | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., action_name: str | None = ..., action_target: GLib.Variant = ..., can_shrink: bool = ..., @@ -27978,11 +29054,11 @@ class ToggleButton(Button): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -27995,12 +29071,12 @@ class ToggleButton(Button): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -28186,7 +29262,10 @@ class TreeExpander(Widget): @property def item(self) -> GObject.Object | None: ... list_row: TreeListRow | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -28198,15 +29277,15 @@ class TreeExpander(Widget): indent_for_depth: bool = ..., indent_for_icon: bool = ..., list_row: TreeListRow | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -28219,12 +29298,12 @@ class TreeExpander(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -28545,9 +29624,9 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): @type_check_only class Props(GObject.Object.Props): @property - def child_model(self) -> TreeModel: ... + def child_model(self) -> TreeModel | None: ... @property - def virtual_root(self) -> TreePath: ... + def virtual_root(self) -> TreePath | None: ... @property def props(self) -> Props: ... @@ -28556,7 +29635,10 @@ class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel): @property def priv(self) -> TreeModelFilterPrivate: ... def __init__( - self, *, child_model: TreeModel = ..., virtual_root: TreePath = ... + self, + *, + child_model: TreeModel | None = ..., + virtual_root: TreePath | None = ..., ) -> None: ... def clear_cache(self) -> None: ... def convert_child_iter_to_iter( @@ -28748,7 +29830,7 @@ class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable): def parent(self) -> GObject.Object: ... @property def priv(self) -> TreeModelSortPrivate: ... - def __init__(self, *, model: TreeModel = ...) -> None: ... + def __init__(self, *, model: TreeModel | None = ...) -> None: ... def clear_cache(self) -> None: ... def convert_child_iter_to_iter( self, child_iter: TreeIter @@ -28868,11 +29950,14 @@ class TreeSelection(GObject.Object): """ @type_check_only class Props(GObject.Object.Props): - mode: SelectionMode + @property + def mode(self) -> SelectionMode: ... + @mode.setter + def mode(self, value: _SelectionModeValueType) -> None: ... @property def props(self) -> Props: ... - def __init__(self, *, mode: SelectionMode = ...) -> None: ... + def __init__(self, *, mode: _SelectionModeValueType = ...) -> None: ... def count_selected_rows(self) -> int: ... def get_mode(self) -> SelectionMode: ... # override @@ -28892,7 +29977,7 @@ class TreeSelection(GObject.Object): func: Callable[[TreeModel, TreePath, TreeIter, Unpack[_DataTs]], None], *data: Unpack[_DataTs], ) -> None: ... - def set_mode(self, type: SelectionMode) -> None: ... + def set_mode(self, type: _SelectionModeValueType) -> None: ... def set_select_function( self, func: Callable[ @@ -28930,7 +30015,9 @@ class TreeSortable(GObject.GInterface, Protocol): sort_func: Callable[[TreeModel, TreeIter, TreeIter, _T], int], user_data: _T, ): ... - def set_sort_column_id(self, sort_column_id: int, order: SortType) -> None: ... + def set_sort_column_id( + self, sort_column_id: int, order: _SortTypeValueType + ) -> None: ... # override @overload def set_sort_func( @@ -28965,7 +30052,9 @@ class TreeSortableIface(_gi.Struct): self, ) -> Callable[[TreeSortable], tuple[bool, int, SortType]]: ... @property - def set_sort_column_id(self) -> Callable[[TreeSortable, int, SortType], None]: ... + def set_sort_column_id( + self, + ) -> Callable[[TreeSortable, int, _SortTypeValueType], None]: ... @property def set_sort_func( self, @@ -29184,7 +30273,10 @@ class TreeView(Widget, Scrollable): @type_check_only class Props(Widget.Props): activate_on_single_click: bool - enable_grid_lines: TreeViewGridLines + @property + def enable_grid_lines(self) -> TreeViewGridLines: ... + @enable_grid_lines.setter + def enable_grid_lines(self, value: _TreeViewGridLinesValueType) -> None: ... enable_search: bool enable_tree_lines: bool expander_column: TreeViewColumn | None @@ -29200,11 +30292,20 @@ class TreeView(Widget, Scrollable): search_column: int show_expanders: bool tooltip_column: int - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -29214,7 +30315,7 @@ class TreeView(Widget, Scrollable): self, *, activate_on_single_click: bool = ..., - enable_grid_lines: TreeViewGridLines = ..., + enable_grid_lines: _TreeViewGridLinesValueType = ..., enable_search: bool = ..., enable_tree_lines: bool = ..., expander_column: TreeViewColumn | None = ..., @@ -29230,19 +30331,19 @@ class TreeView(Widget, Scrollable): search_column: int = ..., show_expanders: bool = ..., tooltip_column: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -29255,12 +30356,12 @@ class TreeView(Widget, Scrollable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -29291,7 +30392,7 @@ class TreeView(Widget, Scrollable): self, logical: bool, expand: bool, open_all: bool ) -> bool: ... def do_move_cursor( - self, step: MovementStep, count: int, extend: bool, modify: bool + self, step: _MovementStepValueType, count: int, extend: bool, modify: bool ) -> bool: ... def do_row_activated( self, path: TreePath, column: TreeViewColumn | None @@ -29307,13 +30408,13 @@ class TreeView(Widget, Scrollable): def do_toggle_cursor_row(self) -> bool: ... def do_unselect_all(self) -> bool: ... def enable_model_drag_dest( - self, formats: _Gdk4.ContentFormats, actions: _Gdk4.DragAction + self, formats: _Gdk4.ContentFormats, actions: _Gdk4._DragActionValueType ) -> None: ... def enable_model_drag_source( self, - start_button_mask: _Gdk4.ModifierType, + start_button_mask: _Gdk4._ModifierTypeValueType, formats: _Gdk4.ContentFormats, - actions: _Gdk4.DragAction, + actions: _Gdk4._DragActionValueType, ) -> None: ... def expand_all(self) -> None: ... def expand_row(self, path: TreePath, open_all: bool) -> bool: ... @@ -29436,13 +30537,13 @@ class TreeView(Widget, Scrollable): start_editing: bool, ) -> None: ... def set_drag_dest_row( - self, path: TreePath | None, pos: TreeViewDropPosition + self, path: TreePath | None, pos: _TreeViewDropPositionValueType ) -> None: ... def set_enable_search(self, enable_search: bool) -> None: ... def set_enable_tree_lines(self, enabled: bool) -> None: ... def set_expander_column(self, column: TreeViewColumn | None = None) -> None: ... def set_fixed_height_mode(self, enable: bool) -> None: ... - def set_grid_lines(self, grid_lines: TreeViewGridLines) -> None: ... + def set_grid_lines(self, grid_lines: _TreeViewGridLinesValueType) -> None: ... def set_headers_clickable(self, setting: bool) -> None: ... def set_headers_visible(self, headers_visible: bool) -> None: ... def set_hover_expand(self, expand: bool) -> None: ... @@ -29507,7 +30608,7 @@ class TreeViewClass(_gi.Struct): @property def move_cursor( self, - ) -> Callable[[TreeView, MovementStep, int, bool, bool], bool]: ... + ) -> Callable[[TreeView, _MovementStepValueType, int, bool, bool], bool]: ... @property def select_all(self) -> Callable[[TreeView], bool]: ... @property @@ -29568,7 +30669,7 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): class Props(GObject.InitiallyUnowned.Props): alignment: float @property - def cell_area(self) -> CellArea: ... + def cell_area(self) -> CellArea | None: ... clickable: bool expand: bool fixed_width: int @@ -29576,10 +30677,16 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): min_width: int reorderable: bool resizable: bool - sizing: TreeViewColumnSizing + @property + def sizing(self) -> TreeViewColumnSizing: ... + @sizing.setter + def sizing(self, value: _TreeViewColumnSizingValueType) -> None: ... sort_column_id: int sort_indicator: bool - sort_order: SortType + @property + def sort_order(self) -> SortType: ... + @sort_order.setter + def sort_order(self, value: _SortTypeValueType) -> None: ... spacing: int title: str visible: bool @@ -29690,10 +30797,10 @@ class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout): def set_min_width(self, min_width: int) -> None: ... def set_reorderable(self, reorderable: bool) -> None: ... def set_resizable(self, resizable: bool) -> None: ... - def set_sizing(self, type: TreeViewColumnSizing) -> None: ... + def set_sizing(self, type: _TreeViewColumnSizingValueType) -> None: ... def set_sort_column_id(self, sort_column_id: int) -> None: ... def set_sort_indicator(self, setting: bool) -> None: ... - def set_sort_order(self, order: SortType) -> None: ... + def set_sort_order(self, order: _SortTypeValueType) -> None: ... def set_spacing(self, spacing: int) -> None: ... def set_title(self, title: str) -> None: ... def set_visible(self, visible: bool) -> None: ... @@ -29832,10 +30939,16 @@ class Video(Widget): class Props(Widget.Props): autoplay: bool file: Gio.File | None - graphics_offload: GraphicsOffloadEnabled + @property + def graphics_offload(self) -> GraphicsOffloadEnabled: ... + @graphics_offload.setter + def graphics_offload(self, value: _GraphicsOffloadEnabledValueType) -> None: ... loop: bool media_stream: MediaStream | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -29844,18 +30957,18 @@ class Video(Widget): *, autoplay: bool = ..., file: Gio.File | None = ..., - graphics_offload: GraphicsOffloadEnabled = ..., + graphics_offload: _GraphicsOffloadEnabledValueType = ..., loop: bool = ..., media_stream: MediaStream | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -29868,12 +30981,12 @@ class Video(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -29897,7 +31010,9 @@ class Video(Widget): def set_autoplay(self, autoplay: bool) -> None: ... def set_file(self, file: Gio.File | None = None) -> None: ... def set_filename(self, filename: str | None = None) -> None: ... - def set_graphics_offload(self, enabled: GraphicsOffloadEnabled) -> None: ... + def set_graphics_offload( + self, enabled: _GraphicsOffloadEnabledValueType + ) -> None: ... def set_loop(self, loop: bool) -> None: ... def set_media_stream(self, stream: MediaStream | None = None) -> None: ... def set_resource(self, resource_path: str | None = None) -> None: ... @@ -29987,11 +31102,20 @@ class Viewport(Widget, Scrollable): class Props(Widget.Props): child: Widget | None scroll_to_focus: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... hadjustment: Adjustment | None - hscroll_policy: ScrollablePolicy + @property + def hscroll_policy(self) -> ScrollablePolicy: ... + @hscroll_policy.setter + def hscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... vadjustment: Adjustment | None - vscroll_policy: ScrollablePolicy + @property + def vscroll_policy(self) -> ScrollablePolicy: ... + @vscroll_policy.setter + def vscroll_policy(self, value: _ScrollablePolicyValueType) -> None: ... @property def props(self) -> Props: ... @@ -30000,19 +31124,19 @@ class Viewport(Widget, Scrollable): *, child: Widget | None = ..., scroll_to_focus: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., hadjustment: Adjustment | None = ..., - hscroll_policy: ScrollablePolicy = ..., + hscroll_policy: _ScrollablePolicyValueType = ..., vadjustment: Adjustment | None = ..., - vscroll_policy: ScrollablePolicy = ..., + vscroll_policy: _ScrollablePolicyValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -30025,12 +31149,12 @@ class Viewport(Widget, Scrollable): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -30134,8 +31258,14 @@ class VolumeButton(ScaleButton): @type_check_only class Props(ScaleButton.Props): use_symbolic: bool - accessible_role: AccessibleRole - orientation: Orientation + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... + @property + def orientation(self) -> Orientation: ... + @orientation.setter + def orientation(self, value: _OrientationValueType) -> None: ... @property def props(self) -> Props: ... @@ -30145,8 +31275,8 @@ class VolumeButton(ScaleButton): self, *, use_symbolic: bool = ..., - accessible_role: AccessibleRole = ..., - orientation: Orientation = ..., + accessible_role: _AccessibleRoleValueType = ..., + orientation: _OrientationValueType = ..., adjustment: Adjustment = ..., has_frame: bool = ..., icons: Sequence[str] = ..., @@ -30154,11 +31284,11 @@ class VolumeButton(ScaleButton): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -30171,12 +31301,12 @@ class VolumeButton(ScaleButton): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -30254,13 +31384,19 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): class Props(GObject.InitiallyUnowned.Props): can_focus: bool can_target: bool - css_classes: list[str] + @property + def css_classes(self) -> list[str]: ... + @css_classes.setter + def css_classes(self, value: Sequence[str]) -> None: ... @property def css_name(self) -> str: ... cursor: _Gdk4.Cursor | None focus_on_click: bool focusable: bool - halign: Align + @property + def halign(self) -> Align: ... + @halign.setter + def halign(self, value: _AlignValueType) -> None: ... @property def has_default(self) -> bool: ... @property @@ -30277,7 +31413,10 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): margin_top: int name: str opacity: float - overflow: Overflow + @property + def overflow(self) -> Overflow: ... + @overflow.setter + def overflow(self, value: _OverflowValueType) -> None: ... @property def parent(self) -> Widget | None: ... receives_default: bool @@ -30288,12 +31427,18 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): sensitive: bool tooltip_markup: str | None tooltip_text: str | None - valign: Align + @property + def valign(self) -> Align: ... + @valign.setter + def valign(self, value: _AlignValueType) -> None: ... vexpand: bool vexpand_set: bool visible: bool width_request: int - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -30307,11 +31452,11 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -30324,17 +31469,17 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., width_request: int = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., ) -> None: ... def __contains__(self, child): ... # FIXME: Override is missing typing annotation def __iter__(self): ... # FIXME: Override is missing typing annotation @@ -30370,9 +31515,9 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def bind_template_child_full( cls, name: str, internal_child: bool, struct_offset: int ) -> None: ... - def child_focus(self, direction: DirectionType) -> bool: ... + def child_focus(self, direction: _DirectionTypeValueType) -> bool: ... def compute_bounds(self, target: Widget) -> tuple[bool, Graphene.Rect]: ... - def compute_expand(self, orientation: Orientation) -> bool: ... + def compute_expand(self, orientation: _OrientationValueType) -> bool: ... def compute_point( self, target: Widget, point: Graphene.Point ) -> tuple[bool, Graphene.Point]: ... @@ -30384,18 +31529,20 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def do_compute_expand(self, hexpand_p: bool, vexpand_p: bool) -> None: ... def do_contains(self, x: float, y: float) -> bool: ... def do_css_changed(self, change: CssStyleChange) -> None: ... - def do_direction_changed(self, previous_direction: TextDirection) -> None: ... - def do_focus(self, direction: DirectionType) -> bool: ... + def do_direction_changed( + self, previous_direction: _TextDirectionValueType + ) -> None: ... + def do_focus(self, direction: _DirectionTypeValueType) -> bool: ... def do_get_request_mode(self) -> SizeRequestMode: ... def do_grab_focus(self) -> bool: ... def do_hide(self) -> None: ... - def do_keynav_failed(self, direction: DirectionType) -> bool: ... + def do_keynav_failed(self, direction: _DirectionTypeValueType) -> bool: ... def do_map(self) -> None: ... def do_measure( - self, orientation: Orientation, for_size: int + self, orientation: _OrientationValueType, for_size: int ) -> tuple[int, int, int, int]: ... def do_mnemonic_activate(self, group_cycling: bool) -> bool: ... - def do_move_focus(self, direction: DirectionType) -> None: ... + def do_move_focus(self, direction: _DirectionTypeValueType) -> None: ... def do_query_tooltip( self, x: int, y: int, keyboard_tooltip: bool, tooltip: Tooltip ) -> bool: ... @@ -30405,8 +31552,10 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def do_show(self) -> None: ... def do_size_allocate(self, width: int, height: int, baseline: int) -> None: ... def do_snapshot(self, snapshot: Snapshot) -> None: ... - def do_state_flags_changed(self, previous_state_flags: StateFlags) -> None: ... - def do_system_setting_changed(self, settings: SystemSetting) -> None: ... + def do_state_flags_changed( + self, previous_state_flags: _StateFlagsValueType + ) -> None: ... + def do_system_setting_changed(self, settings: _SystemSettingValueType) -> None: ... def do_unmap(self) -> None: ... def do_unrealize(self) -> None: ... def do_unroot(self) -> None: ... @@ -30478,7 +31627,7 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def get_scale_factor(self) -> int: ... def get_sensitive(self) -> bool: ... def get_settings(self) -> Settings: ... - def get_size(self, orientation: Orientation) -> int: ... + def get_size(self, orientation: _OrientationValueType) -> int: ... def get_size_request(self) -> tuple[int, int]: ... def get_state_flags(self) -> StateFlags: ... def get_style_context(self) -> StyleContext: ... @@ -30523,16 +31672,16 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def is_focus(self) -> bool: ... def is_sensitive(self) -> bool: ... def is_visible(self) -> bool: ... - def keynav_failed(self, direction: DirectionType) -> bool: ... + def keynav_failed(self, direction: _DirectionTypeValueType) -> bool: ... def list_mnemonic_labels(self) -> list[Widget]: ... def map(self) -> None: ... def measure( - self, orientation: Orientation, for_size: int + self, orientation: _OrientationValueType, for_size: int ) -> tuple[int, int, int, int]: ... def mnemonic_activate(self, group_cycling: bool) -> bool: ... def observe_children(self) -> Gio.ListModel: ... def observe_controllers(self) -> Gio.ListModel: ... - def pick(self, x: float, y: float, flags: PickFlags) -> Widget | None: ... + def pick(self, x: float, y: float, flags: _PickFlagsValueType) -> Widget | None: ... # override @classmethod def query_action( @@ -30567,13 +31716,13 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): # override @classmethod def set_default_direction(cls, dir: TextDirection) -> None: ... - def set_direction(self, dir: TextDirection) -> None: ... + def set_direction(self, dir: _TextDirectionValueType) -> None: ... def set_focus_child(self, child: Widget | None = None) -> None: ... def set_focus_on_click(self, focus_on_click: bool) -> None: ... def set_focusable(self, focusable: bool) -> None: ... def set_font_map(self, font_map: Pango.FontMap | None = None) -> None: ... def set_font_options(self, options: cairo.FontOptions | None = None) -> None: ... - def set_halign(self, align: Align) -> None: ... + def set_halign(self, align: _AlignValueType) -> None: ... def set_has_tooltip(self, has_tooltip: bool) -> None: ... def set_hexpand(self, expand: bool) -> None: ... def set_hexpand_set(self, set: bool) -> None: ... @@ -30591,12 +31740,12 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def set_margin_top(self, margin: int) -> None: ... def set_name(self, name: str) -> None: ... def set_opacity(self, opacity: float) -> None: ... - def set_overflow(self, overflow: Overflow) -> None: ... + def set_overflow(self, overflow: _OverflowValueType) -> None: ... def set_parent(self, parent: Widget) -> None: ... def set_receives_default(self, receives_default: bool) -> None: ... def set_sensitive(self, sensitive: bool) -> None: ... def set_size_request(self, width: int, height: int) -> None: ... - def set_state_flags(self, flags: StateFlags, clear: bool) -> None: ... + def set_state_flags(self, flags: _StateFlagsValueType, clear: bool) -> None: ... # override @classmethod def set_template(cls, template_bytes: GLib.Bytes) -> None: ... @@ -30608,7 +31757,7 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def set_template_scope(cls, scope: BuilderScope) -> None: ... def set_tooltip_markup(self, markup: str | None = None) -> None: ... def set_tooltip_text(self, text: str | None = None) -> None: ... - def set_valign(self, align: Align) -> None: ... + def set_valign(self, align: _AlignValueType) -> None: ... def set_vexpand(self, expand: bool) -> None: ... def set_vexpand_set(self, set: bool) -> None: ... def set_visible(self, visible: bool) -> None: ... @@ -30623,7 +31772,7 @@ class Widget(GObject.InitiallyUnowned, Accessible, Buildable, ConstraintTarget): def unmap(self) -> None: ... def unparent(self) -> None: ... def unrealize(self) -> None: ... - def unset_state_flags(self, flags: StateFlags) -> None: ... + def unset_state_flags(self, flags: _StateFlagsValueType) -> None: ... class WidgetClass(_gi.Struct): """ @@ -30654,27 +31803,29 @@ class WidgetClass(_gi.Struct): @property def size_allocate(self) -> Callable[[Widget, int, int, int], None]: ... @property - def state_flags_changed(self) -> Callable[[Widget, StateFlags], None]: ... + def state_flags_changed(self) -> Callable[[Widget, _StateFlagsValueType], None]: ... @property - def direction_changed(self) -> Callable[[Widget, TextDirection], None]: ... + def direction_changed( + self, + ) -> Callable[[Widget, _TextDirectionValueType], None]: ... @property def get_request_mode(self) -> Callable[[Widget], SizeRequestMode]: ... @property def measure( self, - ) -> Callable[[Widget, Orientation, int], tuple[int, int, int, int]]: ... + ) -> Callable[[Widget, _OrientationValueType, int], tuple[int, int, int, int]]: ... @property def mnemonic_activate(self) -> Callable[[Widget, bool], bool]: ... @property def grab_focus(self) -> Callable[[Widget], bool]: ... @property - def focus(self) -> Callable[[Widget, DirectionType], bool]: ... + def focus(self) -> Callable[[Widget, _DirectionTypeValueType], bool]: ... @property def set_focus_child(self) -> Callable[[Widget, Widget | None], None]: ... @property - def move_focus(self) -> Callable[[Widget, DirectionType], None]: ... + def move_focus(self) -> Callable[[Widget, _DirectionTypeValueType], None]: ... @property - def keynav_failed(self) -> Callable[[Widget, DirectionType], bool]: ... + def keynav_failed(self) -> Callable[[Widget, _DirectionTypeValueType], bool]: ... @property def query_tooltip(self) -> Callable[[Widget, int, int, bool, Tooltip], bool]: ... @property @@ -30682,7 +31833,9 @@ class WidgetClass(_gi.Struct): @property def css_changed(self) -> Callable[[Widget, CssStyleChange], None]: ... @property - def system_setting_changed(self) -> Callable[[Widget, SystemSetting], None]: ... + def system_setting_changed( + self, + ) -> Callable[[Widget, _SystemSettingValueType], None]: ... @property def snapshot(self) -> Callable[[Widget, Snapshot], None]: ... @property @@ -30716,7 +31869,9 @@ class WidgetClass(_gi.Struct): def query_action( self, index_: int ) -> tuple[bool, type[Any], str, GLib.VariantType | None, str | None]: ... - def set_accessible_role(self, accessible_role: AccessibleRole) -> None: ... + def set_accessible_role( + self, accessible_role: _AccessibleRoleValueType + ) -> None: ... def set_activate_signal(self, signal_id: int) -> None: ... def set_activate_signal_from_name(self, signal_name: str) -> None: ... def set_css_name(self, name: str) -> None: ... @@ -30884,11 +32039,17 @@ class Window(Widget, Native, Root, ShortcutManager): default_width: int deletable: bool destroy_with_parent: bool - display: _Gdk4.Display + @property + def display(self) -> _Gdk4.Display | None: ... + @display.setter + def display(self, value: _Gdk4.Display) -> None: ... focus_visible: bool focus_widget: Widget | None fullscreened: bool - gravity: WindowGravity + @property + def gravity(self) -> WindowGravity: ... + @gravity.setter + def gravity(self, value: _WindowGravityValueType) -> None: ... handle_menubar_accel: bool hide_on_close: bool icon_name: str | None @@ -30898,13 +32059,19 @@ class Window(Widget, Native, Root, ShortcutManager): mnemonics_visible: bool modal: bool resizable: bool - startup_id: str + @property + def startup_id(self) -> Never: ... + @startup_id.setter + def startup_id(self, value: str) -> None: ... @property def suspended(self) -> bool: ... title: str | None titlebar: Widget | None transient_for: Window | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -30925,7 +32092,7 @@ class Window(Widget, Native, Root, ShortcutManager): focus_visible: bool = ..., focus_widget: Widget | None = ..., fullscreened: bool = ..., - gravity: WindowGravity = ..., + gravity: _WindowGravityValueType = ..., handle_menubar_accel: bool = ..., hide_on_close: bool = ..., icon_name: str | None = ..., @@ -30937,15 +32104,15 @@ class Window(Widget, Native, Root, ShortcutManager): title: str | None = ..., titlebar: Widget | None = ..., transient_for: Window | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -30958,12 +32125,12 @@ class Window(Widget, Native, Root, ShortcutManager): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -31030,7 +32197,7 @@ class Window(Widget, Native, Root, ShortcutManager): def set_display(self, display: _Gdk4.Display) -> None: ... def set_focus(self, focus: Widget | None = None) -> None: ... def set_focus_visible(self, setting: bool) -> None: ... - def set_gravity(self, gravity: WindowGravity) -> None: ... + def set_gravity(self, gravity: _WindowGravityValueType) -> None: ... def set_handle_menubar_accel(self, handle_menubar_accel: bool) -> None: ... def set_hide_on_close(self, setting: bool) -> None: ... def set_icon_name(self, name: str | None = None) -> None: ... @@ -31147,9 +32314,15 @@ class WindowControls(Widget): decoration_layout: str | None @property def empty(self) -> bool: ... - side: PackType + @property + def side(self) -> PackType: ... + @side.setter + def side(self, value: _PackTypeValueType) -> None: ... use_native_controls: bool - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -31157,17 +32330,17 @@ class WindowControls(Widget): self, *, decoration_layout: str | None = ..., - side: PackType = ..., + side: _PackTypeValueType = ..., use_native_controls: bool = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -31180,12 +32353,12 @@ class WindowControls(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -31196,9 +32369,9 @@ class WindowControls(Widget): def get_side(self) -> PackType: ... def get_use_native_controls(self) -> bool: ... @classmethod - def new(cls, side: PackType) -> WindowControls: ... + def new(cls, side: _PackTypeValueType) -> WindowControls: ... def set_decoration_layout(self, layout: str | None = None) -> None: ... - def set_side(self, side: PackType) -> None: ... + def set_side(self, side: _PackTypeValueType) -> None: ... def set_use_native_controls(self, setting: bool) -> None: ... class WindowControlsClass(_gi.Struct): @@ -31321,7 +32494,10 @@ class WindowHandle(Widget): @type_check_only class Props(Widget.Props): child: Widget | None - accessible_role: AccessibleRole + @property + def accessible_role(self) -> AccessibleRole: ... + @accessible_role.setter + def accessible_role(self, value: _AccessibleRoleValueType) -> None: ... @property def props(self) -> Props: ... @@ -31329,15 +32505,15 @@ class WindowHandle(Widget): self, *, child: Widget | None = ..., - accessible_role: AccessibleRole = ..., + accessible_role: _AccessibleRoleValueType = ..., can_focus: bool = ..., can_target: bool = ..., css_classes: Sequence[str] = ..., - css_name: str = ..., + css_name: str | None = ..., cursor: _Gdk4.Cursor | None = ..., focus_on_click: bool = ..., focusable: bool = ..., - halign: Align = ..., + halign: _AlignValueType = ..., has_tooltip: bool = ..., height_request: int = ..., hexpand: bool = ..., @@ -31350,12 +32526,12 @@ class WindowHandle(Widget): margin_top: int = ..., name: str = ..., opacity: float = ..., - overflow: Overflow = ..., + overflow: _OverflowValueType = ..., receives_default: bool = ..., sensitive: bool = ..., tooltip_markup: str | None = ..., tooltip_text: str | None = ..., - valign: Align = ..., + valign: _AlignValueType = ..., vexpand: bool = ..., vexpand_set: bool = ..., visible: bool = ..., @@ -31383,9 +32559,34 @@ class ApplicationInhibitFlags(GObject.GFlags): SUSPEND = 4 SWITCH = 2 +_ApplicationInhibitFlagsLiteralType: TypeAlias = Literal[ + "GTK_APPLICATION_INHIBIT_IDLE", + "GTK_APPLICATION_INHIBIT_LOGOUT", + "GTK_APPLICATION_INHIBIT_SUSPEND", + "GTK_APPLICATION_INHIBIT_SWITCH", + "idle", + "logout", + "suspend", + "switch", +] +_ApplicationInhibitFlagsValueType: TypeAlias = ( + ApplicationInhibitFlags + | _ApplicationInhibitFlagsLiteralType + | tuple[_ApplicationInhibitFlagsLiteralType, ...] +) + class BuilderClosureFlags(GObject.GFlags): SWAPPED = 1 +_BuilderClosureFlagsLiteralType: TypeAlias = Literal[ + "GTK_BUILDER_CLOSURE_SWAPPED", "swapped" +] +_BuilderClosureFlagsValueType: TypeAlias = ( + BuilderClosureFlags + | _BuilderClosureFlagsLiteralType + | tuple[_BuilderClosureFlagsLiteralType, ...] +) + class CellRendererState(GObject.GFlags): EXPANDABLE = 32 EXPANDED = 64 @@ -31395,6 +32596,28 @@ class CellRendererState(GObject.GFlags): SELECTED = 1 SORTED = 8 +_CellRendererStateLiteralType: TypeAlias = Literal[ + "GTK_CELL_RENDERER_EXPANDABLE", + "GTK_CELL_RENDERER_EXPANDED", + "GTK_CELL_RENDERER_FOCUSED", + "GTK_CELL_RENDERER_INSENSITIVE", + "GTK_CELL_RENDERER_PRELIT", + "GTK_CELL_RENDERER_SELECTED", + "GTK_CELL_RENDERER_SORTED", + "expandable", + "expanded", + "focused", + "insensitive", + "prelit", + "selected", + "sorted", +] +_CellRendererStateValueType: TypeAlias = ( + CellRendererState + | _CellRendererStateLiteralType + | tuple[_CellRendererStateLiteralType, ...] +) + class DebugFlags(GObject.GFlags): A11Y = 131072 ACTIONS = 4096 @@ -31419,11 +32642,73 @@ class DebugFlags(GObject.GFlags): TOUCHSCREEN = 2048 TREE = 2 +_DebugFlagsLiteralType: TypeAlias = Literal[ + "GTK_DEBUG_A11Y", + "GTK_DEBUG_ACTIONS", + "GTK_DEBUG_BUILDER", + "GTK_DEBUG_BUILDER_OBJECTS", + "GTK_DEBUG_BUILDER_TRACE", + "GTK_DEBUG_CONSTRAINTS", + "GTK_DEBUG_CSS", + "GTK_DEBUG_GEOMETRY", + "GTK_DEBUG_ICONFALLBACK", + "GTK_DEBUG_ICONTHEME", + "GTK_DEBUG_INTERACTIVE", + "GTK_DEBUG_INVERT_TEXT_DIR", + "GTK_DEBUG_KEYBINDINGS", + "GTK_DEBUG_LAYOUT", + "GTK_DEBUG_MODULES", + "GTK_DEBUG_NO_CSS_CACHE", + "GTK_DEBUG_PRINTING", + "GTK_DEBUG_SIZE_REQUEST", + "GTK_DEBUG_SNAPSHOT", + "GTK_DEBUG_TEXT", + "GTK_DEBUG_TOUCHSCREEN", + "GTK_DEBUG_TREE", + "a11y", + "actions", + "builder", + "builder-objects", + "builder-trace", + "constraints", + "css", + "geometry", + "iconfallback", + "icontheme", + "interactive", + "invert-text-dir", + "keybindings", + "layout", + "modules", + "no-css-cache", + "printing", + "size-request", + "snapshot", + "text", + "touchscreen", + "tree", +] +_DebugFlagsValueType: TypeAlias = ( + DebugFlags | _DebugFlagsLiteralType | tuple[_DebugFlagsLiteralType, ...] +) + class DialogFlags(GObject.GFlags): DESTROY_WITH_PARENT = 2 MODAL = 1 USE_HEADER_BAR = 4 +_DialogFlagsLiteralType: TypeAlias = Literal[ + "GTK_DIALOG_DESTROY_WITH_PARENT", + "GTK_DIALOG_MODAL", + "GTK_DIALOG_USE_HEADER_BAR", + "destroy-with-parent", + "modal", + "use-header-bar", +] +_DialogFlagsValueType: TypeAlias = ( + DialogFlags | _DialogFlagsLiteralType | tuple[_DialogFlagsLiteralType, ...] +) + class EventControllerScrollFlags(GObject.GFlags): BOTH_AXES = 3 DISCRETE = 4 @@ -31433,6 +32718,28 @@ class EventControllerScrollFlags(GObject.GFlags): PHYSICAL_DIRECTION = 16 VERTICAL = 1 +_EventControllerScrollFlagsLiteralType: TypeAlias = Literal[ + "GTK_EVENT_CONTROLLER_SCROLL_BOTH_AXES", + "GTK_EVENT_CONTROLLER_SCROLL_DISCRETE", + "GTK_EVENT_CONTROLLER_SCROLL_HORIZONTAL", + "GTK_EVENT_CONTROLLER_SCROLL_KINETIC", + "GTK_EVENT_CONTROLLER_SCROLL_NONE", + "GTK_EVENT_CONTROLLER_SCROLL_PHYSICAL_DIRECTION", + "GTK_EVENT_CONTROLLER_SCROLL_VERTICAL", + "both-axes", + "discrete", + "horizontal", + "kinetic", + "none", + "physical-direction", + "vertical", +] +_EventControllerScrollFlagsValueType: TypeAlias = ( + EventControllerScrollFlags + | _EventControllerScrollFlagsLiteralType + | tuple[_EventControllerScrollFlagsLiteralType, ...] +) + class FontChooserLevel(GObject.GFlags): FAMILY = 0 FEATURES = 8 @@ -31440,12 +32747,46 @@ class FontChooserLevel(GObject.GFlags): STYLE = 1 VARIATIONS = 4 +_FontChooserLevelLiteralType: TypeAlias = Literal[ + "GTK_FONT_CHOOSER_LEVEL_FAMILY", + "GTK_FONT_CHOOSER_LEVEL_FEATURES", + "GTK_FONT_CHOOSER_LEVEL_SIZE", + "GTK_FONT_CHOOSER_LEVEL_STYLE", + "GTK_FONT_CHOOSER_LEVEL_VARIATIONS", + "family", + "features", + "size", + "style", + "variations", +] +_FontChooserLevelValueType: TypeAlias = ( + FontChooserLevel + | _FontChooserLevelLiteralType + | tuple[_FontChooserLevelLiteralType, ...] +) + class IconLookupFlags(GObject.GFlags): FORCE_REGULAR = 1 FORCE_SYMBOLIC = 2 NONE = 0 PRELOAD = 4 +_IconLookupFlagsLiteralType: TypeAlias = Literal[ + "GTK_ICON_LOOKUP_FORCE_REGULAR", + "GTK_ICON_LOOKUP_FORCE_SYMBOLIC", + "GTK_ICON_LOOKUP_NONE", + "GTK_ICON_LOOKUP_PRELOAD", + "force-regular", + "force-symbolic", + "none", + "preload", +] +_IconLookupFlagsValueType: TypeAlias = ( + IconLookupFlags + | _IconLookupFlagsLiteralType + | tuple[_IconLookupFlagsLiteralType, ...] +) + class InputHints(GObject.GFlags): EMOJI = 512 INHIBIT_OSK = 128 @@ -31461,20 +32802,87 @@ class InputHints(GObject.GFlags): VERTICAL_WRITING = 256 WORD_COMPLETION = 4 +_InputHintsLiteralType: TypeAlias = Literal[ + "GTK_INPUT_HINT_EMOJI", + "GTK_INPUT_HINT_INHIBIT_OSK", + "GTK_INPUT_HINT_LOWERCASE", + "GTK_INPUT_HINT_NONE", + "GTK_INPUT_HINT_NO_EMOJI", + "GTK_INPUT_HINT_NO_SPELLCHECK", + "GTK_INPUT_HINT_PRIVATE", + "GTK_INPUT_HINT_SPELLCHECK", + "GTK_INPUT_HINT_UPPERCASE_CHARS", + "GTK_INPUT_HINT_UPPERCASE_SENTENCES", + "GTK_INPUT_HINT_UPPERCASE_WORDS", + "GTK_INPUT_HINT_VERTICAL_WRITING", + "GTK_INPUT_HINT_WORD_COMPLETION", + "emoji", + "inhibit-osk", + "lowercase", + "no-emoji", + "no-spellcheck", + "none", + "private", + "spellcheck", + "uppercase-chars", + "uppercase-sentences", + "uppercase-words", + "vertical-writing", + "word-completion", +] +_InputHintsValueType: TypeAlias = ( + InputHints | _InputHintsLiteralType | tuple[_InputHintsLiteralType, ...] +) + class ListScrollFlags(GObject.GFlags): FOCUS = 1 NONE = 0 SELECT = 2 +_ListScrollFlagsLiteralType: TypeAlias = Literal[ + "GTK_LIST_SCROLL_FOCUS", + "GTK_LIST_SCROLL_NONE", + "GTK_LIST_SCROLL_SELECT", + "focus", + "none", + "select", +] +_ListScrollFlagsValueType: TypeAlias = ( + ListScrollFlags + | _ListScrollFlagsLiteralType + | tuple[_ListScrollFlagsLiteralType, ...] +) + class PickFlags(GObject.GFlags): DEFAULT = 0 INSENSITIVE = 1 NON_TARGETABLE = 2 +_PickFlagsLiteralType: TypeAlias = Literal[ + "GTK_PICK_DEFAULT", + "GTK_PICK_INSENSITIVE", + "GTK_PICK_NON_TARGETABLE", + "default", + "insensitive", + "non-targetable", +] +_PickFlagsValueType: TypeAlias = ( + PickFlags | _PickFlagsLiteralType | tuple[_PickFlagsLiteralType, ...] +) + class PopoverMenuFlags(GObject.GFlags): NESTED = 1 SLIDING = 0 +_PopoverMenuFlagsLiteralType: TypeAlias = Literal[ + "GTK_POPOVER_MENU_NESTED", "GTK_POPOVER_MENU_SLIDING", "nested", "sliding" +] +_PopoverMenuFlagsValueType: TypeAlias = ( + PopoverMenuFlags + | _PopoverMenuFlagsLiteralType + | tuple[_PopoverMenuFlagsLiteralType, ...] +) + class PrintCapabilities(GObject.GFlags): COLLATE = 4 COPIES = 2 @@ -31487,9 +32895,46 @@ class PrintCapabilities(GObject.GFlags): REVERSE = 8 SCALE = 16 +_PrintCapabilitiesLiteralType: TypeAlias = Literal[ + "GTK_PRINT_CAPABILITY_COLLATE", + "GTK_PRINT_CAPABILITY_COPIES", + "GTK_PRINT_CAPABILITY_GENERATE_PDF", + "GTK_PRINT_CAPABILITY_GENERATE_PS", + "GTK_PRINT_CAPABILITY_NUMBER_UP", + "GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT", + "GTK_PRINT_CAPABILITY_PAGE_SET", + "GTK_PRINT_CAPABILITY_PREVIEW", + "GTK_PRINT_CAPABILITY_REVERSE", + "GTK_PRINT_CAPABILITY_SCALE", + "collate", + "copies", + "generate-pdf", + "generate-ps", + "number-up", + "number-up-layout", + "page-set", + "preview", + "reverse", + "scale", +] +_PrintCapabilitiesValueType: TypeAlias = ( + PrintCapabilities + | _PrintCapabilitiesLiteralType + | tuple[_PrintCapabilitiesLiteralType, ...] +) + class ShortcutActionFlags(GObject.GFlags): EXCLUSIVE = 1 +_ShortcutActionFlagsLiteralType: TypeAlias = Literal[ + "GTK_SHORTCUT_ACTION_EXCLUSIVE", "exclusive" +] +_ShortcutActionFlagsValueType: TypeAlias = ( + ShortcutActionFlags + | _ShortcutActionFlagsLiteralType + | tuple[_ShortcutActionFlagsLiteralType, ...] +) + class StateFlags(GObject.GFlags): ACTIVE = 1 BACKDROP = 64 @@ -31508,49 +32953,195 @@ class StateFlags(GObject.GFlags): SELECTED = 4 VISITED = 1024 +_StateFlagsLiteralType: TypeAlias = Literal[ + "GTK_STATE_FLAG_ACTIVE", + "GTK_STATE_FLAG_BACKDROP", + "GTK_STATE_FLAG_CHECKED", + "GTK_STATE_FLAG_DIR_LTR", + "GTK_STATE_FLAG_DIR_RTL", + "GTK_STATE_FLAG_DROP_ACTIVE", + "GTK_STATE_FLAG_FOCUSED", + "GTK_STATE_FLAG_FOCUS_VISIBLE", + "GTK_STATE_FLAG_FOCUS_WITHIN", + "GTK_STATE_FLAG_INCONSISTENT", + "GTK_STATE_FLAG_INSENSITIVE", + "GTK_STATE_FLAG_LINK", + "GTK_STATE_FLAG_NORMAL", + "GTK_STATE_FLAG_PRELIGHT", + "GTK_STATE_FLAG_SELECTED", + "GTK_STATE_FLAG_VISITED", + "active", + "backdrop", + "checked", + "dir-ltr", + "dir-rtl", + "drop-active", + "focus-visible", + "focus-within", + "focused", + "inconsistent", + "insensitive", + "link", + "normal", + "prelight", + "selected", + "visited", +] +_StateFlagsValueType: TypeAlias = ( + StateFlags | _StateFlagsLiteralType | tuple[_StateFlagsLiteralType, ...] +) + class StyleContextPrintFlags(GObject.GFlags): NONE = 0 RECURSE = 1 SHOW_CHANGE = 4 SHOW_STYLE = 2 +_StyleContextPrintFlagsLiteralType: TypeAlias = Literal[ + "GTK_STYLE_CONTEXT_PRINT_NONE", + "GTK_STYLE_CONTEXT_PRINT_RECURSE", + "GTK_STYLE_CONTEXT_PRINT_SHOW_CHANGE", + "GTK_STYLE_CONTEXT_PRINT_SHOW_STYLE", + "none", + "recurse", + "show-change", + "show-style", +] +_StyleContextPrintFlagsValueType: TypeAlias = ( + StyleContextPrintFlags + | _StyleContextPrintFlagsLiteralType + | tuple[_StyleContextPrintFlagsLiteralType, ...] +) + class TextBufferNotifyFlags(GObject.GFlags): AFTER_DELETE = 8 AFTER_INSERT = 2 BEFORE_DELETE = 4 BEFORE_INSERT = 1 +_TextBufferNotifyFlagsLiteralType: TypeAlias = Literal[ + "GTK_TEXT_BUFFER_NOTIFY_AFTER_DELETE", + "GTK_TEXT_BUFFER_NOTIFY_AFTER_INSERT", + "GTK_TEXT_BUFFER_NOTIFY_BEFORE_DELETE", + "GTK_TEXT_BUFFER_NOTIFY_BEFORE_INSERT", + "after-delete", + "after-insert", + "before-delete", + "before-insert", +] +_TextBufferNotifyFlagsValueType: TypeAlias = ( + TextBufferNotifyFlags + | _TextBufferNotifyFlagsLiteralType + | tuple[_TextBufferNotifyFlagsLiteralType, ...] +) + class TextSearchFlags(GObject.GFlags): CASE_INSENSITIVE = 4 TEXT_ONLY = 2 VISIBLE_ONLY = 1 +_TextSearchFlagsLiteralType: TypeAlias = Literal[ + "GTK_TEXT_SEARCH_CASE_INSENSITIVE", + "GTK_TEXT_SEARCH_TEXT_ONLY", + "GTK_TEXT_SEARCH_VISIBLE_ONLY", + "case-insensitive", + "text-only", + "visible-only", +] +_TextSearchFlagsValueType: TypeAlias = ( + TextSearchFlags + | _TextSearchFlagsLiteralType + | tuple[_TextSearchFlagsLiteralType, ...] +) + class TreeModelFlags(GObject.GFlags): ITERS_PERSIST = 1 LIST_ONLY = 2 +_TreeModelFlagsLiteralType: TypeAlias = Literal[ + "GTK_TREE_MODEL_ITERS_PERSIST", + "GTK_TREE_MODEL_LIST_ONLY", + "iters-persist", + "list-only", +] +_TreeModelFlagsValueType: TypeAlias = ( + TreeModelFlags | _TreeModelFlagsLiteralType | tuple[_TreeModelFlagsLiteralType, ...] +) + class AccessibleAnnouncementPriority(GObject.GEnum): HIGH = 2 LOW = 0 MEDIUM = 1 +_AccessibleAnnouncementPriorityLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_HIGH", + "GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_LOW", + "GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_MEDIUM", + "high", + "low", + "medium", +] +_AccessibleAnnouncementPriorityValueType: TypeAlias = ( + AccessibleAnnouncementPriority | _AccessibleAnnouncementPriorityLiteralType +) + class AccessibleAutocomplete(GObject.GEnum): BOTH = 3 INLINE = 1 LIST = 2 NONE = 0 +_AccessibleAutocompleteLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_AUTOCOMPLETE_BOTH", + "GTK_ACCESSIBLE_AUTOCOMPLETE_INLINE", + "GTK_ACCESSIBLE_AUTOCOMPLETE_LIST", + "GTK_ACCESSIBLE_AUTOCOMPLETE_NONE", + "both", + "inline", + "list", + "none", +] +_AccessibleAutocompleteValueType: TypeAlias = ( + AccessibleAutocomplete | _AccessibleAutocompleteLiteralType +) + class AccessibleInvalidState(GObject.GEnum): FALSE = 0 GRAMMAR = 2 SPELLING = 3 TRUE = 1 +_AccessibleInvalidStateLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_INVALID_FALSE", + "GTK_ACCESSIBLE_INVALID_GRAMMAR", + "GTK_ACCESSIBLE_INVALID_SPELLING", + "GTK_ACCESSIBLE_INVALID_TRUE", + "false", + "grammar", + "spelling", + "true", +] +_AccessibleInvalidStateValueType: TypeAlias = ( + AccessibleInvalidState | _AccessibleInvalidStateLiteralType +) + class AccessiblePlatformState(GObject.GEnum): ACTIVE = 2 FOCUSABLE = 0 FOCUSED = 1 +_AccessiblePlatformStateLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_PLATFORM_STATE_ACTIVE", + "GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSABLE", + "GTK_ACCESSIBLE_PLATFORM_STATE_FOCUSED", + "active", + "focusable", + "focused", +] +_AccessiblePlatformStateValueType: TypeAlias = ( + AccessiblePlatformState | _AccessiblePlatformStateLiteralType +) + class AccessibleProperty(GObject.GEnum): AUTOCOMPLETE = 0 DESCRIPTION = 1 @@ -31573,7 +33164,53 @@ class AccessibleProperty(GObject.GEnum): VALUE_NOW = 17 VALUE_TEXT = 18 @staticmethod - def init_value(property: AccessibleProperty, value: Any) -> None: ... + def init_value(property: _AccessiblePropertyValueType, value: Any) -> None: ... + +_AccessiblePropertyLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_PROPERTY_AUTOCOMPLETE", + "GTK_ACCESSIBLE_PROPERTY_DESCRIPTION", + "GTK_ACCESSIBLE_PROPERTY_HAS_POPUP", + "GTK_ACCESSIBLE_PROPERTY_HELP_TEXT", + "GTK_ACCESSIBLE_PROPERTY_KEY_SHORTCUTS", + "GTK_ACCESSIBLE_PROPERTY_LABEL", + "GTK_ACCESSIBLE_PROPERTY_LEVEL", + "GTK_ACCESSIBLE_PROPERTY_MODAL", + "GTK_ACCESSIBLE_PROPERTY_MULTI_LINE", + "GTK_ACCESSIBLE_PROPERTY_MULTI_SELECTABLE", + "GTK_ACCESSIBLE_PROPERTY_ORIENTATION", + "GTK_ACCESSIBLE_PROPERTY_PLACEHOLDER", + "GTK_ACCESSIBLE_PROPERTY_READ_ONLY", + "GTK_ACCESSIBLE_PROPERTY_REQUIRED", + "GTK_ACCESSIBLE_PROPERTY_ROLE_DESCRIPTION", + "GTK_ACCESSIBLE_PROPERTY_SORT", + "GTK_ACCESSIBLE_PROPERTY_VALUE_MAX", + "GTK_ACCESSIBLE_PROPERTY_VALUE_MIN", + "GTK_ACCESSIBLE_PROPERTY_VALUE_NOW", + "GTK_ACCESSIBLE_PROPERTY_VALUE_TEXT", + "autocomplete", + "description", + "has-popup", + "help-text", + "key-shortcuts", + "label", + "level", + "modal", + "multi-line", + "multi-selectable", + "orientation", + "placeholder", + "read-only", + "required", + "role-description", + "sort", + "value-max", + "value-min", + "value-now", + "value-text", +] +_AccessiblePropertyValueType: TypeAlias = ( + AccessibleProperty | _AccessiblePropertyLiteralType +) class AccessibleRelation(GObject.GEnum): ACTIVE_DESCENDANT = 0 @@ -31601,7 +33238,61 @@ class AccessibleRelation(GObject.GEnum): ROW_SPAN = 16 SET_SIZE = 17 @staticmethod - def init_value(relation: AccessibleRelation, value: Any) -> None: ... + def init_value(relation: _AccessibleRelationValueType, value: Any) -> None: ... + +_AccessibleRelationLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_RELATION_ACTIVE_DESCENDANT", + "GTK_ACCESSIBLE_RELATION_COL_COUNT", + "GTK_ACCESSIBLE_RELATION_COL_INDEX", + "GTK_ACCESSIBLE_RELATION_COL_INDEX_TEXT", + "GTK_ACCESSIBLE_RELATION_COL_SPAN", + "GTK_ACCESSIBLE_RELATION_CONTROLLED_BY", + "GTK_ACCESSIBLE_RELATION_CONTROLS", + "GTK_ACCESSIBLE_RELATION_DESCRIBED_BY", + "GTK_ACCESSIBLE_RELATION_DESCRIPTION_FOR", + "GTK_ACCESSIBLE_RELATION_DETAILS", + "GTK_ACCESSIBLE_RELATION_DETAILS_FOR", + "GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE", + "GTK_ACCESSIBLE_RELATION_ERROR_MESSAGE_FOR", + "GTK_ACCESSIBLE_RELATION_FLOW_FROM", + "GTK_ACCESSIBLE_RELATION_FLOW_TO", + "GTK_ACCESSIBLE_RELATION_LABELLED_BY", + "GTK_ACCESSIBLE_RELATION_LABEL_FOR", + "GTK_ACCESSIBLE_RELATION_OWNS", + "GTK_ACCESSIBLE_RELATION_POS_IN_SET", + "GTK_ACCESSIBLE_RELATION_ROW_COUNT", + "GTK_ACCESSIBLE_RELATION_ROW_INDEX", + "GTK_ACCESSIBLE_RELATION_ROW_INDEX_TEXT", + "GTK_ACCESSIBLE_RELATION_ROW_SPAN", + "GTK_ACCESSIBLE_RELATION_SET_SIZE", + "active-descendant", + "col-count", + "col-index", + "col-index-text", + "col-span", + "controlled-by", + "controls", + "described-by", + "description-for", + "details", + "details-for", + "error-message", + "error-message-for", + "flow-from", + "flow-to", + "label-for", + "labelled-by", + "owns", + "pos-in-set", + "row-count", + "row-index", + "row-index-text", + "row-span", + "set-size", +] +_AccessibleRelationValueType: TypeAlias = ( + AccessibleRelation | _AccessibleRelationLiteralType +) class AccessibleRole(GObject.GEnum): ALERT = 0 @@ -31690,12 +33381,198 @@ class AccessibleRole(GObject.GEnum): WIDGET = 76 WINDOW = 77 +_AccessibleRoleLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_ROLE_ALERT", + "GTK_ACCESSIBLE_ROLE_ALERT_DIALOG", + "GTK_ACCESSIBLE_ROLE_APPLICATION", + "GTK_ACCESSIBLE_ROLE_ARTICLE", + "GTK_ACCESSIBLE_ROLE_BANNER", + "GTK_ACCESSIBLE_ROLE_BLOCK_QUOTE", + "GTK_ACCESSIBLE_ROLE_BUTTON", + "GTK_ACCESSIBLE_ROLE_CAPTION", + "GTK_ACCESSIBLE_ROLE_CELL", + "GTK_ACCESSIBLE_ROLE_CHECKBOX", + "GTK_ACCESSIBLE_ROLE_COLUMN_HEADER", + "GTK_ACCESSIBLE_ROLE_COMBO_BOX", + "GTK_ACCESSIBLE_ROLE_COMMAND", + "GTK_ACCESSIBLE_ROLE_COMMENT", + "GTK_ACCESSIBLE_ROLE_COMPOSITE", + "GTK_ACCESSIBLE_ROLE_DIALOG", + "GTK_ACCESSIBLE_ROLE_DOCUMENT", + "GTK_ACCESSIBLE_ROLE_FEED", + "GTK_ACCESSIBLE_ROLE_FORM", + "GTK_ACCESSIBLE_ROLE_GENERIC", + "GTK_ACCESSIBLE_ROLE_GRID", + "GTK_ACCESSIBLE_ROLE_GRID_CELL", + "GTK_ACCESSIBLE_ROLE_GROUP", + "GTK_ACCESSIBLE_ROLE_HEADING", + "GTK_ACCESSIBLE_ROLE_IMG", + "GTK_ACCESSIBLE_ROLE_INPUT", + "GTK_ACCESSIBLE_ROLE_LABEL", + "GTK_ACCESSIBLE_ROLE_LANDMARK", + "GTK_ACCESSIBLE_ROLE_LEGEND", + "GTK_ACCESSIBLE_ROLE_LINK", + "GTK_ACCESSIBLE_ROLE_LIST", + "GTK_ACCESSIBLE_ROLE_LIST_BOX", + "GTK_ACCESSIBLE_ROLE_LIST_ITEM", + "GTK_ACCESSIBLE_ROLE_LOG", + "GTK_ACCESSIBLE_ROLE_MAIN", + "GTK_ACCESSIBLE_ROLE_MARQUEE", + "GTK_ACCESSIBLE_ROLE_MATH", + "GTK_ACCESSIBLE_ROLE_MENU", + "GTK_ACCESSIBLE_ROLE_MENU_BAR", + "GTK_ACCESSIBLE_ROLE_MENU_ITEM", + "GTK_ACCESSIBLE_ROLE_MENU_ITEM_CHECKBOX", + "GTK_ACCESSIBLE_ROLE_MENU_ITEM_RADIO", + "GTK_ACCESSIBLE_ROLE_METER", + "GTK_ACCESSIBLE_ROLE_NAVIGATION", + "GTK_ACCESSIBLE_ROLE_NONE", + "GTK_ACCESSIBLE_ROLE_NOTE", + "GTK_ACCESSIBLE_ROLE_OPTION", + "GTK_ACCESSIBLE_ROLE_PARAGRAPH", + "GTK_ACCESSIBLE_ROLE_PRESENTATION", + "GTK_ACCESSIBLE_ROLE_PROGRESS_BAR", + "GTK_ACCESSIBLE_ROLE_RADIO", + "GTK_ACCESSIBLE_ROLE_RADIO_GROUP", + "GTK_ACCESSIBLE_ROLE_RANGE", + "GTK_ACCESSIBLE_ROLE_REGION", + "GTK_ACCESSIBLE_ROLE_ROW", + "GTK_ACCESSIBLE_ROLE_ROW_GROUP", + "GTK_ACCESSIBLE_ROLE_ROW_HEADER", + "GTK_ACCESSIBLE_ROLE_SCROLLBAR", + "GTK_ACCESSIBLE_ROLE_SEARCH", + "GTK_ACCESSIBLE_ROLE_SEARCH_BOX", + "GTK_ACCESSIBLE_ROLE_SECTION", + "GTK_ACCESSIBLE_ROLE_SECTION_HEAD", + "GTK_ACCESSIBLE_ROLE_SELECT", + "GTK_ACCESSIBLE_ROLE_SEPARATOR", + "GTK_ACCESSIBLE_ROLE_SLIDER", + "GTK_ACCESSIBLE_ROLE_SPIN_BUTTON", + "GTK_ACCESSIBLE_ROLE_STATUS", + "GTK_ACCESSIBLE_ROLE_STRUCTURE", + "GTK_ACCESSIBLE_ROLE_SWITCH", + "GTK_ACCESSIBLE_ROLE_TAB", + "GTK_ACCESSIBLE_ROLE_TABLE", + "GTK_ACCESSIBLE_ROLE_TAB_LIST", + "GTK_ACCESSIBLE_ROLE_TAB_PANEL", + "GTK_ACCESSIBLE_ROLE_TERMINAL", + "GTK_ACCESSIBLE_ROLE_TEXT_BOX", + "GTK_ACCESSIBLE_ROLE_TIME", + "GTK_ACCESSIBLE_ROLE_TIMER", + "GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON", + "GTK_ACCESSIBLE_ROLE_TOOLBAR", + "GTK_ACCESSIBLE_ROLE_TOOLTIP", + "GTK_ACCESSIBLE_ROLE_TREE", + "GTK_ACCESSIBLE_ROLE_TREE_GRID", + "GTK_ACCESSIBLE_ROLE_TREE_ITEM", + "GTK_ACCESSIBLE_ROLE_WIDGET", + "GTK_ACCESSIBLE_ROLE_WINDOW", + "alert", + "alert-dialog", + "application", + "article", + "banner", + "block-quote", + "button", + "caption", + "cell", + "checkbox", + "column-header", + "combo-box", + "command", + "comment", + "composite", + "dialog", + "document", + "feed", + "form", + "generic", + "grid", + "grid-cell", + "group", + "heading", + "img", + "input", + "label", + "landmark", + "legend", + "link", + "list", + "list-box", + "list-item", + "log", + "main", + "marquee", + "math", + "menu", + "menu-bar", + "menu-item", + "menu-item-checkbox", + "menu-item-radio", + "meter", + "navigation", + "none", + "note", + "option", + "paragraph", + "presentation", + "progress-bar", + "radio", + "radio-group", + "range", + "region", + "row", + "row-group", + "row-header", + "scrollbar", + "search", + "search-box", + "section", + "section-head", + "select", + "separator", + "slider", + "spin-button", + "status", + "structure", + "switch", + "tab", + "tab-list", + "tab-panel", + "table", + "terminal", + "text-box", + "time", + "timer", + "toggle-button", + "toolbar", + "tooltip", + "tree", + "tree-grid", + "tree-item", + "widget", + "window", +] +_AccessibleRoleValueType: TypeAlias = AccessibleRole | _AccessibleRoleLiteralType + class AccessibleSort(GObject.GEnum): ASCENDING = 1 DESCENDING = 2 NONE = 0 OTHER = 3 +_AccessibleSortLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_SORT_ASCENDING", + "GTK_ACCESSIBLE_SORT_DESCENDING", + "GTK_ACCESSIBLE_SORT_NONE", + "GTK_ACCESSIBLE_SORT_OTHER", + "ascending", + "descending", + "none", + "other", +] +_AccessibleSortValueType: TypeAlias = AccessibleSort | _AccessibleSortLiteralType + class AccessibleState(GObject.GEnum): BUSY = 0 CHECKED = 1 @@ -31707,12 +33584,44 @@ class AccessibleState(GObject.GEnum): SELECTED = 7 VISITED = 8 @staticmethod - def init_value(state: AccessibleState, value: Any) -> None: ... + def init_value(state: _AccessibleStateValueType, value: Any) -> None: ... + +_AccessibleStateLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_STATE_BUSY", + "GTK_ACCESSIBLE_STATE_CHECKED", + "GTK_ACCESSIBLE_STATE_DISABLED", + "GTK_ACCESSIBLE_STATE_EXPANDED", + "GTK_ACCESSIBLE_STATE_HIDDEN", + "GTK_ACCESSIBLE_STATE_INVALID", + "GTK_ACCESSIBLE_STATE_PRESSED", + "GTK_ACCESSIBLE_STATE_SELECTED", + "GTK_ACCESSIBLE_STATE_VISITED", + "busy", + "checked", + "disabled", + "expanded", + "hidden", + "invalid", + "pressed", + "selected", + "visited", +] +_AccessibleStateValueType: TypeAlias = AccessibleState | _AccessibleStateLiteralType class AccessibleTextContentChange(GObject.GEnum): INSERT = 0 REMOVE = 1 +_AccessibleTextContentChangeLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_TEXT_CONTENT_CHANGE_INSERT", + "GTK_ACCESSIBLE_TEXT_CONTENT_CHANGE_REMOVE", + "insert", + "remove", +] +_AccessibleTextContentChangeValueType: TypeAlias = ( + AccessibleTextContentChange | _AccessibleTextContentChangeLiteralType +) + class AccessibleTextGranularity(GObject.GEnum): CHARACTER = 0 LINE = 3 @@ -31720,11 +33629,39 @@ class AccessibleTextGranularity(GObject.GEnum): SENTENCE = 2 WORD = 1 +_AccessibleTextGranularityLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_TEXT_GRANULARITY_CHARACTER", + "GTK_ACCESSIBLE_TEXT_GRANULARITY_LINE", + "GTK_ACCESSIBLE_TEXT_GRANULARITY_PARAGRAPH", + "GTK_ACCESSIBLE_TEXT_GRANULARITY_SENTENCE", + "GTK_ACCESSIBLE_TEXT_GRANULARITY_WORD", + "character", + "line", + "paragraph", + "sentence", + "word", +] +_AccessibleTextGranularityValueType: TypeAlias = ( + AccessibleTextGranularity | _AccessibleTextGranularityLiteralType +) + class AccessibleTristate(GObject.GEnum): FALSE = 0 MIXED = 2 TRUE = 1 +_AccessibleTristateLiteralType: TypeAlias = Literal[ + "GTK_ACCESSIBLE_TRISTATE_FALSE", + "GTK_ACCESSIBLE_TRISTATE_MIXED", + "GTK_ACCESSIBLE_TRISTATE_TRUE", + "false", + "mixed", + "true", +] +_AccessibleTristateValueType: TypeAlias = ( + AccessibleTristate | _AccessibleTristateLiteralType +) + class Align(GObject.GEnum): BASELINE = 4 BASELINE_CENTER = 5 @@ -31734,6 +33671,22 @@ class Align(GObject.GEnum): FILL = 0 START = 1 +_AlignLiteralType: TypeAlias = Literal[ + "GTK_ALIGN_BASELINE_CENTER", + "GTK_ALIGN_BASELINE_FILL", + "GTK_ALIGN_CENTER", + "GTK_ALIGN_END", + "GTK_ALIGN_FILL", + "GTK_ALIGN_START", + "baseline-center", + "baseline-fill", + "center", + "end", + "fill", + "start", +] +_AlignValueType: TypeAlias = Align | _AlignLiteralType + class ArrowType(GObject.GEnum): DOWN = 1 LEFT = 2 @@ -31741,6 +33694,20 @@ class ArrowType(GObject.GEnum): RIGHT = 3 UP = 0 +_ArrowTypeLiteralType: TypeAlias = Literal[ + "GTK_ARROW_DOWN", + "GTK_ARROW_LEFT", + "GTK_ARROW_NONE", + "GTK_ARROW_RIGHT", + "GTK_ARROW_UP", + "down", + "left", + "none", + "right", + "up", +] +_ArrowTypeValueType: TypeAlias = ArrowType | _ArrowTypeLiteralType + class AssistantPageType(GObject.GEnum): CONFIRM = 2 CONTENT = 0 @@ -31749,11 +33716,39 @@ class AssistantPageType(GObject.GEnum): PROGRESS = 4 SUMMARY = 3 +_AssistantPageTypeLiteralType: TypeAlias = Literal[ + "GTK_ASSISTANT_PAGE_CONFIRM", + "GTK_ASSISTANT_PAGE_CONTENT", + "GTK_ASSISTANT_PAGE_CUSTOM", + "GTK_ASSISTANT_PAGE_INTRO", + "GTK_ASSISTANT_PAGE_PROGRESS", + "GTK_ASSISTANT_PAGE_SUMMARY", + "confirm", + "content", + "custom", + "intro", + "progress", + "summary", +] +_AssistantPageTypeValueType: TypeAlias = ( + AssistantPageType | _AssistantPageTypeLiteralType +) + class BaselinePosition(GObject.GEnum): BOTTOM = 2 CENTER = 1 TOP = 0 +_BaselinePositionLiteralType: TypeAlias = Literal[ + "GTK_BASELINE_POSITION_BOTTOM", + "GTK_BASELINE_POSITION_CENTER", + "GTK_BASELINE_POSITION_TOP", + "bottom", + "center", + "top", +] +_BaselinePositionValueType: TypeAlias = BaselinePosition | _BaselinePositionLiteralType + class BorderStyle(GObject.GEnum): DASHED = 6 DOTTED = 5 @@ -31766,6 +33761,30 @@ class BorderStyle(GObject.GEnum): RIDGE = 9 SOLID = 2 +_BorderStyleLiteralType: TypeAlias = Literal[ + "GTK_BORDER_STYLE_DASHED", + "GTK_BORDER_STYLE_DOTTED", + "GTK_BORDER_STYLE_DOUBLE", + "GTK_BORDER_STYLE_GROOVE", + "GTK_BORDER_STYLE_HIDDEN", + "GTK_BORDER_STYLE_INSET", + "GTK_BORDER_STYLE_NONE", + "GTK_BORDER_STYLE_OUTSET", + "GTK_BORDER_STYLE_RIDGE", + "GTK_BORDER_STYLE_SOLID", + "dashed", + "dotted", + "double", + "groove", + "hidden", + "inset", + "none", + "outset", + "ridge", + "solid", +] +_BorderStyleValueType: TypeAlias = BorderStyle | _BorderStyleLiteralType + class BuilderError(GObject.GEnum): DUPLICATE_ID = 8 INVALID_ATTRIBUTE = 3 @@ -31785,6 +33804,40 @@ class BuilderError(GObject.GEnum): @staticmethod def quark() -> int: ... +_BuilderErrorLiteralType: TypeAlias = Literal[ + "GTK_BUILDER_ERROR_DUPLICATE_ID", + "GTK_BUILDER_ERROR_INVALID_ATTRIBUTE", + "GTK_BUILDER_ERROR_INVALID_FUNCTION", + "GTK_BUILDER_ERROR_INVALID_ID", + "GTK_BUILDER_ERROR_INVALID_PROPERTY", + "GTK_BUILDER_ERROR_INVALID_SIGNAL", + "GTK_BUILDER_ERROR_INVALID_TAG", + "GTK_BUILDER_ERROR_INVALID_TYPE_FUNCTION", + "GTK_BUILDER_ERROR_INVALID_VALUE", + "GTK_BUILDER_ERROR_MISSING_ATTRIBUTE", + "GTK_BUILDER_ERROR_MISSING_PROPERTY_VALUE", + "GTK_BUILDER_ERROR_OBJECT_TYPE_REFUSED", + "GTK_BUILDER_ERROR_TEMPLATE_MISMATCH", + "GTK_BUILDER_ERROR_UNHANDLED_TAG", + "GTK_BUILDER_ERROR_VERSION_MISMATCH", + "duplicate-id", + "invalid-attribute", + "invalid-function", + "invalid-id", + "invalid-property", + "invalid-signal", + "invalid-tag", + "invalid-type-function", + "invalid-value", + "missing-attribute", + "missing-property-value", + "object-type-refused", + "template-mismatch", + "unhandled-tag", + "version-mismatch", +] +_BuilderErrorValueType: TypeAlias = BuilderError | _BuilderErrorLiteralType + class ButtonsType(GObject.GEnum): CANCEL = 3 CLOSE = 2 @@ -31793,20 +33846,66 @@ class ButtonsType(GObject.GEnum): OK_CANCEL = 5 YES_NO = 4 +_ButtonsTypeLiteralType: TypeAlias = Literal[ + "GTK_BUTTONS_CANCEL", + "GTK_BUTTONS_CLOSE", + "GTK_BUTTONS_NONE", + "GTK_BUTTONS_OK", + "GTK_BUTTONS_OK_CANCEL", + "GTK_BUTTONS_YES_NO", + "cancel", + "close", + "none", + "ok", + "ok-cancel", + "yes-no", +] +_ButtonsTypeValueType: TypeAlias = ButtonsType | _ButtonsTypeLiteralType + class CellRendererAccelMode(GObject.GEnum): GTK = 0 OTHER = 1 +_CellRendererAccelModeLiteralType: TypeAlias = Literal[ + "GTK_CELL_RENDERER_ACCEL_MODE_GTK", + "GTK_CELL_RENDERER_ACCEL_MODE_OTHER", + "gtk", + "other", +] +_CellRendererAccelModeValueType: TypeAlias = ( + CellRendererAccelMode | _CellRendererAccelModeLiteralType +) + class CellRendererMode(GObject.GEnum): ACTIVATABLE = 1 EDITABLE = 2 INERT = 0 +_CellRendererModeLiteralType: TypeAlias = Literal[ + "GTK_CELL_RENDERER_MODE_ACTIVATABLE", + "GTK_CELL_RENDERER_MODE_EDITABLE", + "GTK_CELL_RENDERER_MODE_INERT", + "activatable", + "editable", + "inert", +] +_CellRendererModeValueType: TypeAlias = CellRendererMode | _CellRendererModeLiteralType + class Collation(GObject.GEnum): FILENAME = 2 NONE = 0 UNICODE = 1 +_CollationLiteralType: TypeAlias = Literal[ + "GTK_COLLATION_FILENAME", + "GTK_COLLATION_NONE", + "GTK_COLLATION_UNICODE", + "filename", + "none", + "unicode", +] +_CollationValueType: TypeAlias = Collation | _CollationLiteralType + class ConstraintAttribute(GObject.GEnum): BASELINE = 11 BOTTOM = 4 @@ -31821,17 +33920,73 @@ class ConstraintAttribute(GObject.GEnum): TOP = 3 WIDTH = 7 +_ConstraintAttributeLiteralType: TypeAlias = Literal[ + "GTK_CONSTRAINT_ATTRIBUTE_BASELINE", + "GTK_CONSTRAINT_ATTRIBUTE_BOTTOM", + "GTK_CONSTRAINT_ATTRIBUTE_CENTER_X", + "GTK_CONSTRAINT_ATTRIBUTE_CENTER_Y", + "GTK_CONSTRAINT_ATTRIBUTE_END", + "GTK_CONSTRAINT_ATTRIBUTE_HEIGHT", + "GTK_CONSTRAINT_ATTRIBUTE_LEFT", + "GTK_CONSTRAINT_ATTRIBUTE_NONE", + "GTK_CONSTRAINT_ATTRIBUTE_RIGHT", + "GTK_CONSTRAINT_ATTRIBUTE_START", + "GTK_CONSTRAINT_ATTRIBUTE_TOP", + "GTK_CONSTRAINT_ATTRIBUTE_WIDTH", + "baseline", + "bottom", + "center-x", + "center-y", + "end", + "height", + "left", + "none", + "right", + "start", + "top", + "width", +] +_ConstraintAttributeValueType: TypeAlias = ( + ConstraintAttribute | _ConstraintAttributeLiteralType +) + class ConstraintRelation(GObject.GEnum): EQ = 0 GE = 1 LE = -1 +_ConstraintRelationLiteralType: TypeAlias = Literal[ + "GTK_CONSTRAINT_RELATION_EQ", + "GTK_CONSTRAINT_RELATION_GE", + "GTK_CONSTRAINT_RELATION_LE", + "eq", + "ge", + "le", +] +_ConstraintRelationValueType: TypeAlias = ( + ConstraintRelation | _ConstraintRelationLiteralType +) + class ConstraintStrength(GObject.GEnum): MEDIUM = 1000 REQUIRED = 1001001000 STRONG = 1000000000 WEAK = 1 +_ConstraintStrengthLiteralType: TypeAlias = Literal[ + "GTK_CONSTRAINT_STRENGTH_MEDIUM", + "GTK_CONSTRAINT_STRENGTH_REQUIRED", + "GTK_CONSTRAINT_STRENGTH_STRONG", + "GTK_CONSTRAINT_STRENGTH_WEAK", + "medium", + "required", + "strong", + "weak", +] +_ConstraintStrengthValueType: TypeAlias = ( + ConstraintStrength | _ConstraintStrengthLiteralType +) + class ConstraintVflParserError(GObject.GEnum): ATTRIBUTE = 1 METRIC = 3 @@ -31842,18 +33997,60 @@ class ConstraintVflParserError(GObject.GEnum): @staticmethod def quark() -> int: ... +_ConstraintVflParserErrorLiteralType: TypeAlias = Literal[ + "GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_ATTRIBUTE", + "GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_METRIC", + "GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_PRIORITY", + "GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_RELATION", + "GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_SYMBOL", + "GTK_CONSTRAINT_VFL_PARSER_ERROR_INVALID_VIEW", + "attribute", + "metric", + "priority", + "relation", + "symbol", + "view", +] +_ConstraintVflParserErrorValueType: TypeAlias = ( + ConstraintVflParserError | _ConstraintVflParserErrorLiteralType +) + class ContentFit(GObject.GEnum): CONTAIN = 1 COVER = 2 FILL = 0 SCALE_DOWN = 3 +_ContentFitLiteralType: TypeAlias = Literal[ + "GTK_CONTENT_FIT_CONTAIN", + "GTK_CONTENT_FIT_COVER", + "GTK_CONTENT_FIT_FILL", + "GTK_CONTENT_FIT_SCALE_DOWN", + "contain", + "cover", + "fill", + "scale-down", +] +_ContentFitValueType: TypeAlias = ContentFit | _ContentFitLiteralType + class CornerType(GObject.GEnum): BOTTOM_LEFT = 1 BOTTOM_RIGHT = 3 TOP_LEFT = 0 TOP_RIGHT = 2 +_CornerTypeLiteralType: TypeAlias = Literal[ + "GTK_CORNER_BOTTOM_LEFT", + "GTK_CORNER_BOTTOM_RIGHT", + "GTK_CORNER_TOP_LEFT", + "GTK_CORNER_TOP_RIGHT", + "bottom-left", + "bottom-right", + "top-left", + "top-right", +] +_CornerTypeValueType: TypeAlias = CornerType | _CornerTypeLiteralType + class CssParserError(IntEnum): FAILED = 0 IMPORT = 2 @@ -31876,6 +34073,26 @@ class DeleteType(GObject.GEnum): WORDS = 2 WORD_ENDS = 1 +_DeleteTypeLiteralType: TypeAlias = Literal[ + "GTK_DELETE_CHARS", + "GTK_DELETE_DISPLAY_LINES", + "GTK_DELETE_DISPLAY_LINE_ENDS", + "GTK_DELETE_PARAGRAPHS", + "GTK_DELETE_PARAGRAPH_ENDS", + "GTK_DELETE_WHITESPACE", + "GTK_DELETE_WORDS", + "GTK_DELETE_WORD_ENDS", + "chars", + "display-line-ends", + "display-lines", + "paragraph-ends", + "paragraphs", + "whitespace", + "word-ends", + "words", +] +_DeleteTypeValueType: TypeAlias = DeleteType | _DeleteTypeLiteralType + class DialogError(GObject.GEnum): CANCELLED = 1 DISMISSED = 2 @@ -31883,6 +34100,16 @@ class DialogError(GObject.GEnum): @staticmethod def quark() -> int: ... +_DialogErrorLiteralType: TypeAlias = Literal[ + "GTK_DIALOG_ERROR_CANCELLED", + "GTK_DIALOG_ERROR_DISMISSED", + "GTK_DIALOG_ERROR_FAILED", + "cancelled", + "dismissed", + "failed", +] +_DialogErrorValueType: TypeAlias = DialogError | _DialogErrorLiteralType + class DirectionType(GObject.GEnum): DOWN = 3 LEFT = 4 @@ -31891,6 +34118,22 @@ class DirectionType(GObject.GEnum): TAB_FORWARD = 0 UP = 2 +_DirectionTypeLiteralType: TypeAlias = Literal[ + "GTK_DIR_DOWN", + "GTK_DIR_LEFT", + "GTK_DIR_RIGHT", + "GTK_DIR_TAB_BACKWARD", + "GTK_DIR_TAB_FORWARD", + "GTK_DIR_UP", + "down", + "left", + "right", + "tab-backward", + "tab-forward", + "up", +] +_DirectionTypeValueType: TypeAlias = DirectionType | _DirectionTypeLiteralType + class EditableProperties(GObject.GEnum): NUM_PROPERTIES = 8 PROP_CURSOR_POSITION = 1 @@ -31902,20 +34145,75 @@ class EditableProperties(GObject.GEnum): PROP_WIDTH_CHARS = 4 PROP_XALIGN = 6 +_EditablePropertiesLiteralType: TypeAlias = Literal[ + "GTK_EDITABLE_NUM_PROPERTIES", + "GTK_EDITABLE_PROP_CURSOR_POSITION", + "GTK_EDITABLE_PROP_EDITABLE", + "GTK_EDITABLE_PROP_ENABLE_UNDO", + "GTK_EDITABLE_PROP_MAX_WIDTH_CHARS", + "GTK_EDITABLE_PROP_SELECTION_BOUND", + "GTK_EDITABLE_PROP_TEXT", + "GTK_EDITABLE_PROP_WIDTH_CHARS", + "GTK_EDITABLE_PROP_XALIGN", + "num-properties", + "prop-cursor-position", + "prop-editable", + "prop-enable-undo", + "prop-max-width-chars", + "prop-selection-bound", + "prop-text", + "prop-width-chars", + "prop-xalign", +] +_EditablePropertiesValueType: TypeAlias = ( + EditableProperties | _EditablePropertiesLiteralType +) + class EntryIconPosition(GObject.GEnum): PRIMARY = 0 SECONDARY = 1 +_EntryIconPositionLiteralType: TypeAlias = Literal[ + "GTK_ENTRY_ICON_PRIMARY", "GTK_ENTRY_ICON_SECONDARY", "primary", "secondary" +] +_EntryIconPositionValueType: TypeAlias = ( + EntryIconPosition | _EntryIconPositionLiteralType +) + class EventSequenceState(GObject.GEnum): CLAIMED = 1 DENIED = 2 NONE = 0 +_EventSequenceStateLiteralType: TypeAlias = Literal[ + "GTK_EVENT_SEQUENCE_CLAIMED", + "GTK_EVENT_SEQUENCE_DENIED", + "GTK_EVENT_SEQUENCE_NONE", + "claimed", + "denied", + "none", +] +_EventSequenceStateValueType: TypeAlias = ( + EventSequenceState | _EventSequenceStateLiteralType +) + class FileChooserAction(GObject.GEnum): OPEN = 0 SAVE = 1 SELECT_FOLDER = 2 +_FileChooserActionLiteralType: TypeAlias = Literal[ + "GTK_FILE_CHOOSER_ACTION_OPEN", + "GTK_FILE_CHOOSER_ACTION_SAVE", + "GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER", + "open", + "save", + "select-folder", +] +_FileChooserActionValueType: TypeAlias = ( + FileChooserAction | _FileChooserActionLiteralType +) + class FileChooserError(GObject.GEnum): ALREADY_EXISTS = 2 BAD_FILENAME = 1 @@ -31924,6 +34222,18 @@ class FileChooserError(GObject.GEnum): @staticmethod def quark() -> int: ... +_FileChooserErrorLiteralType: TypeAlias = Literal[ + "GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS", + "GTK_FILE_CHOOSER_ERROR_BAD_FILENAME", + "GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME", + "GTK_FILE_CHOOSER_ERROR_NONEXISTENT", + "already-exists", + "bad-filename", + "incomplete-hostname", + "nonexistent", +] +_FileChooserErrorValueType: TypeAlias = FileChooserError | _FileChooserErrorLiteralType + class FilterChange(GObject.GEnum): DIFFERENT = 0 DIFFERENT_REWATCH = 3 @@ -31932,36 +34242,104 @@ class FilterChange(GObject.GEnum): MORE_STRICT = 2 MORE_STRICT_REWATCH = 5 +_FilterChangeLiteralType: TypeAlias = Literal[ + "GTK_FILTER_CHANGE_DIFFERENT", + "GTK_FILTER_CHANGE_DIFFERENT_REWATCH", + "GTK_FILTER_CHANGE_LESS_STRICT", + "GTK_FILTER_CHANGE_LESS_STRICT_REWATCH", + "GTK_FILTER_CHANGE_MORE_STRICT", + "GTK_FILTER_CHANGE_MORE_STRICT_REWATCH", + "different", + "different-rewatch", + "less-strict", + "less-strict-rewatch", + "more-strict", + "more-strict-rewatch", +] +_FilterChangeValueType: TypeAlias = FilterChange | _FilterChangeLiteralType + class FilterMatch(GObject.GEnum): ALL = 2 NONE = 1 SOME = 0 +_FilterMatchLiteralType: TypeAlias = Literal[ + "GTK_FILTER_MATCH_ALL", + "GTK_FILTER_MATCH_NONE", + "GTK_FILTER_MATCH_SOME", + "all", + "none", + "some", +] +_FilterMatchValueType: TypeAlias = FilterMatch | _FilterMatchLiteralType + class FontLevel(GObject.GEnum): FACE = 1 FAMILY = 0 FEATURES = 3 FONT = 2 +_FontLevelLiteralType: TypeAlias = Literal[ + "GTK_FONT_LEVEL_FACE", + "GTK_FONT_LEVEL_FAMILY", + "GTK_FONT_LEVEL_FEATURES", + "GTK_FONT_LEVEL_FONT", + "face", + "family", + "features", + "font", +] +_FontLevelValueType: TypeAlias = FontLevel | _FontLevelLiteralType + class FontRendering(GObject.GEnum): AUTOMATIC = 0 MANUAL = 1 +_FontRenderingLiteralType: TypeAlias = Literal[ + "GTK_FONT_RENDERING_AUTOMATIC", "GTK_FONT_RENDERING_MANUAL", "automatic", "manual" +] +_FontRenderingValueType: TypeAlias = FontRendering | _FontRenderingLiteralType + class GraphicsOffloadEnabled(GObject.GEnum): DISABLED = 1 ENABLED = 0 +_GraphicsOffloadEnabledLiteralType: TypeAlias = Literal[ + "GTK_GRAPHICS_OFFLOAD_DISABLED", + "GTK_GRAPHICS_OFFLOAD_ENABLED", + "disabled", + "enabled", +] +_GraphicsOffloadEnabledValueType: TypeAlias = ( + GraphicsOffloadEnabled | _GraphicsOffloadEnabledLiteralType +) + class IconSize(GObject.GEnum): INHERIT = 0 LARGE = 2 NORMAL = 1 +_IconSizeLiteralType: TypeAlias = Literal[ + "GTK_ICON_SIZE_INHERIT", + "GTK_ICON_SIZE_LARGE", + "GTK_ICON_SIZE_NORMAL", + "inherit", + "large", + "normal", +] +_IconSizeValueType: TypeAlias = IconSize | _IconSizeLiteralType + class IconThemeError(GObject.GEnum): FAILED = 1 NOT_FOUND = 0 @staticmethod def quark() -> int: ... +_IconThemeErrorLiteralType: TypeAlias = Literal[ + "GTK_ICON_THEME_FAILED", "GTK_ICON_THEME_NOT_FOUND", "failed", "not-found" +] +_IconThemeErrorValueType: TypeAlias = IconThemeError | _IconThemeErrorLiteralType + class IconViewDropPosition(GObject.GEnum): DROP_ABOVE = 4 DROP_BELOW = 5 @@ -31970,12 +34348,42 @@ class IconViewDropPosition(GObject.GEnum): DROP_RIGHT = 3 NO_DROP = 0 +_IconViewDropPositionLiteralType: TypeAlias = Literal[ + "GTK_ICON_VIEW_DROP_ABOVE", + "GTK_ICON_VIEW_DROP_BELOW", + "GTK_ICON_VIEW_DROP_INTO", + "GTK_ICON_VIEW_DROP_LEFT", + "GTK_ICON_VIEW_DROP_RIGHT", + "GTK_ICON_VIEW_NO_DROP", + "drop-above", + "drop-below", + "drop-into", + "drop-left", + "drop-right", + "no-drop", +] +_IconViewDropPositionValueType: TypeAlias = ( + IconViewDropPosition | _IconViewDropPositionLiteralType +) + class ImageType(GObject.GEnum): EMPTY = 0 GICON = 2 ICON_NAME = 1 PAINTABLE = 3 +_ImageTypeLiteralType: TypeAlias = Literal[ + "GTK_IMAGE_EMPTY", + "GTK_IMAGE_GICON", + "GTK_IMAGE_ICON_NAME", + "GTK_IMAGE_PAINTABLE", + "empty", + "gicon", + "icon-name", + "paintable", +] +_ImageTypeValueType: TypeAlias = ImageType | _ImageTypeLiteralType + class InputPurpose(GObject.GEnum): ALPHA = 1 DIGITS = 2 @@ -31989,34 +34397,122 @@ class InputPurpose(GObject.GEnum): TERMINAL = 10 URL = 5 +_InputPurposeLiteralType: TypeAlias = Literal[ + "GTK_INPUT_PURPOSE_ALPHA", + "GTK_INPUT_PURPOSE_DIGITS", + "GTK_INPUT_PURPOSE_EMAIL", + "GTK_INPUT_PURPOSE_FREE_FORM", + "GTK_INPUT_PURPOSE_NAME", + "GTK_INPUT_PURPOSE_NUMBER", + "GTK_INPUT_PURPOSE_PASSWORD", + "GTK_INPUT_PURPOSE_PHONE", + "GTK_INPUT_PURPOSE_PIN", + "GTK_INPUT_PURPOSE_TERMINAL", + "GTK_INPUT_PURPOSE_URL", + "alpha", + "digits", + "email", + "free-form", + "name", + "number", + "password", + "phone", + "pin", + "terminal", + "url", +] +_InputPurposeValueType: TypeAlias = InputPurpose | _InputPurposeLiteralType + class InscriptionOverflow(GObject.GEnum): CLIP = 0 ELLIPSIZE_END = 3 ELLIPSIZE_MIDDLE = 2 ELLIPSIZE_START = 1 +_InscriptionOverflowLiteralType: TypeAlias = Literal[ + "GTK_INSCRIPTION_OVERFLOW_CLIP", + "GTK_INSCRIPTION_OVERFLOW_ELLIPSIZE_END", + "GTK_INSCRIPTION_OVERFLOW_ELLIPSIZE_MIDDLE", + "GTK_INSCRIPTION_OVERFLOW_ELLIPSIZE_START", + "clip", + "ellipsize-end", + "ellipsize-middle", + "ellipsize-start", +] +_InscriptionOverflowValueType: TypeAlias = ( + InscriptionOverflow | _InscriptionOverflowLiteralType +) + class InterfaceColorScheme(GObject.GEnum): DARK = 2 DEFAULT = 1 LIGHT = 3 UNSUPPORTED = 0 +_InterfaceColorSchemeLiteralType: TypeAlias = Literal[ + "GTK_INTERFACE_COLOR_SCHEME_DARK", + "GTK_INTERFACE_COLOR_SCHEME_DEFAULT", + "GTK_INTERFACE_COLOR_SCHEME_LIGHT", + "GTK_INTERFACE_COLOR_SCHEME_UNSUPPORTED", + "dark", + "default", + "light", + "unsupported", +] +_InterfaceColorSchemeValueType: TypeAlias = ( + InterfaceColorScheme | _InterfaceColorSchemeLiteralType +) + class InterfaceContrast(GObject.GEnum): LESS = 3 MORE = 2 NO_PREFERENCE = 1 UNSUPPORTED = 0 +_InterfaceContrastLiteralType: TypeAlias = Literal[ + "GTK_INTERFACE_CONTRAST_LESS", + "GTK_INTERFACE_CONTRAST_MORE", + "GTK_INTERFACE_CONTRAST_NO_PREFERENCE", + "GTK_INTERFACE_CONTRAST_UNSUPPORTED", + "less", + "more", + "no-preference", + "unsupported", +] +_InterfaceContrastValueType: TypeAlias = ( + InterfaceContrast | _InterfaceContrastLiteralType +) + class Justification(GObject.GEnum): CENTER = 2 FILL = 3 LEFT = 0 RIGHT = 1 +_JustificationLiteralType: TypeAlias = Literal[ + "GTK_JUSTIFY_CENTER", + "GTK_JUSTIFY_FILL", + "GTK_JUSTIFY_LEFT", + "GTK_JUSTIFY_RIGHT", + "center", + "fill", + "left", + "right", +] +_JustificationValueType: TypeAlias = Justification | _JustificationLiteralType + class LevelBarMode(GObject.GEnum): CONTINUOUS = 0 DISCRETE = 1 +_LevelBarModeLiteralType: TypeAlias = Literal[ + "GTK_LEVEL_BAR_MODE_CONTINUOUS", + "GTK_LEVEL_BAR_MODE_DISCRETE", + "continuous", + "discrete", +] +_LevelBarModeValueType: TypeAlias = LevelBarMode | _LevelBarModeLiteralType + class License(GObject.GEnum): AGPL_3_0 = 13 AGPL_3_0_ONLY = 14 @@ -32037,11 +34533,56 @@ class License(GObject.GEnum): MPL_2_0 = 17 UNKNOWN = 0 +_LicenseLiteralType: TypeAlias = Literal[ + "GTK_LICENSE_AGPL_3_0", + "GTK_LICENSE_AGPL_3_0_ONLY", + "GTK_LICENSE_APACHE_2_0", + "GTK_LICENSE_ARTISTIC", + "GTK_LICENSE_BSD", + "GTK_LICENSE_BSD_3", + "GTK_LICENSE_CUSTOM", + "GTK_LICENSE_GPL_2_0", + "GTK_LICENSE_GPL_2_0_ONLY", + "GTK_LICENSE_GPL_3_0", + "GTK_LICENSE_GPL_3_0_ONLY", + "GTK_LICENSE_LGPL_2_1", + "GTK_LICENSE_LGPL_2_1_ONLY", + "GTK_LICENSE_LGPL_3_0", + "GTK_LICENSE_LGPL_3_0_ONLY", + "GTK_LICENSE_MIT_X11", + "GTK_LICENSE_MPL_2_0", + "GTK_LICENSE_UNKNOWN", + "agpl-3-0", + "agpl-3-0-only", + "apache-2-0", + "artistic", + "bsd", + "bsd-3", + "custom", + "gpl-2-0", + "gpl-2-0-only", + "gpl-3-0", + "gpl-3-0-only", + "lgpl-2-1", + "lgpl-2-1-only", + "lgpl-3-0", + "lgpl-3-0-only", + "mit-x11", + "mpl-2-0", + "unknown", +] +_LicenseValueType: TypeAlias = License | _LicenseLiteralType + class ListTabBehavior(GObject.GEnum): ALL = 0 CELL = 2 ITEM = 1 +_ListTabBehaviorLiteralType: TypeAlias = Literal[ + "GTK_LIST_TAB_ALL", "GTK_LIST_TAB_CELL", "GTK_LIST_TAB_ITEM", "all", "cell", "item" +] +_ListTabBehaviorValueType: TypeAlias = ListTabBehavior | _ListTabBehaviorLiteralType + class MessageType(GObject.GEnum): ERROR = 3 INFO = 0 @@ -32049,6 +34590,20 @@ class MessageType(GObject.GEnum): QUESTION = 2 WARNING = 1 +_MessageTypeLiteralType: TypeAlias = Literal[ + "GTK_MESSAGE_ERROR", + "GTK_MESSAGE_INFO", + "GTK_MESSAGE_OTHER", + "GTK_MESSAGE_QUESTION", + "GTK_MESSAGE_WARNING", + "error", + "info", + "other", + "question", + "warning", +] +_MessageTypeValueType: TypeAlias = MessageType | _MessageTypeLiteralType + class MovementStep(GObject.GEnum): BUFFER_ENDS = 8 DISPLAY_LINES = 3 @@ -32061,15 +34616,54 @@ class MovementStep(GObject.GEnum): VISUAL_POSITIONS = 1 WORDS = 2 +_MovementStepLiteralType: TypeAlias = Literal[ + "GTK_MOVEMENT_BUFFER_ENDS", + "GTK_MOVEMENT_DISPLAY_LINES", + "GTK_MOVEMENT_DISPLAY_LINE_ENDS", + "GTK_MOVEMENT_HORIZONTAL_PAGES", + "GTK_MOVEMENT_LOGICAL_POSITIONS", + "GTK_MOVEMENT_PAGES", + "GTK_MOVEMENT_PARAGRAPHS", + "GTK_MOVEMENT_PARAGRAPH_ENDS", + "GTK_MOVEMENT_VISUAL_POSITIONS", + "GTK_MOVEMENT_WORDS", + "buffer-ends", + "display-line-ends", + "display-lines", + "horizontal-pages", + "logical-positions", + "pages", + "paragraph-ends", + "paragraphs", + "visual-positions", + "words", +] +_MovementStepValueType: TypeAlias = MovementStep | _MovementStepLiteralType + class NaturalWrapMode(GObject.GEnum): INHERIT = 0 NONE = 1 WORD = 2 +_NaturalWrapModeLiteralType: TypeAlias = Literal[ + "GTK_NATURAL_WRAP_INHERIT", + "GTK_NATURAL_WRAP_NONE", + "GTK_NATURAL_WRAP_WORD", + "inherit", + "none", + "word", +] +_NaturalWrapModeValueType: TypeAlias = NaturalWrapMode | _NaturalWrapModeLiteralType + class NotebookTab(GObject.GEnum): FIRST = 0 LAST = 1 +_NotebookTabLiteralType: TypeAlias = Literal[ + "GTK_NOTEBOOK_TAB_FIRST", "GTK_NOTEBOOK_TAB_LAST", "first", "last" +] +_NotebookTabValueType: TypeAlias = NotebookTab | _NotebookTabLiteralType + class NumberUpLayout(GObject.GEnum): BTLR = 6 BTRL = 7 @@ -32080,63 +34674,183 @@ class NumberUpLayout(GObject.GEnum): TBLR = 4 TBRL = 5 +_NumberUpLayoutLiteralType: TypeAlias = Literal[ + "GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_LEFT_TO_RIGHT", + "GTK_NUMBER_UP_LAYOUT_BOTTOM_TO_TOP_RIGHT_TO_LEFT", + "GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_BOTTOM_TO_TOP", + "GTK_NUMBER_UP_LAYOUT_LEFT_TO_RIGHT_TOP_TO_BOTTOM", + "GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_BOTTOM_TO_TOP", + "GTK_NUMBER_UP_LAYOUT_RIGHT_TO_LEFT_TOP_TO_BOTTOM", + "GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_LEFT_TO_RIGHT", + "GTK_NUMBER_UP_LAYOUT_TOP_TO_BOTTOM_RIGHT_TO_LEFT", + "btlr", + "btrl", + "lrbt", + "lrtb", + "rlbt", + "rltb", + "tblr", + "tbrl", +] +_NumberUpLayoutValueType: TypeAlias = NumberUpLayout | _NumberUpLayoutLiteralType + class Ordering(GObject.GEnum): EQUAL = 0 LARGER = 1 SMALLER = -1 +_OrderingLiteralType: TypeAlias = Literal[ + "GTK_ORDERING_EQUAL", + "GTK_ORDERING_LARGER", + "GTK_ORDERING_SMALLER", + "equal", + "larger", + "smaller", +] +_OrderingValueType: TypeAlias = Ordering | _OrderingLiteralType + class Orientation(GObject.GEnum): HORIZONTAL = 0 VERTICAL = 1 +_OrientationLiteralType: TypeAlias = Literal[ + "GTK_ORIENTATION_HORIZONTAL", "GTK_ORIENTATION_VERTICAL", "horizontal", "vertical" +] +_OrientationValueType: TypeAlias = Orientation | _OrientationLiteralType + class Overflow(GObject.GEnum): HIDDEN = 1 VISIBLE = 0 +_OverflowLiteralType: TypeAlias = Literal[ + "GTK_OVERFLOW_HIDDEN", "GTK_OVERFLOW_VISIBLE", "hidden", "visible" +] +_OverflowValueType: TypeAlias = Overflow | _OverflowLiteralType + class PackType(GObject.GEnum): END = 1 START = 0 +_PackTypeLiteralType: TypeAlias = Literal[ + "GTK_PACK_END", "GTK_PACK_START", "end", "start" +] +_PackTypeValueType: TypeAlias = PackType | _PackTypeLiteralType + class PadActionType(GObject.GEnum): BUTTON = 0 DIAL = 3 RING = 1 STRIP = 2 +_PadActionTypeLiteralType: TypeAlias = Literal[ + "GTK_PAD_ACTION_BUTTON", + "GTK_PAD_ACTION_DIAL", + "GTK_PAD_ACTION_RING", + "GTK_PAD_ACTION_STRIP", + "button", + "dial", + "ring", + "strip", +] +_PadActionTypeValueType: TypeAlias = PadActionType | _PadActionTypeLiteralType + class PageOrientation(GObject.GEnum): LANDSCAPE = 1 PORTRAIT = 0 REVERSE_LANDSCAPE = 3 REVERSE_PORTRAIT = 2 +_PageOrientationLiteralType: TypeAlias = Literal[ + "GTK_PAGE_ORIENTATION_LANDSCAPE", + "GTK_PAGE_ORIENTATION_PORTRAIT", + "GTK_PAGE_ORIENTATION_REVERSE_LANDSCAPE", + "GTK_PAGE_ORIENTATION_REVERSE_PORTRAIT", + "landscape", + "portrait", + "reverse-landscape", + "reverse-portrait", +] +_PageOrientationValueType: TypeAlias = PageOrientation | _PageOrientationLiteralType + class PageSet(GObject.GEnum): ALL = 0 EVEN = 1 ODD = 2 +_PageSetLiteralType: TypeAlias = Literal[ + "GTK_PAGE_SET_ALL", "GTK_PAGE_SET_EVEN", "GTK_PAGE_SET_ODD", "all", "even", "odd" +] +_PageSetValueType: TypeAlias = PageSet | _PageSetLiteralType + class PanDirection(GObject.GEnum): DOWN = 3 LEFT = 0 RIGHT = 1 UP = 2 +_PanDirectionLiteralType: TypeAlias = Literal[ + "GTK_PAN_DIRECTION_DOWN", + "GTK_PAN_DIRECTION_LEFT", + "GTK_PAN_DIRECTION_RIGHT", + "GTK_PAN_DIRECTION_UP", + "down", + "left", + "right", + "up", +] +_PanDirectionValueType: TypeAlias = PanDirection | _PanDirectionLiteralType + class PolicyType(GObject.GEnum): ALWAYS = 0 AUTOMATIC = 1 EXTERNAL = 3 NEVER = 2 +_PolicyTypeLiteralType: TypeAlias = Literal[ + "GTK_POLICY_ALWAYS", + "GTK_POLICY_AUTOMATIC", + "GTK_POLICY_EXTERNAL", + "GTK_POLICY_NEVER", + "always", + "automatic", + "external", + "never", +] +_PolicyTypeValueType: TypeAlias = PolicyType | _PolicyTypeLiteralType + class PositionType(GObject.GEnum): BOTTOM = 3 LEFT = 0 RIGHT = 1 TOP = 2 +_PositionTypeLiteralType: TypeAlias = Literal[ + "GTK_POS_BOTTOM", + "GTK_POS_LEFT", + "GTK_POS_RIGHT", + "GTK_POS_TOP", + "bottom", + "left", + "right", + "top", +] +_PositionTypeValueType: TypeAlias = PositionType | _PositionTypeLiteralType + class PrintDuplex(GObject.GEnum): HORIZONTAL = 1 SIMPLEX = 0 VERTICAL = 2 +_PrintDuplexLiteralType: TypeAlias = Literal[ + "GTK_PRINT_DUPLEX_HORIZONTAL", + "GTK_PRINT_DUPLEX_SIMPLEX", + "GTK_PRINT_DUPLEX_VERTICAL", + "horizontal", + "simplex", + "vertical", +] +_PrintDuplexValueType: TypeAlias = PrintDuplex | _PrintDuplexLiteralType + class PrintError(GObject.GEnum): GENERAL = 0 INTERNAL_ERROR = 1 @@ -32145,30 +34859,94 @@ class PrintError(GObject.GEnum): @staticmethod def quark() -> int: ... +_PrintErrorLiteralType: TypeAlias = Literal[ + "GTK_PRINT_ERROR_GENERAL", + "GTK_PRINT_ERROR_INTERNAL_ERROR", + "GTK_PRINT_ERROR_INVALID_FILE", + "GTK_PRINT_ERROR_NOMEM", + "general", + "internal-error", + "invalid-file", + "nomem", +] +_PrintErrorValueType: TypeAlias = PrintError | _PrintErrorLiteralType + class PrintOperationAction(GObject.GEnum): EXPORT = 3 PREVIEW = 2 PRINT = 1 PRINT_DIALOG = 0 +_PrintOperationActionLiteralType: TypeAlias = Literal[ + "GTK_PRINT_OPERATION_ACTION_EXPORT", + "GTK_PRINT_OPERATION_ACTION_PREVIEW", + "GTK_PRINT_OPERATION_ACTION_PRINT", + "GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG", + "export", + "preview", + "print", + "print-dialog", +] +_PrintOperationActionValueType: TypeAlias = ( + PrintOperationAction | _PrintOperationActionLiteralType +) + class PrintOperationResult(GObject.GEnum): APPLY = 1 CANCEL = 2 ERROR = 0 IN_PROGRESS = 3 +_PrintOperationResultLiteralType: TypeAlias = Literal[ + "GTK_PRINT_OPERATION_RESULT_APPLY", + "GTK_PRINT_OPERATION_RESULT_CANCEL", + "GTK_PRINT_OPERATION_RESULT_ERROR", + "GTK_PRINT_OPERATION_RESULT_IN_PROGRESS", + "apply", + "cancel", + "error", + "in-progress", +] +_PrintOperationResultValueType: TypeAlias = ( + PrintOperationResult | _PrintOperationResultLiteralType +) + class PrintPages(GObject.GEnum): ALL = 0 CURRENT = 1 RANGES = 2 SELECTION = 3 +_PrintPagesLiteralType: TypeAlias = Literal[ + "GTK_PRINT_PAGES_ALL", + "GTK_PRINT_PAGES_CURRENT", + "GTK_PRINT_PAGES_RANGES", + "GTK_PRINT_PAGES_SELECTION", + "all", + "current", + "ranges", + "selection", +] +_PrintPagesValueType: TypeAlias = PrintPages | _PrintPagesLiteralType + class PrintQuality(GObject.GEnum): DRAFT = 3 HIGH = 2 LOW = 0 NORMAL = 1 +_PrintQualityLiteralType: TypeAlias = Literal[ + "GTK_PRINT_QUALITY_DRAFT", + "GTK_PRINT_QUALITY_HIGH", + "GTK_PRINT_QUALITY_LOW", + "GTK_PRINT_QUALITY_NORMAL", + "draft", + "high", + "low", + "normal", +] +_PrintQualityValueType: TypeAlias = PrintQuality | _PrintQualityLiteralType + class PrintStatus(GObject.GEnum): FINISHED = 7 FINISHED_ABORTED = 8 @@ -32180,16 +34958,55 @@ class PrintStatus(GObject.GEnum): PRINTING = 6 SENDING_DATA = 3 +_PrintStatusLiteralType: TypeAlias = Literal[ + "GTK_PRINT_STATUS_FINISHED", + "GTK_PRINT_STATUS_FINISHED_ABORTED", + "GTK_PRINT_STATUS_GENERATING_DATA", + "GTK_PRINT_STATUS_INITIAL", + "GTK_PRINT_STATUS_PENDING", + "GTK_PRINT_STATUS_PENDING_ISSUE", + "GTK_PRINT_STATUS_PREPARING", + "GTK_PRINT_STATUS_PRINTING", + "GTK_PRINT_STATUS_SENDING_DATA", + "finished", + "finished-aborted", + "generating-data", + "initial", + "pending", + "pending-issue", + "preparing", + "printing", + "sending-data", +] +_PrintStatusValueType: TypeAlias = PrintStatus | _PrintStatusLiteralType + class PropagationLimit(GObject.GEnum): NONE = 0 SAME_NATIVE = 1 +_PropagationLimitLiteralType: TypeAlias = Literal[ + "GTK_LIMIT_NONE", "GTK_LIMIT_SAME_NATIVE", "none", "same-native" +] +_PropagationLimitValueType: TypeAlias = PropagationLimit | _PropagationLimitLiteralType + class PropagationPhase(GObject.GEnum): BUBBLE = 2 CAPTURE = 1 NONE = 0 TARGET = 3 +_PropagationPhaseLiteralType: TypeAlias = Literal[ + "GTK_PHASE_BUBBLE", + "GTK_PHASE_CAPTURE", + "GTK_PHASE_NONE", + "GTK_PHASE_TARGET", + "bubble", + "capture", + "none", + "target", +] +_PropagationPhaseValueType: TypeAlias = PropagationPhase | _PropagationPhaseLiteralType + class RecentManagerError(GObject.GEnum): INVALID_ENCODING = 2 INVALID_URI = 1 @@ -32201,6 +35018,26 @@ class RecentManagerError(GObject.GEnum): @staticmethod def quark() -> int: ... +_RecentManagerErrorLiteralType: TypeAlias = Literal[ + "GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING", + "GTK_RECENT_MANAGER_ERROR_INVALID_URI", + "GTK_RECENT_MANAGER_ERROR_NOT_FOUND", + "GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED", + "GTK_RECENT_MANAGER_ERROR_READ", + "GTK_RECENT_MANAGER_ERROR_UNKNOWN", + "GTK_RECENT_MANAGER_ERROR_WRITE", + "invalid-encoding", + "invalid-uri", + "not-found", + "not-registered", + "read", + "unknown", + "write", +] +_RecentManagerErrorValueType: TypeAlias = ( + RecentManagerError | _RecentManagerErrorLiteralType +) + class ResponseType(GObject.GEnum): ACCEPT = -3 APPLY = -10 @@ -32214,6 +35051,32 @@ class ResponseType(GObject.GEnum): REJECT = -2 YES = -8 +_ResponseTypeLiteralType: TypeAlias = Literal[ + "GTK_RESPONSE_ACCEPT", + "GTK_RESPONSE_APPLY", + "GTK_RESPONSE_CANCEL", + "GTK_RESPONSE_CLOSE", + "GTK_RESPONSE_DELETE_EVENT", + "GTK_RESPONSE_HELP", + "GTK_RESPONSE_NO", + "GTK_RESPONSE_NONE", + "GTK_RESPONSE_OK", + "GTK_RESPONSE_REJECT", + "GTK_RESPONSE_YES", + "accept", + "apply", + "cancel", + "close", + "delete-event", + "help", + "no", + "none", + "ok", + "reject", + "yes", +] +_ResponseTypeValueType: TypeAlias = ResponseType | _ResponseTypeLiteralType + class RevealerTransitionType(GObject.GEnum): CROSSFADE = 1 NONE = 0 @@ -32226,6 +35089,32 @@ class RevealerTransitionType(GObject.GEnum): SWING_RIGHT = 6 SWING_UP = 8 +_RevealerTransitionTypeLiteralType: TypeAlias = Literal[ + "GTK_REVEALER_TRANSITION_TYPE_CROSSFADE", + "GTK_REVEALER_TRANSITION_TYPE_NONE", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT", + "GTK_REVEALER_TRANSITION_TYPE_SLIDE_UP", + "GTK_REVEALER_TRANSITION_TYPE_SWING_DOWN", + "GTK_REVEALER_TRANSITION_TYPE_SWING_LEFT", + "GTK_REVEALER_TRANSITION_TYPE_SWING_RIGHT", + "GTK_REVEALER_TRANSITION_TYPE_SWING_UP", + "crossfade", + "none", + "slide-down", + "slide-left", + "slide-right", + "slide-up", + "swing-down", + "swing-left", + "swing-right", + "swing-up", +] +_RevealerTransitionTypeValueType: TypeAlias = ( + RevealerTransitionType | _RevealerTransitionTypeLiteralType +) + class ScrollStep(GObject.GEnum): ENDS = 2 HORIZONTAL_ENDS = 5 @@ -32234,6 +35123,22 @@ class ScrollStep(GObject.GEnum): PAGES = 1 STEPS = 0 +_ScrollStepLiteralType: TypeAlias = Literal[ + "GTK_SCROLL_ENDS", + "GTK_SCROLL_HORIZONTAL_ENDS", + "GTK_SCROLL_HORIZONTAL_PAGES", + "GTK_SCROLL_HORIZONTAL_STEPS", + "GTK_SCROLL_PAGES", + "GTK_SCROLL_STEPS", + "ends", + "horizontal-ends", + "horizontal-pages", + "horizontal-steps", + "pages", + "steps", +] +_ScrollStepValueType: TypeAlias = ScrollStep | _ScrollStepLiteralType + class ScrollType(GObject.GEnum): END = 15 JUMP = 1 @@ -32252,26 +35157,99 @@ class ScrollType(GObject.GEnum): STEP_RIGHT = 11 STEP_UP = 6 +_ScrollTypeLiteralType: TypeAlias = Literal[ + "GTK_SCROLL_END", + "GTK_SCROLL_JUMP", + "GTK_SCROLL_NONE", + "GTK_SCROLL_PAGE_BACKWARD", + "GTK_SCROLL_PAGE_DOWN", + "GTK_SCROLL_PAGE_FORWARD", + "GTK_SCROLL_PAGE_LEFT", + "GTK_SCROLL_PAGE_RIGHT", + "GTK_SCROLL_PAGE_UP", + "GTK_SCROLL_START", + "GTK_SCROLL_STEP_BACKWARD", + "GTK_SCROLL_STEP_DOWN", + "GTK_SCROLL_STEP_FORWARD", + "GTK_SCROLL_STEP_LEFT", + "GTK_SCROLL_STEP_RIGHT", + "GTK_SCROLL_STEP_UP", + "end", + "jump", + "none", + "page-backward", + "page-down", + "page-forward", + "page-left", + "page-right", + "page-up", + "start", + "step-backward", + "step-down", + "step-forward", + "step-left", + "step-right", + "step-up", +] +_ScrollTypeValueType: TypeAlias = ScrollType | _ScrollTypeLiteralType + class ScrollablePolicy(GObject.GEnum): MINIMUM = 0 NATURAL = 1 +_ScrollablePolicyLiteralType: TypeAlias = Literal[ + "GTK_SCROLL_MINIMUM", "GTK_SCROLL_NATURAL", "minimum", "natural" +] +_ScrollablePolicyValueType: TypeAlias = ScrollablePolicy | _ScrollablePolicyLiteralType + class SelectionMode(GObject.GEnum): BROWSE = 2 MULTIPLE = 3 NONE = 0 SINGLE = 1 +_SelectionModeLiteralType: TypeAlias = Literal[ + "GTK_SELECTION_BROWSE", + "GTK_SELECTION_MULTIPLE", + "GTK_SELECTION_NONE", + "GTK_SELECTION_SINGLE", + "browse", + "multiple", + "none", + "single", +] +_SelectionModeValueType: TypeAlias = SelectionMode | _SelectionModeLiteralType + class SensitivityType(GObject.GEnum): AUTO = 0 OFF = 2 ON = 1 +_SensitivityTypeLiteralType: TypeAlias = Literal[ + "GTK_SENSITIVITY_AUTO", + "GTK_SENSITIVITY_OFF", + "GTK_SENSITIVITY_ON", + "auto", + "off", + "on", +] +_SensitivityTypeValueType: TypeAlias = SensitivityType | _SensitivityTypeLiteralType + class ShortcutScope(GObject.GEnum): GLOBAL = 2 LOCAL = 0 MANAGED = 1 +_ShortcutScopeLiteralType: TypeAlias = Literal[ + "GTK_SHORTCUT_SCOPE_GLOBAL", + "GTK_SHORTCUT_SCOPE_LOCAL", + "GTK_SHORTCUT_SCOPE_MANAGED", + "global", + "local", + "managed", +] +_ShortcutScopeValueType: TypeAlias = ShortcutScope | _ShortcutScopeLiteralType + class ShortcutType(GObject.GEnum): ACCELERATOR = 0 GESTURE = 7 @@ -32284,36 +35262,116 @@ class ShortcutType(GObject.GEnum): GESTURE_TWO_FINGER_SWIPE_LEFT = 5 GESTURE_TWO_FINGER_SWIPE_RIGHT = 6 +_ShortcutTypeLiteralType: TypeAlias = Literal[ + "GTK_SHORTCUT_ACCELERATOR", + "GTK_SHORTCUT_GESTURE", + "GTK_SHORTCUT_GESTURE_PINCH", + "GTK_SHORTCUT_GESTURE_ROTATE_CLOCKWISE", + "GTK_SHORTCUT_GESTURE_ROTATE_COUNTERCLOCKWISE", + "GTK_SHORTCUT_GESTURE_STRETCH", + "GTK_SHORTCUT_GESTURE_SWIPE_LEFT", + "GTK_SHORTCUT_GESTURE_SWIPE_RIGHT", + "GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_LEFT", + "GTK_SHORTCUT_GESTURE_TWO_FINGER_SWIPE_RIGHT", + "accelerator", + "gesture", + "gesture-pinch", + "gesture-rotate-clockwise", + "gesture-rotate-counterclockwise", + "gesture-stretch", + "gesture-swipe-left", + "gesture-swipe-right", + "gesture-two-finger-swipe-left", + "gesture-two-finger-swipe-right", +] +_ShortcutTypeValueType: TypeAlias = ShortcutType | _ShortcutTypeLiteralType + class SizeGroupMode(GObject.GEnum): BOTH = 3 HORIZONTAL = 1 NONE = 0 VERTICAL = 2 +_SizeGroupModeLiteralType: TypeAlias = Literal[ + "GTK_SIZE_GROUP_BOTH", + "GTK_SIZE_GROUP_HORIZONTAL", + "GTK_SIZE_GROUP_NONE", + "GTK_SIZE_GROUP_VERTICAL", + "both", + "horizontal", + "none", + "vertical", +] +_SizeGroupModeValueType: TypeAlias = SizeGroupMode | _SizeGroupModeLiteralType + class SizeRequestMode(GObject.GEnum): CONSTANT_SIZE = 2 HEIGHT_FOR_WIDTH = 0 WIDTH_FOR_HEIGHT = 1 +_SizeRequestModeLiteralType: TypeAlias = Literal[ + "GTK_SIZE_REQUEST_CONSTANT_SIZE", + "GTK_SIZE_REQUEST_HEIGHT_FOR_WIDTH", + "GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT", + "constant-size", + "height-for-width", + "width-for-height", +] +_SizeRequestModeValueType: TypeAlias = SizeRequestMode | _SizeRequestModeLiteralType + class SortType(GObject.GEnum): ASCENDING = 0 DESCENDING = 1 +_SortTypeLiteralType: TypeAlias = Literal[ + "GTK_SORT_ASCENDING", "GTK_SORT_DESCENDING", "ascending", "descending" +] +_SortTypeValueType: TypeAlias = SortType | _SortTypeLiteralType + class SorterChange(GObject.GEnum): DIFFERENT = 0 INVERTED = 1 LESS_STRICT = 2 MORE_STRICT = 3 +_SorterChangeLiteralType: TypeAlias = Literal[ + "GTK_SORTER_CHANGE_DIFFERENT", + "GTK_SORTER_CHANGE_INVERTED", + "GTK_SORTER_CHANGE_LESS_STRICT", + "GTK_SORTER_CHANGE_MORE_STRICT", + "different", + "inverted", + "less-strict", + "more-strict", +] +_SorterChangeValueType: TypeAlias = SorterChange | _SorterChangeLiteralType + class SorterOrder(GObject.GEnum): NONE = 1 PARTIAL = 0 TOTAL = 2 +_SorterOrderLiteralType: TypeAlias = Literal[ + "GTK_SORTER_ORDER_NONE", + "GTK_SORTER_ORDER_PARTIAL", + "GTK_SORTER_ORDER_TOTAL", + "none", + "partial", + "total", +] +_SorterOrderValueType: TypeAlias = SorterOrder | _SorterOrderLiteralType + class SpinButtonUpdatePolicy(GObject.GEnum): ALWAYS = 0 IF_VALID = 1 +_SpinButtonUpdatePolicyLiteralType: TypeAlias = Literal[ + "GTK_UPDATE_ALWAYS", "GTK_UPDATE_IF_VALID", "always", "if-valid" +] +_SpinButtonUpdatePolicyValueType: TypeAlias = ( + SpinButtonUpdatePolicy | _SpinButtonUpdatePolicyLiteralType +) + class SpinType(GObject.GEnum): END = 5 HOME = 4 @@ -32323,6 +35381,24 @@ class SpinType(GObject.GEnum): STEP_FORWARD = 0 USER_DEFINED = 6 +_SpinTypeLiteralType: TypeAlias = Literal[ + "GTK_SPIN_END", + "GTK_SPIN_HOME", + "GTK_SPIN_PAGE_BACKWARD", + "GTK_SPIN_PAGE_FORWARD", + "GTK_SPIN_STEP_BACKWARD", + "GTK_SPIN_STEP_FORWARD", + "GTK_SPIN_USER_DEFINED", + "end", + "home", + "page-backward", + "page-forward", + "step-backward", + "step-forward", + "user-defined", +] +_SpinTypeValueType: TypeAlias = SpinType | _SpinTypeLiteralType + class StackTransitionType(GObject.GEnum): CROSSFADE = 1 NONE = 0 @@ -32348,17 +35424,93 @@ class StackTransitionType(GObject.GEnum): UNDER_RIGHT = 15 UNDER_UP = 12 +_StackTransitionTypeLiteralType: TypeAlias = Literal[ + "GTK_STACK_TRANSITION_TYPE_CROSSFADE", + "GTK_STACK_TRANSITION_TYPE_NONE", + "GTK_STACK_TRANSITION_TYPE_OVER_DOWN", + "GTK_STACK_TRANSITION_TYPE_OVER_DOWN_UP", + "GTK_STACK_TRANSITION_TYPE_OVER_LEFT", + "GTK_STACK_TRANSITION_TYPE_OVER_LEFT_RIGHT", + "GTK_STACK_TRANSITION_TYPE_OVER_RIGHT", + "GTK_STACK_TRANSITION_TYPE_OVER_RIGHT_LEFT", + "GTK_STACK_TRANSITION_TYPE_OVER_UP", + "GTK_STACK_TRANSITION_TYPE_OVER_UP_DOWN", + "GTK_STACK_TRANSITION_TYPE_ROTATE_LEFT", + "GTK_STACK_TRANSITION_TYPE_ROTATE_LEFT_RIGHT", + "GTK_STACK_TRANSITION_TYPE_ROTATE_RIGHT", + "GTK_STACK_TRANSITION_TYPE_SLIDE_DOWN", + "GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT", + "GTK_STACK_TRANSITION_TYPE_SLIDE_LEFT_RIGHT", + "GTK_STACK_TRANSITION_TYPE_SLIDE_RIGHT", + "GTK_STACK_TRANSITION_TYPE_SLIDE_UP", + "GTK_STACK_TRANSITION_TYPE_SLIDE_UP_DOWN", + "GTK_STACK_TRANSITION_TYPE_UNDER_DOWN", + "GTK_STACK_TRANSITION_TYPE_UNDER_LEFT", + "GTK_STACK_TRANSITION_TYPE_UNDER_RIGHT", + "GTK_STACK_TRANSITION_TYPE_UNDER_UP", + "crossfade", + "none", + "over-down", + "over-down-up", + "over-left", + "over-left-right", + "over-right", + "over-right-left", + "over-up", + "over-up-down", + "rotate-left", + "rotate-left-right", + "rotate-right", + "slide-down", + "slide-left", + "slide-left-right", + "slide-right", + "slide-up", + "slide-up-down", + "under-down", + "under-left", + "under-right", + "under-up", +] +_StackTransitionTypeValueType: TypeAlias = ( + StackTransitionType | _StackTransitionTypeLiteralType +) + class StringFilterMatchMode(GObject.GEnum): EXACT = 0 PREFIX = 2 SUBSTRING = 1 +_StringFilterMatchModeLiteralType: TypeAlias = Literal[ + "GTK_STRING_FILTER_MATCH_MODE_EXACT", + "GTK_STRING_FILTER_MATCH_MODE_PREFIX", + "GTK_STRING_FILTER_MATCH_MODE_SUBSTRING", + "exact", + "prefix", + "substring", +] +_StringFilterMatchModeValueType: TypeAlias = ( + StringFilterMatchMode | _StringFilterMatchModeLiteralType +) + class SymbolicColor(GObject.GEnum): ERROR = 1 FOREGROUND = 0 SUCCESS = 3 WARNING = 2 +_SymbolicColorLiteralType: TypeAlias = Literal[ + "GTK_SYMBOLIC_COLOR_ERROR", + "GTK_SYMBOLIC_COLOR_FOREGROUND", + "GTK_SYMBOLIC_COLOR_SUCCESS", + "GTK_SYMBOLIC_COLOR_WARNING", + "error", + "foreground", + "success", + "warning", +] +_SymbolicColorValueType: TypeAlias = SymbolicColor | _SymbolicColorLiteralType + class SystemSetting(GObject.GEnum): DISPLAY = 3 DPI = 0 @@ -32366,19 +35518,53 @@ class SystemSetting(GObject.GEnum): FONT_NAME = 1 ICON_THEME = 4 +_SystemSettingLiteralType: TypeAlias = Literal[ + "GTK_SYSTEM_SETTING_DISPLAY", + "GTK_SYSTEM_SETTING_DPI", + "GTK_SYSTEM_SETTING_FONT_CONFIG", + "GTK_SYSTEM_SETTING_FONT_NAME", + "GTK_SYSTEM_SETTING_ICON_THEME", + "display", + "dpi", + "font-config", + "font-name", + "icon-theme", +] +_SystemSettingValueType: TypeAlias = SystemSetting | _SystemSettingLiteralType + class TextDirection(GObject.GEnum): LTR = 1 NONE = 0 RTL = 2 +_TextDirectionLiteralType: TypeAlias = Literal[ + "GTK_TEXT_DIR_LTR", "GTK_TEXT_DIR_NONE", "GTK_TEXT_DIR_RTL", "ltr", "none", "rtl" +] +_TextDirectionValueType: TypeAlias = TextDirection | _TextDirectionLiteralType + class TextExtendSelection(GObject.GEnum): LINE = 1 WORD = 0 +_TextExtendSelectionLiteralType: TypeAlias = Literal[ + "GTK_TEXT_EXTEND_SELECTION_LINE", "GTK_TEXT_EXTEND_SELECTION_WORD", "line", "word" +] +_TextExtendSelectionValueType: TypeAlias = ( + TextExtendSelection | _TextExtendSelectionLiteralType +) + class TextViewLayer(GObject.GEnum): ABOVE_TEXT = 1 BELOW_TEXT = 0 +_TextViewLayerLiteralType: TypeAlias = Literal[ + "GTK_TEXT_VIEW_LAYER_ABOVE_TEXT", + "GTK_TEXT_VIEW_LAYER_BELOW_TEXT", + "above-text", + "below-text", +] +_TextViewLayerValueType: TypeAlias = TextViewLayer | _TextViewLayerLiteralType + class TextWindowType(GObject.GEnum): BOTTOM = 6 LEFT = 3 @@ -32387,29 +35573,97 @@ class TextWindowType(GObject.GEnum): TOP = 5 WIDGET = 1 +_TextWindowTypeLiteralType: TypeAlias = Literal[ + "GTK_TEXT_WINDOW_BOTTOM", + "GTK_TEXT_WINDOW_LEFT", + "GTK_TEXT_WINDOW_RIGHT", + "GTK_TEXT_WINDOW_TEXT", + "GTK_TEXT_WINDOW_TOP", + "GTK_TEXT_WINDOW_WIDGET", + "bottom", + "left", + "right", + "text", + "top", + "widget", +] +_TextWindowTypeValueType: TypeAlias = TextWindowType | _TextWindowTypeLiteralType + class TreeViewColumnSizing(GObject.GEnum): AUTOSIZE = 1 FIXED = 2 GROW_ONLY = 0 +_TreeViewColumnSizingLiteralType: TypeAlias = Literal[ + "GTK_TREE_VIEW_COLUMN_AUTOSIZE", + "GTK_TREE_VIEW_COLUMN_FIXED", + "GTK_TREE_VIEW_COLUMN_GROW_ONLY", + "autosize", + "fixed", + "grow-only", +] +_TreeViewColumnSizingValueType: TypeAlias = ( + TreeViewColumnSizing | _TreeViewColumnSizingLiteralType +) + class TreeViewDropPosition(GObject.GEnum): AFTER = 1 BEFORE = 0 INTO_OR_AFTER = 3 INTO_OR_BEFORE = 2 +_TreeViewDropPositionLiteralType: TypeAlias = Literal[ + "GTK_TREE_VIEW_DROP_AFTER", + "GTK_TREE_VIEW_DROP_BEFORE", + "GTK_TREE_VIEW_DROP_INTO_OR_AFTER", + "GTK_TREE_VIEW_DROP_INTO_OR_BEFORE", + "after", + "before", + "into-or-after", + "into-or-before", +] +_TreeViewDropPositionValueType: TypeAlias = ( + TreeViewDropPosition | _TreeViewDropPositionLiteralType +) + class TreeViewGridLines(GObject.GEnum): BOTH = 3 HORIZONTAL = 1 NONE = 0 VERTICAL = 2 +_TreeViewGridLinesLiteralType: TypeAlias = Literal[ + "GTK_TREE_VIEW_GRID_LINES_BOTH", + "GTK_TREE_VIEW_GRID_LINES_HORIZONTAL", + "GTK_TREE_VIEW_GRID_LINES_NONE", + "GTK_TREE_VIEW_GRID_LINES_VERTICAL", + "both", + "horizontal", + "none", + "vertical", +] +_TreeViewGridLinesValueType: TypeAlias = ( + TreeViewGridLines | _TreeViewGridLinesLiteralType +) + class Unit(GObject.GEnum): INCH = 2 MM = 3 NONE = 0 POINTS = 1 +_UnitLiteralType: TypeAlias = Literal[ + "GTK_UNIT_INCH", + "GTK_UNIT_MM", + "GTK_UNIT_NONE", + "GTK_UNIT_POINTS", + "inch", + "mm", + "none", + "points", +] +_UnitValueType: TypeAlias = Unit | _UnitLiteralType + class WindowGravity(GObject.GEnum): BOTTOM = 7 BOTTOM_END = 14 @@ -32427,8 +35681,54 @@ class WindowGravity(GObject.GEnum): TOP_RIGHT = 2 TOP_START = 9 +_WindowGravityLiteralType: TypeAlias = Literal[ + "GTK_WINDOW_GRAVITY_BOTTOM", + "GTK_WINDOW_GRAVITY_BOTTOM_END", + "GTK_WINDOW_GRAVITY_BOTTOM_LEFT", + "GTK_WINDOW_GRAVITY_BOTTOM_RIGHT", + "GTK_WINDOW_GRAVITY_BOTTOM_START", + "GTK_WINDOW_GRAVITY_CENTER", + "GTK_WINDOW_GRAVITY_END", + "GTK_WINDOW_GRAVITY_LEFT", + "GTK_WINDOW_GRAVITY_RIGHT", + "GTK_WINDOW_GRAVITY_START", + "GTK_WINDOW_GRAVITY_TOP", + "GTK_WINDOW_GRAVITY_TOP_END", + "GTK_WINDOW_GRAVITY_TOP_LEFT", + "GTK_WINDOW_GRAVITY_TOP_RIGHT", + "GTK_WINDOW_GRAVITY_TOP_START", + "bottom", + "bottom-end", + "bottom-left", + "bottom-right", + "bottom-start", + "center", + "end", + "left", + "right", + "start", + "top", + "top-end", + "top-left", + "top-right", + "top-start", +] +_WindowGravityValueType: TypeAlias = WindowGravity | _WindowGravityLiteralType + class WrapMode(GObject.GEnum): CHAR = 1 NONE = 0 WORD = 2 WORD_CHAR = 3 + +_WrapModeLiteralType: TypeAlias = Literal[ + "GTK_WRAP_CHAR", + "GTK_WRAP_NONE", + "GTK_WRAP_WORD", + "GTK_WRAP_WORD_CHAR", + "char", + "none", + "word", + "word-char", +] +_WrapModeValueType: TypeAlias = WrapMode | _WrapModeLiteralType diff --git a/src/pygobject_stub_generator/class_info.py b/src/pygobject_stub_generator/class_info.py index 01583c00..4ed713a4 100644 --- a/src/pygobject_stub_generator/class_info.py +++ b/src/pygobject_stub_generator/class_info.py @@ -316,16 +316,10 @@ def __build_props_class(self) -> str | None: lines: list[str] = [] for name, prop_info in self.properties.items(): - py_type = prop_info.prop_type + if prop_definition := self.stub.get_property(name, prop_info.prop_type): + lines.append(prop_definition) - if prop_info.readable and ( - not prop_info.writable or prop_info.construct_only - ): - lines.append(self.stub.get_property(name, py_type)) - else: - lines.append(f"{name}: {py_type}") - - props_string = "\n".join(lines) or "..." + props_string = "\n".join(lines) if lines else "..." parents_string = "" if isinstance(self.gi_info, GI.ObjectInfo) and ( @@ -345,7 +339,7 @@ def __build_props_property(self, props_class: str | None) -> str | None: return override if isinstance(self.gi_info, GI.ObjectInfo) and props_class is not None: - return self.stub.get_property("props", "Props") + return self.stub.get_property("props", ("Props", None)) return None @@ -372,7 +366,7 @@ def __build_fields(self) -> str: py_type = self.stub.type_info_to_python(field.get_type_info(), out=True) flags = field.get_flags() if not (flags & GI.FieldInfoFlags.IS_WRITABLE): - lines.append(self.stub.get_property(name, py_type)) + lines.append(self.stub.get_property(name, (py_type, None))) else: lines.append(f"{name}: {py_type}") diff --git a/src/pygobject_stub_generator/property_info.py b/src/pygobject_stub_generator/property_info.py index f319423a..18907f5f 100644 --- a/src/pygobject_stub_generator/property_info.py +++ b/src/pygobject_stub_generator/property_info.py @@ -7,7 +7,7 @@ from gi.repository import GObject -from .utils import make_nullable +from .utils import is_ref_type if TYPE_CHECKING: import gi._gi as GI @@ -27,8 +27,10 @@ class PropertyInfo: gobject_name: str = field(init=False) name: str = field(init=False) + _type_info: GI.TypeInfo | None = field(init=False, default=None) + _nullability: tuple[bool, bool] | None = field(init=False, default=None) _init_type: str | None = field(init=False, default=None) - _prop_type: str | None = field(init=False, default=None) + _prop_type: tuple[str | None, str | None] | None = field(init=False, default=None) def __post_init__(self) -> None: self.gobject_name = f"{self.gi_info.get_name()}" @@ -51,33 +53,78 @@ def construct_only(self) -> bool: return bool(self.gi_info.get_flags() & GObject.ParamFlags.CONSTRUCT_ONLY) @property - def prop_type(self) -> str: - if self._prop_type is not None: - return self._prop_type + def type_info(self) -> GI.TypeInfo: + if self._type_info is None: + self._type_info = self.gi_info.get_type_info() + + return self._type_info + + @property + def nullability(self) -> tuple[bool, bool]: + if self._nullability is not None: + return self._nullability - py_type = self.stub.type_info_to_python(self.gi_info.get_type_info(), out=True) getter = self.gir_info.get_getter() setter = self.gir_info.get_setter() - if (getter and getter.may_return_null()) or ( - # If it is wratable only prop, check if setter can accept NULL - setter and setter.get_arg(0).may_be_null() - ): - py_type = make_nullable(py_type) + getter_nullable = bool(getter and getter.may_return_null()) + setter_nullable = bool(setter and setter.get_arg(0).may_be_null()) - self._prop_type = py_type + is_ref = is_ref_type(self.type_info) - return py_type + if getter is not None: + read_nullable = getter_nullable + elif setter is not None: + read_nullable = setter_nullable or is_ref + else: + read_nullable = is_ref + + if setter is not None: + write_nullable = setter_nullable + elif getter is not None: + write_nullable = getter_nullable or is_ref + else: + write_nullable = is_ref + + self._nullability = (read_nullable, write_nullable) + + return self._nullability + + @property + def prop_type(self) -> tuple[str | None, str | None]: + if self._prop_type is not None: + return self._prop_type + + read_nullable, write_nullable = self.nullability + + self._prop_type = ( + self.stub.type_info_to_python( + self.type_info, + nullable=read_nullable, + out=True, + ) + if self.readable + else None, + self.stub.type_info_to_python( + self.type_info, + nullable=write_nullable, + ) + if self.writable and not self.construct_only + else None, + ) + + return self._prop_type @property def init_type(self) -> str: if self._init_type is not None: return self._init_type - setter = self.gir_info.get_setter() + write_nullable = self.nullability[1] + py_type = self.stub.type_info_to_python( - self.gi_info.get_type_info(), - nullable=bool(setter and setter.get_arg(0).may_be_null()), + self.type_info, + nullable=write_nullable, ) self._init_type = py_type diff --git a/src/pygobject_stub_generator/stub.py b/src/pygobject_stub_generator/stub.py index 6dbcfecb..b2ad9164 100644 --- a/src/pygobject_stub_generator/stub.py +++ b/src/pygobject_stub_generator/stub.py @@ -5,6 +5,7 @@ from typing import Final from typing import get_args from typing import get_origin +from typing import Literal from typing import TYPE_CHECKING from typing import TypeAlias from typing_extensions import get_overloads @@ -95,6 +96,7 @@ ("typing", "TypeVar"): "typing_extensions", # default= 3.13+, infer_variance= 3.12+ ("typing", "Unpack"): "typing_extensions", # 3.11+ ("typing", "TypeVarTuple"): "typing_extensions", # 3.11+ + ("typing", "Never"): "typing_extensions", # 3.11+ } @@ -335,6 +337,12 @@ def get_final(self, annotation: str | None = None) -> str: else f"{final_symbol}[{annotation}]" ) + def get_literal(self, annotation: str, /) -> str: + return f"{self.get_import('typing', 'Literal')}[{annotation}]" + + def get_type_alias(self, name: str, /) -> str: + return f"{name}: {self.get_import('typing', 'TypeAlias')}" + def get_alias(self, name: str, obj: object, /) -> str | None: if obj.__module__.startswith(("gi.overrides.", "gi.repository.")): namespace = obj.__module__.rsplit(".", 1)[1] @@ -351,12 +359,39 @@ def get_alias(self, name: str, obj: object, /) -> str | None: return None def get_property( - self, name: str, return_annotation: str, /, *, indent: str = "" + self, + name: str, + annotations: tuple[str | None, str | None], + /, + *, + indent: str = "", ) -> str: property_symbol = self.get_import("builtins", "property") - return f"{indent}@{property_symbol}\n{indent}def {name}(self) -> { - return_annotation - }: ..." + get_annotation, set_annotation = annotations + + if get_annotation is None and set_annotation is None: + return "" + + if get_annotation == set_annotation: + return f"{indent}{name}: {get_annotation}" + + if get_annotation is None: + get_annotation = self.get_import("typing", "Never") + + lines: list[str] = [ + f"@{property_symbol}", + f"def {name}(self) -> {get_annotation}: ...", + ] + + if set_annotation is not None: + lines.extend( + [ + f"@{name}.setter", + f"def {name}(self, value: {set_annotation}) -> None: ...", + ] + ) + + return textwrap.indent("\n".join(lines), indent) def get_class_import(self, cls: type[Any], /) -> str: # Things like Generic and Protocol show up in the MRO as `Generic` rather than @@ -573,6 +608,20 @@ def type_info_to_python( py_type = f"{self.get_import('collections.abc', 'Callable')}[[{ ', '.join(callback_args.values()) }], {callback_return_type}]" + elif ( + isinstance(interface_info, GI.EnumInfo) + and interface_info.get_g_type() != GObject.TYPE_NONE + ): + interface_namespace = interface_info.get_namespace() + interface_name = f"{interface_info.get_name()}" + + # cairo doesn't use the `_ValueType` convention + if not out and interface_namespace != "cairo": + interface_name = f"_{interface_name}ValueType" + + py_type = self.get_namespace_member( + interface_namespace, interface_name + ) elif interface_info is not None: interface_namespace = interface_info.get_namespace() interface_name = interface_info.get_name() @@ -981,6 +1030,87 @@ def build_function( return definition + def __build_enum( + self, + name: str, + enum_obj: type[Any], + in_class: type[Any] | None, + prefix_name: str, + /, + enum_type: Literal["enum", "flags"], + ) -> str: + override = self.check_override(prefix_name, name) + if override: + return override + + if in_class is None and (alias := self.get_alias(name, enum_obj)) is not None: + return f"{name} = {alias}" + + full_name = generate_full_name(prefix_name, name) + gobject_enum_base_name = "GEnum" if enum_type == "enum" else "GFlags" + GObjectEnumBase = getattr(GObject, gobject_enum_base_name) + int_enum_base = "IntEnum" if enum_type == "enum" else "IntFlag" + + enum_base = ( + self.get_namespace_member("GObject", gobject_enum_base_name) + if issubclass(enum_obj, GObjectEnumBase) + else self.get_import("enum", int_enum_base) + ) + + names: set[str] = set() + lines: list[str] = [] + + for key in sorted(vars(enum_obj)): + if key.startswith(("__", "_")) or key[0].isdigit(): + continue + + enum_attr = getattr(enum_obj, key) + + override = self.check_override(full_name, key) + if override: + lines.append(override) + continue + + if isinstance(enum_attr, GI.FunctionInfo): + lines.append(self.build_function(key, enum_attr, enum_obj)) + elif hasattr(enum_attr, "real"): + value = enum_attr.real + lines.append(f"{key} = {value}") + + if isinstance(enum_attr, GObjectEnumBase): + names.update( + (enum_attr.value_name, enum_attr.value_nick) + if GObjectEnumBase is GObject.GEnum + else (*enum_attr.value_names, *enum_attr.value_nicks) + ) + else: + lines.append(f"{key} = ... # FIXME: {enum_type.title()}") + + if not lines: + # No attributes were found + lines = ["..."] + + cls_body = textwrap.indent("\n".join(lines), " ") + cls_definition = f"class {name}({enum_base}):\n{cls_body}" + enum_value_definition = "" + + if names: + literal_type_name = f"_{name}LiteralType" + literal_type_symbol = self.get_type_alias(literal_type_name) + value_type_symbol = self.get_type_alias(f"_{name}ValueType") + + names_joined = ", ".join(repr(n) for n in sorted(names)) + + value_type = f"{name} | {literal_type_name}" + if enum_type == "flags": + value_type = f"{value_type} | tuple[{literal_type_name}, ...]" + + enum_value_definition = f""" +{literal_type_symbol} = {self.get_literal(names_joined)} +{value_type_symbol} = {value_type}""" + + return f"{cls_definition}{enum_value_definition}" + def build_contents_and_fields( self, parent: _Object, @@ -1130,96 +1260,21 @@ def build_contents_and_fields( # Flags for name, obj in sorted(flags.items()): - override = self.check_override(prefix_name, name) - if override: - ret += override + "\n\n" - continue - - if in_class is None and (alias := self.get_alias(name, obj)) is not None: - ret += f"{name} = {alias}\n" - continue - - full_name = generate_full_name(prefix_name, name) - flag_base = ( - self.get_namespace_member("GObject", "GFlags") - if issubclass(obj, GObject.GFlags) - else self.get_import("enum", "IntFlag") + ret += ( + self.__build_enum(name, obj, in_class, prefix_name, enum_type="flags") + + "\n" ) - ret += f"class {name}({flag_base}):\n" - for key in sorted(vars(obj)): - if key.startswith(("__", "_")) or key[0].isdigit(): - continue - - override = self.check_override(full_name, key) - if override: - for line in override.splitlines(): - ret += " " + line + "\n" - continue - - o = getattr(obj, key) - if isinstance(o, GI.FunctionInfo): - function_ret = self.build_function(key, o, obj) - for line in function_ret.splitlines(): - ret += " " + line + "\n" - elif hasattr(o, "real"): - value = o.real - ret += f" {key} = {value}\n" - else: - ret += f" {key} = ... # FIXME Flags\n" - ret += "\n" - if ret and enums: ret += "\n" # Enums for name, obj in sorted(enums.items()): - override = self.check_override(prefix_name, name) - if override: - ret += override + "\n\n" - continue - - if in_class is None and (alias := self.get_alias(name, obj)) is not None: - ret += f"{name} = {alias}\n" - continue - - full_name = generate_full_name(prefix_name, name) - enum_base = ( - self.get_namespace_member("GObject", "GEnum") - if issubclass(obj, GObject.GEnum) - else self.get_import("enum", "IntEnum") + ret += ( + self.__build_enum(name, obj, in_class, prefix_name, enum_type="enum") + + "\n" ) - # Some Enums can be empty in the end - ret += f"class {name}({enum_base}):\n" - length_before = len(ret) - for key in sorted(vars(obj)): - if key.startswith(("__", "_")) or key[0].isdigit(): - continue - - override = self.check_override(full_name, key) - if override: - for line in override.splitlines(): - ret += " " + line + "\n" - continue - - o = getattr(obj, key) - if isinstance(o, GI.FunctionInfo): - function_ret = self.build_function(key, o, obj) - for line in function_ret.splitlines(): - ret += " " + line + "\n" - elif hasattr(o, "real"): - value = o.real - ret += f" {key} = {value}\n" - else: - ret += f" {key} = ... # FIXME Enum\n" - - if len(ret) == length_before: - # No attributes were found - ret += " ...\n" - - ret += "\n" - return ret, fields def build(self) -> str: diff --git a/src/pygobject_stub_generator/utils.py b/src/pygobject_stub_generator/utils.py index abdbffab..af85d2cc 100644 --- a/src/pygobject_stub_generator/utils.py +++ b/src/pygobject_stub_generator/utils.py @@ -1,5 +1,9 @@ from __future__ import annotations +from typing import Final + +from gi import _gi as GI + def make_nullable(type_str: str) -> str: if not type_str.endswith(" | None") and type_str != "None": @@ -20,3 +24,40 @@ def get_return_type(return_args: list[str], /) -> str: def generate_full_name(prefix: str, name: str) -> str: return f"{prefix}.{name}" if prefix else name + + +_SCALAR_TAGS: Final = { + GI.TypeTag.BOOLEAN, + GI.TypeTag.INT8, + GI.TypeTag.UINT8, + GI.TypeTag.INT16, + GI.TypeTag.UINT16, + GI.TypeTag.INT32, + GI.TypeTag.UINT32, + GI.TypeTag.INT64, + GI.TypeTag.UINT64, + GI.TypeTag.FLOAT, + GI.TypeTag.DOUBLE, + GI.TypeTag.GTYPE, + GI.TypeTag.UNICHAR, +} + + +def is_ref_type(type_info: GI.TypeInfo, /) -> bool: + """A 'ref type' is one whose GValue payload can be NULL. + + Scalars (bool/int/float/gtype/unichar/enum/flags) cannot. + Strings, objects, interfaces, boxed, variants, pointers, and + collections can. + """ + + tag = type_info.get_tag() + + if tag in _SCALAR_TAGS: + return False + + if tag == GI.TypeTag.INTERFACE: + # Enums and flags are scalars + return not isinstance(type_info.get_interface(), GI.EnumInfo) + + return True