diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 4042faff7..97178c9de 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -52,9 +52,9 @@ jobs:
- uses: actions/checkout@v2
- run: apt-get update
- run: apt-get install -y -qq --no-install-recommends automake autoconf libtool autopoint gettext libglib2.0-dev python-gi-dev libbluetooth-dev
- - run: python3 -m pip install cython mypy==0.782
+ - run: python3 -m pip install cython mypy==0.782 pycairo>=1.16.3
- run: ./autogen.sh
- - run: python3 -m mypy -p blueman --ignore-missing-imports --warn-unused-configs --disallow-any-generics --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs --check-untyped-defs --disallow-untyped-decorators --no-implicit-optional --warn-redundant-casts --warn-unused-ignores --warn-return-any --no-implicit-reexport --strict-equality
+ - run: python3 -m mypy -p blueman --strict
env:
MYPYPATH: ${{ github.workspace }}/stubs
diff --git a/blueman/Functions.py b/blueman/Functions.py
index 7c731f94b..3917f4284 100644
--- a/blueman/Functions.py
+++ b/blueman/Functions.py
@@ -38,7 +38,7 @@
from blueman.main.Config import Config
from blueman.main.DBusProxies import AppletService, DBusProxyFailed
-from blueman.Constants import *
+from blueman.Constants import BIN_DIR, ICON_PATH
import gi
gi.require_version("Gtk", "3.0")
@@ -67,7 +67,7 @@ def check_bluetooth_status(message: str, exitfunc: Callable[[], Any]) -> None:
if not applet.GetBluetoothStatus():
d = Gtk.MessageDialog(
- None, type=Gtk.MessageType.ERROR, icon_name="blueman",
+ type=Gtk.MessageType.ERROR, icon_name="blueman",
text=_("Bluetooth Turned Off"), secondary_text=message)
d.add_button(_("Exit"), Gtk.ResponseType.NO)
d.add_button(_("Enable Bluetooth"), Gtk.ResponseType.YES)
@@ -88,7 +88,7 @@ def check_bluetooth_status(message: str, exitfunc: Callable[[], Any]) -> None:
config = Config("org.blueman.plugins.powermanager")
if config["auto-power-on"] is None:
d = Gtk.MessageDialog(
- None, type=Gtk.MessageType.QUESTION, icon_name="blueman",
+ type=Gtk.MessageType.QUESTION, icon_name="blueman",
text=_("Shall bluetooth get enabled automatically?"))
d.add_button(_("Yes"), Gtk.ResponseType.YES)
d.add_button(_("No"), Gtk.ResponseType.NO)
@@ -116,6 +116,7 @@ def launch(
else:
timestamp = gtktimestamp
display = Gdk.Display.get_default()
+ assert display
context = display.get_app_launch_context()
context.set_timestamp(timestamp)
@@ -209,6 +210,7 @@ def create_menuitem(
item = Gtk.ImageMenuItem(label=text, image=image, use_underline=True)
child = item.get_child()
+ assert isinstance(child, Gtk.AccelLabel)
child.set_use_markup(True)
item.show_all()
diff --git a/blueman/bluez/AnyBase.py b/blueman/bluez/AnyBase.py
index 475c4c1f6..43ac6c2db 100644
--- a/blueman/bluez/AnyBase.py
+++ b/blueman/bluez/AnyBase.py
@@ -1,4 +1,4 @@
-from typing import Dict, List
+from typing import Dict, List, Optional
from gi.repository import GObject, GLib
from gi.repository import Gio
@@ -20,7 +20,7 @@ class AnyBase(GObject.GObject):
def __init__(self, interface_name: str):
super().__init__()
- self.__bus = Gio.bus_get_sync(Gio.BusType.SYSTEM)
+ self.__bus: Optional[Gio.DBusConnection] = Gio.bus_get_sync(Gio.BusType.SYSTEM)
self.__interface_name = interface_name
self.__signal = None
@@ -49,6 +49,7 @@ def _on_properties_changed(
def close(self) -> None:
if self.__signal:
- self.__bus.signal_unsubscribe(self.__signal)
+ if self.__bus is not None:
+ self.__bus.signal_unsubscribe(self.__signal)
self.__signal = None
self.__bus = None
diff --git a/blueman/bluez/Base.py b/blueman/bluez/Base.py
index 5de277751..7e50b1c6d 100644
--- a/blueman/bluez/Base.py
+++ b/blueman/bluez/Base.py
@@ -9,18 +9,18 @@
class BaseMeta(GObjectMeta):
- def __call__(cls, **kwargs: str) -> "Base":
+ def __call__(cls, *args: object, **kwargs: str) -> "Base":
if not hasattr(cls, "__instances__"):
cls.__instances__: Dict[str, "Base"] = {}
path = kwargs.get('obj_path')
if path is None:
- path = cls._obj_path
+ path = getattr(cls, "_obj_path")
if path in cls.__instances__:
return cls.__instances__[path]
- instance: "Base" = super().__call__(**kwargs)
+ instance: "Base" = super().__call__(*args, **kwargs)
cls.__instances__[path] = instance
return instance
@@ -38,6 +38,8 @@ class Base(Gio.DBusProxy, metaclass=BaseMeta):
}
__instances__: Dict[str, "Base"]
+ _interface_name: str
+
def __init__(self, obj_path: str):
super().__init__(
g_name=self.__name,
@@ -62,13 +64,13 @@ def do_g_properties_changed(self, changed_properties: GLib.Variant, _invalidated
def _call(
self,
method: str,
- param: GLib.Variant = None,
+ param: Optional[GLib.Variant] = None,
reply_handler: Optional[Callable[..., None]] = None,
error_handler: Optional[Callable[[BluezDBusException], None]] = None,
) -> None:
def callback(
proxy: Base,
- result: Gio.Task,
+ result: Gio.AsyncResult,
reply: Optional[Callable[..., None]],
error: Optional[Callable[[BluezDBusException], None]],
) -> None:
@@ -95,8 +97,9 @@ def get(self, name: str) -> Any:
None)
return prop.unpack()[0]
except GLib.Error as e:
- if name in self.get_cached_property_names():
- return self.get_cached_property(name).unpack()
+ property = self.get_cached_property(name)
+ if property is not None:
+ return property.unpack()
elif name in self.__fallback:
return self.__fallback[name]
else:
diff --git a/blueman/bluez/Device.py b/blueman/bluez/Device.py
index 05158a9fb..9d87bdc5d 100644
--- a/blueman/bluez/Device.py
+++ b/blueman/bluez/Device.py
@@ -18,14 +18,14 @@ def pair(
) -> None:
self._call('Pair', reply_handler=reply_handler, error_handler=error_handler)
- def connect(
+ def connect( # type: ignore
self,
reply_handler: Optional[Callable[[], None]] = None,
error_handler: Optional[Callable[[BluezDBusException], None]] = None,
) -> None:
self._call('Connect', reply_handler=reply_handler, error_handler=error_handler)
- def disconnect(
+ def disconnect( # type: ignore
self,
reply_handler: Optional[Callable[[], None]] = None,
error_handler: Optional[Callable[[BluezDBusException], None]] = None,
diff --git a/blueman/bluez/Manager.py b/blueman/bluez/Manager.py
index 3dac38424..ac4ca74b5 100644
--- a/blueman/bluez/Manager.py
+++ b/blueman/bluez/Manager.py
@@ -37,10 +37,12 @@ def _on_object_added(self, _object_manager: Gio.DBusObjectManager, dbus_object:
adapter_proxy = dbus_object.get_interface('org.bluez.Adapter1')
if adapter_proxy:
+ assert isinstance(adapter_proxy, Gio.DBusProxy)
object_path = adapter_proxy.get_object_path()
logging.debug(object_path)
self.emit('adapter-added', object_path)
elif device_proxy:
+ assert isinstance(device_proxy, Gio.DBusProxy)
object_path = device_proxy.get_object_path()
logging.debug(object_path)
self.emit('device-created', object_path)
@@ -50,10 +52,12 @@ def _on_object_removed(self, _object_manager: Gio.DBusObjectManager, dbus_object
adapter_proxy = dbus_object.get_interface('org.bluez.Adapter1')
if adapter_proxy:
+ assert isinstance(adapter_proxy, Gio.DBusProxy)
object_path = adapter_proxy.get_object_path()
logging.debug(object_path)
self.emit('adapter-removed', object_path)
elif device_proxy:
+ assert isinstance(device_proxy, Gio.DBusProxy)
object_path = device_proxy.get_object_path()
logging.debug(object_path)
self.emit('device-removed', object_path)
@@ -64,6 +68,7 @@ def get_adapters(self) -> List[Adapter]:
proxy = obj_proxy.get_interface('org.bluez.Adapter1')
if proxy:
+ assert isinstance(proxy, Gio.DBusProxy)
paths.append(proxy.get_object_path())
return [Adapter(obj_path=path) for path in paths]
@@ -88,6 +93,7 @@ def get_devices(self, adapter_path: str = "/") -> List[Device]:
proxy = obj_proxy.get_interface('org.bluez.Device1')
if proxy:
+ assert isinstance(proxy, Gio.DBusProxy)
object_path = proxy.get_object_path()
if object_path.startswith(adapter_path):
paths.append(object_path)
diff --git a/blueman/bluez/Network.py b/blueman/bluez/Network.py
index 7f21a8533..8193b4527 100644
--- a/blueman/bluez/Network.py
+++ b/blueman/bluez/Network.py
@@ -13,7 +13,7 @@ class Network(Base):
def __init__(self, obj_path: str):
super().__init__(obj_path=obj_path)
- def connect(
+ def connect( # type: ignore
self,
uuid: str,
reply_handler: Optional[Callable[[str], None]] = None,
@@ -22,7 +22,7 @@ def connect(
param = GLib.Variant('(s)', (uuid,))
self._call('Connect', param, reply_handler=reply_handler, error_handler=error_handler)
- def disconnect(
+ def disconnect( # type: ignore
self,
reply_handler: Optional[Callable[[], None]] = None,
error_handler: Optional[Callable[[BluezDBusException], None]] = None,
diff --git a/blueman/gui/Animation.py b/blueman/gui/Animation.py
index 32511175a..09cac38c8 100644
--- a/blueman/gui/Animation.py
+++ b/blueman/gui/Animation.py
@@ -1,4 +1,4 @@
-from typing import Iterable
+from typing import Iterable, Optional
from gi import require_version
require_version("Gtk", "3.0")
@@ -8,10 +8,10 @@
class Animation:
def __init__(self, icon: Gtk.Image, icons: Iterable[str], rate: int = 1) -> None:
self.icon_names = list(icons)
- self.timer = None
+ self.timer: Optional[int] = None
self.current = 0
self.icon = icon
- self.rate = 1000 / rate
+ self.rate = int(1000 / rate)
def status(self) -> bool:
if self.timer:
@@ -20,8 +20,8 @@ def status(self) -> bool:
return False
def set_rate(self, rate: float) -> None:
- if not self.rate == (1000 / rate):
- self.rate = 1000 / rate
+ if not self.rate == int(1000 / rate):
+ self.rate = int(1000 / rate)
self.stop()
self.start()
diff --git a/blueman/gui/CommonUi.py b/blueman/gui/CommonUi.py
index 7965c5b68..1c87172f7 100644
--- a/blueman/gui/CommonUi.py
+++ b/blueman/gui/CommonUi.py
@@ -14,10 +14,12 @@
class ErrorDialog(Gtk.MessageDialog):
def __init__(self, markup: str, secondary_markup: Optional[str] = None, excp: Optional[object] = None,
- icon_name: str = "dialog-error", buttons: Gtk.ButtonsType = Gtk.ButtonsType.CLOSE, **kwargs: object
+ icon_name: str = "dialog-error", buttons: Gtk.ButtonsType = Gtk.ButtonsType.CLOSE,
+ title: Optional[str] = None, parent: Optional[Gtk.Container] = None, modal: bool = False,
+ margin_left: int = 0,
) -> None:
super().__init__(name="ErrorDialog", icon_name=icon_name, buttons=buttons,
- type=Gtk.MessageType.ERROR, **kwargs)
+ type=Gtk.MessageType.ERROR, title=title, parent=parent, modal=modal, margin_left=margin_left)
self.set_markup(markup)
@@ -29,7 +31,7 @@ def __init__(self, markup: str, secondary_markup: Optional[str] = None, excp: Op
label_expander = Gtk.Label(label="Exception", use_markup=True, visible=True)
- excp_label = Gtk.Label(str(excp), selectable=True, visible=True)
+ excp_label = Gtk.Label(label=str(excp), selectable=True, visible=True)
expander = Gtk.Expander(label_widget=label_expander, visible=True)
expander.add(excp_label)
@@ -38,16 +40,17 @@ def __init__(self, markup: str, secondary_markup: Optional[str] = None, excp: Op
@overload
-def show_about_dialog(app_name: str, run: "Literal[True]" = True, parent: Gtk.Window = None) -> None:
+def show_about_dialog(app_name: str, run: "Literal[True]" = True, parent: Optional[Gtk.Window] = None) -> None:
...
@overload
-def show_about_dialog(app_name: str, run: "Literal[False]", parent: Gtk.Window = None) -> Gtk.AboutDialog:
+def show_about_dialog(app_name: str, run: "Literal[False]", parent: Optional[Gtk.Window] = None) -> Gtk.AboutDialog:
...
-def show_about_dialog(app_name: str, run: bool = True, parent: Gtk.Window = None) -> Optional[Gtk.AboutDialog]:
+def show_about_dialog(app_name: str, run: bool = True, parent: Optional[Gtk.Window] = None
+ ) -> Optional[Gtk.AboutDialog]:
about = Gtk.AboutDialog()
about.set_transient_for(parent)
about.set_name(app_name)
diff --git a/blueman/gui/DeviceList.py b/blueman/gui/DeviceList.py
index ca2eb4f6f..81895ef40 100644
--- a/blueman/gui/DeviceList.py
+++ b/blueman/gui/DeviceList.py
@@ -43,12 +43,8 @@ class DeviceList(GenericList):
'adapter-removed': (GObject.SignalFlags.RUN_LAST, None, (str,)),
}
- def __del__(self) -> None:
- logging.debug("deleting mainlist")
- super().__del__()
-
def __init__(self, adapter_name: Optional[str] = None, tabledata: Optional[List[ListDataDict]] = None,
- **kwargs: object) -> None:
+ headers_visible: bool = True) -> None:
if not tabledata:
tabledata = []
@@ -72,7 +68,7 @@ def __init__(self, adapter_name: Optional[str] = None, tabledata: Optional[List[
self._anydevhandler = self.any_device.connect_signal("property-changed", self._on_device_property_changed)
self.__discovery_time: float = 0
- self.__adapter_path = None
+ self.__adapter_path: Optional[str] = None
self.Adapter: Optional[Adapter] = None
self.discovering = False
@@ -82,7 +78,7 @@ def __init__(self, adapter_name: Optional[str] = None, tabledata: Optional[List[
{"id": "timestamp", "type": float}
]
- super().__init__(data, **kwargs)
+ super().__init__(data, headers_visible=headers_visible)
self.set_name("DeviceList")
self.set_adapter(adapter_name)
@@ -162,7 +158,9 @@ def _on_device_property_changed(self, _device: AnyDevice, key: str, value: objec
if value:
self.monitor_power_levels(dev)
else:
- r = Gtk.TreeRowReference.new(self.get_model(), self.props.model.get_path(tree_iter))
+ model = self.get_model()
+ assert isinstance(model, Gtk.TreeModel)
+ r = Gtk.TreeRowReference.new(model, model.get_path(tree_iter))
self.level_setup_event(r, dev, None)
# Override when subclassing
@@ -195,6 +193,7 @@ def update(row_ref: Gtk.TreeRowReference, cinfo: conn_info, address: str) -> boo
if device["Connected"] and bt_address not in self.monitored_devices:
logging.info("starting monitor")
tree_iter = self.find_device(device)
+ assert tree_iter is not None
assert self.Adapter is not None
hci = os.path.basename(self.Adapter.get_object_path())
@@ -204,7 +203,9 @@ def update(row_ref: Gtk.TreeRowReference, cinfo: conn_info, address: str) -> boo
except ConnInfoReadError:
logging.warning("Failed to get power levels, probably a LE device.")
- r = Gtk.TreeRowReference.new(self.get_model(), self.get_model().get_path(tree_iter))
+ model = self.get_model()
+ assert isinstance(model, Gtk.TreeModel)
+ r = Gtk.TreeRowReference.new(model, model.get_path(tree_iter))
self.level_setup_event(r, device, cinfo)
GLib.timeout_add(1000, update, r, cinfo, bt_address)
self.monitored_devices.append(bt_address)
@@ -231,6 +232,7 @@ def device_add_event(self, device: Device) -> None:
def device_remove_event(self, device: Device) -> None:
logging.debug(device)
tree_iter = self.find_device(device)
+ assert tree_iter is not None
if self.compare(self.selected(), tree_iter):
self.emit("device-selected", None, None)
@@ -361,6 +363,7 @@ def find_device(self, device: Device) -> Optional[Gtk.TreeIter]:
row = self.path_to_row[object_path]
if row.valid():
path = row.get_path()
+ assert path is not None
tree_iter = self.liststore.get_iter(path)
return tree_iter
else:
@@ -374,8 +377,9 @@ def find_device_by_path(self, path: str) -> Optional[Gtk.TreeIter]:
try:
row = self.path_to_row[path]
if row.valid():
- path = row.get_path()
- tree_iter = self.liststore.get_iter(path)
+ path_ = row.get_path()
+ assert path_ is not None
+ tree_iter = self.liststore.get_iter(path_)
return tree_iter
else:
del self.path_to_row[path]
@@ -403,14 +407,17 @@ def do_cache(self, tree_iter: Gtk.TreeIter, kwargs: Dict[str, Any]) -> None:
self.path_to_row[object_path] = Gtk.TreeRowReference.new(self.liststore,
self.liststore.get_path(tree_iter))
- def append(self, **columns: object) -> None:
+ def append(self, **columns: object) -> Gtk.TreeIter:
tree_iter = GenericList.append(self, **columns)
self.do_cache(tree_iter, columns)
+ return tree_iter
- def prepend(self, **columns: object) -> None:
+ def prepend(self, **columns: object) -> Gtk.TreeIter:
tree_iter = GenericList.prepend(self, **columns)
self.do_cache(tree_iter, columns)
+ return tree_iter
- def set(self, iterid: Gtk.TreeIter, **kwargs: object) -> None:
+ # FIXME: GenericList.set accepts int and str as iterid, DeviceList does not
+ def set(self, iterid: Gtk.TreeIter, **kwargs: object) -> None: # type: ignore
GenericList.set(self, iterid, **kwargs)
self.do_cache(iterid, kwargs)
diff --git a/blueman/gui/DeviceSelectorDialog.py b/blueman/gui/DeviceSelectorDialog.py
index 124b77481..5d17c1eb7 100644
--- a/blueman/gui/DeviceSelectorDialog.py
+++ b/blueman/gui/DeviceSelectorDialog.py
@@ -2,12 +2,10 @@
from typing import Optional, Tuple
from blueman.bluez.Device import Device
+from blueman.gui.DeviceList import DeviceList
from blueman.gui.DeviceSelectorWidget import DeviceSelectorWidget
import gi
-
-from blueman.gui.manager.ManagerDeviceList import ManagerDeviceList
-
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
@@ -44,9 +42,9 @@ def on_row_activated(self, _treeview: Gtk.TreeView, _path: Gtk.TreePath, _view_c
*_args: object) -> None:
self.response(Gtk.ResponseType.ACCEPT)
- def on_adapter_changed(self, _devlist: ManagerDeviceList, _adapter: str) -> None:
+ def on_adapter_changed(self, _devlist: DeviceList, _adapter: str) -> None:
self.selection = None
- def on_device_selected(self, devlist: ManagerDeviceList, device: Device, _tree_iter: Gtk.TreeIter) -> None:
+ def on_device_selected(self, devlist: DeviceList, device: Device, _tree_iter: Gtk.TreeIter) -> None:
assert devlist.Adapter is not None
self.selection = (devlist.Adapter.get_object_path(), device)
diff --git a/blueman/gui/DeviceSelectorWidget.py b/blueman/gui/DeviceSelectorWidget.py
index f9e3b6a9c..43e35bb04 100644
--- a/blueman/gui/DeviceSelectorWidget.py
+++ b/blueman/gui/DeviceSelectorWidget.py
@@ -13,11 +13,11 @@
class DeviceSelectorWidget(Gtk.Box):
def __init__(self, adapter_name: Optional[str] = None, orientation: Gtk.Orientation = Gtk.Orientation.VERTICAL,
- **kwargs: object) -> None:
+ visible: bool = False) -> None:
super().__init__(orientation=orientation, spacing=1, vexpand=True,
width_request=360, height_request=340,
- name="DeviceSelectorWidget", **kwargs)
+ name="DeviceSelectorWidget", visible=visible)
self.List = DeviceSelectorList(adapter_name)
if self.List.Adapter is not None:
@@ -101,8 +101,9 @@ def on_adapter_changed(self, _devlist: DeviceSelectorList, adapter_path: str) ->
self.List.display_known_devices()
def update_adapters_list(self) -> None:
-
- self.cb_adapters.get_model().clear()
+ model = self.cb_adapters.get_model()
+ assert isinstance(model, Gtk.ListStore)
+ model.clear()
adapters = self.List.manager.get_adapters()
num = len(adapters)
if num == 0:
@@ -115,6 +116,6 @@ def update_adapters_list(self) -> None:
self.List.props.sensitive = True
self.cb_adapters.props.visible = True
for adapter in adapters:
- tree_iter = self.cb_adapters.get_model().append([adapter.get_name(), adapter.get_object_path()])
+ tree_iter = model.append([adapter.get_name(), adapter.get_object_path()])
if self.List.Adapter and adapter.get_object_path() == self.List.Adapter.get_object_path():
self.cb_adapters.set_active_iter(tree_iter)
diff --git a/blueman/gui/GenericList.py b/blueman/gui/GenericList.py
index 8235332bc..89eba2ffa 100644
--- a/blueman/gui/GenericList.py
+++ b/blueman/gui/GenericList.py
@@ -24,8 +24,8 @@ class ListDataDict(_ListDataDictBase, total=False):
# noinspection PyAttributeOutsideInit
class GenericList(Gtk.TreeView):
- def __init__(self, data: Iterable[ListDataDict], **kwargs: object) -> None:
- super().__init__(**kwargs)
+ def __init__(self, data: Iterable[ListDataDict], headers_visible: bool = True, visible: bool = False) -> None:
+ super().__init__(headers_visible=headers_visible, visible=visible)
self.set_name("GenericList")
self.selection = self.get_selection()
self._load(data)
@@ -61,12 +61,12 @@ def _load(self, data: Iterable[ListDataDict]) -> None:
def selected(self) -> Gtk.TreeIter:
(model, tree_iter) = self.selection.get_selected()
-
+ assert tree_iter is not None
return tree_iter
def delete(self, iterid: Union[Gtk.TreeIter, Gtk.TreePath, int, str]) -> bool:
- if type(iterid) == Gtk.TreeIter:
- tree_iter = iterid
+ if isinstance(iterid, Gtk.TreeIter):
+ tree_iter: Optional[Gtk.TreeIter] = iterid
else:
tree_iter = self.get_iter(iterid)
@@ -115,9 +115,9 @@ def get_conditional(self, **cols: object) -> List[int]:
return ret
- def set(self, iterid: Union[Gtk.TreeIter, Gtk.TreePath, int, str], **cols: object) -> None:
- if type(iterid) == Gtk.TreeIter:
- tree_iter = iterid
+ def set(self, iterid: Union[Gtk.TreeIter, int, str], **cols: object) -> None:
+ if isinstance(iterid, Gtk.TreeIter):
+ tree_iter: Optional[Gtk.TreeIter] = iterid
else:
tree_iter = self.get_iter(iterid)
@@ -129,10 +129,11 @@ def get(self, iterid: Union[Gtk.TreeIter, Gtk.TreePath, int, str], *items: str)
ret = {}
if iterid is not None:
- if type(iterid) == Gtk.TreeIter:
- tree_iter = iterid
+ if isinstance(iterid, Gtk.TreeIter):
+ tree_iter: Optional[Gtk.TreeIter] = iterid
else:
tree_iter = self.get_iter(iterid)
+ assert tree_iter is not None
if len(items) == 0:
for k, v in self.ids.items():
ret[k] = self.liststore.get(tree_iter, v)[0]
@@ -159,7 +160,8 @@ def clear(self) -> None:
def compare(self, iter_a: Gtk.TreeIter, iter_b: Gtk.TreeIter) -> bool:
if iter_a is not None and iter_b is not None:
- res: bool = self.get_model().get_path(iter_a) == self.get_model().get_path(iter_b)
- return res
+ model = self.get_model()
+ assert model is not None
+ return model.get_path(iter_a) == model.get_path(iter_b)
else:
return False
diff --git a/blueman/gui/GsmSettings.py b/blueman/gui/GsmSettings.py
index 4092dcbe9..e3a69922b 100644
--- a/blueman/gui/GsmSettings.py
+++ b/blueman/gui/GsmSettings.py
@@ -1,7 +1,7 @@
from gettext import gettext as _
+from blueman.main.Builder import Builder
from blueman.main.Config import Config
-from blueman.Constants import *
import gi
gi.require_version("Gtk", "3.0")
@@ -15,11 +15,9 @@ def __init__(self, bd_address: str) -> None:
self.set_name("GsmSettings")
self.device = bd_address
- self.Builder = Gtk.Builder()
- self.Builder.set_translation_domain("blueman")
- self.Builder.add_from_file(UI_PATH + "/gsm-settings.ui")
+ builder = Builder("gsm-settings.ui")
- gsm_grid = self.Builder.get_object("gsm_grid")
+ gsm_grid = builder.get_widget("gsm_grid", Gtk.Grid)
self.config = Config("org.blueman.gsmsetting", f"/org/blueman/gsmsettings/{bd_address}/")
self.props.icon_name = "network-wireless"
@@ -31,8 +29,8 @@ def __init__(self, bd_address: str) -> None:
a.pack_start(gsm_grid, True, True, 0)
gsm_grid.show()
- self.e_apn = self.Builder.get_object("e_apn")
- self.e_number = self.Builder.get_object("e_number")
+ self.e_apn = builder.get_widget("e_apn", Gtk.Entry)
+ self.e_number = builder.get_widget("e_number", Gtk.Entry)
self.config.bind_to_widget("apn", self.e_apn, "text")
self.config.bind_to_widget("number", self.e_number, "text")
diff --git a/blueman/gui/GtkAnimation.py b/blueman/gui/GtkAnimation.py
index b3aaa0944..e15caf0d3 100644
--- a/blueman/gui/GtkAnimation.py
+++ b/blueman/gui/GtkAnimation.py
@@ -20,7 +20,7 @@ class AnimBase(GObject.GObject):
def __init__(self, state: float = 1.0) -> None:
super().__init__()
- self._source = None
+ self._source: Optional[int] = None
self._state = state
self.frozen = False
self.fps = 24.0
@@ -103,6 +103,7 @@ def __init__(self, tw: Gtk.TreeView, path: Gtk.TreePath, columns: Optional[Colle
self.sig: Optional[int] = self.tw.connect_after("draw", self.on_draw)
+ assert tw.props.model is not None
self.row = Gtk.TreeRowReference.new(tw.props.model, path)
self.stylecontext = tw.get_style_context()
self.columns = columns
@@ -113,15 +114,19 @@ def unref(self) -> None:
self.sig = None
def get_iter(self) -> Optional[Gtk.TreeIter]:
- return self.tw.props.model.get_iter(self.row.get_path())
+ assert isinstance(self.tw.props.model, Gtk.TreeModel)
+ path = self.row.get_path()
+ assert path is not None
+ return self.tw.props.model.get_iter(path)
def on_draw(self, widget: Gtk.Widget, cr: cairo.Context) -> bool:
if self.frozen:
return False
if not self.row.valid():
- self.tw.disconnect(self.sig)
- self.sig = None
+ if self.sig is not None:
+ self.tw.disconnect(self.sig)
+ self.sig = None
return False
path = self.row.get_path()
@@ -154,10 +159,11 @@ def __init__(self, tw: Gtk.TreeView, path: Gtk.TreePath, columns: Iterable[int])
self.tw = tw
self.frozen = False
- self.sig = tw.connect_after("draw", self.on_draw)
+ self.sig: Optional[int] = tw.connect_after("draw", self.on_draw)
+ assert tw.props.model is not None
self.row = Gtk.TreeRowReference.new(tw.props.model, path)
self.selection = tw.get_selection()
- self.columns: List[Gtk.TreeViewColumn] = []
+ self.columns: List[Optional[Gtk.TreeViewColumn]] = []
for i in columns:
self.columns.append(self.tw.get_column(i))
@@ -167,15 +173,19 @@ def unref(self) -> None:
self.sig = None
def get_iter(self) -> Optional[Gtk.TreeIter]:
- return self.tw.props.model.get_iter(self.row.get_path())
+ assert isinstance(self.tw.props.model, Gtk.TreeModel)
+ path = self.row.get_path()
+ assert path is not None
+ return self.tw.props.model.get_iter(path)
def on_draw(self, _widget: Gtk.Widget, cr: cairo.Context) -> bool:
if self.frozen:
return False
if not self.row.valid():
- self.tw.disconnect(self.sig)
- self.sig = None
+ if self.sig is not None:
+ self.tw.disconnect(self.sig)
+ self.sig = None
path = self.row.get_path()
@@ -191,8 +201,12 @@ def on_draw(self, _widget: Gtk.Widget, cr: cairo.Context) -> bool:
cr.clip()
- selected = self.selection.get_selected()[1] and \
- self.tw.props.model.get_path(self.selection.get_selected()[1]) == path
+ assert self.tw.props.model is not None
+ maybe_selected = self.selection.get_selected()[1]
+ if maybe_selected is not None:
+ selected = self.tw.props.model.get_path(maybe_selected) == path
+ else:
+ selected = False
stylecontext = self.tw.get_style_context()
diff --git a/blueman/gui/MessageArea.py b/blueman/gui/MessageArea.py
index c3022dee4..564f1bf51 100644
--- a/blueman/gui/MessageArea.py
+++ b/blueman/gui/MessageArea.py
@@ -48,7 +48,9 @@ def __init__(self) -> None:
def on_response(self, info_bar: Gtk.InfoBar, response_id: int) -> None:
if response_id == 0:
assert self.bt is not None
- d = Gtk.MessageDialog(parent=self.get_toplevel(), flags=0, type=Gtk.MessageType.INFO,
+ parent = self.get_toplevel()
+ assert isinstance(parent, Gtk.Container)
+ d = Gtk.MessageDialog(parent=parent, type=Gtk.MessageType.INFO,
buttons=Gtk.ButtonsType.CLOSE, text='\n'.join((self.text, self.bt)))
d.run()
d.destroy()
diff --git a/blueman/gui/Notification.py b/blueman/gui/Notification.py
index c80bf0ccd..bc909fb35 100644
--- a/blueman/gui/Notification.py
+++ b/blueman/gui/Notification.py
@@ -30,8 +30,8 @@ def __init__(self, summary: str, message: str, _timeout: int = -1,
actions: Optional[Iterable[Tuple[str, str]]] = None,
actions_cb: Optional[Callable[[str], None]] = None, icon_name: Optional[str] = None,
image_data: Optional[GdkPixbuf.Pixbuf] = None) -> None:
- super().__init__(parent=None, flags=0, type=Gtk.MessageType.QUESTION,
- buttons=Gtk.ButtonsType.NONE, message_format=None)
+ super().__init__(parent=None, type=Gtk.MessageType.QUESTION,
+ buttons=Gtk.ButtonsType.NONE, text=None)
self.set_name("NotificationDialog")
i = 100
@@ -72,13 +72,13 @@ def __init__(self, summary: str, message: str, _timeout: int = -1,
self.entered = False
- def on_enter(_widget: Gtk.Widget, _event: Gdk.Event) -> bool:
+ def on_enter(_widget: "_NotificationDialog", _event: Gdk.Event) -> bool:
if self.get_window() == Gdk.Window.at_pointer()[0] or not self.entered:
self.fader.animate(start=self.fader.get_state(), end=1.0, duration=500)
self.entered = True
return False
- def on_leave(_widget: Gtk.Widget, _event: Gdk.Event) -> bool:
+ def on_leave(_widget: "_NotificationDialog", _event: Gdk.Event) -> bool:
if not Gdk.Window.at_pointer():
self.entered = False
self.fader.animate(start=self.fader.get_state(), end=OPACITY_START, duration=500)
@@ -249,7 +249,7 @@ def show(self) -> None:
def close(self) -> None:
param = GLib.Variant('(u)', (self._return_id,))
- self.call_sync('CloseNotification', param, Gio.DBusProxyFlags.NONE, -1, None)
+ self.call_sync('CloseNotification', param, Gio.DBusCallFlags.NONE, -1, None)
self._return_id = None
diff --git a/blueman/gui/applet/PluginDialog.py b/blueman/gui/applet/PluginDialog.py
index a5fecae9f..8c77017b4 100644
--- a/blueman/gui/applet/PluginDialog.py
+++ b/blueman/gui/applet/PluginDialog.py
@@ -2,8 +2,8 @@
import logging
from typing import TYPE_CHECKING, List, Type, Dict
-from blueman.Constants import *
from blueman.gui.GenericList import GenericList, ListDataDict
+from blueman.main.Builder import Builder
from blueman.main.PluginManager import PluginManager
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.plugins.BasePlugin import Option
@@ -59,7 +59,7 @@ def get_control_widget(self, opt: str, params: "Option") -> Gtk.Widget:
return c
elif params["type"] == int:
- b = Gtk.Box(Gtk.Orientation.HORIZONTAL, spacing=6)
+ b = Gtk.Box(spacing=6)
label = Gtk.Label(label=params["name"])
b.pack_start(label, False, False, 0)
@@ -86,6 +86,7 @@ def get_control_widget(self, opt: str, params: "Option") -> Gtk.Widget:
e.connect("changed", self.handle_change, opt, params, "text")
return b
+ raise ValueError()
class PluginDialog(Gtk.Window):
@@ -103,26 +104,25 @@ def __init__(self, applet: "BluemanApplet") -> None:
self.applet = applet
- self.Builder = Gtk.Builder(translation_domain="blueman")
- self.Builder.add_from_file(UI_PATH + "/applet-plugins-widget.ui")
+ builder = Builder("applet-plugins-widget.ui")
- self.description = self.Builder.get_object("description")
+ self.description = builder.get_widget("description", Gtk.Label)
- self.icon = self.Builder.get_object("icon")
- self.author_txt = self.Builder.get_object("author_txt")
- self.depends_hdr = self.Builder.get_object("depends_hdr")
- self.depends_txt = self.Builder.get_object("depends_txt")
- self.conflicts_hdr = self.Builder.get_object("conflicts_hdr")
- self.conflicts_txt = self.Builder.get_object("conflicts_txt")
- self.plugin_name = self.Builder.get_object("name")
+ self.icon = builder.get_widget("icon", Gtk.Image)
+ self.author_txt = builder.get_widget("author_txt", Gtk.Label)
+ self.depends_hdr = builder.get_widget("depends_hdr", Gtk.Widget)
+ self.depends_txt = builder.get_widget("depends_txt", Gtk.Label)
+ self.conflicts_hdr = builder.get_widget("conflicts_hdr", Gtk.Widget)
+ self.conflicts_txt = builder.get_widget("conflicts_txt", Gtk.Label)
+ self.plugin_name = builder.get_widget("name", Gtk.Label)
- self.main_container = self.Builder.get_object("main_container")
- self.content_grid = self.Builder.get_object("content")
+ self.main_container = builder.get_widget("main_container", Gtk.Bin)
+ self.content_grid = builder.get_widget("content", Gtk.Widget)
- self.b_prefs = self.Builder.get_object("b_prefs")
+ self.b_prefs = builder.get_widget("b_prefs", Gtk.ToggleButton)
self.b_prefs.connect("toggled", self.on_prefs_toggled)
- self.add(self.Builder.get_object("all"))
+ self.add(builder.get_widget("all", Gtk.Container))
cr = Gtk.CellRendererToggle()
cr.connect("toggled", self.on_toggled)
@@ -144,8 +144,8 @@ def __init__(self, applet: "BluemanApplet") -> None:
self.list.selection.connect("changed", self.on_selection_changed)
- plugin_list = self.Builder.get_object("plugin_list")
- plugin_info = self.Builder.get_object("main_scrolled_window")
+ plugin_list = builder.get_widget("plugin_list", Gtk.ScrolledWindow)
+ plugin_info = builder.get_widget("main_scrolled_window", Gtk.ScrolledWindow)
plugin_list.add(self.list)
# Disable overlay scrolling
@@ -161,7 +161,7 @@ def __init__(self, applet: "BluemanApplet") -> None:
self.list.set_cursor(0)
- def list_compare_func(self, _treemodel: Gtk.TreeModel, iter1: Gtk.TreeIter, iter2: Gtk.TreeIter, _user_data: None
+ def list_compare_func(self, _treemodel: Gtk.TreeModel, iter1: Gtk.TreeIter, iter2: Gtk.TreeIter, _user_data: object
) -> int:
a = self.list.get(iter1, "activatable", "name")
b = self.list.get(iter2, "activatable", "name")
@@ -189,6 +189,7 @@ def _on_close(self, _widget: Gtk.Widget, _event: Gdk.Event) -> bool:
def on_selection_changed(self, selection: Gtk.TreeSelection) -> None:
model, tree_iter = selection.get_selected()
+ assert tree_iter is not None
name = self.list.get(tree_iter, "name")["name"]
cls: Type[AppletPlugin] = self.applet.Plugins.get_classes()[name]
@@ -222,6 +223,7 @@ def on_selection_changed(self, selection: Gtk.TreeSelection) -> None:
def on_prefs_toggled(self, _button: Gtk.ToggleButton) -> None:
model, tree_iter = self.list.selection.get_selected()
+ assert tree_iter is not None
name = self.list.get(tree_iter, "name")["name"]
cls: Type[AppletPlugin] = self.applet.Plugins.get_classes()[name]
@@ -238,6 +240,7 @@ def update_config_widget(self, cls: Type[AppletPlugin]) -> None:
self.b_prefs.props.active = False
else:
c = self.main_container.get_child()
+ assert c is not None
self.main_container.remove(c)
if isinstance(c, SettingsWidget):
c.destroy()
@@ -246,6 +249,7 @@ def update_config_widget(self, cls: Type[AppletPlugin]) -> None:
else:
c = self.main_container.get_child()
+ assert c is not None
self.main_container.remove(c)
if isinstance(c, SettingsWidget):
c.destroy()
@@ -284,7 +288,7 @@ def on_toggled(self, _toggle: Gtk.CellRendererToggle, path: str) -> None:
to_unload.append(dep)
if to_unload:
- dialog = Gtk.MessageDialog(self, type=Gtk.MessageType.QUESTION, buttons=Gtk.ButtonsType.YES_NO)
+ dialog = Gtk.MessageDialog(parent=self, type=Gtk.MessageType.QUESTION, buttons=Gtk.ButtonsType.YES_NO)
dialog.props.secondary_use_markup = True
dialog.props.icon_name = "blueman"
dialog.props.text = _("Dependency issue")
@@ -306,7 +310,7 @@ def on_toggled(self, _toggle: Gtk.CellRendererToggle, path: str) -> None:
to_unload.append(conf)
if to_unload:
- dialog = Gtk.MessageDialog(self, type=Gtk.MessageType.QUESTION, buttons=Gtk.ButtonsType.YES_NO)
+ dialog = Gtk.MessageDialog(parent=self, type=Gtk.MessageType.QUESTION, buttons=Gtk.ButtonsType.YES_NO)
dialog.props.secondary_use_markup = True
dialog.props.icon_name = "blueman"
dialog.props.text = _("Dependency issue")
diff --git a/blueman/gui/manager/ManagerDeviceList.py b/blueman/gui/manager/ManagerDeviceList.py
index 219a9f865..bd4697233 100644
--- a/blueman/gui/manager/ManagerDeviceList.py
+++ b/blueman/gui/manager/ManagerDeviceList.py
@@ -1,5 +1,5 @@
from gettext import gettext as _
-from typing import Dict, Optional, TYPE_CHECKING, List, Any
+from typing import Dict, Optional, TYPE_CHECKING, List, Any, cast
import html
import logging
import cairo
@@ -22,7 +22,6 @@
from gi.repository import Gtk
from gi.repository import Gdk
from gi.repository import GdkPixbuf
-from gi.repository import GObject
from gi.repository import Pango
if TYPE_CHECKING:
@@ -55,8 +54,8 @@ def __init__(self, adapter: Optional[str] = None, inst: Optional["Blueman"] = No
{"id": "lq", "type": float},
{"id": "tpl", "type": float},
{"id": "icon_info", "type": Gtk.IconInfo},
- {"id": "cell_fader", "type": GObject.TYPE_PYOBJECT},
- {"id": "row_fader", "type": GObject.TYPE_PYOBJECT},
+ {"id": "cell_fader", "type": CellFade},
+ {"id": "row_fader", "type": TreeRowFade},
{"id": "levels_visible", "type": bool},
{"id": "initial_anim", "type": bool},
]
@@ -73,8 +72,8 @@ def __init__(self, adapter: Optional[str] = None, inst: Optional["Blueman"] = No
self._on_settings_changed(self.Config, "sort-type")
self.connect("query-tooltip", self.tooltip_query)
- self.tooltip_row = None
- self.tooltip_col = None
+ self.tooltip_row: Optional[Gtk.TreePath] = None
+ self.tooltip_col: Optional[Gtk.TreeViewColumn] = None
self.connect("button_press_event", self.on_event_clicked)
self.connect("button_release_event", self.on_event_clicked)
@@ -128,6 +127,7 @@ def drag_recv(self, _widget: Gtk.Widget, context: Gdk.DragContext, x: int, y: in
path = self.get_path_at_pos(x, y)
if path:
tree_iter = self.get_iter(path[0])
+ assert tree_iter is not None
device = self.get(tree_iter, "device")["device"]
command = f"blueman-sendto --device={device['Address']}"
@@ -140,8 +140,10 @@ def drag_motion(self, _widget: Gtk.Widget, drag_context: Gdk.DragContext, x: int
result = self.get_path_at_pos(x, y)
if result is not None:
path = result[0]
+ assert path is not None
if not self.selection.path_is_selected(path):
tree_iter = self.get_iter(path)
+ assert tree_iter is not None
has_obj_push = self._has_objpush(self.get(tree_iter, "device")["device"])
if has_obj_push:
Gdk.drag_status(drag_context, Gdk.DragAction.COPY, timestamp)
@@ -159,10 +161,11 @@ def on_event_clicked(self, _widget: Gtk.Widget, event: Gdk.Event) -> bool:
if event.type not in (Gdk.EventType._2BUTTON_PRESS, Gdk.EventType.BUTTON_PRESS):
return False
- path = self.get_path_at_pos(int(event.x), int(event.y))
+ path = self.get_path_at_pos(int(cast(Gdk.EventButton, event).x), int(cast(Gdk.EventButton, event).y))
if path is None:
return False
+ assert path[0] is not None
row = self.get(path[0], "device", "connected")
if not row:
return False
@@ -173,11 +176,11 @@ def on_event_clicked(self, _widget: Gtk.Widget, event: Gdk.Event) -> bool:
if self.menu is None:
self.menu = ManagerDeviceMenu(self.Blueman)
- if event.type == Gdk.EventType._2BUTTON_PRESS and event.button == 1:
+ if event.type == Gdk.EventType._2BUTTON_PRESS and cast(Gdk.EventButton, event).button == 1:
if self.menu.show_generic_connect_calc(row["device"]['UUIDs']):
self.menu.generic_connect(None, device=row["device"], connect=not row["connected"])
- if event.type == Gdk.EventType.BUTTON_PRESS and event.button == 3:
+ if event.type == Gdk.EventType.BUTTON_PRESS and cast(Gdk.EventButton, event).button == 3:
self.menu.popup_at_pointer(event)
return False
@@ -201,14 +204,18 @@ def make_device_icon(self, icon_info: Gtk.IconInfo, is_paired: bool = False, is_
ctx = cairo.Context(target)
if is_paired:
- icon_info = self.get_icon_info("dialog-password", 16, False)
- paired_surface = icon_info.load_surface(window)
+ _icon_info = self.get_icon_info("dialog-password", 16, False)
+ assert _icon_info is not None
+ paired_surface = _icon_info.load_surface(window)
ctx.set_source_surface(paired_surface, 1 / scale, 1 / scale)
ctx.paint_with_alpha(0.8)
if is_trusted:
- icon_info = self.get_icon_info("blueman-trust", 16, False)
- trusted_surface = icon_info.load_surface(window)
+ _icon_info = self.get_icon_info("blueman-trust", 16, False)
+ assert _icon_info is not None
+ trusted_surface = _icon_info.load_surface(window)
+ assert isinstance(target, cairo.ImageSurface)
+ assert isinstance(trusted_surface, cairo.ImageSurface)
height = target.get_height()
mini_height = trusted_surface.get_height()
y = height / scale - mini_height / scale - 1 / scale
@@ -220,6 +227,7 @@ def make_device_icon(self, icon_info: Gtk.IconInfo, is_paired: bool = False, is_
def device_remove_event(self, device: Device) -> None:
tree_iter = self.find_device(device)
+ assert tree_iter is not None
row_fader = self.get(tree_iter, "row_fader")["row_fader"]
super().device_remove_event(device)
@@ -253,8 +261,10 @@ def get_device_class(device: Device) -> str:
def row_setup_event(self, tree_iter: Gtk.TreeIter, device: Device) -> None:
if not self.get(tree_iter, "initial_anim")["initial_anim"]:
- cell_fader = CellFade(self, self.props.model.get_path(tree_iter), [2, 3, 4])
- row_fader = TreeRowFade(self, self.props.model.get_path(tree_iter))
+ model = self.props.model
+ assert model is not None
+ cell_fader = CellFade(self, model.get_path(tree_iter), [2, 3, 4])
+ row_fader = TreeRowFade(self, model.get_path(tree_iter))
has_objpush = self._has_objpush(device)
@@ -333,6 +343,7 @@ def level_setup_event(self, row_ref: Gtk.TreeRowReference, device: Device, cinfo
return
tree_iter = self.get_iter(row_ref.get_path())
+ assert tree_iter is not None
row = self.get(tree_iter, "levels_visible", "cell_fader", "rssi", "lq", "tpl")
if cinfo is not None:
# cinfo init may fail for bluetooth devices version 4 and up
@@ -415,6 +426,7 @@ def on_finished(fader: CellFade) -> None:
fader.disconnect(faderhandler)
fader.freeze()
if row_ref.valid():
+ assert tree_iter is not None # https://github.com/python/mypy/issues/2608
self.set(tree_iter, rssi_pb=None, lq_pb=None, tpl_pb=None)
faderhandler = fader.connect("animation-finished", on_finished)
@@ -430,6 +442,7 @@ def tooltip_query(self, _tw: Gtk.Widget, x: int, y: int, _kb: bool, tooltip: Gtk
if path[1] == self.columns["device_surface"]:
tree_iter = self.get_iter(path[0])
+ assert tree_iter is not None
row = self.get(tree_iter, "trusted", "paired")
trusted = row["trusted"]
@@ -451,6 +464,7 @@ def tooltip_query(self, _tw: Gtk.Widget, x: int, y: int, _kb: bool, tooltip: Gtk
or path[1] == self.columns["lq_pb"] \
or path[1] == self.columns["rssi_pb"]:
tree_iter = self.get_iter(path[0])
+ assert tree_iter is not None
dt = self.get(tree_iter, "connected")["connected"]
if dt:
diff --git a/blueman/gui/manager/ManagerDeviceMenu.py b/blueman/gui/manager/ManagerDeviceMenu.py
index db7bd6a1f..55de28b6e 100644
--- a/blueman/gui/manager/ManagerDeviceMenu.py
+++ b/blueman/gui/manager/ManagerDeviceMenu.py
@@ -3,12 +3,12 @@
from operator import itemgetter
from typing import Dict, List, Tuple, Optional, TYPE_CHECKING, Union, Iterable
-from blueman.Constants import UI_PATH
from blueman.Functions import create_menuitem, e_
from blueman.Service import Service
from blueman.bluez.Network import AnyNetwork
from blueman.bluez.Device import AnyDevice, Device
from blueman.gui.manager.ManagerProgressbar import ManagerProgressbar
+from blueman.main.Builder import Builder
from blueman.main.DBusProxies import AppletService, DBusProxyFailed
from blueman.gui.MessageArea import MessageArea
from blueman.Sdp import (
@@ -72,7 +72,7 @@ def __init__(self, blueman: "Blueman") -> None:
def __del__(self) -> None:
logging.debug("deleting devicemenu")
- def popup_at_pointer(self, event: Gdk.Event) -> None:
+ def popup_at_pointer(self, event: Optional[Gdk.Event]) -> None:
self.is_popup = True
self.generate()
@@ -232,6 +232,7 @@ def generate(self) -> None:
(x, y) = self.Blueman.List.get_pointer()
path = self.Blueman.List.get_path_at_pos(x, y)
if path is not None:
+ assert path[0] is not None
row = self.Blueman.List.get(path[0], "alias", "paired", "connected", "trusted", "objpush", "device")
else:
return
@@ -241,7 +242,7 @@ def generate(self) -> None:
op = self.get_op(self.SelectedDevice)
if op is not None:
- item = create_menuitem(op, "network-transmit-receive")
+ item: Gtk.MenuItem = create_menuitem(op, "network-transmit-receive")
item.props.sensitive = False
item.show()
self.append(item)
@@ -360,18 +361,17 @@ def generate(self) -> None:
def on_rename(_item: Gtk.MenuItem, device: Device) -> None:
def on_response(dialog: Gtk.Dialog, response_id: int) -> None:
if response_id == Gtk.ResponseType.ACCEPT:
+ assert isinstance(alias_entry, Gtk.Entry) # https://github.com/python/mypy/issues/2608
device.set('Alias', alias_entry.get_text())
elif response_id == 1:
device.set('Alias', '')
dialog.destroy()
- builder = Gtk.Builder()
- builder.set_translation_domain("blueman")
- builder.add_from_file(UI_PATH + "/rename-device.ui")
- dialog = builder.get_object("dialog")
+ builder = Builder("rename-device.ui")
+ dialog = builder.get_widget("dialog", Gtk.Dialog)
dialog.set_transient_for(self.Blueman.window)
dialog.props.icon_name = "blueman"
- alias_entry: Gtk.Entry = builder.get_object("alias_entry")
+ alias_entry = builder.get_widget("alias_entry", Gtk.Entry)
alias_entry.set_text(device['Alias'])
dialog.connect("response", on_response)
dialog.present()
diff --git a/blueman/gui/manager/ManagerMenu.py b/blueman/gui/manager/ManagerMenu.py
index 20516c945..76ca8d2f8 100644
--- a/blueman/gui/manager/ManagerMenu.py
+++ b/blueman/gui/manager/ManagerMenu.py
@@ -1,6 +1,6 @@
from gettext import gettext as _
import logging
-from typing import Dict, Tuple, List, TYPE_CHECKING, Any, Optional
+from typing import Dict, Tuple, TYPE_CHECKING, Any, Optional, Sequence
from blueman.bluez.Adapter import Adapter
from blueman.bluez.Device import Device
@@ -27,15 +27,15 @@ def __init__(self, blueman: "Blueman"):
self.Config = Config("org.blueman.general")
self.adapter_items: Dict[str, Tuple[Gtk.RadioMenuItem, Adapter]] = {}
- self._adapters_group: List[Gtk.RadioMenuItem] = []
+ self._adapters_group: Sequence[Gtk.RadioMenuItem] = []
self._insert_adapter_item_pos = 2
self.Search = None
- self.item_adapter = self.blueman.Builder.get_object("item_adapter")
- self.item_device = self.blueman.Builder.get_object("item_device")
+ self.item_adapter = self.blueman.builder.get_widget("item_adapter", Gtk.MenuItem)
+ self.item_device = self.blueman.builder.get_widget("item_device", Gtk.MenuItem)
- self.item_view = self.blueman.Builder.get_object("item_view")
- self.item_help = self.blueman.Builder.get_object("item_help")
+ self.item_view = self.blueman.builder.get_widget("item_view", Gtk.MenuItem)
+ self.item_help = self.blueman.builder.get_widget("item_help", Gtk.MenuItem)
help_menu = Gtk.Menu()
@@ -56,8 +56,10 @@ def __init__(self, blueman: "Blueman"):
help_item.show()
help_menu.append(help_item)
assert self.blueman.window is not None
- help_item.connect("activate", lambda x: show_about_dialog('Blueman ' + _('Device Manager'),
- parent=self.blueman.window.get_toplevel()))
+ widget = self.blueman.window.get_toplevel()
+ assert isinstance(widget, Gtk.Window)
+ window = widget
+ help_item.connect("activate", lambda x: show_about_dialog('Blueman ' + _('Device Manager'), parent=window))
view_menu = Gtk.Menu()
self.item_view.set_submenu(view_menu)
@@ -73,11 +75,11 @@ def __init__(self, blueman: "Blueman"):
view_menu.append(item_statusbar)
self.blueman.Config.bind_to_widget("show-statusbar", item_statusbar, "active")
- item_services = Gtk.SeparatorMenuItem()
+ item_services: Gtk.MenuItem = Gtk.SeparatorMenuItem()
view_menu.append(item_services)
item_services.show()
- sorting_group: List[Gtk.RadioMenuItem] = []
+ sorting_group: Sequence[Gtk.RadioMenuItem] = []
item_sort = Gtk.MenuItem.new_with_mnemonic(_("S_ort By"))
view_menu.append(item_sort)
item_sort.show()
@@ -218,7 +220,11 @@ def on_device_selected(self, _lst: ManagerDeviceList, device: Device, tree_iter:
self.device_menu = ManagerDeviceMenu(self.blueman)
self.item_device.set_submenu(self.device_menu)
else:
- GLib.idle_add(self.device_menu.generate, priority=GLib.PRIORITY_LOW)
+ def idle() -> bool:
+ assert self.device_menu is not None # https://github.com/python/mypy/issues/2608
+ self.device_menu.generate()
+ return False
+ GLib.idle_add(idle, priority=GLib.PRIORITY_LOW)
else:
self.item_device.props.sensitive = False
@@ -234,7 +240,7 @@ def on_adapter_property_changed(self, _adapter: Adapter, name: str, value: Any,
else:
self.Search.props.sensitive = True
- def on_adapter_selected(self, menuitem: Gtk.MenuItem, adapter_path: str) -> None:
+ def on_adapter_selected(self, menuitem: Gtk.CheckMenuItem, adapter_path: str) -> None:
if menuitem.props.active:
assert self.blueman.List.Adapter is not None
if adapter_path != self.blueman.List.Adapter.get_object_path():
@@ -245,6 +251,7 @@ def on_adapter_selected(self, menuitem: Gtk.MenuItem, adapter_path: str) -> None
def on_adapter_added(self, _manager: Optional[Manager], adapter_path: str) -> None:
adapter = Adapter(obj_path=adapter_path)
menu = self.item_adapter.get_submenu()
+ assert isinstance(menu, Gtk.Menu)
object_path = adapter.get_object_path()
item = Gtk.RadioMenuItem.new_with_label(self._adapters_group, adapter.get_name())
@@ -269,6 +276,7 @@ def on_adapter_added(self, _manager: Optional[Manager], adapter_path: str) -> No
def on_adapter_removed(self, _manager: Manager, adapter_path: str) -> None:
item, adapter = self.adapter_items.pop(adapter_path)
menu = self.item_adapter.get_submenu()
+ assert isinstance(menu, Gtk.Menu)
item.disconnect(self._itemhandler)
adapter.disconnect(self._adapterhandler)
diff --git a/blueman/gui/manager/ManagerProgressbar.py b/blueman/gui/manager/ManagerProgressbar.py
index bdae888e0..3ed565ed3 100644
--- a/blueman/gui/manager/ManagerProgressbar.py
+++ b/blueman/gui/manager/ManagerProgressbar.py
@@ -30,7 +30,7 @@ def __init__(self, blueman: "Blueman", cancellable: bool = True, text: str = _("
self.cancellable = cancellable
- self.hbox = hbox = blueman.Builder.get_object("status_data")
+ self.hbox = hbox = blueman.builder.get_widget("status_data", Gtk.Box)
self.progressbar = Gtk.ProgressBar()
self.progressbar.set_name("ManagerProgressbar")
@@ -67,15 +67,20 @@ def __init__(self, blueman: "Blueman", cancellable: bool = True, text: str = _("
ManagerProgressbar.__instances__.append(self)
+ def _get_window(self) -> Gdk.Window:
+ assert self.Blueman.window is not None
+ window = self.Blueman.window.get_window()
+ assert window is not None
+ return window
+
def _on_enter(self, _evbox: Gtk.EventBox, _event: Gdk.Event) -> bool:
c = Gdk.Cursor.new(Gdk.CursorType.HAND2)
- assert self.Blueman.window is not None
- self.Blueman.window.get_window().set_cursor(c)
+ self._get_window().set_cursor(c)
return False
def _on_leave(self, _evbox: Gtk.EventBox, _event: Gdk.Event) -> bool:
assert self.Blueman.window is not None
- self.Blueman.window.get_window().set_cursor(None)
+ self._get_window().set_cursor(None)
return False
def _on_clicked(self, _evbox: Gtk.EventBox, _event: Gdk.Event) -> bool:
@@ -83,13 +88,15 @@ def _on_clicked(self, _evbox: Gtk.EventBox, _event: Gdk.Event) -> bool:
self.emit("cancelled")
return False
- def connect(self, signal: str, callback: Callable[..., object], *args: object) -> None:
+ def connect(self, signal: str, callback: Callable[..., None], *args: object) -> int:
handler_id: int = super().connect(signal, callback, *args)
self._signals.append(handler_id)
+ return handler_id
def show(self) -> None:
if not self.Blueman.Config["show-statusbar"]:
- self.Blueman.Builder.get_object("statusbar").props.visible = True
+ statusbar = self.Blueman.builder.get_widget("statusbar", Gtk.Box)
+ statusbar.props.visible = True
self.progressbar.props.visible = True
self.eventbox.props.visible = True
@@ -111,8 +118,7 @@ def finalize(self) -> bool:
if not self.finalized:
self.hide()
self.stop()
- assert self.Blueman.window is not None
- self.Blueman.window.get_window().set_cursor(None)
+ self._get_window().set_cursor(None)
self.hbox.remove(self.eventbox)
self.hbox.remove(self.progressbar)
# self.hbox.remove(self.seperator)
@@ -131,7 +137,8 @@ def finalize(self) -> bool:
if not ManagerProgressbar.__instances__:
if not self.Blueman.Config["show-statusbar"]:
- self.Blueman.Builder.get_object("statusbar").props.visible = False
+ statusbar = self.Blueman.builder.get_widget("statusbar", Gtk.Box)
+ statusbar.props.visible = False
for sig in self._signals:
if self.handler_is_connected(sig):
@@ -157,7 +164,7 @@ def fraction(self, frac: float) -> None:
self.progressbar.set_fraction(frac)
def started(self) -> bool:
- return self.gsource is not None
+ return self.pulsing
def start(self) -> None:
def pulse() -> bool:
@@ -166,7 +173,7 @@ def pulse() -> bool:
if not self.pulsing:
self.pulsing = True
- GLib.timeout_add(1000 / 24, pulse)
+ GLib.timeout_add(41, pulse)
def stop(self) -> None:
self.pulsing = False
diff --git a/blueman/gui/manager/ManagerStats.py b/blueman/gui/manager/ManagerStats.py
index eafae7b1e..7c147f041 100644
--- a/blueman/gui/manager/ManagerStats.py
+++ b/blueman/gui/manager/ManagerStats.py
@@ -52,7 +52,7 @@ def __init__(self, blueman: "Blueman") -> None:
self.downarrow = Gtk.Image(icon_name="go-down", pixel_size=16, halign=Gtk.Align.END, valign=Gtk.Align.CENTER,
tooltip_text=_("Total data received and rate of transmission"))
- self.hbox = hbox = blueman.Builder.get_object("status_activity")
+ self.hbox = hbox = blueman.builder.get_widget("status_activity", Gtk.Box)
hbox.pack_start(self.uparrow, False, False, 0)
hbox.pack_start(self.up_rate, False, False, 0)
diff --git a/blueman/gui/manager/ManagerToolbar.py b/blueman/gui/manager/ManagerToolbar.py
index c9cc60952..81824cc3f 100644
--- a/blueman/gui/manager/ManagerToolbar.py
+++ b/blueman/gui/manager/ManagerToolbar.py
@@ -24,13 +24,13 @@ def __init__(self, blueman: "Blueman") -> None:
self.blueman.List.connect("adapter-changed", self.on_adapter_changed)
self.blueman.List.connect("adapter-property-changed", self.on_adapter_property_changed)
- self.b_search = blueman.Builder.get_object("b_search")
+ self.b_search = blueman.builder.get_widget("b_search", Gtk.ToolButton)
self.b_search.connect("clicked", lambda button: blueman.inquiry())
- self.b_bond = blueman.Builder.get_object("b_bond")
+ self.b_bond = blueman.builder.get_widget("b_bond", Gtk.ToolButton)
self.b_bond.connect("clicked", self.on_action, self.blueman.bond)
- self.b_trust = blueman.Builder.get_object("b_trust")
+ self.b_trust = blueman.builder.get_widget("b_trust", Gtk.ToolButton)
self.b_trust.connect("clicked", self.on_action, self.blueman.toggle_trust)
self.b_trust.set_homogeneous(False)
@@ -41,14 +41,14 @@ def __init__(self, blueman: "Blueman") -> None:
self.b_trust.props.width_request = max(size.width, size2.width)
- self.b_remove = blueman.Builder.get_object("b_remove")
+ self.b_remove = blueman.builder.get_widget("b_remove", Gtk.ToolButton)
self.b_remove.connect("clicked", self.on_action, self.blueman.remove)
- self.b_setup = blueman.Builder.get_object("b_setup")
+ self.b_setup = blueman.builder.get_widget("b_setup", Gtk.ToolButton)
self.b_setup.connect("clicked", self.on_action, self.blueman.setup)
self.b_setup.set_homogeneous(False)
- self.b_send = blueman.Builder.get_object("b_send")
+ self.b_send = blueman.builder.get_widget("b_send", Gtk.ToolButton)
self.b_send.props.sensitive = False
self.b_send.connect("clicked", self.on_action, self.blueman.send)
self.b_send.set_homogeneous(False)
diff --git a/blueman/main/Adapter.py b/blueman/main/Adapter.py
index bb34ffd99..289f9fc5e 100644
--- a/blueman/main/Adapter.py
+++ b/blueman/main/Adapter.py
@@ -4,10 +4,10 @@
import gettext
from typing import Dict, TYPE_CHECKING, Optional, Any
-from blueman.Constants import UI_PATH
from blueman.Functions import *
from blueman.bluez.Manager import Manager
from blueman.bluez.Adapter import Adapter
+from blueman.main.Builder import Builder
import gi
gi.require_version("Gtk", "3.0")
@@ -157,19 +157,17 @@ def on_scale_value_changed(scale: Gtk.Scale) -> None:
def on_name_changed(entry: Gtk.Entry) -> None:
adapter['Alias'] = entry.get_text()
- builder = Gtk.Builder()
- builder.set_translation_domain("blueman")
- builder.add_from_file(UI_PATH + "/adapters-tab.ui")
+ builder = Builder("adapters-tab.ui")
- hscale = builder.get_object("hscale")
+ hscale = builder.get_widget("hscale", Gtk.Scale)
hscale.connect("format-value", on_scale_format_value)
hscale.connect("value-changed", on_scale_value_changed)
hscale.set_range(0, 30)
hscale.set_increments(1, 1)
- hidden_radio = builder.get_object("hidden")
- always_radio = builder.get_object("always")
- temporary_radio = builder.get_object("temporary")
+ hidden_radio = builder.get_widget("hidden", Gtk.RadioButton)
+ always_radio = builder.get_widget("always", Gtk.RadioButton)
+ temporary_radio = builder.get_widget("temporary", Gtk.RadioButton)
if adapter['Discoverable'] and adapter['DiscoverableTimeout'] > 0:
temporary_radio.set_active(True)
@@ -180,7 +178,7 @@ def on_name_changed(entry: Gtk.Entry) -> None:
else:
hidden_radio.set_active(True)
- name_entry = builder.get_object("name_entry")
+ name_entry = builder.get_widget("name_entry", Gtk.Entry)
name_entry.set_text(adapter.get_name())
hidden_radio.connect("toggled", on_hidden_toggle)
@@ -189,7 +187,7 @@ def on_name_changed(entry: Gtk.Entry) -> None:
name_entry.connect("changed", on_name_changed)
return {
- "grid": builder.get_object("grid"),
+ "grid": builder.get_widget("grid", Gtk.Grid),
"hidden_radio": hidden_radio,
"always_radio": always_radio,
"temparary_radio": temporary_radio,
diff --git a/blueman/main/Builder.py b/blueman/main/Builder.py
new file mode 100644
index 000000000..8a38dead6
--- /dev/null
+++ b/blueman/main/Builder.py
@@ -0,0 +1,20 @@
+from typing import TypeVar, Type
+
+import gi
+from blueman.Constants import UI_PATH
+
+gi.require_version("Gtk", "3.0")
+from gi.repository import Gtk
+
+
+class Builder(Gtk.Builder):
+ def __init__(self, filename: str):
+ super().__init__(translation_domain="blueman")
+ self.add_from_file(UI_PATH + "/" + filename)
+
+ T = TypeVar("T", bound=Gtk.Widget)
+
+ def get_widget(self, name: str, widget_type: Type[T]) -> T:
+ widget = self.get_object(name)
+ assert isinstance(widget, widget_type)
+ return widget
diff --git a/blueman/main/DBusProxies.py b/blueman/main/DBusProxies.py
index 779a3c7d2..6a482305e 100644
--- a/blueman/main/DBusProxies.py
+++ b/blueman/main/DBusProxies.py
@@ -9,7 +9,7 @@ class DBusProxyFailed(Exception):
class ProxyBase(Gio.DBusProxy, metaclass=SingletonGObjectMeta):
def __init__(self, name: str, interface_name: str, object_path: str = "/", systembus: bool = False,
- flags: Gio.DBusProxyFlags = 0) -> None:
+ flags: Gio.DBusProxyFlags = Gio.DBusProxyFlags.NONE) -> None:
if systembus:
bustype = Gio.BusType.SYSTEM
else:
@@ -52,7 +52,7 @@ def call_finish(proxy: "ManagerService", resp: Gio.AsyncResult) -> None:
proxy.call_finish(resp)
param = GLib.Variant('(sava{sv})', (name, [], {}))
- self.call('ActivateAction', param, Gio.DBusProxyFlags.NONE, -1, None, call_finish)
+ self.call('ActivateAction', param, Gio.DBusCallFlags.NONE, -1, None, call_finish)
def startstop(self) -> None:
if self.get_name_owner() is None:
diff --git a/blueman/main/DbusService.py b/blueman/main/DbusService.py
index 7206cc0a3..756f2a710 100644
--- a/blueman/main/DbusService.py
+++ b/blueman/main/DbusService.py
@@ -9,7 +9,7 @@
class DbusError(Exception):
_name = "org.blueman.Error"
- def __init__(self, message: Optional[str] = None) -> None:
+ def __init__(self, message: str) -> None:
self._message = message
@property
@@ -17,7 +17,7 @@ def name(self) -> str:
return self._name
@property
- def message(self) -> Optional[str]:
+ def message(self) -> str:
return self._message
@@ -30,7 +30,7 @@ def __init__(self, bus_name: Optional[str], interface_name: str, path: str, bus_
self._signals: Dict[str, str] = {}
self._interface_name = interface_name
self._path = path
- self._regid = None
+ self._regid: Optional[int] = None
def add_method(self, name: str, arguments: Tuple[str, ...], return_value: str, method: Callable[..., None],
pass_sender: bool = False, is_async: bool = False) -> None:
@@ -95,8 +95,9 @@ def register(self) -> None:
raise GLib.Error(f"Failed to register object with path: {self._path}")
def unregister(self) -> None:
- self._bus.unregister_object(self._regid)
- self._regid = None
+ if self._regid is not None:
+ self._bus.unregister_object(self._regid)
+ self._regid = None
def _reregister(self) -> None:
if self._regid:
diff --git a/blueman/main/Makefile.am b/blueman/main/Makefile.am
index d272f4031..0982b2721 100644
--- a/blueman/main/Makefile.am
+++ b/blueman/main/Makefile.am
@@ -13,6 +13,7 @@ blueman_PYTHON = \
PluginManager.py \
Adapter.py \
Applet.py \
+ Builder.py \
Manager.py \
MechanismApplication.py \
Sendto.py \
diff --git a/blueman/main/Manager.py b/blueman/main/Manager.py
index 7a6b345f3..bc588d499 100644
--- a/blueman/main/Manager.py
+++ b/blueman/main/Manager.py
@@ -7,12 +7,12 @@
from blueman.bluez.Manager import Manager
from blueman.bluez.errors import DBusNoSuchAdapterError
from blueman.Functions import *
-from blueman.Constants import UI_PATH
from blueman.gui.manager.ManagerDeviceList import ManagerDeviceList
from blueman.gui.manager.ManagerToolbar import ManagerToolbar
from blueman.gui.manager.ManagerMenu import ManagerMenu
from blueman.gui.manager.ManagerStats import ManagerStats
from blueman.gui.manager.ManagerProgressbar import ManagerProgressbar
+from blueman.main.Builder import Builder
from blueman.main.Config import Config
from blueman.main.DBusProxies import AppletService, DBusProxyFailed
from blueman.gui.CommonUi import ErrorDialog
@@ -60,15 +60,13 @@ def do_activate(self) -> None:
# Connect to configure event to store new window position and size
self.window.connect("configure-event", self._on_configure)
- self.Builder = Gtk.Builder()
- self.Builder.set_translation_domain("blueman")
- self.Builder.add_from_file(UI_PATH + "/manager-main.ui")
+ self.builder = Builder("manager-main.ui")
- grid = self.Builder.get_object("grid")
+ grid = self.builder.get_widget("grid", Gtk.Grid)
self.window.add(grid)
- toolbar = self.Builder.get_object("toolbar")
- statusbar = self.Builder.get_object("statusbar")
+ toolbar = self.builder.get_widget("toolbar", Gtk.Toolbar)
+ statusbar = self.builder.get_widget("statusbar", Gtk.Box)
self.Plugins = PluginManager(ManagerPlugin, blueman.plugins.manager, self)
self.Plugins.load_plugin()
@@ -103,7 +101,8 @@ def on_dbus_name_vanished(_connection: Gio.DBusConnection, name: str) -> None:
self.Applet.disconnect(self._applethandlerid)
self._applethandlerid = None
- self.hide()
+ if self.window is not None:
+ self.window.hide()
d = ErrorDialog(
_("Connection to BlueZ failed"),
@@ -143,7 +142,7 @@ def on_dbus_name_appeared(_connection: Gio.DBusConnection, name: str, owner: str
self._applethandlerid = self.Applet.connect('g-signal', on_applet_signal)
- sw = self.Builder.get_object("scrollview")
+ sw = self.builder.get_widget("scrollview", Gtk.ScrolledWindow)
# Disable overlay scrolling
if Gtk.get_minor_version() >= 16:
sw.props.overlay_scrolling = False
@@ -169,7 +168,7 @@ def on_dbus_name_appeared(_connection: Gio.DBusConnection, name: str, owner: str
self.window.present_with_time(Gtk.get_current_event_time())
- def _on_configure(self, _window: Gtk.ApplicationWindow, event: Gdk.Event) -> bool:
+ def _on_configure(self, _window: Gtk.ApplicationWindow, event: Gdk.EventConfigure) -> bool:
width, height, x, y = self.Config["window-properties"]
if event.x != x or event.y != y or event.width != width or event.height != height:
self.Config["window-properties"] = [event.width, event.height, event.x, event.y]
diff --git a/blueman/main/MechanismApplication.py b/blueman/main/MechanismApplication.py
index 18993f250..8ccc03b0f 100644
--- a/blueman/main/MechanismApplication.py
+++ b/blueman/main/MechanismApplication.py
@@ -1,6 +1,7 @@
import importlib
import logging
import os
+from typing import Optional
import blueman.plugins.mechanism
from blueman.Constants import POLKIT
@@ -47,7 +48,7 @@ def __init__(self, stoptimer: bool):
if POLKIT:
try:
- self.pk = Gio.DBusProxy.new_for_bus_sync(
+ self.pk: Optional[Gio.DBusProxy] = Gio.DBusProxy.new_for_bus_sync(
Gio.BusType.SYSTEM,
Gio.DBusProxyFlags.NONE,
None,
diff --git a/blueman/main/NetworkManager.py b/blueman/main/NetworkManager.py
index 4c26e64b6..d6e143879 100644
--- a/blueman/main/NetworkManager.py
+++ b/blueman/main/NetworkManager.py
@@ -66,6 +66,7 @@ def _on_device_state_changed(self, device: NM.Device, new_state: int, old_state:
return # Keep checking the state changes
# We are done with state changes
+ assert self._statehandler is not None
GObject.signal_handler_disconnect(device, self._statehandler)
if error_msg is None:
self.reply_handler()
diff --git a/blueman/main/PPPConnection.py b/blueman/main/PPPConnection.py
index f246859d8..506c3c504 100644
--- a/blueman/main/PPPConnection.py
+++ b/blueman/main/PPPConnection.py
@@ -5,7 +5,7 @@
import subprocess
import termios
import tty
-from typing import Any, List, Iterable, Callable, Optional, Tuple, Union, MutableSequence
+from typing import Any, List, Iterable, Callable, Optional, Tuple, Union, MutableSequence, IO
from gi.repository import GObject
from gi.repository import GLib
@@ -57,7 +57,7 @@ def __init__(self, port: str, number: str = "*99#", apn: str = "", user: str = "
self.user = user
self.pwd = pwd
self.port = port
- self.interface = None
+ self.interface: Optional[str] = None
self.commands: MutableSequence[Union[str, Tuple[str, Callable[[List[str]], None], Iterable[str]]]] = [
"ATZ E0 V1 X4 &C1 +FCLASS=0",
@@ -81,6 +81,7 @@ def connect_callback(self, response: List[str]) -> None:
self.pppd = subprocess.Popen(
["/usr/sbin/pppd", f"{self.port}", "115200", "defaultroute", "updetach", "usepeerdns"], bufsize=1,
stdout=subprocess.PIPE)
+ assert self.pppd.stdout is not None
GLib.io_add_watch(self.pppd.stdout, GLib.IO_IN | GLib.IO_ERR | GLib.IO_HUP, self.on_pppd_stdout)
GLib.timeout_add(1000, self.check_pppd)
@@ -140,14 +141,14 @@ def connect_rfcomm(self) -> None:
self.send_commands()
- def on_pppd_stdout(self, source: GLib.IOChannel, cond: GLib.IOCondition) -> bool:
+ def on_pppd_stdout(self, source: IO[bytes], cond: GLib.IOCondition) -> bool:
if cond & GLib.IO_ERR or cond & GLib.IO_HUP:
return False
line = source.readline().decode('utf-8')
m = re.match(r'Using interface (ppp[0-9]*)', line)
if m:
- self.interface = m.groups(1)[0]
+ self.interface = m.groups()[0]
logging.info(line)
@@ -176,7 +177,7 @@ def send_command(self, command: str) -> None:
os.write(self.file, out.encode("UTF-8"))
termios.tcdrain(self.file)
- def on_data_ready(self, _source: GLib.IOChannel, condition: GLib.IOCondition, command_id: int) -> bool:
+ def on_data_ready(self, _source: int, condition: GLib.IOCondition, command_id: int) -> bool:
if condition & GLib.IO_ERR or condition & GLib.IO_HUP:
GLib.source_remove(self.timeout)
self.__cmd_response_cb(None, PPPException("Socket error"), command_id)
diff --git a/blueman/main/Sendto.py b/blueman/main/Sendto.py
index d515cc969..c7b7b7b79 100644
--- a/blueman/main/Sendto.py
+++ b/blueman/main/Sendto.py
@@ -4,26 +4,19 @@
from gettext import ngettext
from typing import List, Iterable, Optional
-import gi
-
from blueman.bluez.Device import Device
from blueman.bluez.errors import BluezDBusException
+from blueman.main.Builder import Builder
from blueman.typing import GSignals
-
-gi.require_version("Gtk", "3.0")
-gi.require_version("Gdk", "3.0")
-
from blueman.bluez.Adapter import Adapter
from blueman.bluez.obex.ObjectPush import ObjectPush
from blueman.bluez.obex.Manager import Manager
from blueman.bluez.obex.Client import Client
from blueman.bluez.obex.Transfer import Transfer
from blueman.Functions import format_bytes
-from blueman.Constants import UI_PATH
from blueman.main.SpeedCalc import SpeedCalc
from blueman.gui.CommonUi import ErrorDialog
-
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("Gdk", "3.0")
@@ -51,17 +44,16 @@ def __init__(self, device: Device, adapter_path: str, files: Iterable[str]) -> N
self.b_cancel.props.use_underline = True
self.b_cancel.connect("clicked", self.on_cancel)
- self.Builder = Gtk.Builder(translation_domain="blueman")
- self.Builder.add_from_file(UI_PATH + "/send-dialog.ui")
+ builder = Builder("send-dialog.ui")
- grid = self.Builder.get_object("sendto")
+ grid = builder.get_widget("sendto", Gtk.Grid)
content_area = self.get_content_area()
content_area.add(grid)
- self.l_dest = self.Builder.get_object("l_dest")
- self.l_file = self.Builder.get_object("l_file")
+ self.l_dest = builder.get_widget("l_dest", Gtk.Label)
+ self.l_file = builder.get_widget("l_file", Gtk.Label)
- self.pb = self.Builder.get_object("pb")
+ self.pb = builder.get_widget("pb", Gtk.ProgressBar)
self.pb.props.text = _("Connecting")
self.device = device
@@ -114,8 +106,10 @@ def __init__(self, device: Device, adapter_path: str, files: Iterable[str]) -> N
except GLib.Error as e:
if 'StartServiceByName' in e.message:
logging.debug(e.message)
+ parent = self.get_toplevel()
+ assert isinstance(parent, Gtk.Container)
d = ErrorDialog(_("obexd not available"), _("Failed to autostart obex service. Make sure the obex "
- "daemon is running"), parent=self.get_toplevel())
+ "daemon is running"), parent=parent)
d.run()
d.destroy()
self.emit("result", False)
@@ -123,7 +117,9 @@ def __init__(self, device: Device, adapter_path: str, files: Iterable[str]) -> N
# Fail on anything else
raise
- self.l_file.props.label = self.files[-1].get_basename()
+ basename = self.files[-1].get_basename()
+ assert basename is not None
+ self.l_file.props.label = basename
self.client.connect('session-failed', self.on_session_failed)
@@ -214,7 +210,9 @@ def on_transfer_completed(self, _transfer: Transfer) -> None:
def process_queue(self) -> None:
if len(self.files) > 0:
- self.send_file(self.files[-1].get_path())
+ path = self.files[-1].get_path()
+ assert path is not None
+ self.send_file(path)
else:
self.emit("result", True)
@@ -226,8 +224,10 @@ def send_file(self, file_path: str) -> None:
def on_transfer_error(self, _transfer: Optional[Transfer], msg: str = "") -> None:
if not self.error_dialog:
self.speed.reset()
+ parent = self.get_toplevel()
+ assert isinstance(parent, Gtk.Container)
d = ErrorDialog(msg, _("Error occurred while sending file %s") % self.files[-1].get_basename(),
- modal=True, icon_name="blueman", parent=self.get_toplevel(), buttons=[])
+ modal=True, icon_name="blueman", parent=parent, buttons=Gtk.ButtonsType.NONE)
if len(self.files) > 1:
d.add_button(_("Skip"), Gtk.ResponseType.NO)
@@ -280,8 +280,9 @@ def on_session_removed(self, _manager: Manager, session_path: str) -> None:
self.object_push = None
def on_session_failed(self, _client: Client, msg: BluezDBusException) -> None:
- d = ErrorDialog(_("Error occurred"), msg.reason.split(None, 1)[1], icon_name="blueman",
- parent=self.get_toplevel())
+ parent = self.get_toplevel()
+ assert isinstance(parent, Gtk.Container)
+ d = ErrorDialog(_("Error occurred"), msg.reason.split(None, 1)[1], icon_name="blueman", parent=parent)
d.run()
d.destroy()
diff --git a/blueman/main/Services.py b/blueman/main/Services.py
index 9d8bce3c4..28e27a67f 100644
--- a/blueman/main/Services.py
+++ b/blueman/main/Services.py
@@ -27,7 +27,7 @@ def do_activate(self) -> None:
grid = Gtk.Grid(orientation=Gtk.Orientation.VERTICAL, visible=True, row_spacing=10)
self.window.add(grid)
- self.box = Gtk.Box(Gtk.Orientation.HORIZONTAL, vexpand=True, visible=True)
+ self.box = Gtk.Box(vexpand=True, visible=True)
grid.add(self.box)
button_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, halign=Gtk.Align.END, visible=True)
diff --git a/blueman/main/Tray.py b/blueman/main/Tray.py
index 7acf7c47a..4ef0d3e9c 100644
--- a/blueman/main/Tray.py
+++ b/blueman/main/Tray.py
@@ -11,13 +11,6 @@ def __init__(self) -> None:
super().__init__(application_id="org.blueman.Tray", flags=Gio.ApplicationFlags.FLAGS_NONE)
self._active = False
- def do_startup(self) -> None:
- Gio.Application.do_startup(self)
-
- quit_action = Gio.SimpleAction.new("Quit", None)
- quit_action.connect("activate", self.quit)
- self.add_action(quit_action)
-
def do_activate(self) -> None:
if self._active:
logging.info("Already running, restarting instance")
diff --git a/blueman/main/applet/BluezAgent.py b/blueman/main/applet/BluezAgent.py
index da0864290..f78b43864 100644
--- a/blueman/main/applet/BluezAgent.py
+++ b/blueman/main/applet/BluezAgent.py
@@ -9,8 +9,9 @@
from blueman.bluez.Device import Device
from blueman.bluez.AgentManager import AgentManager
from blueman.Sdp import ServiceUUID
-from blueman.Constants import *
+from blueman.Constants import PKGDATA_DIR
from blueman.gui.Notification import Notification
+from blueman.main.Builder import Builder
from blueman.main.DbusService import DbusService, DbusError
from gi.repository import Gio
@@ -107,22 +108,21 @@ def unregister_agent(self) -> None:
def build_passkey_dialog(self, device_alias: str, dialog_msg: str, is_numeric: bool
) -> Tuple[Gtk.Dialog, Gtk.Entry]:
- def on_insert_text(editable: Gtk.Editable, new_text: str, _new_text_length: int, _position: int) -> None:
+ def on_insert_text(editable: Gtk.Entry, new_text: str, _new_text_length: int, _position: int) -> None:
if not new_text.isdigit():
editable.stop_emission("insert-text")
- builder = Gtk.Builder()
- builder.add_from_file(UI_PATH + "/applet-passkey.ui")
- builder.set_translation_domain("blueman")
- dialog = builder.get_object("dialog")
+ builder = Builder("applet-passkey.ui")
+
+ dialog = builder.get_widget("dialog", Gtk.Dialog)
dialog.props.icon_name = "blueman"
- dev_name = builder.get_object("device_name")
+ dev_name = builder.get_widget("device_name", Gtk.Label)
dev_name.set_markup(device_alias)
- msg = builder.get_object("message")
+ msg = builder.get_widget("message", Gtk.Label)
msg.set_text(dialog_msg)
- pin_entry = builder.get_object("pin_entry")
- show_input = builder.get_object("show_input_check")
+ pin_entry = builder.get_widget("pin_entry", Gtk.Entry)
+ show_input = builder.get_widget("show_input_check", Gtk.CheckButton)
if is_numeric:
pin_entry.set_max_length(6)
pin_entry.set_width_chars(6)
@@ -133,7 +133,7 @@ def on_insert_text(editable: Gtk.Editable, new_text: str, _new_text_length: int,
pin_entry.set_width_chars(16)
pin_entry.set_visibility(False)
show_input.connect("toggled", lambda x: pin_entry.set_visibility(x.props.active))
- accept_button = builder.get_object("accept")
+ accept_button = builder.get_widget("accept", Gtk.Button)
pin_entry.connect("changed", lambda x: accept_button.set_sensitive(x.get_text() != ''))
return dialog, pin_entry
@@ -176,8 +176,7 @@ def ask_passkey(self, dialog_msg: str, is_numeric: "Literal[False]", device_path
err: Callable[[Union[BluezErrorCanceled, BluezErrorRejected]], None]) -> None:
...
- def ask_passkey(self, dialog_msg: str, is_numeric: bool, device_path: str,
- ok: Union[Callable[[int], None], Callable[[str], None]],
+ def ask_passkey(self, dialog_msg: str, is_numeric: bool, device_path: str, ok: Callable[[Any], None],
err: Callable[[Union[BluezErrorCanceled, BluezErrorRejected]], None]) -> None:
def passkey_dialog_cb(dialog: Gtk.Dialog, response_id: int) -> None:
if response_id == Gtk.ResponseType.ACCEPT:
@@ -295,8 +294,7 @@ def on_auth_action(action: str) -> None:
logging.info(action)
if action == "always":
- device = Device(obj_path=n._device)
- device.set("Trusted", True)
+ Device(obj_path=device).set("Trusted", True)
if action == "always" or action == "accept":
ok()
else:
@@ -313,4 +311,3 @@ def on_auth_action(action: str) -> None:
n = Notification(_("Bluetooth Authentication"), notify_message, 0, actions, on_auth_action, icon_name="blueman")
n.show()
- n._device = device
diff --git a/blueman/main/indicators/GtkStatusIcon.py b/blueman/main/indicators/GtkStatusIcon.py
index a0ec2cba2..6b79e0acd 100644
--- a/blueman/main/indicators/GtkStatusIcon.py
+++ b/blueman/main/indicators/GtkStatusIcon.py
@@ -1,4 +1,4 @@
-from typing import Callable, Iterable, TYPE_CHECKING, overload, Any, cast, Mapping
+from typing import Callable, Iterable, TYPE_CHECKING, overload, Any, cast, Mapping, Optional
import gi
@@ -35,13 +35,14 @@ def build_menu(items: Iterable[Mapping[str, Any]], activate: Callable[..., None]
menu = Gtk.Menu()
for index, item in enumerate(items):
if 'text' in item and 'icon_name' in item:
- gtk_item = create_menuitem(item['text'], item['icon_name'])
+ gtk_item: Gtk.MenuItem = create_menuitem(item['text'], item['icon_name'])
label = gtk_item.get_child()
+ assert isinstance(label, Gtk.Label)
if item['markup']:
label.set_markup_with_mnemonic(item['text'])
else:
label.set_text_with_mnemonic(item['text'])
- gtk_item.connect('activate', lambda _, idx=index: activate(idx))
+ gtk_item.connect('activate', cast(Callable[[Gtk.MenuItem], None], lambda _, idx=index: activate(idx)))
if 'submenu' in item:
gtk_item.set_submenu(build_menu(item['submenu'], cast(Callable[[int], None],
lambda subid, idx=index: activate(idx, subid))))
@@ -63,7 +64,7 @@ def __init__(self, icon_name: str, on_activate_menu_item: "MenuItemActivator",
self.indicator.set_title('blueman')
self.indicator.connect('popup-menu', self.on_popup_menu)
self.indicator.connect('activate', lambda _status_icon: on_activate_status_icon())
- self._menu = None
+ self._menu: Optional[Gtk.Menu] = None
def on_popup_menu(self, _status_icon: Gtk.StatusIcon, _button: int, _activate_time: int) -> None:
if self._menu:
diff --git a/blueman/plugins/applet/DBusService.py b/blueman/plugins/applet/DBusService.py
index be7b66ca5..bf8148d99 100644
--- a/blueman/plugins/applet/DBusService.py
+++ b/blueman/plugins/applet/DBusService.py
@@ -26,7 +26,7 @@ def on_rfcomm_disconnect(self, port: int) -> None:
class RFCOMMConnectHandler:
def rfcomm_connect_handler(self, service: SerialService, reply: Callable[[str], None],
- err: Callable[[Exception], None]) -> bool:
+ err: Callable[[Union[RFCOMMError, GLib.Error]], None]) -> bool:
...
diff --git a/blueman/plugins/applet/DiscvManager.py b/blueman/plugins/applet/DiscvManager.py
index db3117db5..88dca7a34 100644
--- a/blueman/plugins/applet/DiscvManager.py
+++ b/blueman/plugins/applet/DiscvManager.py
@@ -38,7 +38,7 @@ def on_load(self) -> None:
self.adapter = None
self.time_left = -1
- self.timeout = None
+ self.timeout: Optional[int] = None
def on_unload(self) -> None:
self.parent.Plugins.Menu.unregister(self)
diff --git a/blueman/plugins/applet/GameControllerWakelock.py b/blueman/plugins/applet/GameControllerWakelock.py
index 95c0c70d5..dd6325596 100644
--- a/blueman/plugins/applet/GameControllerWakelock.py
+++ b/blueman/plugins/applet/GameControllerWakelock.py
@@ -22,7 +22,11 @@ class GameControllerWakelock(AppletPlugin):
def on_load(self) -> None:
self.wake_lock = 0
- self.root_window_id = "0x%x" % Gdk.Screen.get_default().get_root_window().get_xid()
+ screen = Gdk.Screen.get_default()
+ assert screen is not None
+ window = screen.get_root_window()
+ assert isinstance(window, GdkX11.X11Window)
+ self.root_window_id = "0x%x" % window.get_xid()
def on_unload(self) -> None:
if self.wake_lock:
diff --git a/blueman/plugins/applet/KillSwitch.py b/blueman/plugins/applet/KillSwitch.py
index 73f8d450f..90cc52fec 100644
--- a/blueman/plugins/applet/KillSwitch.py
+++ b/blueman/plugins/applet/KillSwitch.py
@@ -1,6 +1,6 @@
from gettext import gettext as _
import os
-from typing import Dict, Callable, Any
+from typing import Dict, Callable, Any, Optional
from gi.repository import GLib, Gio
import struct
@@ -54,7 +54,7 @@ class KillSwitch(AppletPlugin, PowerStateHandler, StatusIconVisibilityHandler):
_hardblocked = False
def on_load(self) -> None:
- self._connman_proxy = None
+ self._connman_proxy: Optional[Gio.DBusProxy] = None
self._connman_watch_id = Gio.bus_watch_name(Gio.BusType.SYSTEM, "net.connman", Gio.BusNameWatcherFlags.NONE,
self._on_connman_appeared, self._on_connman_vanished)
diff --git a/blueman/plugins/applet/NetUsage.py b/blueman/plugins/applet/NetUsage.py
index 463150fa7..faf1c42fb 100644
--- a/blueman/plugins/applet/NetUsage.py
+++ b/blueman/plugins/applet/NetUsage.py
@@ -6,7 +6,7 @@
from typing import List, Any, Optional
from blueman.Functions import *
-from blueman.Constants import *
+from blueman.main.Builder import Builder
from blueman.plugins.AppletPlugin import AppletPlugin
from blueman.main.Config import Config
from blueman.bluez.Device import Device
@@ -105,11 +105,9 @@ def __init__(self, plugin: "NetUsage"):
else:
return
self.plugin = plugin
- builder = Gtk.Builder()
- builder.add_from_file(UI_PATH + "/net-usage.ui")
- builder.set_translation_domain("blueman")
+ builder = Builder("net-usage.ui")
- self.dialog = builder.get_object("dialog")
+ self.dialog = builder.get_widget("dialog", Gtk.Dialog)
self.dialog.connect("response", self.on_response)
cr1 = Gtk.CellRendererText()
cr1.props.ellipsize = Pango.EllipsizeMode.END
@@ -125,17 +123,17 @@ def __init__(self, plugin: "NetUsage"):
self.liststore = Gtk.ListStore(str, str, str, object)
- self.e_ul = builder.get_object("e_ul")
- self.e_dl = builder.get_object("e_dl")
- self.e_total = builder.get_object("e_total")
+ self.e_ul = builder.get_widget("e_ul", Gtk.Entry)
+ self.e_dl = builder.get_widget("e_dl", Gtk.Entry)
+ self.e_total = builder.get_widget("e_total", Gtk.Entry)
- self.l_started = builder.get_object("l_started")
- self.l_duration = builder.get_object("l_duration")
+ self.l_started = builder.get_widget("l_started", Gtk.Label)
+ self.l_duration = builder.get_widget("l_duration", Gtk.Label)
- self.b_reset = builder.get_object("b_reset")
+ self.b_reset = builder.get_widget("b_reset", Gtk.Button)
self.b_reset.connect("clicked", self.on_reset)
- self.cb_device = builder.get_object("cb_device")
+ self.cb_device = builder.get_widget("cb_device", Gtk.ComboBox)
self.cb_device.props.model = self.liststore
self.cb_device.connect("changed", self.on_selection_changed)
@@ -175,8 +173,8 @@ def __init__(self, plugin: "NetUsage"):
else:
msg = _("No usage statistics are available yet. Try establishing a connection first and "
"then check this page.")
- d = Gtk.MessageDialog(parent=self.dialog, flags=Gtk.DialogFlags.MODAL, type=Gtk.MessageType.INFO,
- buttons=Gtk.ButtonsType.CLOSE, message_format=msg)
+ d = Gtk.MessageDialog(parent=self.dialog, modal=True, type=Gtk.MessageType.INFO,
+ buttons=Gtk.ButtonsType.CLOSE, text=msg)
d.props.icon_name = "blueman"
d.run()
d.destroy()
@@ -213,6 +211,7 @@ def update_time(self) -> None:
def on_selection_changed(self, cb: Gtk.ComboBox) -> None:
titer = cb.get_active_iter()
+ assert titer is not None
(addr,) = self.liststore.get(titer, 0)
self.config = Config("org.blueman.plugins.netusage", f"/org/blueman/plugins/netusages/{addr}/")
self.update_counts(self.config["tx"], self.config["rx"])
@@ -237,9 +236,9 @@ def update_counts(self, tx: int, rx: int) -> None:
self.update_time()
def on_reset(self, _button: Gtk.Button) -> None:
- d = Gtk.MessageDialog(parent=self.dialog, flags=Gtk.DialogFlags.MODAL, type=Gtk.MessageType.QUESTION,
+ d = Gtk.MessageDialog(parent=self.dialog, modal=True, type=Gtk.MessageType.QUESTION,
buttons=Gtk.ButtonsType.YES_NO,
- message_format=_("Are you sure you want to reset the counter?"))
+ text=_("Are you sure you want to reset the counter?"))
res = d.run()
d.destroy()
if res == Gtk.ResponseType.YES:
@@ -251,6 +250,7 @@ def on_reset(self, _button: Gtk.Button) -> None:
def on_stats(self, _parent: "NetUsage", monitor: Monitor, tx: int, rx: int) -> None:
titer = self.cb_device.get_active_iter()
+ assert titer is not None
(mon,) = self.liststore.get(titer, 3)
if mon == monitor:
self.update_counts(tx, rx)
diff --git a/blueman/plugins/applet/RecentConns.py b/blueman/plugins/applet/RecentConns.py
index 6f9a5541f..d3dd9a13a 100644
--- a/blueman/plugins/applet/RecentConns.py
+++ b/blueman/plugins/applet/RecentConns.py
@@ -87,7 +87,7 @@ def change_sensitivity(self, sensitive: bool) -> None:
power = True
sensitive = sensitive and \
- self.parent.Manager and \
+ self.parent.Manager is not None and \
power and \
self.items is not None and \
(len(self.items) > 0)
diff --git a/blueman/plugins/applet/StandardItems.py b/blueman/plugins/applet/StandardItems.py
index 289f994a0..ec3fd5497 100644
--- a/blueman/plugins/applet/StandardItems.py
+++ b/blueman/plugins/applet/StandardItems.py
@@ -60,7 +60,7 @@ def change_sensitivity(self, sensitive: bool) -> None:
else:
power = True
- sensitive = sensitive and self.parent.Manager and power
+ sensitive = sensitive and self.parent.Manager is not None and power
self.new_dev.set_sensitive(sensitive)
self.send.set_sensitive(sensitive)
self.devices.set_sensitive(sensitive)
diff --git a/blueman/plugins/applet/StatusIcon.py b/blueman/plugins/applet/StatusIcon.py
index d7e5e107e..79981d849 100644
--- a/blueman/plugins/applet/StatusIcon.py
+++ b/blueman/plugins/applet/StatusIcon.py
@@ -67,6 +67,7 @@ def query_visibility(self, delay_hiding: bool = False, emit: bool = True) -> Non
self.set_visible(False, emit)
def on_visibility_timeout(self) -> bool:
+ assert self.visibility_timeout is not None
GLib.source_remove(self.visibility_timeout)
self.visibility_timeout = None
self.query_visibility()
diff --git a/blueman/plugins/applet/TransferService.py b/blueman/plugins/applet/TransferService.py
index a85bd4141..c500e306b 100644
--- a/blueman/plugins/applet/TransferService.py
+++ b/blueman/plugins/applet/TransferService.py
@@ -230,7 +230,7 @@ def _unregister_agent(self) -> None:
self._agent.unregister()
self._agent = None
- def _on_dbus_name_appeared(self, _connection: Manager, name: str, owner: str) -> None:
+ def _on_dbus_name_appeared(self, _connection: Gio.DBusConnection, name: str, owner: str) -> None:
logging.info(f"{name} {owner}")
self._manager = Manager()
@@ -240,7 +240,7 @@ def _on_dbus_name_appeared(self, _connection: Manager, name: str, owner: str) ->
self._register_agent()
- def _on_dbus_name_vanished(self, _connection: Manager, name: str) -> None:
+ def _on_dbus_name_vanished(self, _connection: Gio.DBusConnection, name: str) -> None:
logging.info(f"{name} not running or was stopped")
if self._manager:
diff --git a/blueman/plugins/manager/Info.py b/blueman/plugins/manager/Info.py
index 79ef55cf9..88b5db503 100644
--- a/blueman/plugins/manager/Info.py
+++ b/blueman/plugins/manager/Info.py
@@ -16,7 +16,7 @@
from blueman.plugins.ManagerPlugin import ManagerPlugin
-def show_info(device: Device, parent: Gtk.Widget) -> None:
+def show_info(device: Device, parent: Gtk.Window) -> None:
def format_boolean(x: bool) -> str:
return _('yes') if x else _('no')
@@ -34,10 +34,10 @@ def format_uuids(uuids: Iterable[str]) -> str:
view_selection = view.get_selection()
view_selection.set_mode(Gtk.SelectionMode.MULTIPLE)
- def on_accel_activated(_group: Gtk.AccelGroup, _dialog: GObject, key: int, _modifier: Gdk.ModifierType) -> None:
+ def on_accel_activated(_group: Gtk.AccelGroup, _dialog: GObject, key: int, _modifier: Gdk.ModifierType) -> bool:
if key != 99:
logging.warning(f"Ignoring key {key}")
- return
+ return False
store, paths = view_selection.get_selected_rows()
@@ -49,6 +49,8 @@ def on_accel_activated(_group: Gtk.AccelGroup, _dialog: GObject, key: int, _modi
logging.info("\n".join(text))
clipboard.set_text("\n".join(text), -1)
+ return False
+
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
dialog = Gtk.Dialog(icon_name="blueman", title="blueman")
dialog.set_transient_for(parent)
@@ -117,5 +119,8 @@ class Info(ManagerPlugin, MenuItemsProvider):
def on_request_menu_items(self, manager_menu: ManagerDeviceMenu, device: Device) -> List[Tuple[Gtk.MenuItem, int]]:
item = create_menuitem(_("_Info"), "dialog-information")
item.props.tooltip_text = _("Show device information")
- item.connect('activate', lambda x: show_info(device, manager_menu.get_toplevel()))
+ _window = manager_menu.get_toplevel()
+ assert isinstance(_window, Gtk.Window)
+ window = _window # https://github.com/python/mypy/issues/2608
+ item.connect('activate', lambda x: show_info(device, window))
return [(item, 400)]
diff --git a/blueman/plugins/manager/Notes.py b/blueman/plugins/manager/Notes.py
index 6d20b26f8..9ca58fc5f 100644
--- a/blueman/plugins/manager/Notes.py
+++ b/blueman/plugins/manager/Notes.py
@@ -3,10 +3,10 @@
from tempfile import NamedTemporaryFile
from typing import List, Tuple
-from blueman.Constants import UI_PATH
from blueman.Functions import create_menuitem, launch
from blueman.bluez.Device import Device
from blueman.gui.manager.ManagerDeviceMenu import MenuItemsProvider, ManagerDeviceMenu
+from blueman.main.Builder import Builder
from blueman.plugins.ManagerPlugin import ManagerPlugin
import gi
@@ -36,14 +36,13 @@ def send_note_cb(dialog: Gtk.Dialog, response_id: int, device_address: str, text
launch(f"blueman-sendto --delete --device={device_address}", paths=[tempfile.name])
-def send_note(device: Device, parent: Gtk.Widget) -> None:
- builder = Gtk.Builder()
- builder.set_translation_domain('blueman')
- builder.add_from_file(UI_PATH + '/note.ui')
- dialog = builder.get_object('dialog')
+def send_note(device: Device, parent: Gtk.Window) -> None:
+ builder = Builder("note.ui")
+ dialog = builder.get_widget("dialog", Gtk.Dialog)
dialog.set_transient_for(parent)
dialog.props.icon_name = 'blueman'
- dialog.connect('response', send_note_cb, device['Address'], builder.get_object('note'))
+ note = builder.get_widget("note", Gtk.Entry)
+ dialog.connect('response', send_note_cb, device['Address'], note)
dialog.present()
@@ -51,5 +50,8 @@ class Notes(ManagerPlugin, MenuItemsProvider):
def on_request_menu_items(self, manager_menu: ManagerDeviceMenu, device: Device) -> List[Tuple[Gtk.MenuItem, int]]:
item = create_menuitem(_("Send _note"), "dialog-information")
item.props.tooltip_text = _("Send a text note")
- item.connect('activate', lambda x: send_note(device, manager_menu.get_toplevel()))
+ _window = manager_menu.get_toplevel()
+ assert isinstance(_window, Gtk.Window)
+ window = _window # https://github.com/python/mypy/issues/2608
+ item.connect('activate', lambda x: send_note(device, window))
return [(item, 500)]
diff --git a/blueman/plugins/manager/PulseAudioProfile.py b/blueman/plugins/manager/PulseAudioProfile.py
index 95fa564d8..9303c04ca 100644
--- a/blueman/plugins/manager/PulseAudioProfile.py
+++ b/blueman/plugins/manager/PulseAudioProfile.py
@@ -1,6 +1,6 @@
from gettext import gettext as _
import logging
-from typing import Dict, List, TYPE_CHECKING, Tuple, Mapping
+from typing import Dict, List, TYPE_CHECKING, Tuple, Mapping, Sequence
from blueman.bluez.Device import Device
from blueman.plugins.ManagerPlugin import ManagerPlugin
@@ -90,7 +90,7 @@ def on_result(res: int) -> None:
def generate_menu(self, device: Device, item: Gtk.MenuItem) -> None:
info = self.devices[device['Address']]
- group: List[Gtk.RadioMenuItem] = []
+ group: Sequence[Gtk.RadioMenuItem] = []
sub = Gtk.Menu()
diff --git a/blueman/plugins/manager/Services.py b/blueman/plugins/manager/Services.py
index b2532307f..6f2ee3aa5 100644
--- a/blueman/plugins/manager/Services.py
+++ b/blueman/plugins/manager/Services.py
@@ -32,7 +32,9 @@ def _make_x_icon(self, icon_name: str, size: int) -> cairo.ImageSurface:
window = self.parent.window.get_window()
target = self.icon_theme.load_surface(icon_name, size, scale, window, Gtk.IconLookupFlags.FORCE_SIZE)
+ assert isinstance(target, cairo.ImageSurface)
bmx = self.icon_theme.load_surface("blueman-x", size, scale, window, Gtk.IconLookupFlags.FORCE_SIZE)
+ assert isinstance(bmx, cairo.ImageSurface)
x = target.get_width() - bmx.get_width()
y = target.get_height() - bmx.get_height()
@@ -43,11 +45,11 @@ def _make_x_icon(self, icon_name: str, size: int) -> cairo.ImageSurface:
return target
def on_request_menu_items(self, manager_menu: ManagerDeviceMenu, device: Device) -> List[Tuple[Gtk.MenuItem, int]]:
- items = []
+ items: List[Tuple[Gtk.MenuItem, int]] = []
appl = AppletService()
self.has_dun = False
- serial_items = []
+ serial_items: List[Gtk.MenuItem] = []
def add_menu_item(manager_menu: ManagerDeviceMenu, service: Service) -> None:
if service.connected:
@@ -78,7 +80,7 @@ def add_menu_item(manager_menu: ManagerDeviceMenu, service: Service) -> None:
devname = _("Serial Port %s") % "rfcomm%d" % dev["id"]
surface = self._make_x_icon("modem", 16)
- item = create_menuitem(devname, surface=surface)
+ item: Gtk.MenuItem = create_menuitem(devname, surface=surface)
item.connect("activate", manager_menu.on_disconnect, service, dev["id"])
items.append((item, 120))
item.show()
diff --git a/blueman/plugins/services/Network.py b/blueman/plugins/services/Network.py
index 3e1a3b51a..38bdec0b2 100644
--- a/blueman/plugins/services/Network.py
+++ b/blueman/plugins/services/Network.py
@@ -4,8 +4,8 @@
import ipaddress
from typing import List, Tuple, cast, Union, TYPE_CHECKING
-from blueman.Constants import *
from blueman.Functions import have, get_local_interfaces
+from blueman.main.Builder import Builder
from blueman.plugins.ServicePlugin import ServicePlugin
from blueman.main.NetConf import NetConf, DnsMasqHandler, DhcpdHandler, UdhcpdHandler
from blueman.main.Config import Config
@@ -15,7 +15,7 @@
import gi
gi.require_version("Gtk", "3.0")
-from gi.repository import Gio, Gtk
+from gi.repository import Gio, Gtk, GObject
if TYPE_CHECKING:
from typing_extensions import Literal
@@ -26,10 +26,8 @@ class Network(ServicePlugin):
def on_load(self, container: Gtk.Box) -> None:
- self.Builder = Gtk.Builder()
- self.Builder.set_translation_domain("blueman")
- self.Builder.add_from_file(UI_PATH + "/services-network.ui")
- self.widget = self.Builder.get_object("network_frame")
+ self._builder = Builder("services-network.ui")
+ self.widget = self._builder.get_widget("network_frame", Gtk.Widget)
container.pack_start(self.widget, True, True, 0)
@@ -59,17 +57,17 @@ def on_apply(self) -> None:
logging.info("network apply")
m = Mechanism()
- nap_enable = self.Builder.get_object("nap-enable")
+ nap_enable = self._builder.get_widget("nap-enable", Gtk.CheckButton)
if nap_enable.props.active:
- if self.Builder.get_object("r_dhcpd").props.active:
+ if self._builder.get_widget("r_dhcpd", Gtk.RadioButton).props.active:
stype = "DhcpdHandler"
- elif self.Builder.get_object("r_dnsmasq").props.active:
+ elif self._builder.get_widget("r_dnsmasq", Gtk.RadioButton).props.active:
stype = "DnsMasqHandler"
- elif self.Builder.get_object("r_udhcpd").props.active:
+ elif self._builder.get_widget("r_udhcpd", Gtk.RadioButton).props.active:
stype = "UdhcpdHandler"
- net_ip = self.Builder.get_object("net_ip")
+ net_ip = self._builder.get_widget("net_ip", Gtk.Entry)
try:
m.EnableNetwork('(sss)', net_ip.props.text, "255.255.255.0", stype)
@@ -77,8 +75,9 @@ def on_apply(self) -> None:
if not self.Config["nap-enable"]:
self.Config["nap-enable"] = True
except Exception as e:
- d = ErrorDialog("Failed to apply network settings",
- excp=e, parent=self.widget.get_toplevel())
+ parent = self.widget.get_toplevel()
+ assert isinstance(parent, Gtk.Container)
+ d = ErrorDialog("Failed to apply network settings", excp=e, parent=parent)
d.run()
d.destroy()
@@ -90,7 +89,7 @@ def on_apply(self) -> None:
self.clear_options()
def ip_check(self) -> None:
- entry = self.Builder.get_object("net_ip")
+ entry = self._builder.get_widget("net_ip", Gtk.Entry)
try:
nap_ipiface = ipaddress.ip_interface('/'.join((entry.props.text, '255.255.255.0')))
except (ValueError, ipaddress.AddressValueError):
@@ -133,18 +132,18 @@ def on_query_apply_state(self) -> Union[bool, "Literal[-1]"]:
def setup_network(self) -> None:
self.Config = Config("org.blueman.network")
- nap_enable = self.Builder.get_object("nap-enable")
- r_dnsmasq = self.Builder.get_object("r_dnsmasq")
- r_dhcpd = self.Builder.get_object("r_dhcpd")
- r_udhcpd = self.Builder.get_object("r_udhcpd")
- net_ip = self.Builder.get_object("net_ip")
- rb_nm = self.Builder.get_object("rb_nm")
- rb_blueman = self.Builder.get_object("rb_blueman")
- rb_dun_nm = self.Builder.get_object("rb_dun_nm")
- rb_dun_blueman = self.Builder.get_object("rb_dun_blueman")
+ nap_enable = self._builder.get_widget("nap-enable", Gtk.CheckButton)
+ r_dnsmasq = self._builder.get_widget("r_dnsmasq", Gtk.RadioButton)
+ r_dhcpd = self._builder.get_widget("r_dhcpd", Gtk.RadioButton)
+ r_udhcpd = self._builder.get_widget("r_udhcpd", Gtk.RadioButton)
+ net_ip = self._builder.get_widget("net_ip", Gtk.Entry)
+ rb_nm = self._builder.get_widget("rb_nm", Gtk.RadioButton)
+ rb_blueman = self._builder.get_widget("rb_blueman", Gtk.RadioButton)
+ rb_dun_nm = self._builder.get_widget("rb_dun_nm", Gtk.RadioButton)
+ rb_dun_blueman = self._builder.get_widget("rb_dun_blueman", Gtk.RadioButton)
- nap_frame = self.Builder.get_object("nap_frame")
- warning = self.Builder.get_object("warning")
+ nap_frame = self._builder.get_widget("nap_frame", Gtk.Frame)
+ warning = self._builder.get_widget("warning", Gtk.Box)
if not self.Config["nap-enable"]:
nap_frame.props.sensitive = False
@@ -204,14 +203,14 @@ def setup_network(self) -> None:
self.Config.bind_to_widget("nap-enable", nap_enable, "active", Gio.SettingsBindFlags.GET)
- nap_enable.bind_property("active", nap_frame, "sensitive", 0)
+ nap_enable.bind_property("active", nap_frame, "sensitive", GObject.BindingFlags.DEFAULT)
applet = AppletService()
avail_plugins = applet.QueryAvailablePlugins()
active_plugins = applet.QueryPlugins()
- def dun_support_toggled(rb: Gtk.ToggleButton, x: Union["Literal[\"nm\"]", "Literal[\"blueman\"]"]) -> None:
+ def dun_support_toggled(rb: Gtk.RadioButton, x: str) -> None:
if rb.props.active and x == "nm":
applet.SetPluginConfig('(sb)', "PPPSupport", False)
applet.SetPluginConfig('(sb)', "NMDUNSupport", True)
@@ -219,7 +218,7 @@ def dun_support_toggled(rb: Gtk.ToggleButton, x: Union["Literal[\"nm\"]", "Liter
applet.SetPluginConfig('(sb)', "NMDUNSupport", False)
applet.SetPluginConfig('(sb)', "PPPSupport", True)
- def pan_support_toggled(rb: Gtk.ToggleButton, x: Union["Literal[\"nm\"]", "Literal[\"blueman\"]"]) -> None:
+ def pan_support_toggled(rb: Gtk.RadioButton, x: str) -> None:
if rb.props.active and x == "nm":
applet.SetPluginConfig('(sb)', "DhcpClient", False)
applet.SetPluginConfig('(sb)', "NMPANSupport", True)
diff --git a/blueman/plugins/services/Transfer.py b/blueman/plugins/services/Transfer.py
index 35360cdfb..dd1349524 100644
--- a/blueman/plugins/services/Transfer.py
+++ b/blueman/plugins/services/Transfer.py
@@ -1,7 +1,7 @@
from gettext import gettext as _
import logging
-from blueman.Constants import *
+from blueman.main.Builder import Builder
from blueman.plugins.ServicePlugin import ServicePlugin
from blueman.main.DBusProxies import AppletService
from blueman.main.Config import Config
@@ -16,10 +16,8 @@ class Transfer(ServicePlugin):
def on_load(self, container: Gtk.Box) -> None:
- self.Builder = Gtk.Builder()
- self.Builder.set_translation_domain("blueman")
- self.Builder.add_from_file(UI_PATH + "/services-transfer.ui")
- self.widget = self.Builder.get_object("transfer")
+ self._builder = Builder("services-transfer.ui")
+ self.widget = self._builder.get_widget("transfer", Gtk.Widget)
container.pack_start(self.widget, True, True, 0)
a = AppletService()
@@ -39,17 +37,17 @@ def on_property_changed(self, config: Gio.Settings, key: str) -> None:
value = config[key]
if key == "shared-path":
- self.Builder.get_object(key).set_current_folder(value)
+ self._builder.get_widget(key, Gtk.FileChooserButton).set_current_folder(value)
self.option_changed_notify(key, False)
def on_apply(self) -> None:
if self.on_query_apply_state():
for opt in self.get_options():
if opt == "shared-path":
- shared_path = self.Builder.get_object("shared-path")
+ shared_path = self._builder.get_widget("shared-path", Gtk.FileChooserButton)
self._config["shared-path"] = shared_path.get_filename()
elif opt == "opp-accept":
- opp_accept = self.Builder.get_object("opp-accept")
+ opp_accept = self._builder.get_widget("opp-accept", Gtk.CheckButton)
self._config["opp-accept"] = opp_accept.get_active()
else:
raise NotImplementedError("Unknow option: %s" % opt)
@@ -68,8 +66,8 @@ def _setup_transfer(self) -> None:
self._config = Config("org.blueman.transfer")
self._config.connect("changed", self.on_property_changed)
- opp_accept = self.Builder.get_object("opp-accept")
- shared_path = self.Builder.get_object("shared-path")
+ opp_accept = self._builder.get_widget("opp-accept", Gtk.CheckButton)
+ shared_path = self._builder.get_widget("shared-path", Gtk.FileChooserButton)
opp_accept.props.active = self._config["opp-accept"]
if self._config["shared-path"]:
diff --git a/blueman/services/meta/SerialService.py b/blueman/services/meta/SerialService.py
index 4a25c0b74..008ba44af 100644
--- a/blueman/services/meta/SerialService.py
+++ b/blueman/services/meta/SerialService.py
@@ -44,7 +44,9 @@ def on_file_changed(
else:
logging.warning(f"No handler id for {port}")
elif event_type == Gio.FileMonitorEvent.ATTRIBUTE_CHANGED:
- self.try_replace_root_watcher(monitor, file.get_path(), port)
+ path = file.get_path()
+ assert path is not None
+ self.try_replace_root_watcher(monitor, path, port)
def try_replace_root_watcher(self, monitor: Gio.FileMonitor, path: str, port: int) -> None:
if not os.access(path, os.R_OK | os.W_OK):
diff --git a/stubs/gi/__init__.pyi b/stubs/gi/__init__.pyi
new file mode 100644
index 000000000..66e4ab643
--- /dev/null
+++ b/stubs/gi/__init__.pyi
@@ -0,0 +1,2 @@
+def require_version(namespace: str, version: str) -> None:
+ ...
diff --git a/stubs/gi/repository/Atk.pyi b/stubs/gi/repository/Atk.pyi
new file mode 100644
index 000000000..a68d9f44b
--- /dev/null
+++ b/stubs/gi/repository/Atk.pyi
@@ -0,0 +1,1436 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+from gi.repository import GObject
+
+
+class Action(GObject.GInterface):
+
+ def do_action(self, i: builtins.int) -> builtins.bool: ...
+
+ def get_description(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def get_keybinding(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def get_localized_name(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def get_n_actions(self) -> builtins.int: ...
+
+ def get_name(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def set_description(self, i: builtins.int, desc: builtins.str) -> builtins.bool: ...
+
+ def do_do_action(self, i: builtins.int) -> builtins.bool: ...
+
+ def do_get_description(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def do_get_keybinding(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def do_get_localized_name(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def do_get_n_actions(self) -> builtins.int: ...
+
+ def do_get_name(self, i: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def do_set_description(self, i: builtins.int, desc: builtins.str) -> builtins.bool: ...
+
+
+class Component(GObject.GInterface):
+
+ def contains(self, x: builtins.int, y: builtins.int, coord_type: CoordType) -> builtins.bool: ...
+
+ def get_alpha(self) -> builtins.float: ...
+
+ def get_extents(self, coord_type: CoordType) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def get_layer(self) -> Layer: ...
+
+ def get_mdi_zorder(self) -> builtins.int: ...
+
+ def get_position(self, coord_type: CoordType) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def grab_focus(self) -> builtins.bool: ...
+
+ def ref_accessible_at_point(self, x: builtins.int, y: builtins.int, coord_type: CoordType) -> typing.Optional[Object]: ...
+
+ def remove_focus_handler(self, handler_id: builtins.int) -> None: ...
+
+ def scroll_to(self, type: ScrollType) -> builtins.bool: ...
+
+ def scroll_to_point(self, coords: CoordType, x: builtins.int, y: builtins.int) -> builtins.bool: ...
+
+ def set_extents(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, coord_type: CoordType) -> builtins.bool: ...
+
+ def set_position(self, x: builtins.int, y: builtins.int, coord_type: CoordType) -> builtins.bool: ...
+
+ def set_size(self, width: builtins.int, height: builtins.int) -> builtins.bool: ...
+
+ def do_bounds_changed(self, bounds: Rectangle) -> None: ...
+
+ def do_contains(self, x: builtins.int, y: builtins.int, coord_type: CoordType) -> builtins.bool: ...
+
+ def do_get_alpha(self) -> builtins.float: ...
+
+ def do_get_extents(self, coord_type: CoordType) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def do_get_layer(self) -> Layer: ...
+
+ def do_get_mdi_zorder(self) -> builtins.int: ...
+
+ def do_get_position(self, coord_type: CoordType) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_grab_focus(self) -> builtins.bool: ...
+
+ def do_ref_accessible_at_point(self, x: builtins.int, y: builtins.int, coord_type: CoordType) -> typing.Optional[Object]: ...
+
+ def do_remove_focus_handler(self, handler_id: builtins.int) -> None: ...
+
+ def do_scroll_to(self, type: ScrollType) -> builtins.bool: ...
+
+ def do_scroll_to_point(self, coords: CoordType, x: builtins.int, y: builtins.int) -> builtins.bool: ...
+
+ def do_set_extents(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, coord_type: CoordType) -> builtins.bool: ...
+
+ def do_set_position(self, x: builtins.int, y: builtins.int, coord_type: CoordType) -> builtins.bool: ...
+
+ def do_set_size(self, width: builtins.int, height: builtins.int) -> builtins.bool: ...
+
+
+class Document(GObject.GInterface):
+
+ def get_attribute_value(self, attribute_name: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def get_attributes(self) -> typing.Sequence[builtins.object]: ...
+
+ def get_current_page_number(self) -> builtins.int: ...
+
+ def get_document(self) -> typing.Optional[builtins.object]: ...
+
+ def get_document_type(self) -> builtins.str: ...
+
+ def get_locale(self) -> builtins.str: ...
+
+ def get_page_count(self) -> builtins.int: ...
+
+ def set_attribute_value(self, attribute_name: builtins.str, attribute_value: builtins.str) -> builtins.bool: ...
+
+ def do_get_current_page_number(self) -> builtins.int: ...
+
+ def do_get_document(self) -> typing.Optional[builtins.object]: ...
+
+ def do_get_document_attribute_value(self, attribute_name: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def do_get_document_attributes(self) -> typing.Sequence[builtins.object]: ...
+
+ def do_get_document_locale(self) -> builtins.str: ...
+
+ def do_get_document_type(self) -> builtins.str: ...
+
+ def do_get_page_count(self) -> builtins.int: ...
+
+ def do_set_document_attribute(self, attribute_name: builtins.str, attribute_value: builtins.str) -> builtins.bool: ...
+
+
+class EditableText(GObject.GInterface):
+
+ def copy_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def cut_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def delete_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def insert_text(self, string: builtins.str, length: builtins.int, position: builtins.int) -> None: ...
+
+ def paste_text(self, position: builtins.int) -> None: ...
+
+ def set_run_attributes(self, attrib_set: typing.Sequence[builtins.object], start_offset: builtins.int, end_offset: builtins.int) -> builtins.bool: ...
+
+ def set_text_contents(self, string: builtins.str) -> None: ...
+
+ def do_copy_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def do_cut_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def do_delete_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def do_insert_text(self, string: builtins.str, length: builtins.int, position: builtins.int) -> None: ...
+
+ def do_paste_text(self, position: builtins.int) -> None: ...
+
+ def do_set_run_attributes(self, attrib_set: typing.Sequence[builtins.object], start_offset: builtins.int, end_offset: builtins.int) -> builtins.bool: ...
+
+ def do_set_text_contents(self, string: builtins.str) -> None: ...
+
+
+class HyperlinkImpl(GObject.GInterface):
+
+ def get_hyperlink(self) -> Hyperlink: ...
+
+ def do_get_hyperlink(self) -> Hyperlink: ...
+
+
+class Hypertext(GObject.GInterface):
+
+ def get_link(self, link_index: builtins.int) -> Hyperlink: ...
+
+ def get_link_index(self, char_index: builtins.int) -> builtins.int: ...
+
+ def get_n_links(self) -> builtins.int: ...
+
+ def do_get_link(self, link_index: builtins.int) -> Hyperlink: ...
+
+ def do_get_link_index(self, char_index: builtins.int) -> builtins.int: ...
+
+ def do_get_n_links(self) -> builtins.int: ...
+
+ def do_link_selected(self, link_index: builtins.int) -> None: ...
+
+
+class Image(GObject.GInterface):
+
+ def get_image_description(self) -> builtins.str: ...
+
+ def get_image_locale(self) -> typing.Optional[builtins.str]: ...
+
+ def get_image_position(self, coord_type: CoordType) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_image_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def set_image_description(self, description: builtins.str) -> builtins.bool: ...
+
+ def do_get_image_description(self) -> builtins.str: ...
+
+ def do_get_image_locale(self) -> typing.Optional[builtins.str]: ...
+
+ def do_get_image_position(self, coord_type: CoordType) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_image_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_set_image_description(self, description: builtins.str) -> builtins.bool: ...
+
+
+class ImplementorIface(GObject.GInterface):
+ ...
+
+
+class Misc(GObject.Object):
+ parent: GObject.Object
+
+ @staticmethod
+ def get_instance() -> Misc: ...
+
+ def threads_enter(self) -> None: ...
+
+ def threads_leave(self) -> None: ...
+
+ def do_threads_enter(self) -> None: ...
+
+ def do_threads_leave(self) -> None: ...
+
+
+class Object(GObject.Object):
+ accessible_parent: Object
+ description: builtins.str
+ layer: Layer
+ name: builtins.str
+ parent: GObject.Object
+ relation_set: RelationSet
+ role: Role
+
+ def add_relationship(self, relationship: RelationType, target: Object) -> builtins.bool: ...
+
+ def get_accessible_id(self) -> builtins.str: ...
+
+ def get_attributes(self) -> typing.Sequence[builtins.object]: ...
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_index_in_parent(self) -> builtins.int: ...
+
+ def get_layer(self) -> Layer: ...
+
+ def get_mdi_zorder(self) -> builtins.int: ...
+
+ def get_n_accessible_children(self) -> builtins.int: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_object_locale(self) -> builtins.str: ...
+
+ def get_parent(self) -> Object: ...
+
+ def get_role(self) -> Role: ...
+
+ def initialize(self, data: typing.Optional[builtins.object]) -> None: ...
+
+ def notify_state_change(self, state: builtins.int, value: builtins.bool) -> None: ...
+
+ def peek_parent(self) -> Object: ...
+
+ def ref_accessible_child(self, i: builtins.int) -> Object: ...
+
+ def ref_relation_set(self) -> RelationSet: ...
+
+ def ref_state_set(self) -> StateSet: ...
+
+ def remove_property_change_handler(self, handler_id: builtins.int) -> None: ...
+
+ def remove_relationship(self, relationship: RelationType, target: Object) -> builtins.bool: ...
+
+ def set_accessible_id(self, name: builtins.str) -> None: ...
+
+ def set_description(self, description: builtins.str) -> None: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+ def set_parent(self, parent: Object) -> None: ...
+
+ def set_role(self, role: Role) -> None: ...
+
+ def do_active_descendant_changed(self, child: typing.Optional[builtins.object]) -> None: ...
+
+ def do_children_changed(self, change_index: builtins.int, changed_child: typing.Optional[builtins.object]) -> None: ...
+
+ def do_focus_event(self, focus_in: builtins.bool) -> None: ...
+
+ def do_get_attributes(self) -> typing.Sequence[builtins.object]: ...
+
+ def do_get_description(self) -> builtins.str: ...
+
+ def do_get_index_in_parent(self) -> builtins.int: ...
+
+ def do_get_layer(self) -> Layer: ...
+
+ def do_get_mdi_zorder(self) -> builtins.int: ...
+
+ def do_get_n_children(self) -> builtins.int: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_get_object_locale(self) -> builtins.str: ...
+
+ def do_get_parent(self) -> Object: ...
+
+ def do_get_role(self) -> Role: ...
+
+ def do_initialize(self, data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_property_change(self, values: PropertyValues) -> None: ...
+
+ def do_ref_relation_set(self) -> RelationSet: ...
+
+ def do_ref_state_set(self) -> StateSet: ...
+
+ def do_remove_property_change_handler(self, handler_id: builtins.int) -> None: ...
+
+ def do_set_description(self, description: builtins.str) -> None: ...
+
+ def do_set_name(self, name: builtins.str) -> None: ...
+
+ def do_set_parent(self, parent: Object) -> None: ...
+
+ def do_set_role(self, role: Role) -> None: ...
+
+ def do_state_change(self, name: builtins.str, state_set: builtins.bool) -> None: ...
+
+ def do_visible_data_changed(self) -> None: ...
+
+
+class ObjectFactory(GObject.Object):
+ parent: GObject.Object
+
+ def create_accessible(self, obj: GObject.Object) -> Object: ...
+
+ def get_accessible_type(self) -> GObject.GType: ...
+
+ def invalidate(self) -> None: ...
+
+ def do_invalidate(self) -> None: ...
+
+
+class Registry(GObject.Object):
+ factory_singleton_cache: typing.Mapping[builtins.object, builtins.object]
+ factory_type_registry: typing.Mapping[builtins.object, builtins.object]
+ parent: GObject.Object
+
+ def get_factory(self, type: GObject.GType) -> ObjectFactory: ...
+
+ def get_factory_type(self, type: GObject.GType) -> GObject.GType: ...
+
+ def set_factory_type(self, type: GObject.GType, factory_type: GObject.GType) -> None: ...
+
+
+class Relation(GObject.Object):
+ parent: GObject.Object
+ relationship: RelationType
+ target: typing.Sequence[builtins.object]
+
+ def add_target(self, target: Object) -> None: ...
+
+ def get_relation_type(self) -> RelationType: ...
+
+ def get_target(self) -> typing.Sequence[Object]: ...
+
+ @staticmethod
+ def new(targets: typing.Sequence[Object], relationship: RelationType, **kwargs) -> Relation: ... # type: ignore
+
+ def remove_target(self, target: Object) -> builtins.bool: ...
+
+
+class RelationSet(GObject.Object):
+ parent: GObject.Object
+ relations: typing.Sequence[builtins.object]
+
+ def add(self, relation: Relation) -> None: ...
+
+ def add_relation_by_type(self, relationship: RelationType, target: Object) -> None: ...
+
+ def contains(self, relationship: RelationType) -> builtins.bool: ...
+
+ def contains_target(self, relationship: RelationType, target: Object) -> builtins.bool: ...
+
+ def get_n_relations(self) -> builtins.int: ...
+
+ def get_relation(self, i: builtins.int) -> Relation: ...
+
+ def get_relation_by_type(self, relationship: RelationType) -> Relation: ...
+
+ @staticmethod
+ def new(**kwargs) -> RelationSet: ... # type: ignore
+
+ def remove(self, relation: Relation) -> None: ...
+
+
+class Selection(GObject.GInterface):
+
+ def add_selection(self, i: builtins.int) -> builtins.bool: ...
+
+ def clear_selection(self) -> builtins.bool: ...
+
+ def get_selection_count(self) -> builtins.int: ...
+
+ def is_child_selected(self, i: builtins.int) -> builtins.bool: ...
+
+ def ref_selection(self, i: builtins.int) -> typing.Optional[Object]: ...
+
+ def remove_selection(self, i: builtins.int) -> builtins.bool: ...
+
+ def select_all_selection(self) -> builtins.bool: ...
+
+ def do_add_selection(self, i: builtins.int) -> builtins.bool: ...
+
+ def do_clear_selection(self) -> builtins.bool: ...
+
+ def do_get_selection_count(self) -> builtins.int: ...
+
+ def do_is_child_selected(self, i: builtins.int) -> builtins.bool: ...
+
+ def do_ref_selection(self, i: builtins.int) -> typing.Optional[Object]: ...
+
+ def do_remove_selection(self, i: builtins.int) -> builtins.bool: ...
+
+ def do_select_all_selection(self) -> builtins.bool: ...
+
+ def do_selection_changed(self) -> None: ...
+
+
+class StateSet(GObject.Object):
+ parent: GObject.Object
+
+ def add_state(self, type: StateType) -> builtins.bool: ...
+
+ def add_states(self, types: typing.Sequence[StateType]) -> None: ...
+
+ def and_sets(self, compare_set: StateSet) -> StateSet: ...
+
+ def clear_states(self) -> None: ...
+
+ def contains_state(self, type: StateType) -> builtins.bool: ...
+
+ def contains_states(self, types: typing.Sequence[StateType]) -> builtins.bool: ...
+
+ def is_empty(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> StateSet: ... # type: ignore
+
+ def or_sets(self, compare_set: StateSet) -> typing.Optional[StateSet]: ...
+
+ def remove_state(self, type: StateType) -> builtins.bool: ...
+
+ def xor_sets(self, compare_set: StateSet) -> StateSet: ...
+
+
+class StreamableContent(GObject.GInterface):
+
+ def get_mime_type(self, i: builtins.int) -> builtins.str: ...
+
+ def get_n_mime_types(self) -> builtins.int: ...
+
+ def get_stream(self, mime_type: builtins.str) -> GLib.IOChannel: ...
+
+ def get_uri(self, mime_type: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def do_get_mime_type(self, i: builtins.int) -> builtins.str: ...
+
+ def do_get_n_mime_types(self) -> builtins.int: ...
+
+ def do_get_stream(self, mime_type: builtins.str) -> GLib.IOChannel: ...
+
+ def do_get_uri(self, mime_type: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+class Table(GObject.GInterface):
+
+ def add_column_selection(self, column: builtins.int) -> builtins.bool: ...
+
+ def add_row_selection(self, row: builtins.int) -> builtins.bool: ...
+
+ def get_caption(self) -> typing.Optional[Object]: ...
+
+ def get_column_at_index(self, index_: builtins.int) -> builtins.int: ...
+
+ def get_column_description(self, column: builtins.int) -> builtins.str: ...
+
+ def get_column_extent_at(self, row: builtins.int, column: builtins.int) -> builtins.int: ...
+
+ def get_column_header(self, column: builtins.int) -> typing.Optional[Object]: ...
+
+ def get_index_at(self, row: builtins.int, column: builtins.int) -> builtins.int: ...
+
+ def get_n_columns(self) -> builtins.int: ...
+
+ def get_n_rows(self) -> builtins.int: ...
+
+ def get_row_at_index(self, index_: builtins.int) -> builtins.int: ...
+
+ def get_row_description(self, row: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def get_row_extent_at(self, row: builtins.int, column: builtins.int) -> builtins.int: ...
+
+ def get_row_header(self, row: builtins.int) -> typing.Optional[Object]: ...
+
+ def get_selected_columns(self, selected: builtins.int) -> builtins.int: ...
+
+ def get_selected_rows(self, selected: builtins.int) -> builtins.int: ...
+
+ def get_summary(self) -> Object: ...
+
+ def is_column_selected(self, column: builtins.int) -> builtins.bool: ...
+
+ def is_row_selected(self, row: builtins.int) -> builtins.bool: ...
+
+ def is_selected(self, row: builtins.int, column: builtins.int) -> builtins.bool: ...
+
+ def ref_at(self, row: builtins.int, column: builtins.int) -> Object: ...
+
+ def remove_column_selection(self, column: builtins.int) -> builtins.bool: ...
+
+ def remove_row_selection(self, row: builtins.int) -> builtins.bool: ...
+
+ def set_caption(self, caption: Object) -> None: ...
+
+ def set_column_description(self, column: builtins.int, description: builtins.str) -> None: ...
+
+ def set_column_header(self, column: builtins.int, header: Object) -> None: ...
+
+ def set_row_description(self, row: builtins.int, description: builtins.str) -> None: ...
+
+ def set_row_header(self, row: builtins.int, header: Object) -> None: ...
+
+ def set_summary(self, accessible: Object) -> None: ...
+
+ def do_add_column_selection(self, column: builtins.int) -> builtins.bool: ...
+
+ def do_add_row_selection(self, row: builtins.int) -> builtins.bool: ...
+
+ def do_column_deleted(self, column: builtins.int, num_deleted: builtins.int) -> None: ...
+
+ def do_column_inserted(self, column: builtins.int, num_inserted: builtins.int) -> None: ...
+
+ def do_column_reordered(self) -> None: ...
+
+ def do_get_caption(self) -> typing.Optional[Object]: ...
+
+ def do_get_column_at_index(self, index_: builtins.int) -> builtins.int: ...
+
+ def do_get_column_description(self, column: builtins.int) -> builtins.str: ...
+
+ def do_get_column_extent_at(self, row: builtins.int, column: builtins.int) -> builtins.int: ...
+
+ def do_get_column_header(self, column: builtins.int) -> typing.Optional[Object]: ...
+
+ def do_get_index_at(self, row: builtins.int, column: builtins.int) -> builtins.int: ...
+
+ def do_get_n_columns(self) -> builtins.int: ...
+
+ def do_get_n_rows(self) -> builtins.int: ...
+
+ def do_get_row_at_index(self, index_: builtins.int) -> builtins.int: ...
+
+ def do_get_row_description(self, row: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def do_get_row_extent_at(self, row: builtins.int, column: builtins.int) -> builtins.int: ...
+
+ def do_get_row_header(self, row: builtins.int) -> typing.Optional[Object]: ...
+
+ def do_get_selected_columns(self, selected: builtins.int) -> builtins.int: ...
+
+ def do_get_selected_rows(self, selected: builtins.int) -> builtins.int: ...
+
+ def do_get_summary(self) -> Object: ...
+
+ def do_is_column_selected(self, column: builtins.int) -> builtins.bool: ...
+
+ def do_is_row_selected(self, row: builtins.int) -> builtins.bool: ...
+
+ def do_is_selected(self, row: builtins.int, column: builtins.int) -> builtins.bool: ...
+
+ def do_model_changed(self) -> None: ...
+
+ def do_ref_at(self, row: builtins.int, column: builtins.int) -> Object: ...
+
+ def do_remove_column_selection(self, column: builtins.int) -> builtins.bool: ...
+
+ def do_remove_row_selection(self, row: builtins.int) -> builtins.bool: ...
+
+ def do_row_deleted(self, row: builtins.int, num_deleted: builtins.int) -> None: ...
+
+ def do_row_inserted(self, row: builtins.int, num_inserted: builtins.int) -> None: ...
+
+ def do_row_reordered(self) -> None: ...
+
+ def do_set_caption(self, caption: Object) -> None: ...
+
+ def do_set_column_description(self, column: builtins.int, description: builtins.str) -> None: ...
+
+ def do_set_column_header(self, column: builtins.int, header: Object) -> None: ...
+
+ def do_set_row_description(self, row: builtins.int, description: builtins.str) -> None: ...
+
+ def do_set_row_header(self, row: builtins.int, header: Object) -> None: ...
+
+ def do_set_summary(self, accessible: Object) -> None: ...
+
+
+class TableCell(GObject.GInterface):
+
+ def get_column_header_cells(self) -> typing.Sequence[Object]: ...
+
+ def get_column_span(self) -> builtins.int: ...
+
+ def get_position(self) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def get_row_column_span(self) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def get_row_header_cells(self) -> typing.Sequence[Object]: ...
+
+ def get_row_span(self) -> builtins.int: ...
+
+ def get_table(self) -> Object: ...
+
+ def do_get_column_header_cells(self) -> typing.Sequence[Object]: ...
+
+ def do_get_column_span(self) -> builtins.int: ...
+
+ def do_get_position(self) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def do_get_row_column_span(self) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def do_get_row_header_cells(self) -> typing.Sequence[Object]: ...
+
+ def do_get_row_span(self) -> builtins.int: ...
+
+ def do_get_table(self) -> Object: ...
+
+
+class Text(GObject.GInterface):
+
+ def add_selection(self, start_offset: builtins.int, end_offset: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def free_ranges(ranges: typing.Sequence[TextRange]) -> None: ...
+
+ def get_bounded_ranges(self, rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType) -> typing.Sequence[TextRange]: ...
+
+ def get_caret_offset(self) -> builtins.int: ...
+
+ def get_character_at_offset(self, offset: builtins.int) -> builtins.str: ...
+
+ def get_character_count(self) -> builtins.int: ...
+
+ def get_character_extents(self, offset: builtins.int, coords: CoordType) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def get_default_attributes(self) -> typing.Sequence[builtins.object]: ...
+
+ def get_n_selections(self) -> builtins.int: ...
+
+ def get_offset_at_point(self, x: builtins.int, y: builtins.int, coords: CoordType) -> builtins.int: ...
+
+ def get_range_extents(self, start_offset: builtins.int, end_offset: builtins.int, coord_type: CoordType) -> TextRectangle: ...
+
+ def get_run_attributes(self, offset: builtins.int) -> typing.Tuple[typing.Sequence[builtins.object], builtins.int, builtins.int]: ...
+
+ def get_selection(self, selection_num: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def get_string_at_offset(self, offset: builtins.int, granularity: TextGranularity) -> typing.Tuple[typing.Optional[builtins.str], builtins.int, builtins.int]: ...
+
+ def get_text(self, start_offset: builtins.int, end_offset: builtins.int) -> builtins.str: ...
+
+ def get_text_after_offset(self, offset: builtins.int, boundary_type: TextBoundary) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def get_text_at_offset(self, offset: builtins.int, boundary_type: TextBoundary) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def get_text_before_offset(self, offset: builtins.int, boundary_type: TextBoundary) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def remove_selection(self, selection_num: builtins.int) -> builtins.bool: ...
+
+ def scroll_substring_to(self, start_offset: builtins.int, end_offset: builtins.int, type: ScrollType) -> builtins.bool: ...
+
+ def scroll_substring_to_point(self, start_offset: builtins.int, end_offset: builtins.int, coords: CoordType, x: builtins.int, y: builtins.int) -> builtins.bool: ...
+
+ def set_caret_offset(self, offset: builtins.int) -> builtins.bool: ...
+
+ def set_selection(self, selection_num: builtins.int, start_offset: builtins.int, end_offset: builtins.int) -> builtins.bool: ...
+
+ def do_add_selection(self, start_offset: builtins.int, end_offset: builtins.int) -> builtins.bool: ...
+
+ def do_get_bounded_ranges(self, rect: TextRectangle, coord_type: CoordType, x_clip_type: TextClipType, y_clip_type: TextClipType) -> typing.Sequence[TextRange]: ...
+
+ def do_get_caret_offset(self) -> builtins.int: ...
+
+ def do_get_character_at_offset(self, offset: builtins.int) -> builtins.str: ...
+
+ def do_get_character_count(self) -> builtins.int: ...
+
+ def do_get_character_extents(self, offset: builtins.int, coords: CoordType) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def do_get_default_attributes(self) -> typing.Sequence[builtins.object]: ...
+
+ def do_get_n_selections(self) -> builtins.int: ...
+
+ def do_get_offset_at_point(self, x: builtins.int, y: builtins.int, coords: CoordType) -> builtins.int: ...
+
+ def do_get_range_extents(self, start_offset: builtins.int, end_offset: builtins.int, coord_type: CoordType) -> TextRectangle: ...
+
+ def do_get_run_attributes(self, offset: builtins.int) -> typing.Tuple[typing.Sequence[builtins.object], builtins.int, builtins.int]: ...
+
+ def do_get_selection(self, selection_num: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def do_get_string_at_offset(self, offset: builtins.int, granularity: TextGranularity) -> typing.Tuple[typing.Optional[builtins.str], builtins.int, builtins.int]: ...
+
+ def do_get_text(self, start_offset: builtins.int, end_offset: builtins.int) -> builtins.str: ...
+
+ def do_get_text_after_offset(self, offset: builtins.int, boundary_type: TextBoundary) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def do_get_text_at_offset(self, offset: builtins.int, boundary_type: TextBoundary) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def do_get_text_before_offset(self, offset: builtins.int, boundary_type: TextBoundary) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+ def do_remove_selection(self, selection_num: builtins.int) -> builtins.bool: ...
+
+ def do_scroll_substring_to(self, start_offset: builtins.int, end_offset: builtins.int, type: ScrollType) -> builtins.bool: ...
+
+ def do_scroll_substring_to_point(self, start_offset: builtins.int, end_offset: builtins.int, coords: CoordType, x: builtins.int, y: builtins.int) -> builtins.bool: ...
+
+ def do_set_caret_offset(self, offset: builtins.int) -> builtins.bool: ...
+
+ def do_set_selection(self, selection_num: builtins.int, start_offset: builtins.int, end_offset: builtins.int) -> builtins.bool: ...
+
+ def do_text_attributes_changed(self) -> None: ...
+
+ def do_text_caret_moved(self, location: builtins.int) -> None: ...
+
+ def do_text_changed(self, position: builtins.int, length: builtins.int) -> None: ...
+
+ def do_text_selection_changed(self) -> None: ...
+
+
+class Util(GObject.Object):
+ parent: GObject.Object
+
+
+class Value(GObject.GInterface):
+
+ def get_current_value(self) -> GObject.Value: ...
+
+ def get_increment(self) -> builtins.float: ...
+
+ def get_maximum_value(self) -> GObject.Value: ...
+
+ def get_minimum_increment(self) -> GObject.Value: ...
+
+ def get_minimum_value(self) -> GObject.Value: ...
+
+ def get_range(self) -> typing.Optional[Range]: ...
+
+ def get_sub_ranges(self) -> typing.Sequence[Range]: ...
+
+ def get_value_and_text(self) -> typing.Tuple[builtins.float, builtins.str]: ...
+
+ def set_current_value(self, value: GObject.Value) -> builtins.bool: ...
+
+ def set_value(self, new_value: builtins.float) -> None: ...
+
+ def do_get_current_value(self) -> GObject.Value: ...
+
+ def do_get_increment(self) -> builtins.float: ...
+
+ def do_get_maximum_value(self) -> GObject.Value: ...
+
+ def do_get_minimum_increment(self) -> GObject.Value: ...
+
+ def do_get_minimum_value(self) -> GObject.Value: ...
+
+ def do_get_range(self) -> typing.Optional[Range]: ...
+
+ def do_get_sub_ranges(self) -> typing.Sequence[Range]: ...
+
+ def do_get_value_and_text(self) -> typing.Tuple[builtins.float, builtins.str]: ...
+
+ def do_set_current_value(self, value: GObject.Value) -> builtins.bool: ...
+
+ def do_set_value(self, new_value: builtins.float) -> None: ...
+
+
+class Window(GObject.GInterface):
+ ...
+
+
+class Hyperlink(GObject.Object, Action):
+ parent: GObject.Object
+
+ def get_end_index(self) -> builtins.int: ...
+
+ def get_n_anchors(self) -> builtins.int: ...
+
+ def get_object(self, i: builtins.int) -> Object: ...
+
+ def get_start_index(self) -> builtins.int: ...
+
+ def get_uri(self, i: builtins.int) -> builtins.str: ...
+
+ def is_inline(self) -> builtins.bool: ...
+
+ def is_selected_link(self) -> builtins.bool: ...
+
+ def is_valid(self) -> builtins.bool: ...
+
+ def do_get_end_index(self) -> builtins.int: ...
+
+ def do_get_n_anchors(self) -> builtins.int: ...
+
+ def do_get_object(self, i: builtins.int) -> Object: ...
+
+ def do_get_start_index(self) -> builtins.int: ...
+
+ def do_get_uri(self, i: builtins.int) -> builtins.str: ...
+
+ def do_is_selected_link(self) -> builtins.bool: ...
+
+ def do_is_valid(self) -> builtins.bool: ...
+
+ def do_link_activated(self) -> None: ...
+
+ def do_link_state(self) -> builtins.int: ...
+
+
+class GObjectAccessible(Object):
+ parent: Object
+
+ @staticmethod
+ def for_object(obj: GObject.Object) -> Object: ...
+
+ def get_object(self) -> GObject.Object: ...
+
+
+class Plug(Object, Component):
+ parent: Object
+
+ def get_id(self) -> builtins.str: ...
+
+ @staticmethod
+ def new() -> Object: ...
+
+ def set_child(self, child: Object) -> None: ...
+
+ def do_get_object_id(self) -> builtins.str: ...
+
+
+class Socket(Object, Component):
+ embedded_plug_id: builtins.str
+ parent: Object
+
+ def embed(self, plug_id: builtins.str) -> None: ...
+
+ def is_occupied(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Object: ...
+
+ def do_embed(self, plug_id: builtins.str) -> None: ...
+
+
+class NoOpObjectFactory(ObjectFactory):
+ parent: ObjectFactory
+
+ @staticmethod
+ def new() -> ObjectFactory: ...
+
+
+class NoOpObject(Object, Action, Component, Document, EditableText, Hypertext, Image, Selection, Table, TableCell, Text, Value, Window): # type: ignore
+ parent: Object
+
+ @staticmethod
+ def new(obj: GObject.Object) -> Object: ...
+
+
+class Attribute():
+ name: builtins.str
+ value: builtins.str
+
+ @staticmethod
+ def set_free(attrib_set: typing.Sequence[builtins.object]) -> None: ...
+
+
+class Implementor():
+
+ def ref_accessible(self) -> Object: ...
+
+
+class KeyEventStruct():
+ keycode: builtins.int
+ keyval: builtins.int
+ length: builtins.int
+ state: builtins.int
+ string: builtins.str
+ timestamp: builtins.int
+ type: builtins.int
+
+
+class PropertyValues():
+ new_value: GObject.Value
+ old_value: GObject.Value
+ property_name: builtins.str
+
+
+class Range():
+
+ def copy(self) -> Range: ...
+
+ def free(self) -> None: ...
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_lower_limit(self) -> builtins.float: ...
+
+ def get_upper_limit(self) -> builtins.float: ...
+
+ @staticmethod
+ def new(lower_limit: builtins.float, upper_limit: builtins.float, description: builtins.str) -> Range: ...
+
+
+class Rectangle():
+ height: builtins.int
+ width: builtins.int
+ x: builtins.int
+ y: builtins.int
+
+
+class TextRange():
+ bounds: TextRectangle
+ content: builtins.str
+ end_offset: builtins.int
+ start_offset: builtins.int
+
+
+class TextRectangle():
+ height: builtins.int
+ width: builtins.int
+ x: builtins.int
+ y: builtins.int
+
+
+class HyperlinkStateFlags(GObject.GFlags, builtins.int):
+ INLINE = ... # type: HyperlinkStateFlags
+
+
+class CoordType(GObject.GEnum, builtins.int):
+ PARENT = ... # type: CoordType
+ SCREEN = ... # type: CoordType
+ WINDOW = ... # type: CoordType
+
+
+class KeyEventType(GObject.GEnum, builtins.int):
+ LAST_DEFINED = ... # type: KeyEventType
+ PRESS = ... # type: KeyEventType
+ RELEASE = ... # type: KeyEventType
+
+
+class Layer(GObject.GEnum, builtins.int):
+ BACKGROUND = ... # type: Layer
+ CANVAS = ... # type: Layer
+ INVALID = ... # type: Layer
+ MDI = ... # type: Layer
+ OVERLAY = ... # type: Layer
+ POPUP = ... # type: Layer
+ WIDGET = ... # type: Layer
+ WINDOW = ... # type: Layer
+
+
+class RelationType(GObject.GEnum, builtins.int):
+ CONTROLLED_BY = ... # type: RelationType
+ CONTROLLER_FOR = ... # type: RelationType
+ DESCRIBED_BY = ... # type: RelationType
+ DESCRIPTION_FOR = ... # type: RelationType
+ DETAILS = ... # type: RelationType
+ DETAILS_FOR = ... # type: RelationType
+ EMBEDDED_BY = ... # type: RelationType
+ EMBEDS = ... # type: RelationType
+ ERROR_FOR = ... # type: RelationType
+ ERROR_MESSAGE = ... # type: RelationType
+ FLOWS_FROM = ... # type: RelationType
+ FLOWS_TO = ... # type: RelationType
+ LABELLED_BY = ... # type: RelationType
+ LABEL_FOR = ... # type: RelationType
+ LAST_DEFINED = ... # type: RelationType
+ MEMBER_OF = ... # type: RelationType
+ NODE_CHILD_OF = ... # type: RelationType
+ NODE_PARENT_OF = ... # type: RelationType
+ NULL = ... # type: RelationType
+ PARENT_WINDOW_OF = ... # type: RelationType
+ POPUP_FOR = ... # type: RelationType
+ SUBWINDOW_OF = ... # type: RelationType
+
+ @staticmethod
+ def for_name(name: builtins.str) -> RelationType: ...
+
+ @staticmethod
+ def get_name(type: RelationType) -> builtins.str: ...
+
+ @staticmethod
+ def register(name: builtins.str) -> RelationType: ...
+
+
+class Role(GObject.GEnum, builtins.int):
+ ACCELERATOR_LABEL = ... # type: Role
+ ALERT = ... # type: Role
+ ANIMATION = ... # type: Role
+ APPLICATION = ... # type: Role
+ ARROW = ... # type: Role
+ ARTICLE = ... # type: Role
+ AUDIO = ... # type: Role
+ AUTOCOMPLETE = ... # type: Role
+ BLOCK_QUOTE = ... # type: Role
+ CALENDAR = ... # type: Role
+ CANVAS = ... # type: Role
+ CAPTION = ... # type: Role
+ CHART = ... # type: Role
+ CHECK_BOX = ... # type: Role
+ CHECK_MENU_ITEM = ... # type: Role
+ COLOR_CHOOSER = ... # type: Role
+ COLUMN_HEADER = ... # type: Role
+ COMBO_BOX = ... # type: Role
+ COMMENT = ... # type: Role
+ CONTENT_DELETION = ... # type: Role
+ CONTENT_INSERTION = ... # type: Role
+ DATE_EDITOR = ... # type: Role
+ DEFINITION = ... # type: Role
+ DESCRIPTION_LIST = ... # type: Role
+ DESCRIPTION_TERM = ... # type: Role
+ DESCRIPTION_VALUE = ... # type: Role
+ DESKTOP_FRAME = ... # type: Role
+ DESKTOP_ICON = ... # type: Role
+ DIAL = ... # type: Role
+ DIALOG = ... # type: Role
+ DIRECTORY_PANE = ... # type: Role
+ DOCUMENT_EMAIL = ... # type: Role
+ DOCUMENT_FRAME = ... # type: Role
+ DOCUMENT_PRESENTATION = ... # type: Role
+ DOCUMENT_SPREADSHEET = ... # type: Role
+ DOCUMENT_TEXT = ... # type: Role
+ DOCUMENT_WEB = ... # type: Role
+ DRAWING_AREA = ... # type: Role
+ EDIT_BAR = ... # type: Role
+ EMBEDDED = ... # type: Role
+ ENTRY = ... # type: Role
+ FILE_CHOOSER = ... # type: Role
+ FILLER = ... # type: Role
+ FONT_CHOOSER = ... # type: Role
+ FOOTER = ... # type: Role
+ FOOTNOTE = ... # type: Role
+ FORM = ... # type: Role
+ FRAME = ... # type: Role
+ GLASS_PANE = ... # type: Role
+ GROUPING = ... # type: Role
+ HEADER = ... # type: Role
+ HEADING = ... # type: Role
+ HTML_CONTAINER = ... # type: Role
+ ICON = ... # type: Role
+ IMAGE = ... # type: Role
+ IMAGE_MAP = ... # type: Role
+ INFO_BAR = ... # type: Role
+ INPUT_METHOD_WINDOW = ... # type: Role
+ INTERNAL_FRAME = ... # type: Role
+ INVALID = ... # type: Role
+ LABEL = ... # type: Role
+ LANDMARK = ... # type: Role
+ LAST_DEFINED = ... # type: Role
+ LAYERED_PANE = ... # type: Role
+ LEVEL_BAR = ... # type: Role
+ LINK = ... # type: Role
+ LIST = ... # type: Role
+ LIST_BOX = ... # type: Role
+ LIST_ITEM = ... # type: Role
+ LOG = ... # type: Role
+ MARK = ... # type: Role
+ MARQUEE = ... # type: Role
+ MATH = ... # type: Role
+ MATH_FRACTION = ... # type: Role
+ MATH_ROOT = ... # type: Role
+ MENU = ... # type: Role
+ MENU_BAR = ... # type: Role
+ MENU_ITEM = ... # type: Role
+ NOTIFICATION = ... # type: Role
+ OPTION_PANE = ... # type: Role
+ PAGE = ... # type: Role
+ PAGE_TAB = ... # type: Role
+ PAGE_TAB_LIST = ... # type: Role
+ PANEL = ... # type: Role
+ PARAGRAPH = ... # type: Role
+ PASSWORD_TEXT = ... # type: Role
+ POPUP_MENU = ... # type: Role
+ PROGRESS_BAR = ... # type: Role
+ PUSH_BUTTON = ... # type: Role
+ RADIO_BUTTON = ... # type: Role
+ RADIO_MENU_ITEM = ... # type: Role
+ RATING = ... # type: Role
+ REDUNDANT_OBJECT = ... # type: Role
+ ROOT_PANE = ... # type: Role
+ ROW_HEADER = ... # type: Role
+ RULER = ... # type: Role
+ SCROLL_BAR = ... # type: Role
+ SCROLL_PANE = ... # type: Role
+ SECTION = ... # type: Role
+ SEPARATOR = ... # type: Role
+ SLIDER = ... # type: Role
+ SPIN_BUTTON = ... # type: Role
+ SPLIT_PANE = ... # type: Role
+ STATIC = ... # type: Role
+ STATUSBAR = ... # type: Role
+ SUBSCRIPT = ... # type: Role
+ SUGGESTION = ... # type: Role
+ SUPERSCRIPT = ... # type: Role
+ TABLE = ... # type: Role
+ TABLE_CELL = ... # type: Role
+ TABLE_COLUMN_HEADER = ... # type: Role
+ TABLE_ROW = ... # type: Role
+ TABLE_ROW_HEADER = ... # type: Role
+ TEAR_OFF_MENU_ITEM = ... # type: Role
+ TERMINAL = ... # type: Role
+ TEXT = ... # type: Role
+ TIMER = ... # type: Role
+ TITLE_BAR = ... # type: Role
+ TOGGLE_BUTTON = ... # type: Role
+ TOOL_BAR = ... # type: Role
+ TOOL_TIP = ... # type: Role
+ TREE = ... # type: Role
+ TREE_ITEM = ... # type: Role
+ TREE_TABLE = ... # type: Role
+ UNKNOWN = ... # type: Role
+ VIDEO = ... # type: Role
+ VIEWPORT = ... # type: Role
+ WINDOW = ... # type: Role
+
+ @staticmethod
+ def for_name(name: builtins.str) -> Role: ...
+
+ @staticmethod
+ def get_localized_name(role: Role) -> builtins.str: ...
+
+ @staticmethod
+ def get_name(role: Role) -> builtins.str: ...
+
+ @staticmethod
+ def register(name: builtins.str) -> Role: ...
+
+
+class ScrollType(GObject.GEnum, builtins.int):
+ ANYWHERE = ... # type: ScrollType
+ BOTTOM_EDGE = ... # type: ScrollType
+ BOTTOM_RIGHT = ... # type: ScrollType
+ LEFT_EDGE = ... # type: ScrollType
+ RIGHT_EDGE = ... # type: ScrollType
+ TOP_EDGE = ... # type: ScrollType
+ TOP_LEFT = ... # type: ScrollType
+
+
+class StateType(GObject.GEnum, builtins.int):
+ ACTIVE = ... # type: StateType
+ ANIMATED = ... # type: StateType
+ ARMED = ... # type: StateType
+ BUSY = ... # type: StateType
+ CHECKABLE = ... # type: StateType
+ CHECKED = ... # type: StateType
+ DEFAULT = ... # type: StateType
+ DEFUNCT = ... # type: StateType
+ EDITABLE = ... # type: StateType
+ ENABLED = ... # type: StateType
+ EXPANDABLE = ... # type: StateType
+ EXPANDED = ... # type: StateType
+ FOCUSABLE = ... # type: StateType
+ FOCUSED = ... # type: StateType
+ HAS_POPUP = ... # type: StateType
+ HAS_TOOLTIP = ... # type: StateType
+ HORIZONTAL = ... # type: StateType
+ ICONIFIED = ... # type: StateType
+ INDETERMINATE = ... # type: StateType
+ INVALID = ... # type: StateType
+ INVALID_ENTRY = ... # type: StateType
+ LAST_DEFINED = ... # type: StateType
+ MANAGES_DESCENDANTS = ... # type: StateType
+ MODAL = ... # type: StateType
+ MULTISELECTABLE = ... # type: StateType
+ MULTI_LINE = ... # type: StateType
+ OPAQUE = ... # type: StateType
+ PRESSED = ... # type: StateType
+ READ_ONLY = ... # type: StateType
+ REQUIRED = ... # type: StateType
+ RESIZABLE = ... # type: StateType
+ SELECTABLE = ... # type: StateType
+ SELECTABLE_TEXT = ... # type: StateType
+ SELECTED = ... # type: StateType
+ SENSITIVE = ... # type: StateType
+ SHOWING = ... # type: StateType
+ SINGLE_LINE = ... # type: StateType
+ STALE = ... # type: StateType
+ SUPPORTS_AUTOCOMPLETION = ... # type: StateType
+ TRANSIENT = ... # type: StateType
+ TRUNCATED = ... # type: StateType
+ VERTICAL = ... # type: StateType
+ VISIBLE = ... # type: StateType
+ VISITED = ... # type: StateType
+
+ @staticmethod
+ def for_name(name: builtins.str) -> StateType: ...
+
+ @staticmethod
+ def get_name(type: StateType) -> builtins.str: ...
+
+ @staticmethod
+ def register(name: builtins.str) -> StateType: ...
+
+
+class TextAttribute(GObject.GEnum, builtins.int):
+ BG_COLOR = ... # type: TextAttribute
+ BG_FULL_HEIGHT = ... # type: TextAttribute
+ BG_STIPPLE = ... # type: TextAttribute
+ DIRECTION = ... # type: TextAttribute
+ EDITABLE = ... # type: TextAttribute
+ FAMILY_NAME = ... # type: TextAttribute
+ FG_COLOR = ... # type: TextAttribute
+ FG_STIPPLE = ... # type: TextAttribute
+ INDENT = ... # type: TextAttribute
+ INVALID = ... # type: TextAttribute
+ INVISIBLE = ... # type: TextAttribute
+ JUSTIFICATION = ... # type: TextAttribute
+ LANGUAGE = ... # type: TextAttribute
+ LAST_DEFINED = ... # type: TextAttribute
+ LEFT_MARGIN = ... # type: TextAttribute
+ PIXELS_ABOVE_LINES = ... # type: TextAttribute
+ PIXELS_BELOW_LINES = ... # type: TextAttribute
+ PIXELS_INSIDE_WRAP = ... # type: TextAttribute
+ RIGHT_MARGIN = ... # type: TextAttribute
+ RISE = ... # type: TextAttribute
+ SCALE = ... # type: TextAttribute
+ SIZE = ... # type: TextAttribute
+ STRETCH = ... # type: TextAttribute
+ STRIKETHROUGH = ... # type: TextAttribute
+ STYLE = ... # type: TextAttribute
+ TEXT_POSITION = ... # type: TextAttribute
+ UNDERLINE = ... # type: TextAttribute
+ VARIANT = ... # type: TextAttribute
+ WEIGHT = ... # type: TextAttribute
+ WRAP_MODE = ... # type: TextAttribute
+
+ @staticmethod
+ def for_name(name: builtins.str) -> TextAttribute: ...
+
+ @staticmethod
+ def get_name(attr: TextAttribute) -> builtins.str: ...
+
+ @staticmethod
+ def get_value(attr: TextAttribute, index_: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def register(name: builtins.str) -> TextAttribute: ...
+
+
+class TextBoundary(GObject.GEnum, builtins.int):
+ CHAR = ... # type: TextBoundary
+ LINE_END = ... # type: TextBoundary
+ LINE_START = ... # type: TextBoundary
+ SENTENCE_END = ... # type: TextBoundary
+ SENTENCE_START = ... # type: TextBoundary
+ WORD_END = ... # type: TextBoundary
+ WORD_START = ... # type: TextBoundary
+
+
+class TextClipType(GObject.GEnum, builtins.int):
+ BOTH = ... # type: TextClipType
+ MAX = ... # type: TextClipType
+ MIN = ... # type: TextClipType
+ NONE = ... # type: TextClipType
+
+
+class TextGranularity(GObject.GEnum, builtins.int):
+ CHAR = ... # type: TextGranularity
+ LINE = ... # type: TextGranularity
+ PARAGRAPH = ... # type: TextGranularity
+ SENTENCE = ... # type: TextGranularity
+ WORD = ... # type: TextGranularity
+
+
+class ValueType(GObject.GEnum, builtins.int):
+ ACCEPTABLE = ... # type: ValueType
+ BAD = ... # type: ValueType
+ BEST = ... # type: ValueType
+ GOOD = ... # type: ValueType
+ HIGH = ... # type: ValueType
+ LAST_DEFINED = ... # type: ValueType
+ LOW = ... # type: ValueType
+ MEDIUM = ... # type: ValueType
+ STRONG = ... # type: ValueType
+ VERY_BAD = ... # type: ValueType
+ VERY_GOOD = ... # type: ValueType
+ VERY_HIGH = ... # type: ValueType
+ VERY_LOW = ... # type: ValueType
+ VERY_STRONG = ... # type: ValueType
+ VERY_WEAK = ... # type: ValueType
+ WEAK = ... # type: ValueType
+
+ @staticmethod
+ def get_localized_name(value_type: ValueType) -> builtins.str: ...
+
+ @staticmethod
+ def get_name(value_type: ValueType) -> builtins.str: ...
+
+
+EventListener = typing.Callable[[Object], None]
+EventListenerInit = typing.Callable[[], None]
+FocusHandler = typing.Callable[[Object, builtins.bool], None]
+Function = typing.Callable[[typing.Optional[builtins.object]], builtins.bool]
+KeySnoopFunc = typing.Callable[[KeyEventStruct, typing.Optional[builtins.object]], builtins.int]
+PropertyChangeHandler = typing.Callable[[Object, PropertyValues], None]
+
+
+def attribute_set_free(attrib_set: typing.Sequence[builtins.object]) -> None: ...
+
+
+def focus_tracker_notify(object: Object) -> None: ...
+
+
+def get_binary_age() -> builtins.int: ...
+
+
+def get_default_registry() -> Registry: ...
+
+
+def get_focus_object() -> Object: ...
+
+
+def get_interface_age() -> builtins.int: ...
+
+
+def get_major_version() -> builtins.int: ...
+
+
+def get_micro_version() -> builtins.int: ...
+
+
+def get_minor_version() -> builtins.int: ...
+
+
+def get_root() -> Object: ...
+
+
+def get_toolkit_name() -> builtins.str: ...
+
+
+def get_toolkit_version() -> builtins.str: ...
+
+
+def get_version() -> builtins.str: ...
+
+
+def relation_type_for_name(name: builtins.str) -> RelationType: ...
+
+
+def relation_type_get_name(type: RelationType) -> builtins.str: ...
+
+
+def relation_type_register(name: builtins.str) -> RelationType: ...
+
+
+def remove_focus_tracker(tracker_id: builtins.int) -> None: ...
+
+
+def remove_global_event_listener(listener_id: builtins.int) -> None: ...
+
+
+def remove_key_event_listener(listener_id: builtins.int) -> None: ...
+
+
+def role_for_name(name: builtins.str) -> Role: ...
+
+
+def role_get_localized_name(role: Role) -> builtins.str: ...
+
+
+def role_get_name(role: Role) -> builtins.str: ...
+
+
+def role_register(name: builtins.str) -> Role: ...
+
+
+def state_type_for_name(name: builtins.str) -> StateType: ...
+
+
+def state_type_get_name(type: StateType) -> builtins.str: ...
+
+
+def state_type_register(name: builtins.str) -> StateType: ...
+
+
+def text_attribute_for_name(name: builtins.str) -> TextAttribute: ...
+
+
+def text_attribute_get_name(attr: TextAttribute) -> builtins.str: ...
+
+
+def text_attribute_get_value(attr: TextAttribute, index_: builtins.int) -> typing.Optional[builtins.str]: ...
+
+
+def text_attribute_register(name: builtins.str) -> TextAttribute: ...
+
+
+def text_free_ranges(ranges: typing.Sequence[TextRange]) -> None: ...
+
+
+def value_type_get_localized_name(value_type: ValueType) -> builtins.str: ...
+
+
+def value_type_get_name(value_type: ValueType) -> builtins.str: ...
+
+
+BINARY_AGE: builtins.int
+INTERFACE_AGE: builtins.int
+MAJOR_VERSION: builtins.int
+MICRO_VERSION: builtins.int
+MINOR_VERSION: builtins.int
+VERSION_MIN_REQUIRED: builtins.int
diff --git a/stubs/gi/repository/GLib.pyi b/stubs/gi/repository/GLib.pyi
new file mode 100644
index 000000000..447f0a369
--- /dev/null
+++ b/stubs/gi/repository/GLib.pyi
@@ -0,0 +1,4888 @@
+import builtins
+import typing
+
+from gi.repository import GObject
+
+
+FlagsT = typing.TypeVar('FlagsT')
+
+
+class Error(RuntimeError):
+ message: str
+
+
+class Array():
+ data: builtins.str
+ len: builtins.int
+
+
+class AsyncQueue():
+
+ def length(self) -> builtins.int: ...
+
+ def length_unlocked(self) -> builtins.int: ...
+
+ def lock(self) -> None: ...
+
+ def pop(self) -> typing.Optional[builtins.object]: ...
+
+ def pop_unlocked(self) -> typing.Optional[builtins.object]: ...
+
+ def push(self, data: typing.Optional[builtins.object]) -> None: ...
+
+ def push_front(self, item: typing.Optional[builtins.object]) -> None: ...
+
+ def push_front_unlocked(self, item: typing.Optional[builtins.object]) -> None: ...
+
+ def push_unlocked(self, data: typing.Optional[builtins.object]) -> None: ...
+
+ def ref_unlocked(self) -> None: ...
+
+ def remove(self, item: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def remove_unlocked(self, item: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def timed_pop(self, end_time: TimeVal) -> typing.Optional[builtins.object]: ...
+
+ def timed_pop_unlocked(self, end_time: TimeVal) -> typing.Optional[builtins.object]: ...
+
+ def timeout_pop(self, timeout: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def timeout_pop_unlocked(self, timeout: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def try_pop(self) -> typing.Optional[builtins.object]: ...
+
+ def try_pop_unlocked(self) -> typing.Optional[builtins.object]: ...
+
+ def unlock(self) -> None: ...
+
+ def unref(self) -> None: ...
+
+ def unref_and_unlock(self) -> None: ...
+
+
+class BookmarkFile():
+
+ def add_application(self, uri: builtins.str, name: typing.Optional[builtins.str], exec_: typing.Optional[builtins.str]) -> None: ...
+
+ def add_group(self, uri: builtins.str, group: builtins.str) -> None: ...
+
+ @staticmethod
+ def error_quark() -> builtins.int: ...
+
+ def free(self) -> None: ...
+
+ def get_added(self, uri: builtins.str) -> builtins.int: ...
+
+ def get_app_info(self, uri: builtins.str, name: builtins.str) -> typing.Tuple[builtins.bool, builtins.str, builtins.int, builtins.int]: ...
+
+ def get_applications(self, uri: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def get_description(self, uri: builtins.str) -> builtins.str: ...
+
+ def get_groups(self, uri: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def get_icon(self, uri: builtins.str) -> typing.Tuple[builtins.bool, builtins.str, builtins.str]: ...
+
+ def get_is_private(self, uri: builtins.str) -> builtins.bool: ...
+
+ def get_mime_type(self, uri: builtins.str) -> builtins.str: ...
+
+ def get_modified(self, uri: builtins.str) -> builtins.int: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_title(self, uri: typing.Optional[builtins.str]) -> builtins.str: ...
+
+ def get_uris(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_visited(self, uri: builtins.str) -> builtins.int: ...
+
+ def has_application(self, uri: builtins.str, name: builtins.str) -> builtins.bool: ...
+
+ def has_group(self, uri: builtins.str, group: builtins.str) -> builtins.bool: ...
+
+ def has_item(self, uri: builtins.str) -> builtins.bool: ...
+
+ def load_from_data(self, data: builtins.bytes) -> builtins.bool: ...
+
+ def load_from_data_dirs(self, file: builtins.str) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+ def load_from_file(self, filename: builtins.str) -> builtins.bool: ...
+
+ def move_item(self, old_uri: builtins.str, new_uri: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def remove_application(self, uri: builtins.str, name: builtins.str) -> builtins.bool: ...
+
+ def remove_group(self, uri: builtins.str, group: builtins.str) -> builtins.bool: ...
+
+ def remove_item(self, uri: builtins.str) -> builtins.bool: ...
+
+ def set_added(self, uri: builtins.str, added: builtins.int) -> None: ...
+
+ def set_app_info(self, uri: builtins.str, name: builtins.str, exec_: builtins.str, count: builtins.int, stamp: builtins.int) -> builtins.bool: ...
+
+ def set_description(self, uri: typing.Optional[builtins.str], description: builtins.str) -> None: ...
+
+ def set_groups(self, uri: builtins.str, groups: typing.Optional[typing.Sequence[builtins.str]]) -> None: ...
+
+ def set_icon(self, uri: builtins.str, href: typing.Optional[builtins.str], mime_type: builtins.str) -> None: ...
+
+ def set_is_private(self, uri: builtins.str, is_private: builtins.bool) -> None: ...
+
+ def set_mime_type(self, uri: builtins.str, mime_type: builtins.str) -> None: ...
+
+ def set_modified(self, uri: builtins.str, modified: builtins.int) -> None: ...
+
+ def set_title(self, uri: typing.Optional[builtins.str], title: builtins.str) -> None: ...
+
+ def set_visited(self, uri: builtins.str, visited: builtins.int) -> None: ...
+
+ def to_data(self) -> builtins.bytes: ...
+
+ def to_file(self, filename: builtins.str) -> builtins.bool: ...
+
+
+class ByteArray():
+ data: builtins.int
+ len: builtins.int
+
+ @staticmethod
+ def free(array: builtins.bytes, free_segment: builtins.bool) -> builtins.int: ...
+
+ @staticmethod
+ def free_to_bytes(array: builtins.bytes) -> Bytes: ...
+
+ @staticmethod
+ def new() -> builtins.bytes: ...
+
+ @staticmethod
+ def new_take(data: builtins.bytes) -> builtins.bytes: ...
+
+ @staticmethod
+ def steal(array: builtins.bytes) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def unref(array: builtins.bytes) -> None: ...
+
+
+class Bytes():
+
+ def compare(self, bytes2: Bytes) -> builtins.int: ...
+
+ def equal(self, bytes2: Bytes) -> builtins.bool: ...
+
+ def get_data(self) -> typing.Optional[builtins.bytes]: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def hash(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(data: typing.Optional[builtins.bytes]) -> Bytes: ...
+
+ def new_from_bytes(self, offset: builtins.int, length: builtins.int) -> Bytes: ...
+
+ @staticmethod
+ def new_take(data: typing.Optional[builtins.bytes]) -> Bytes: ...
+
+ def ref(self) -> Bytes: ...
+
+ def unref(self) -> None: ...
+
+ def unref_to_array(self) -> builtins.bytes: ...
+
+ def unref_to_data(self) -> builtins.bytes: ...
+
+
+class Checksum():
+
+ def copy(self) -> Checksum: ...
+
+ def free(self) -> None: ...
+
+ def get_string(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(checksum_type: ChecksumType) -> Checksum: ...
+
+ def reset(self) -> None: ...
+
+ @staticmethod
+ def type_get_length(checksum_type: ChecksumType) -> builtins.int: ...
+
+ def update(self, data: builtins.bytes) -> None: ...
+
+
+class Cond():
+ i: typing.Sequence[builtins.int]
+ p: builtins.object
+
+ def broadcast(self) -> None: ...
+
+ def clear(self) -> None: ...
+
+ def init(self) -> None: ...
+
+ def signal(self) -> None: ...
+
+ def wait(self, mutex: Mutex) -> None: ...
+
+ def wait_until(self, mutex: Mutex, end_time: builtins.int) -> builtins.bool: ...
+
+
+class Data():
+ ...
+
+
+class Date():
+ day: builtins.int
+ dmy: builtins.int
+ julian: builtins.int
+ julian_days: builtins.int
+ month: builtins.int
+ year: builtins.int
+
+ def add_days(self, n_days: builtins.int) -> None: ...
+
+ def add_months(self, n_months: builtins.int) -> None: ...
+
+ def add_years(self, n_years: builtins.int) -> None: ...
+
+ def clamp(self, min_date: Date, max_date: Date) -> None: ...
+
+ def clear(self, n_dates: builtins.int) -> None: ...
+
+ def compare(self, rhs: Date) -> builtins.int: ...
+
+ def copy(self) -> Date: ...
+
+ def days_between(self, date2: Date) -> builtins.int: ...
+
+ def free(self) -> None: ...
+
+ def get_day(self) -> builtins.int: ...
+
+ def get_day_of_year(self) -> builtins.int: ...
+
+ @staticmethod
+ def get_days_in_month(month: DateMonth, year: builtins.int) -> builtins.int: ...
+
+ def get_iso8601_week_of_year(self) -> builtins.int: ...
+
+ def get_julian(self) -> builtins.int: ...
+
+ def get_monday_week_of_year(self) -> builtins.int: ...
+
+ @staticmethod
+ def get_monday_weeks_in_year(year: builtins.int) -> builtins.int: ...
+
+ def get_month(self) -> DateMonth: ...
+
+ def get_sunday_week_of_year(self) -> builtins.int: ...
+
+ @staticmethod
+ def get_sunday_weeks_in_year(year: builtins.int) -> builtins.int: ...
+
+ def get_weekday(self) -> DateWeekday: ...
+
+ def get_year(self) -> builtins.int: ...
+
+ def is_first_of_month(self) -> builtins.bool: ...
+
+ def is_last_of_month(self) -> builtins.bool: ...
+
+ @staticmethod
+ def is_leap_year(year: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Date: ...
+
+ @staticmethod
+ def new_dmy(day: builtins.int, month: DateMonth, year: builtins.int) -> Date: ...
+
+ @staticmethod
+ def new_julian(julian_day: builtins.int) -> Date: ...
+
+ def order(self, date2: Date) -> None: ...
+
+ def set_day(self, day: builtins.int) -> None: ...
+
+ def set_dmy(self, day: builtins.int, month: DateMonth, y: builtins.int) -> None: ...
+
+ def set_julian(self, julian_date: builtins.int) -> None: ...
+
+ def set_month(self, month: DateMonth) -> None: ...
+
+ def set_parse(self, str: builtins.str) -> None: ...
+
+ def set_time(self, time_: builtins.int) -> None: ...
+
+ def set_time_t(self, timet: builtins.int) -> None: ...
+
+ def set_time_val(self, timeval: TimeVal) -> None: ...
+
+ def set_year(self, year: builtins.int) -> None: ...
+
+ @staticmethod
+ def strftime(s: builtins.str, slen: builtins.int, format: builtins.str, date: Date) -> builtins.int: ...
+
+ def subtract_days(self, n_days: builtins.int) -> None: ...
+
+ def subtract_months(self, n_months: builtins.int) -> None: ...
+
+ def subtract_years(self, n_years: builtins.int) -> None: ...
+
+ def to_struct_tm(self, tm: builtins.object) -> None: ...
+
+ def valid(self) -> builtins.bool: ...
+
+ @staticmethod
+ def valid_day(day: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def valid_dmy(day: builtins.int, month: DateMonth, year: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def valid_julian(julian_date: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def valid_month(month: DateMonth) -> builtins.bool: ...
+
+ @staticmethod
+ def valid_weekday(weekday: DateWeekday) -> builtins.bool: ...
+
+ @staticmethod
+ def valid_year(year: builtins.int) -> builtins.bool: ...
+
+
+class DateTime():
+
+ def add(self, timespan: builtins.int) -> DateTime: ...
+
+ def add_days(self, days: builtins.int) -> DateTime: ...
+
+ def add_full(self, years: builtins.int, months: builtins.int, days: builtins.int, hours: builtins.int, minutes: builtins.int, seconds: builtins.float) -> DateTime: ...
+
+ def add_hours(self, hours: builtins.int) -> DateTime: ...
+
+ def add_minutes(self, minutes: builtins.int) -> DateTime: ...
+
+ def add_months(self, months: builtins.int) -> DateTime: ...
+
+ def add_seconds(self, seconds: builtins.float) -> DateTime: ...
+
+ def add_weeks(self, weeks: builtins.int) -> DateTime: ...
+
+ def add_years(self, years: builtins.int) -> DateTime: ...
+
+ @staticmethod
+ def compare(dt1: builtins.object, dt2: builtins.object) -> builtins.int: ...
+
+ def difference(self, begin: DateTime) -> builtins.int: ...
+
+ @staticmethod
+ def equal(dt1: builtins.object, dt2: builtins.object) -> builtins.bool: ...
+
+ def format(self, format: builtins.str) -> builtins.str: ...
+
+ def format_iso8601(self) -> builtins.str: ...
+
+ def get_day_of_month(self) -> builtins.int: ...
+
+ def get_day_of_week(self) -> builtins.int: ...
+
+ def get_day_of_year(self) -> builtins.int: ...
+
+ def get_hour(self) -> builtins.int: ...
+
+ def get_microsecond(self) -> builtins.int: ...
+
+ def get_minute(self) -> builtins.int: ...
+
+ def get_month(self) -> builtins.int: ...
+
+ def get_second(self) -> builtins.int: ...
+
+ def get_seconds(self) -> builtins.float: ...
+
+ def get_timezone(self) -> TimeZone: ...
+
+ def get_timezone_abbreviation(self) -> builtins.str: ...
+
+ def get_utc_offset(self) -> builtins.int: ...
+
+ def get_week_numbering_year(self) -> builtins.int: ...
+
+ def get_week_of_year(self) -> builtins.int: ...
+
+ def get_year(self) -> builtins.int: ...
+
+ def get_ymd(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def hash(datetime: builtins.object) -> builtins.int: ...
+
+ def is_daylight_savings(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(tz: TimeZone, year: builtins.int, month: builtins.int, day: builtins.int, hour: builtins.int, minute: builtins.int, seconds: builtins.float) -> DateTime: ...
+
+ @staticmethod
+ def new_from_iso8601(text: builtins.str, default_tz: typing.Optional[TimeZone]) -> typing.Optional[DateTime]: ...
+
+ @staticmethod
+ def new_from_timeval_local(tv: TimeVal) -> DateTime: ...
+
+ @staticmethod
+ def new_from_timeval_utc(tv: TimeVal) -> DateTime: ...
+
+ @staticmethod
+ def new_from_unix_local(t: builtins.int) -> DateTime: ...
+
+ @staticmethod
+ def new_from_unix_utc(t: builtins.int) -> DateTime: ...
+
+ @staticmethod
+ def new_local(year: builtins.int, month: builtins.int, day: builtins.int, hour: builtins.int, minute: builtins.int, seconds: builtins.float) -> DateTime: ...
+
+ @staticmethod
+ def new_now(tz: TimeZone) -> DateTime: ...
+
+ @staticmethod
+ def new_now_local() -> DateTime: ...
+
+ @staticmethod
+ def new_now_utc() -> DateTime: ...
+
+ @staticmethod
+ def new_utc(year: builtins.int, month: builtins.int, day: builtins.int, hour: builtins.int, minute: builtins.int, seconds: builtins.float) -> DateTime: ...
+
+ def ref(self) -> DateTime: ...
+
+ def to_local(self) -> DateTime: ...
+
+ def to_timeval(self, tv: TimeVal) -> builtins.bool: ...
+
+ def to_timezone(self, tz: TimeZone) -> DateTime: ...
+
+ def to_unix(self) -> builtins.int: ...
+
+ def to_utc(self) -> DateTime: ...
+
+ def unref(self) -> None: ...
+
+
+class DebugKey():
+ key: builtins.str
+ value: builtins.int
+
+
+class Dir():
+
+ def close(self) -> None: ...
+
+ @staticmethod
+ def make_tmp(tmpl: typing.Optional[builtins.str]) -> builtins.str: ...
+
+ def read_name(self) -> builtins.str: ...
+
+ def rewind(self) -> None: ...
+
+
+class HashTable():
+
+ @staticmethod
+ def add(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def contains(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def destroy(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+ @staticmethod
+ def insert(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object], value: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def lookup(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> typing.Optional[builtins.object]: ...
+
+ @staticmethod
+ def lookup_extended(hash_table: typing.Mapping[builtins.object, builtins.object], lookup_key: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.object, builtins.object]: ...
+
+ @staticmethod
+ def remove(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def remove_all(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+ @staticmethod
+ def replace(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object], value: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def size(hash_table: typing.Mapping[builtins.object, builtins.object]) -> builtins.int: ...
+
+ @staticmethod
+ def steal(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def steal_all(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+ @staticmethod
+ def steal_extended(hash_table: typing.Mapping[builtins.object, builtins.object], lookup_key: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.object, builtins.object]: ...
+
+ @staticmethod
+ def unref(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+
+class HashTableIter():
+ dummy1: builtins.object
+ dummy2: builtins.object
+ dummy3: builtins.object
+ dummy4: builtins.int
+ dummy5: builtins.bool
+ dummy6: builtins.object
+
+ def init(self, hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+ def next(self) -> typing.Tuple[builtins.bool, builtins.object, builtins.object]: ...
+
+ def remove(self) -> None: ...
+
+ def replace(self, value: typing.Optional[builtins.object]) -> None: ...
+
+ def steal(self) -> None: ...
+
+
+class Hmac():
+
+ def get_digest(self, buffer: builtins.bytes) -> None: ...
+
+ def get_string(self) -> builtins.str: ...
+
+ def unref(self) -> None: ...
+
+ def update(self, data: builtins.bytes) -> None: ...
+
+
+class Hook():
+ data: builtins.object
+ destroy: DestroyNotify
+ flags: builtins.int
+ func: builtins.object
+ hook_id: builtins.int
+ next: Hook
+ prev: Hook
+ ref_count: builtins.int
+
+ def compare_ids(self, sibling: Hook) -> builtins.int: ...
+
+ @staticmethod
+ def destroy_link(hook_list: HookList, hook: Hook) -> None: ...
+
+ @staticmethod
+ def free(hook_list: HookList, hook: Hook) -> None: ...
+
+ @staticmethod
+ def insert_before(hook_list: HookList, sibling: typing.Optional[Hook], hook: Hook) -> None: ...
+
+ @staticmethod
+ def prepend(hook_list: HookList, hook: Hook) -> None: ...
+
+ @staticmethod
+ def unref(hook_list: HookList, hook: Hook) -> None: ...
+
+
+class HookList():
+ dummy3: builtins.object
+ dummy: typing.Sequence[builtins.object]
+ finalize_hook: HookFinalizeFunc
+ hook_size: builtins.int
+ hooks: Hook
+ is_setup: builtins.int
+ seq_id: builtins.int
+
+ def clear(self) -> None: ...
+
+ def init(self, hook_size: builtins.int) -> None: ...
+
+ def invoke(self, may_recurse: builtins.bool) -> None: ...
+
+ def invoke_check(self, may_recurse: builtins.bool) -> None: ...
+
+
+class IOChannel():
+ buf_size: builtins.int
+ close_on_unref: builtins.int
+ do_encode: builtins.int
+ encoded_read_buf: String
+ encoding: builtins.str
+ funcs: IOFuncs
+ is_readable: builtins.int
+ is_seekable: builtins.int
+ is_writeable: builtins.int
+ line_term: builtins.str
+ line_term_len: builtins.int
+ partial_write_buf: typing.Sequence[builtins.int]
+ read_buf: String
+ read_cd: builtins.object
+ ref_count: builtins.int
+ reserved1: builtins.object
+ reserved2: builtins.object
+ use_buffer: builtins.int
+ write_buf: String
+ write_cd: builtins.object
+
+ def close(self) -> None: ...
+
+ @staticmethod
+ def error_from_errno(en: builtins.int) -> IOChannelError: ...
+
+ @staticmethod
+ def error_quark() -> builtins.int: ...
+
+ def flush(self) -> IOStatus: ...
+
+ def get_buffer_condition(self) -> IOCondition: ...
+
+ def get_buffer_size(self) -> builtins.int: ...
+
+ def get_buffered(self) -> builtins.bool: ...
+
+ def get_close_on_unref(self) -> builtins.bool: ...
+
+ def get_encoding(self) -> builtins.str: ...
+
+ def get_flags(self) -> IOFlags: ...
+
+ def get_line_term(self, length: builtins.int) -> builtins.str: ...
+
+ def init(self) -> None: ...
+
+ @staticmethod
+ def new_file(filename: builtins.str, mode: builtins.str) -> IOChannel: ...
+
+ def read(self, max_count: int = -1) -> bytes: ...
+
+ def read_chars(self) -> typing.Tuple[IOStatus, builtins.bytes, builtins.int]: ...
+
+ def read_line(self) -> typing.Tuple[IOStatus, builtins.str, builtins.int, builtins.int]: ...
+
+ def read_line_string(self, buffer: String, terminator_pos: typing.Optional[builtins.int]) -> IOStatus: ...
+
+ def read_to_end(self) -> typing.Tuple[IOStatus, builtins.bytes]: ...
+
+ def read_unichar(self) -> typing.Tuple[IOStatus, builtins.str]: ...
+
+ def readline(self) -> str: ...
+
+ def ref(self) -> IOChannel: ...
+
+ def seek(self, offset: builtins.int, type: SeekType) -> IOError: ...
+
+ def seek_position(self, offset: builtins.int, type: SeekType) -> IOStatus: ...
+
+ def set_buffer_size(self, size: builtins.int) -> None: ...
+
+ def set_buffered(self, buffered: builtins.bool) -> None: ...
+
+ def set_close_on_unref(self, do_close: builtins.bool) -> None: ...
+
+ def set_encoding(self, encoding: typing.Optional[builtins.str]) -> IOStatus: ...
+
+ def set_flags(self, flags: IOFlags) -> IOStatus: ...
+
+ def set_line_term(self, line_term: typing.Optional[builtins.str], length: builtins.int) -> None: ...
+
+ def shutdown(self, flush: builtins.bool) -> IOStatus: ...
+
+ def unix_get_fd(self) -> builtins.int: ...
+
+ @staticmethod
+ def unix_new(fd: builtins.int) -> IOChannel: ...
+
+ def unref(self) -> None: ...
+
+ def write(self, buf: builtins.str, count: builtins.int, bytes_written: builtins.int) -> IOError: ...
+
+ def write_chars(self, buf: builtins.bytes, count: builtins.int) -> typing.Tuple[IOStatus, builtins.int]: ...
+
+ def write_unichar(self, thechar: builtins.str) -> IOStatus: ...
+
+
+class IOFuncs():
+ io_close: builtins.object
+ io_create_watch: builtins.object
+ io_free: builtins.object
+ io_get_flags: builtins.object
+ io_read: builtins.object
+ io_seek: builtins.object
+ io_set_flags: builtins.object
+ io_write: builtins.object
+
+
+class Idle():
+
+ def get_current_time(self, timeval: TimeVal) -> None: ...
+
+ def set_callback(self, func: SourceFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+
+class KeyFile():
+
+ @staticmethod
+ def error_quark() -> builtins.int: ...
+
+ def get_boolean(self, group_name: builtins.str, key: builtins.str) -> builtins.bool: ...
+
+ def get_boolean_list(self, group_name: builtins.str, key: builtins.str) -> typing.Sequence[builtins.bool]: ...
+
+ def get_comment(self, group_name: typing.Optional[builtins.str], key: builtins.str) -> builtins.str: ...
+
+ def get_double(self, group_name: builtins.str, key: builtins.str) -> builtins.float: ...
+
+ def get_double_list(self, group_name: builtins.str, key: builtins.str) -> typing.Sequence[builtins.float]: ...
+
+ def get_groups(self) -> typing.Tuple[typing.Sequence[builtins.str], builtins.int]: ...
+
+ def get_int64(self, group_name: builtins.str, key: builtins.str) -> builtins.int: ...
+
+ def get_integer(self, group_name: builtins.str, key: builtins.str) -> builtins.int: ...
+
+ def get_integer_list(self, group_name: builtins.str, key: builtins.str) -> typing.Sequence[builtins.int]: ...
+
+ def get_keys(self, group_name: builtins.str) -> typing.Tuple[typing.Sequence[builtins.str], builtins.int]: ...
+
+ def get_locale_for_key(self, group_name: builtins.str, key: builtins.str, locale: typing.Optional[builtins.str]) -> typing.Optional[builtins.str]: ...
+
+ def get_locale_string(self, group_name: builtins.str, key: builtins.str, locale: typing.Optional[builtins.str]) -> builtins.str: ...
+
+ def get_locale_string_list(self, group_name: builtins.str, key: builtins.str, locale: typing.Optional[builtins.str]) -> typing.Sequence[builtins.str]: ...
+
+ def get_start_group(self) -> builtins.str: ...
+
+ def get_string(self, group_name: builtins.str, key: builtins.str) -> builtins.str: ...
+
+ def get_string_list(self, group_name: builtins.str, key: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def get_uint64(self, group_name: builtins.str, key: builtins.str) -> builtins.int: ...
+
+ def get_value(self, group_name: builtins.str, key: builtins.str) -> builtins.str: ...
+
+ def has_group(self, group_name: builtins.str) -> builtins.bool: ...
+
+ def load_from_bytes(self, bytes: Bytes, flags: KeyFileFlags) -> builtins.bool: ...
+
+ def load_from_data(self, data: builtins.str, length: builtins.int, flags: KeyFileFlags) -> builtins.bool: ...
+
+ def load_from_data_dirs(self, file: builtins.str, flags: KeyFileFlags) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+ def load_from_dirs(self, file: builtins.str, search_dirs: typing.Sequence[builtins.str], flags: KeyFileFlags) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+ def load_from_file(self, file: builtins.str, flags: KeyFileFlags) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> KeyFile: ...
+
+ def remove_comment(self, group_name: typing.Optional[builtins.str], key: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def remove_group(self, group_name: builtins.str) -> builtins.bool: ...
+
+ def remove_key(self, group_name: builtins.str, key: builtins.str) -> builtins.bool: ...
+
+ def save_to_file(self, filename: builtins.str) -> builtins.bool: ...
+
+ def set_boolean(self, group_name: builtins.str, key: builtins.str, value: builtins.bool) -> None: ...
+
+ def set_boolean_list(self, group_name: builtins.str, key: builtins.str, list: typing.Sequence[builtins.bool]) -> None: ...
+
+ def set_comment(self, group_name: typing.Optional[builtins.str], key: typing.Optional[builtins.str], comment: builtins.str) -> builtins.bool: ...
+
+ def set_double(self, group_name: builtins.str, key: builtins.str, value: builtins.float) -> None: ...
+
+ def set_double_list(self, group_name: builtins.str, key: builtins.str, list: typing.Sequence[builtins.float]) -> None: ...
+
+ def set_int64(self, group_name: builtins.str, key: builtins.str, value: builtins.int) -> None: ...
+
+ def set_integer(self, group_name: builtins.str, key: builtins.str, value: builtins.int) -> None: ...
+
+ def set_integer_list(self, group_name: builtins.str, key: builtins.str, list: typing.Sequence[builtins.int]) -> None: ...
+
+ def set_list_separator(self, separator: builtins.int) -> None: ...
+
+ def set_locale_string(self, group_name: builtins.str, key: builtins.str, locale: builtins.str, string: builtins.str) -> None: ...
+
+ def set_locale_string_list(self, group_name: builtins.str, key: builtins.str, locale: builtins.str, list: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_string(self, group_name: builtins.str, key: builtins.str, string: builtins.str) -> None: ...
+
+ def set_string_list(self, group_name: builtins.str, key: builtins.str, list: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_uint64(self, group_name: builtins.str, key: builtins.str, value: builtins.int) -> None: ...
+
+ def set_value(self, group_name: builtins.str, key: builtins.str, value: builtins.str) -> None: ...
+
+ def to_data(self) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def unref(self) -> None: ...
+
+
+class List():
+ data: builtins.object
+ next: typing.Sequence[builtins.object]
+ prev: typing.Sequence[builtins.object]
+
+
+class LogField():
+ key: builtins.str
+ length: builtins.int
+ value: builtins.object
+
+
+class MainContext():
+
+ def acquire(self) -> builtins.bool: ...
+
+ def add_poll(self, fd: PollFD, priority: builtins.int) -> None: ...
+
+ def check(self, max_priority: builtins.int, fds: typing.Sequence[PollFD]) -> builtins.bool: ...
+
+ @staticmethod
+ def default() -> MainContext: ...
+
+ def dispatch(self) -> None: ...
+
+ def find_source_by_funcs_user_data(self, funcs: SourceFuncs, user_data: typing.Optional[builtins.object]) -> Source: ...
+
+ def find_source_by_id(self, source_id: builtins.int) -> Source: ...
+
+ def find_source_by_user_data(self, user_data: typing.Optional[builtins.object]) -> Source: ...
+
+ @staticmethod
+ def get_thread_default() -> MainContext: ...
+
+ def invoke_full(self, priority: builtins.int, function: SourceFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def is_owner(self) -> builtins.bool: ...
+
+ def iteration(self, may_block: builtins.bool) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> MainContext: ...
+
+ def pending(self) -> builtins.bool: ...
+
+ def pop_thread_default(self) -> None: ...
+
+ def prepare(self) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def push_thread_default(self) -> None: ...
+
+ def query(self, max_priority: builtins.int) -> typing.Tuple[builtins.int, builtins.int, typing.Sequence[PollFD]]: ...
+
+ def ref(self) -> MainContext: ...
+
+ @staticmethod
+ def ref_thread_default() -> MainContext: ...
+
+ def release(self) -> None: ...
+
+ def remove_poll(self, fd: PollFD) -> None: ...
+
+ def unref(self) -> None: ...
+
+ def wait(self, cond: Cond, mutex: Mutex) -> builtins.bool: ...
+
+ def wakeup(self) -> None: ...
+
+
+class MainLoop():
+
+ def get_context(self) -> MainContext: ...
+
+ def is_running(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(context: typing.Optional[MainContext], is_running: builtins.bool) -> MainLoop: ...
+
+ def quit(self) -> None: ...
+
+ def ref(self) -> MainLoop: ...
+
+ def run(self) -> None: ...
+
+ def unref(self) -> None: ...
+
+
+class MappedFile():
+
+ def free(self) -> None: ...
+
+ def get_bytes(self) -> Bytes: ...
+
+ def get_contents(self) -> builtins.str: ...
+
+ def get_length(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(filename: builtins.str, writable: builtins.bool) -> MappedFile: ...
+
+ @staticmethod
+ def new_from_fd(fd: builtins.int, writable: builtins.bool) -> MappedFile: ...
+
+ def ref(self) -> MappedFile: ...
+
+ def unref(self) -> None: ...
+
+
+class MarkupParseContext():
+
+ def end_parse(self) -> builtins.bool: ...
+
+ def free(self) -> None: ...
+
+ def get_element(self) -> builtins.str: ...
+
+ def get_position(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_user_data(self) -> typing.Optional[builtins.object]: ...
+
+ @staticmethod
+ def new(parser: MarkupParser, flags: MarkupParseFlags, user_data: typing.Optional[builtins.object], user_data_dnotify: DestroyNotify) -> MarkupParseContext: ...
+
+ def parse(self, text: builtins.str, text_len: builtins.int) -> builtins.bool: ...
+
+ def pop(self) -> typing.Optional[builtins.object]: ...
+
+ def push(self, parser: MarkupParser, user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def ref(self) -> MarkupParseContext: ...
+
+ def unref(self) -> None: ...
+
+
+class MarkupParser():
+ end_element: builtins.object
+ error: builtins.object
+ passthrough: builtins.object
+ start_element: builtins.object
+ text: builtins.object
+
+
+class MatchInfo():
+
+ def expand_references(self, string_to_expand: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def fetch(self, match_num: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def fetch_all(self) -> typing.Sequence[builtins.str]: ...
+
+ def fetch_named(self, name: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def fetch_named_pos(self, name: builtins.str) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def fetch_pos(self, match_num: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def free(self) -> None: ...
+
+ def get_match_count(self) -> builtins.int: ...
+
+ def get_regex(self) -> Regex: ...
+
+ def get_string(self) -> builtins.str: ...
+
+ def is_partial_match(self) -> builtins.bool: ...
+
+ def matches(self) -> builtins.bool: ...
+
+ def next(self) -> builtins.bool: ...
+
+ def ref(self) -> MatchInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class MemVTable():
+ calloc: builtins.object
+ free: builtins.object
+ malloc: builtins.object
+ realloc: builtins.object
+ try_malloc: builtins.object
+ try_realloc: builtins.object
+
+
+class Node():
+ children: Node
+ data: builtins.object
+ next: Node
+ parent: Node
+ prev: Node
+
+ def child_index(self, data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ def child_position(self, child: Node) -> builtins.int: ...
+
+ def depth(self) -> builtins.int: ...
+
+ def destroy(self) -> None: ...
+
+ def is_ancestor(self, descendant: Node) -> builtins.bool: ...
+
+ def max_height(self) -> builtins.int: ...
+
+ def n_children(self) -> builtins.int: ...
+
+ def n_nodes(self, flags: TraverseFlags) -> builtins.int: ...
+
+ def reverse_children(self) -> None: ...
+
+ def unlink(self) -> None: ...
+
+
+class Once():
+ retval: builtins.object
+ status: OnceStatus
+
+ @staticmethod
+ def init_enter(location: builtins.object) -> builtins.bool: ...
+
+ @staticmethod
+ def init_leave(location: builtins.object, result: builtins.int) -> None: ...
+
+
+class OptionContext():
+
+ def add_group(self, group: OptionGroup) -> None: ...
+
+ def add_main_entries(self, entries: typing.Sequence[OptionEntry], translation_domain: typing.Optional[builtins.str]) -> None: ...
+
+ def free(self) -> None: ...
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_help(self, main_help: builtins.bool, group: typing.Optional[OptionGroup]) -> builtins.str: ...
+
+ def get_help_enabled(self) -> builtins.bool: ...
+
+ def get_ignore_unknown_options(self) -> builtins.bool: ...
+
+ def get_main_group(self) -> OptionGroup: ...
+
+ def get_strict_posix(self) -> builtins.bool: ...
+
+ def get_summary(self) -> builtins.str: ...
+
+ def parse(self, argv: typing.Sequence[builtins.str]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+ def parse_strv(self, arguments: typing.Sequence[builtins.str]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+ def set_description(self, description: typing.Optional[builtins.str]) -> None: ...
+
+ def set_help_enabled(self, help_enabled: builtins.bool) -> None: ...
+
+ def set_ignore_unknown_options(self, ignore_unknown: builtins.bool) -> None: ...
+
+ def set_main_group(self, group: OptionGroup) -> None: ...
+
+ def set_strict_posix(self, strict_posix: builtins.bool) -> None: ...
+
+ def set_summary(self, summary: typing.Optional[builtins.str]) -> None: ...
+
+ def set_translate_func(self, func: typing.Optional[TranslateFunc], *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_translation_domain(self, domain: builtins.str) -> None: ...
+
+
+class OptionEntry():
+ arg: OptionArg
+ arg_data: builtins.object
+ arg_description: builtins.str
+ description: builtins.str
+ flags: builtins.int
+ long_name: builtins.str
+ short_name: builtins.int
+
+
+class OptionGroup():
+
+ def add_entries(self, entries: typing.Sequence[OptionEntry]) -> None: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def new(name: builtins.str, description: builtins.str, help_description: builtins.str, user_data: typing.Optional[builtins.object], destroy: typing.Optional[DestroyNotify]) -> OptionGroup: ...
+
+ def ref(self) -> OptionGroup: ...
+
+ def set_translate_func(self, func: typing.Optional[TranslateFunc], *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_translation_domain(self, domain: builtins.str) -> None: ...
+
+ def unref(self) -> None: ...
+
+
+class PatternSpec():
+
+ def equal(self, pspec2: PatternSpec) -> builtins.bool: ...
+
+ def free(self) -> None: ...
+
+
+class PollFD():
+ events: builtins.int
+ fd: builtins.int
+ revents: builtins.int
+
+
+class Private():
+ future: typing.Sequence[builtins.object]
+ notify: DestroyNotify
+ p: builtins.object
+
+ def get(self) -> typing.Optional[builtins.object]: ...
+
+ def replace(self, value: typing.Optional[builtins.object]) -> None: ...
+
+ def set(self, value: typing.Optional[builtins.object]) -> None: ...
+
+
+class PtrArray():
+ len: builtins.int
+ pdata: builtins.object
+
+
+class Queue():
+ head: typing.Sequence[builtins.object]
+ length: builtins.int
+ tail: typing.Sequence[builtins.object]
+
+ def clear(self) -> None: ...
+
+ def clear_full(self, free_func: typing.Optional[DestroyNotify]) -> None: ...
+
+ def free(self) -> None: ...
+
+ def free_full(self, free_func: DestroyNotify) -> None: ...
+
+ def get_length(self) -> builtins.int: ...
+
+ def index(self, data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ def init(self) -> None: ...
+
+ def is_empty(self) -> builtins.bool: ...
+
+ def peek_head(self) -> typing.Optional[builtins.object]: ...
+
+ def peek_nth(self, n: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def peek_tail(self) -> typing.Optional[builtins.object]: ...
+
+ def pop_head(self) -> typing.Optional[builtins.object]: ...
+
+ def pop_nth(self, n: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def pop_tail(self) -> typing.Optional[builtins.object]: ...
+
+ def push_head(self, data: typing.Optional[builtins.object]) -> None: ...
+
+ def push_nth(self, data: typing.Optional[builtins.object], n: builtins.int) -> None: ...
+
+ def push_tail(self, data: typing.Optional[builtins.object]) -> None: ...
+
+ def remove(self, data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def remove_all(self, data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ def reverse(self) -> None: ...
+
+
+class RWLock():
+ i: typing.Sequence[builtins.int]
+ p: builtins.object
+
+ def clear(self) -> None: ...
+
+ def init(self) -> None: ...
+
+ def reader_lock(self) -> None: ...
+
+ def reader_trylock(self) -> builtins.bool: ...
+
+ def reader_unlock(self) -> None: ...
+
+ def writer_lock(self) -> None: ...
+
+ def writer_trylock(self) -> builtins.bool: ...
+
+ def writer_unlock(self) -> None: ...
+
+
+class Rand():
+
+ def double(self) -> builtins.float: ...
+
+ def double_range(self, begin: builtins.float, end: builtins.float) -> builtins.float: ...
+
+ def free(self) -> None: ...
+
+ def int(self) -> builtins.int: ...
+
+ def int_range(self, begin: builtins.int, end: builtins.int) -> builtins.int: ...
+
+ def set_seed(self, seed: builtins.int) -> None: ...
+
+ def set_seed_array(self, seed: builtins.int, seed_length: builtins.int) -> None: ...
+
+
+class RecMutex():
+ i: typing.Sequence[builtins.int]
+ p: builtins.object
+
+ def clear(self) -> None: ...
+
+ def init(self) -> None: ...
+
+ def lock(self) -> None: ...
+
+ def trylock(self) -> builtins.bool: ...
+
+ def unlock(self) -> None: ...
+
+
+class Regex():
+
+ @staticmethod
+ def check_replacement(replacement: builtins.str) -> typing.Tuple[builtins.bool, builtins.bool]: ...
+
+ @staticmethod
+ def error_quark() -> builtins.int: ...
+
+ @staticmethod
+ def escape_nul(string: builtins.str, length: builtins.int) -> builtins.str: ...
+
+ @staticmethod
+ def escape_string(string: typing.Sequence[builtins.str]) -> builtins.str: ...
+
+ def get_capture_count(self) -> builtins.int: ...
+
+ def get_compile_flags(self) -> RegexCompileFlags: ...
+
+ def get_has_cr_or_lf(self) -> builtins.bool: ...
+
+ def get_match_flags(self) -> RegexMatchFlags: ...
+
+ def get_max_backref(self) -> builtins.int: ...
+
+ def get_max_lookbehind(self) -> builtins.int: ...
+
+ def get_pattern(self) -> builtins.str: ...
+
+ def get_string_number(self, name: builtins.str) -> builtins.int: ...
+
+ def match(self, string: builtins.str, match_options: RegexMatchFlags) -> typing.Tuple[builtins.bool, MatchInfo]: ...
+
+ def match_all(self, string: builtins.str, match_options: RegexMatchFlags) -> typing.Tuple[builtins.bool, MatchInfo]: ...
+
+ def match_all_full(self, string: typing.Sequence[builtins.str], start_position: builtins.int, match_options: RegexMatchFlags) -> typing.Tuple[builtins.bool, MatchInfo]: ...
+
+ def match_full(self, string: typing.Sequence[builtins.str], start_position: builtins.int, match_options: RegexMatchFlags) -> typing.Tuple[builtins.bool, MatchInfo]: ...
+
+ @staticmethod
+ def match_simple(pattern: builtins.str, string: builtins.str, compile_options: RegexCompileFlags, match_options: RegexMatchFlags) -> builtins.bool: ...
+
+ @staticmethod
+ def new(pattern: builtins.str, compile_options: RegexCompileFlags, match_options: RegexMatchFlags) -> typing.Optional[Regex]: ...
+
+ def ref(self) -> Regex: ...
+
+ def replace(self, string: typing.Sequence[builtins.str], start_position: builtins.int, replacement: builtins.str, match_options: RegexMatchFlags) -> builtins.str: ...
+
+ def replace_literal(self, string: typing.Sequence[builtins.str], start_position: builtins.int, replacement: builtins.str, match_options: RegexMatchFlags) -> builtins.str: ...
+
+ def split(self, string: builtins.str, match_options: RegexMatchFlags) -> typing.Sequence[builtins.str]: ...
+
+ def split_full(self, string: typing.Sequence[builtins.str], start_position: builtins.int, match_options: RegexMatchFlags, max_tokens: builtins.int) -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def split_simple(pattern: builtins.str, string: builtins.str, compile_options: RegexCompileFlags, match_options: RegexMatchFlags) -> typing.Sequence[builtins.str]: ...
+
+ def unref(self) -> None: ...
+
+
+class SList():
+ data: builtins.object
+ next: typing.Sequence[builtins.object]
+
+
+class Scanner():
+ buffer: builtins.str
+ config: ScannerConfig
+ input_fd: builtins.int
+ input_name: builtins.str
+ line: builtins.int
+ max_parse_errors: builtins.int
+ msg_handler: ScannerMsgFunc
+ next_line: builtins.int
+ next_position: builtins.int
+ next_token: TokenType
+ next_value: TokenValue
+ parse_errors: builtins.int
+ position: builtins.int
+ qdata: Data
+ scope_id: builtins.int
+ symbol_table: typing.Mapping[builtins.object, builtins.object]
+ text: builtins.str
+ text_end: builtins.str
+ token: TokenType
+ user_data: builtins.object
+ value: TokenValue
+
+ def cur_line(self) -> builtins.int: ...
+
+ def cur_position(self) -> builtins.int: ...
+
+ def cur_token(self) -> TokenType: ...
+
+ def destroy(self) -> None: ...
+
+ def eof(self) -> builtins.bool: ...
+
+ def get_next_token(self) -> TokenType: ...
+
+ def input_file(self, input_fd: builtins.int) -> None: ...
+
+ def input_text(self, text: builtins.str, text_len: builtins.int) -> None: ...
+
+ def lookup_symbol(self, symbol: builtins.str) -> typing.Optional[builtins.object]: ...
+
+ def peek_next_token(self) -> TokenType: ...
+
+ def scope_add_symbol(self, scope_id: builtins.int, symbol: builtins.str, value: typing.Optional[builtins.object]) -> None: ...
+
+ def scope_lookup_symbol(self, scope_id: builtins.int, symbol: builtins.str) -> typing.Optional[builtins.object]: ...
+
+ def scope_remove_symbol(self, scope_id: builtins.int, symbol: builtins.str) -> None: ...
+
+ def set_scope(self, scope_id: builtins.int) -> builtins.int: ...
+
+ def sync_file_offset(self) -> None: ...
+
+ def unexp_token(self, expected_token: TokenType, identifier_spec: builtins.str, symbol_spec: builtins.str, symbol_name: builtins.str, message: builtins.str, is_error: builtins.int) -> None: ...
+
+
+class ScannerConfig():
+ case_sensitive: builtins.int
+ char_2_token: builtins.int
+ cpair_comment_single: builtins.str
+ cset_identifier_first: builtins.str
+ cset_identifier_nth: builtins.str
+ cset_skip_characters: builtins.str
+ identifier_2_string: builtins.int
+ int_2_float: builtins.int
+ numbers_2_int: builtins.int
+ padding_dummy: builtins.int
+ scan_binary: builtins.int
+ scan_comment_multi: builtins.int
+ scan_float: builtins.int
+ scan_hex: builtins.int
+ scan_hex_dollar: builtins.int
+ scan_identifier: builtins.int
+ scan_identifier_1char: builtins.int
+ scan_identifier_NULL: builtins.int
+ scan_octal: builtins.int
+ scan_string_dq: builtins.int
+ scan_string_sq: builtins.int
+ scan_symbols: builtins.int
+ scope_0_fallback: builtins.int
+ skip_comment_multi: builtins.int
+ skip_comment_single: builtins.int
+ store_int64: builtins.int
+ symbol_2_token: builtins.int
+
+
+class Sequence():
+
+ def append(self, data: typing.Optional[builtins.object]) -> SequenceIter: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def get(iter: SequenceIter) -> typing.Optional[builtins.object]: ...
+
+ def get_begin_iter(self) -> SequenceIter: ...
+
+ def get_end_iter(self) -> SequenceIter: ...
+
+ def get_iter_at_pos(self, pos: builtins.int) -> SequenceIter: ...
+
+ def get_length(self) -> builtins.int: ...
+
+ @staticmethod
+ def insert_before(iter: SequenceIter, data: typing.Optional[builtins.object]) -> SequenceIter: ...
+
+ def is_empty(self) -> builtins.bool: ...
+
+ @staticmethod
+ def move(src: SequenceIter, dest: SequenceIter) -> None: ...
+
+ @staticmethod
+ def move_range(dest: SequenceIter, begin: SequenceIter, end: SequenceIter) -> None: ...
+
+ def prepend(self, data: typing.Optional[builtins.object]) -> SequenceIter: ...
+
+ @staticmethod
+ def range_get_midpoint(begin: SequenceIter, end: SequenceIter) -> SequenceIter: ...
+
+ @staticmethod
+ def remove(iter: SequenceIter) -> None: ...
+
+ @staticmethod
+ def remove_range(begin: SequenceIter, end: SequenceIter) -> None: ...
+
+ @staticmethod
+ def set(iter: SequenceIter, data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def swap(a: SequenceIter, b: SequenceIter) -> None: ...
+
+
+class SequenceIter():
+
+ def compare(self, b: SequenceIter) -> builtins.int: ...
+
+ def get_position(self) -> builtins.int: ...
+
+ def get_sequence(self) -> Sequence: ...
+
+ def is_begin(self) -> builtins.bool: ...
+
+ def is_end(self) -> builtins.bool: ...
+
+ def move(self, delta: builtins.int) -> SequenceIter: ...
+
+ def next(self) -> SequenceIter: ...
+
+ def prev(self) -> SequenceIter: ...
+
+
+class Source():
+ callback_data: builtins.object
+ callback_funcs: SourceCallbackFuncs
+ context: MainContext
+ flags: builtins.int
+ name: builtins.str
+ next: Source
+ poll_fds: typing.Sequence[builtins.object]
+ prev: Source
+ ref_count: builtins.int
+ source_funcs: SourceFuncs
+ source_id: builtins.int
+
+ def add_child_source(self, child_source: Source) -> None: ...
+
+ def add_poll(self, fd: PollFD) -> None: ...
+
+ def add_unix_fd(self, fd: builtins.int, events: IOCondition) -> builtins.object: ...
+
+ def attach(self, context: typing.Optional[MainContext]) -> builtins.int: ...
+
+ def destroy(self) -> None: ...
+
+ def get_can_recurse(self) -> builtins.bool: ...
+
+ def get_context(self) -> typing.Optional[MainContext]: ...
+
+ def get_current_time(self, timeval: TimeVal) -> None: ...
+
+ def get_id(self) -> builtins.int: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_priority(self) -> builtins.int: ...
+
+ def get_ready_time(self) -> builtins.int: ...
+
+ def get_time(self) -> builtins.int: ...
+
+ def is_destroyed(self) -> builtins.bool: ...
+
+ def modify_unix_fd(self, tag: builtins.object, new_events: IOCondition) -> None: ...
+
+ @staticmethod
+ def new(source_funcs: SourceFuncs, struct_size: builtins.int) -> Source: ...
+
+ def query_unix_fd(self, tag: builtins.object) -> IOCondition: ...
+
+ def ref(self) -> Source: ...
+
+ @staticmethod
+ def remove(tag: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def remove_by_funcs_user_data(funcs: SourceFuncs, user_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def remove_by_user_data(user_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def remove_child_source(self, child_source: Source) -> None: ...
+
+ def remove_poll(self, fd: PollFD) -> None: ...
+
+ def remove_unix_fd(self, tag: builtins.object) -> None: ...
+
+ def set_callback(self, func: SourceFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_callback_indirect(self, callback_data: typing.Optional[builtins.object], callback_funcs: SourceCallbackFuncs) -> None: ...
+
+ def set_can_recurse(self, can_recurse: builtins.bool) -> None: ...
+
+ def set_funcs(self, funcs: SourceFuncs) -> None: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+ @staticmethod
+ def set_name_by_id(tag: builtins.int, name: builtins.str) -> None: ...
+
+ def set_priority(self, priority: builtins.int) -> None: ...
+
+ def set_ready_time(self, ready_time: builtins.int) -> None: ...
+
+ def unref(self) -> None: ...
+
+
+class SourceCallbackFuncs():
+ get: builtins.object
+ ref: builtins.object
+ unref: builtins.object
+
+
+class SourceFuncs():
+ check: builtins.object
+ closure_callback: SourceFunc
+ closure_marshal: SourceDummyMarshal
+ dispatch: builtins.object
+ finalize: builtins.object
+ prepare: builtins.object
+
+
+class StatBuf():
+ ...
+
+
+class String():
+ allocated_len: builtins.int
+ len: builtins.int
+ str: builtins.str
+
+ def append(self, val: builtins.str) -> String: ...
+
+ def append_c(self, c: builtins.int) -> String: ...
+
+ def append_len(self, val: builtins.str, len: builtins.int) -> String: ...
+
+ def append_unichar(self, wc: builtins.str) -> String: ...
+
+ def append_uri_escaped(self, unescaped: builtins.str, reserved_chars_allowed: builtins.str, allow_utf8: builtins.bool) -> String: ...
+
+ def ascii_down(self) -> String: ...
+
+ def ascii_up(self) -> String: ...
+
+ def assign(self, rval: builtins.str) -> String: ...
+
+ def down(self) -> String: ...
+
+ def equal(self, v2: String) -> builtins.bool: ...
+
+ def erase(self, pos: builtins.int, len: builtins.int) -> String: ...
+
+ def free(self, free_segment: builtins.bool) -> typing.Optional[builtins.str]: ...
+
+ def free_to_bytes(self) -> Bytes: ...
+
+ def hash(self) -> builtins.int: ...
+
+ def insert(self, pos: builtins.int, val: builtins.str) -> String: ...
+
+ def insert_c(self, pos: builtins.int, c: builtins.int) -> String: ...
+
+ def insert_len(self, pos: builtins.int, val: builtins.str, len: builtins.int) -> String: ...
+
+ def insert_unichar(self, pos: builtins.int, wc: builtins.str) -> String: ...
+
+ def overwrite(self, pos: builtins.int, val: builtins.str) -> String: ...
+
+ def overwrite_len(self, pos: builtins.int, val: builtins.str, len: builtins.int) -> String: ...
+
+ def prepend(self, val: builtins.str) -> String: ...
+
+ def prepend_c(self, c: builtins.int) -> String: ...
+
+ def prepend_len(self, val: builtins.str, len: builtins.int) -> String: ...
+
+ def prepend_unichar(self, wc: builtins.str) -> String: ...
+
+ def set_size(self, len: builtins.int) -> String: ...
+
+ def truncate(self, len: builtins.int) -> String: ...
+
+ def up(self) -> String: ...
+
+
+class StringChunk():
+
+ def clear(self) -> None: ...
+
+ def free(self) -> None: ...
+
+ def insert(self, string: builtins.str) -> builtins.str: ...
+
+ def insert_const(self, string: builtins.str) -> builtins.str: ...
+
+ def insert_len(self, string: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+class TestCase():
+ ...
+
+
+class TestConfig():
+ test_initialized: builtins.bool
+ test_perf: builtins.bool
+ test_quick: builtins.bool
+ test_quiet: builtins.bool
+ test_undefined: builtins.bool
+ test_verbose: builtins.bool
+
+
+class TestLogBuffer():
+ data: String
+ msgs: typing.Sequence[builtins.object]
+
+ def free(self) -> None: ...
+
+ def push(self, n_bytes: builtins.int, bytes: builtins.int) -> None: ...
+
+
+class TestLogMsg():
+ log_type: TestLogType
+ n_nums: builtins.int
+ n_strings: builtins.int
+ nums: builtins.object
+ strings: builtins.str
+
+ def free(self) -> None: ...
+
+
+class TestSuite():
+
+ def add(self, test_case: TestCase) -> None: ...
+
+ def add_suite(self, nestedsuite: TestSuite) -> None: ...
+
+
+class Thread():
+
+ @staticmethod
+ def error_quark() -> builtins.int: ...
+
+ @staticmethod
+ def exit(retval: typing.Optional[builtins.object]) -> None: ...
+
+ def join(self) -> typing.Optional[builtins.object]: ...
+
+ def ref(self) -> Thread: ...
+
+ @staticmethod
+ def self() -> Thread: ...
+
+ def unref(self) -> None: ...
+
+ @staticmethod
+ def yield_() -> None: ...
+
+
+class ThreadPool():
+ exclusive: builtins.bool
+ func: Func
+ user_data: builtins.object
+
+ def free(self, immediate: builtins.bool, wait_: builtins.bool) -> None: ...
+
+ @staticmethod
+ def get_max_idle_time() -> builtins.int: ...
+
+ def get_max_threads(self) -> builtins.int: ...
+
+ @staticmethod
+ def get_max_unused_threads() -> builtins.int: ...
+
+ def get_num_threads(self) -> builtins.int: ...
+
+ @staticmethod
+ def get_num_unused_threads() -> builtins.int: ...
+
+ def move_to_front(self, data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def push(self, data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def set_max_idle_time(interval: builtins.int) -> None: ...
+
+ def set_max_threads(self, max_threads: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def set_max_unused_threads(max_threads: builtins.int) -> None: ...
+
+ @staticmethod
+ def stop_unused_threads() -> None: ...
+
+ def unprocessed(self) -> builtins.int: ...
+
+
+class TimeVal():
+ tv_sec: builtins.int
+ tv_usec: builtins.int
+
+ def add(self, microseconds: builtins.int) -> None: ...
+
+ @staticmethod
+ def from_iso8601(iso_date: builtins.str) -> typing.Tuple[builtins.bool, TimeVal]: ...
+
+ def to_iso8601(self) -> typing.Optional[builtins.str]: ...
+
+
+class TimeZone():
+
+ def adjust_time(self, type: TimeType, time_: builtins.int) -> builtins.int: ...
+
+ def find_interval(self, type: TimeType, time_: builtins.int) -> builtins.int: ...
+
+ def get_abbreviation(self, interval: builtins.int) -> builtins.str: ...
+
+ def get_identifier(self) -> builtins.str: ...
+
+ def get_offset(self, interval: builtins.int) -> builtins.int: ...
+
+ def is_dst(self, interval: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def new(identifier: typing.Optional[builtins.str]) -> TimeZone: ...
+
+ @staticmethod
+ def new_local() -> TimeZone: ...
+
+ @staticmethod
+ def new_offset(seconds: builtins.int) -> TimeZone: ...
+
+ @staticmethod
+ def new_utc() -> TimeZone: ...
+
+ def ref(self) -> TimeZone: ...
+
+ def unref(self) -> None: ...
+
+
+class Timeout():
+
+ def get_current_time(self, timeval: TimeVal) -> None: ...
+
+ def set_callback(self, func: SourceFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+
+class Timer():
+
+ def continue_(self) -> None: ...
+
+ def destroy(self) -> None: ...
+
+ def elapsed(self, microseconds: builtins.int) -> builtins.float: ...
+
+ def is_active(self) -> builtins.bool: ...
+
+ def reset(self) -> None: ...
+
+ def start(self) -> None: ...
+
+ def stop(self) -> None: ...
+
+
+class TrashStack():
+ next: TrashStack
+
+ @staticmethod
+ def height(stack_p: TrashStack) -> builtins.int: ...
+
+ @staticmethod
+ def peek(stack_p: TrashStack) -> typing.Optional[builtins.object]: ...
+
+ @staticmethod
+ def pop(stack_p: TrashStack) -> typing.Optional[builtins.object]: ...
+
+ @staticmethod
+ def push(stack_p: TrashStack, data_p: builtins.object) -> None: ...
+
+
+class Tree():
+
+ def destroy(self) -> None: ...
+
+ def height(self) -> builtins.int: ...
+
+ def insert(self, key: typing.Optional[builtins.object], value: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup(self, key: typing.Optional[builtins.object]) -> typing.Optional[builtins.object]: ...
+
+ def lookup_extended(self, lookup_key: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.object, builtins.object]: ...
+
+ def nnodes(self) -> builtins.int: ...
+
+ def remove(self, key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def replace(self, key: typing.Optional[builtins.object], value: typing.Optional[builtins.object]) -> None: ...
+
+ def steal(self, key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def unref(self) -> None: ...
+
+
+class Variant():
+ def __new__(cls, format_string: str, value: object) -> Variant: ...
+
+ def byteswap(self) -> Variant: ...
+
+ def check_format_string(self, format_string: builtins.str, copy_only: builtins.bool) -> builtins.bool: ...
+
+ def classify(self) -> VariantClass: ...
+
+ def compare(self, two: Variant) -> builtins.int: ...
+
+ def dup_bytestring(self) -> builtins.bytes: ...
+
+ def dup_bytestring_array(self) -> typing.Sequence[builtins.str]: ...
+
+ def dup_objv(self) -> typing.Sequence[builtins.str]: ...
+
+ def dup_string(self) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def dup_strv(self) -> typing.Sequence[builtins.str]: ...
+
+ def equal(self, two: Variant) -> builtins.bool: ...
+
+ def get_boolean(self) -> builtins.bool: ...
+
+ def get_byte(self) -> builtins.int: ...
+
+ def get_bytestring(self) -> builtins.bytes: ...
+
+ def get_bytestring_array(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_child_value(self, index_: builtins.int) -> Variant: ...
+
+ def get_data(self) -> typing.Optional[builtins.object]: ...
+
+ def get_data_as_bytes(self) -> Bytes: ...
+
+ def get_double(self) -> builtins.float: ...
+
+ def get_handle(self) -> builtins.int: ...
+
+ def get_int16(self) -> builtins.int: ...
+
+ def get_int32(self) -> builtins.int: ...
+
+ def get_int64(self) -> builtins.int: ...
+
+ def get_maybe(self) -> typing.Optional[Variant]: ...
+
+ def get_normal_form(self) -> Variant: ...
+
+ def get_objv(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_string(self) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def get_strv(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_type(self) -> VariantType: ...
+
+ def get_type_string(self) -> builtins.str: ...
+
+ def get_uint16(self) -> builtins.int: ...
+
+ def get_uint32(self) -> builtins.int: ...
+
+ def get_uint64(self) -> builtins.int: ...
+
+ def get_variant(self) -> Variant: ...
+
+ def hash(self) -> builtins.int: ...
+
+ def is_container(self) -> builtins.bool: ...
+
+ def is_floating(self) -> builtins.bool: ...
+
+ def is_normal_form(self) -> builtins.bool: ...
+
+ @staticmethod
+ def is_object_path(string: builtins.str) -> builtins.bool: ...
+
+ def is_of_type(self, type: VariantType) -> builtins.bool: ...
+
+ @staticmethod
+ def is_signature(string: builtins.str) -> builtins.bool: ...
+
+ def lookup_value(self, key: builtins.str, expected_type: typing.Optional[VariantType]) -> Variant: ...
+
+ def n_children(self) -> builtins.int: ...
+
+ @staticmethod
+ def new_array(child_type: typing.Optional[VariantType], children: typing.Optional[typing.Sequence[Variant]]) -> Variant: ...
+
+ @staticmethod
+ def new_boolean(value: builtins.bool) -> Variant: ...
+
+ @staticmethod
+ def new_byte(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_bytestring(string: builtins.bytes) -> Variant: ...
+
+ @staticmethod
+ def new_bytestring_array(strv: typing.Sequence[builtins.str]) -> Variant: ...
+
+ @staticmethod
+ def new_dict_entry(key: Variant, value: Variant) -> Variant: ...
+
+ @staticmethod
+ def new_double(value: builtins.float) -> Variant: ...
+
+ @staticmethod
+ def new_fixed_array(element_type: VariantType, elements: typing.Optional[builtins.object], n_elements: builtins.int, element_size: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_from_bytes(type: VariantType, bytes: Bytes, trusted: builtins.bool) -> Variant: ...
+
+ @staticmethod
+ def new_from_data(type: VariantType, data: builtins.bytes, trusted: builtins.bool, notify: DestroyNotify, user_data: typing.Optional[builtins.object]) -> Variant: ...
+
+ @staticmethod
+ def new_handle(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_int16(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_int32(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_int64(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_maybe(child_type: typing.Optional[VariantType], child: typing.Optional[Variant]) -> Variant: ...
+
+ @staticmethod
+ def new_object_path(object_path: builtins.str) -> Variant: ...
+
+ @staticmethod
+ def new_objv(strv: typing.Sequence[builtins.str]) -> Variant: ...
+
+ @staticmethod
+ def new_signature(signature: builtins.str) -> Variant: ...
+
+ @staticmethod
+ def new_string(string: builtins.str) -> Variant: ...
+
+ @staticmethod
+ def new_strv(strv: typing.Sequence[builtins.str]) -> Variant: ...
+
+ @staticmethod
+ def new_tuple(children: typing.Sequence[Variant]) -> Variant: ...
+
+ @staticmethod
+ def new_uint16(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_uint32(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_uint64(value: builtins.int) -> Variant: ...
+
+ @staticmethod
+ def new_variant(value: Variant) -> Variant: ...
+
+ @staticmethod
+ def parse(type: typing.Optional[VariantType], text: builtins.str, limit: typing.Optional[builtins.str], endptr: typing.Optional[builtins.str]) -> Variant: ...
+
+ @staticmethod
+ def parse_error_print_context(error: Error, source_str: builtins.str) -> builtins.str: ...
+
+ @staticmethod
+ def parse_error_quark() -> builtins.int: ...
+
+ @staticmethod
+ def parser_get_error_quark() -> builtins.int: ...
+
+ def print_(self, type_annotate: builtins.bool) -> builtins.str: ...
+
+ def ref(self) -> Variant: ...
+
+ def ref_sink(self) -> Variant: ...
+
+ def store(self, data: builtins.object) -> None: ...
+
+ def take_ref(self) -> Variant: ...
+
+ def unpack(self) -> typing.Any: ...
+
+ def unref(self) -> None: ...
+
+
+class VariantBuilder():
+
+ def add_value(self, value: Variant) -> None: ...
+
+ def close(self) -> None: ...
+
+ def end(self) -> Variant: ...
+
+ @staticmethod
+ def new(type: VariantType) -> VariantBuilder: ...
+
+ def open(self, type: VariantType) -> None: ...
+
+ def ref(self) -> VariantBuilder: ...
+
+ def unref(self) -> None: ...
+
+
+class VariantDict():
+
+ def clear(self) -> None: ...
+
+ def contains(self, key: builtins.str) -> builtins.bool: ...
+
+ def end(self) -> Variant: ...
+
+ def insert_value(self, key: builtins.str, value: Variant) -> None: ...
+
+ def lookup_value(self, key: builtins.str, expected_type: typing.Optional[VariantType]) -> Variant: ...
+
+ @staticmethod
+ def new(from_asv: typing.Optional[Variant]) -> VariantDict: ...
+
+ def ref(self) -> VariantDict: ...
+
+ def remove(self, key: builtins.str) -> builtins.bool: ...
+
+ def unref(self) -> None: ...
+
+
+class VariantType():
+
+ @staticmethod
+ def checked_(arg0: builtins.str) -> VariantType: ...
+
+ def copy(self) -> VariantType: ...
+
+ def dup_string(self) -> builtins.str: ...
+
+ def element(self) -> VariantType: ...
+
+ def equal(self, type2: VariantType) -> builtins.bool: ...
+
+ def first(self) -> VariantType: ...
+
+ def free(self) -> None: ...
+
+ def get_string_length(self) -> builtins.int: ...
+
+ def hash(self) -> builtins.int: ...
+
+ def is_array(self) -> builtins.bool: ...
+
+ def is_basic(self) -> builtins.bool: ...
+
+ def is_container(self) -> builtins.bool: ...
+
+ def is_definite(self) -> builtins.bool: ...
+
+ def is_dict_entry(self) -> builtins.bool: ...
+
+ def is_maybe(self) -> builtins.bool: ...
+
+ def is_subtype_of(self, supertype: VariantType) -> builtins.bool: ...
+
+ def is_tuple(self) -> builtins.bool: ...
+
+ def is_variant(self) -> builtins.bool: ...
+
+ def key(self) -> VariantType: ...
+
+ def n_items(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(type_string: builtins.str) -> VariantType: ...
+
+ @staticmethod
+ def new_array(element: VariantType) -> VariantType: ...
+
+ @staticmethod
+ def new_dict_entry(key: VariantType, value: VariantType) -> VariantType: ...
+
+ @staticmethod
+ def new_maybe(element: VariantType) -> VariantType: ...
+
+ @staticmethod
+ def new_tuple(items: typing.Sequence[VariantType]) -> VariantType: ...
+
+ def next(self) -> VariantType: ...
+
+ @staticmethod
+ def string_get_depth_(type_string: builtins.str) -> builtins.int: ...
+
+ @staticmethod
+ def string_is_valid(type_string: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def string_scan(string: builtins.str, limit: typing.Optional[builtins.str]) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+ def value(self) -> VariantType: ...
+
+
+class DoubleIEEE754():
+ v_double: builtins.float
+
+
+class FloatIEEE754():
+ v_float: builtins.float
+
+
+class Mutex():
+ i: typing.Sequence[builtins.int]
+ p: builtins.object
+
+ def clear(self) -> None: ...
+
+ def init(self) -> None: ...
+
+ def lock(self) -> None: ...
+
+ def trylock(self) -> builtins.bool: ...
+
+ def unlock(self) -> None: ...
+
+
+class TokenValue():
+ v_binary: builtins.int
+ v_char: builtins.int
+ v_comment: builtins.str
+ v_error: builtins.int
+ v_float: builtins.float
+ v_hex: builtins.int
+ v_identifier: builtins.str
+ v_int64: builtins.int
+ v_int: builtins.int
+ v_octal: builtins.int
+ v_string: builtins.str
+ v_symbol: builtins.object
+
+
+class AsciiType(Flags, builtins.int):
+ ALNUM = ... # type: AsciiType
+ ALPHA = ... # type: AsciiType
+ CNTRL = ... # type: AsciiType
+ DIGIT = ... # type: AsciiType
+ GRAPH = ... # type: AsciiType
+ LOWER = ... # type: AsciiType
+ PRINT = ... # type: AsciiType
+ PUNCT = ... # type: AsciiType
+ SPACE = ... # type: AsciiType
+ UPPER = ... # type: AsciiType
+ XDIGIT = ... # type: AsciiType
+
+
+class FileTest(Flags, builtins.int):
+ EXISTS = ... # type: FileTest
+ IS_DIR = ... # type: FileTest
+ IS_EXECUTABLE = ... # type: FileTest
+ IS_REGULAR = ... # type: FileTest
+ IS_SYMLINK = ... # type: FileTest
+
+
+class Flags(builtins.int):
+ def __and__(self: FlagsT, other: typing.Union[int, FlagsT]) -> FlagsT: ...
+ def __or__(self: FlagsT, other: typing.Union[int, FlagsT]) -> FlagsT: ...
+ def __xor__(self: FlagsT, other: typing.Union[int, FlagsT]) -> FlagsT: ...
+
+
+class FormatSizeFlags(Flags, builtins.int):
+ BITS = ... # type: FormatSizeFlags
+ DEFAULT = ... # type: FormatSizeFlags
+ IEC_UNITS = ... # type: FormatSizeFlags
+ LONG_FORMAT = ... # type: FormatSizeFlags
+
+
+class HookFlagMask(Flags, builtins.int):
+ ACTIVE = ... # type: HookFlagMask
+ IN_CALL = ... # type: HookFlagMask
+ MASK = ... # type: HookFlagMask
+
+
+class IOCondition(GObject.GFlags, builtins.int):
+ ERR = ... # type: IOCondition
+ HUP = ... # type: IOCondition
+ IN = ... # type: IOCondition
+ NVAL = ... # type: IOCondition
+ OUT = ... # type: IOCondition
+ PRI = ... # type: IOCondition
+
+
+class IOFlags(Flags, builtins.int):
+ APPEND = ... # type: IOFlags
+ GET_MASK = ... # type: IOFlags
+ IS_READABLE = ... # type: IOFlags
+ IS_SEEKABLE = ... # type: IOFlags
+ IS_WRITABLE = ... # type: IOFlags
+ IS_WRITEABLE = ... # type: IOFlags
+ MASK = ... # type: IOFlags
+ NONBLOCK = ... # type: IOFlags
+ SET_MASK = ... # type: IOFlags
+
+
+class KeyFileFlags(Flags, builtins.int):
+ KEEP_COMMENTS = ... # type: KeyFileFlags
+ KEEP_TRANSLATIONS = ... # type: KeyFileFlags
+ NONE = ... # type: KeyFileFlags
+
+
+class LogLevelFlags(Flags, builtins.int):
+ FLAG_FATAL = ... # type: LogLevelFlags
+ FLAG_RECURSION = ... # type: LogLevelFlags
+ LEVEL_CRITICAL = ... # type: LogLevelFlags
+ LEVEL_DEBUG = ... # type: LogLevelFlags
+ LEVEL_ERROR = ... # type: LogLevelFlags
+ LEVEL_INFO = ... # type: LogLevelFlags
+ LEVEL_MASK = ... # type: LogLevelFlags
+ LEVEL_MESSAGE = ... # type: LogLevelFlags
+ LEVEL_WARNING = ... # type: LogLevelFlags
+
+
+class MarkupCollectType(Flags, builtins.int):
+ BOOLEAN = ... # type: MarkupCollectType
+ INVALID = ... # type: MarkupCollectType
+ OPTIONAL = ... # type: MarkupCollectType
+ STRDUP = ... # type: MarkupCollectType
+ STRING = ... # type: MarkupCollectType
+ TRISTATE = ... # type: MarkupCollectType
+
+
+class MarkupParseFlags(Flags, builtins.int):
+ DO_NOT_USE_THIS_UNSUPPORTED_FLAG = ... # type: MarkupParseFlags
+ IGNORE_QUALIFIED = ... # type: MarkupParseFlags
+ PREFIX_ERROR_POSITION = ... # type: MarkupParseFlags
+ TREAT_CDATA_AS_TEXT = ... # type: MarkupParseFlags
+
+
+class OptionFlags(Flags, builtins.int):
+ FILENAME = ... # type: OptionFlags
+ HIDDEN = ... # type: OptionFlags
+ IN_MAIN = ... # type: OptionFlags
+ NOALIAS = ... # type: OptionFlags
+ NONE = ... # type: OptionFlags
+ NO_ARG = ... # type: OptionFlags
+ OPTIONAL_ARG = ... # type: OptionFlags
+ REVERSE = ... # type: OptionFlags
+
+
+class RegexCompileFlags(Flags, builtins.int):
+ ANCHORED = ... # type: RegexCompileFlags
+ BSR_ANYCRLF = ... # type: RegexCompileFlags
+ CASELESS = ... # type: RegexCompileFlags
+ DOLLAR_ENDONLY = ... # type: RegexCompileFlags
+ DOTALL = ... # type: RegexCompileFlags
+ DUPNAMES = ... # type: RegexCompileFlags
+ EXTENDED = ... # type: RegexCompileFlags
+ FIRSTLINE = ... # type: RegexCompileFlags
+ JAVASCRIPT_COMPAT = ... # type: RegexCompileFlags
+ MULTILINE = ... # type: RegexCompileFlags
+ NEWLINE_ANYCRLF = ... # type: RegexCompileFlags
+ NEWLINE_CR = ... # type: RegexCompileFlags
+ NEWLINE_CRLF = ... # type: RegexCompileFlags
+ NEWLINE_LF = ... # type: RegexCompileFlags
+ NO_AUTO_CAPTURE = ... # type: RegexCompileFlags
+ OPTIMIZE = ... # type: RegexCompileFlags
+ RAW = ... # type: RegexCompileFlags
+ UNGREEDY = ... # type: RegexCompileFlags
+
+
+class RegexMatchFlags(Flags, builtins.int):
+ ANCHORED = ... # type: RegexMatchFlags
+ BSR_ANY = ... # type: RegexMatchFlags
+ BSR_ANYCRLF = ... # type: RegexMatchFlags
+ NEWLINE_ANY = ... # type: RegexMatchFlags
+ NEWLINE_ANYCRLF = ... # type: RegexMatchFlags
+ NEWLINE_CR = ... # type: RegexMatchFlags
+ NEWLINE_CRLF = ... # type: RegexMatchFlags
+ NEWLINE_LF = ... # type: RegexMatchFlags
+ NOTBOL = ... # type: RegexMatchFlags
+ NOTEMPTY = ... # type: RegexMatchFlags
+ NOTEMPTY_ATSTART = ... # type: RegexMatchFlags
+ NOTEOL = ... # type: RegexMatchFlags
+ PARTIAL = ... # type: RegexMatchFlags
+ PARTIAL_HARD = ... # type: RegexMatchFlags
+ PARTIAL_SOFT = ... # type: RegexMatchFlags
+
+
+class SpawnFlags(Flags, builtins.int):
+ CHILD_INHERITS_STDIN = ... # type: SpawnFlags
+ CLOEXEC_PIPES = ... # type: SpawnFlags
+ DEFAULT = ... # type: SpawnFlags
+ DO_NOT_REAP_CHILD = ... # type: SpawnFlags
+ FILE_AND_ARGV_ZERO = ... # type: SpawnFlags
+ LEAVE_DESCRIPTORS_OPEN = ... # type: SpawnFlags
+ SEARCH_PATH = ... # type: SpawnFlags
+ SEARCH_PATH_FROM_ENVP = ... # type: SpawnFlags
+ STDERR_TO_DEV_NULL = ... # type: SpawnFlags
+ STDOUT_TO_DEV_NULL = ... # type: SpawnFlags
+
+
+class TestSubprocessFlags(Flags, builtins.int):
+ STDERR = ... # type: TestSubprocessFlags
+ STDIN = ... # type: TestSubprocessFlags
+ STDOUT = ... # type: TestSubprocessFlags
+
+
+class TestTrapFlags(Flags, builtins.int):
+ INHERIT_STDIN = ... # type: TestTrapFlags
+ SILENCE_STDERR = ... # type: TestTrapFlags
+ SILENCE_STDOUT = ... # type: TestTrapFlags
+
+
+class TraverseFlags(Flags, builtins.int):
+ ALL = ... # type: TraverseFlags
+ LEAFS = ... # type: TraverseFlags
+ LEAVES = ... # type: TraverseFlags
+ MASK = ... # type: TraverseFlags
+ NON_LEAFS = ... # type: TraverseFlags
+ NON_LEAVES = ... # type: TraverseFlags
+
+
+class BookmarkFileError(Enum, builtins.int):
+ APP_NOT_REGISTERED = ... # type: BookmarkFileError
+ FILE_NOT_FOUND = ... # type: BookmarkFileError
+ INVALID_URI = ... # type: BookmarkFileError
+ INVALID_VALUE = ... # type: BookmarkFileError
+ READ = ... # type: BookmarkFileError
+ UNKNOWN_ENCODING = ... # type: BookmarkFileError
+ URI_NOT_FOUND = ... # type: BookmarkFileError
+ WRITE = ... # type: BookmarkFileError
+
+
+class ChecksumType(Enum, builtins.int):
+ MD5 = ... # type: ChecksumType
+ SHA1 = ... # type: ChecksumType
+ SHA256 = ... # type: ChecksumType
+ SHA384 = ... # type: ChecksumType
+ SHA512 = ... # type: ChecksumType
+
+
+class ConvertError(Enum, builtins.int):
+ BAD_URI = ... # type: ConvertError
+ EMBEDDED_NUL = ... # type: ConvertError
+ FAILED = ... # type: ConvertError
+ ILLEGAL_SEQUENCE = ... # type: ConvertError
+ NOT_ABSOLUTE_PATH = ... # type: ConvertError
+ NO_CONVERSION = ... # type: ConvertError
+ NO_MEMORY = ... # type: ConvertError
+ PARTIAL_INPUT = ... # type: ConvertError
+
+
+class DateDMY(Enum, builtins.int):
+ DAY = ... # type: DateDMY
+ MONTH = ... # type: DateDMY
+ YEAR = ... # type: DateDMY
+
+
+class DateMonth(Enum, builtins.int):
+ APRIL = ... # type: DateMonth
+ AUGUST = ... # type: DateMonth
+ BAD_MONTH = ... # type: DateMonth
+ DECEMBER = ... # type: DateMonth
+ FEBRUARY = ... # type: DateMonth
+ JANUARY = ... # type: DateMonth
+ JULY = ... # type: DateMonth
+ JUNE = ... # type: DateMonth
+ MARCH = ... # type: DateMonth
+ MAY = ... # type: DateMonth
+ NOVEMBER = ... # type: DateMonth
+ OCTOBER = ... # type: DateMonth
+ SEPTEMBER = ... # type: DateMonth
+
+
+class DateWeekday(Enum, builtins.int):
+ BAD_WEEKDAY = ... # type: DateWeekday
+ FRIDAY = ... # type: DateWeekday
+ MONDAY = ... # type: DateWeekday
+ SATURDAY = ... # type: DateWeekday
+ SUNDAY = ... # type: DateWeekday
+ THURSDAY = ... # type: DateWeekday
+ TUESDAY = ... # type: DateWeekday
+ WEDNESDAY = ... # type: DateWeekday
+
+
+class Enum(builtins.int):
+ ...
+
+
+class ErrorType(Enum, builtins.int):
+ DIGIT_RADIX = ... # type: ErrorType
+ FLOAT_MALFORMED = ... # type: ErrorType
+ FLOAT_RADIX = ... # type: ErrorType
+ NON_DIGIT_IN_CONST = ... # type: ErrorType
+ UNEXP_EOF = ... # type: ErrorType
+ UNEXP_EOF_IN_COMMENT = ... # type: ErrorType
+ UNEXP_EOF_IN_STRING = ... # type: ErrorType
+ UNKNOWN = ... # type: ErrorType
+
+
+class FileError(Enum, builtins.int):
+ ACCES = ... # type: FileError
+ AGAIN = ... # type: FileError
+ BADF = ... # type: FileError
+ EXIST = ... # type: FileError
+ FAILED = ... # type: FileError
+ FAULT = ... # type: FileError
+ INTR = ... # type: FileError
+ INVAL = ... # type: FileError
+ IO = ... # type: FileError
+ ISDIR = ... # type: FileError
+ LOOP = ... # type: FileError
+ MFILE = ... # type: FileError
+ NAMETOOLONG = ... # type: FileError
+ NFILE = ... # type: FileError
+ NODEV = ... # type: FileError
+ NOENT = ... # type: FileError
+ NOMEM = ... # type: FileError
+ NOSPC = ... # type: FileError
+ NOSYS = ... # type: FileError
+ NOTDIR = ... # type: FileError
+ NXIO = ... # type: FileError
+ PERM = ... # type: FileError
+ PIPE = ... # type: FileError
+ ROFS = ... # type: FileError
+ TXTBSY = ... # type: FileError
+
+
+class IOChannelError(Enum, builtins.int):
+ FAILED = ... # type: IOChannelError
+ FBIG = ... # type: IOChannelError
+ INVAL = ... # type: IOChannelError
+ IO = ... # type: IOChannelError
+ ISDIR = ... # type: IOChannelError
+ NOSPC = ... # type: IOChannelError
+ NXIO = ... # type: IOChannelError
+ OVERFLOW = ... # type: IOChannelError
+ PIPE = ... # type: IOChannelError
+
+
+class IOError(Enum, builtins.int):
+ AGAIN = ... # type: IOError
+ INVAL = ... # type: IOError
+ NONE = ... # type: IOError
+ UNKNOWN = ... # type: IOError
+
+
+class IOStatus(Enum, builtins.int):
+ AGAIN = ... # type: IOStatus
+ EOF = ... # type: IOStatus
+ ERROR = ... # type: IOStatus
+ NORMAL = ... # type: IOStatus
+
+
+class KeyFileError(Enum, builtins.int):
+ GROUP_NOT_FOUND = ... # type: KeyFileError
+ INVALID_VALUE = ... # type: KeyFileError
+ KEY_NOT_FOUND = ... # type: KeyFileError
+ NOT_FOUND = ... # type: KeyFileError
+ PARSE = ... # type: KeyFileError
+ UNKNOWN_ENCODING = ... # type: KeyFileError
+
+
+class LogWriterOutput(Enum, builtins.int):
+ HANDLED = ... # type: LogWriterOutput
+ UNHANDLED = ... # type: LogWriterOutput
+
+
+class MarkupError(Enum, builtins.int):
+ BAD_UTF8 = ... # type: MarkupError
+ EMPTY = ... # type: MarkupError
+ INVALID_CONTENT = ... # type: MarkupError
+ MISSING_ATTRIBUTE = ... # type: MarkupError
+ PARSE = ... # type: MarkupError
+ UNKNOWN_ATTRIBUTE = ... # type: MarkupError
+ UNKNOWN_ELEMENT = ... # type: MarkupError
+
+
+class NormalizeMode(Enum, builtins.int):
+ ALL = ... # type: NormalizeMode
+ ALL_COMPOSE = ... # type: NormalizeMode
+ DEFAULT = ... # type: NormalizeMode
+ DEFAULT_COMPOSE = ... # type: NormalizeMode
+ NFC = ... # type: NormalizeMode
+ NFD = ... # type: NormalizeMode
+ NFKC = ... # type: NormalizeMode
+ NFKD = ... # type: NormalizeMode
+
+
+class NumberParserError(Enum, builtins.int):
+ INVALID = ... # type: NumberParserError
+ OUT_OF_BOUNDS = ... # type: NumberParserError
+
+
+class OnceStatus(Enum, builtins.int):
+ NOTCALLED = ... # type: OnceStatus
+ PROGRESS = ... # type: OnceStatus
+ READY = ... # type: OnceStatus
+
+
+class OptionArg(Enum, builtins.int):
+ CALLBACK = ... # type: OptionArg
+ DOUBLE = ... # type: OptionArg
+ FILENAME = ... # type: OptionArg
+ FILENAME_ARRAY = ... # type: OptionArg
+ INT = ... # type: OptionArg
+ INT64 = ... # type: OptionArg
+ NONE = ... # type: OptionArg
+ STRING = ... # type: OptionArg
+ STRING_ARRAY = ... # type: OptionArg
+
+
+class OptionError(Enum, builtins.int):
+ BAD_VALUE = ... # type: OptionError
+ FAILED = ... # type: OptionError
+ UNKNOWN_OPTION = ... # type: OptionError
+
+
+class RegexError(Enum, builtins.int):
+ ASSERTION_EXPECTED = ... # type: RegexError
+ BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN = ... # type: RegexError
+ BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED = ... # type: RegexError
+ CHARACTER_VALUE_TOO_LARGE = ... # type: RegexError
+ COMPILE = ... # type: RegexError
+ DEFINE_REPETION = ... # type: RegexError
+ DUPLICATE_SUBPATTERN_NAME = ... # type: RegexError
+ EXPRESSION_TOO_LARGE = ... # type: RegexError
+ EXTRA_SUBPATTERN_NAME = ... # type: RegexError
+ HEX_CODE_TOO_LARGE = ... # type: RegexError
+ INCONSISTENT_NEWLINE_OPTIONS = ... # type: RegexError
+ INEXISTENT_SUBPATTERN_REFERENCE = ... # type: RegexError
+ INFINITE_LOOP = ... # type: RegexError
+ INTERNAL = ... # type: RegexError
+ INVALID_CONDITION = ... # type: RegexError
+ INVALID_CONTROL_CHAR = ... # type: RegexError
+ INVALID_DATA_CHARACTER = ... # type: RegexError
+ INVALID_ESCAPE_IN_CHARACTER_CLASS = ... # type: RegexError
+ INVALID_OCTAL_VALUE = ... # type: RegexError
+ INVALID_RELATIVE_REFERENCE = ... # type: RegexError
+ MALFORMED_CONDITION = ... # type: RegexError
+ MALFORMED_PROPERTY = ... # type: RegexError
+ MATCH = ... # type: RegexError
+ MEMORY_ERROR = ... # type: RegexError
+ MISSING_BACK_REFERENCE = ... # type: RegexError
+ MISSING_CONTROL_CHAR = ... # type: RegexError
+ MISSING_DIGIT = ... # type: RegexError
+ MISSING_NAME = ... # type: RegexError
+ MISSING_SUBPATTERN_NAME = ... # type: RegexError
+ MISSING_SUBPATTERN_NAME_TERMINATOR = ... # type: RegexError
+ NAME_TOO_LONG = ... # type: RegexError
+ NOTHING_TO_REPEAT = ... # type: RegexError
+ NOT_SUPPORTED_IN_CLASS = ... # type: RegexError
+ NUMBER_TOO_BIG = ... # type: RegexError
+ OPTIMIZE = ... # type: RegexError
+ POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED = ... # type: RegexError
+ POSIX_NAMED_CLASS_OUTSIDE_CLASS = ... # type: RegexError
+ QUANTIFIERS_OUT_OF_ORDER = ... # type: RegexError
+ QUANTIFIER_TOO_BIG = ... # type: RegexError
+ RANGE_OUT_OF_ORDER = ... # type: RegexError
+ REPLACE = ... # type: RegexError
+ SINGLE_BYTE_MATCH_IN_LOOKBEHIND = ... # type: RegexError
+ STRAY_BACKSLASH = ... # type: RegexError
+ SUBPATTERN_NAME_TOO_LONG = ... # type: RegexError
+ TOO_MANY_BRANCHES_IN_DEFINE = ... # type: RegexError
+ TOO_MANY_CONDITIONAL_BRANCHES = ... # type: RegexError
+ TOO_MANY_FORWARD_REFERENCES = ... # type: RegexError
+ TOO_MANY_SUBPATTERNS = ... # type: RegexError
+ UNKNOWN_BACKTRACKING_CONTROL_VERB = ... # type: RegexError
+ UNKNOWN_POSIX_CLASS_NAME = ... # type: RegexError
+ UNKNOWN_PROPERTY = ... # type: RegexError
+ UNMATCHED_PARENTHESIS = ... # type: RegexError
+ UNRECOGNIZED_CHARACTER = ... # type: RegexError
+ UNRECOGNIZED_ESCAPE = ... # type: RegexError
+ UNTERMINATED_CHARACTER_CLASS = ... # type: RegexError
+ UNTERMINATED_COMMENT = ... # type: RegexError
+ VARIABLE_LENGTH_LOOKBEHIND = ... # type: RegexError
+
+
+class SeekType(Enum, builtins.int):
+ CUR = ... # type: SeekType
+ END = ... # type: SeekType
+ SET = ... # type: SeekType
+
+
+class ShellError(Enum, builtins.int):
+ BAD_QUOTING = ... # type: ShellError
+ EMPTY_STRING = ... # type: ShellError
+ FAILED = ... # type: ShellError
+
+
+class SliceConfig(Enum, builtins.int):
+ ALWAYS_MALLOC = ... # type: SliceConfig
+ BYPASS_MAGAZINES = ... # type: SliceConfig
+ CHUNK_SIZES = ... # type: SliceConfig
+ COLOR_INCREMENT = ... # type: SliceConfig
+ CONTENTION_COUNTER = ... # type: SliceConfig
+ WORKING_SET_MSECS = ... # type: SliceConfig
+
+
+class SpawnError(Enum, builtins.int):
+ ACCES = ... # type: SpawnError
+ CHDIR = ... # type: SpawnError
+ FAILED = ... # type: SpawnError
+ FORK = ... # type: SpawnError
+ INVAL = ... # type: SpawnError
+ IO = ... # type: SpawnError
+ ISDIR = ... # type: SpawnError
+ LIBBAD = ... # type: SpawnError
+ LOOP = ... # type: SpawnError
+ MFILE = ... # type: SpawnError
+ NAMETOOLONG = ... # type: SpawnError
+ NFILE = ... # type: SpawnError
+ NOENT = ... # type: SpawnError
+ NOEXEC = ... # type: SpawnError
+ NOMEM = ... # type: SpawnError
+ NOTDIR = ... # type: SpawnError
+ PERM = ... # type: SpawnError
+ READ = ... # type: SpawnError
+ TOO_BIG = ... # type: SpawnError
+ TXTBUSY = ... # type: SpawnError
+ _2BIG = ... # type: SpawnError
+
+
+class TestFileType(Enum, builtins.int):
+ BUILT = ... # type: TestFileType
+ DIST = ... # type: TestFileType
+
+
+class TestLogType(Enum, builtins.int):
+ ERROR = ... # type: TestLogType
+ LIST_CASE = ... # type: TestLogType
+ MAX_RESULT = ... # type: TestLogType
+ MESSAGE = ... # type: TestLogType
+ MIN_RESULT = ... # type: TestLogType
+ NONE = ... # type: TestLogType
+ SKIP_CASE = ... # type: TestLogType
+ START_BINARY = ... # type: TestLogType
+ START_CASE = ... # type: TestLogType
+ START_SUITE = ... # type: TestLogType
+ STOP_CASE = ... # type: TestLogType
+ STOP_SUITE = ... # type: TestLogType
+
+
+class TestResult(Enum, builtins.int):
+ FAILURE = ... # type: TestResult
+ INCOMPLETE = ... # type: TestResult
+ SKIPPED = ... # type: TestResult
+ SUCCESS = ... # type: TestResult
+
+
+class ThreadError(Enum, builtins.int):
+ THREAD_ERROR_AGAIN = ... # type: ThreadError
+
+
+class TimeType(Enum, builtins.int):
+ DAYLIGHT = ... # type: TimeType
+ STANDARD = ... # type: TimeType
+ UNIVERSAL = ... # type: TimeType
+
+
+class TokenType(Enum, builtins.int):
+ BINARY = ... # type: TokenType
+ CHAR = ... # type: TokenType
+ COMMA = ... # type: TokenType
+ COMMENT_MULTI = ... # type: TokenType
+ COMMENT_SINGLE = ... # type: TokenType
+ EOF = ... # type: TokenType
+ EQUAL_SIGN = ... # type: TokenType
+ ERROR = ... # type: TokenType
+ FLOAT = ... # type: TokenType
+ HEX = ... # type: TokenType
+ IDENTIFIER = ... # type: TokenType
+ IDENTIFIER_NULL = ... # type: TokenType
+ INT = ... # type: TokenType
+ LEFT_BRACE = ... # type: TokenType
+ LEFT_CURLY = ... # type: TokenType
+ LEFT_PAREN = ... # type: TokenType
+ NONE = ... # type: TokenType
+ OCTAL = ... # type: TokenType
+ RIGHT_BRACE = ... # type: TokenType
+ RIGHT_CURLY = ... # type: TokenType
+ RIGHT_PAREN = ... # type: TokenType
+ STRING = ... # type: TokenType
+ SYMBOL = ... # type: TokenType
+
+
+class TraverseType(Enum, builtins.int):
+ IN_ORDER = ... # type: TraverseType
+ LEVEL_ORDER = ... # type: TraverseType
+ POST_ORDER = ... # type: TraverseType
+ PRE_ORDER = ... # type: TraverseType
+
+
+class UnicodeBreakType(Enum, builtins.int):
+ AFTER = ... # type: UnicodeBreakType
+ ALPHABETIC = ... # type: UnicodeBreakType
+ AMBIGUOUS = ... # type: UnicodeBreakType
+ BEFORE = ... # type: UnicodeBreakType
+ BEFORE_AND_AFTER = ... # type: UnicodeBreakType
+ CARRIAGE_RETURN = ... # type: UnicodeBreakType
+ CLOSE_PARANTHESIS = ... # type: UnicodeBreakType
+ CLOSE_PUNCTUATION = ... # type: UnicodeBreakType
+ COMBINING_MARK = ... # type: UnicodeBreakType
+ COMPLEX_CONTEXT = ... # type: UnicodeBreakType
+ CONDITIONAL_JAPANESE_STARTER = ... # type: UnicodeBreakType
+ CONTINGENT = ... # type: UnicodeBreakType
+ EMOJI_BASE = ... # type: UnicodeBreakType
+ EMOJI_MODIFIER = ... # type: UnicodeBreakType
+ EXCLAMATION = ... # type: UnicodeBreakType
+ HANGUL_LVT_SYLLABLE = ... # type: UnicodeBreakType
+ HANGUL_LV_SYLLABLE = ... # type: UnicodeBreakType
+ HANGUL_L_JAMO = ... # type: UnicodeBreakType
+ HANGUL_T_JAMO = ... # type: UnicodeBreakType
+ HANGUL_V_JAMO = ... # type: UnicodeBreakType
+ HEBREW_LETTER = ... # type: UnicodeBreakType
+ HYPHEN = ... # type: UnicodeBreakType
+ IDEOGRAPHIC = ... # type: UnicodeBreakType
+ INFIX_SEPARATOR = ... # type: UnicodeBreakType
+ INSEPARABLE = ... # type: UnicodeBreakType
+ LINE_FEED = ... # type: UnicodeBreakType
+ MANDATORY = ... # type: UnicodeBreakType
+ NEXT_LINE = ... # type: UnicodeBreakType
+ NON_BREAKING_GLUE = ... # type: UnicodeBreakType
+ NON_STARTER = ... # type: UnicodeBreakType
+ NUMERIC = ... # type: UnicodeBreakType
+ OPEN_PUNCTUATION = ... # type: UnicodeBreakType
+ POSTFIX = ... # type: UnicodeBreakType
+ PREFIX = ... # type: UnicodeBreakType
+ QUOTATION = ... # type: UnicodeBreakType
+ REGIONAL_INDICATOR = ... # type: UnicodeBreakType
+ SPACE = ... # type: UnicodeBreakType
+ SURROGATE = ... # type: UnicodeBreakType
+ SYMBOL = ... # type: UnicodeBreakType
+ UNKNOWN = ... # type: UnicodeBreakType
+ WORD_JOINER = ... # type: UnicodeBreakType
+ ZERO_WIDTH_JOINER = ... # type: UnicodeBreakType
+ ZERO_WIDTH_SPACE = ... # type: UnicodeBreakType
+
+
+class UnicodeScript(Enum, builtins.int):
+ ADLAM = ... # type: UnicodeScript
+ AHOM = ... # type: UnicodeScript
+ ANATOLIAN_HIEROGLYPHS = ... # type: UnicodeScript
+ ARABIC = ... # type: UnicodeScript
+ ARMENIAN = ... # type: UnicodeScript
+ AVESTAN = ... # type: UnicodeScript
+ BALINESE = ... # type: UnicodeScript
+ BAMUM = ... # type: UnicodeScript
+ BASSA_VAH = ... # type: UnicodeScript
+ BATAK = ... # type: UnicodeScript
+ BENGALI = ... # type: UnicodeScript
+ BHAIKSUKI = ... # type: UnicodeScript
+ BOPOMOFO = ... # type: UnicodeScript
+ BRAHMI = ... # type: UnicodeScript
+ BRAILLE = ... # type: UnicodeScript
+ BUGINESE = ... # type: UnicodeScript
+ BUHID = ... # type: UnicodeScript
+ CANADIAN_ABORIGINAL = ... # type: UnicodeScript
+ CARIAN = ... # type: UnicodeScript
+ CAUCASIAN_ALBANIAN = ... # type: UnicodeScript
+ CHAKMA = ... # type: UnicodeScript
+ CHAM = ... # type: UnicodeScript
+ CHEROKEE = ... # type: UnicodeScript
+ COMMON = ... # type: UnicodeScript
+ COPTIC = ... # type: UnicodeScript
+ CUNEIFORM = ... # type: UnicodeScript
+ CYPRIOT = ... # type: UnicodeScript
+ CYRILLIC = ... # type: UnicodeScript
+ DESERET = ... # type: UnicodeScript
+ DEVANAGARI = ... # type: UnicodeScript
+ DOGRA = ... # type: UnicodeScript
+ DUPLOYAN = ... # type: UnicodeScript
+ EGYPTIAN_HIEROGLYPHS = ... # type: UnicodeScript
+ ELBASAN = ... # type: UnicodeScript
+ ELYMAIC = ... # type: UnicodeScript
+ ETHIOPIC = ... # type: UnicodeScript
+ GEORGIAN = ... # type: UnicodeScript
+ GLAGOLITIC = ... # type: UnicodeScript
+ GOTHIC = ... # type: UnicodeScript
+ GRANTHA = ... # type: UnicodeScript
+ GREEK = ... # type: UnicodeScript
+ GUJARATI = ... # type: UnicodeScript
+ GUNJALA_GONDI = ... # type: UnicodeScript
+ GURMUKHI = ... # type: UnicodeScript
+ HAN = ... # type: UnicodeScript
+ HANGUL = ... # type: UnicodeScript
+ HANIFI_ROHINGYA = ... # type: UnicodeScript
+ HANUNOO = ... # type: UnicodeScript
+ HATRAN = ... # type: UnicodeScript
+ HEBREW = ... # type: UnicodeScript
+ HIRAGANA = ... # type: UnicodeScript
+ IMPERIAL_ARAMAIC = ... # type: UnicodeScript
+ INHERITED = ... # type: UnicodeScript
+ INSCRIPTIONAL_PAHLAVI = ... # type: UnicodeScript
+ INSCRIPTIONAL_PARTHIAN = ... # type: UnicodeScript
+ INVALID_CODE = ... # type: UnicodeScript
+ JAVANESE = ... # type: UnicodeScript
+ KAITHI = ... # type: UnicodeScript
+ KANNADA = ... # type: UnicodeScript
+ KATAKANA = ... # type: UnicodeScript
+ KAYAH_LI = ... # type: UnicodeScript
+ KHAROSHTHI = ... # type: UnicodeScript
+ KHMER = ... # type: UnicodeScript
+ KHOJKI = ... # type: UnicodeScript
+ KHUDAWADI = ... # type: UnicodeScript
+ LAO = ... # type: UnicodeScript
+ LATIN = ... # type: UnicodeScript
+ LEPCHA = ... # type: UnicodeScript
+ LIMBU = ... # type: UnicodeScript
+ LINEAR_A = ... # type: UnicodeScript
+ LINEAR_B = ... # type: UnicodeScript
+ LISU = ... # type: UnicodeScript
+ LYCIAN = ... # type: UnicodeScript
+ LYDIAN = ... # type: UnicodeScript
+ MAHAJANI = ... # type: UnicodeScript
+ MAKASAR = ... # type: UnicodeScript
+ MALAYALAM = ... # type: UnicodeScript
+ MANDAIC = ... # type: UnicodeScript
+ MANICHAEAN = ... # type: UnicodeScript
+ MARCHEN = ... # type: UnicodeScript
+ MASARAM_GONDI = ... # type: UnicodeScript
+ MEDEFAIDRIN = ... # type: UnicodeScript
+ MEETEI_MAYEK = ... # type: UnicodeScript
+ MENDE_KIKAKUI = ... # type: UnicodeScript
+ MEROITIC_CURSIVE = ... # type: UnicodeScript
+ MEROITIC_HIEROGLYPHS = ... # type: UnicodeScript
+ MIAO = ... # type: UnicodeScript
+ MODI = ... # type: UnicodeScript
+ MONGOLIAN = ... # type: UnicodeScript
+ MRO = ... # type: UnicodeScript
+ MULTANI = ... # type: UnicodeScript
+ MYANMAR = ... # type: UnicodeScript
+ NABATAEAN = ... # type: UnicodeScript
+ NANDINAGARI = ... # type: UnicodeScript
+ NEWA = ... # type: UnicodeScript
+ NEW_TAI_LUE = ... # type: UnicodeScript
+ NKO = ... # type: UnicodeScript
+ NUSHU = ... # type: UnicodeScript
+ NYIAKENG_PUACHUE_HMONG = ... # type: UnicodeScript
+ OGHAM = ... # type: UnicodeScript
+ OLD_HUNGARIAN = ... # type: UnicodeScript
+ OLD_ITALIC = ... # type: UnicodeScript
+ OLD_NORTH_ARABIAN = ... # type: UnicodeScript
+ OLD_PERMIC = ... # type: UnicodeScript
+ OLD_PERSIAN = ... # type: UnicodeScript
+ OLD_SOGDIAN = ... # type: UnicodeScript
+ OLD_SOUTH_ARABIAN = ... # type: UnicodeScript
+ OLD_TURKIC = ... # type: UnicodeScript
+ OL_CHIKI = ... # type: UnicodeScript
+ ORIYA = ... # type: UnicodeScript
+ OSAGE = ... # type: UnicodeScript
+ OSMANYA = ... # type: UnicodeScript
+ PAHAWH_HMONG = ... # type: UnicodeScript
+ PALMYRENE = ... # type: UnicodeScript
+ PAU_CIN_HAU = ... # type: UnicodeScript
+ PHAGS_PA = ... # type: UnicodeScript
+ PHOENICIAN = ... # type: UnicodeScript
+ PSALTER_PAHLAVI = ... # type: UnicodeScript
+ REJANG = ... # type: UnicodeScript
+ RUNIC = ... # type: UnicodeScript
+ SAMARITAN = ... # type: UnicodeScript
+ SAURASHTRA = ... # type: UnicodeScript
+ SHARADA = ... # type: UnicodeScript
+ SHAVIAN = ... # type: UnicodeScript
+ SIDDHAM = ... # type: UnicodeScript
+ SIGNWRITING = ... # type: UnicodeScript
+ SINHALA = ... # type: UnicodeScript
+ SOGDIAN = ... # type: UnicodeScript
+ SORA_SOMPENG = ... # type: UnicodeScript
+ SOYOMBO = ... # type: UnicodeScript
+ SUNDANESE = ... # type: UnicodeScript
+ SYLOTI_NAGRI = ... # type: UnicodeScript
+ SYRIAC = ... # type: UnicodeScript
+ TAGALOG = ... # type: UnicodeScript
+ TAGBANWA = ... # type: UnicodeScript
+ TAI_LE = ... # type: UnicodeScript
+ TAI_THAM = ... # type: UnicodeScript
+ TAI_VIET = ... # type: UnicodeScript
+ TAKRI = ... # type: UnicodeScript
+ TAMIL = ... # type: UnicodeScript
+ TANGUT = ... # type: UnicodeScript
+ TELUGU = ... # type: UnicodeScript
+ THAANA = ... # type: UnicodeScript
+ THAI = ... # type: UnicodeScript
+ TIBETAN = ... # type: UnicodeScript
+ TIFINAGH = ... # type: UnicodeScript
+ TIRHUTA = ... # type: UnicodeScript
+ UGARITIC = ... # type: UnicodeScript
+ UNKNOWN = ... # type: UnicodeScript
+ VAI = ... # type: UnicodeScript
+ WANCHO = ... # type: UnicodeScript
+ WARANG_CITI = ... # type: UnicodeScript
+ YI = ... # type: UnicodeScript
+ ZANABAZAR_SQUARE = ... # type: UnicodeScript
+
+
+class UnicodeType(Enum, builtins.int):
+ CLOSE_PUNCTUATION = ... # type: UnicodeType
+ CONNECT_PUNCTUATION = ... # type: UnicodeType
+ CONTROL = ... # type: UnicodeType
+ CURRENCY_SYMBOL = ... # type: UnicodeType
+ DASH_PUNCTUATION = ... # type: UnicodeType
+ DECIMAL_NUMBER = ... # type: UnicodeType
+ ENCLOSING_MARK = ... # type: UnicodeType
+ FINAL_PUNCTUATION = ... # type: UnicodeType
+ FORMAT = ... # type: UnicodeType
+ INITIAL_PUNCTUATION = ... # type: UnicodeType
+ LETTER_NUMBER = ... # type: UnicodeType
+ LINE_SEPARATOR = ... # type: UnicodeType
+ LOWERCASE_LETTER = ... # type: UnicodeType
+ MATH_SYMBOL = ... # type: UnicodeType
+ MODIFIER_LETTER = ... # type: UnicodeType
+ MODIFIER_SYMBOL = ... # type: UnicodeType
+ NON_SPACING_MARK = ... # type: UnicodeType
+ OPEN_PUNCTUATION = ... # type: UnicodeType
+ OTHER_LETTER = ... # type: UnicodeType
+ OTHER_NUMBER = ... # type: UnicodeType
+ OTHER_PUNCTUATION = ... # type: UnicodeType
+ OTHER_SYMBOL = ... # type: UnicodeType
+ PARAGRAPH_SEPARATOR = ... # type: UnicodeType
+ PRIVATE_USE = ... # type: UnicodeType
+ SPACE_SEPARATOR = ... # type: UnicodeType
+ SPACING_MARK = ... # type: UnicodeType
+ SURROGATE = ... # type: UnicodeType
+ TITLECASE_LETTER = ... # type: UnicodeType
+ UNASSIGNED = ... # type: UnicodeType
+ UPPERCASE_LETTER = ... # type: UnicodeType
+
+
+class UserDirectory(Enum, builtins.int):
+ DIRECTORY_DESKTOP = ... # type: UserDirectory
+ DIRECTORY_DOCUMENTS = ... # type: UserDirectory
+ DIRECTORY_DOWNLOAD = ... # type: UserDirectory
+ DIRECTORY_MUSIC = ... # type: UserDirectory
+ DIRECTORY_PICTURES = ... # type: UserDirectory
+ DIRECTORY_PUBLIC_SHARE = ... # type: UserDirectory
+ DIRECTORY_TEMPLATES = ... # type: UserDirectory
+ DIRECTORY_VIDEOS = ... # type: UserDirectory
+ N_DIRECTORIES = ... # type: UserDirectory
+
+
+class VariantClass(Enum, builtins.int):
+ ARRAY = ... # type: VariantClass
+ BOOLEAN = ... # type: VariantClass
+ BYTE = ... # type: VariantClass
+ DICT_ENTRY = ... # type: VariantClass
+ DOUBLE = ... # type: VariantClass
+ HANDLE = ... # type: VariantClass
+ INT16 = ... # type: VariantClass
+ INT32 = ... # type: VariantClass
+ INT64 = ... # type: VariantClass
+ MAYBE = ... # type: VariantClass
+ OBJECT_PATH = ... # type: VariantClass
+ SIGNATURE = ... # type: VariantClass
+ STRING = ... # type: VariantClass
+ TUPLE = ... # type: VariantClass
+ UINT16 = ... # type: VariantClass
+ UINT32 = ... # type: VariantClass
+ UINT64 = ... # type: VariantClass
+ VARIANT = ... # type: VariantClass
+
+
+class VariantParseError(Enum, builtins.int):
+ BASIC_TYPE_EXPECTED = ... # type: VariantParseError
+ CANNOT_INFER_TYPE = ... # type: VariantParseError
+ DEFINITE_TYPE_EXPECTED = ... # type: VariantParseError
+ FAILED = ... # type: VariantParseError
+ INPUT_NOT_AT_END = ... # type: VariantParseError
+ INVALID_CHARACTER = ... # type: VariantParseError
+ INVALID_FORMAT_STRING = ... # type: VariantParseError
+ INVALID_OBJECT_PATH = ... # type: VariantParseError
+ INVALID_SIGNATURE = ... # type: VariantParseError
+ INVALID_TYPE_STRING = ... # type: VariantParseError
+ NO_COMMON_TYPE = ... # type: VariantParseError
+ NUMBER_OUT_OF_RANGE = ... # type: VariantParseError
+ NUMBER_TOO_BIG = ... # type: VariantParseError
+ RECURSION = ... # type: VariantParseError
+ TYPE_ERROR = ... # type: VariantParseError
+ UNEXPECTED_TOKEN = ... # type: VariantParseError
+ UNKNOWN_KEYWORD = ... # type: VariantParseError
+ UNTERMINATED_STRING_CONSTANT = ... # type: VariantParseError
+ VALUE_EXPECTED = ... # type: VariantParseError
+
+
+ChildWatchFunc = typing.Callable[[builtins.int, builtins.int, typing.Optional[builtins.object]], None]
+ClearHandleFunc = typing.Callable[[builtins.int], None]
+CompareDataFunc = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object], typing.Optional[builtins.object]], builtins.int]
+CompareFunc = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object]], builtins.int]
+CopyFunc = typing.Callable[[builtins.object, typing.Optional[builtins.object]], builtins.object]
+DataForeachFunc = typing.Callable[[builtins.int, typing.Optional[builtins.object], typing.Optional[builtins.object]], None]
+DestroyNotify = typing.Callable[[typing.Optional[builtins.object]], None]
+DuplicateFunc = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object]], typing.Optional[builtins.object]]
+EqualFunc = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object]], builtins.bool]
+FreeFunc = typing.Callable[[typing.Optional[builtins.object]], None]
+Func = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object]], None]
+HFunc = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object], typing.Optional[builtins.object]], None]
+HRFunc = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object], typing.Optional[builtins.object]], builtins.bool]
+HashFunc = typing.Callable[[typing.Optional[builtins.object]], builtins.int]
+HookCheckFunc = typing.Callable[[typing.Optional[builtins.object]], builtins.bool]
+HookCheckMarshaller = typing.Callable[[Hook, typing.Optional[builtins.object]], builtins.bool]
+HookCompareFunc = typing.Callable[[Hook, Hook], builtins.int]
+HookFinalizeFunc = typing.Callable[[HookList, Hook], None]
+HookFindFunc = typing.Callable[[Hook, typing.Optional[builtins.object]], builtins.bool]
+HookFunc = typing.Callable[[typing.Optional[builtins.object]], None]
+HookMarshaller = typing.Callable[[Hook, typing.Optional[builtins.object]], None]
+IOFunc = typing.Callable[[IOChannel, IOCondition, typing.Optional[builtins.object]], builtins.bool]
+LogFunc = typing.Callable[[builtins.str, LogLevelFlags, builtins.str, typing.Optional[builtins.object]], None]
+LogWriterFunc = typing.Callable[[LogLevelFlags, typing.Sequence[LogField], typing.Optional[builtins.object]], LogWriterOutput]
+NodeForeachFunc = typing.Callable[[Node, typing.Optional[builtins.object]], None]
+NodeTraverseFunc = typing.Callable[[Node, typing.Optional[builtins.object]], builtins.bool]
+OptionArgFunc = typing.Callable[[builtins.str, builtins.str, typing.Optional[builtins.object]], builtins.bool]
+OptionErrorFunc = typing.Callable[[OptionContext, OptionGroup, typing.Optional[builtins.object]], None]
+OptionParseFunc = typing.Callable[[OptionContext, OptionGroup, typing.Optional[builtins.object]], builtins.bool]
+PollFunc = typing.Callable[[PollFD, builtins.int, builtins.int], builtins.int]
+PrintFunc = typing.Callable[[builtins.str], None]
+RegexEvalCallback = typing.Callable[[MatchInfo, String, typing.Optional[builtins.object]], builtins.bool]
+ScannerMsgFunc = typing.Callable[[Scanner, builtins.str, builtins.bool], None]
+SequenceIterCompareFunc = typing.Callable[[SequenceIter, SequenceIter, typing.Optional[builtins.object]], builtins.int]
+SourceDisposeFunc = typing.Callable[[Source], None]
+SourceDummyMarshal = typing.Callable[[], None]
+SourceFunc = typing.Callable[[typing.Optional[builtins.object]], builtins.bool]
+SpawnChildSetupFunc = typing.Callable[[typing.Optional[builtins.object]], None]
+TestDataFunc = typing.Callable[[typing.Optional[builtins.object]], None]
+TestFixtureFunc = typing.Callable[[builtins.object, typing.Optional[builtins.object]], None]
+TestFunc = typing.Callable[[], None]
+TestLogFatalFunc = typing.Callable[[builtins.str, LogLevelFlags, builtins.str, typing.Optional[builtins.object]], builtins.bool]
+ThreadFunc = typing.Callable[[typing.Optional[builtins.object]], typing.Optional[builtins.object]]
+TranslateFunc = typing.Callable[[builtins.str, typing.Optional[builtins.object]], builtins.str]
+TraverseFunc = typing.Callable[[typing.Optional[builtins.object], typing.Optional[builtins.object], typing.Optional[builtins.object]], builtins.bool]
+UnixFDSourceFunc = typing.Callable[[builtins.int, IOCondition, typing.Optional[builtins.object]], builtins.bool]
+VoidFunc = typing.Callable[[], None]
+
+
+def access(filename: builtins.str, mode: builtins.int) -> builtins.int: ...
+
+
+def ascii_digit_value(c: builtins.int) -> builtins.int: ...
+
+
+def ascii_dtostr(buffer: builtins.str, buf_len: builtins.int, d: builtins.float) -> builtins.str: ...
+
+
+def ascii_formatd(buffer: builtins.str, buf_len: builtins.int, format: builtins.str, d: builtins.float) -> builtins.str: ...
+
+
+def ascii_strcasecmp(s1: builtins.str, s2: builtins.str) -> builtins.int: ...
+
+
+def ascii_strdown(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def ascii_string_to_signed(str: builtins.str, base: builtins.int, min: builtins.int, max: builtins.int) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+
+def ascii_string_to_unsigned(str: builtins.str, base: builtins.int, min: builtins.int, max: builtins.int) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+
+def ascii_strncasecmp(s1: builtins.str, s2: builtins.str, n: builtins.int) -> builtins.int: ...
+
+
+def ascii_strtod(nptr: builtins.str) -> typing.Tuple[builtins.float, builtins.str]: ...
+
+
+def ascii_strtoll(nptr: builtins.str, base: builtins.int) -> typing.Tuple[builtins.int, builtins.str]: ...
+
+
+def ascii_strtoull(nptr: builtins.str, base: builtins.int) -> typing.Tuple[builtins.int, builtins.str]: ...
+
+
+def ascii_strup(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def ascii_tolower(c: builtins.int) -> builtins.int: ...
+
+
+def ascii_toupper(c: builtins.int) -> builtins.int: ...
+
+
+def ascii_xdigit_value(c: builtins.int) -> builtins.int: ...
+
+
+def assert_warning(log_domain: builtins.str, file: builtins.str, line: builtins.int, pretty_function: builtins.str, expression: builtins.str) -> None: ...
+
+
+def assertion_message(domain: builtins.str, file: builtins.str, line: builtins.int, func: builtins.str, message: builtins.str) -> None: ...
+
+
+def assertion_message_cmpstr(domain: builtins.str, file: builtins.str, line: builtins.int, func: builtins.str, expr: builtins.str, arg1: builtins.str, cmp: builtins.str, arg2: builtins.str) -> None: ...
+
+
+def assertion_message_error(domain: builtins.str, file: builtins.str, line: builtins.int, func: builtins.str, expr: builtins.str, error: Error, error_domain: builtins.int, error_code: builtins.int) -> None: ...
+
+
+def atexit(func: VoidFunc) -> None: ...
+
+
+def atomic_int_add(atomic: builtins.int, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_int_and(atomic: builtins.int, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_int_compare_and_exchange(atomic: builtins.int, oldval: builtins.int, newval: builtins.int) -> builtins.bool: ...
+
+
+def atomic_int_dec_and_test(atomic: builtins.int) -> builtins.bool: ...
+
+
+def atomic_int_exchange_and_add(atomic: builtins.int, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_int_get(atomic: builtins.int) -> builtins.int: ...
+
+
+def atomic_int_inc(atomic: builtins.int) -> None: ...
+
+
+def atomic_int_or(atomic: builtins.int, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_int_set(atomic: builtins.int, newval: builtins.int) -> None: ...
+
+
+def atomic_int_xor(atomic: builtins.int, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_pointer_add(atomic: builtins.object, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_pointer_and(atomic: builtins.object, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_pointer_compare_and_exchange(atomic: builtins.object, oldval: typing.Optional[builtins.object], newval: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def atomic_pointer_get(atomic: builtins.object) -> typing.Optional[builtins.object]: ...
+
+
+def atomic_pointer_or(atomic: builtins.object, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_pointer_set(atomic: builtins.object, newval: typing.Optional[builtins.object]) -> None: ...
+
+
+def atomic_pointer_xor(atomic: builtins.object, val: builtins.int) -> builtins.int: ...
+
+
+def atomic_rc_box_acquire(mem_block: builtins.object) -> builtins.object: ...
+
+
+def atomic_rc_box_alloc(block_size: builtins.int) -> builtins.object: ...
+
+
+def atomic_rc_box_alloc0(block_size: builtins.int) -> builtins.object: ...
+
+
+def atomic_rc_box_dup(block_size: builtins.int, mem_block: builtins.object) -> builtins.object: ...
+
+
+def atomic_rc_box_get_size(mem_block: builtins.object) -> builtins.int: ...
+
+
+def atomic_rc_box_release(mem_block: builtins.object) -> None: ...
+
+
+def atomic_rc_box_release_full(mem_block: builtins.object, clear_func: DestroyNotify) -> None: ...
+
+
+def atomic_ref_count_compare(arc: builtins.int, val: builtins.int) -> builtins.bool: ...
+
+
+def atomic_ref_count_dec(arc: builtins.int) -> builtins.bool: ...
+
+
+def atomic_ref_count_inc(arc: builtins.int) -> None: ...
+
+
+def atomic_ref_count_init(arc: builtins.int) -> None: ...
+
+
+def base64_decode(text: builtins.str) -> builtins.bytes: ...
+
+
+def base64_decode_inplace(text: builtins.bytes) -> typing.Tuple[builtins.int, builtins.bytes]: ...
+
+
+def base64_encode(data: typing.Optional[builtins.bytes]) -> builtins.str: ...
+
+
+def base64_encode_close(break_lines: builtins.bool, state: builtins.int, save: builtins.int) -> typing.Tuple[builtins.int, builtins.bytes, builtins.int, builtins.int]: ...
+
+
+def base64_encode_step(in_: builtins.bytes, break_lines: builtins.bool, state: builtins.int, save: builtins.int) -> typing.Tuple[builtins.int, builtins.bytes, builtins.int, builtins.int]: ...
+
+
+def basename(file_name: builtins.str) -> builtins.str: ...
+
+
+def bit_lock(address: builtins.int, lock_bit: builtins.int) -> None: ...
+
+
+def bit_nth_lsf(mask: builtins.int, nth_bit: builtins.int) -> builtins.int: ...
+
+
+def bit_nth_msf(mask: builtins.int, nth_bit: builtins.int) -> builtins.int: ...
+
+
+def bit_storage(number: builtins.int) -> builtins.int: ...
+
+
+def bit_trylock(address: builtins.int, lock_bit: builtins.int) -> builtins.bool: ...
+
+
+def bit_unlock(address: builtins.int, lock_bit: builtins.int) -> None: ...
+
+
+def bookmark_file_error_quark() -> builtins.int: ...
+
+
+def build_filenamev(args: typing.Sequence[builtins.str]) -> builtins.str: ...
+
+
+def build_pathv(separator: builtins.str, args: typing.Sequence[builtins.str]) -> builtins.str: ...
+
+
+def byte_array_free(array: builtins.bytes, free_segment: builtins.bool) -> builtins.int: ...
+
+
+def byte_array_free_to_bytes(array: builtins.bytes) -> Bytes: ...
+
+
+def byte_array_new() -> builtins.bytes: ...
+
+
+def byte_array_new_take(data: builtins.bytes) -> builtins.bytes: ...
+
+
+def byte_array_steal(array: builtins.bytes) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def byte_array_unref(array: builtins.bytes) -> None: ...
+
+
+def canonicalize_filename(filename: builtins.str, relative_to: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def chdir(path: builtins.str) -> builtins.int: ...
+
+
+def check_version(required_major: builtins.int, required_minor: builtins.int, required_micro: builtins.int) -> builtins.str: ...
+
+
+def checksum_type_get_length(checksum_type: ChecksumType) -> builtins.int: ...
+
+
+def child_watch_add(priority: typing.Any, pid: typing.Any, function: typing.Any, *data: typing.Any) -> None: ...
+
+
+def child_watch_source_new(pid: builtins.int) -> Source: ...
+
+
+def clear_error() -> None: ...
+
+
+def close(fd: builtins.int) -> builtins.bool: ...
+
+
+def compute_checksum_for_bytes(checksum_type: ChecksumType, data: Bytes) -> builtins.str: ...
+
+
+def compute_checksum_for_data(checksum_type: ChecksumType, data: builtins.bytes) -> builtins.str: ...
+
+
+def compute_checksum_for_string(checksum_type: ChecksumType, str: builtins.str, length: builtins.int) -> builtins.str: ...
+
+
+def compute_hmac_for_bytes(digest_type: ChecksumType, key: Bytes, data: Bytes) -> builtins.str: ...
+
+
+def compute_hmac_for_data(digest_type: ChecksumType, key: builtins.bytes, data: builtins.bytes) -> builtins.str: ...
+
+
+def compute_hmac_for_string(digest_type: ChecksumType, key: builtins.bytes, str: builtins.str, length: builtins.int) -> builtins.str: ...
+
+
+def convert(str: builtins.bytes, to_codeset: builtins.str, from_codeset: builtins.str) -> typing.Tuple[builtins.bytes, builtins.int]: ...
+
+
+def convert_error_quark() -> builtins.int: ...
+
+
+def convert_with_fallback(str: builtins.bytes, to_codeset: builtins.str, from_codeset: builtins.str, fallback: builtins.str) -> typing.Tuple[builtins.bytes, builtins.int]: ...
+
+
+def datalist_foreach(datalist: Data, func: DataForeachFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def datalist_get_data(datalist: Data, key: builtins.str) -> typing.Optional[builtins.object]: ...
+
+
+def datalist_get_flags(datalist: Data) -> builtins.int: ...
+
+
+def datalist_id_get_data(datalist: Data, key_id: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def datalist_set_flags(datalist: Data, flags: builtins.int) -> None: ...
+
+
+def datalist_unset_flags(datalist: Data, flags: builtins.int) -> None: ...
+
+
+def dataset_destroy(dataset_location: builtins.object) -> None: ...
+
+
+def dataset_foreach(dataset_location: builtins.object, func: DataForeachFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def dataset_id_get_data(dataset_location: builtins.object, key_id: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def date_get_days_in_month(month: DateMonth, year: builtins.int) -> builtins.int: ...
+
+
+def date_get_monday_weeks_in_year(year: builtins.int) -> builtins.int: ...
+
+
+def date_get_sunday_weeks_in_year(year: builtins.int) -> builtins.int: ...
+
+
+def date_is_leap_year(year: builtins.int) -> builtins.bool: ...
+
+
+def date_strftime(s: builtins.str, slen: builtins.int, format: builtins.str, date: Date) -> builtins.int: ...
+
+
+def date_time_compare(dt1: builtins.object, dt2: builtins.object) -> builtins.int: ...
+
+
+def date_time_equal(dt1: builtins.object, dt2: builtins.object) -> builtins.bool: ...
+
+
+def date_time_hash(datetime: builtins.object) -> builtins.int: ...
+
+
+def date_valid_day(day: builtins.int) -> builtins.bool: ...
+
+
+def date_valid_dmy(day: builtins.int, month: DateMonth, year: builtins.int) -> builtins.bool: ...
+
+
+def date_valid_julian(julian_date: builtins.int) -> builtins.bool: ...
+
+
+def date_valid_month(month: DateMonth) -> builtins.bool: ...
+
+
+def date_valid_weekday(weekday: DateWeekday) -> builtins.bool: ...
+
+
+def date_valid_year(year: builtins.int) -> builtins.bool: ...
+
+
+def dcgettext(domain: typing.Optional[builtins.str], msgid: builtins.str, category: builtins.int) -> builtins.str: ...
+
+
+def dgettext(domain: typing.Optional[builtins.str], msgid: builtins.str) -> builtins.str: ...
+
+
+def dir_make_tmp(tmpl: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def direct_equal(v1: typing.Optional[builtins.object], v2: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def direct_hash(v: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def dngettext(domain: typing.Optional[builtins.str], msgid: builtins.str, msgid_plural: builtins.str, n: builtins.int) -> builtins.str: ...
+
+
+def double_equal(v1: builtins.object, v2: builtins.object) -> builtins.bool: ...
+
+
+def double_hash(v: builtins.object) -> builtins.int: ...
+
+
+def dpgettext(domain: typing.Optional[builtins.str], msgctxtid: builtins.str, msgidoffset: builtins.int) -> builtins.str: ...
+
+
+def dpgettext2(domain: typing.Optional[builtins.str], context: builtins.str, msgid: builtins.str) -> builtins.str: ...
+
+
+def environ_getenv(envp: typing.Optional[typing.Sequence[builtins.str]], variable: builtins.str) -> builtins.str: ...
+
+
+def environ_setenv(envp: typing.Optional[typing.Sequence[builtins.str]], variable: builtins.str, value: builtins.str, overwrite: builtins.bool) -> typing.Sequence[builtins.str]: ...
+
+
+def environ_unsetenv(envp: typing.Optional[typing.Sequence[builtins.str]], variable: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+
+def file_error_from_errno(err_no: builtins.int) -> FileError: ...
+
+
+def file_error_quark() -> builtins.int: ...
+
+
+def file_get_contents(filename: builtins.str) -> typing.Tuple[builtins.bool, builtins.bytes]: ...
+
+
+def file_open_tmp(tmpl: typing.Optional[builtins.str]) -> typing.Tuple[builtins.int, builtins.str]: ...
+
+
+def file_read_link(filename: builtins.str) -> builtins.str: ...
+
+
+def file_set_contents(filename: builtins.str, contents: builtins.bytes) -> builtins.bool: ...
+
+
+def file_test(filename: builtins.str, test: FileTest) -> builtins.bool: ...
+
+
+def filename_display_basename(filename: builtins.str) -> builtins.str: ...
+
+
+def filename_display_name(filename: builtins.str) -> builtins.str: ...
+
+
+def filename_from_uri(uri: builtins.str) -> typing.Tuple[builtins.str, typing.Optional[builtins.str]]: ...
+
+
+def filename_from_utf8(utf8string: builtins.str, len: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+
+def filename_to_uri(filename: builtins.str, hostname: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def filename_to_utf8(opsysstring: builtins.str, len: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+
+def find_program_in_path(program: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def format_size(size: builtins.int) -> builtins.str: ...
+
+
+def format_size_for_display(size: builtins.int) -> builtins.str: ...
+
+
+def format_size_full(size: builtins.int, flags: FormatSizeFlags) -> builtins.str: ...
+
+
+def free(mem: typing.Optional[builtins.object]) -> None: ...
+
+
+def get_application_name() -> typing.Optional[builtins.str]: ...
+
+
+def get_charset() -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def get_codeset() -> builtins.str: ...
+
+
+def get_console_charset() -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def get_current_dir() -> builtins.str: ...
+
+
+def get_current_time(result: TimeVal) -> None: ...
+
+
+def get_environ() -> typing.Sequence[builtins.str]: ...
+
+
+def get_filename_charsets() -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+
+def get_home_dir() -> builtins.str: ...
+
+
+def get_host_name() -> builtins.str: ...
+
+
+def get_language_names() -> typing.Sequence[builtins.str]: ...
+
+
+def get_language_names_with_category(category_name: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+
+def get_locale_variants(locale: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+
+def get_monotonic_time() -> builtins.int: ...
+
+
+def get_num_processors() -> builtins.int: ...
+
+
+def get_os_info(key_name: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def get_prgname() -> typing.Optional[builtins.str]: ...
+
+
+def get_real_name() -> builtins.str: ...
+
+
+def get_real_time() -> builtins.int: ...
+
+
+def get_system_config_dirs() -> typing.Sequence[builtins.str]: ...
+
+
+def get_system_data_dirs() -> typing.Sequence[builtins.str]: ...
+
+
+def get_tmp_dir() -> builtins.str: ...
+
+
+def get_user_cache_dir() -> builtins.str: ...
+
+
+def get_user_config_dir() -> builtins.str: ...
+
+
+def get_user_data_dir() -> builtins.str: ...
+
+
+def get_user_name() -> builtins.str: ...
+
+
+def get_user_runtime_dir() -> builtins.str: ...
+
+
+def get_user_special_dir(directory: UserDirectory) -> builtins.str: ...
+
+
+def getenv(variable: builtins.str) -> builtins.str: ...
+
+
+def hash_table_add(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def hash_table_contains(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def hash_table_destroy(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+
+def hash_table_insert(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object], value: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def hash_table_lookup(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> typing.Optional[builtins.object]: ...
+
+
+def hash_table_lookup_extended(hash_table: typing.Mapping[builtins.object, builtins.object], lookup_key: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.object, builtins.object]: ...
+
+
+def hash_table_remove(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def hash_table_remove_all(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+
+def hash_table_replace(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object], value: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def hash_table_size(hash_table: typing.Mapping[builtins.object, builtins.object]) -> builtins.int: ...
+
+
+def hash_table_steal(hash_table: typing.Mapping[builtins.object, builtins.object], key: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def hash_table_steal_all(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+
+def hash_table_steal_extended(hash_table: typing.Mapping[builtins.object, builtins.object], lookup_key: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.object, builtins.object]: ...
+
+
+def hash_table_unref(hash_table: typing.Mapping[builtins.object, builtins.object]) -> None: ...
+
+
+def hook_destroy(hook_list: HookList, hook_id: builtins.int) -> builtins.bool: ...
+
+
+def hook_destroy_link(hook_list: HookList, hook: Hook) -> None: ...
+
+
+def hook_free(hook_list: HookList, hook: Hook) -> None: ...
+
+
+def hook_insert_before(hook_list: HookList, sibling: typing.Optional[Hook], hook: Hook) -> None: ...
+
+
+def hook_prepend(hook_list: HookList, hook: Hook) -> None: ...
+
+
+def hook_unref(hook_list: HookList, hook: Hook) -> None: ...
+
+
+def hostname_is_ascii_encoded(hostname: builtins.str) -> builtins.bool: ...
+
+
+def hostname_is_ip_address(hostname: builtins.str) -> builtins.bool: ...
+
+
+def hostname_is_non_ascii(hostname: builtins.str) -> builtins.bool: ...
+
+
+def hostname_to_ascii(hostname: builtins.str) -> builtins.str: ...
+
+
+def hostname_to_unicode(hostname: builtins.str) -> builtins.str: ...
+
+
+@typing.overload
+def idle_add(function: typing.Callable[[], bool], priority: builtins.int = PRIORITY_DEFAULT) -> builtins.int: ...
+
+@typing.overload
+def idle_add(priority: builtins.int, function: typing.Callable[[], bool]) -> builtins.int: ...
+
+
+def idle_remove_by_data(data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def idle_source_new() -> Source: ...
+
+
+def int64_equal(v1: builtins.object, v2: builtins.object) -> builtins.bool: ...
+
+
+def int64_hash(v: builtins.object) -> builtins.int: ...
+
+
+def int_equal(v1: builtins.object, v2: builtins.object) -> builtins.bool: ...
+
+
+def int_hash(v: builtins.object) -> builtins.int: ...
+
+
+def intern_static_string(string: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def intern_string(string: typing.Optional[builtins.str]) -> builtins.str: ...
+
+class _FileLike(typing.Protocol):
+ def fileno(self) -> int: ...
+
+T = typing.TypeVar("T", bound=typing.Union[IOChannel, int, _FileLike])
+T1 = typing.TypeVar("T1")
+T2 = typing.TypeVar("T2")
+T3 = typing.TypeVar("T3")
+
+@typing.overload
+def io_add_watch(channel: T, condition: typing.Union[IOCondition, int], func: typing.Callable[[T, IOCondition], bool]) -> int: ...
+
+@typing.overload
+def io_add_watch(channel: T, condition: typing.Union[IOCondition, int], func: typing.Callable[[T, IOCondition, T1], bool], user_data1: T1) -> int: ...
+
+@typing.overload
+def io_add_watch(channel: T, condition: typing.Union[IOCondition, int], func: typing.Callable[[T, IOCondition, T1, T2], bool], user_data1: T1, user_data2: T2) -> int: ...
+
+
+def io_channel_error_from_errno(en: builtins.int) -> IOChannelError: ...
+
+
+def io_channel_error_quark() -> builtins.int: ...
+
+
+def io_create_watch(channel: IOChannel, condition: IOCondition) -> Source: ...
+
+
+def key_file_error_quark() -> builtins.int: ...
+
+
+def listenv() -> typing.Sequence[builtins.str]: ...
+
+
+def locale_from_utf8(utf8string: builtins.str, len: builtins.int) -> typing.Tuple[builtins.bytes, builtins.int]: ...
+
+
+def locale_to_utf8(opsysstring: builtins.bytes) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+
+def log_default_handler(log_domain: typing.Optional[builtins.str], log_level: LogLevelFlags, message: typing.Optional[builtins.str], unused_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def log_remove_handler(log_domain: builtins.str, handler_id: builtins.int) -> None: ...
+
+
+def log_set_always_fatal(fatal_mask: LogLevelFlags) -> LogLevelFlags: ...
+
+
+def log_set_fatal_mask(log_domain: builtins.str, fatal_mask: LogLevelFlags) -> LogLevelFlags: ...
+
+
+def log_set_handler(log_domain: typing.Optional[builtins.str], log_levels: LogLevelFlags, log_func: LogFunc, *user_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def log_set_writer_func(*user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def log_structured_array(log_level: LogLevelFlags, fields: typing.Sequence[LogField]) -> None: ...
+
+
+def log_variant(log_domain: typing.Optional[builtins.str], log_level: LogLevelFlags, fields: Variant) -> None: ...
+
+
+def log_writer_default(log_level: LogLevelFlags, fields: typing.Sequence[LogField], user_data: typing.Optional[builtins.object]) -> LogWriterOutput: ...
+
+
+def log_writer_format_fields(log_level: LogLevelFlags, fields: typing.Sequence[LogField], use_color: builtins.bool) -> builtins.str: ...
+
+
+def log_writer_is_journald(output_fd: builtins.int) -> builtins.bool: ...
+
+
+def log_writer_journald(log_level: LogLevelFlags, fields: typing.Sequence[LogField], user_data: typing.Optional[builtins.object]) -> LogWriterOutput: ...
+
+
+def log_writer_standard_streams(log_level: LogLevelFlags, fields: typing.Sequence[LogField], user_data: typing.Optional[builtins.object]) -> LogWriterOutput: ...
+
+
+def log_writer_supports_color(output_fd: builtins.int) -> builtins.bool: ...
+
+
+def main_context_default() -> MainContext: ...
+
+
+def main_context_get_thread_default() -> MainContext: ...
+
+
+def main_context_ref_thread_default() -> MainContext: ...
+
+
+def main_current_source() -> Source: ...
+
+
+def main_depth() -> builtins.int: ...
+
+
+def malloc(n_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def malloc0(n_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def malloc0_n(n_blocks: builtins.int, n_block_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def malloc_n(n_blocks: builtins.int, n_block_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def markup_error_quark() -> builtins.int: ...
+
+
+def markup_escape_text(text: builtins.str, length: builtins.int) -> builtins.str: ...
+
+
+def mem_is_system_malloc() -> builtins.bool: ...
+
+
+def mem_profile() -> None: ...
+
+
+def mem_set_vtable(vtable: MemVTable) -> None: ...
+
+
+def memdup(mem: typing.Optional[builtins.object], byte_size: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def mkdir_with_parents(pathname: builtins.str, mode: builtins.int) -> builtins.int: ...
+
+
+def nullify_pointer(nullify_location: builtins.object) -> None: ...
+
+
+def number_parser_error_quark() -> builtins.int: ...
+
+
+def on_error_query(prg_name: builtins.str) -> None: ...
+
+
+def on_error_stack_trace(prg_name: builtins.str) -> None: ...
+
+
+def once_init_enter(location: builtins.object) -> builtins.bool: ...
+
+
+def once_init_leave(location: builtins.object, result: builtins.int) -> None: ...
+
+
+def option_error_quark() -> builtins.int: ...
+
+
+def parse_debug_string(string: typing.Optional[builtins.str], keys: typing.Sequence[DebugKey]) -> builtins.int: ...
+
+
+def path_get_basename(file_name: builtins.str) -> builtins.str: ...
+
+
+def path_get_dirname(file_name: builtins.str) -> builtins.str: ...
+
+
+def path_is_absolute(file_name: builtins.str) -> builtins.bool: ...
+
+
+def path_skip_root(file_name: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def pattern_match(pspec: PatternSpec, string_length: builtins.int, string: builtins.str, string_reversed: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+
+def pattern_match_simple(pattern: builtins.str, string: builtins.str) -> builtins.bool: ...
+
+
+def pattern_match_string(pspec: PatternSpec, string: builtins.str) -> builtins.bool: ...
+
+
+def pointer_bit_lock(address: builtins.object, lock_bit: builtins.int) -> None: ...
+
+
+def pointer_bit_trylock(address: builtins.object, lock_bit: builtins.int) -> builtins.bool: ...
+
+
+def pointer_bit_unlock(address: builtins.object, lock_bit: builtins.int) -> None: ...
+
+
+def poll(fds: PollFD, nfds: builtins.int, timeout: builtins.int) -> builtins.int: ...
+
+
+def propagate_error(src: Error) -> typing.Optional[Error]: ...
+
+
+def quark_from_static_string(string: typing.Optional[builtins.str]) -> builtins.int: ...
+
+
+def quark_from_string(string: typing.Optional[builtins.str]) -> builtins.int: ...
+
+
+def quark_to_string(quark: builtins.int) -> builtins.str: ...
+
+
+def quark_try_string(string: typing.Optional[builtins.str]) -> builtins.int: ...
+
+
+def random_double() -> builtins.float: ...
+
+
+def random_double_range(begin: builtins.float, end: builtins.float) -> builtins.float: ...
+
+
+def random_int() -> builtins.int: ...
+
+
+def random_int_range(begin: builtins.int, end: builtins.int) -> builtins.int: ...
+
+
+def random_set_seed(seed: builtins.int) -> None: ...
+
+
+def rc_box_acquire(mem_block: builtins.object) -> builtins.object: ...
+
+
+def rc_box_alloc(block_size: builtins.int) -> builtins.object: ...
+
+
+def rc_box_alloc0(block_size: builtins.int) -> builtins.object: ...
+
+
+def rc_box_dup(block_size: builtins.int, mem_block: builtins.object) -> builtins.object: ...
+
+
+def rc_box_get_size(mem_block: builtins.object) -> builtins.int: ...
+
+
+def rc_box_release(mem_block: builtins.object) -> None: ...
+
+
+def rc_box_release_full(mem_block: builtins.object, clear_func: DestroyNotify) -> None: ...
+
+
+def realloc(mem: typing.Optional[builtins.object], n_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def realloc_n(mem: typing.Optional[builtins.object], n_blocks: builtins.int, n_block_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def ref_count_compare(rc: builtins.int, val: builtins.int) -> builtins.bool: ...
+
+
+def ref_count_dec(rc: builtins.int) -> builtins.bool: ...
+
+
+def ref_count_inc(rc: builtins.int) -> None: ...
+
+
+def ref_count_init(rc: builtins.int) -> None: ...
+
+
+def ref_string_acquire(str: builtins.str) -> builtins.str: ...
+
+
+def ref_string_length(str: builtins.str) -> builtins.int: ...
+
+
+def ref_string_new(str: builtins.str) -> builtins.str: ...
+
+
+def ref_string_new_intern(str: builtins.str) -> builtins.str: ...
+
+
+def ref_string_new_len(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def ref_string_release(str: builtins.str) -> None: ...
+
+
+def regex_check_replacement(replacement: builtins.str) -> typing.Tuple[builtins.bool, builtins.bool]: ...
+
+
+def regex_error_quark() -> builtins.int: ...
+
+
+def regex_escape_nul(string: builtins.str, length: builtins.int) -> builtins.str: ...
+
+
+def regex_escape_string(string: typing.Sequence[builtins.str]) -> builtins.str: ...
+
+
+def regex_match_simple(pattern: builtins.str, string: builtins.str, compile_options: RegexCompileFlags, match_options: RegexMatchFlags) -> builtins.bool: ...
+
+
+def regex_split_simple(pattern: builtins.str, string: builtins.str, compile_options: RegexCompileFlags, match_options: RegexMatchFlags) -> typing.Sequence[builtins.str]: ...
+
+
+def reload_user_special_dirs_cache() -> None: ...
+
+
+def rmdir(filename: builtins.str) -> builtins.int: ...
+
+
+def sequence_get(iter: SequenceIter) -> typing.Optional[builtins.object]: ...
+
+
+def sequence_insert_before(iter: SequenceIter, data: typing.Optional[builtins.object]) -> SequenceIter: ...
+
+
+def sequence_move(src: SequenceIter, dest: SequenceIter) -> None: ...
+
+
+def sequence_move_range(dest: SequenceIter, begin: SequenceIter, end: SequenceIter) -> None: ...
+
+
+def sequence_range_get_midpoint(begin: SequenceIter, end: SequenceIter) -> SequenceIter: ...
+
+
+def sequence_remove(iter: SequenceIter) -> None: ...
+
+
+def sequence_remove_range(begin: SequenceIter, end: SequenceIter) -> None: ...
+
+
+def sequence_set(iter: SequenceIter, data: typing.Optional[builtins.object]) -> None: ...
+
+
+def sequence_swap(a: SequenceIter, b: SequenceIter) -> None: ...
+
+
+def set_application_name(application_name: builtins.str) -> None: ...
+
+
+def set_error_literal(domain: builtins.int, code: builtins.int, message: builtins.str) -> Error: ...
+
+
+def set_prgname(prgname: builtins.str) -> None: ...
+
+
+def setenv(variable: builtins.str, value: builtins.str, overwrite: builtins.bool) -> builtins.bool: ...
+
+
+def shell_error_quark() -> builtins.int: ...
+
+
+def shell_parse_argv(command_line: builtins.str) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+
+def shell_quote(unquoted_string: builtins.str) -> builtins.str: ...
+
+
+def shell_unquote(quoted_string: builtins.str) -> builtins.str: ...
+
+
+def slice_alloc(block_size: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def slice_alloc0(block_size: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def slice_copy(block_size: builtins.int, mem_block: typing.Optional[builtins.object]) -> typing.Optional[builtins.object]: ...
+
+
+def slice_free1(block_size: builtins.int, mem_block: typing.Optional[builtins.object]) -> None: ...
+
+
+def slice_free_chain_with_offset(block_size: builtins.int, mem_chain: typing.Optional[builtins.object], next_offset: builtins.int) -> None: ...
+
+
+def slice_get_config(ckey: SliceConfig) -> builtins.int: ...
+
+
+def slice_get_config_state(ckey: SliceConfig, address: builtins.int, n_values: builtins.int) -> builtins.int: ...
+
+
+def slice_set_config(ckey: SliceConfig, value: builtins.int) -> None: ...
+
+
+def source_remove(tag: builtins.int) -> builtins.bool: ...
+
+
+def source_remove_by_funcs_user_data(funcs: SourceFuncs, user_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def source_remove_by_user_data(user_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def source_set_name_by_id(tag: builtins.int, name: builtins.str) -> None: ...
+
+
+def spaced_primes_closest(num: builtins.int) -> builtins.int: ...
+
+
+def spawn_async(working_directory: typing.Optional[builtins.str], argv: typing.Sequence[builtins.str], envp: typing.Optional[typing.Sequence[builtins.str]], flags: SpawnFlags, child_setup: typing.Optional[SpawnChildSetupFunc], *user_data: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+
+def spawn_async_with_fds(working_directory: typing.Optional[builtins.str], argv: typing.Sequence[builtins.str], envp: typing.Optional[typing.Sequence[builtins.str]], flags: SpawnFlags, child_setup: typing.Optional[SpawnChildSetupFunc], user_data: typing.Optional[builtins.object], stdin_fd: builtins.int, stdout_fd: builtins.int, stderr_fd: builtins.int) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+
+def spawn_async_with_pipes(working_directory: typing.Optional[builtins.str], argv: typing.Sequence[builtins.str], envp: typing.Optional[typing.Sequence[builtins.str]], flags: SpawnFlags, child_setup: typing.Optional[SpawnChildSetupFunc], *user_data: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+
+def spawn_check_exit_status(exit_status: builtins.int) -> builtins.bool: ...
+
+
+def spawn_close_pid(pid: builtins.int) -> None: ...
+
+
+def spawn_command_line_async(command_line: builtins.str) -> builtins.bool: ...
+
+
+def spawn_command_line_sync(command_line: builtins.str) -> typing.Tuple[builtins.bool, builtins.bytes, builtins.bytes, builtins.int]: ...
+
+
+def spawn_error_quark() -> builtins.int: ...
+
+
+def spawn_exit_error_quark() -> builtins.int: ...
+
+
+def spawn_sync(working_directory: typing.Optional[builtins.str], argv: typing.Sequence[builtins.str], envp: typing.Optional[typing.Sequence[builtins.str]], flags: SpawnFlags, child_setup: typing.Optional[SpawnChildSetupFunc], *user_data: typing.Optional[builtins.object]) -> typing.Tuple[builtins.bool, builtins.bytes, builtins.bytes, builtins.int]: ...
+
+
+def stpcpy(dest: builtins.str, src: builtins.str) -> builtins.str: ...
+
+
+def str_equal(v1: builtins.object, v2: builtins.object) -> builtins.bool: ...
+
+
+def str_has_prefix(str: builtins.str, prefix: builtins.str) -> builtins.bool: ...
+
+
+def str_has_suffix(str: builtins.str, suffix: builtins.str) -> builtins.bool: ...
+
+
+def str_hash(v: builtins.object) -> builtins.int: ...
+
+
+def str_is_ascii(str: builtins.str) -> builtins.bool: ...
+
+
+def str_match_string(search_term: builtins.str, potential_hit: builtins.str, accept_alternates: builtins.bool) -> builtins.bool: ...
+
+
+def str_to_ascii(str: builtins.str, from_locale: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def str_tokenize_and_fold(string: builtins.str, translit_locale: typing.Optional[builtins.str]) -> typing.Tuple[typing.Sequence[builtins.str], typing.Sequence[builtins.str]]: ...
+
+
+def strcanon(string: builtins.str, valid_chars: builtins.str, substitutor: builtins.int) -> builtins.str: ...
+
+
+def strcasecmp(s1: builtins.str, s2: builtins.str) -> builtins.int: ...
+
+
+def strchomp(string: builtins.str) -> builtins.str: ...
+
+
+def strchug(string: builtins.str) -> builtins.str: ...
+
+
+def strcmp0(str1: typing.Optional[builtins.str], str2: typing.Optional[builtins.str]) -> builtins.int: ...
+
+
+def strcompress(source: builtins.str) -> builtins.str: ...
+
+
+def strdelimit(string: builtins.str, delimiters: typing.Optional[builtins.str], new_delimiter: builtins.int) -> builtins.str: ...
+
+
+def strdown(string: builtins.str) -> builtins.str: ...
+
+
+def strdup(str: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def strerror(errnum: builtins.int) -> builtins.str: ...
+
+
+def strescape(source: builtins.str, exceptions: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def strfreev(str_array: typing.Optional[builtins.str]) -> None: ...
+
+
+def string_new(init: typing.Optional[builtins.str]) -> String: ...
+
+
+def string_new_len(init: builtins.str, len: builtins.int) -> String: ...
+
+
+def string_sized_new(dfl_size: builtins.int) -> String: ...
+
+
+def strip_context(msgid: builtins.str, msgval: builtins.str) -> builtins.str: ...
+
+
+def strjoinv(separator: typing.Optional[builtins.str], str_array: builtins.str) -> builtins.str: ...
+
+
+def strlcat(dest: builtins.str, src: builtins.str, dest_size: builtins.int) -> builtins.int: ...
+
+
+def strlcpy(dest: builtins.str, src: builtins.str, dest_size: builtins.int) -> builtins.int: ...
+
+
+def strncasecmp(s1: builtins.str, s2: builtins.str, n: builtins.int) -> builtins.int: ...
+
+
+def strndup(str: builtins.str, n: builtins.int) -> builtins.str: ...
+
+
+def strnfill(length: builtins.int, fill_char: builtins.int) -> builtins.str: ...
+
+
+def strreverse(string: builtins.str) -> builtins.str: ...
+
+
+def strrstr(haystack: builtins.str, needle: builtins.str) -> builtins.str: ...
+
+
+def strrstr_len(haystack: builtins.str, haystack_len: builtins.int, needle: builtins.str) -> builtins.str: ...
+
+
+def strsignal(signum: builtins.int) -> builtins.str: ...
+
+
+def strstr_len(haystack: builtins.str, haystack_len: builtins.int, needle: builtins.str) -> builtins.str: ...
+
+
+def strtod(nptr: builtins.str) -> typing.Tuple[builtins.float, builtins.str]: ...
+
+
+def strup(string: builtins.str) -> builtins.str: ...
+
+
+def strv_contains(strv: builtins.str, str: builtins.str) -> builtins.bool: ...
+
+
+def strv_equal(strv1: builtins.str, strv2: builtins.str) -> builtins.bool: ...
+
+
+def strv_get_type() -> GObject.GType: ...
+
+
+def strv_length(str_array: builtins.str) -> builtins.int: ...
+
+
+def test_add_data_func(testpath: builtins.str, test_data: typing.Optional[builtins.object], test_func: TestDataFunc) -> None: ...
+
+
+def test_add_data_func_full(testpath: builtins.str, test_data: typing.Optional[builtins.object], test_func: TestDataFunc) -> None: ...
+
+
+def test_add_func(testpath: builtins.str, test_func: TestFunc) -> None: ...
+
+
+def test_assert_expected_messages_internal(domain: builtins.str, file: builtins.str, line: builtins.int, func: builtins.str) -> None: ...
+
+
+def test_bug(bug_uri_snippet: builtins.str) -> None: ...
+
+
+def test_bug_base(uri_pattern: builtins.str) -> None: ...
+
+
+def test_expect_message(log_domain: typing.Optional[builtins.str], log_level: LogLevelFlags, pattern: builtins.str) -> None: ...
+
+
+def test_fail() -> None: ...
+
+
+def test_failed() -> builtins.bool: ...
+
+
+def test_get_dir(file_type: TestFileType) -> builtins.str: ...
+
+
+def test_incomplete(msg: typing.Optional[builtins.str]) -> None: ...
+
+
+def test_log_type_name(log_type: TestLogType) -> builtins.str: ...
+
+
+def test_queue_destroy(destroy_func: DestroyNotify, destroy_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def test_queue_free(gfree_pointer: typing.Optional[builtins.object]) -> None: ...
+
+
+def test_rand_double() -> builtins.float: ...
+
+
+def test_rand_double_range(range_start: builtins.float, range_end: builtins.float) -> builtins.float: ...
+
+
+def test_rand_int() -> builtins.int: ...
+
+
+def test_rand_int_range(begin: builtins.int, end: builtins.int) -> builtins.int: ...
+
+
+def test_run() -> builtins.int: ...
+
+
+def test_run_suite(suite: TestSuite) -> builtins.int: ...
+
+
+def test_set_nonfatal_assertions() -> None: ...
+
+
+def test_skip(msg: typing.Optional[builtins.str]) -> None: ...
+
+
+def test_subprocess() -> builtins.bool: ...
+
+
+def test_summary(summary: builtins.str) -> None: ...
+
+
+def test_timer_elapsed() -> builtins.float: ...
+
+
+def test_timer_last() -> builtins.float: ...
+
+
+def test_timer_start() -> None: ...
+
+
+def test_trap_assertions(domain: builtins.str, file: builtins.str, line: builtins.int, func: builtins.str, assertion_flags: builtins.int, pattern: builtins.str) -> None: ...
+
+
+def test_trap_fork(usec_timeout: builtins.int, test_trap_flags: TestTrapFlags) -> builtins.bool: ...
+
+
+def test_trap_has_passed() -> builtins.bool: ...
+
+
+def test_trap_reached_timeout() -> builtins.bool: ...
+
+
+def test_trap_subprocess(test_path: typing.Optional[builtins.str], usec_timeout: builtins.int, test_flags: TestSubprocessFlags) -> None: ...
+
+
+def thread_error_quark() -> builtins.int: ...
+
+
+def thread_exit(retval: typing.Optional[builtins.object]) -> None: ...
+
+
+def thread_pool_get_max_idle_time() -> builtins.int: ...
+
+
+def thread_pool_get_max_unused_threads() -> builtins.int: ...
+
+
+def thread_pool_get_num_unused_threads() -> builtins.int: ...
+
+
+def thread_pool_set_max_idle_time(interval: builtins.int) -> None: ...
+
+
+def thread_pool_set_max_unused_threads(max_threads: builtins.int) -> None: ...
+
+
+def thread_pool_stop_unused_threads() -> None: ...
+
+
+def thread_self() -> Thread: ...
+
+
+def thread_yield() -> None: ...
+
+
+def time_val_from_iso8601(iso_date: builtins.str) -> typing.Tuple[builtins.bool, TimeVal]: ...
+
+
+def timeout_add(interval: int, function: typing.Callable[..., bool], *data: typing.Optional[object], priority: int = PRIORITY_DEFAULT) -> builtins.int: ...
+
+
+def timeout_add_seconds(interval: int, function: typing.Callable[..., bool], *data: typing.Optional[object], priority: int = PRIORITY_DEFAULT) -> builtins.int: ...
+
+
+def timeout_source_new(interval: builtins.int) -> Source: ...
+
+
+def timeout_source_new_seconds(interval: builtins.int) -> Source: ...
+
+
+def trash_stack_height(stack_p: TrashStack) -> builtins.int: ...
+
+
+def trash_stack_peek(stack_p: TrashStack) -> typing.Optional[builtins.object]: ...
+
+
+def trash_stack_pop(stack_p: TrashStack) -> typing.Optional[builtins.object]: ...
+
+
+def trash_stack_push(stack_p: TrashStack, data_p: builtins.object) -> None: ...
+
+
+def try_malloc(n_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def try_malloc0(n_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def try_malloc0_n(n_blocks: builtins.int, n_block_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def try_malloc_n(n_blocks: builtins.int, n_block_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def try_realloc(mem: typing.Optional[builtins.object], n_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def try_realloc_n(mem: typing.Optional[builtins.object], n_blocks: builtins.int, n_block_bytes: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def ucs4_to_utf16(str: builtins.str, len: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def ucs4_to_utf8(str: builtins.str, len: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+
+def unichar_break_type(c: builtins.str) -> UnicodeBreakType: ...
+
+
+def unichar_combining_class(uc: builtins.str) -> builtins.int: ...
+
+
+def unichar_compose(a: builtins.str, b: builtins.str) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def unichar_decompose(ch: builtins.str) -> typing.Tuple[builtins.bool, builtins.str, builtins.str]: ...
+
+
+def unichar_digit_value(c: builtins.str) -> builtins.int: ...
+
+
+def unichar_fully_decompose(ch: builtins.str, compat: builtins.bool, result_len: builtins.int) -> typing.Tuple[builtins.int, builtins.str]: ...
+
+
+def unichar_get_mirror_char(ch: builtins.str, mirrored_ch: builtins.str) -> builtins.bool: ...
+
+
+def unichar_get_script(ch: builtins.str) -> UnicodeScript: ...
+
+
+def unichar_isalnum(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isalpha(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_iscntrl(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isdefined(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isdigit(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isgraph(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_islower(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_ismark(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isprint(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_ispunct(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isspace(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_istitle(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isupper(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_iswide(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_iswide_cjk(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_isxdigit(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_iszerowidth(c: builtins.str) -> builtins.bool: ...
+
+
+def unichar_to_utf8(c: builtins.str) -> typing.Tuple[builtins.int, builtins.str]: ...
+
+
+def unichar_tolower(c: builtins.str) -> builtins.str: ...
+
+
+def unichar_totitle(c: builtins.str) -> builtins.str: ...
+
+
+def unichar_toupper(c: builtins.str) -> builtins.str: ...
+
+
+def unichar_type(c: builtins.str) -> UnicodeType: ...
+
+
+def unichar_validate(ch: builtins.str) -> builtins.bool: ...
+
+
+def unichar_xdigit_value(c: builtins.str) -> builtins.int: ...
+
+
+def unicode_canonical_decomposition(ch: builtins.str, result_len: builtins.int) -> builtins.str: ...
+
+
+def unicode_canonical_ordering(string: builtins.str, len: builtins.int) -> None: ...
+
+
+def unicode_script_from_iso15924(iso15924: builtins.int) -> UnicodeScript: ...
+
+
+def unicode_script_to_iso15924(script: UnicodeScript) -> builtins.int: ...
+
+
+def unix_error_quark() -> builtins.int: ...
+
+
+def unix_fd_add_full(priority: builtins.int, fd: builtins.int, condition: IOCondition, function: UnixFDSourceFunc, *user_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def unix_fd_source_new(fd: builtins.int, condition: IOCondition) -> Source: ...
+
+
+def unix_get_passwd_entry(user_name: builtins.str) -> typing.Optional[builtins.object]: ...
+
+
+def unix_open_pipe(fds: builtins.int, flags: builtins.int) -> builtins.bool: ...
+
+
+def unix_set_fd_nonblocking(fd: builtins.int, nonblock: builtins.bool) -> builtins.bool: ...
+
+
+def unix_signal_add(priority: builtins.int, signum: builtins.int, handler: SourceFunc, *user_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def unix_signal_source_new(signum: builtins.int) -> Source: ...
+
+
+def unlink(filename: builtins.str) -> builtins.int: ...
+
+
+def unsetenv(variable: builtins.str) -> None: ...
+
+
+def uri_escape_string(unescaped: builtins.str, reserved_chars_allowed: typing.Optional[builtins.str], allow_utf8: builtins.bool) -> builtins.str: ...
+
+
+def uri_list_extract_uris(uri_list: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+
+def uri_parse_scheme(uri: builtins.str) -> builtins.str: ...
+
+
+def uri_unescape_segment(escaped_string: typing.Optional[builtins.str], escaped_string_end: typing.Optional[builtins.str], illegal_characters: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def uri_unescape_string(escaped_string: builtins.str, illegal_characters: typing.Optional[builtins.str]) -> builtins.str: ...
+
+
+def usleep(microseconds: builtins.int) -> None: ...
+
+
+def utf16_to_ucs4(str: builtins.int, len: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+
+def utf16_to_utf8(str: builtins.int, len: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+
+def utf8_casefold(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def utf8_collate(str1: builtins.str, str2: builtins.str) -> builtins.int: ...
+
+
+def utf8_collate_key(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def utf8_collate_key_for_filename(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def utf8_find_next_char(p: builtins.str, end: typing.Optional[builtins.str]) -> typing.Optional[builtins.str]: ...
+
+
+def utf8_find_prev_char(str: builtins.str, p: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def utf8_get_char(p: builtins.str) -> builtins.str: ...
+
+
+def utf8_get_char_validated(p: builtins.str, max_len: builtins.int) -> builtins.str: ...
+
+
+def utf8_make_valid(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def utf8_normalize(str: builtins.str, len: builtins.int, mode: NormalizeMode) -> typing.Optional[builtins.str]: ...
+
+
+def utf8_offset_to_pointer(str: builtins.str, offset: builtins.int) -> builtins.str: ...
+
+
+def utf8_pointer_to_offset(str: builtins.str, pos: builtins.str) -> builtins.int: ...
+
+
+def utf8_prev_char(p: builtins.str) -> builtins.str: ...
+
+
+def utf8_strchr(p: builtins.str, len: builtins.int, c: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def utf8_strdown(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def utf8_strlen(p: builtins.str, max: builtins.int) -> builtins.int: ...
+
+
+def utf8_strncpy(dest: builtins.str, src: builtins.str, n: builtins.int) -> builtins.str: ...
+
+
+def utf8_strrchr(p: builtins.str, len: builtins.int, c: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def utf8_strreverse(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def utf8_strup(str: builtins.str, len: builtins.int) -> builtins.str: ...
+
+
+def utf8_substring(str: builtins.str, start_pos: builtins.int, end_pos: builtins.int) -> builtins.str: ...
+
+
+def utf8_to_ucs4(str: builtins.str, len: builtins.int) -> typing.Tuple[builtins.str, builtins.int, builtins.int]: ...
+
+
+def utf8_to_ucs4_fast(str: builtins.str, len: builtins.int) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+
+def utf8_to_utf16(str: builtins.str, len: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def utf8_validate(str: builtins.bytes) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def utf8_validate_len(str: builtins.bytes) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def uuid_string_is_valid(str: builtins.str) -> builtins.bool: ...
+
+
+def uuid_string_random() -> builtins.str: ...
+
+
+def variant_get_gtype() -> GObject.GType: ...
+
+
+def variant_is_object_path(string: builtins.str) -> builtins.bool: ...
+
+
+def variant_is_signature(string: builtins.str) -> builtins.bool: ...
+
+
+def variant_parse(type: typing.Optional[VariantType], text: builtins.str, limit: typing.Optional[builtins.str], endptr: typing.Optional[builtins.str]) -> Variant: ...
+
+
+def variant_parse_error_print_context(error: Error, source_str: builtins.str) -> builtins.str: ...
+
+
+def variant_parse_error_quark() -> builtins.int: ...
+
+
+def variant_parser_get_error_quark() -> builtins.int: ...
+
+
+def variant_type_checked_(arg0: builtins.str) -> VariantType: ...
+
+
+def variant_type_string_get_depth_(type_string: builtins.str) -> builtins.int: ...
+
+
+def variant_type_string_is_valid(type_string: builtins.str) -> builtins.bool: ...
+
+
+def variant_type_string_scan(string: builtins.str, limit: typing.Optional[builtins.str]) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+ANALYZER_ANALYZING: builtins.int
+ASCII_DTOSTR_BUF_SIZE: builtins.int
+BIG_ENDIAN: builtins.int
+CSET_A_2_Z: builtins.str
+CSET_DIGITS: builtins.str
+CSET_a_2_z: builtins.str
+DATALIST_FLAGS_MASK: builtins.int
+DATE_BAD_DAY: builtins.int
+DATE_BAD_JULIAN: builtins.int
+DATE_BAD_YEAR: builtins.int
+DIR_SEPARATOR: builtins.int
+DIR_SEPARATOR_S: builtins.str
+E: builtins.float
+GINT16_FORMAT: builtins.str
+GINT16_MODIFIER: builtins.str
+GINT32_FORMAT: builtins.str
+GINT32_MODIFIER: builtins.str
+GINT64_FORMAT: builtins.str
+GINT64_MODIFIER: builtins.str
+GINTPTR_FORMAT: builtins.str
+GINTPTR_MODIFIER: builtins.str
+GNUC_FUNCTION: builtins.str
+GNUC_PRETTY_FUNCTION: builtins.str
+GSIZE_FORMAT: builtins.str
+GSIZE_MODIFIER: builtins.str
+GSSIZE_FORMAT: builtins.str
+GSSIZE_MODIFIER: builtins.str
+GUINT16_FORMAT: builtins.str
+GUINT32_FORMAT: builtins.str
+GUINT64_FORMAT: builtins.str
+GUINTPTR_FORMAT: builtins.str
+HAVE_GINT64: builtins.int
+HAVE_GNUC_VARARGS: builtins.int
+HAVE_GNUC_VISIBILITY: builtins.int
+HAVE_GROWING_STACK: builtins.int
+HAVE_ISO_VARARGS: builtins.int
+HOOK_FLAG_USER_SHIFT: builtins.int
+IEEE754_DOUBLE_BIAS: builtins.int
+IEEE754_FLOAT_BIAS: builtins.int
+IO_ERR: IOCondition
+IO_FLAG_APPEND: IOFlags
+IO_FLAG_GET_MASK: IOFlags
+IO_FLAG_IS_READABLE: IOFlags
+IO_FLAG_IS_SEEKABLE: IOFlags
+IO_FLAG_IS_WRITEABLE: IOFlags
+IO_FLAG_MASK: IOFlags
+IO_FLAG_NONBLOCK: IOFlags
+IO_FLAG_SET_MASK: IOFlags
+IO_HUP: IOCondition
+IO_IN: IOCondition
+IO_NVAL: IOCondition
+IO_OUT: IOCondition
+IO_PRI: IOCondition
+IO_STATUS_AGAIN: IOStatus
+IO_STATUS_EOF: IOStatus
+IO_STATUS_ERROR: IOStatus
+IO_STATUS_NORMAL: IOStatus
+KEY_FILE_DESKTOP_GROUP: builtins.str
+KEY_FILE_DESKTOP_KEY_ACTIONS: builtins.str
+KEY_FILE_DESKTOP_KEY_CATEGORIES: builtins.str
+KEY_FILE_DESKTOP_KEY_COMMENT: builtins.str
+KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE: builtins.str
+KEY_FILE_DESKTOP_KEY_EXEC: builtins.str
+KEY_FILE_DESKTOP_KEY_GENERIC_NAME: builtins.str
+KEY_FILE_DESKTOP_KEY_HIDDEN: builtins.str
+KEY_FILE_DESKTOP_KEY_ICON: builtins.str
+KEY_FILE_DESKTOP_KEY_MIME_TYPE: builtins.str
+KEY_FILE_DESKTOP_KEY_NAME: builtins.str
+KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN: builtins.str
+KEY_FILE_DESKTOP_KEY_NO_DISPLAY: builtins.str
+KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN: builtins.str
+KEY_FILE_DESKTOP_KEY_PATH: builtins.str
+KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY: builtins.str
+KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS: builtins.str
+KEY_FILE_DESKTOP_KEY_TERMINAL: builtins.str
+KEY_FILE_DESKTOP_KEY_TRY_EXEC: builtins.str
+KEY_FILE_DESKTOP_KEY_TYPE: builtins.str
+KEY_FILE_DESKTOP_KEY_URL: builtins.str
+KEY_FILE_DESKTOP_KEY_VERSION: builtins.str
+KEY_FILE_DESKTOP_TYPE_APPLICATION: builtins.str
+KEY_FILE_DESKTOP_TYPE_DIRECTORY: builtins.str
+KEY_FILE_DESKTOP_TYPE_LINK: builtins.str
+LITTLE_ENDIAN: builtins.int
+LN10: builtins.float
+LN2: builtins.float
+LOG_2_BASE_10: builtins.float
+LOG_DOMAIN: builtins.int
+LOG_FATAL_MASK: builtins.int
+LOG_LEVEL_USER_SHIFT: builtins.int
+MAJOR_VERSION: builtins.int
+MAXDOUBLE: builtins.float
+MAXFLOAT: builtins.float
+MAXINT: builtins.int
+MAXINT16: builtins.int
+MAXINT32: builtins.int
+MAXINT64: builtins.int
+MAXINT8: builtins.int
+MAXLONG: builtins.int
+MAXOFFSET: builtins.int
+MAXSHORT: builtins.int
+MAXSIZE: builtins.int
+MAXSSIZE: builtins.int
+MAXUINT: builtins.int
+MAXUINT16: builtins.int
+MAXUINT32: builtins.int
+MAXUINT64: builtins.int
+MAXUINT8: builtins.int
+MAXULONG: builtins.int
+MAXUSHORT: builtins.int
+MICRO_VERSION: builtins.int
+MINDOUBLE: builtins.float
+MINFLOAT: builtins.float
+MININT: builtins.int
+MININT16: builtins.int
+MININT32: builtins.int
+MININT64: builtins.int
+MININT8: builtins.int
+MINLONG: builtins.int
+MINOFFSET: builtins.int
+MINOR_VERSION: builtins.int
+MINSHORT: builtins.int
+MINSSIZE: builtins.int
+MODULE_SUFFIX: builtins.str
+OPTION_ERROR_BAD_VALUE: OptionError
+OPTION_ERROR_FAILED: OptionError
+OPTION_ERROR_UNKNOWN_OPTION: OptionError
+OPTION_FLAG_FILENAME: OptionFlags
+OPTION_FLAG_HIDDEN: OptionFlags
+OPTION_FLAG_IN_MAIN: OptionFlags
+OPTION_FLAG_NOALIAS: OptionFlags
+OPTION_FLAG_NO_ARG: OptionFlags
+OPTION_FLAG_OPTIONAL_ARG: OptionFlags
+OPTION_FLAG_REVERSE: OptionFlags
+OPTION_REMAINING: builtins.str
+PDP_ENDIAN: builtins.int
+PI: builtins.float
+PID_FORMAT: builtins.str
+PI_2: builtins.float
+PI_4: builtins.float
+POLLFD_FORMAT: builtins.str
+PRIORITY_DEFAULT: builtins.int
+PRIORITY_DEFAULT_IDLE: builtins.int
+PRIORITY_HIGH: builtins.int
+PRIORITY_HIGH_IDLE: builtins.int
+PRIORITY_LOW: builtins.int
+SEARCHPATH_SEPARATOR: builtins.int
+SEARCHPATH_SEPARATOR_S: builtins.str
+SIZEOF_LONG: builtins.int
+SIZEOF_SIZE_T: builtins.int
+SIZEOF_SSIZE_T: builtins.int
+SIZEOF_VOID_P: builtins.int
+SOURCE_CONTINUE: builtins.int
+SOURCE_REMOVE: builtins.int
+SPAWN_CHILD_INHERITS_STDIN: SpawnFlags
+SPAWN_DO_NOT_REAP_CHILD: SpawnFlags
+SPAWN_FILE_AND_ARGV_ZERO: SpawnFlags
+SPAWN_LEAVE_DESCRIPTORS_OPEN: SpawnFlags
+SPAWN_SEARCH_PATH: SpawnFlags
+SPAWN_STDERR_TO_DEV_NULL: SpawnFlags
+SPAWN_STDOUT_TO_DEV_NULL: SpawnFlags
+SQRT2: builtins.float
+STR_DELIMITERS: builtins.str
+SYSDEF_AF_INET: builtins.int
+SYSDEF_AF_INET6: builtins.int
+SYSDEF_AF_UNIX: builtins.int
+SYSDEF_MSG_DONTROUTE: builtins.int
+SYSDEF_MSG_OOB: builtins.int
+SYSDEF_MSG_PEEK: builtins.int
+TEST_OPTION_ISOLATE_DIRS: builtins.str
+TIME_SPAN_DAY: builtins.int
+TIME_SPAN_HOUR: builtins.int
+TIME_SPAN_MILLISECOND: builtins.int
+TIME_SPAN_MINUTE: builtins.int
+TIME_SPAN_SECOND: builtins.int
+UNICHAR_MAX_DECOMPOSITION_LENGTH: builtins.int
+URI_RESERVED_CHARS_GENERIC_DELIMITERS: builtins.str
+URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS: builtins.str
+USEC_PER_SEC: builtins.int
+USER_DIRECTORY_DESKTOP: UserDirectory
+USER_DIRECTORY_DOCUMENTS: UserDirectory
+USER_DIRECTORY_DOWNLOAD: UserDirectory
+USER_DIRECTORY_MUSIC: UserDirectory
+USER_DIRECTORY_PICTURES: UserDirectory
+USER_DIRECTORY_PUBLIC_SHARE: UserDirectory
+USER_DIRECTORY_TEMPLATES: UserDirectory
+USER_DIRECTORY_VIDEOS: UserDirectory
+VA_COPY_AS_ARRAY: builtins.int
+VERSION_MIN_REQUIRED: builtins.int
+WIN32_MSG_HANDLE: builtins.int
+glib_version: typing.Tuple[int, int, int]
+pyglib_version: typing.Tuple[int, int, int]
diff --git a/stubs/gi/repository/GModule.pyi b/stubs/gi/repository/GModule.pyi
new file mode 100644
index 000000000..a8ef4959f
--- /dev/null
+++ b/stubs/gi/repository/GModule.pyi
@@ -0,0 +1,45 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+
+
+class Module():
+
+ @staticmethod
+ def build_path(directory: typing.Optional[builtins.str], module_name: builtins.str) -> builtins.str: ...
+
+ def close(self) -> builtins.bool: ...
+
+ @staticmethod
+ def error() -> builtins.str: ...
+
+ def make_resident(self) -> None: ...
+
+ def name(self) -> builtins.str: ...
+
+ @staticmethod
+ def supported() -> builtins.bool: ...
+
+ def symbol(self, symbol_name: builtins.str) -> typing.Tuple[builtins.bool, builtins.object]: ...
+
+
+class ModuleFlags(GLib.Flags, builtins.int):
+ LAZY = ... # type: ModuleFlags
+ LOCAL = ... # type: ModuleFlags
+ MASK = ... # type: ModuleFlags
+
+
+ModuleCheckInit = typing.Callable[[Module], builtins.str]
+ModuleUnload = typing.Callable[[Module], None]
+
+
+def module_build_path(directory: typing.Optional[builtins.str], module_name: builtins.str) -> builtins.str: ...
+
+
+def module_error() -> builtins.str: ...
+
+
+def module_supported() -> builtins.bool: ...
+
+
diff --git a/stubs/gi/repository/GObject.pyi b/stubs/gi/repository/GObject.pyi
new file mode 100644
index 000000000..67e0f597c
--- /dev/null
+++ b/stubs/gi/repository/GObject.pyi
@@ -0,0 +1,1590 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+
+
+# TODO: Constrain T if possible. Builtins + GTypes might be sufficient?
+T = typing.TypeVar('T')
+
+PropertyGetterFn = typing.Callable[[typing.Any], T]
+PropertySetterFn = typing.Callable[[typing.Any, T], None]
+
+
+class Property(typing.Generic[T]):
+
+ name: typing.Optional[str]
+ type: typing.Type[T]
+ default: typing.Optional[T]
+ nick: str
+ blurb: str
+ flags: ParamFlags
+ minimum: typing.Optional[T]
+ maximum: typing.Optional[T]
+
+ def __init__(
+ self,
+ getter: typing.Optional[PropertyGetterFn[T]] = None,
+ setter: typing.Optional[PropertySetterFn[T]] = None,
+ type: typing.Optional[typing.Type[T]] = None,
+ default: typing.Optional[T] = None,
+ nick: str = '',
+ blurb: str = '',
+ flags: ParamFlags = ParamFlags.READWRITE,
+ minimum: typing.Optional[T] = None,
+ maximum: typing.Optional[T] = None,
+ ) -> None:
+ ...
+
+ def __get__(self, instance: typing.Any, klass: typing.Type[T]) -> T:
+ ...
+
+ def __set__(self, instance: typing.Any, value: T) -> None:
+ ...
+
+ def __call__(self, fget: PropertyGetterFn[T]) -> Property[T]:
+ ...
+
+ def getter(self: Property[T], fget: PropertyGetterFn[T]) -> Property[T]:
+ ...
+
+ def setter(self: Property[T], fset: PropertySetterFn[T]) -> Property[T]:
+ ...
+
+ # TODO: There's three Tuple variant structures that could be
+ # returned here, and they're all unpleasantly complicated.
+ def get_pspec_args(self) -> typing.Sequence[typing.Any]:
+ ...
+
+
+class GType():
+ pass
+
+class GInterface():
+ ...
+
+
+class Object():
+ Property = Property
+ g_type_instance: TypeInstance
+ qdata: GLib.Data
+ ref_count: builtins.int
+
+ def bind_property(self, source_property: builtins.str, target: Object, target_property: builtins.str, flags: BindingFlags) -> Binding: ...
+
+ def bind_property_full(self, source_property: builtins.str, target: Object, target_property: builtins.str, flags: BindingFlags, transform_to: Closure, transform_from: Closure) -> Binding: ...
+
+ @staticmethod
+ def compat_control(what: builtins.int, data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ T = typing.TypeVar("T")
+ T1 = typing.TypeVar("T1")
+ T2 = typing.TypeVar("T2")
+ T3 = typing.TypeVar("T3")
+
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T], typing.Any]) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any], typing.Any]) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, typing.Any], typing.Any]) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, typing.Any, typing.Any], typing.Any]) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, typing.Any, typing.Any, typing.Any], typing.Any]) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, typing.Any, typing.Any, typing.Any, typing.Any], typing.Any]) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, typing.Any, typing.Any, typing.Any, typing.Any, typing.Any], typing.Any]) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, T1], typing.Any], user_data1: T1) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, T1], typing.Any], user_data1: T1) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, typing.Any, T1], typing.Any], user_data1: T1) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, typing.Any, typing.Any, T1], typing.Any], user_data1: T1) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, T1, T2], typing.Any], user_data1: T1, user_data2: T2) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, typing.Any, T1, T2], typing.Any], user_data1: T1, user_data2: T2) -> int: ...
+ @typing.overload
+ def connect(self: T, detailed_signal: str, handler: typing.Callable[[T, T1, T2, T3], typing.Any], user_data1: T1, user_data2: T2, user_data3: T3) -> int: ...
+
+ def connect_after(self, detailed_signal: builtins.str, handler: function, *args: typing.Any) -> builtins.int: ...
+
+ def disconnect(self, handler_id: int) -> None: ...
+
+ def emit(self, signal_name: builtins.str, *args: typing.Any) -> None: ...
+
+ def force_floating(self) -> None: ...
+
+ def freeze_notify(self) -> None: ...
+
+ def get_data(self, key: builtins.str) -> typing.Optional[builtins.object]: ...
+
+ def get_property(self, property_name: builtins.str) -> builtins.object: ...
+
+ def get_qdata(self, quark: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def getv(self, names: typing.Sequence[builtins.str], values: typing.Sequence[Value]) -> None: ...
+
+ def handler_block(self, handler_id: builtins.int) -> None: ...
+
+ def handler_is_connected(self, handler_id: int) -> bool: ...
+
+ def handler_unblock(self, handler_id: builtins.int) -> None: ...
+
+ @staticmethod
+ def interface_find_property(g_iface: TypeInterface, property_name: builtins.str) -> ParamSpec: ...
+
+ @staticmethod
+ def interface_install_property(g_iface: TypeInterface, pspec: ParamSpec) -> None: ...
+
+ @staticmethod
+ def interface_list_properties(g_iface: TypeInterface) -> typing.Sequence[ParamSpec]: ...
+
+ def is_floating(self) -> builtins.bool: ...
+
+ def notify(self, property_name: builtins.str) -> None: ...
+
+ def notify_by_pspec(self, pspec: ParamSpec) -> None: ...
+
+ def ref(self) -> Object: ...
+
+ def ref_sink(self) -> Object: ...
+
+ def run_dispose(self) -> None: ...
+
+ def set_data(self, key: builtins.str, data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_property(self, property_name: builtins.str, value: builtins.object) -> None: ...
+
+ def set_properties(self, **properties: object) -> None: ...
+
+ def steal_data(self, key: builtins.str) -> typing.Optional[builtins.object]: ...
+
+ def steal_qdata(self, quark: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def stop_emission(self, detailed_signal: str) -> None: ...
+
+ def thaw_notify(self) -> None: ...
+
+ def unref(self) -> None: ...
+
+ def watch_closure(self, closure: Closure) -> None: ...
+
+ @staticmethod
+ def find_property(property_name: builtins.str) -> ParamSpec: ...
+
+ @staticmethod
+ def install_properties(pspecs: typing.Sequence[ParamSpec]) -> None: ...
+
+ @staticmethod
+ def install_property(property_id: builtins.int, pspec: ParamSpec) -> None: ...
+
+ @staticmethod
+ def list_properties() -> typing.Sequence[ParamSpec]: ...
+
+ @staticmethod
+ def override_property(property_id: builtins.int, name: builtins.str) -> None: ...
+
+ def do_constructed(self) -> None: ...
+
+ def do_dispatch_properties_changed(self, n_pspecs: builtins.int, pspecs: ParamSpec) -> None: ...
+
+ def do_dispose(self) -> None: ...
+
+ def do_finalize(self) -> None: ...
+
+ def do_get_property(self, property_id: builtins.int, value: Value, pspec: ParamSpec) -> None: ...
+
+ def do_notify(self, pspec: ParamSpec) -> None: ...
+
+ def do_set_property(self, property_id: builtins.int, value: Value, pspec: ParamSpec) -> None: ...
+
+
+class ParamSpec():
+ flags: ParamFlags
+ g_type_instance: TypeInstance
+ name: builtins.str
+ owner_type: GType
+ param_id: builtins.int
+ qdata: GLib.Data
+ ref_count: builtins.int
+ value_type: GType
+
+ def get_blurb(self) -> builtins.str: ...
+
+ def get_default_value(self) -> Value: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_name_quark(self) -> builtins.int: ...
+
+ def get_nick(self) -> builtins.str: ...
+
+ def get_qdata(self, quark: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def get_redirect_target(self) -> ParamSpec: ...
+
+ def set_qdata(self, quark: builtins.int, data: typing.Optional[builtins.object]) -> None: ...
+
+ def sink(self) -> None: ...
+
+ def steal_qdata(self, quark: builtins.int) -> typing.Optional[builtins.object]: ...
+
+ def do_finalize(self) -> None: ...
+
+ def do_value_set_default(self, value: Value) -> None: ...
+
+ def do_value_validate(self, value: Value) -> builtins.bool: ...
+
+ def do_values_cmp(self, value1: Value, value2: Value) -> builtins.int: ...
+
+
+class TypePlugin(GInterface):
+
+ def complete_interface_info(self, instance_type: GType, interface_type: GType, info: InterfaceInfo) -> None: ...
+
+ def complete_type_info(self, g_type: GType, info: TypeInfo, value_table: TypeValueTable) -> None: ...
+
+ def unuse(self) -> None: ...
+
+ def use(self) -> None: ...
+
+
+class Binding(Object):
+
+ def get_flags(self) -> BindingFlags: ...
+
+ def get_source(self) -> Object: ...
+
+ def get_source_property(self) -> builtins.str: ...
+
+ def get_target(self) -> Object: ...
+
+ def get_target_property(self) -> builtins.str: ...
+
+ def unbind(self) -> None: ...
+
+
+class InitiallyUnowned(Object):
+ g_type_instance: TypeInstance
+ qdata: GLib.Data
+ ref_count: builtins.int
+
+
+class ParamSpecBoolean(ParamSpec):
+ default_value: builtins.bool
+ parent_instance: ParamSpec
+
+
+class ParamSpecBoxed(ParamSpec):
+ parent_instance: ParamSpec
+
+
+class ParamSpecChar(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecDouble(ParamSpec):
+ default_value: builtins.float
+ epsilon: builtins.float
+ maximum: builtins.float
+ minimum: builtins.float
+ parent_instance: ParamSpec
+
+
+class ParamSpecEnum(ParamSpec):
+ default_value: builtins.int
+ enum_class: EnumClass
+ parent_instance: ParamSpec
+
+
+class ParamSpecFlags(ParamSpec):
+ default_value: builtins.int
+ flags_class: FlagsClass
+ parent_instance: ParamSpec
+
+
+class ParamSpecFloat(ParamSpec):
+ default_value: builtins.float
+ epsilon: builtins.float
+ maximum: builtins.float
+ minimum: builtins.float
+ parent_instance: ParamSpec
+
+
+class ParamSpecGType(ParamSpec):
+ is_a_type: GType
+ parent_instance: ParamSpec
+
+
+class ParamSpecInt(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecInt64(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecLong(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecObject(ParamSpec):
+ parent_instance: ParamSpec
+
+
+class ParamSpecOverride(ParamSpec):
+ overridden: ParamSpec
+ parent_instance: ParamSpec
+
+
+class ParamSpecParam(ParamSpec):
+ parent_instance: ParamSpec
+
+
+class ParamSpecPointer(ParamSpec):
+ parent_instance: ParamSpec
+
+
+class ParamSpecString(ParamSpec):
+ cset_first: builtins.str
+ cset_nth: builtins.str
+ default_value: builtins.str
+ ensure_non_null: builtins.int
+ null_fold_if_empty: builtins.int
+ parent_instance: ParamSpec
+ substitutor: builtins.int
+
+
+class ParamSpecUChar(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecUInt(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecUInt64(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecULong(ParamSpec):
+ default_value: builtins.int
+ maximum: builtins.int
+ minimum: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecUnichar(ParamSpec):
+ default_value: builtins.str
+ parent_instance: ParamSpec
+
+
+class ParamSpecValueArray(ParamSpec):
+ element_spec: ParamSpec
+ fixed_n_elements: builtins.int
+ parent_instance: ParamSpec
+
+
+class ParamSpecVariant(ParamSpec):
+ default_value: GLib.Variant
+ padding: typing.Sequence[builtins.object]
+ parent_instance: ParamSpec
+ type: GLib.VariantType
+
+
+class TypeModule(Object, TypePlugin):
+ interface_infos: typing.Sequence[builtins.object]
+ name: builtins.str
+ parent_instance: Object
+ type_infos: typing.Sequence[builtins.object]
+ use_count: builtins.int
+
+ def add_interface(self, instance_type: GType, interface_type: GType, interface_info: InterfaceInfo) -> None: ...
+
+ def register_enum(self, name: builtins.str, const_static_values: EnumValue) -> GType: ...
+
+ def register_flags(self, name: builtins.str, const_static_values: FlagsValue) -> GType: ...
+
+ def register_type(self, parent_type: GType, type_name: builtins.str, type_info: TypeInfo, flags: TypeFlags) -> GType: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+ def unuse(self) -> None: ...
+
+ def use(self) -> builtins.bool: ... # type: ignore
+
+ def do_load(self) -> builtins.bool: ...
+
+ def do_unload(self) -> None: ...
+
+
+class CClosure():
+ callback: builtins.object
+ closure: Closure
+
+ @staticmethod
+ def marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_BOOLEAN__FLAGS(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__BOOLEAN(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__BOXED(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__CHAR(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__DOUBLE(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__ENUM(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__FLAGS(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__FLOAT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__INT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__LONG(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__OBJECT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__PARAM(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__POINTER(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__STRING(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__UCHAR(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__UINT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__UINT_POINTER(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__ULONG(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__VARIANT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_VOID__VOID(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def marshal_generic(closure: Closure, return_gvalue: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+class Closure():
+ data: builtins.object
+ derivative_flag: builtins.int
+ floating: builtins.int
+ in_inotify: builtins.int
+ in_marshal: builtins.int
+ is_invalid: builtins.int
+ marshal: builtins.object
+ meta_marshal_nouse: builtins.int
+ n_fnotifiers: builtins.int
+ n_guards: builtins.int
+ n_inotifiers: builtins.int
+ notifiers: ClosureNotifyData
+ ref_count: builtins.int
+
+ def invalidate(self) -> None: ...
+
+ def invoke(self, param_values: typing.Sequence[Value], invocation_hint: typing.Optional[builtins.object]) -> Value: ...
+
+ @staticmethod
+ def new_object(sizeof_closure: builtins.int, object: Object) -> Closure: ...
+
+ @staticmethod
+ def new_simple(sizeof_closure: builtins.int, data: typing.Optional[builtins.object]) -> Closure: ...
+
+ def ref(self) -> Closure: ...
+
+ def sink(self) -> None: ...
+
+ def unref(self) -> None: ...
+
+
+class ClosureNotifyData():
+ data: builtins.object
+ notify: ClosureNotify
+
+
+class EnumClass():
+ g_type_class: TypeClass
+ maximum: builtins.int
+ minimum: builtins.int
+ n_values: builtins.int
+ values: EnumValue
+
+
+class EnumValue():
+ value: builtins.int
+ value_name: builtins.str
+ value_nick: builtins.str
+
+
+class FlagsClass():
+ g_type_class: TypeClass
+ mask: builtins.int
+ n_values: builtins.int
+ values: FlagsValue
+
+
+class FlagsValue():
+ value: builtins.int
+ value_name: builtins.str
+ value_nick: builtins.str
+
+
+class InterfaceInfo():
+ interface_data: builtins.object
+ interface_finalize: InterfaceFinalizeFunc
+ interface_init: InterfaceInitFunc
+
+
+class ObjectConstructParam():
+ pspec: ParamSpec
+ value: Value
+
+
+class ParamSpecPool():
+
+ def insert(self, pspec: ParamSpec, owner_type: GType) -> None: ...
+
+ def list(self, owner_type: GType) -> typing.Sequence[ParamSpec]: ...
+
+ def list_owned(self, owner_type: GType) -> typing.Sequence[ParamSpec]: ...
+
+ def lookup(self, param_name: builtins.str, owner_type: GType, walk_ancestors: builtins.bool) -> ParamSpec: ...
+
+ @staticmethod
+ def new(type_prefixing: builtins.bool) -> ParamSpecPool: ...
+
+ def remove(self, pspec: ParamSpec) -> None: ...
+
+
+class ParamSpecTypeInfo():
+ finalize: builtins.object
+ instance_init: builtins.object
+ instance_size: builtins.int
+ n_preallocs: builtins.int
+ value_set_default: builtins.object
+ value_type: GType
+ value_validate: builtins.object
+ values_cmp: builtins.object
+
+
+class Parameter():
+ name: builtins.str
+ value: Value
+
+
+class SignalInvocationHint():
+ detail: builtins.int
+ run_type: SignalFlags
+ signal_id: builtins.int
+
+
+class SignalQuery():
+ itype: GType
+ n_params: builtins.int
+ param_types: typing.Sequence[GType]
+ return_type: GType
+ signal_flags: SignalFlags
+ signal_id: builtins.int
+ signal_name: builtins.str
+
+
+class TypeClass():
+ g_type: GType
+
+ def add_private(self, private_size: builtins.int) -> None: ...
+
+ @staticmethod
+ def adjust_private_offset(g_class: typing.Optional[builtins.object], private_size_or_offset: builtins.int) -> None: ...
+
+ def get_private(self, private_type: GType) -> typing.Optional[builtins.object]: ...
+
+ @staticmethod
+ def peek(type: GType) -> TypeClass: ...
+
+ def peek_parent(self) -> TypeClass: ...
+
+ @staticmethod
+ def peek_static(type: GType) -> TypeClass: ...
+
+ @staticmethod
+ def ref(type: GType) -> TypeClass: ...
+
+ def unref(self) -> None: ...
+
+
+class TypeFundamentalInfo():
+ type_flags: TypeFundamentalFlags
+
+
+class TypeInfo():
+ base_finalize: BaseFinalizeFunc
+ base_init: BaseInitFunc
+ class_data: builtins.object
+ class_finalize: ClassFinalizeFunc
+ class_init: ClassInitFunc
+ class_size: builtins.int
+ instance_init: InstanceInitFunc
+ instance_size: builtins.int
+ n_preallocs: builtins.int
+ value_table: TypeValueTable
+
+
+class TypeInstance():
+ g_class: TypeClass
+
+ def get_private(self, private_type: GType) -> typing.Optional[builtins.object]: ...
+
+
+class TypeInterface():
+ g_instance_type: GType
+ g_type: GType
+
+ @staticmethod
+ def add_prerequisite(interface_type: GType, prerequisite_type: GType) -> None: ...
+
+ @staticmethod
+ def get_plugin(instance_type: GType, interface_type: GType) -> TypePlugin: ...
+
+ @staticmethod
+ def peek(instance_class: TypeClass, iface_type: GType) -> TypeInterface: ...
+
+ def peek_parent(self) -> TypeInterface: ...
+
+ @staticmethod
+ def prerequisites(interface_type: GType) -> typing.Sequence[GType]: ...
+
+
+class TypePluginClass():
+ base_iface: TypeInterface
+ complete_interface_info: TypePluginCompleteInterfaceInfo
+ complete_type_info: TypePluginCompleteTypeInfo
+ unuse_plugin: TypePluginUnuse
+ use_plugin: TypePluginUse
+
+
+class TypeQuery():
+ class_size: builtins.int
+ instance_size: builtins.int
+ type: GType
+ type_name: builtins.str
+
+
+class TypeValueTable():
+ collect_format: builtins.str
+ collect_value: builtins.object
+ lcopy_format: builtins.str
+ lcopy_value: builtins.object
+ value_copy: builtins.object
+ value_free: builtins.object
+ value_init: builtins.object
+ value_peek_pointer: builtins.object
+
+
+class Value():
+ g_type: GType
+
+ def copy(self, dest_value: Value) -> None: ...
+
+ def dup_object(self) -> Object: ...
+
+ def dup_string(self) -> builtins.str: ...
+
+ def dup_variant(self) -> typing.Optional[GLib.Variant]: ...
+
+ def fits_pointer(self) -> builtins.bool: ...
+
+ def get_boolean(self) -> builtins.bool: ...
+
+ def get_boxed(self) -> typing.Optional[builtins.object]: ...
+
+ def get_char(self) -> builtins.int: ...
+
+ def get_double(self) -> builtins.float: ...
+
+ def get_enum(self) -> builtins.int: ...
+
+ def get_flags(self) -> builtins.int: ...
+
+ def get_float(self) -> builtins.float: ...
+
+ def get_gtype(self) -> GType: ...
+
+ def get_int(self) -> builtins.int: ...
+
+ def get_int64(self) -> builtins.int: ...
+
+ def get_long(self) -> builtins.int: ...
+
+ def get_object(self) -> Object: ...
+
+ def get_param(self) -> ParamSpec: ...
+
+ def get_pointer(self) -> typing.Optional[builtins.object]: ...
+
+ def get_schar(self) -> builtins.int: ...
+
+ def get_string(self) -> builtins.str: ...
+
+ def get_uchar(self) -> builtins.int: ...
+
+ def get_uint(self) -> builtins.int: ...
+
+ def get_uint64(self) -> builtins.int: ...
+
+ def get_ulong(self) -> builtins.int: ...
+
+ def get_variant(self) -> typing.Optional[GLib.Variant]: ...
+
+ def init(self, g_type: GType) -> Value: ...
+
+ def init_from_instance(self, instance: TypeInstance) -> None: ...
+
+ def peek_pointer(self) -> typing.Optional[builtins.object]: ...
+
+ def reset(self) -> Value: ...
+
+ def set_boolean(self, v_boolean: builtins.bool) -> None: ...
+
+ def set_boxed(self, v_boxed: typing.Optional[builtins.object]) -> None: ...
+
+ def set_boxed_take_ownership(self, v_boxed: typing.Optional[builtins.object]) -> None: ...
+
+ def set_char(self, v_char: builtins.int) -> None: ...
+
+ def set_double(self, v_double: builtins.float) -> None: ...
+
+ def set_enum(self, v_enum: builtins.int) -> None: ...
+
+ def set_flags(self, v_flags: builtins.int) -> None: ...
+
+ def set_float(self, v_float: builtins.float) -> None: ...
+
+ def set_gtype(self, v_gtype: GType) -> None: ...
+
+ def set_instance(self, instance: typing.Optional[builtins.object]) -> None: ...
+
+ def set_int(self, v_int: builtins.int) -> None: ...
+
+ def set_int64(self, v_int64: builtins.int) -> None: ...
+
+ def set_long(self, v_long: builtins.int) -> None: ...
+
+ def set_object(self, v_object: typing.Optional[Object]) -> None: ...
+
+ def set_param(self, param: typing.Optional[ParamSpec]) -> None: ...
+
+ def set_pointer(self, v_pointer: typing.Optional[builtins.object]) -> None: ...
+
+ def set_schar(self, v_char: builtins.int) -> None: ...
+
+ def set_static_boxed(self, v_boxed: typing.Optional[builtins.object]) -> None: ...
+
+ def set_static_string(self, v_string: typing.Optional[builtins.str]) -> None: ...
+
+ def set_string(self, v_string: typing.Optional[builtins.str]) -> None: ...
+
+ def set_string_take_ownership(self, v_string: typing.Optional[builtins.str]) -> None: ...
+
+ def set_uchar(self, v_uchar: builtins.int) -> None: ...
+
+ def set_uint(self, v_uint: builtins.int) -> None: ...
+
+ def set_uint64(self, v_uint64: builtins.int) -> None: ...
+
+ def set_ulong(self, v_ulong: builtins.int) -> None: ...
+
+ def set_variant(self, variant: typing.Optional[GLib.Variant]) -> None: ...
+
+ def take_boxed(self, v_boxed: typing.Optional[builtins.object]) -> None: ...
+
+ def take_string(self, v_string: typing.Optional[builtins.str]) -> None: ...
+
+ def take_variant(self, variant: typing.Optional[GLib.Variant]) -> None: ...
+
+ def transform(self, dest_value: Value) -> builtins.bool: ...
+
+ @staticmethod
+ def type_compatible(src_type: GType, dest_type: GType) -> builtins.bool: ...
+
+ @staticmethod
+ def type_transformable(src_type: GType, dest_type: GType) -> builtins.bool: ...
+
+ def unset(self) -> None: ...
+
+
+class ValueArray():
+ n_prealloced: builtins.int
+ n_values: builtins.int
+ values: Value
+
+ def append(self, value: typing.Optional[Value]) -> ValueArray: ...
+
+ def copy(self) -> ValueArray: ...
+
+ def get_nth(self, index_: builtins.int) -> Value: ...
+
+ def insert(self, index_: builtins.int, value: typing.Optional[Value]) -> ValueArray: ...
+
+ @staticmethod
+ def new(n_prealloced: builtins.int) -> ValueArray: ...
+
+ def prepend(self, value: typing.Optional[Value]) -> ValueArray: ...
+
+ def remove(self, index_: builtins.int) -> ValueArray: ...
+
+ def sort(self, compare_func: GLib.CompareDataFunc, *user_data: typing.Optional[builtins.object]) -> ValueArray: ...
+
+
+class WeakRef():
+ ...
+
+
+class TypeCValue():
+ ...
+
+
+class BindingFlags(GFlags, builtins.int):
+ BIDIRECTIONAL = ... # type: BindingFlags
+ DEFAULT = ... # type: BindingFlags
+ INVERT_BOOLEAN = ... # type: BindingFlags
+ SYNC_CREATE = ... # type: BindingFlags
+
+
+class ConnectFlags(GLib.Flags, builtins.int):
+ AFTER = ... # type: ConnectFlags
+ SWAPPED = ... # type: ConnectFlags
+
+
+class GFlags(GLib.Flags, builtins.int):
+ ...
+
+
+class ParamFlags(GLib.Flags, builtins.int):
+ CONSTRUCT = ... # type: ParamFlags
+ CONSTRUCT_ONLY = ... # type: ParamFlags
+ DEPRECATED = ... # type: ParamFlags
+ EXPLICIT_NOTIFY = ... # type: ParamFlags
+ LAX_VALIDATION = ... # type: ParamFlags
+ PRIVATE = ... # type: ParamFlags
+ READABLE = ... # type: ParamFlags
+ READWRITE = ... # type: ParamFlags
+ STATIC_BLURB = ... # type: ParamFlags
+ STATIC_NAME = ... # type: ParamFlags
+ STATIC_NICK = ... # type: ParamFlags
+ WRITABLE = ... # type: ParamFlags
+
+
+class SignalFlags(GLib.Flags, builtins.int):
+ ACTION = ... # type: SignalFlags
+ DEPRECATED = ... # type: SignalFlags
+ DETAILED = ... # type: SignalFlags
+ MUST_COLLECT = ... # type: SignalFlags
+ NO_HOOKS = ... # type: SignalFlags
+ NO_RECURSE = ... # type: SignalFlags
+ RUN_CLEANUP = ... # type: SignalFlags
+ RUN_FIRST = ... # type: SignalFlags
+ RUN_LAST = ... # type: SignalFlags
+
+
+class SignalMatchType(GLib.Flags, builtins.int):
+ CLOSURE = ... # type: SignalMatchType
+ DATA = ... # type: SignalMatchType
+ DETAIL = ... # type: SignalMatchType
+ FUNC = ... # type: SignalMatchType
+ ID = ... # type: SignalMatchType
+ UNBLOCKED = ... # type: SignalMatchType
+
+
+class TypeDebugFlags(GLib.Flags, builtins.int):
+ INSTANCE_COUNT = ... # type: TypeDebugFlags
+ MASK = ... # type: TypeDebugFlags
+ NONE = ... # type: TypeDebugFlags
+ OBJECTS = ... # type: TypeDebugFlags
+ SIGNALS = ... # type: TypeDebugFlags
+
+
+class TypeFlags(GLib.Flags, builtins.int):
+ ABSTRACT = ... # type: TypeFlags
+ VALUE_ABSTRACT = ... # type: TypeFlags
+
+
+class TypeFundamentalFlags(GLib.Flags, builtins.int):
+ CLASSED = ... # type: TypeFundamentalFlags
+ DEEP_DERIVABLE = ... # type: TypeFundamentalFlags
+ DERIVABLE = ... # type: TypeFundamentalFlags
+ INSTANTIATABLE = ... # type: TypeFundamentalFlags
+
+
+class GEnum(GLib.Enum, builtins.int):
+ ...
+
+
+BaseFinalizeFunc = typing.Callable[[TypeClass], None]
+BaseInitFunc = typing.Callable[[TypeClass], None]
+BindingTransformFunc = typing.Callable[[Binding, Value, Value, typing.Optional[builtins.object]], builtins.bool]
+BoxedCopyFunc = typing.Callable[[builtins.object], builtins.object]
+BoxedFreeFunc = typing.Callable[[builtins.object], None]
+Callback = typing.Callable[[], None]
+ClassFinalizeFunc = typing.Callable[[TypeClass, typing.Optional[builtins.object]], None]
+ClassInitFunc = typing.Callable[[TypeClass, typing.Optional[builtins.object]], None]
+ClosureMarshal = typing.Callable[[Closure, typing.Optional[Value], typing.Sequence[Value], typing.Optional[builtins.object], typing.Optional[builtins.object]], None]
+ClosureNotify = typing.Callable[[typing.Optional[builtins.object], Closure], None]
+InstanceInitFunc = typing.Callable[[TypeInstance, TypeClass], None]
+InterfaceFinalizeFunc = typing.Callable[[TypeInterface, typing.Optional[builtins.object]], None]
+InterfaceInitFunc = typing.Callable[[TypeInterface, typing.Optional[builtins.object]], None]
+ObjectFinalizeFunc = typing.Callable[[Object], None]
+ObjectGetPropertyFunc = typing.Callable[[Object, builtins.int, Value, ParamSpec], None]
+ObjectSetPropertyFunc = typing.Callable[[Object, builtins.int, Value, ParamSpec], None]
+SignalAccumulator = typing.Callable[[SignalInvocationHint, Value, Value, typing.Optional[builtins.object]], builtins.bool]
+SignalEmissionHook = typing.Callable[[SignalInvocationHint, typing.Sequence[Value], typing.Optional[builtins.object]], builtins.bool]
+ToggleNotify = typing.Callable[[typing.Optional[builtins.object], Object, builtins.bool], None]
+TypeClassCacheFunc = typing.Callable[[typing.Optional[builtins.object], TypeClass], builtins.bool]
+TypeInterfaceCheckFunc = typing.Callable[[typing.Optional[builtins.object], TypeInterface], None]
+TypePluginCompleteInterfaceInfo = typing.Callable[[TypePlugin, GType, GType, InterfaceInfo], None]
+TypePluginCompleteTypeInfo = typing.Callable[[TypePlugin, GType, TypeInfo, TypeValueTable], None]
+TypePluginUnuse = typing.Callable[[TypePlugin], None]
+TypePluginUse = typing.Callable[[TypePlugin], None]
+ValueTransform = typing.Callable[[Value, Value], None]
+WeakNotify = typing.Callable[[typing.Optional[builtins.object], Object], None]
+
+
+def boxed_copy(boxed_type: GType, src_boxed: builtins.object) -> builtins.object: ...
+
+
+def boxed_free(boxed_type: GType, boxed: builtins.object) -> None: ...
+
+
+def cclosure_marshal_BOOLEAN__BOXED_BOXED(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_BOOLEAN__FLAGS(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_STRING__OBJECT_POINTER(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__BOOLEAN(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__BOXED(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__CHAR(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__DOUBLE(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__ENUM(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__FLAGS(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__FLOAT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__INT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__LONG(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__OBJECT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__PARAM(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__POINTER(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__STRING(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__UCHAR(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__UINT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__UINT_POINTER(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__ULONG(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__VARIANT(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_VOID__VOID(closure: Closure, return_value: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def cclosure_marshal_generic(closure: Closure, return_gvalue: Value, n_param_values: builtins.int, param_values: Value, invocation_hint: typing.Optional[builtins.object], marshal_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def clear_signal_handler(handler_id_ptr: builtins.int, instance: Object) -> None: ...
+
+
+def enum_complete_type_info(g_enum_type: GType, const_values: EnumValue) -> TypeInfo: ...
+
+
+def enum_get_value(enum_class: EnumClass, value: builtins.int) -> EnumValue: ...
+
+
+def enum_get_value_by_name(enum_class: EnumClass, name: builtins.str) -> EnumValue: ...
+
+
+def enum_get_value_by_nick(enum_class: EnumClass, nick: builtins.str) -> EnumValue: ...
+
+
+def enum_register_static(name: builtins.str, const_static_values: EnumValue) -> GType: ...
+
+
+def enum_to_string(g_enum_type: GType, value: builtins.int) -> builtins.str: ...
+
+
+def flags_complete_type_info(g_flags_type: GType, const_values: FlagsValue) -> TypeInfo: ...
+
+
+def flags_get_first_value(flags_class: FlagsClass, value: builtins.int) -> FlagsValue: ...
+
+
+def flags_get_value_by_name(flags_class: FlagsClass, name: builtins.str) -> FlagsValue: ...
+
+
+def flags_get_value_by_nick(flags_class: FlagsClass, nick: builtins.str) -> FlagsValue: ...
+
+
+def flags_register_static(name: builtins.str, const_static_values: FlagsValue) -> GType: ...
+
+
+def flags_to_string(flags_type: GType, value: builtins.int) -> builtins.str: ...
+
+
+def gtype_get_type() -> GType: ...
+
+
+def param_spec_boolean(name: builtins.str, nick: builtins.str, blurb: builtins.str, default_value: builtins.bool, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_boxed(name: builtins.str, nick: builtins.str, blurb: builtins.str, boxed_type: GType, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_char(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_double(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.float, maximum: builtins.float, default_value: builtins.float, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_enum(name: builtins.str, nick: builtins.str, blurb: builtins.str, enum_type: GType, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_flags(name: builtins.str, nick: builtins.str, blurb: builtins.str, flags_type: GType, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_float(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.float, maximum: builtins.float, default_value: builtins.float, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_gtype(name: builtins.str, nick: builtins.str, blurb: builtins.str, is_a_type: GType, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_int(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_int64(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_long(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_object(name: builtins.str, nick: builtins.str, blurb: builtins.str, object_type: GType, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_param(name: builtins.str, nick: builtins.str, blurb: builtins.str, param_type: GType, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_pointer(name: builtins.str, nick: builtins.str, blurb: builtins.str, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_pool_new(type_prefixing: builtins.bool) -> ParamSpecPool: ...
+
+
+def param_spec_string(name: builtins.str, nick: builtins.str, blurb: builtins.str, default_value: typing.Optional[builtins.str], flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_uchar(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_uint(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_uint64(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_ulong(name: builtins.str, nick: builtins.str, blurb: builtins.str, minimum: builtins.int, maximum: builtins.int, default_value: builtins.int, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_unichar(name: builtins.str, nick: builtins.str, blurb: builtins.str, default_value: builtins.str, flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_spec_variant(name: builtins.str, nick: builtins.str, blurb: builtins.str, type: GLib.VariantType, default_value: typing.Optional[GLib.Variant], flags: ParamFlags) -> ParamSpec: ...
+
+
+def param_type_register_static(name: builtins.str, pspec_info: ParamSpecTypeInfo) -> GType: ...
+
+
+def param_value_convert(pspec: ParamSpec, src_value: Value, dest_value: Value, strict_validation: builtins.bool) -> builtins.bool: ...
+
+
+def param_value_defaults(pspec: ParamSpec, value: Value) -> builtins.bool: ...
+
+
+def param_value_set_default(pspec: ParamSpec, value: Value) -> None: ...
+
+
+def param_value_validate(pspec: ParamSpec, value: Value) -> builtins.bool: ...
+
+
+def param_values_cmp(pspec: ParamSpec, value1: Value, value2: Value) -> builtins.int: ...
+
+
+def pointer_type_register_static(name: builtins.str) -> GType: ...
+
+
+def signal_accumulator_first_wins(ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, dummy: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def signal_accumulator_true_handled(ihint: SignalInvocationHint, return_accu: Value, handler_return: Value, dummy: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+def signal_add_emission_hook(signal_id: builtins.int, detail: builtins.int, hook_func: SignalEmissionHook, *hook_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def signal_chain_from_overridden(instance_and_params: typing.Sequence[Value], return_value: Value) -> None: ...
+
+
+def signal_connect_closure(instance: Object, detailed_signal: builtins.str, closure: Closure, after: builtins.bool) -> builtins.int: ...
+
+
+def signal_connect_closure_by_id(instance: Object, signal_id: builtins.int, detail: builtins.int, closure: Closure, after: builtins.bool) -> builtins.int: ...
+
+
+def signal_emitv(instance_and_params: typing.Sequence[Value], signal_id: builtins.int, detail: builtins.int, return_value: Value) -> Value: ...
+
+
+def signal_get_invocation_hint(instance: Object) -> SignalInvocationHint: ...
+
+
+def signal_handler_block(instance: Object, handler_id: builtins.int) -> None: ...
+
+
+def signal_handler_disconnect(instance: Object, handler_id: builtins.int) -> None: ...
+
+
+def signal_handler_find(instance: Object, mask: SignalMatchType, signal_id: builtins.int, detail: builtins.int, closure: typing.Optional[Closure], func: typing.Optional[builtins.object], data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def signal_handler_is_connected(instance: Object, handler_id: builtins.int) -> builtins.bool: ...
+
+
+def signal_handler_unblock(instance: Object, handler_id: builtins.int) -> None: ...
+
+
+def signal_handlers_block_matched(instance: Object, mask: SignalMatchType, signal_id: builtins.int, detail: builtins.int, closure: typing.Optional[Closure], func: typing.Optional[builtins.object], data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def signal_handlers_destroy(instance: Object) -> None: ...
+
+
+def signal_handlers_disconnect_matched(instance: Object, mask: SignalMatchType, signal_id: builtins.int, detail: builtins.int, closure: typing.Optional[Closure], func: typing.Optional[builtins.object], data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def signal_handlers_unblock_matched(instance: Object, mask: SignalMatchType, signal_id: builtins.int, detail: builtins.int, closure: typing.Optional[Closure], func: typing.Optional[builtins.object], data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def signal_has_handler_pending(instance: Object, signal_id: builtins.int, detail: builtins.int, may_be_blocked: builtins.bool) -> builtins.bool: ...
+
+
+def signal_list_ids(itype: GType) -> typing.Sequence[builtins.int]: ...
+
+
+def signal_lookup(name: builtins.str, itype: GType) -> builtins.int: ...
+
+
+def signal_name(signal_id: builtins.int) -> builtins.str: ...
+
+
+def signal_override_class_closure(signal_id: builtins.int, instance_type: GType, class_closure: Closure) -> None: ...
+
+
+def signal_parse_name(detailed_signal: builtins.str, itype: GType, force_detail_quark: builtins.bool) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+
+def signal_query(signal_id: builtins.int) -> SignalQuery: ...
+
+
+def signal_remove_emission_hook(signal_id: builtins.int, hook_id: builtins.int) -> None: ...
+
+
+def signal_stop_emission(instance: Object, signal_id: builtins.int, detail: builtins.int) -> None: ...
+
+
+def signal_stop_emission_by_name(instance: Object, detailed_signal: builtins.str) -> None: ...
+
+
+def signal_type_cclosure_new(itype: GType, struct_offset: builtins.int) -> Closure: ...
+
+
+def source_set_closure(source: GLib.Source, closure: Closure) -> None: ...
+
+
+def source_set_dummy_callback(source: GLib.Source) -> None: ...
+
+
+def strdup_value_contents(value: Value) -> builtins.str: ...
+
+
+def type_add_class_private(class_type: GType, private_size: builtins.int) -> None: ...
+
+
+def type_add_instance_private(class_type: GType, private_size: builtins.int) -> builtins.int: ...
+
+
+def type_add_interface_dynamic(instance_type: GType, interface_type: GType, plugin: TypePlugin) -> None: ...
+
+
+def type_add_interface_static(instance_type: GType, interface_type: GType, info: InterfaceInfo) -> None: ...
+
+
+def type_check_class_is_a(g_class: TypeClass, is_a_type: GType) -> builtins.bool: ...
+
+
+def type_check_instance(instance: TypeInstance) -> builtins.bool: ...
+
+
+def type_check_instance_is_a(instance: TypeInstance, iface_type: GType) -> builtins.bool: ...
+
+
+def type_check_instance_is_fundamentally_a(instance: TypeInstance, fundamental_type: GType) -> builtins.bool: ...
+
+
+def type_check_is_value_type(type: GType) -> builtins.bool: ...
+
+
+def type_check_value(value: Value) -> builtins.bool: ...
+
+
+def type_check_value_holds(value: Value, type: GType) -> builtins.bool: ...
+
+
+def type_children(type: GType) -> typing.Sequence[GType]: ...
+
+
+def type_class_adjust_private_offset(g_class: typing.Optional[builtins.object], private_size_or_offset: builtins.int) -> None: ...
+
+
+def type_class_peek(type: GType) -> TypeClass: ...
+
+
+def type_class_peek_static(type: GType) -> TypeClass: ...
+
+
+def type_class_ref(type: GType) -> TypeClass: ...
+
+
+def type_default_interface_peek(g_type: GType) -> TypeInterface: ...
+
+
+def type_default_interface_ref(g_type: GType) -> TypeInterface: ...
+
+
+def type_default_interface_unref(g_iface: TypeInterface) -> None: ...
+
+
+def type_depth(type: GType) -> builtins.int: ...
+
+
+def type_ensure(type: GType) -> None: ...
+
+
+def type_free_instance(instance: TypeInstance) -> None: ...
+
+
+def type_from_name(name: builtins.str) -> GType: ...
+
+
+def type_fundamental(type_id: GType) -> GType: ...
+
+
+def type_fundamental_next() -> GType: ...
+
+
+def type_get_instance_count(type: GType) -> builtins.int: ...
+
+
+def type_get_plugin(type: GType) -> TypePlugin: ...
+
+
+def type_get_qdata(type: GType, quark: builtins.int) -> typing.Optional[builtins.object]: ...
+
+
+def type_get_type_registration_serial() -> builtins.int: ...
+
+
+def type_init() -> None: ...
+
+
+def type_init_with_debug_flags(debug_flags: TypeDebugFlags) -> None: ...
+
+
+def type_interface_add_prerequisite(interface_type: GType, prerequisite_type: GType) -> None: ...
+
+
+def type_interface_get_plugin(instance_type: GType, interface_type: GType) -> TypePlugin: ...
+
+
+def type_interface_peek(instance_class: TypeClass, iface_type: GType) -> TypeInterface: ...
+
+
+def type_interface_prerequisites(interface_type: GType) -> typing.Sequence[GType]: ...
+
+
+def type_interfaces(type: GType) -> typing.Sequence[GType]: ...
+
+
+def type_is_a(type: GType, is_a_type: GType) -> builtins.bool: ...
+
+
+def type_name(type: GType) -> builtins.str: ...
+
+
+def type_name_from_class(g_class: TypeClass) -> builtins.str: ...
+
+
+def type_name_from_instance(instance: TypeInstance) -> builtins.str: ...
+
+
+def type_next_base(leaf_type: GType, root_type: GType) -> GType: ...
+
+
+def type_parent(type: GType) -> GType: ...
+
+
+def type_qname(type: GType) -> builtins.int: ...
+
+
+def type_query(type: GType) -> TypeQuery: ...
+
+
+def type_register_dynamic(parent_type: GType, type_name: builtins.str, plugin: TypePlugin, flags: TypeFlags) -> GType: ...
+
+
+def type_register_fundamental(type_id: GType, type_name: builtins.str, info: TypeInfo, finfo: TypeFundamentalInfo, flags: TypeFlags) -> GType: ...
+
+
+def type_register_static(parent_type: GType, type_name: builtins.str, info: TypeInfo, flags: TypeFlags) -> GType: ...
+
+
+def type_set_qdata(type: GType, quark: builtins.int, data: typing.Optional[builtins.object]) -> None: ...
+
+
+def type_test_flags(type: GType, flags: builtins.int) -> builtins.bool: ...
+
+
+def value_type_compatible(src_type: GType, dest_type: GType) -> builtins.bool: ...
+
+
+def value_type_transformable(src_type: GType, dest_type: GType) -> builtins.bool: ...
+
+
+GBoxed: typing.Any
+GObjectWeakRef: typing.Any
+GParamSpec: typing.Any
+GPointer: typing.Any
+G_MAXDOUBLE: builtins.float
+G_MAXFLOAT: builtins.float
+G_MAXINT: builtins.int
+G_MAXINT16: builtins.int
+G_MAXINT32: builtins.int
+G_MAXINT64: builtins.int
+G_MAXINT8: builtins.int
+G_MAXLONG: builtins.int
+G_MAXOFFSET: builtins.int
+G_MAXSHORT: builtins.int
+G_MAXSIZE: builtins.int
+G_MAXSSIZE: builtins.int
+G_MAXUINT: builtins.int
+G_MAXUINT16: builtins.int
+G_MAXUINT32: builtins.int
+G_MAXUINT64: builtins.int
+G_MAXUINT8: builtins.int
+G_MAXULONG: builtins.int
+G_MAXUSHORT: builtins.int
+G_MINDOUBLE: builtins.float
+G_MINFLOAT: builtins.float
+G_MININT: builtins.int
+G_MININT16: builtins.int
+G_MININT32: builtins.int
+G_MININT64: builtins.int
+G_MININT8: builtins.int
+G_MINLONG: builtins.int
+G_MINOFFSET: builtins.int
+G_MINSHORT: builtins.int
+G_MINSSIZE: builtins.int
+IO_ERR: GLib.IOCondition
+IO_FLAG_APPEND: GLib.IOFlags
+IO_FLAG_GET_MASK: GLib.IOFlags
+IO_FLAG_IS_READABLE: GLib.IOFlags
+IO_FLAG_IS_SEEKABLE: GLib.IOFlags
+IO_FLAG_IS_WRITEABLE: GLib.IOFlags
+IO_FLAG_MASK: GLib.IOFlags
+IO_FLAG_NONBLOCK: GLib.IOFlags
+IO_FLAG_SET_MASK: GLib.IOFlags
+IO_HUP: GLib.IOCondition
+IO_IN: GLib.IOCondition
+IO_NVAL: GLib.IOCondition
+IO_OUT: GLib.IOCondition
+IO_PRI: GLib.IOCondition
+IO_STATUS_AGAIN: GLib.IOStatus
+IO_STATUS_EOF: GLib.IOStatus
+IO_STATUS_ERROR: GLib.IOStatus
+IO_STATUS_NORMAL: GLib.IOStatus
+OPTION_ERROR_BAD_VALUE: GLib.OptionError
+OPTION_ERROR_FAILED: GLib.OptionError
+OPTION_ERROR_UNKNOWN_OPTION: GLib.OptionError
+OPTION_FLAG_FILENAME: GLib.OptionFlags
+OPTION_FLAG_HIDDEN: GLib.OptionFlags
+OPTION_FLAG_IN_MAIN: GLib.OptionFlags
+OPTION_FLAG_NOALIAS: GLib.OptionFlags
+OPTION_FLAG_NO_ARG: GLib.OptionFlags
+OPTION_FLAG_OPTIONAL_ARG: GLib.OptionFlags
+OPTION_FLAG_REVERSE: GLib.OptionFlags
+OPTION_REMAINING: builtins.str
+PARAM_CONSTRUCT: ParamFlags
+PARAM_CONSTRUCT_ONLY: ParamFlags
+PARAM_LAX_VALIDATION: ParamFlags
+PARAM_MASK: builtins.int
+PARAM_READABLE: ParamFlags
+PARAM_READWRITE: ParamFlags
+PARAM_STATIC_STRINGS: builtins.int
+PARAM_USER_SHIFT: builtins.int
+PARAM_WRITABLE: ParamFlags
+PRIORITY_DEFAULT: builtins.int
+PRIORITY_DEFAULT_IDLE: builtins.int
+PRIORITY_HIGH: builtins.int
+PRIORITY_HIGH_IDLE: builtins.int
+PRIORITY_LOW: builtins.int
+SIGNAL_ACTION: SignalFlags
+SIGNAL_DETAILED: SignalFlags
+SIGNAL_FLAGS_MASK: builtins.int
+SIGNAL_MATCH_MASK: builtins.int
+SIGNAL_NO_HOOKS: SignalFlags
+SIGNAL_NO_RECURSE: SignalFlags
+SIGNAL_RUN_CLEANUP: SignalFlags
+SIGNAL_RUN_FIRST: SignalFlags
+SIGNAL_RUN_LAST: SignalFlags
+SPAWN_CHILD_INHERITS_STDIN: GLib.SpawnFlags
+SPAWN_DO_NOT_REAP_CHILD: GLib.SpawnFlags
+SPAWN_FILE_AND_ARGV_ZERO: GLib.SpawnFlags
+SPAWN_LEAVE_DESCRIPTORS_OPEN: GLib.SpawnFlags
+SPAWN_SEARCH_PATH: GLib.SpawnFlags
+SPAWN_STDERR_TO_DEV_NULL: GLib.SpawnFlags
+SPAWN_STDOUT_TO_DEV_NULL: GLib.SpawnFlags
+TYPE_BOOLEAN: GType
+TYPE_BOXED: GType
+TYPE_CHAR: GType
+TYPE_DOUBLE: GType
+TYPE_ENUM: GType
+TYPE_FLAGS: GType
+TYPE_FLAG_RESERVED_ID_BIT: builtins.int
+TYPE_FLOAT: GType
+TYPE_FUNDAMENTAL_MAX: builtins.int
+TYPE_FUNDAMENTAL_SHIFT: builtins.int
+TYPE_GSTRING: GType
+TYPE_GTYPE: GType
+TYPE_INT: GType
+TYPE_INT64: GType
+TYPE_INTERFACE: GType
+TYPE_INVALID: GType
+TYPE_LONG: GType
+TYPE_NONE: GType
+TYPE_OBJECT: GType
+TYPE_PARAM: GType
+TYPE_POINTER: GType
+TYPE_PYOBJECT: GType
+TYPE_RESERVED_BSE_FIRST: builtins.int
+TYPE_RESERVED_BSE_LAST: builtins.int
+TYPE_RESERVED_GLIB_FIRST: builtins.int
+TYPE_RESERVED_GLIB_LAST: builtins.int
+TYPE_RESERVED_USER_FIRST: builtins.int
+TYPE_STRING: GType
+TYPE_STRV: GType
+TYPE_UCHAR: GType
+TYPE_UINT: GType
+TYPE_UINT64: GType
+TYPE_ULONG: GType
+TYPE_UNICHAR: GType
+TYPE_VALUE: GType
+TYPE_VARIANT: GType
+VALUE_NOCOPY_CONTENTS: builtins.int
+Warning: typing.Any
+features: typing.Dict[str, bool]
+glib_version: typing.Tuple[int, int, int]
+pygobject_version: typing.Tuple[int, int, int]
+
+
+GObject = Object
diff --git a/stubs/gi/repository/Gdk.pyi b/stubs/gi/repository/Gdk.pyi
new file mode 100644
index 000000000..ce559c750
--- /dev/null
+++ b/stubs/gi/repository/Gdk.pyi
@@ -0,0 +1,4625 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+from gi.repository import GObject
+from gi.repository import GdkPixbuf
+from gi.repository import Gio
+from gi.repository import Pango
+from gi.repository import cairo
+
+
+class AppLaunchContext(Gio.AppLaunchContext):
+
+ @staticmethod
+ def new() -> AppLaunchContext: ... # type: ignore
+
+ def set_desktop(self, desktop: builtins.int) -> None: ...
+
+ def set_display(self, display: Display) -> None: ...
+
+ def set_icon(self, icon: typing.Optional[Gio.Icon]) -> None: ...
+
+ def set_icon_name(self, icon_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_screen(self, screen: Screen) -> None: ...
+
+ def set_timestamp(self, timestamp: builtins.int) -> None: ...
+
+
+class Cursor(GObject.Object):
+
+ def get_cursor_type(self) -> CursorType: ...
+
+ def get_display(self) -> Display: ...
+
+ def get_image(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_surface(self) -> typing.Tuple[typing.Optional[cairo.Surface], builtins.float, builtins.float]: ...
+
+ @staticmethod
+ def new(cursor_type: CursorType, **kwargs) -> Cursor: ... # type: ignore
+
+ @staticmethod
+ def new_for_display(display: Display, cursor_type: CursorType) -> Cursor: ...
+
+ @staticmethod
+ def new_from_name(display: Display, name: builtins.str) -> typing.Optional[Cursor]: ...
+
+ @staticmethod
+ def new_from_pixbuf(display: Display, pixbuf: GdkPixbuf.Pixbuf, x: builtins.int, y: builtins.int) -> Cursor: ...
+
+ @staticmethod
+ def new_from_surface(display: Display, surface: cairo.Surface, x: builtins.float, y: builtins.float) -> Cursor: ...
+
+ def ref(self) -> Cursor: ...
+
+ def unref(self) -> None: ...
+
+
+class Device(GObject.Object):
+
+ def get_associated_device(self) -> typing.Optional[Device]: ...
+
+ def get_axes(self) -> AxisFlags: ...
+
+ def get_axis_use(self, index_: builtins.int) -> AxisUse: ...
+
+ def get_device_type(self) -> DeviceType: ...
+
+ def get_display(self) -> Display: ...
+
+ def get_has_cursor(self) -> builtins.bool: ...
+
+ def get_key(self, index_: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, ModifierType]: ...
+
+ def get_last_event_window(self) -> typing.Optional[Window]: ...
+
+ def get_mode(self) -> InputMode: ...
+
+ def get_n_axes(self) -> builtins.int: ...
+
+ def get_n_keys(self) -> builtins.int: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_position(self) -> typing.Tuple[Screen, builtins.int, builtins.int]: ...
+
+ def get_position_double(self) -> typing.Tuple[Screen, builtins.float, builtins.float]: ...
+
+ def get_product_id(self) -> typing.Optional[builtins.str]: ...
+
+ def get_seat(self) -> Seat: ...
+
+ def get_source(self) -> InputSource: ...
+
+ def get_vendor_id(self) -> typing.Optional[builtins.str]: ...
+
+ def get_window_at_position(self) -> typing.Tuple[typing.Optional[Window], builtins.int, builtins.int]: ...
+
+ def get_window_at_position_double(self) -> typing.Tuple[typing.Optional[Window], builtins.float, builtins.float]: ...
+
+ def grab(self, window: Window, grab_ownership: GrabOwnership, owner_events: builtins.bool, event_mask: EventMask, cursor: typing.Optional[Cursor], time_: builtins.int) -> GrabStatus: ...
+
+ @staticmethod
+ def grab_info_libgtk_only(display: Display, device: Device) -> typing.Tuple[builtins.bool, Window, builtins.bool]: ...
+
+ def list_axes(self) -> typing.Sequence[Atom]: ...
+
+ def list_slave_devices(self) -> typing.Optional[typing.Sequence[Device]]: ...
+
+ def set_axis_use(self, index_: builtins.int, use: AxisUse) -> None: ...
+
+ def set_key(self, index_: builtins.int, keyval: builtins.int, modifiers: ModifierType) -> None: ...
+
+ def set_mode(self, mode: InputMode) -> builtins.bool: ...
+
+ def ungrab(self, time_: builtins.int) -> None: ...
+
+ def warp(self, screen: Screen, x: builtins.int, y: builtins.int) -> None: ...
+
+
+class DeviceManager(GObject.Object):
+
+ def get_client_pointer(self) -> Device: ...
+
+ def get_display(self) -> typing.Optional[Display]: ...
+
+ def list_devices(self, type: DeviceType) -> typing.Sequence[Device]: ...
+
+
+class DevicePad(GObject.GInterface):
+
+ def get_feature_group(self, feature: DevicePadFeature, feature_idx: builtins.int) -> builtins.int: ...
+
+ def get_group_n_modes(self, group_idx: builtins.int) -> builtins.int: ...
+
+ def get_n_features(self, feature: DevicePadFeature) -> builtins.int: ...
+
+ def get_n_groups(self) -> builtins.int: ...
+
+
+class DeviceTool(GObject.Object):
+
+ def get_hardware_id(self) -> builtins.int: ...
+
+ def get_serial(self) -> builtins.int: ...
+
+ def get_tool_type(self) -> DeviceToolType: ...
+
+
+class Display(GObject.Object):
+
+ def beep(self) -> None: ...
+
+ def close(self) -> None: ...
+
+ def device_is_grabbed(self, device: Device) -> builtins.bool: ...
+
+ def flush(self) -> None: ...
+
+ def get_app_launch_context(self) -> AppLaunchContext: ...
+
+ @staticmethod
+ def get_default() -> typing.Optional[Display]: ...
+
+ def get_default_cursor_size(self) -> builtins.int: ...
+
+ def get_default_group(self) -> Window: ...
+
+ def get_default_screen(self) -> Screen: ...
+
+ def get_default_seat(self) -> Seat: ...
+
+ def get_device_manager(self) -> typing.Optional[DeviceManager]: ...
+
+ def get_event(self) -> typing.Optional[Event]: ...
+
+ def get_maximal_cursor_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_monitor(self, monitor_num: builtins.int) -> typing.Optional[Monitor]: ...
+
+ def get_monitor_at_point(self, x: builtins.int, y: builtins.int) -> Monitor: ...
+
+ def get_monitor_at_window(self, window: Window) -> Monitor: ...
+
+ def get_n_monitors(self) -> builtins.int: ...
+
+ def get_n_screens(self) -> builtins.int: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_pointer(self) -> typing.Tuple[Screen, builtins.int, builtins.int, ModifierType]: ...
+
+ def get_primary_monitor(self) -> typing.Optional[Monitor]: ...
+
+ def get_screen(self, screen_num: builtins.int) -> Screen: ...
+
+ def get_window_at_pointer(self) -> typing.Tuple[typing.Optional[Window], builtins.int, builtins.int]: ...
+
+ def has_pending(self) -> builtins.bool: ...
+
+ def is_closed(self) -> builtins.bool: ...
+
+ def keyboard_ungrab(self, time_: builtins.int) -> None: ...
+
+ def list_devices(self) -> typing.Sequence[Device]: ...
+
+ def list_seats(self) -> typing.Sequence[Seat]: ...
+
+ def notify_startup_complete(self, startup_id: builtins.str) -> None: ...
+
+ @staticmethod
+ def open(display_name: builtins.str) -> typing.Optional[Display]: ...
+
+ @staticmethod
+ def open_default_libgtk_only() -> typing.Optional[Display]: ...
+
+ def peek_event(self) -> typing.Optional[Event]: ...
+
+ def pointer_is_grabbed(self) -> builtins.bool: ...
+
+ def pointer_ungrab(self, time_: builtins.int) -> None: ...
+
+ def put_event(self, event: Event) -> None: ...
+
+ def request_selection_notification(self, selection: Atom) -> builtins.bool: ...
+
+ def set_double_click_distance(self, distance: builtins.int) -> None: ...
+
+ def set_double_click_time(self, msec: builtins.int) -> None: ...
+
+ def store_clipboard(self, clipboard_window: Window, time_: builtins.int, targets: typing.Optional[typing.Sequence[Atom]]) -> None: ...
+
+ def supports_clipboard_persistence(self) -> builtins.bool: ...
+
+ def supports_composite(self) -> builtins.bool: ...
+
+ def supports_cursor_alpha(self) -> builtins.bool: ...
+
+ def supports_cursor_color(self) -> builtins.bool: ...
+
+ def supports_input_shapes(self) -> builtins.bool: ...
+
+ def supports_selection_notification(self) -> builtins.bool: ...
+
+ def supports_shapes(self) -> builtins.bool: ...
+
+ def sync(self) -> None: ...
+
+ def warp_pointer(self, screen: Screen, x: builtins.int, y: builtins.int) -> None: ...
+
+
+class DisplayManager(GObject.Object):
+
+ @staticmethod
+ def get() -> DisplayManager: ...
+
+ def get_default_display(self) -> typing.Optional[Display]: ...
+
+ def list_displays(self) -> typing.Sequence[Display]: ...
+
+ def open_display(self, name: builtins.str) -> typing.Optional[Display]: ...
+
+ def set_default_display(self, display: Display) -> None: ...
+
+
+class DragContext(GObject.Object):
+
+ def finish(self, success: bool, del_: bool, time: int) -> None: ...
+
+ def get_actions(self) -> DragAction: ...
+
+ def get_dest_window(self) -> Window: ...
+
+ def get_device(self) -> Device: ...
+
+ def get_drag_window(self) -> typing.Optional[Window]: ...
+
+ def get_protocol(self) -> DragProtocol: ...
+
+ def get_selected_action(self) -> DragAction: ...
+
+ def get_source_window(self) -> Window: ...
+
+ def get_suggested_action(self) -> DragAction: ...
+
+ def list_targets(self) -> typing.Sequence[Atom]: ...
+
+ def manage_dnd(self, ipc_window: Window, actions: DragAction) -> builtins.bool: ...
+
+ def set_device(self, device: Device) -> None: ...
+
+ def set_hotspot(self, hot_x: builtins.int, hot_y: builtins.int) -> None: ...
+
+
+class DrawingContext(GObject.Object):
+
+ def get_cairo_context(self) -> cairo.Context: ...
+
+ def get_clip(self) -> typing.Optional[cairo.Region]: ...
+
+ def get_window(self) -> Window: ...
+
+ def is_valid(self) -> builtins.bool: ...
+
+
+class FrameClock(GObject.Object):
+
+ def begin_updating(self) -> None: ...
+
+ def end_updating(self) -> None: ...
+
+ def get_current_timings(self) -> typing.Optional[FrameTimings]: ...
+
+ def get_frame_counter(self) -> builtins.int: ...
+
+ def get_frame_time(self) -> builtins.int: ...
+
+ def get_history_start(self) -> builtins.int: ...
+
+ def get_refresh_info(self, base_time: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_timings(self, frame_counter: builtins.int) -> typing.Optional[FrameTimings]: ...
+
+ def request_phase(self, phase: FrameClockPhase) -> None: ...
+
+
+class GLContext(GObject.Object):
+
+ @staticmethod
+ def clear_current() -> None: ...
+
+ @staticmethod
+ def get_current() -> typing.Optional[GLContext]: ...
+
+ def get_debug_enabled(self) -> builtins.bool: ...
+
+ def get_display(self) -> typing.Optional[Display]: ...
+
+ def get_forward_compatible(self) -> builtins.bool: ...
+
+ def get_required_version(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_shared_context(self) -> typing.Optional[GLContext]: ...
+
+ def get_use_es(self) -> builtins.bool: ...
+
+ def get_version(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_window(self) -> typing.Optional[Window]: ...
+
+ def is_legacy(self) -> builtins.bool: ...
+
+ def make_current(self) -> None: ...
+
+ def realize(self) -> builtins.bool: ...
+
+ def set_debug_enabled(self, enabled: builtins.bool) -> None: ...
+
+ def set_forward_compatible(self, compatible: builtins.bool) -> None: ...
+
+ def set_required_version(self, major: builtins.int, minor: builtins.int) -> None: ...
+
+ def set_use_es(self, use_es: builtins.int) -> None: ...
+
+
+class Keymap(GObject.Object):
+
+ def add_virtual_modifiers(self, state: ModifierType) -> ModifierType: ...
+
+ def get_caps_lock_state(self) -> builtins.bool: ...
+
+ @staticmethod
+ def get_default() -> Keymap: ...
+
+ def get_direction(self) -> Pango.Direction: ...
+
+ def get_entries_for_keycode(self, hardware_keycode: builtins.int) -> typing.Tuple[builtins.bool, typing.Sequence[KeymapKey], typing.Sequence[builtins.int]]: ...
+
+ def get_entries_for_keyval(self, keyval: builtins.int) -> typing.Tuple[builtins.bool, typing.Sequence[KeymapKey]]: ...
+
+ @staticmethod
+ def get_for_display(display: Display) -> Keymap: ...
+
+ def get_modifier_mask(self, intent: ModifierIntent) -> ModifierType: ...
+
+ def get_modifier_state(self) -> builtins.int: ...
+
+ def get_num_lock_state(self) -> builtins.bool: ...
+
+ def get_scroll_lock_state(self) -> builtins.bool: ...
+
+ def have_bidi_layouts(self) -> builtins.bool: ...
+
+ def lookup_key(self, key: KeymapKey) -> builtins.int: ...
+
+ def map_virtual_modifiers(self, state: ModifierType) -> typing.Tuple[builtins.bool, ModifierType]: ...
+
+ def translate_keyboard_state(self, hardware_keycode: builtins.int, state: ModifierType, group: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, builtins.int, ModifierType]: ...
+
+
+class Monitor(GObject.Object):
+
+ def get_display(self) -> Display: ...
+
+ def get_geometry(self) -> Rectangle: ...
+
+ def get_height_mm(self) -> builtins.int: ...
+
+ def get_manufacturer(self) -> typing.Optional[builtins.str]: ...
+
+ def get_model(self) -> typing.Optional[builtins.str]: ...
+
+ def get_refresh_rate(self) -> builtins.int: ...
+
+ def get_scale_factor(self) -> builtins.int: ...
+
+ def get_subpixel_layout(self) -> SubpixelLayout: ...
+
+ def get_width_mm(self) -> builtins.int: ...
+
+ def get_workarea(self) -> Rectangle: ...
+
+ def is_primary(self) -> builtins.bool: ...
+
+
+class Screen(GObject.Object):
+
+ def get_active_window(self) -> typing.Optional[Window]: ...
+
+ @staticmethod
+ def get_default() -> typing.Optional[Screen]: ...
+
+ def get_display(self) -> Display: ...
+
+ def get_font_options(self) -> typing.Optional[cairo.FontOptions]: ...
+
+ def get_height(self) -> builtins.int: ...
+
+ def get_height_mm(self) -> builtins.int: ...
+
+ def get_monitor_at_point(self, x: builtins.int, y: builtins.int) -> builtins.int: ...
+
+ def get_monitor_at_window(self, window: Window) -> builtins.int: ...
+
+ def get_monitor_geometry(self, monitor_num: builtins.int) -> Rectangle: ...
+
+ def get_monitor_height_mm(self, monitor_num: builtins.int) -> builtins.int: ...
+
+ def get_monitor_plug_name(self, monitor_num: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def get_monitor_scale_factor(self, monitor_num: builtins.int) -> builtins.int: ...
+
+ def get_monitor_width_mm(self, monitor_num: builtins.int) -> builtins.int: ...
+
+ def get_monitor_workarea(self, monitor_num: builtins.int) -> Rectangle: ...
+
+ def get_n_monitors(self) -> builtins.int: ...
+
+ def get_number(self) -> builtins.int: ...
+
+ def get_primary_monitor(self) -> builtins.int: ...
+
+ def get_resolution(self) -> builtins.float: ...
+
+ def get_rgba_visual(self) -> typing.Optional[Visual]: ...
+
+ def get_root_window(self) -> Window: ...
+
+ def get_setting(self, name: builtins.str, value: GObject.Value) -> builtins.bool: ...
+
+ def get_system_visual(self) -> Visual: ...
+
+ def get_toplevel_windows(self) -> typing.Sequence[Window]: ...
+
+ def get_width(self) -> builtins.int: ...
+
+ def get_width_mm(self) -> builtins.int: ...
+
+ def get_window_stack(self) -> typing.Optional[typing.Sequence[Window]]: ...
+
+ @staticmethod
+ def height() -> builtins.int: ...
+
+ @staticmethod
+ def height_mm() -> builtins.int: ...
+
+ def is_composited(self) -> builtins.bool: ...
+
+ def list_visuals(self) -> typing.Sequence[Visual]: ...
+
+ def make_display_name(self) -> builtins.str: ...
+
+ def set_font_options(self, options: typing.Optional[cairo.FontOptions]) -> None: ...
+
+ def set_resolution(self, dpi: builtins.float) -> None: ...
+
+ @staticmethod
+ def width() -> builtins.int: ...
+
+ @staticmethod
+ def width_mm() -> builtins.int: ...
+
+
+class Seat(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_capabilities(self) -> SeatCapabilities: ...
+
+ def get_display(self) -> Display: ...
+
+ def get_keyboard(self) -> typing.Optional[Device]: ...
+
+ def get_pointer(self) -> typing.Optional[Device]: ...
+
+ def get_slaves(self, capabilities: SeatCapabilities) -> typing.Sequence[Device]: ...
+
+ def grab(self, window: Window, capabilities: SeatCapabilities, owner_events: builtins.bool, cursor: typing.Optional[Cursor], event: typing.Optional[Event], prepare_func: typing.Optional[SeatGrabPrepareFunc], *prepare_func_data: typing.Optional[builtins.object]) -> GrabStatus: ...
+
+ def ungrab(self) -> None: ...
+
+
+class Visual(GObject.Object):
+
+ @staticmethod
+ def get_best() -> Visual: ...
+
+ @staticmethod
+ def get_best_depth() -> builtins.int: ...
+
+ @staticmethod
+ def get_best_type() -> VisualType: ...
+
+ @staticmethod
+ def get_best_with_both(depth: builtins.int, visual_type: VisualType) -> typing.Optional[Visual]: ...
+
+ @staticmethod
+ def get_best_with_depth(depth: builtins.int) -> Visual: ...
+
+ @staticmethod
+ def get_best_with_type(visual_type: VisualType) -> Visual: ...
+
+ def get_bits_per_rgb(self) -> builtins.int: ...
+
+ def get_blue_pixel_details(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+ def get_byte_order(self) -> ByteOrder: ...
+
+ def get_colormap_size(self) -> builtins.int: ...
+
+ def get_depth(self) -> builtins.int: ...
+
+ def get_green_pixel_details(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+ def get_red_pixel_details(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+ def get_screen(self) -> Screen: ...
+
+ @staticmethod
+ def get_system() -> Visual: ...
+
+ def get_visual_type(self) -> VisualType: ...
+
+
+class Window(GObject.Object):
+
+ @staticmethod
+ def at_pointer() -> typing.Tuple[Window, builtins.int, builtins.int]: ...
+
+ def beep(self) -> None: ...
+
+ def begin_draw_frame(self, region: cairo.Region) -> DrawingContext: ...
+
+ def begin_move_drag(self, button: builtins.int, root_x: builtins.int, root_y: builtins.int, timestamp: builtins.int) -> None: ...
+
+ def begin_move_drag_for_device(self, device: Device, button: builtins.int, root_x: builtins.int, root_y: builtins.int, timestamp: builtins.int) -> None: ...
+
+ 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: builtins.int, root_x: builtins.int, root_y: builtins.int, timestamp: builtins.int) -> None: ...
+
+ def begin_resize_drag_for_device(self, edge: WindowEdge, device: Device, button: builtins.int, root_x: builtins.int, root_y: builtins.int, timestamp: builtins.int) -> None: ...
+
+ def configure_finished(self) -> None: ...
+
+ @staticmethod
+ def constrain_size(geometry: Geometry, flags: WindowHints, width: builtins.int, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def coords_from_parent(self, parent_x: builtins.float, parent_y: builtins.float) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def coords_to_parent(self, x: builtins.float, y: builtins.float) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def create_gl_context(self) -> GLContext: ...
+
+ def create_similar_image_surface(self, format: builtins.int, width: builtins.int, height: builtins.int, scale: builtins.int) -> cairo.Surface: ...
+
+ def create_similar_surface(self, content: cairo.Content, width: builtins.int, height: builtins.int) -> cairo.Surface: ...
+
+ def deiconify(self) -> None: ...
+
+ def destroy(self) -> None: ...
+
+ def destroy_notify(self) -> None: ...
+
+ def enable_synchronized_configure(self) -> None: ...
+
+ def end_draw_frame(self, context: DrawingContext) -> None: ...
+
+ def end_paint(self) -> None: ...
+
+ def ensure_native(self) -> builtins.bool: ...
+
+ def flush(self) -> None: ...
+
+ def focus(self, timestamp: builtins.int) -> None: ...
+
+ def freeze_toplevel_updates_libgtk_only(self) -> None: ...
+
+ def freeze_updates(self) -> None: ...
+
+ def fullscreen(self) -> None: ...
+
+ def fullscreen_on_monitor(self, monitor: builtins.int) -> None: ...
+
+ def geometry_changed(self) -> None: ...
+
+ def get_accept_focus(self) -> builtins.bool: ...
+
+ def get_background_pattern(self) -> typing.Optional[cairo.Pattern]: ...
+
+ def get_children(self) -> typing.Sequence[Window]: ...
+
+ def get_children_with_user_data(self, user_data: typing.Optional[builtins.object]) -> typing.Sequence[Window]: ...
+
+ def get_clip_region(self) -> cairo.Region: ...
+
+ def get_composited(self) -> builtins.bool: ...
+
+ def get_cursor(self) -> typing.Optional[Cursor]: ...
+
+ def get_decorations(self) -> typing.Tuple[builtins.bool, WMDecoration]: ...
+
+ def get_device_cursor(self, device: Device) -> typing.Optional[Cursor]: ...
+
+ def get_device_events(self, device: Device) -> EventMask: ...
+
+ def get_device_position(self, device: Device) -> typing.Tuple[typing.Optional[Window], builtins.int, builtins.int, ModifierType]: ...
+
+ def get_device_position_double(self, device: Device) -> typing.Tuple[typing.Optional[Window], builtins.float, builtins.float, ModifierType]: ...
+
+ def get_display(self) -> Display: ...
+
+ def get_drag_protocol(self) -> typing.Tuple[DragProtocol, Window]: ...
+
+ def get_effective_parent(self) -> Window: ...
+
+ def get_effective_toplevel(self) -> Window: ...
+
+ def get_event_compression(self) -> builtins.bool: ...
+
+ def get_events(self) -> EventMask: ...
+
+ def get_focus_on_map(self) -> builtins.bool: ...
+
+ def get_frame_clock(self) -> FrameClock: ...
+
+ def get_frame_extents(self) -> Rectangle: ...
+
+ def get_fullscreen_mode(self) -> FullscreenMode: ...
+
+ def get_geometry(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def get_group(self) -> Window: ...
+
+ def get_height(self) -> builtins.int: ...
+
+ def get_modal_hint(self) -> builtins.bool: ...
+
+ def get_origin(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+ def get_parent(self) -> Window: ...
+
+ def get_pass_through(self) -> builtins.bool: ...
+
+ def get_pointer(self) -> typing.Tuple[typing.Optional[Window], builtins.int, builtins.int, ModifierType]: ...
+
+ def get_position(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_root_coords(self, x: builtins.int, y: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_root_origin(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_scale_factor(self) -> builtins.int: ...
+
+ def get_screen(self) -> Screen: ...
+
+ def get_source_events(self, source: InputSource) -> EventMask: ...
+
+ def get_state(self) -> WindowState: ...
+
+ def get_support_multidevice(self) -> builtins.bool: ...
+
+ def get_toplevel(self) -> Window: ...
+
+ def get_type_hint(self) -> WindowTypeHint: ...
+
+ def get_update_area(self) -> cairo.Region: ...
+
+ def get_user_data(self) -> builtins.object: ...
+
+ def get_visible_region(self) -> cairo.Region: ...
+
+ def get_visual(self) -> Visual: ...
+
+ def get_width(self) -> builtins.int: ...
+
+ def get_window_type(self) -> WindowType: ...
+
+ def has_native(self) -> builtins.bool: ...
+
+ def hide(self) -> None: ...
+
+ def iconify(self) -> None: ...
+
+ def input_shape_combine_region(self, shape_region: cairo.Region, offset_x: builtins.int, offset_y: builtins.int) -> None: ...
+
+ def invalidate_maybe_recurse(self, region: cairo.Region, child_func: typing.Optional[WindowChildFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def invalidate_rect(self, rect: typing.Optional[Rectangle], invalidate_children: builtins.bool) -> None: ...
+
+ def invalidate_region(self, region: cairo.Region, invalidate_children: builtins.bool) -> None: ...
+
+ def is_destroyed(self) -> builtins.bool: ...
+
+ def is_input_only(self) -> builtins.bool: ...
+
+ def is_shaped(self) -> builtins.bool: ...
+
+ def is_viewable(self) -> builtins.bool: ...
+
+ def is_visible(self) -> builtins.bool: ...
+
+ def lower(self) -> None: ...
+
+ def mark_paint_from_clip(self, cr: cairo.Context) -> None: ...
+
+ def maximize(self) -> None: ...
+
+ def merge_child_input_shapes(self) -> None: ...
+
+ def merge_child_shapes(self) -> None: ...
+
+ def move(self, x: builtins.int, y: builtins.int) -> None: ...
+
+ def move_region(self, region: cairo.Region, dx: builtins.int, dy: builtins.int) -> None: ...
+
+ def move_resize(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def move_to_rect(self, rect: Rectangle, rect_anchor: Gravity, window_anchor: Gravity, anchor_hints: AnchorHints, rect_anchor_dx: builtins.int, rect_anchor_dy: builtins.int) -> None: ...
+
+ @staticmethod
+ def new(parent: typing.Optional[Window], attributes: WindowAttr, attributes_mask: WindowAttributesType, **kwargs) -> Window: ... # type: ignore
+
+ def peek_children(self) -> typing.Sequence[Window]: ...
+
+ @staticmethod
+ def process_all_updates() -> None: ...
+
+ def process_updates(self, update_children: builtins.bool) -> None: ...
+
+ def raise_(self) -> None: ...
+
+ def register_dnd(self) -> None: ...
+
+ def reparent(self, new_parent: Window, x: builtins.int, y: builtins.int) -> None: ...
+
+ def resize(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def restack(self, sibling: typing.Optional[Window], above: builtins.bool) -> None: ...
+
+ def scroll(self, dx: builtins.int, dy: builtins.int) -> None: ...
+
+ def set_accept_focus(self, accept_focus: builtins.bool) -> None: ...
+
+ def set_background(self, color: Color) -> None: ...
+
+ def set_background_pattern(self, pattern: typing.Optional[cairo.Pattern]) -> None: ...
+
+ def set_background_rgba(self, rgba: RGBA) -> None: ...
+
+ def set_child_input_shapes(self) -> None: ...
+
+ def set_child_shapes(self) -> None: ...
+
+ def set_composited(self, composited: builtins.bool) -> None: ...
+
+ def set_cursor(self, cursor: typing.Optional[Cursor]) -> None: ...
+
+ @staticmethod
+ def set_debug_updates(setting: builtins.bool) -> None: ...
+
+ def set_decorations(self, decorations: WMDecoration) -> None: ...
+
+ def set_device_cursor(self, device: Device, cursor: Cursor) -> None: ...
+
+ def set_device_events(self, device: Device, event_mask: EventMask) -> None: ...
+
+ def set_event_compression(self, event_compression: builtins.bool) -> None: ...
+
+ def set_events(self, event_mask: EventMask) -> None: ...
+
+ def set_focus_on_map(self, focus_on_map: builtins.bool) -> None: ...
+
+ def set_fullscreen_mode(self, mode: FullscreenMode) -> None: ...
+
+ def set_functions(self, functions: WMFunction) -> None: ...
+
+ def set_geometry_hints(self, geometry: Geometry, geom_mask: WindowHints) -> None: ...
+
+ def set_group(self, leader: typing.Optional[Window]) -> None: ...
+
+ def set_icon_list(self, pixbufs: typing.Sequence[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_icon_name(self, name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_keep_above(self, setting: builtins.bool) -> None: ...
+
+ def set_keep_below(self, setting: builtins.bool) -> None: ...
+
+ def set_modal_hint(self, modal: builtins.bool) -> None: ...
+
+ def set_opacity(self, opacity: builtins.float) -> None: ...
+
+ def set_opaque_region(self, region: typing.Optional[cairo.Region]) -> None: ...
+
+ def set_override_redirect(self, override_redirect: builtins.bool) -> None: ...
+
+ def set_pass_through(self, pass_through: builtins.bool) -> None: ...
+
+ def set_role(self, role: builtins.str) -> None: ...
+
+ def set_shadow_width(self, left: builtins.int, right: builtins.int, top: builtins.int, bottom: builtins.int) -> None: ...
+
+ def set_skip_pager_hint(self, skips_pager: builtins.bool) -> None: ...
+
+ def set_skip_taskbar_hint(self, skips_taskbar: builtins.bool) -> None: ...
+
+ def set_source_events(self, source: InputSource, event_mask: EventMask) -> None: ...
+
+ def set_startup_id(self, startup_id: builtins.str) -> None: ...
+
+ def set_static_gravities(self, use_static: builtins.bool) -> builtins.bool: ...
+
+ def set_support_multidevice(self, support_multidevice: builtins.bool) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_transient_for(self, parent: Window) -> None: ...
+
+ def set_type_hint(self, hint: WindowTypeHint) -> None: ...
+
+ def set_urgency_hint(self, urgent: builtins.bool) -> None: ...
+
+ def set_user_data(self, user_data: typing.Optional[GObject.Object]) -> None: ...
+
+ def shape_combine_region(self, shape_region: typing.Optional[cairo.Region], offset_x: builtins.int, offset_y: builtins.int) -> None: ...
+
+ def show(self) -> None: ...
+
+ def show_unraised(self) -> None: ...
+
+ def show_window_menu(self, event: Event) -> builtins.bool: ...
+
+ def stick(self) -> None: ...
+
+ def thaw_toplevel_updates_libgtk_only(self) -> None: ...
+
+ def thaw_updates(self) -> None: ...
+
+ def unfullscreen(self) -> None: ...
+
+ def unmaximize(self) -> None: ...
+
+ def unstick(self) -> None: ...
+
+ def withdraw(self) -> None: ...
+
+ def do_create_surface(self, width: builtins.int, height: builtins.int) -> cairo.Surface: ...
+
+ def do_from_embedder(self, embedder_x: builtins.float, embedder_y: builtins.float, offscreen_x: builtins.float, offscreen_y: builtins.float) -> None: ...
+
+ def do_to_embedder(self, offscreen_x: builtins.float, offscreen_y: builtins.float, embedder_x: builtins.float, embedder_y: builtins.float) -> None: ...
+
+
+class Atom():
+
+ @staticmethod
+ def intern(atom_name: builtins.str, only_if_exists: builtins.bool) -> Atom: ...
+
+ @staticmethod
+ def intern_static_string(atom_name: builtins.str) -> Atom: ...
+
+ def name(self) -> builtins.str: ...
+
+
+class Color():
+ blue: builtins.int
+ green: builtins.int
+ pixel: builtins.int
+ red: builtins.int
+
+ def copy(self) -> Color: ...
+
+ def equal(self, colorb: Color) -> builtins.bool: ...
+
+ def free(self) -> None: ...
+
+ def hash(self) -> builtins.int: ...
+
+ @staticmethod
+ def parse(spec: builtins.str) -> typing.Tuple[builtins.bool, Color]: ...
+
+ def to_string(self) -> builtins.str: ...
+
+
+class EventAny():
+ send_event: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventButton():
+ axes: builtins.float
+ button: builtins.int
+ device: Device
+ send_event: builtins.int
+ state: ModifierType
+ time: builtins.int
+ type: EventType
+ window: Window
+ x: builtins.float
+ x_root: builtins.float
+ y: builtins.float
+ y_root: builtins.float
+
+
+class EventConfigure():
+ height: builtins.int
+ send_event: builtins.int
+ type: EventType
+ width: builtins.int
+ window: Window
+ x: builtins.int
+ y: builtins.int
+
+
+class EventCrossing():
+ detail: NotifyType
+ focus: builtins.bool
+ mode: CrossingMode
+ send_event: builtins.int
+ state: ModifierType
+ subwindow: Window
+ time: builtins.int
+ type: EventType
+ window: Window
+ x: builtins.float
+ x_root: builtins.float
+ y: builtins.float
+ y_root: builtins.float
+
+
+class EventDND():
+ context: DragContext
+ send_event: builtins.int
+ time: builtins.int
+ type: EventType
+ window: Window
+ x_root: builtins.int
+ y_root: builtins.int
+
+
+class EventExpose():
+ area: Rectangle
+ count: builtins.int
+ region: cairo.Region
+ send_event: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventFocus():
+ in_: builtins.int
+ send_event: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventGrabBroken():
+ grab_window: Window
+ implicit: builtins.bool
+ keyboard: builtins.bool
+ send_event: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventKey():
+ group: builtins.int
+ hardware_keycode: builtins.int
+ is_modifier: builtins.int
+ keyval: builtins.int
+ length: builtins.int
+ send_event: builtins.int
+ state: ModifierType
+ string: builtins.str
+ time: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventMotion():
+ axes: builtins.float
+ device: Device
+ is_hint: builtins.int
+ send_event: builtins.int
+ state: ModifierType
+ time: builtins.int
+ type: EventType
+ window: Window
+ x: builtins.float
+ x_root: builtins.float
+ y: builtins.float
+ y_root: builtins.float
+
+
+class EventOwnerChange():
+ owner: Window
+ reason: OwnerChange
+ selection: Atom
+ selection_time: builtins.int
+ send_event: builtins.int
+ time: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventPadAxis():
+ group: builtins.int
+ index: builtins.int
+ mode: builtins.int
+ send_event: builtins.int
+ time: builtins.int
+ type: EventType
+ value: builtins.float
+ window: Window
+
+
+class EventPadButton():
+ button: builtins.int
+ group: builtins.int
+ mode: builtins.int
+ send_event: builtins.int
+ time: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventPadGroupMode():
+ group: builtins.int
+ mode: builtins.int
+ send_event: builtins.int
+ time: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventProperty():
+ atom: Atom
+ send_event: builtins.int
+ state: PropertyState
+ time: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventProximity():
+ device: Device
+ send_event: builtins.int
+ time: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventScroll():
+ delta_x: builtins.float
+ delta_y: builtins.float
+ device: Device
+ direction: ScrollDirection
+ is_stop: builtins.int
+ send_event: builtins.int
+ state: ModifierType
+ time: builtins.int
+ type: EventType
+ window: Window
+ x: builtins.float
+ x_root: builtins.float
+ y: builtins.float
+ y_root: builtins.float
+
+
+class EventSelection():
+ property: Atom
+ requestor: Window
+ selection: Atom
+ send_event: builtins.int
+ target: Atom
+ time: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventSequence():
+ ...
+
+
+class EventSetting():
+ action: SettingAction
+ name: builtins.str
+ send_event: builtins.int
+ type: EventType
+ window: Window
+
+
+class EventTouch():
+ axes: builtins.float
+ device: Device
+ emulating_pointer: builtins.bool
+ send_event: builtins.int
+ sequence: EventSequence
+ state: ModifierType
+ time: builtins.int
+ type: EventType
+ window: Window
+ x: builtins.float
+ x_root: builtins.float
+ y: builtins.float
+ y_root: builtins.float
+
+
+class EventTouchpadPinch():
+ angle_delta: builtins.float
+ dx: builtins.float
+ dy: builtins.float
+ n_fingers: builtins.int
+ phase: builtins.int
+ scale: builtins.float
+ send_event: builtins.int
+ state: ModifierType
+ time: builtins.int
+ type: EventType
+ window: Window
+ x: builtins.float
+ x_root: builtins.float
+ y: builtins.float
+ y_root: builtins.float
+
+
+class EventTouchpadSwipe():
+ dx: builtins.float
+ dy: builtins.float
+ n_fingers: builtins.int
+ phase: builtins.int
+ send_event: builtins.int
+ state: ModifierType
+ time: builtins.int
+ type: EventType
+ window: Window
+ x: builtins.float
+ x_root: builtins.float
+ y: builtins.float
+ y_root: builtins.float
+
+
+class EventVisibility():
+ send_event: builtins.int
+ state: VisibilityState
+ type: EventType
+ window: Window
+
+
+class EventWindowState():
+ changed_mask: WindowState
+ new_window_state: WindowState
+ send_event: builtins.int
+ type: EventType
+ window: Window
+
+
+class FrameTimings():
+
+ def get_complete(self) -> builtins.bool: ...
+
+ def get_frame_counter(self) -> builtins.int: ...
+
+ def get_frame_time(self) -> builtins.int: ...
+
+ def get_predicted_presentation_time(self) -> builtins.int: ...
+
+ def get_presentation_time(self) -> builtins.int: ...
+
+ def get_refresh_interval(self) -> builtins.int: ...
+
+ def ref(self) -> FrameTimings: ...
+
+ def unref(self) -> None: ...
+
+
+class Geometry():
+ base_height: builtins.int
+ base_width: builtins.int
+ height_inc: builtins.int
+ max_aspect: builtins.float
+ max_height: builtins.int
+ max_width: builtins.int
+ min_aspect: builtins.float
+ min_height: builtins.int
+ min_width: builtins.int
+ width_inc: builtins.int
+ win_gravity: Gravity
+
+
+class KeymapKey():
+ group: builtins.int
+ keycode: builtins.int
+ level: builtins.int
+
+
+class Point():
+ x: builtins.int
+ y: builtins.int
+
+
+class RGBA():
+ alpha: builtins.float
+ blue: builtins.float
+ green: builtins.float
+ red: builtins.float
+
+ def __init__(self, red: float = 1.0, green: float = 1.0, blue: float = 1.0, alpha: float = 1.0) -> None: ...
+
+ def copy(self) -> RGBA: ...
+
+ def equal(self, p2: RGBA) -> builtins.bool: ...
+
+ def free(self) -> None: ...
+
+ def hash(self) -> builtins.int: ...
+
+ def parse(self, spec: builtins.str) -> builtins.bool: ...
+
+ def to_string(self) -> builtins.str: ...
+
+
+class Rectangle():
+ height: builtins.int
+ width: builtins.int
+ x: builtins.int
+ y: builtins.int
+
+ def equal(self, rect2: Rectangle) -> builtins.bool: ...
+
+ def intersect(self, src2: Rectangle) -> typing.Tuple[builtins.bool, Rectangle]: ...
+
+ def union(self, src2: Rectangle) -> Rectangle: ...
+
+
+class TimeCoord():
+ axes: typing.Sequence[builtins.float]
+ time: builtins.int
+
+
+class WindowAttr():
+ cursor: Cursor
+ event_mask: builtins.int
+ height: builtins.int
+ override_redirect: builtins.bool
+ title: builtins.str
+ type_hint: WindowTypeHint
+ visual: Visual
+ wclass: WindowWindowClass
+ width: builtins.int
+ window_type: WindowType
+ wmclass_class: builtins.str
+ wmclass_name: builtins.str
+ x: builtins.int
+ y: builtins.int
+
+
+class WindowRedirect():
+ ...
+
+
+class Event():
+ any: EventAny
+ button: EventButton
+ configure: EventConfigure
+ crossing: EventCrossing
+ dnd: EventDND
+ expose: EventExpose
+ focus_change: EventFocus
+ grab_broken: EventGrabBroken
+ key: EventKey
+ motion: EventMotion
+ owner_change: EventOwnerChange
+ pad_axis: EventPadAxis
+ pad_button: EventPadButton
+ pad_group_mode: EventPadGroupMode
+ property: EventProperty
+ proximity: EventProximity
+ scroll: EventScroll
+ selection: EventSelection
+ setting: EventSetting
+ touch: EventTouch
+ touchpad_pinch: EventTouchpadPinch
+ touchpad_swipe: EventTouchpadSwipe
+ type: EventType
+ visibility: EventVisibility
+ window_state: EventWindowState
+
+ def copy(self) -> Event: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def get() -> typing.Optional[Event]: ...
+
+ def get_axis(self, axis_use: AxisUse) -> typing.Tuple[builtins.bool, builtins.float]: ...
+
+ def get_button(self) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def get_click_count(self) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def get_coords(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ def get_device(self) -> typing.Optional[Device]: ...
+
+ def get_device_tool(self) -> DeviceTool: ...
+
+ def get_event_sequence(self) -> EventSequence: ...
+
+ def get_event_type(self) -> EventType: ...
+
+ def get_keycode(self) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def get_keyval(self) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def get_pointer_emulated(self) -> builtins.bool: ...
+
+ def get_root_coords(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ def get_scancode(self) -> builtins.int: ...
+
+ def get_screen(self) -> Screen: ...
+
+ def get_scroll_deltas(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ def get_scroll_direction(self) -> typing.Tuple[builtins.bool, ScrollDirection]: ...
+
+ def get_seat(self) -> Seat: ...
+
+ def get_source_device(self) -> typing.Optional[Device]: ...
+
+ def get_state(self) -> typing.Tuple[builtins.bool, ModifierType]: ...
+
+ def get_time(self) -> builtins.int: ...
+
+ def get_window(self) -> Window: ...
+
+ @staticmethod
+ def handler_set(func: EventFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def is_scroll_stop_event(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(type: EventType) -> Event: ...
+
+ @staticmethod
+ def peek() -> typing.Optional[Event]: ...
+
+ def put(self) -> None: ...
+
+ @staticmethod
+ def request_motions(event: EventMotion) -> None: ...
+
+ def set_device(self, device: Device) -> None: ...
+
+ def set_device_tool(self, tool: typing.Optional[DeviceTool]) -> None: ...
+
+ def set_screen(self, screen: Screen) -> None: ...
+
+ def set_source_device(self, device: Device) -> None: ...
+
+ def triggers_context_menu(self) -> builtins.bool: ...
+
+
+class AnchorHints(GObject.GFlags, builtins.int):
+ FLIP = ... # type: AnchorHints
+ FLIP_X = ... # type: AnchorHints
+ FLIP_Y = ... # type: AnchorHints
+ RESIZE = ... # type: AnchorHints
+ RESIZE_X = ... # type: AnchorHints
+ RESIZE_Y = ... # type: AnchorHints
+ SLIDE = ... # type: AnchorHints
+ SLIDE_X = ... # type: AnchorHints
+ SLIDE_Y = ... # type: AnchorHints
+
+
+class AxisFlags(GObject.GFlags, builtins.int):
+ DISTANCE = ... # type: AxisFlags
+ PRESSURE = ... # type: AxisFlags
+ ROTATION = ... # type: AxisFlags
+ SLIDER = ... # type: AxisFlags
+ WHEEL = ... # type: AxisFlags
+ X = ... # type: AxisFlags
+ XTILT = ... # type: AxisFlags
+ Y = ... # type: AxisFlags
+ YTILT = ... # type: AxisFlags
+
+
+class DragAction(GObject.GFlags, builtins.int):
+ ASK = ... # type: DragAction
+ COPY = ... # type: DragAction
+ DEFAULT = ... # type: DragAction
+ LINK = ... # type: DragAction
+ MOVE = ... # type: DragAction
+ PRIVATE = ... # type: DragAction
+
+
+class EventMask(GObject.GFlags, builtins.int):
+ ALL_EVENTS_MASK = ... # type: EventMask
+ BUTTON1_MOTION_MASK = ... # type: EventMask
+ BUTTON2_MOTION_MASK = ... # type: EventMask
+ BUTTON3_MOTION_MASK = ... # type: EventMask
+ BUTTON_MOTION_MASK = ... # type: EventMask
+ BUTTON_PRESS_MASK = ... # type: EventMask
+ BUTTON_RELEASE_MASK = ... # type: EventMask
+ ENTER_NOTIFY_MASK = ... # type: EventMask
+ EXPOSURE_MASK = ... # type: EventMask
+ FOCUS_CHANGE_MASK = ... # type: EventMask
+ KEY_PRESS_MASK = ... # type: EventMask
+ KEY_RELEASE_MASK = ... # type: EventMask
+ LEAVE_NOTIFY_MASK = ... # type: EventMask
+ POINTER_MOTION_HINT_MASK = ... # type: EventMask
+ POINTER_MOTION_MASK = ... # type: EventMask
+ PROPERTY_CHANGE_MASK = ... # type: EventMask
+ PROXIMITY_IN_MASK = ... # type: EventMask
+ PROXIMITY_OUT_MASK = ... # type: EventMask
+ SCROLL_MASK = ... # type: EventMask
+ SMOOTH_SCROLL_MASK = ... # type: EventMask
+ STRUCTURE_MASK = ... # type: EventMask
+ SUBSTRUCTURE_MASK = ... # type: EventMask
+ TABLET_PAD_MASK = ... # type: EventMask
+ TOUCHPAD_GESTURE_MASK = ... # type: EventMask
+ TOUCH_MASK = ... # type: EventMask
+ VISIBILITY_NOTIFY_MASK = ... # type: EventMask
+
+
+class FrameClockPhase(GObject.GFlags, builtins.int):
+ AFTER_PAINT = ... # type: FrameClockPhase
+ BEFORE_PAINT = ... # type: FrameClockPhase
+ FLUSH_EVENTS = ... # type: FrameClockPhase
+ LAYOUT = ... # type: FrameClockPhase
+ NONE = ... # type: FrameClockPhase
+ PAINT = ... # type: FrameClockPhase
+ RESUME_EVENTS = ... # type: FrameClockPhase
+ UPDATE = ... # type: FrameClockPhase
+
+
+class ModifierType(GObject.GFlags, builtins.int):
+ BUTTON1_MASK = ... # type: ModifierType
+ BUTTON2_MASK = ... # type: ModifierType
+ BUTTON3_MASK = ... # type: ModifierType
+ BUTTON4_MASK = ... # type: ModifierType
+ BUTTON5_MASK = ... # type: ModifierType
+ CONTROL_MASK = ... # type: ModifierType
+ HYPER_MASK = ... # type: ModifierType
+ LOCK_MASK = ... # type: ModifierType
+ META_MASK = ... # type: ModifierType
+ MOD1_MASK = ... # type: ModifierType
+ MOD2_MASK = ... # type: ModifierType
+ MOD3_MASK = ... # type: ModifierType
+ MOD4_MASK = ... # type: ModifierType
+ MOD5_MASK = ... # type: ModifierType
+ MODIFIER_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_13_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_14_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_15_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_16_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_17_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_18_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_19_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_20_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_21_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_22_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_23_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_24_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_25_MASK = ... # type: ModifierType
+ MODIFIER_RESERVED_29_MASK = ... # type: ModifierType
+ RELEASE_MASK = ... # type: ModifierType
+ SHIFT_MASK = ... # type: ModifierType
+ SUPER_MASK = ... # type: ModifierType
+
+
+class SeatCapabilities(GObject.GFlags, builtins.int):
+ ALL = ... # type: SeatCapabilities
+ ALL_POINTING = ... # type: SeatCapabilities
+ KEYBOARD = ... # type: SeatCapabilities
+ NONE = ... # type: SeatCapabilities
+ POINTER = ... # type: SeatCapabilities
+ TABLET_STYLUS = ... # type: SeatCapabilities
+ TOUCH = ... # type: SeatCapabilities
+
+
+class WMDecoration(GObject.GFlags, builtins.int):
+ ALL = ... # type: WMDecoration
+ BORDER = ... # type: WMDecoration
+ MAXIMIZE = ... # type: WMDecoration
+ MENU = ... # type: WMDecoration
+ MINIMIZE = ... # type: WMDecoration
+ RESIZEH = ... # type: WMDecoration
+ TITLE = ... # type: WMDecoration
+
+
+class WMFunction(GObject.GFlags, builtins.int):
+ ALL = ... # type: WMFunction
+ CLOSE = ... # type: WMFunction
+ MAXIMIZE = ... # type: WMFunction
+ MINIMIZE = ... # type: WMFunction
+ MOVE = ... # type: WMFunction
+ RESIZE = ... # type: WMFunction
+
+
+class WindowAttributesType(GObject.GFlags, builtins.int):
+ CURSOR = ... # type: WindowAttributesType
+ NOREDIR = ... # type: WindowAttributesType
+ TITLE = ... # type: WindowAttributesType
+ TYPE_HINT = ... # type: WindowAttributesType
+ VISUAL = ... # type: WindowAttributesType
+ WMCLASS = ... # type: WindowAttributesType
+ X = ... # type: WindowAttributesType
+ Y = ... # type: WindowAttributesType
+
+
+class WindowHints(GObject.GFlags, builtins.int):
+ ASPECT = ... # type: WindowHints
+ BASE_SIZE = ... # type: WindowHints
+ MAX_SIZE = ... # type: WindowHints
+ MIN_SIZE = ... # type: WindowHints
+ POS = ... # type: WindowHints
+ RESIZE_INC = ... # type: WindowHints
+ USER_POS = ... # type: WindowHints
+ USER_SIZE = ... # type: WindowHints
+ WIN_GRAVITY = ... # type: WindowHints
+
+
+class WindowState(GObject.GFlags, builtins.int):
+ ABOVE = ... # type: WindowState
+ BELOW = ... # type: WindowState
+ BOTTOM_RESIZABLE = ... # type: WindowState
+ BOTTOM_TILED = ... # type: WindowState
+ FOCUSED = ... # type: WindowState
+ FULLSCREEN = ... # type: WindowState
+ ICONIFIED = ... # type: WindowState
+ LEFT_RESIZABLE = ... # type: WindowState
+ LEFT_TILED = ... # type: WindowState
+ MAXIMIZED = ... # type: WindowState
+ RIGHT_RESIZABLE = ... # type: WindowState
+ RIGHT_TILED = ... # type: WindowState
+ STICKY = ... # type: WindowState
+ TILED = ... # type: WindowState
+ TOP_RESIZABLE = ... # type: WindowState
+ TOP_TILED = ... # type: WindowState
+ WITHDRAWN = ... # type: WindowState
+
+
+class AxisUse(GObject.GEnum, builtins.int):
+ DISTANCE = ... # type: AxisUse
+ IGNORE = ... # type: AxisUse
+ LAST = ... # type: AxisUse
+ PRESSURE = ... # type: AxisUse
+ ROTATION = ... # type: AxisUse
+ SLIDER = ... # type: AxisUse
+ WHEEL = ... # type: AxisUse
+ X = ... # type: AxisUse
+ XTILT = ... # type: AxisUse
+ Y = ... # type: AxisUse
+ YTILT = ... # type: AxisUse
+
+
+class ByteOrder(GObject.GEnum, builtins.int):
+ LSB_FIRST = ... # type: ByteOrder
+ MSB_FIRST = ... # type: ByteOrder
+
+
+class CrossingMode(GObject.GEnum, builtins.int):
+ DEVICE_SWITCH = ... # type: CrossingMode
+ GRAB = ... # type: CrossingMode
+ GTK_GRAB = ... # type: CrossingMode
+ GTK_UNGRAB = ... # type: CrossingMode
+ NORMAL = ... # type: CrossingMode
+ STATE_CHANGED = ... # type: CrossingMode
+ TOUCH_BEGIN = ... # type: CrossingMode
+ TOUCH_END = ... # type: CrossingMode
+ UNGRAB = ... # type: CrossingMode
+
+
+class CursorType(GObject.GEnum, builtins.int):
+ ARROW = ... # type: CursorType
+ BASED_ARROW_DOWN = ... # type: CursorType
+ BASED_ARROW_UP = ... # type: CursorType
+ BLANK_CURSOR = ... # type: CursorType
+ BOAT = ... # type: CursorType
+ BOGOSITY = ... # type: CursorType
+ BOTTOM_LEFT_CORNER = ... # type: CursorType
+ BOTTOM_RIGHT_CORNER = ... # type: CursorType
+ BOTTOM_SIDE = ... # type: CursorType
+ BOTTOM_TEE = ... # type: CursorType
+ BOX_SPIRAL = ... # type: CursorType
+ CENTER_PTR = ... # type: CursorType
+ CIRCLE = ... # type: CursorType
+ CLOCK = ... # type: CursorType
+ COFFEE_MUG = ... # type: CursorType
+ CROSS = ... # type: CursorType
+ CROSSHAIR = ... # type: CursorType
+ CROSS_REVERSE = ... # type: CursorType
+ CURSOR_IS_PIXMAP = ... # type: CursorType
+ DIAMOND_CROSS = ... # type: CursorType
+ DOT = ... # type: CursorType
+ DOTBOX = ... # type: CursorType
+ DOUBLE_ARROW = ... # type: CursorType
+ DRAFT_LARGE = ... # type: CursorType
+ DRAFT_SMALL = ... # type: CursorType
+ DRAPED_BOX = ... # type: CursorType
+ EXCHANGE = ... # type: CursorType
+ FLEUR = ... # type: CursorType
+ GOBBLER = ... # type: CursorType
+ GUMBY = ... # type: CursorType
+ HAND1 = ... # type: CursorType
+ HAND2 = ... # type: CursorType
+ HEART = ... # type: CursorType
+ ICON = ... # type: CursorType
+ IRON_CROSS = ... # type: CursorType
+ LAST_CURSOR = ... # type: CursorType
+ LEFTBUTTON = ... # type: CursorType
+ LEFT_PTR = ... # type: CursorType
+ LEFT_SIDE = ... # type: CursorType
+ LEFT_TEE = ... # type: CursorType
+ LL_ANGLE = ... # type: CursorType
+ LR_ANGLE = ... # type: CursorType
+ MAN = ... # type: CursorType
+ MIDDLEBUTTON = ... # type: CursorType
+ MOUSE = ... # type: CursorType
+ PENCIL = ... # type: CursorType
+ PIRATE = ... # type: CursorType
+ PLUS = ... # type: CursorType
+ QUESTION_ARROW = ... # type: CursorType
+ RIGHTBUTTON = ... # type: CursorType
+ RIGHT_PTR = ... # type: CursorType
+ RIGHT_SIDE = ... # type: CursorType
+ RIGHT_TEE = ... # type: CursorType
+ RTL_LOGO = ... # type: CursorType
+ SAILBOAT = ... # type: CursorType
+ SB_DOWN_ARROW = ... # type: CursorType
+ SB_H_DOUBLE_ARROW = ... # type: CursorType
+ SB_LEFT_ARROW = ... # type: CursorType
+ SB_RIGHT_ARROW = ... # type: CursorType
+ SB_UP_ARROW = ... # type: CursorType
+ SB_V_DOUBLE_ARROW = ... # type: CursorType
+ SHUTTLE = ... # type: CursorType
+ SIZING = ... # type: CursorType
+ SPIDER = ... # type: CursorType
+ SPRAYCAN = ... # type: CursorType
+ STAR = ... # type: CursorType
+ TARGET = ... # type: CursorType
+ TCROSS = ... # type: CursorType
+ TOP_LEFT_ARROW = ... # type: CursorType
+ TOP_LEFT_CORNER = ... # type: CursorType
+ TOP_RIGHT_CORNER = ... # type: CursorType
+ TOP_SIDE = ... # type: CursorType
+ TOP_TEE = ... # type: CursorType
+ TREK = ... # type: CursorType
+ UL_ANGLE = ... # type: CursorType
+ UMBRELLA = ... # type: CursorType
+ UR_ANGLE = ... # type: CursorType
+ WATCH = ... # type: CursorType
+ XTERM = ... # type: CursorType
+ X_CURSOR = ... # type: CursorType
+
+
+class DevicePadFeature(GObject.GEnum, builtins.int):
+ BUTTON = ... # type: DevicePadFeature
+ RING = ... # type: DevicePadFeature
+ STRIP = ... # type: DevicePadFeature
+
+
+class DeviceToolType(GObject.GEnum, builtins.int):
+ AIRBRUSH = ... # type: DeviceToolType
+ BRUSH = ... # type: DeviceToolType
+ ERASER = ... # type: DeviceToolType
+ LENS = ... # type: DeviceToolType
+ MOUSE = ... # type: DeviceToolType
+ PEN = ... # type: DeviceToolType
+ PENCIL = ... # type: DeviceToolType
+ UNKNOWN = ... # type: DeviceToolType
+
+
+class DeviceType(GObject.GEnum, builtins.int):
+ FLOATING = ... # type: DeviceType
+ MASTER = ... # type: DeviceType
+ SLAVE = ... # type: DeviceType
+
+
+class DragCancelReason(GObject.GEnum, builtins.int):
+ ERROR = ... # type: DragCancelReason
+ NO_TARGET = ... # type: DragCancelReason
+ USER_CANCELLED = ... # type: DragCancelReason
+
+
+class DragProtocol(GObject.GEnum, builtins.int):
+ LOCAL = ... # type: DragProtocol
+ MOTIF = ... # type: DragProtocol
+ NONE = ... # type: DragProtocol
+ OLE2 = ... # type: DragProtocol
+ ROOTWIN = ... # type: DragProtocol
+ WAYLAND = ... # type: DragProtocol
+ WIN32_DROPFILES = ... # type: DragProtocol
+ XDND = ... # type: DragProtocol
+
+
+class EventType(GObject.GEnum, builtins.int):
+ BUTTON_PRESS = ... # type: EventType
+ BUTTON_RELEASE = ... # type: EventType
+ CLIENT_EVENT = ... # type: EventType
+ CONFIGURE = ... # type: EventType
+ DAMAGE = ... # type: EventType
+ DELETE = ... # type: EventType
+ DESTROY = ... # type: EventType
+ DOUBLE_BUTTON_PRESS = ... # type: EventType
+ DRAG_ENTER = ... # type: EventType
+ DRAG_LEAVE = ... # type: EventType
+ DRAG_MOTION = ... # type: EventType
+ DRAG_STATUS = ... # type: EventType
+ DROP_FINISHED = ... # type: EventType
+ DROP_START = ... # type: EventType
+ ENTER_NOTIFY = ... # type: EventType
+ EVENT_LAST = ... # type: EventType
+ EXPOSE = ... # type: EventType
+ FOCUS_CHANGE = ... # type: EventType
+ GRAB_BROKEN = ... # type: EventType
+ KEY_PRESS = ... # type: EventType
+ KEY_RELEASE = ... # type: EventType
+ LEAVE_NOTIFY = ... # type: EventType
+ MAP = ... # type: EventType
+ MOTION_NOTIFY = ... # type: EventType
+ NOTHING = ... # type: EventType
+ OWNER_CHANGE = ... # type: EventType
+ PAD_BUTTON_PRESS = ... # type: EventType
+ PAD_BUTTON_RELEASE = ... # type: EventType
+ PAD_GROUP_MODE = ... # type: EventType
+ PAD_RING = ... # type: EventType
+ PAD_STRIP = ... # type: EventType
+ PROPERTY_NOTIFY = ... # type: EventType
+ PROXIMITY_IN = ... # type: EventType
+ PROXIMITY_OUT = ... # type: EventType
+ SCROLL = ... # type: EventType
+ SELECTION_CLEAR = ... # type: EventType
+ SELECTION_NOTIFY = ... # type: EventType
+ SELECTION_REQUEST = ... # type: EventType
+ SETTING = ... # type: EventType
+ TOUCHPAD_PINCH = ... # type: EventType
+ TOUCHPAD_SWIPE = ... # type: EventType
+ TOUCH_BEGIN = ... # type: EventType
+ TOUCH_CANCEL = ... # type: EventType
+ TOUCH_END = ... # type: EventType
+ TOUCH_UPDATE = ... # type: EventType
+ TRIPLE_BUTTON_PRESS = ... # type: EventType
+ UNMAP = ... # type: EventType
+ VISIBILITY_NOTIFY = ... # type: EventType
+ WINDOW_STATE = ... # type: EventType
+ _2BUTTON_PRESS = ... # type: EventType
+ _3BUTTON_PRESS = ... # type: EventType
+
+
+class FilterReturn(GObject.GEnum, builtins.int):
+ CONTINUE = ... # type: FilterReturn
+ REMOVE = ... # type: FilterReturn
+ TRANSLATE = ... # type: FilterReturn
+
+
+class FullscreenMode(GObject.GEnum, builtins.int):
+ ALL_MONITORS = ... # type: FullscreenMode
+ CURRENT_MONITOR = ... # type: FullscreenMode
+
+
+class GLError(GObject.GEnum, builtins.int):
+ NOT_AVAILABLE = ... # type: GLError
+ UNSUPPORTED_FORMAT = ... # type: GLError
+ UNSUPPORTED_PROFILE = ... # type: GLError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class GrabOwnership(GObject.GEnum, builtins.int):
+ APPLICATION = ... # type: GrabOwnership
+ NONE = ... # type: GrabOwnership
+ WINDOW = ... # type: GrabOwnership
+
+
+class GrabStatus(GObject.GEnum, builtins.int):
+ ALREADY_GRABBED = ... # type: GrabStatus
+ FAILED = ... # type: GrabStatus
+ FROZEN = ... # type: GrabStatus
+ INVALID_TIME = ... # type: GrabStatus
+ NOT_VIEWABLE = ... # type: GrabStatus
+ SUCCESS = ... # type: GrabStatus
+
+
+class Gravity(GObject.GEnum, builtins.int):
+ CENTER = ... # type: Gravity
+ EAST = ... # type: Gravity
+ NORTH = ... # type: Gravity
+ NORTH_EAST = ... # type: Gravity
+ NORTH_WEST = ... # type: Gravity
+ SOUTH = ... # type: Gravity
+ SOUTH_EAST = ... # type: Gravity
+ SOUTH_WEST = ... # type: Gravity
+ STATIC = ... # type: Gravity
+ WEST = ... # type: Gravity
+
+
+class InputMode(GObject.GEnum, builtins.int):
+ DISABLED = ... # type: InputMode
+ SCREEN = ... # type: InputMode
+ WINDOW = ... # type: InputMode
+
+
+class InputSource(GObject.GEnum, builtins.int):
+ CURSOR = ... # type: InputSource
+ ERASER = ... # type: InputSource
+ KEYBOARD = ... # type: InputSource
+ MOUSE = ... # type: InputSource
+ PEN = ... # type: InputSource
+ TABLET_PAD = ... # type: InputSource
+ TOUCHPAD = ... # type: InputSource
+ TOUCHSCREEN = ... # type: InputSource
+ TRACKPOINT = ... # type: InputSource
+
+
+class ModifierIntent(GObject.GEnum, builtins.int):
+ CONTEXT_MENU = ... # type: ModifierIntent
+ DEFAULT_MOD_MASK = ... # type: ModifierIntent
+ EXTEND_SELECTION = ... # type: ModifierIntent
+ MODIFY_SELECTION = ... # type: ModifierIntent
+ NO_TEXT_INPUT = ... # type: ModifierIntent
+ PRIMARY_ACCELERATOR = ... # type: ModifierIntent
+ SHIFT_GROUP = ... # type: ModifierIntent
+
+
+class NotifyType(GObject.GEnum, builtins.int):
+ ANCESTOR = ... # type: NotifyType
+ INFERIOR = ... # type: NotifyType
+ NONLINEAR = ... # type: NotifyType
+ NONLINEAR_VIRTUAL = ... # type: NotifyType
+ UNKNOWN = ... # type: NotifyType
+ VIRTUAL = ... # type: NotifyType
+
+
+class OwnerChange(GObject.GEnum, builtins.int):
+ CLOSE = ... # type: OwnerChange
+ DESTROY = ... # type: OwnerChange
+ NEW_OWNER = ... # type: OwnerChange
+
+
+class PropMode(GObject.GEnum, builtins.int):
+ APPEND = ... # type: PropMode
+ PREPEND = ... # type: PropMode
+ REPLACE = ... # type: PropMode
+
+
+class PropertyState(GObject.GEnum, builtins.int):
+ DELETE = ... # type: PropertyState
+ NEW_VALUE = ... # type: PropertyState
+
+
+class ScrollDirection(GObject.GEnum, builtins.int):
+ DOWN = ... # type: ScrollDirection
+ LEFT = ... # type: ScrollDirection
+ RIGHT = ... # type: ScrollDirection
+ SMOOTH = ... # type: ScrollDirection
+ UP = ... # type: ScrollDirection
+
+
+class SettingAction(GObject.GEnum, builtins.int):
+ CHANGED = ... # type: SettingAction
+ DELETED = ... # type: SettingAction
+ NEW = ... # type: SettingAction
+
+
+class Status(GObject.GEnum, builtins.int):
+ ERROR = ... # type: Status
+ ERROR_FILE = ... # type: Status
+ ERROR_MEM = ... # type: Status
+ ERROR_PARAM = ... # type: Status
+ OK = ... # type: Status
+
+
+class SubpixelLayout(GObject.GEnum, builtins.int):
+ HORIZONTAL_BGR = ... # type: SubpixelLayout
+ HORIZONTAL_RGB = ... # type: SubpixelLayout
+ NONE = ... # type: SubpixelLayout
+ UNKNOWN = ... # type: SubpixelLayout
+ VERTICAL_BGR = ... # type: SubpixelLayout
+ VERTICAL_RGB = ... # type: SubpixelLayout
+
+
+class TouchpadGesturePhase(GObject.GEnum, builtins.int):
+ BEGIN = ... # type: TouchpadGesturePhase
+ CANCEL = ... # type: TouchpadGesturePhase
+ END = ... # type: TouchpadGesturePhase
+ UPDATE = ... # type: TouchpadGesturePhase
+
+
+class VisibilityState(GObject.GEnum, builtins.int):
+ FULLY_OBSCURED = ... # type: VisibilityState
+ PARTIAL = ... # type: VisibilityState
+ UNOBSCURED = ... # type: VisibilityState
+
+
+class VisualType(GObject.GEnum, builtins.int):
+ DIRECT_COLOR = ... # type: VisualType
+ GRAYSCALE = ... # type: VisualType
+ PSEUDO_COLOR = ... # type: VisualType
+ STATIC_COLOR = ... # type: VisualType
+ STATIC_GRAY = ... # type: VisualType
+ TRUE_COLOR = ... # type: VisualType
+
+
+class WindowEdge(GObject.GEnum, builtins.int):
+ EAST = ... # type: WindowEdge
+ NORTH = ... # type: WindowEdge
+ NORTH_EAST = ... # type: WindowEdge
+ NORTH_WEST = ... # type: WindowEdge
+ SOUTH = ... # type: WindowEdge
+ SOUTH_EAST = ... # type: WindowEdge
+ SOUTH_WEST = ... # type: WindowEdge
+ WEST = ... # type: WindowEdge
+
+
+class WindowType(GObject.GEnum, builtins.int):
+ CHILD = ... # type: WindowType
+ FOREIGN = ... # type: WindowType
+ OFFSCREEN = ... # type: WindowType
+ ROOT = ... # type: WindowType
+ SUBSURFACE = ... # type: WindowType
+ TEMP = ... # type: WindowType
+ TOPLEVEL = ... # type: WindowType
+
+
+class WindowTypeHint(GObject.GEnum, builtins.int):
+ COMBO = ... # type: WindowTypeHint
+ DESKTOP = ... # type: WindowTypeHint
+ DIALOG = ... # type: WindowTypeHint
+ DND = ... # type: WindowTypeHint
+ DOCK = ... # type: WindowTypeHint
+ DROPDOWN_MENU = ... # type: WindowTypeHint
+ MENU = ... # type: WindowTypeHint
+ NORMAL = ... # type: WindowTypeHint
+ NOTIFICATION = ... # type: WindowTypeHint
+ POPUP_MENU = ... # type: WindowTypeHint
+ SPLASHSCREEN = ... # type: WindowTypeHint
+ TOOLBAR = ... # type: WindowTypeHint
+ TOOLTIP = ... # type: WindowTypeHint
+ UTILITY = ... # type: WindowTypeHint
+
+
+class WindowWindowClass(GObject.GEnum, builtins.int):
+ INPUT_ONLY = ... # type: WindowWindowClass
+ INPUT_OUTPUT = ... # type: WindowWindowClass
+
+
+EventFunc = typing.Callable[[Event, typing.Optional[builtins.object]], None]
+FilterFunc = typing.Callable[[builtins.object, Event, typing.Optional[builtins.object]], FilterReturn]
+SeatGrabPrepareFunc = typing.Callable[[Seat, Window, typing.Optional[builtins.object]], None]
+WindowChildFunc = typing.Callable[[Window, typing.Optional[builtins.object]], builtins.bool]
+WindowInvalidateHandlerFunc = typing.Callable[[Window, cairo.Region], None]
+
+
+def add_option_entries_libgtk_only(group: GLib.OptionGroup) -> None: ...
+
+
+def atom_intern(atom_name: builtins.str, only_if_exists: builtins.bool) -> Atom: ...
+
+
+def atom_intern_static_string(atom_name: builtins.str) -> Atom: ...
+
+
+def beep() -> None: ...
+
+
+def cairo_create(window: Window) -> cairo.Context: ...
+
+
+def cairo_draw_from_gl(cr: cairo.Context, window: Window, source: builtins.int, source_type: builtins.int, buffer_scale: builtins.int, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def cairo_get_clip_rectangle(cr: cairo.Context) -> typing.Tuple[builtins.bool, Rectangle]: ...
+
+
+def cairo_get_drawing_context(cr: cairo.Context) -> typing.Optional[DrawingContext]: ...
+
+
+def cairo_rectangle(cr: cairo.Context, rectangle: Rectangle) -> None: ...
+
+
+def cairo_region(cr: cairo.Context, region: cairo.Region) -> None: ...
+
+
+def cairo_region_create_from_surface(surface: cairo.Surface) -> cairo.Region: ...
+
+
+def cairo_set_source_color(cr: cairo.Context, color: Color) -> None: ...
+
+
+def cairo_set_source_pixbuf(cr: cairo.Context, pixbuf: GdkPixbuf.Pixbuf, pixbuf_x: builtins.float, pixbuf_y: builtins.float) -> None: ...
+
+
+def cairo_set_source_rgba(cr: cairo.Context, rgba: RGBA) -> None: ...
+
+
+def cairo_set_source_window(cr: cairo.Context, window: Window, x: builtins.float, y: builtins.float) -> None: ...
+
+
+def cairo_surface_create_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf, scale: builtins.int, for_window: typing.Optional[Window]) -> cairo.Surface: ...
+
+
+def color_parse(spec: builtins.str) -> typing.Tuple[builtins.bool, Color]: ...
+
+
+def disable_multidevice() -> None: ...
+
+
+def drag_abort(context: DragContext, time_: builtins.int) -> None: ...
+
+
+def drag_begin(window: Window, targets: typing.Sequence[Atom]) -> DragContext: ...
+
+
+def drag_begin_for_device(window: Window, device: Device, targets: typing.Sequence[Atom]) -> DragContext: ...
+
+
+def drag_begin_from_point(window: Window, device: Device, targets: typing.Sequence[Atom], x_root: builtins.int, y_root: builtins.int) -> DragContext: ...
+
+
+def drag_drop(context: DragContext, time_: builtins.int) -> None: ...
+
+
+def drag_drop_done(context: DragContext, success: builtins.bool) -> None: ...
+
+
+def drag_drop_succeeded(context: DragContext) -> builtins.bool: ...
+
+
+def drag_find_window_for_screen(context: DragContext, drag_window: Window, screen: Screen, x_root: builtins.int, y_root: builtins.int) -> typing.Tuple[Window, DragProtocol]: ...
+
+
+def drag_get_selection(context: DragContext) -> Atom: ...
+
+
+def drag_motion(context: DragContext, dest_window: Window, protocol: DragProtocol, x_root: builtins.int, y_root: builtins.int, suggested_action: DragAction, possible_actions: DragAction, time_: builtins.int) -> builtins.bool: ...
+
+
+def drag_status(context: DragContext, action: DragAction, time_: builtins.int) -> None: ...
+
+
+def drop_finish(context: DragContext, success: builtins.bool, time_: builtins.int) -> None: ...
+
+
+def drop_reply(context: DragContext, accepted: builtins.bool, time_: builtins.int) -> None: ...
+
+
+def error_trap_pop() -> builtins.int: ...
+
+
+def error_trap_pop_ignored() -> None: ...
+
+
+def error_trap_push() -> None: ...
+
+
+def event_get() -> typing.Optional[Event]: ...
+
+
+def event_handler_set(func: EventFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+
+def event_peek() -> typing.Optional[Event]: ...
+
+
+def event_request_motions(event: EventMotion) -> None: ...
+
+
+def events_get_angle(event1: Event, event2: Event) -> typing.Tuple[builtins.bool, builtins.float]: ...
+
+
+def events_get_center(event1: Event, event2: Event) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+
+def events_get_distance(event1: Event, event2: Event) -> typing.Tuple[builtins.bool, builtins.float]: ...
+
+
+def events_pending() -> builtins.bool: ...
+
+
+def flush() -> None: ...
+
+
+def get_default_root_window() -> Window: ...
+
+
+def get_display() -> builtins.str: ...
+
+
+def get_display_arg_name() -> typing.Optional[builtins.str]: ...
+
+
+def get_program_class() -> builtins.str: ...
+
+
+def get_show_events() -> builtins.bool: ...
+
+
+def gl_error_quark() -> builtins.int: ...
+
+
+def init(argv: typing.Sequence[builtins.str]) -> typing.Sequence[builtins.str]: ...
+
+
+def init_check(argv: typing.Sequence[builtins.str]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+
+def keyboard_grab(window: Window, owner_events: builtins.bool, time_: builtins.int) -> GrabStatus: ...
+
+
+def keyboard_ungrab(time_: builtins.int) -> None: ...
+
+
+def keyval_convert_case(symbol: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def keyval_from_name(keyval_name: builtins.str) -> builtins.int: ...
+
+
+def keyval_is_lower(keyval: builtins.int) -> builtins.bool: ...
+
+
+def keyval_is_upper(keyval: builtins.int) -> builtins.bool: ...
+
+
+def keyval_name(keyval: builtins.int) -> typing.Optional[builtins.str]: ...
+
+
+def keyval_to_lower(keyval: builtins.int) -> builtins.int: ...
+
+
+def keyval_to_unicode(keyval: builtins.int) -> builtins.int: ...
+
+
+def keyval_to_upper(keyval: builtins.int) -> builtins.int: ...
+
+
+def list_visuals() -> typing.Sequence[Visual]: ...
+
+
+def notify_startup_complete() -> None: ...
+
+
+def notify_startup_complete_with_id(startup_id: builtins.str) -> None: ...
+
+
+def offscreen_window_get_embedder(window: Window) -> typing.Optional[Window]: ...
+
+
+def offscreen_window_get_surface(window: Window) -> typing.Optional[cairo.Surface]: ...
+
+
+def offscreen_window_set_embedder(window: Window, embedder: Window) -> None: ...
+
+
+def pango_context_get() -> Pango.Context: ...
+
+
+def pango_context_get_for_display(display: Display) -> Pango.Context: ...
+
+
+def pango_context_get_for_screen(screen: Screen) -> Pango.Context: ...
+
+
+def parse_args(argv: typing.Sequence[builtins.str]) -> typing.Sequence[builtins.str]: ...
+
+
+def pixbuf_get_from_surface(surface: cairo.Surface, src_x: builtins.int, src_y: builtins.int, width: builtins.int, height: builtins.int) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+
+def pixbuf_get_from_window(window: Window, src_x: builtins.int, src_y: builtins.int, width: builtins.int, height: builtins.int) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+
+def pointer_grab(window: Window, owner_events: builtins.bool, event_mask: EventMask, confine_to: typing.Optional[Window], cursor: typing.Optional[Cursor], time_: builtins.int) -> GrabStatus: ...
+
+
+def pointer_is_grabbed() -> builtins.bool: ...
+
+
+def pointer_ungrab(time_: builtins.int) -> None: ...
+
+
+def pre_parse_libgtk_only() -> None: ...
+
+
+def property_delete(window: Window, property: Atom) -> None: ...
+
+
+def property_get(window: Window, property: Atom, type: Atom, offset: builtins.int, length: builtins.int, pdelete: builtins.int) -> typing.Tuple[builtins.bool, Atom, builtins.int, builtins.bytes]: ...
+
+
+def query_depths() -> typing.Sequence[builtins.int]: ...
+
+
+def query_visual_types() -> typing.Sequence[VisualType]: ...
+
+
+def selection_convert(requestor: Window, selection: Atom, target: Atom, time_: builtins.int) -> None: ...
+
+
+def selection_owner_get(selection: Atom) -> typing.Optional[Window]: ...
+
+
+def selection_owner_get_for_display(display: Display, selection: Atom) -> typing.Optional[Window]: ...
+
+
+def selection_owner_set(owner: typing.Optional[Window], selection: Atom, time_: builtins.int, send_event: builtins.bool) -> builtins.bool: ...
+
+
+def selection_owner_set_for_display(display: Display, owner: typing.Optional[Window], selection: Atom, time_: builtins.int, send_event: builtins.bool) -> builtins.bool: ...
+
+
+def selection_send_notify(requestor: Window, selection: Atom, target: Atom, property: Atom, time_: builtins.int) -> None: ...
+
+
+def selection_send_notify_for_display(display: Display, requestor: Window, selection: Atom, target: Atom, property: Atom, time_: builtins.int) -> None: ...
+
+
+def set_allowed_backends(backends: builtins.str) -> None: ...
+
+
+def set_double_click_time(msec: builtins.int) -> None: ...
+
+
+def set_program_class(program_class: builtins.str) -> None: ...
+
+
+def set_show_events(show_events: builtins.bool) -> None: ...
+
+
+def setting_get(name: builtins.str, value: GObject.Value) -> builtins.bool: ...
+
+
+def synthesize_window_state(window: Window, unset_flags: WindowState, set_flags: WindowState) -> None: ...
+
+
+def test_render_sync(window: Window) -> None: ...
+
+
+def test_simulate_button(window: Window, x: builtins.int, y: builtins.int, button: builtins.int, modifiers: ModifierType, button_pressrelease: EventType) -> builtins.bool: ...
+
+
+def test_simulate_key(window: Window, x: builtins.int, y: builtins.int, keyval: builtins.int, modifiers: ModifierType, key_pressrelease: EventType) -> builtins.bool: ...
+
+
+def text_property_to_utf8_list_for_display(display: Display, encoding: Atom, format: builtins.int, text: builtins.bytes) -> typing.Tuple[builtins.int, typing.Sequence[builtins.str]]: ...
+
+
+def threads_add_idle(priority: builtins.int, function: GLib.SourceFunc, *data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def threads_add_timeout(priority: builtins.int, interval: builtins.int, function: GLib.SourceFunc, *data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def threads_add_timeout_seconds(priority: builtins.int, interval: builtins.int, function: GLib.SourceFunc, *data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+
+def threads_enter() -> None: ...
+
+
+def threads_init() -> None: ...
+
+
+def threads_leave() -> None: ...
+
+
+def unicode_to_keyval(wc: builtins.int) -> builtins.int: ...
+
+
+def utf8_to_string_target(str: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+BUTTON_MIDDLE: builtins.int
+BUTTON_PRIMARY: builtins.int
+BUTTON_SECONDARY: builtins.int
+CURRENT_TIME: builtins.int
+EVENT_PROPAGATE: builtins.int
+EVENT_STOP: builtins.int
+KEY_0: builtins.int
+KEY_1: builtins.int
+KEY_2: builtins.int
+KEY_3: builtins.int
+KEY_3270_AltCursor: builtins.int
+KEY_3270_Attn: builtins.int
+KEY_3270_BackTab: builtins.int
+KEY_3270_ChangeScreen: builtins.int
+KEY_3270_Copy: builtins.int
+KEY_3270_CursorBlink: builtins.int
+KEY_3270_CursorSelect: builtins.int
+KEY_3270_DeleteWord: builtins.int
+KEY_3270_Duplicate: builtins.int
+KEY_3270_Enter: builtins.int
+KEY_3270_EraseEOF: builtins.int
+KEY_3270_EraseInput: builtins.int
+KEY_3270_ExSelect: builtins.int
+KEY_3270_FieldMark: builtins.int
+KEY_3270_Ident: builtins.int
+KEY_3270_Jump: builtins.int
+KEY_3270_KeyClick: builtins.int
+KEY_3270_Left2: builtins.int
+KEY_3270_PA1: builtins.int
+KEY_3270_PA2: builtins.int
+KEY_3270_PA3: builtins.int
+KEY_3270_Play: builtins.int
+KEY_3270_PrintScreen: builtins.int
+KEY_3270_Quit: builtins.int
+KEY_3270_Record: builtins.int
+KEY_3270_Reset: builtins.int
+KEY_3270_Right2: builtins.int
+KEY_3270_Rule: builtins.int
+KEY_3270_Setup: builtins.int
+KEY_3270_Test: builtins.int
+KEY_4: builtins.int
+KEY_5: builtins.int
+KEY_6: builtins.int
+KEY_7: builtins.int
+KEY_8: builtins.int
+KEY_9: builtins.int
+KEY_A: builtins.int
+KEY_AE: builtins.int
+KEY_Aacute: builtins.int
+KEY_Abelowdot: builtins.int
+KEY_Abreve: builtins.int
+KEY_Abreveacute: builtins.int
+KEY_Abrevebelowdot: builtins.int
+KEY_Abrevegrave: builtins.int
+KEY_Abrevehook: builtins.int
+KEY_Abrevetilde: builtins.int
+KEY_AccessX_Enable: builtins.int
+KEY_AccessX_Feedback_Enable: builtins.int
+KEY_Acircumflex: builtins.int
+KEY_Acircumflexacute: builtins.int
+KEY_Acircumflexbelowdot: builtins.int
+KEY_Acircumflexgrave: builtins.int
+KEY_Acircumflexhook: builtins.int
+KEY_Acircumflextilde: builtins.int
+KEY_AddFavorite: builtins.int
+KEY_Adiaeresis: builtins.int
+KEY_Agrave: builtins.int
+KEY_Ahook: builtins.int
+KEY_Alt_L: builtins.int
+KEY_Alt_R: builtins.int
+KEY_Amacron: builtins.int
+KEY_Aogonek: builtins.int
+KEY_ApplicationLeft: builtins.int
+KEY_ApplicationRight: builtins.int
+KEY_Arabic_0: builtins.int
+KEY_Arabic_1: builtins.int
+KEY_Arabic_2: builtins.int
+KEY_Arabic_3: builtins.int
+KEY_Arabic_4: builtins.int
+KEY_Arabic_5: builtins.int
+KEY_Arabic_6: builtins.int
+KEY_Arabic_7: builtins.int
+KEY_Arabic_8: builtins.int
+KEY_Arabic_9: builtins.int
+KEY_Arabic_ain: builtins.int
+KEY_Arabic_alef: builtins.int
+KEY_Arabic_alefmaksura: builtins.int
+KEY_Arabic_beh: builtins.int
+KEY_Arabic_comma: builtins.int
+KEY_Arabic_dad: builtins.int
+KEY_Arabic_dal: builtins.int
+KEY_Arabic_damma: builtins.int
+KEY_Arabic_dammatan: builtins.int
+KEY_Arabic_ddal: builtins.int
+KEY_Arabic_farsi_yeh: builtins.int
+KEY_Arabic_fatha: builtins.int
+KEY_Arabic_fathatan: builtins.int
+KEY_Arabic_feh: builtins.int
+KEY_Arabic_fullstop: builtins.int
+KEY_Arabic_gaf: builtins.int
+KEY_Arabic_ghain: builtins.int
+KEY_Arabic_ha: builtins.int
+KEY_Arabic_hah: builtins.int
+KEY_Arabic_hamza: builtins.int
+KEY_Arabic_hamza_above: builtins.int
+KEY_Arabic_hamza_below: builtins.int
+KEY_Arabic_hamzaonalef: builtins.int
+KEY_Arabic_hamzaonwaw: builtins.int
+KEY_Arabic_hamzaonyeh: builtins.int
+KEY_Arabic_hamzaunderalef: builtins.int
+KEY_Arabic_heh: builtins.int
+KEY_Arabic_heh_doachashmee: builtins.int
+KEY_Arabic_heh_goal: builtins.int
+KEY_Arabic_jeem: builtins.int
+KEY_Arabic_jeh: builtins.int
+KEY_Arabic_kaf: builtins.int
+KEY_Arabic_kasra: builtins.int
+KEY_Arabic_kasratan: builtins.int
+KEY_Arabic_keheh: builtins.int
+KEY_Arabic_khah: builtins.int
+KEY_Arabic_lam: builtins.int
+KEY_Arabic_madda_above: builtins.int
+KEY_Arabic_maddaonalef: builtins.int
+KEY_Arabic_meem: builtins.int
+KEY_Arabic_noon: builtins.int
+KEY_Arabic_noon_ghunna: builtins.int
+KEY_Arabic_peh: builtins.int
+KEY_Arabic_percent: builtins.int
+KEY_Arabic_qaf: builtins.int
+KEY_Arabic_question_mark: builtins.int
+KEY_Arabic_ra: builtins.int
+KEY_Arabic_rreh: builtins.int
+KEY_Arabic_sad: builtins.int
+KEY_Arabic_seen: builtins.int
+KEY_Arabic_semicolon: builtins.int
+KEY_Arabic_shadda: builtins.int
+KEY_Arabic_sheen: builtins.int
+KEY_Arabic_sukun: builtins.int
+KEY_Arabic_superscript_alef: builtins.int
+KEY_Arabic_switch: builtins.int
+KEY_Arabic_tah: builtins.int
+KEY_Arabic_tatweel: builtins.int
+KEY_Arabic_tcheh: builtins.int
+KEY_Arabic_teh: builtins.int
+KEY_Arabic_tehmarbuta: builtins.int
+KEY_Arabic_thal: builtins.int
+KEY_Arabic_theh: builtins.int
+KEY_Arabic_tteh: builtins.int
+KEY_Arabic_veh: builtins.int
+KEY_Arabic_waw: builtins.int
+KEY_Arabic_yeh: builtins.int
+KEY_Arabic_yeh_baree: builtins.int
+KEY_Arabic_zah: builtins.int
+KEY_Arabic_zain: builtins.int
+KEY_Aring: builtins.int
+KEY_Armenian_AT: builtins.int
+KEY_Armenian_AYB: builtins.int
+KEY_Armenian_BEN: builtins.int
+KEY_Armenian_CHA: builtins.int
+KEY_Armenian_DA: builtins.int
+KEY_Armenian_DZA: builtins.int
+KEY_Armenian_E: builtins.int
+KEY_Armenian_FE: builtins.int
+KEY_Armenian_GHAT: builtins.int
+KEY_Armenian_GIM: builtins.int
+KEY_Armenian_HI: builtins.int
+KEY_Armenian_HO: builtins.int
+KEY_Armenian_INI: builtins.int
+KEY_Armenian_JE: builtins.int
+KEY_Armenian_KE: builtins.int
+KEY_Armenian_KEN: builtins.int
+KEY_Armenian_KHE: builtins.int
+KEY_Armenian_LYUN: builtins.int
+KEY_Armenian_MEN: builtins.int
+KEY_Armenian_NU: builtins.int
+KEY_Armenian_O: builtins.int
+KEY_Armenian_PE: builtins.int
+KEY_Armenian_PYUR: builtins.int
+KEY_Armenian_RA: builtins.int
+KEY_Armenian_RE: builtins.int
+KEY_Armenian_SE: builtins.int
+KEY_Armenian_SHA: builtins.int
+KEY_Armenian_TCHE: builtins.int
+KEY_Armenian_TO: builtins.int
+KEY_Armenian_TSA: builtins.int
+KEY_Armenian_TSO: builtins.int
+KEY_Armenian_TYUN: builtins.int
+KEY_Armenian_VEV: builtins.int
+KEY_Armenian_VO: builtins.int
+KEY_Armenian_VYUN: builtins.int
+KEY_Armenian_YECH: builtins.int
+KEY_Armenian_ZA: builtins.int
+KEY_Armenian_ZHE: builtins.int
+KEY_Armenian_accent: builtins.int
+KEY_Armenian_amanak: builtins.int
+KEY_Armenian_apostrophe: builtins.int
+KEY_Armenian_at: builtins.int
+KEY_Armenian_ayb: builtins.int
+KEY_Armenian_ben: builtins.int
+KEY_Armenian_but: builtins.int
+KEY_Armenian_cha: builtins.int
+KEY_Armenian_da: builtins.int
+KEY_Armenian_dza: builtins.int
+KEY_Armenian_e: builtins.int
+KEY_Armenian_exclam: builtins.int
+KEY_Armenian_fe: builtins.int
+KEY_Armenian_full_stop: builtins.int
+KEY_Armenian_ghat: builtins.int
+KEY_Armenian_gim: builtins.int
+KEY_Armenian_hi: builtins.int
+KEY_Armenian_ho: builtins.int
+KEY_Armenian_hyphen: builtins.int
+KEY_Armenian_ini: builtins.int
+KEY_Armenian_je: builtins.int
+KEY_Armenian_ke: builtins.int
+KEY_Armenian_ken: builtins.int
+KEY_Armenian_khe: builtins.int
+KEY_Armenian_ligature_ew: builtins.int
+KEY_Armenian_lyun: builtins.int
+KEY_Armenian_men: builtins.int
+KEY_Armenian_nu: builtins.int
+KEY_Armenian_o: builtins.int
+KEY_Armenian_paruyk: builtins.int
+KEY_Armenian_pe: builtins.int
+KEY_Armenian_pyur: builtins.int
+KEY_Armenian_question: builtins.int
+KEY_Armenian_ra: builtins.int
+KEY_Armenian_re: builtins.int
+KEY_Armenian_se: builtins.int
+KEY_Armenian_separation_mark: builtins.int
+KEY_Armenian_sha: builtins.int
+KEY_Armenian_shesht: builtins.int
+KEY_Armenian_tche: builtins.int
+KEY_Armenian_to: builtins.int
+KEY_Armenian_tsa: builtins.int
+KEY_Armenian_tso: builtins.int
+KEY_Armenian_tyun: builtins.int
+KEY_Armenian_verjaket: builtins.int
+KEY_Armenian_vev: builtins.int
+KEY_Armenian_vo: builtins.int
+KEY_Armenian_vyun: builtins.int
+KEY_Armenian_yech: builtins.int
+KEY_Armenian_yentamna: builtins.int
+KEY_Armenian_za: builtins.int
+KEY_Armenian_zhe: builtins.int
+KEY_Atilde: builtins.int
+KEY_AudibleBell_Enable: builtins.int
+KEY_AudioCycleTrack: builtins.int
+KEY_AudioForward: builtins.int
+KEY_AudioLowerVolume: builtins.int
+KEY_AudioMedia: builtins.int
+KEY_AudioMicMute: builtins.int
+KEY_AudioMute: builtins.int
+KEY_AudioNext: builtins.int
+KEY_AudioPause: builtins.int
+KEY_AudioPlay: builtins.int
+KEY_AudioPreset: builtins.int
+KEY_AudioPrev: builtins.int
+KEY_AudioRaiseVolume: builtins.int
+KEY_AudioRandomPlay: builtins.int
+KEY_AudioRecord: builtins.int
+KEY_AudioRepeat: builtins.int
+KEY_AudioRewind: builtins.int
+KEY_AudioStop: builtins.int
+KEY_Away: builtins.int
+KEY_B: builtins.int
+KEY_Babovedot: builtins.int
+KEY_Back: builtins.int
+KEY_BackForward: builtins.int
+KEY_BackSpace: builtins.int
+KEY_Battery: builtins.int
+KEY_Begin: builtins.int
+KEY_Blue: builtins.int
+KEY_Bluetooth: builtins.int
+KEY_Book: builtins.int
+KEY_BounceKeys_Enable: builtins.int
+KEY_Break: builtins.int
+KEY_BrightnessAdjust: builtins.int
+KEY_Byelorussian_SHORTU: builtins.int
+KEY_Byelorussian_shortu: builtins.int
+KEY_C: builtins.int
+KEY_CD: builtins.int
+KEY_CH: builtins.int
+KEY_C_H: builtins.int
+KEY_C_h: builtins.int
+KEY_Cabovedot: builtins.int
+KEY_Cacute: builtins.int
+KEY_Calculator: builtins.int
+KEY_Calendar: builtins.int
+KEY_Cancel: builtins.int
+KEY_Caps_Lock: builtins.int
+KEY_Ccaron: builtins.int
+KEY_Ccedilla: builtins.int
+KEY_Ccircumflex: builtins.int
+KEY_Ch: builtins.int
+KEY_Clear: builtins.int
+KEY_ClearGrab: builtins.int
+KEY_Close: builtins.int
+KEY_Codeinput: builtins.int
+KEY_ColonSign: builtins.int
+KEY_Community: builtins.int
+KEY_ContrastAdjust: builtins.int
+KEY_Control_L: builtins.int
+KEY_Control_R: builtins.int
+KEY_Copy: builtins.int
+KEY_CruzeiroSign: builtins.int
+KEY_Cut: builtins.int
+KEY_CycleAngle: builtins.int
+KEY_Cyrillic_A: builtins.int
+KEY_Cyrillic_BE: builtins.int
+KEY_Cyrillic_CHE: builtins.int
+KEY_Cyrillic_CHE_descender: builtins.int
+KEY_Cyrillic_CHE_vertstroke: builtins.int
+KEY_Cyrillic_DE: builtins.int
+KEY_Cyrillic_DZHE: builtins.int
+KEY_Cyrillic_E: builtins.int
+KEY_Cyrillic_EF: builtins.int
+KEY_Cyrillic_EL: builtins.int
+KEY_Cyrillic_EM: builtins.int
+KEY_Cyrillic_EN: builtins.int
+KEY_Cyrillic_EN_descender: builtins.int
+KEY_Cyrillic_ER: builtins.int
+KEY_Cyrillic_ES: builtins.int
+KEY_Cyrillic_GHE: builtins.int
+KEY_Cyrillic_GHE_bar: builtins.int
+KEY_Cyrillic_HA: builtins.int
+KEY_Cyrillic_HARDSIGN: builtins.int
+KEY_Cyrillic_HA_descender: builtins.int
+KEY_Cyrillic_I: builtins.int
+KEY_Cyrillic_IE: builtins.int
+KEY_Cyrillic_IO: builtins.int
+KEY_Cyrillic_I_macron: builtins.int
+KEY_Cyrillic_JE: builtins.int
+KEY_Cyrillic_KA: builtins.int
+KEY_Cyrillic_KA_descender: builtins.int
+KEY_Cyrillic_KA_vertstroke: builtins.int
+KEY_Cyrillic_LJE: builtins.int
+KEY_Cyrillic_NJE: builtins.int
+KEY_Cyrillic_O: builtins.int
+KEY_Cyrillic_O_bar: builtins.int
+KEY_Cyrillic_PE: builtins.int
+KEY_Cyrillic_SCHWA: builtins.int
+KEY_Cyrillic_SHA: builtins.int
+KEY_Cyrillic_SHCHA: builtins.int
+KEY_Cyrillic_SHHA: builtins.int
+KEY_Cyrillic_SHORTI: builtins.int
+KEY_Cyrillic_SOFTSIGN: builtins.int
+KEY_Cyrillic_TE: builtins.int
+KEY_Cyrillic_TSE: builtins.int
+KEY_Cyrillic_U: builtins.int
+KEY_Cyrillic_U_macron: builtins.int
+KEY_Cyrillic_U_straight: builtins.int
+KEY_Cyrillic_U_straight_bar: builtins.int
+KEY_Cyrillic_VE: builtins.int
+KEY_Cyrillic_YA: builtins.int
+KEY_Cyrillic_YERU: builtins.int
+KEY_Cyrillic_YU: builtins.int
+KEY_Cyrillic_ZE: builtins.int
+KEY_Cyrillic_ZHE: builtins.int
+KEY_Cyrillic_ZHE_descender: builtins.int
+KEY_Cyrillic_a: builtins.int
+KEY_Cyrillic_be: builtins.int
+KEY_Cyrillic_che: builtins.int
+KEY_Cyrillic_che_descender: builtins.int
+KEY_Cyrillic_che_vertstroke: builtins.int
+KEY_Cyrillic_de: builtins.int
+KEY_Cyrillic_dzhe: builtins.int
+KEY_Cyrillic_e: builtins.int
+KEY_Cyrillic_ef: builtins.int
+KEY_Cyrillic_el: builtins.int
+KEY_Cyrillic_em: builtins.int
+KEY_Cyrillic_en: builtins.int
+KEY_Cyrillic_en_descender: builtins.int
+KEY_Cyrillic_er: builtins.int
+KEY_Cyrillic_es: builtins.int
+KEY_Cyrillic_ghe: builtins.int
+KEY_Cyrillic_ghe_bar: builtins.int
+KEY_Cyrillic_ha: builtins.int
+KEY_Cyrillic_ha_descender: builtins.int
+KEY_Cyrillic_hardsign: builtins.int
+KEY_Cyrillic_i: builtins.int
+KEY_Cyrillic_i_macron: builtins.int
+KEY_Cyrillic_ie: builtins.int
+KEY_Cyrillic_io: builtins.int
+KEY_Cyrillic_je: builtins.int
+KEY_Cyrillic_ka: builtins.int
+KEY_Cyrillic_ka_descender: builtins.int
+KEY_Cyrillic_ka_vertstroke: builtins.int
+KEY_Cyrillic_lje: builtins.int
+KEY_Cyrillic_nje: builtins.int
+KEY_Cyrillic_o: builtins.int
+KEY_Cyrillic_o_bar: builtins.int
+KEY_Cyrillic_pe: builtins.int
+KEY_Cyrillic_schwa: builtins.int
+KEY_Cyrillic_sha: builtins.int
+KEY_Cyrillic_shcha: builtins.int
+KEY_Cyrillic_shha: builtins.int
+KEY_Cyrillic_shorti: builtins.int
+KEY_Cyrillic_softsign: builtins.int
+KEY_Cyrillic_te: builtins.int
+KEY_Cyrillic_tse: builtins.int
+KEY_Cyrillic_u: builtins.int
+KEY_Cyrillic_u_macron: builtins.int
+KEY_Cyrillic_u_straight: builtins.int
+KEY_Cyrillic_u_straight_bar: builtins.int
+KEY_Cyrillic_ve: builtins.int
+KEY_Cyrillic_ya: builtins.int
+KEY_Cyrillic_yeru: builtins.int
+KEY_Cyrillic_yu: builtins.int
+KEY_Cyrillic_ze: builtins.int
+KEY_Cyrillic_zhe: builtins.int
+KEY_Cyrillic_zhe_descender: builtins.int
+KEY_D: builtins.int
+KEY_DOS: builtins.int
+KEY_Dabovedot: builtins.int
+KEY_Dcaron: builtins.int
+KEY_Delete: builtins.int
+KEY_Display: builtins.int
+KEY_Documents: builtins.int
+KEY_DongSign: builtins.int
+KEY_Down: builtins.int
+KEY_Dstroke: builtins.int
+KEY_E: builtins.int
+KEY_ENG: builtins.int
+KEY_ETH: builtins.int
+KEY_EZH: builtins.int
+KEY_Eabovedot: builtins.int
+KEY_Eacute: builtins.int
+KEY_Ebelowdot: builtins.int
+KEY_Ecaron: builtins.int
+KEY_Ecircumflex: builtins.int
+KEY_Ecircumflexacute: builtins.int
+KEY_Ecircumflexbelowdot: builtins.int
+KEY_Ecircumflexgrave: builtins.int
+KEY_Ecircumflexhook: builtins.int
+KEY_Ecircumflextilde: builtins.int
+KEY_EcuSign: builtins.int
+KEY_Ediaeresis: builtins.int
+KEY_Egrave: builtins.int
+KEY_Ehook: builtins.int
+KEY_Eisu_Shift: builtins.int
+KEY_Eisu_toggle: builtins.int
+KEY_Eject: builtins.int
+KEY_Emacron: builtins.int
+KEY_End: builtins.int
+KEY_Eogonek: builtins.int
+KEY_Escape: builtins.int
+KEY_Eth: builtins.int
+KEY_Etilde: builtins.int
+KEY_EuroSign: builtins.int
+KEY_Excel: builtins.int
+KEY_Execute: builtins.int
+KEY_Explorer: builtins.int
+KEY_F: builtins.int
+KEY_F1: builtins.int
+KEY_F10: builtins.int
+KEY_F11: builtins.int
+KEY_F12: builtins.int
+KEY_F13: builtins.int
+KEY_F14: builtins.int
+KEY_F15: builtins.int
+KEY_F16: builtins.int
+KEY_F17: builtins.int
+KEY_F18: builtins.int
+KEY_F19: builtins.int
+KEY_F2: builtins.int
+KEY_F20: builtins.int
+KEY_F21: builtins.int
+KEY_F22: builtins.int
+KEY_F23: builtins.int
+KEY_F24: builtins.int
+KEY_F25: builtins.int
+KEY_F26: builtins.int
+KEY_F27: builtins.int
+KEY_F28: builtins.int
+KEY_F29: builtins.int
+KEY_F3: builtins.int
+KEY_F30: builtins.int
+KEY_F31: builtins.int
+KEY_F32: builtins.int
+KEY_F33: builtins.int
+KEY_F34: builtins.int
+KEY_F35: builtins.int
+KEY_F4: builtins.int
+KEY_F5: builtins.int
+KEY_F6: builtins.int
+KEY_F7: builtins.int
+KEY_F8: builtins.int
+KEY_F9: builtins.int
+KEY_FFrancSign: builtins.int
+KEY_Fabovedot: builtins.int
+KEY_Farsi_0: builtins.int
+KEY_Farsi_1: builtins.int
+KEY_Farsi_2: builtins.int
+KEY_Farsi_3: builtins.int
+KEY_Farsi_4: builtins.int
+KEY_Farsi_5: builtins.int
+KEY_Farsi_6: builtins.int
+KEY_Farsi_7: builtins.int
+KEY_Farsi_8: builtins.int
+KEY_Farsi_9: builtins.int
+KEY_Farsi_yeh: builtins.int
+KEY_Favorites: builtins.int
+KEY_Finance: builtins.int
+KEY_Find: builtins.int
+KEY_First_Virtual_Screen: builtins.int
+KEY_Forward: builtins.int
+KEY_FrameBack: builtins.int
+KEY_FrameForward: builtins.int
+KEY_G: builtins.int
+KEY_Gabovedot: builtins.int
+KEY_Game: builtins.int
+KEY_Gbreve: builtins.int
+KEY_Gcaron: builtins.int
+KEY_Gcedilla: builtins.int
+KEY_Gcircumflex: builtins.int
+KEY_Georgian_an: builtins.int
+KEY_Georgian_ban: builtins.int
+KEY_Georgian_can: builtins.int
+KEY_Georgian_char: builtins.int
+KEY_Georgian_chin: builtins.int
+KEY_Georgian_cil: builtins.int
+KEY_Georgian_don: builtins.int
+KEY_Georgian_en: builtins.int
+KEY_Georgian_fi: builtins.int
+KEY_Georgian_gan: builtins.int
+KEY_Georgian_ghan: builtins.int
+KEY_Georgian_hae: builtins.int
+KEY_Georgian_har: builtins.int
+KEY_Georgian_he: builtins.int
+KEY_Georgian_hie: builtins.int
+KEY_Georgian_hoe: builtins.int
+KEY_Georgian_in: builtins.int
+KEY_Georgian_jhan: builtins.int
+KEY_Georgian_jil: builtins.int
+KEY_Georgian_kan: builtins.int
+KEY_Georgian_khar: builtins.int
+KEY_Georgian_las: builtins.int
+KEY_Georgian_man: builtins.int
+KEY_Georgian_nar: builtins.int
+KEY_Georgian_on: builtins.int
+KEY_Georgian_par: builtins.int
+KEY_Georgian_phar: builtins.int
+KEY_Georgian_qar: builtins.int
+KEY_Georgian_rae: builtins.int
+KEY_Georgian_san: builtins.int
+KEY_Georgian_shin: builtins.int
+KEY_Georgian_tan: builtins.int
+KEY_Georgian_tar: builtins.int
+KEY_Georgian_un: builtins.int
+KEY_Georgian_vin: builtins.int
+KEY_Georgian_we: builtins.int
+KEY_Georgian_xan: builtins.int
+KEY_Georgian_zen: builtins.int
+KEY_Georgian_zhar: builtins.int
+KEY_Go: builtins.int
+KEY_Greek_ALPHA: builtins.int
+KEY_Greek_ALPHAaccent: builtins.int
+KEY_Greek_BETA: builtins.int
+KEY_Greek_CHI: builtins.int
+KEY_Greek_DELTA: builtins.int
+KEY_Greek_EPSILON: builtins.int
+KEY_Greek_EPSILONaccent: builtins.int
+KEY_Greek_ETA: builtins.int
+KEY_Greek_ETAaccent: builtins.int
+KEY_Greek_GAMMA: builtins.int
+KEY_Greek_IOTA: builtins.int
+KEY_Greek_IOTAaccent: builtins.int
+KEY_Greek_IOTAdiaeresis: builtins.int
+KEY_Greek_IOTAdieresis: builtins.int
+KEY_Greek_KAPPA: builtins.int
+KEY_Greek_LAMBDA: builtins.int
+KEY_Greek_LAMDA: builtins.int
+KEY_Greek_MU: builtins.int
+KEY_Greek_NU: builtins.int
+KEY_Greek_OMEGA: builtins.int
+KEY_Greek_OMEGAaccent: builtins.int
+KEY_Greek_OMICRON: builtins.int
+KEY_Greek_OMICRONaccent: builtins.int
+KEY_Greek_PHI: builtins.int
+KEY_Greek_PI: builtins.int
+KEY_Greek_PSI: builtins.int
+KEY_Greek_RHO: builtins.int
+KEY_Greek_SIGMA: builtins.int
+KEY_Greek_TAU: builtins.int
+KEY_Greek_THETA: builtins.int
+KEY_Greek_UPSILON: builtins.int
+KEY_Greek_UPSILONaccent: builtins.int
+KEY_Greek_UPSILONdieresis: builtins.int
+KEY_Greek_XI: builtins.int
+KEY_Greek_ZETA: builtins.int
+KEY_Greek_accentdieresis: builtins.int
+KEY_Greek_alpha: builtins.int
+KEY_Greek_alphaaccent: builtins.int
+KEY_Greek_beta: builtins.int
+KEY_Greek_chi: builtins.int
+KEY_Greek_delta: builtins.int
+KEY_Greek_epsilon: builtins.int
+KEY_Greek_epsilonaccent: builtins.int
+KEY_Greek_eta: builtins.int
+KEY_Greek_etaaccent: builtins.int
+KEY_Greek_finalsmallsigma: builtins.int
+KEY_Greek_gamma: builtins.int
+KEY_Greek_horizbar: builtins.int
+KEY_Greek_iota: builtins.int
+KEY_Greek_iotaaccent: builtins.int
+KEY_Greek_iotaaccentdieresis: builtins.int
+KEY_Greek_iotadieresis: builtins.int
+KEY_Greek_kappa: builtins.int
+KEY_Greek_lambda: builtins.int
+KEY_Greek_lamda: builtins.int
+KEY_Greek_mu: builtins.int
+KEY_Greek_nu: builtins.int
+KEY_Greek_omega: builtins.int
+KEY_Greek_omegaaccent: builtins.int
+KEY_Greek_omicron: builtins.int
+KEY_Greek_omicronaccent: builtins.int
+KEY_Greek_phi: builtins.int
+KEY_Greek_pi: builtins.int
+KEY_Greek_psi: builtins.int
+KEY_Greek_rho: builtins.int
+KEY_Greek_sigma: builtins.int
+KEY_Greek_switch: builtins.int
+KEY_Greek_tau: builtins.int
+KEY_Greek_theta: builtins.int
+KEY_Greek_upsilon: builtins.int
+KEY_Greek_upsilonaccent: builtins.int
+KEY_Greek_upsilonaccentdieresis: builtins.int
+KEY_Greek_upsilondieresis: builtins.int
+KEY_Greek_xi: builtins.int
+KEY_Greek_zeta: builtins.int
+KEY_Green: builtins.int
+KEY_H: builtins.int
+KEY_Hangul: builtins.int
+KEY_Hangul_A: builtins.int
+KEY_Hangul_AE: builtins.int
+KEY_Hangul_AraeA: builtins.int
+KEY_Hangul_AraeAE: builtins.int
+KEY_Hangul_Banja: builtins.int
+KEY_Hangul_Cieuc: builtins.int
+KEY_Hangul_Codeinput: builtins.int
+KEY_Hangul_Dikeud: builtins.int
+KEY_Hangul_E: builtins.int
+KEY_Hangul_EO: builtins.int
+KEY_Hangul_EU: builtins.int
+KEY_Hangul_End: builtins.int
+KEY_Hangul_Hanja: builtins.int
+KEY_Hangul_Hieuh: builtins.int
+KEY_Hangul_I: builtins.int
+KEY_Hangul_Ieung: builtins.int
+KEY_Hangul_J_Cieuc: builtins.int
+KEY_Hangul_J_Dikeud: builtins.int
+KEY_Hangul_J_Hieuh: builtins.int
+KEY_Hangul_J_Ieung: builtins.int
+KEY_Hangul_J_Jieuj: builtins.int
+KEY_Hangul_J_Khieuq: builtins.int
+KEY_Hangul_J_Kiyeog: builtins.int
+KEY_Hangul_J_KiyeogSios: builtins.int
+KEY_Hangul_J_KkogjiDalrinIeung: builtins.int
+KEY_Hangul_J_Mieum: builtins.int
+KEY_Hangul_J_Nieun: builtins.int
+KEY_Hangul_J_NieunHieuh: builtins.int
+KEY_Hangul_J_NieunJieuj: builtins.int
+KEY_Hangul_J_PanSios: builtins.int
+KEY_Hangul_J_Phieuf: builtins.int
+KEY_Hangul_J_Pieub: builtins.int
+KEY_Hangul_J_PieubSios: builtins.int
+KEY_Hangul_J_Rieul: builtins.int
+KEY_Hangul_J_RieulHieuh: builtins.int
+KEY_Hangul_J_RieulKiyeog: builtins.int
+KEY_Hangul_J_RieulMieum: builtins.int
+KEY_Hangul_J_RieulPhieuf: builtins.int
+KEY_Hangul_J_RieulPieub: builtins.int
+KEY_Hangul_J_RieulSios: builtins.int
+KEY_Hangul_J_RieulTieut: builtins.int
+KEY_Hangul_J_Sios: builtins.int
+KEY_Hangul_J_SsangKiyeog: builtins.int
+KEY_Hangul_J_SsangSios: builtins.int
+KEY_Hangul_J_Tieut: builtins.int
+KEY_Hangul_J_YeorinHieuh: builtins.int
+KEY_Hangul_Jamo: builtins.int
+KEY_Hangul_Jeonja: builtins.int
+KEY_Hangul_Jieuj: builtins.int
+KEY_Hangul_Khieuq: builtins.int
+KEY_Hangul_Kiyeog: builtins.int
+KEY_Hangul_KiyeogSios: builtins.int
+KEY_Hangul_KkogjiDalrinIeung: builtins.int
+KEY_Hangul_Mieum: builtins.int
+KEY_Hangul_MultipleCandidate: builtins.int
+KEY_Hangul_Nieun: builtins.int
+KEY_Hangul_NieunHieuh: builtins.int
+KEY_Hangul_NieunJieuj: builtins.int
+KEY_Hangul_O: builtins.int
+KEY_Hangul_OE: builtins.int
+KEY_Hangul_PanSios: builtins.int
+KEY_Hangul_Phieuf: builtins.int
+KEY_Hangul_Pieub: builtins.int
+KEY_Hangul_PieubSios: builtins.int
+KEY_Hangul_PostHanja: builtins.int
+KEY_Hangul_PreHanja: builtins.int
+KEY_Hangul_PreviousCandidate: builtins.int
+KEY_Hangul_Rieul: builtins.int
+KEY_Hangul_RieulHieuh: builtins.int
+KEY_Hangul_RieulKiyeog: builtins.int
+KEY_Hangul_RieulMieum: builtins.int
+KEY_Hangul_RieulPhieuf: builtins.int
+KEY_Hangul_RieulPieub: builtins.int
+KEY_Hangul_RieulSios: builtins.int
+KEY_Hangul_RieulTieut: builtins.int
+KEY_Hangul_RieulYeorinHieuh: builtins.int
+KEY_Hangul_Romaja: builtins.int
+KEY_Hangul_SingleCandidate: builtins.int
+KEY_Hangul_Sios: builtins.int
+KEY_Hangul_Special: builtins.int
+KEY_Hangul_SsangDikeud: builtins.int
+KEY_Hangul_SsangJieuj: builtins.int
+KEY_Hangul_SsangKiyeog: builtins.int
+KEY_Hangul_SsangPieub: builtins.int
+KEY_Hangul_SsangSios: builtins.int
+KEY_Hangul_Start: builtins.int
+KEY_Hangul_SunkyeongeumMieum: builtins.int
+KEY_Hangul_SunkyeongeumPhieuf: builtins.int
+KEY_Hangul_SunkyeongeumPieub: builtins.int
+KEY_Hangul_Tieut: builtins.int
+KEY_Hangul_U: builtins.int
+KEY_Hangul_WA: builtins.int
+KEY_Hangul_WAE: builtins.int
+KEY_Hangul_WE: builtins.int
+KEY_Hangul_WEO: builtins.int
+KEY_Hangul_WI: builtins.int
+KEY_Hangul_YA: builtins.int
+KEY_Hangul_YAE: builtins.int
+KEY_Hangul_YE: builtins.int
+KEY_Hangul_YEO: builtins.int
+KEY_Hangul_YI: builtins.int
+KEY_Hangul_YO: builtins.int
+KEY_Hangul_YU: builtins.int
+KEY_Hangul_YeorinHieuh: builtins.int
+KEY_Hangul_switch: builtins.int
+KEY_Hankaku: builtins.int
+KEY_Hcircumflex: builtins.int
+KEY_Hebrew_switch: builtins.int
+KEY_Help: builtins.int
+KEY_Henkan: builtins.int
+KEY_Henkan_Mode: builtins.int
+KEY_Hibernate: builtins.int
+KEY_Hiragana: builtins.int
+KEY_Hiragana_Katakana: builtins.int
+KEY_History: builtins.int
+KEY_Home: builtins.int
+KEY_HomePage: builtins.int
+KEY_HotLinks: builtins.int
+KEY_Hstroke: builtins.int
+KEY_Hyper_L: builtins.int
+KEY_Hyper_R: builtins.int
+KEY_I: builtins.int
+KEY_ISO_Center_Object: builtins.int
+KEY_ISO_Continuous_Underline: builtins.int
+KEY_ISO_Discontinuous_Underline: builtins.int
+KEY_ISO_Emphasize: builtins.int
+KEY_ISO_Enter: builtins.int
+KEY_ISO_Fast_Cursor_Down: builtins.int
+KEY_ISO_Fast_Cursor_Left: builtins.int
+KEY_ISO_Fast_Cursor_Right: builtins.int
+KEY_ISO_Fast_Cursor_Up: builtins.int
+KEY_ISO_First_Group: builtins.int
+KEY_ISO_First_Group_Lock: builtins.int
+KEY_ISO_Group_Latch: builtins.int
+KEY_ISO_Group_Lock: builtins.int
+KEY_ISO_Group_Shift: builtins.int
+KEY_ISO_Last_Group: builtins.int
+KEY_ISO_Last_Group_Lock: builtins.int
+KEY_ISO_Left_Tab: builtins.int
+KEY_ISO_Level2_Latch: builtins.int
+KEY_ISO_Level3_Latch: builtins.int
+KEY_ISO_Level3_Lock: builtins.int
+KEY_ISO_Level3_Shift: builtins.int
+KEY_ISO_Level5_Latch: builtins.int
+KEY_ISO_Level5_Lock: builtins.int
+KEY_ISO_Level5_Shift: builtins.int
+KEY_ISO_Lock: builtins.int
+KEY_ISO_Move_Line_Down: builtins.int
+KEY_ISO_Move_Line_Up: builtins.int
+KEY_ISO_Next_Group: builtins.int
+KEY_ISO_Next_Group_Lock: builtins.int
+KEY_ISO_Partial_Line_Down: builtins.int
+KEY_ISO_Partial_Line_Up: builtins.int
+KEY_ISO_Partial_Space_Left: builtins.int
+KEY_ISO_Partial_Space_Right: builtins.int
+KEY_ISO_Prev_Group: builtins.int
+KEY_ISO_Prev_Group_Lock: builtins.int
+KEY_ISO_Release_Both_Margins: builtins.int
+KEY_ISO_Release_Margin_Left: builtins.int
+KEY_ISO_Release_Margin_Right: builtins.int
+KEY_ISO_Set_Margin_Left: builtins.int
+KEY_ISO_Set_Margin_Right: builtins.int
+KEY_Iabovedot: builtins.int
+KEY_Iacute: builtins.int
+KEY_Ibelowdot: builtins.int
+KEY_Ibreve: builtins.int
+KEY_Icircumflex: builtins.int
+KEY_Idiaeresis: builtins.int
+KEY_Igrave: builtins.int
+KEY_Ihook: builtins.int
+KEY_Imacron: builtins.int
+KEY_Insert: builtins.int
+KEY_Iogonek: builtins.int
+KEY_Itilde: builtins.int
+KEY_J: builtins.int
+KEY_Jcircumflex: builtins.int
+KEY_K: builtins.int
+KEY_KP_0: builtins.int
+KEY_KP_1: builtins.int
+KEY_KP_2: builtins.int
+KEY_KP_3: builtins.int
+KEY_KP_4: builtins.int
+KEY_KP_5: builtins.int
+KEY_KP_6: builtins.int
+KEY_KP_7: builtins.int
+KEY_KP_8: builtins.int
+KEY_KP_9: builtins.int
+KEY_KP_Add: builtins.int
+KEY_KP_Begin: builtins.int
+KEY_KP_Decimal: builtins.int
+KEY_KP_Delete: builtins.int
+KEY_KP_Divide: builtins.int
+KEY_KP_Down: builtins.int
+KEY_KP_End: builtins.int
+KEY_KP_Enter: builtins.int
+KEY_KP_Equal: builtins.int
+KEY_KP_F1: builtins.int
+KEY_KP_F2: builtins.int
+KEY_KP_F3: builtins.int
+KEY_KP_F4: builtins.int
+KEY_KP_Home: builtins.int
+KEY_KP_Insert: builtins.int
+KEY_KP_Left: builtins.int
+KEY_KP_Multiply: builtins.int
+KEY_KP_Next: builtins.int
+KEY_KP_Page_Down: builtins.int
+KEY_KP_Page_Up: builtins.int
+KEY_KP_Prior: builtins.int
+KEY_KP_Right: builtins.int
+KEY_KP_Separator: builtins.int
+KEY_KP_Space: builtins.int
+KEY_KP_Subtract: builtins.int
+KEY_KP_Tab: builtins.int
+KEY_KP_Up: builtins.int
+KEY_Kana_Lock: builtins.int
+KEY_Kana_Shift: builtins.int
+KEY_Kanji: builtins.int
+KEY_Kanji_Bangou: builtins.int
+KEY_Katakana: builtins.int
+KEY_KbdBrightnessDown: builtins.int
+KEY_KbdBrightnessUp: builtins.int
+KEY_KbdLightOnOff: builtins.int
+KEY_Kcedilla: builtins.int
+KEY_Keyboard: builtins.int
+KEY_Korean_Won: builtins.int
+KEY_L: builtins.int
+KEY_L1: builtins.int
+KEY_L10: builtins.int
+KEY_L2: builtins.int
+KEY_L3: builtins.int
+KEY_L4: builtins.int
+KEY_L5: builtins.int
+KEY_L6: builtins.int
+KEY_L7: builtins.int
+KEY_L8: builtins.int
+KEY_L9: builtins.int
+KEY_Lacute: builtins.int
+KEY_Last_Virtual_Screen: builtins.int
+KEY_Launch0: builtins.int
+KEY_Launch1: builtins.int
+KEY_Launch2: builtins.int
+KEY_Launch3: builtins.int
+KEY_Launch4: builtins.int
+KEY_Launch5: builtins.int
+KEY_Launch6: builtins.int
+KEY_Launch7: builtins.int
+KEY_Launch8: builtins.int
+KEY_Launch9: builtins.int
+KEY_LaunchA: builtins.int
+KEY_LaunchB: builtins.int
+KEY_LaunchC: builtins.int
+KEY_LaunchD: builtins.int
+KEY_LaunchE: builtins.int
+KEY_LaunchF: builtins.int
+KEY_Lbelowdot: builtins.int
+KEY_Lcaron: builtins.int
+KEY_Lcedilla: builtins.int
+KEY_Left: builtins.int
+KEY_LightBulb: builtins.int
+KEY_Linefeed: builtins.int
+KEY_LiraSign: builtins.int
+KEY_LogGrabInfo: builtins.int
+KEY_LogOff: builtins.int
+KEY_LogWindowTree: builtins.int
+KEY_Lstroke: builtins.int
+KEY_M: builtins.int
+KEY_Mabovedot: builtins.int
+KEY_Macedonia_DSE: builtins.int
+KEY_Macedonia_GJE: builtins.int
+KEY_Macedonia_KJE: builtins.int
+KEY_Macedonia_dse: builtins.int
+KEY_Macedonia_gje: builtins.int
+KEY_Macedonia_kje: builtins.int
+KEY_Mae_Koho: builtins.int
+KEY_Mail: builtins.int
+KEY_MailForward: builtins.int
+KEY_Market: builtins.int
+KEY_Massyo: builtins.int
+KEY_Meeting: builtins.int
+KEY_Memo: builtins.int
+KEY_Menu: builtins.int
+KEY_MenuKB: builtins.int
+KEY_MenuPB: builtins.int
+KEY_Messenger: builtins.int
+KEY_Meta_L: builtins.int
+KEY_Meta_R: builtins.int
+KEY_MillSign: builtins.int
+KEY_ModeLock: builtins.int
+KEY_Mode_switch: builtins.int
+KEY_MonBrightnessDown: builtins.int
+KEY_MonBrightnessUp: builtins.int
+KEY_MouseKeys_Accel_Enable: builtins.int
+KEY_MouseKeys_Enable: builtins.int
+KEY_Muhenkan: builtins.int
+KEY_Multi_key: builtins.int
+KEY_MultipleCandidate: builtins.int
+KEY_Music: builtins.int
+KEY_MyComputer: builtins.int
+KEY_MySites: builtins.int
+KEY_N: builtins.int
+KEY_Nacute: builtins.int
+KEY_NairaSign: builtins.int
+KEY_Ncaron: builtins.int
+KEY_Ncedilla: builtins.int
+KEY_New: builtins.int
+KEY_NewSheqelSign: builtins.int
+KEY_News: builtins.int
+KEY_Next: builtins.int
+KEY_Next_VMode: builtins.int
+KEY_Next_Virtual_Screen: builtins.int
+KEY_Ntilde: builtins.int
+KEY_Num_Lock: builtins.int
+KEY_O: builtins.int
+KEY_OE: builtins.int
+KEY_Oacute: builtins.int
+KEY_Obarred: builtins.int
+KEY_Obelowdot: builtins.int
+KEY_Ocaron: builtins.int
+KEY_Ocircumflex: builtins.int
+KEY_Ocircumflexacute: builtins.int
+KEY_Ocircumflexbelowdot: builtins.int
+KEY_Ocircumflexgrave: builtins.int
+KEY_Ocircumflexhook: builtins.int
+KEY_Ocircumflextilde: builtins.int
+KEY_Odiaeresis: builtins.int
+KEY_Odoubleacute: builtins.int
+KEY_OfficeHome: builtins.int
+KEY_Ograve: builtins.int
+KEY_Ohook: builtins.int
+KEY_Ohorn: builtins.int
+KEY_Ohornacute: builtins.int
+KEY_Ohornbelowdot: builtins.int
+KEY_Ohorngrave: builtins.int
+KEY_Ohornhook: builtins.int
+KEY_Ohorntilde: builtins.int
+KEY_Omacron: builtins.int
+KEY_Ooblique: builtins.int
+KEY_Open: builtins.int
+KEY_OpenURL: builtins.int
+KEY_Option: builtins.int
+KEY_Oslash: builtins.int
+KEY_Otilde: builtins.int
+KEY_Overlay1_Enable: builtins.int
+KEY_Overlay2_Enable: builtins.int
+KEY_P: builtins.int
+KEY_Pabovedot: builtins.int
+KEY_Page_Down: builtins.int
+KEY_Page_Up: builtins.int
+KEY_Paste: builtins.int
+KEY_Pause: builtins.int
+KEY_PesetaSign: builtins.int
+KEY_Phone: builtins.int
+KEY_Pictures: builtins.int
+KEY_Pointer_Accelerate: builtins.int
+KEY_Pointer_Button1: builtins.int
+KEY_Pointer_Button2: builtins.int
+KEY_Pointer_Button3: builtins.int
+KEY_Pointer_Button4: builtins.int
+KEY_Pointer_Button5: builtins.int
+KEY_Pointer_Button_Dflt: builtins.int
+KEY_Pointer_DblClick1: builtins.int
+KEY_Pointer_DblClick2: builtins.int
+KEY_Pointer_DblClick3: builtins.int
+KEY_Pointer_DblClick4: builtins.int
+KEY_Pointer_DblClick5: builtins.int
+KEY_Pointer_DblClick_Dflt: builtins.int
+KEY_Pointer_DfltBtnNext: builtins.int
+KEY_Pointer_DfltBtnPrev: builtins.int
+KEY_Pointer_Down: builtins.int
+KEY_Pointer_DownLeft: builtins.int
+KEY_Pointer_DownRight: builtins.int
+KEY_Pointer_Drag1: builtins.int
+KEY_Pointer_Drag2: builtins.int
+KEY_Pointer_Drag3: builtins.int
+KEY_Pointer_Drag4: builtins.int
+KEY_Pointer_Drag5: builtins.int
+KEY_Pointer_Drag_Dflt: builtins.int
+KEY_Pointer_EnableKeys: builtins.int
+KEY_Pointer_Left: builtins.int
+KEY_Pointer_Right: builtins.int
+KEY_Pointer_Up: builtins.int
+KEY_Pointer_UpLeft: builtins.int
+KEY_Pointer_UpRight: builtins.int
+KEY_PowerDown: builtins.int
+KEY_PowerOff: builtins.int
+KEY_Prev_VMode: builtins.int
+KEY_Prev_Virtual_Screen: builtins.int
+KEY_PreviousCandidate: builtins.int
+KEY_Print: builtins.int
+KEY_Prior: builtins.int
+KEY_Q: builtins.int
+KEY_R: builtins.int
+KEY_R1: builtins.int
+KEY_R10: builtins.int
+KEY_R11: builtins.int
+KEY_R12: builtins.int
+KEY_R13: builtins.int
+KEY_R14: builtins.int
+KEY_R15: builtins.int
+KEY_R2: builtins.int
+KEY_R3: builtins.int
+KEY_R4: builtins.int
+KEY_R5: builtins.int
+KEY_R6: builtins.int
+KEY_R7: builtins.int
+KEY_R8: builtins.int
+KEY_R9: builtins.int
+KEY_RFKill: builtins.int
+KEY_Racute: builtins.int
+KEY_Rcaron: builtins.int
+KEY_Rcedilla: builtins.int
+KEY_Red: builtins.int
+KEY_Redo: builtins.int
+KEY_Refresh: builtins.int
+KEY_Reload: builtins.int
+KEY_RepeatKeys_Enable: builtins.int
+KEY_Reply: builtins.int
+KEY_Return: builtins.int
+KEY_Right: builtins.int
+KEY_RockerDown: builtins.int
+KEY_RockerEnter: builtins.int
+KEY_RockerUp: builtins.int
+KEY_Romaji: builtins.int
+KEY_RotateWindows: builtins.int
+KEY_RotationKB: builtins.int
+KEY_RotationPB: builtins.int
+KEY_RupeeSign: builtins.int
+KEY_S: builtins.int
+KEY_SCHWA: builtins.int
+KEY_Sabovedot: builtins.int
+KEY_Sacute: builtins.int
+KEY_Save: builtins.int
+KEY_Scaron: builtins.int
+KEY_Scedilla: builtins.int
+KEY_Scircumflex: builtins.int
+KEY_ScreenSaver: builtins.int
+KEY_ScrollClick: builtins.int
+KEY_ScrollDown: builtins.int
+KEY_ScrollUp: builtins.int
+KEY_Scroll_Lock: builtins.int
+KEY_Search: builtins.int
+KEY_Select: builtins.int
+KEY_SelectButton: builtins.int
+KEY_Send: builtins.int
+KEY_Serbian_DJE: builtins.int
+KEY_Serbian_DZE: builtins.int
+KEY_Serbian_JE: builtins.int
+KEY_Serbian_LJE: builtins.int
+KEY_Serbian_NJE: builtins.int
+KEY_Serbian_TSHE: builtins.int
+KEY_Serbian_dje: builtins.int
+KEY_Serbian_dze: builtins.int
+KEY_Serbian_je: builtins.int
+KEY_Serbian_lje: builtins.int
+KEY_Serbian_nje: builtins.int
+KEY_Serbian_tshe: builtins.int
+KEY_Shift_L: builtins.int
+KEY_Shift_Lock: builtins.int
+KEY_Shift_R: builtins.int
+KEY_Shop: builtins.int
+KEY_SingleCandidate: builtins.int
+KEY_Sinh_a: builtins.int
+KEY_Sinh_aa: builtins.int
+KEY_Sinh_aa2: builtins.int
+KEY_Sinh_ae: builtins.int
+KEY_Sinh_ae2: builtins.int
+KEY_Sinh_aee: builtins.int
+KEY_Sinh_aee2: builtins.int
+KEY_Sinh_ai: builtins.int
+KEY_Sinh_ai2: builtins.int
+KEY_Sinh_al: builtins.int
+KEY_Sinh_au: builtins.int
+KEY_Sinh_au2: builtins.int
+KEY_Sinh_ba: builtins.int
+KEY_Sinh_bha: builtins.int
+KEY_Sinh_ca: builtins.int
+KEY_Sinh_cha: builtins.int
+KEY_Sinh_dda: builtins.int
+KEY_Sinh_ddha: builtins.int
+KEY_Sinh_dha: builtins.int
+KEY_Sinh_dhha: builtins.int
+KEY_Sinh_e: builtins.int
+KEY_Sinh_e2: builtins.int
+KEY_Sinh_ee: builtins.int
+KEY_Sinh_ee2: builtins.int
+KEY_Sinh_fa: builtins.int
+KEY_Sinh_ga: builtins.int
+KEY_Sinh_gha: builtins.int
+KEY_Sinh_h2: builtins.int
+KEY_Sinh_ha: builtins.int
+KEY_Sinh_i: builtins.int
+KEY_Sinh_i2: builtins.int
+KEY_Sinh_ii: builtins.int
+KEY_Sinh_ii2: builtins.int
+KEY_Sinh_ja: builtins.int
+KEY_Sinh_jha: builtins.int
+KEY_Sinh_jnya: builtins.int
+KEY_Sinh_ka: builtins.int
+KEY_Sinh_kha: builtins.int
+KEY_Sinh_kunddaliya: builtins.int
+KEY_Sinh_la: builtins.int
+KEY_Sinh_lla: builtins.int
+KEY_Sinh_lu: builtins.int
+KEY_Sinh_lu2: builtins.int
+KEY_Sinh_luu: builtins.int
+KEY_Sinh_luu2: builtins.int
+KEY_Sinh_ma: builtins.int
+KEY_Sinh_mba: builtins.int
+KEY_Sinh_na: builtins.int
+KEY_Sinh_ndda: builtins.int
+KEY_Sinh_ndha: builtins.int
+KEY_Sinh_ng: builtins.int
+KEY_Sinh_ng2: builtins.int
+KEY_Sinh_nga: builtins.int
+KEY_Sinh_nja: builtins.int
+KEY_Sinh_nna: builtins.int
+KEY_Sinh_nya: builtins.int
+KEY_Sinh_o: builtins.int
+KEY_Sinh_o2: builtins.int
+KEY_Sinh_oo: builtins.int
+KEY_Sinh_oo2: builtins.int
+KEY_Sinh_pa: builtins.int
+KEY_Sinh_pha: builtins.int
+KEY_Sinh_ra: builtins.int
+KEY_Sinh_ri: builtins.int
+KEY_Sinh_rii: builtins.int
+KEY_Sinh_ru2: builtins.int
+KEY_Sinh_ruu2: builtins.int
+KEY_Sinh_sa: builtins.int
+KEY_Sinh_sha: builtins.int
+KEY_Sinh_ssha: builtins.int
+KEY_Sinh_tha: builtins.int
+KEY_Sinh_thha: builtins.int
+KEY_Sinh_tta: builtins.int
+KEY_Sinh_ttha: builtins.int
+KEY_Sinh_u: builtins.int
+KEY_Sinh_u2: builtins.int
+KEY_Sinh_uu: builtins.int
+KEY_Sinh_uu2: builtins.int
+KEY_Sinh_va: builtins.int
+KEY_Sinh_ya: builtins.int
+KEY_Sleep: builtins.int
+KEY_SlowKeys_Enable: builtins.int
+KEY_Spell: builtins.int
+KEY_SplitScreen: builtins.int
+KEY_Standby: builtins.int
+KEY_Start: builtins.int
+KEY_StickyKeys_Enable: builtins.int
+KEY_Stop: builtins.int
+KEY_Subtitle: builtins.int
+KEY_Super_L: builtins.int
+KEY_Super_R: builtins.int
+KEY_Support: builtins.int
+KEY_Suspend: builtins.int
+KEY_Switch_VT_1: builtins.int
+KEY_Switch_VT_10: builtins.int
+KEY_Switch_VT_11: builtins.int
+KEY_Switch_VT_12: builtins.int
+KEY_Switch_VT_2: builtins.int
+KEY_Switch_VT_3: builtins.int
+KEY_Switch_VT_4: builtins.int
+KEY_Switch_VT_5: builtins.int
+KEY_Switch_VT_6: builtins.int
+KEY_Switch_VT_7: builtins.int
+KEY_Switch_VT_8: builtins.int
+KEY_Switch_VT_9: builtins.int
+KEY_Sys_Req: builtins.int
+KEY_T: builtins.int
+KEY_THORN: builtins.int
+KEY_Tab: builtins.int
+KEY_Tabovedot: builtins.int
+KEY_TaskPane: builtins.int
+KEY_Tcaron: builtins.int
+KEY_Tcedilla: builtins.int
+KEY_Terminal: builtins.int
+KEY_Terminate_Server: builtins.int
+KEY_Thai_baht: builtins.int
+KEY_Thai_bobaimai: builtins.int
+KEY_Thai_chochan: builtins.int
+KEY_Thai_chochang: builtins.int
+KEY_Thai_choching: builtins.int
+KEY_Thai_chochoe: builtins.int
+KEY_Thai_dochada: builtins.int
+KEY_Thai_dodek: builtins.int
+KEY_Thai_fofa: builtins.int
+KEY_Thai_fofan: builtins.int
+KEY_Thai_hohip: builtins.int
+KEY_Thai_honokhuk: builtins.int
+KEY_Thai_khokhai: builtins.int
+KEY_Thai_khokhon: builtins.int
+KEY_Thai_khokhuat: builtins.int
+KEY_Thai_khokhwai: builtins.int
+KEY_Thai_khorakhang: builtins.int
+KEY_Thai_kokai: builtins.int
+KEY_Thai_lakkhangyao: builtins.int
+KEY_Thai_lekchet: builtins.int
+KEY_Thai_lekha: builtins.int
+KEY_Thai_lekhok: builtins.int
+KEY_Thai_lekkao: builtins.int
+KEY_Thai_leknung: builtins.int
+KEY_Thai_lekpaet: builtins.int
+KEY_Thai_leksam: builtins.int
+KEY_Thai_leksi: builtins.int
+KEY_Thai_leksong: builtins.int
+KEY_Thai_leksun: builtins.int
+KEY_Thai_lochula: builtins.int
+KEY_Thai_loling: builtins.int
+KEY_Thai_lu: builtins.int
+KEY_Thai_maichattawa: builtins.int
+KEY_Thai_maiek: builtins.int
+KEY_Thai_maihanakat: builtins.int
+KEY_Thai_maihanakat_maitho: builtins.int
+KEY_Thai_maitaikhu: builtins.int
+KEY_Thai_maitho: builtins.int
+KEY_Thai_maitri: builtins.int
+KEY_Thai_maiyamok: builtins.int
+KEY_Thai_moma: builtins.int
+KEY_Thai_ngongu: builtins.int
+KEY_Thai_nikhahit: builtins.int
+KEY_Thai_nonen: builtins.int
+KEY_Thai_nonu: builtins.int
+KEY_Thai_oang: builtins.int
+KEY_Thai_paiyannoi: builtins.int
+KEY_Thai_phinthu: builtins.int
+KEY_Thai_phophan: builtins.int
+KEY_Thai_phophung: builtins.int
+KEY_Thai_phosamphao: builtins.int
+KEY_Thai_popla: builtins.int
+KEY_Thai_rorua: builtins.int
+KEY_Thai_ru: builtins.int
+KEY_Thai_saraa: builtins.int
+KEY_Thai_saraaa: builtins.int
+KEY_Thai_saraae: builtins.int
+KEY_Thai_saraaimaimalai: builtins.int
+KEY_Thai_saraaimaimuan: builtins.int
+KEY_Thai_saraam: builtins.int
+KEY_Thai_sarae: builtins.int
+KEY_Thai_sarai: builtins.int
+KEY_Thai_saraii: builtins.int
+KEY_Thai_sarao: builtins.int
+KEY_Thai_sarau: builtins.int
+KEY_Thai_saraue: builtins.int
+KEY_Thai_sarauee: builtins.int
+KEY_Thai_sarauu: builtins.int
+KEY_Thai_sorusi: builtins.int
+KEY_Thai_sosala: builtins.int
+KEY_Thai_soso: builtins.int
+KEY_Thai_sosua: builtins.int
+KEY_Thai_thanthakhat: builtins.int
+KEY_Thai_thonangmontho: builtins.int
+KEY_Thai_thophuthao: builtins.int
+KEY_Thai_thothahan: builtins.int
+KEY_Thai_thothan: builtins.int
+KEY_Thai_thothong: builtins.int
+KEY_Thai_thothung: builtins.int
+KEY_Thai_topatak: builtins.int
+KEY_Thai_totao: builtins.int
+KEY_Thai_wowaen: builtins.int
+KEY_Thai_yoyak: builtins.int
+KEY_Thai_yoying: builtins.int
+KEY_Thorn: builtins.int
+KEY_Time: builtins.int
+KEY_ToDoList: builtins.int
+KEY_Tools: builtins.int
+KEY_TopMenu: builtins.int
+KEY_TouchpadOff: builtins.int
+KEY_TouchpadOn: builtins.int
+KEY_TouchpadToggle: builtins.int
+KEY_Touroku: builtins.int
+KEY_Travel: builtins.int
+KEY_Tslash: builtins.int
+KEY_U: builtins.int
+KEY_UWB: builtins.int
+KEY_Uacute: builtins.int
+KEY_Ubelowdot: builtins.int
+KEY_Ubreve: builtins.int
+KEY_Ucircumflex: builtins.int
+KEY_Udiaeresis: builtins.int
+KEY_Udoubleacute: builtins.int
+KEY_Ugrave: builtins.int
+KEY_Uhook: builtins.int
+KEY_Uhorn: builtins.int
+KEY_Uhornacute: builtins.int
+KEY_Uhornbelowdot: builtins.int
+KEY_Uhorngrave: builtins.int
+KEY_Uhornhook: builtins.int
+KEY_Uhorntilde: builtins.int
+KEY_Ukrainian_GHE_WITH_UPTURN: builtins.int
+KEY_Ukrainian_I: builtins.int
+KEY_Ukrainian_IE: builtins.int
+KEY_Ukrainian_YI: builtins.int
+KEY_Ukrainian_ghe_with_upturn: builtins.int
+KEY_Ukrainian_i: builtins.int
+KEY_Ukrainian_ie: builtins.int
+KEY_Ukrainian_yi: builtins.int
+KEY_Ukranian_I: builtins.int
+KEY_Ukranian_JE: builtins.int
+KEY_Ukranian_YI: builtins.int
+KEY_Ukranian_i: builtins.int
+KEY_Ukranian_je: builtins.int
+KEY_Ukranian_yi: builtins.int
+KEY_Umacron: builtins.int
+KEY_Undo: builtins.int
+KEY_Ungrab: builtins.int
+KEY_Uogonek: builtins.int
+KEY_Up: builtins.int
+KEY_Uring: builtins.int
+KEY_User1KB: builtins.int
+KEY_User2KB: builtins.int
+KEY_UserPB: builtins.int
+KEY_Utilde: builtins.int
+KEY_V: builtins.int
+KEY_VendorHome: builtins.int
+KEY_Video: builtins.int
+KEY_View: builtins.int
+KEY_VoidSymbol: builtins.int
+KEY_W: builtins.int
+KEY_WLAN: builtins.int
+KEY_WWAN: builtins.int
+KEY_WWW: builtins.int
+KEY_Wacute: builtins.int
+KEY_WakeUp: builtins.int
+KEY_Wcircumflex: builtins.int
+KEY_Wdiaeresis: builtins.int
+KEY_WebCam: builtins.int
+KEY_Wgrave: builtins.int
+KEY_WheelButton: builtins.int
+KEY_WindowClear: builtins.int
+KEY_WonSign: builtins.int
+KEY_Word: builtins.int
+KEY_X: builtins.int
+KEY_Xabovedot: builtins.int
+KEY_Xfer: builtins.int
+KEY_Y: builtins.int
+KEY_Yacute: builtins.int
+KEY_Ybelowdot: builtins.int
+KEY_Ycircumflex: builtins.int
+KEY_Ydiaeresis: builtins.int
+KEY_Yellow: builtins.int
+KEY_Ygrave: builtins.int
+KEY_Yhook: builtins.int
+KEY_Ytilde: builtins.int
+KEY_Z: builtins.int
+KEY_Zabovedot: builtins.int
+KEY_Zacute: builtins.int
+KEY_Zcaron: builtins.int
+KEY_Zen_Koho: builtins.int
+KEY_Zenkaku: builtins.int
+KEY_Zenkaku_Hankaku: builtins.int
+KEY_ZoomIn: builtins.int
+KEY_ZoomOut: builtins.int
+KEY_Zstroke: builtins.int
+KEY_a: builtins.int
+KEY_aacute: builtins.int
+KEY_abelowdot: builtins.int
+KEY_abovedot: builtins.int
+KEY_abreve: builtins.int
+KEY_abreveacute: builtins.int
+KEY_abrevebelowdot: builtins.int
+KEY_abrevegrave: builtins.int
+KEY_abrevehook: builtins.int
+KEY_abrevetilde: builtins.int
+KEY_acircumflex: builtins.int
+KEY_acircumflexacute: builtins.int
+KEY_acircumflexbelowdot: builtins.int
+KEY_acircumflexgrave: builtins.int
+KEY_acircumflexhook: builtins.int
+KEY_acircumflextilde: builtins.int
+KEY_acute: builtins.int
+KEY_adiaeresis: builtins.int
+KEY_ae: builtins.int
+KEY_agrave: builtins.int
+KEY_ahook: builtins.int
+KEY_amacron: builtins.int
+KEY_ampersand: builtins.int
+KEY_aogonek: builtins.int
+KEY_apostrophe: builtins.int
+KEY_approxeq: builtins.int
+KEY_approximate: builtins.int
+KEY_aring: builtins.int
+KEY_asciicircum: builtins.int
+KEY_asciitilde: builtins.int
+KEY_asterisk: builtins.int
+KEY_at: builtins.int
+KEY_atilde: builtins.int
+KEY_b: builtins.int
+KEY_babovedot: builtins.int
+KEY_backslash: builtins.int
+KEY_ballotcross: builtins.int
+KEY_bar: builtins.int
+KEY_because: builtins.int
+KEY_blank: builtins.int
+KEY_botintegral: builtins.int
+KEY_botleftparens: builtins.int
+KEY_botleftsqbracket: builtins.int
+KEY_botleftsummation: builtins.int
+KEY_botrightparens: builtins.int
+KEY_botrightsqbracket: builtins.int
+KEY_botrightsummation: builtins.int
+KEY_bott: builtins.int
+KEY_botvertsummationconnector: builtins.int
+KEY_braceleft: builtins.int
+KEY_braceright: builtins.int
+KEY_bracketleft: builtins.int
+KEY_bracketright: builtins.int
+KEY_braille_blank: builtins.int
+KEY_braille_dot_1: builtins.int
+KEY_braille_dot_10: builtins.int
+KEY_braille_dot_2: builtins.int
+KEY_braille_dot_3: builtins.int
+KEY_braille_dot_4: builtins.int
+KEY_braille_dot_5: builtins.int
+KEY_braille_dot_6: builtins.int
+KEY_braille_dot_7: builtins.int
+KEY_braille_dot_8: builtins.int
+KEY_braille_dot_9: builtins.int
+KEY_braille_dots_1: builtins.int
+KEY_braille_dots_12: builtins.int
+KEY_braille_dots_123: builtins.int
+KEY_braille_dots_1234: builtins.int
+KEY_braille_dots_12345: builtins.int
+KEY_braille_dots_123456: builtins.int
+KEY_braille_dots_1234567: builtins.int
+KEY_braille_dots_12345678: builtins.int
+KEY_braille_dots_1234568: builtins.int
+KEY_braille_dots_123457: builtins.int
+KEY_braille_dots_1234578: builtins.int
+KEY_braille_dots_123458: builtins.int
+KEY_braille_dots_12346: builtins.int
+KEY_braille_dots_123467: builtins.int
+KEY_braille_dots_1234678: builtins.int
+KEY_braille_dots_123468: builtins.int
+KEY_braille_dots_12347: builtins.int
+KEY_braille_dots_123478: builtins.int
+KEY_braille_dots_12348: builtins.int
+KEY_braille_dots_1235: builtins.int
+KEY_braille_dots_12356: builtins.int
+KEY_braille_dots_123567: builtins.int
+KEY_braille_dots_1235678: builtins.int
+KEY_braille_dots_123568: builtins.int
+KEY_braille_dots_12357: builtins.int
+KEY_braille_dots_123578: builtins.int
+KEY_braille_dots_12358: builtins.int
+KEY_braille_dots_1236: builtins.int
+KEY_braille_dots_12367: builtins.int
+KEY_braille_dots_123678: builtins.int
+KEY_braille_dots_12368: builtins.int
+KEY_braille_dots_1237: builtins.int
+KEY_braille_dots_12378: builtins.int
+KEY_braille_dots_1238: builtins.int
+KEY_braille_dots_124: builtins.int
+KEY_braille_dots_1245: builtins.int
+KEY_braille_dots_12456: builtins.int
+KEY_braille_dots_124567: builtins.int
+KEY_braille_dots_1245678: builtins.int
+KEY_braille_dots_124568: builtins.int
+KEY_braille_dots_12457: builtins.int
+KEY_braille_dots_124578: builtins.int
+KEY_braille_dots_12458: builtins.int
+KEY_braille_dots_1246: builtins.int
+KEY_braille_dots_12467: builtins.int
+KEY_braille_dots_124678: builtins.int
+KEY_braille_dots_12468: builtins.int
+KEY_braille_dots_1247: builtins.int
+KEY_braille_dots_12478: builtins.int
+KEY_braille_dots_1248: builtins.int
+KEY_braille_dots_125: builtins.int
+KEY_braille_dots_1256: builtins.int
+KEY_braille_dots_12567: builtins.int
+KEY_braille_dots_125678: builtins.int
+KEY_braille_dots_12568: builtins.int
+KEY_braille_dots_1257: builtins.int
+KEY_braille_dots_12578: builtins.int
+KEY_braille_dots_1258: builtins.int
+KEY_braille_dots_126: builtins.int
+KEY_braille_dots_1267: builtins.int
+KEY_braille_dots_12678: builtins.int
+KEY_braille_dots_1268: builtins.int
+KEY_braille_dots_127: builtins.int
+KEY_braille_dots_1278: builtins.int
+KEY_braille_dots_128: builtins.int
+KEY_braille_dots_13: builtins.int
+KEY_braille_dots_134: builtins.int
+KEY_braille_dots_1345: builtins.int
+KEY_braille_dots_13456: builtins.int
+KEY_braille_dots_134567: builtins.int
+KEY_braille_dots_1345678: builtins.int
+KEY_braille_dots_134568: builtins.int
+KEY_braille_dots_13457: builtins.int
+KEY_braille_dots_134578: builtins.int
+KEY_braille_dots_13458: builtins.int
+KEY_braille_dots_1346: builtins.int
+KEY_braille_dots_13467: builtins.int
+KEY_braille_dots_134678: builtins.int
+KEY_braille_dots_13468: builtins.int
+KEY_braille_dots_1347: builtins.int
+KEY_braille_dots_13478: builtins.int
+KEY_braille_dots_1348: builtins.int
+KEY_braille_dots_135: builtins.int
+KEY_braille_dots_1356: builtins.int
+KEY_braille_dots_13567: builtins.int
+KEY_braille_dots_135678: builtins.int
+KEY_braille_dots_13568: builtins.int
+KEY_braille_dots_1357: builtins.int
+KEY_braille_dots_13578: builtins.int
+KEY_braille_dots_1358: builtins.int
+KEY_braille_dots_136: builtins.int
+KEY_braille_dots_1367: builtins.int
+KEY_braille_dots_13678: builtins.int
+KEY_braille_dots_1368: builtins.int
+KEY_braille_dots_137: builtins.int
+KEY_braille_dots_1378: builtins.int
+KEY_braille_dots_138: builtins.int
+KEY_braille_dots_14: builtins.int
+KEY_braille_dots_145: builtins.int
+KEY_braille_dots_1456: builtins.int
+KEY_braille_dots_14567: builtins.int
+KEY_braille_dots_145678: builtins.int
+KEY_braille_dots_14568: builtins.int
+KEY_braille_dots_1457: builtins.int
+KEY_braille_dots_14578: builtins.int
+KEY_braille_dots_1458: builtins.int
+KEY_braille_dots_146: builtins.int
+KEY_braille_dots_1467: builtins.int
+KEY_braille_dots_14678: builtins.int
+KEY_braille_dots_1468: builtins.int
+KEY_braille_dots_147: builtins.int
+KEY_braille_dots_1478: builtins.int
+KEY_braille_dots_148: builtins.int
+KEY_braille_dots_15: builtins.int
+KEY_braille_dots_156: builtins.int
+KEY_braille_dots_1567: builtins.int
+KEY_braille_dots_15678: builtins.int
+KEY_braille_dots_1568: builtins.int
+KEY_braille_dots_157: builtins.int
+KEY_braille_dots_1578: builtins.int
+KEY_braille_dots_158: builtins.int
+KEY_braille_dots_16: builtins.int
+KEY_braille_dots_167: builtins.int
+KEY_braille_dots_1678: builtins.int
+KEY_braille_dots_168: builtins.int
+KEY_braille_dots_17: builtins.int
+KEY_braille_dots_178: builtins.int
+KEY_braille_dots_18: builtins.int
+KEY_braille_dots_2: builtins.int
+KEY_braille_dots_23: builtins.int
+KEY_braille_dots_234: builtins.int
+KEY_braille_dots_2345: builtins.int
+KEY_braille_dots_23456: builtins.int
+KEY_braille_dots_234567: builtins.int
+KEY_braille_dots_2345678: builtins.int
+KEY_braille_dots_234568: builtins.int
+KEY_braille_dots_23457: builtins.int
+KEY_braille_dots_234578: builtins.int
+KEY_braille_dots_23458: builtins.int
+KEY_braille_dots_2346: builtins.int
+KEY_braille_dots_23467: builtins.int
+KEY_braille_dots_234678: builtins.int
+KEY_braille_dots_23468: builtins.int
+KEY_braille_dots_2347: builtins.int
+KEY_braille_dots_23478: builtins.int
+KEY_braille_dots_2348: builtins.int
+KEY_braille_dots_235: builtins.int
+KEY_braille_dots_2356: builtins.int
+KEY_braille_dots_23567: builtins.int
+KEY_braille_dots_235678: builtins.int
+KEY_braille_dots_23568: builtins.int
+KEY_braille_dots_2357: builtins.int
+KEY_braille_dots_23578: builtins.int
+KEY_braille_dots_2358: builtins.int
+KEY_braille_dots_236: builtins.int
+KEY_braille_dots_2367: builtins.int
+KEY_braille_dots_23678: builtins.int
+KEY_braille_dots_2368: builtins.int
+KEY_braille_dots_237: builtins.int
+KEY_braille_dots_2378: builtins.int
+KEY_braille_dots_238: builtins.int
+KEY_braille_dots_24: builtins.int
+KEY_braille_dots_245: builtins.int
+KEY_braille_dots_2456: builtins.int
+KEY_braille_dots_24567: builtins.int
+KEY_braille_dots_245678: builtins.int
+KEY_braille_dots_24568: builtins.int
+KEY_braille_dots_2457: builtins.int
+KEY_braille_dots_24578: builtins.int
+KEY_braille_dots_2458: builtins.int
+KEY_braille_dots_246: builtins.int
+KEY_braille_dots_2467: builtins.int
+KEY_braille_dots_24678: builtins.int
+KEY_braille_dots_2468: builtins.int
+KEY_braille_dots_247: builtins.int
+KEY_braille_dots_2478: builtins.int
+KEY_braille_dots_248: builtins.int
+KEY_braille_dots_25: builtins.int
+KEY_braille_dots_256: builtins.int
+KEY_braille_dots_2567: builtins.int
+KEY_braille_dots_25678: builtins.int
+KEY_braille_dots_2568: builtins.int
+KEY_braille_dots_257: builtins.int
+KEY_braille_dots_2578: builtins.int
+KEY_braille_dots_258: builtins.int
+KEY_braille_dots_26: builtins.int
+KEY_braille_dots_267: builtins.int
+KEY_braille_dots_2678: builtins.int
+KEY_braille_dots_268: builtins.int
+KEY_braille_dots_27: builtins.int
+KEY_braille_dots_278: builtins.int
+KEY_braille_dots_28: builtins.int
+KEY_braille_dots_3: builtins.int
+KEY_braille_dots_34: builtins.int
+KEY_braille_dots_345: builtins.int
+KEY_braille_dots_3456: builtins.int
+KEY_braille_dots_34567: builtins.int
+KEY_braille_dots_345678: builtins.int
+KEY_braille_dots_34568: builtins.int
+KEY_braille_dots_3457: builtins.int
+KEY_braille_dots_34578: builtins.int
+KEY_braille_dots_3458: builtins.int
+KEY_braille_dots_346: builtins.int
+KEY_braille_dots_3467: builtins.int
+KEY_braille_dots_34678: builtins.int
+KEY_braille_dots_3468: builtins.int
+KEY_braille_dots_347: builtins.int
+KEY_braille_dots_3478: builtins.int
+KEY_braille_dots_348: builtins.int
+KEY_braille_dots_35: builtins.int
+KEY_braille_dots_356: builtins.int
+KEY_braille_dots_3567: builtins.int
+KEY_braille_dots_35678: builtins.int
+KEY_braille_dots_3568: builtins.int
+KEY_braille_dots_357: builtins.int
+KEY_braille_dots_3578: builtins.int
+KEY_braille_dots_358: builtins.int
+KEY_braille_dots_36: builtins.int
+KEY_braille_dots_367: builtins.int
+KEY_braille_dots_3678: builtins.int
+KEY_braille_dots_368: builtins.int
+KEY_braille_dots_37: builtins.int
+KEY_braille_dots_378: builtins.int
+KEY_braille_dots_38: builtins.int
+KEY_braille_dots_4: builtins.int
+KEY_braille_dots_45: builtins.int
+KEY_braille_dots_456: builtins.int
+KEY_braille_dots_4567: builtins.int
+KEY_braille_dots_45678: builtins.int
+KEY_braille_dots_4568: builtins.int
+KEY_braille_dots_457: builtins.int
+KEY_braille_dots_4578: builtins.int
+KEY_braille_dots_458: builtins.int
+KEY_braille_dots_46: builtins.int
+KEY_braille_dots_467: builtins.int
+KEY_braille_dots_4678: builtins.int
+KEY_braille_dots_468: builtins.int
+KEY_braille_dots_47: builtins.int
+KEY_braille_dots_478: builtins.int
+KEY_braille_dots_48: builtins.int
+KEY_braille_dots_5: builtins.int
+KEY_braille_dots_56: builtins.int
+KEY_braille_dots_567: builtins.int
+KEY_braille_dots_5678: builtins.int
+KEY_braille_dots_568: builtins.int
+KEY_braille_dots_57: builtins.int
+KEY_braille_dots_578: builtins.int
+KEY_braille_dots_58: builtins.int
+KEY_braille_dots_6: builtins.int
+KEY_braille_dots_67: builtins.int
+KEY_braille_dots_678: builtins.int
+KEY_braille_dots_68: builtins.int
+KEY_braille_dots_7: builtins.int
+KEY_braille_dots_78: builtins.int
+KEY_braille_dots_8: builtins.int
+KEY_breve: builtins.int
+KEY_brokenbar: builtins.int
+KEY_c: builtins.int
+KEY_c_h: builtins.int
+KEY_cabovedot: builtins.int
+KEY_cacute: builtins.int
+KEY_careof: builtins.int
+KEY_caret: builtins.int
+KEY_caron: builtins.int
+KEY_ccaron: builtins.int
+KEY_ccedilla: builtins.int
+KEY_ccircumflex: builtins.int
+KEY_cedilla: builtins.int
+KEY_cent: builtins.int
+KEY_ch: builtins.int
+KEY_checkerboard: builtins.int
+KEY_checkmark: builtins.int
+KEY_circle: builtins.int
+KEY_club: builtins.int
+KEY_colon: builtins.int
+KEY_comma: builtins.int
+KEY_containsas: builtins.int
+KEY_copyright: builtins.int
+KEY_cr: builtins.int
+KEY_crossinglines: builtins.int
+KEY_cuberoot: builtins.int
+KEY_currency: builtins.int
+KEY_cursor: builtins.int
+KEY_d: builtins.int
+KEY_dabovedot: builtins.int
+KEY_dagger: builtins.int
+KEY_dcaron: builtins.int
+KEY_dead_A: builtins.int
+KEY_dead_E: builtins.int
+KEY_dead_I: builtins.int
+KEY_dead_O: builtins.int
+KEY_dead_U: builtins.int
+KEY_dead_a: builtins.int
+KEY_dead_abovecomma: builtins.int
+KEY_dead_abovedot: builtins.int
+KEY_dead_abovereversedcomma: builtins.int
+KEY_dead_abovering: builtins.int
+KEY_dead_aboveverticalline: builtins.int
+KEY_dead_acute: builtins.int
+KEY_dead_belowbreve: builtins.int
+KEY_dead_belowcircumflex: builtins.int
+KEY_dead_belowcomma: builtins.int
+KEY_dead_belowdiaeresis: builtins.int
+KEY_dead_belowdot: builtins.int
+KEY_dead_belowmacron: builtins.int
+KEY_dead_belowring: builtins.int
+KEY_dead_belowtilde: builtins.int
+KEY_dead_belowverticalline: builtins.int
+KEY_dead_breve: builtins.int
+KEY_dead_capital_schwa: builtins.int
+KEY_dead_caron: builtins.int
+KEY_dead_cedilla: builtins.int
+KEY_dead_circumflex: builtins.int
+KEY_dead_currency: builtins.int
+KEY_dead_dasia: builtins.int
+KEY_dead_diaeresis: builtins.int
+KEY_dead_doubleacute: builtins.int
+KEY_dead_doublegrave: builtins.int
+KEY_dead_e: builtins.int
+KEY_dead_grave: builtins.int
+KEY_dead_greek: builtins.int
+KEY_dead_hook: builtins.int
+KEY_dead_horn: builtins.int
+KEY_dead_i: builtins.int
+KEY_dead_invertedbreve: builtins.int
+KEY_dead_iota: builtins.int
+KEY_dead_longsolidusoverlay: builtins.int
+KEY_dead_lowline: builtins.int
+KEY_dead_macron: builtins.int
+KEY_dead_o: builtins.int
+KEY_dead_ogonek: builtins.int
+KEY_dead_perispomeni: builtins.int
+KEY_dead_psili: builtins.int
+KEY_dead_semivoiced_sound: builtins.int
+KEY_dead_small_schwa: builtins.int
+KEY_dead_stroke: builtins.int
+KEY_dead_tilde: builtins.int
+KEY_dead_u: builtins.int
+KEY_dead_voiced_sound: builtins.int
+KEY_decimalpoint: builtins.int
+KEY_degree: builtins.int
+KEY_diaeresis: builtins.int
+KEY_diamond: builtins.int
+KEY_digitspace: builtins.int
+KEY_dintegral: builtins.int
+KEY_division: builtins.int
+KEY_dollar: builtins.int
+KEY_doubbaselinedot: builtins.int
+KEY_doubleacute: builtins.int
+KEY_doubledagger: builtins.int
+KEY_doublelowquotemark: builtins.int
+KEY_downarrow: builtins.int
+KEY_downcaret: builtins.int
+KEY_downshoe: builtins.int
+KEY_downstile: builtins.int
+KEY_downtack: builtins.int
+KEY_dstroke: builtins.int
+KEY_e: builtins.int
+KEY_eabovedot: builtins.int
+KEY_eacute: builtins.int
+KEY_ebelowdot: builtins.int
+KEY_ecaron: builtins.int
+KEY_ecircumflex: builtins.int
+KEY_ecircumflexacute: builtins.int
+KEY_ecircumflexbelowdot: builtins.int
+KEY_ecircumflexgrave: builtins.int
+KEY_ecircumflexhook: builtins.int
+KEY_ecircumflextilde: builtins.int
+KEY_ediaeresis: builtins.int
+KEY_egrave: builtins.int
+KEY_ehook: builtins.int
+KEY_eightsubscript: builtins.int
+KEY_eightsuperior: builtins.int
+KEY_elementof: builtins.int
+KEY_ellipsis: builtins.int
+KEY_em3space: builtins.int
+KEY_em4space: builtins.int
+KEY_emacron: builtins.int
+KEY_emdash: builtins.int
+KEY_emfilledcircle: builtins.int
+KEY_emfilledrect: builtins.int
+KEY_emopencircle: builtins.int
+KEY_emopenrectangle: builtins.int
+KEY_emptyset: builtins.int
+KEY_emspace: builtins.int
+KEY_endash: builtins.int
+KEY_enfilledcircbullet: builtins.int
+KEY_enfilledsqbullet: builtins.int
+KEY_eng: builtins.int
+KEY_enopencircbullet: builtins.int
+KEY_enopensquarebullet: builtins.int
+KEY_enspace: builtins.int
+KEY_eogonek: builtins.int
+KEY_equal: builtins.int
+KEY_eth: builtins.int
+KEY_etilde: builtins.int
+KEY_exclam: builtins.int
+KEY_exclamdown: builtins.int
+KEY_ezh: builtins.int
+KEY_f: builtins.int
+KEY_fabovedot: builtins.int
+KEY_femalesymbol: builtins.int
+KEY_ff: builtins.int
+KEY_figdash: builtins.int
+KEY_filledlefttribullet: builtins.int
+KEY_filledrectbullet: builtins.int
+KEY_filledrighttribullet: builtins.int
+KEY_filledtribulletdown: builtins.int
+KEY_filledtribulletup: builtins.int
+KEY_fiveeighths: builtins.int
+KEY_fivesixths: builtins.int
+KEY_fivesubscript: builtins.int
+KEY_fivesuperior: builtins.int
+KEY_fourfifths: builtins.int
+KEY_foursubscript: builtins.int
+KEY_foursuperior: builtins.int
+KEY_fourthroot: builtins.int
+KEY_function: builtins.int
+KEY_g: builtins.int
+KEY_gabovedot: builtins.int
+KEY_gbreve: builtins.int
+KEY_gcaron: builtins.int
+KEY_gcedilla: builtins.int
+KEY_gcircumflex: builtins.int
+KEY_grave: builtins.int
+KEY_greater: builtins.int
+KEY_greaterthanequal: builtins.int
+KEY_guillemotleft: builtins.int
+KEY_guillemotright: builtins.int
+KEY_h: builtins.int
+KEY_hairspace: builtins.int
+KEY_hcircumflex: builtins.int
+KEY_heart: builtins.int
+KEY_hebrew_aleph: builtins.int
+KEY_hebrew_ayin: builtins.int
+KEY_hebrew_bet: builtins.int
+KEY_hebrew_beth: builtins.int
+KEY_hebrew_chet: builtins.int
+KEY_hebrew_dalet: builtins.int
+KEY_hebrew_daleth: builtins.int
+KEY_hebrew_doublelowline: builtins.int
+KEY_hebrew_finalkaph: builtins.int
+KEY_hebrew_finalmem: builtins.int
+KEY_hebrew_finalnun: builtins.int
+KEY_hebrew_finalpe: builtins.int
+KEY_hebrew_finalzade: builtins.int
+KEY_hebrew_finalzadi: builtins.int
+KEY_hebrew_gimel: builtins.int
+KEY_hebrew_gimmel: builtins.int
+KEY_hebrew_he: builtins.int
+KEY_hebrew_het: builtins.int
+KEY_hebrew_kaph: builtins.int
+KEY_hebrew_kuf: builtins.int
+KEY_hebrew_lamed: builtins.int
+KEY_hebrew_mem: builtins.int
+KEY_hebrew_nun: builtins.int
+KEY_hebrew_pe: builtins.int
+KEY_hebrew_qoph: builtins.int
+KEY_hebrew_resh: builtins.int
+KEY_hebrew_samech: builtins.int
+KEY_hebrew_samekh: builtins.int
+KEY_hebrew_shin: builtins.int
+KEY_hebrew_taf: builtins.int
+KEY_hebrew_taw: builtins.int
+KEY_hebrew_tet: builtins.int
+KEY_hebrew_teth: builtins.int
+KEY_hebrew_waw: builtins.int
+KEY_hebrew_yod: builtins.int
+KEY_hebrew_zade: builtins.int
+KEY_hebrew_zadi: builtins.int
+KEY_hebrew_zain: builtins.int
+KEY_hebrew_zayin: builtins.int
+KEY_hexagram: builtins.int
+KEY_horizconnector: builtins.int
+KEY_horizlinescan1: builtins.int
+KEY_horizlinescan3: builtins.int
+KEY_horizlinescan5: builtins.int
+KEY_horizlinescan7: builtins.int
+KEY_horizlinescan9: builtins.int
+KEY_hstroke: builtins.int
+KEY_ht: builtins.int
+KEY_hyphen: builtins.int
+KEY_i: builtins.int
+KEY_iTouch: builtins.int
+KEY_iacute: builtins.int
+KEY_ibelowdot: builtins.int
+KEY_ibreve: builtins.int
+KEY_icircumflex: builtins.int
+KEY_identical: builtins.int
+KEY_idiaeresis: builtins.int
+KEY_idotless: builtins.int
+KEY_ifonlyif: builtins.int
+KEY_igrave: builtins.int
+KEY_ihook: builtins.int
+KEY_imacron: builtins.int
+KEY_implies: builtins.int
+KEY_includedin: builtins.int
+KEY_includes: builtins.int
+KEY_infinity: builtins.int
+KEY_integral: builtins.int
+KEY_intersection: builtins.int
+KEY_iogonek: builtins.int
+KEY_itilde: builtins.int
+KEY_j: builtins.int
+KEY_jcircumflex: builtins.int
+KEY_jot: builtins.int
+KEY_k: builtins.int
+KEY_kana_A: builtins.int
+KEY_kana_CHI: builtins.int
+KEY_kana_E: builtins.int
+KEY_kana_FU: builtins.int
+KEY_kana_HA: builtins.int
+KEY_kana_HE: builtins.int
+KEY_kana_HI: builtins.int
+KEY_kana_HO: builtins.int
+KEY_kana_HU: builtins.int
+KEY_kana_I: builtins.int
+KEY_kana_KA: builtins.int
+KEY_kana_KE: builtins.int
+KEY_kana_KI: builtins.int
+KEY_kana_KO: builtins.int
+KEY_kana_KU: builtins.int
+KEY_kana_MA: builtins.int
+KEY_kana_ME: builtins.int
+KEY_kana_MI: builtins.int
+KEY_kana_MO: builtins.int
+KEY_kana_MU: builtins.int
+KEY_kana_N: builtins.int
+KEY_kana_NA: builtins.int
+KEY_kana_NE: builtins.int
+KEY_kana_NI: builtins.int
+KEY_kana_NO: builtins.int
+KEY_kana_NU: builtins.int
+KEY_kana_O: builtins.int
+KEY_kana_RA: builtins.int
+KEY_kana_RE: builtins.int
+KEY_kana_RI: builtins.int
+KEY_kana_RO: builtins.int
+KEY_kana_RU: builtins.int
+KEY_kana_SA: builtins.int
+KEY_kana_SE: builtins.int
+KEY_kana_SHI: builtins.int
+KEY_kana_SO: builtins.int
+KEY_kana_SU: builtins.int
+KEY_kana_TA: builtins.int
+KEY_kana_TE: builtins.int
+KEY_kana_TI: builtins.int
+KEY_kana_TO: builtins.int
+KEY_kana_TSU: builtins.int
+KEY_kana_TU: builtins.int
+KEY_kana_U: builtins.int
+KEY_kana_WA: builtins.int
+KEY_kana_WO: builtins.int
+KEY_kana_YA: builtins.int
+KEY_kana_YO: builtins.int
+KEY_kana_YU: builtins.int
+KEY_kana_a: builtins.int
+KEY_kana_closingbracket: builtins.int
+KEY_kana_comma: builtins.int
+KEY_kana_conjunctive: builtins.int
+KEY_kana_e: builtins.int
+KEY_kana_fullstop: builtins.int
+KEY_kana_i: builtins.int
+KEY_kana_middledot: builtins.int
+KEY_kana_o: builtins.int
+KEY_kana_openingbracket: builtins.int
+KEY_kana_switch: builtins.int
+KEY_kana_tsu: builtins.int
+KEY_kana_tu: builtins.int
+KEY_kana_u: builtins.int
+KEY_kana_ya: builtins.int
+KEY_kana_yo: builtins.int
+KEY_kana_yu: builtins.int
+KEY_kappa: builtins.int
+KEY_kcedilla: builtins.int
+KEY_kra: builtins.int
+KEY_l: builtins.int
+KEY_lacute: builtins.int
+KEY_latincross: builtins.int
+KEY_lbelowdot: builtins.int
+KEY_lcaron: builtins.int
+KEY_lcedilla: builtins.int
+KEY_leftanglebracket: builtins.int
+KEY_leftarrow: builtins.int
+KEY_leftcaret: builtins.int
+KEY_leftdoublequotemark: builtins.int
+KEY_leftmiddlecurlybrace: builtins.int
+KEY_leftopentriangle: builtins.int
+KEY_leftpointer: builtins.int
+KEY_leftradical: builtins.int
+KEY_leftshoe: builtins.int
+KEY_leftsinglequotemark: builtins.int
+KEY_leftt: builtins.int
+KEY_lefttack: builtins.int
+KEY_less: builtins.int
+KEY_lessthanequal: builtins.int
+KEY_lf: builtins.int
+KEY_logicaland: builtins.int
+KEY_logicalor: builtins.int
+KEY_lowleftcorner: builtins.int
+KEY_lowrightcorner: builtins.int
+KEY_lstroke: builtins.int
+KEY_m: builtins.int
+KEY_mabovedot: builtins.int
+KEY_macron: builtins.int
+KEY_malesymbol: builtins.int
+KEY_maltesecross: builtins.int
+KEY_marker: builtins.int
+KEY_masculine: builtins.int
+KEY_minus: builtins.int
+KEY_minutes: builtins.int
+KEY_mu: builtins.int
+KEY_multiply: builtins.int
+KEY_musicalflat: builtins.int
+KEY_musicalsharp: builtins.int
+KEY_n: builtins.int
+KEY_nabla: builtins.int
+KEY_nacute: builtins.int
+KEY_ncaron: builtins.int
+KEY_ncedilla: builtins.int
+KEY_ninesubscript: builtins.int
+KEY_ninesuperior: builtins.int
+KEY_nl: builtins.int
+KEY_nobreakspace: builtins.int
+KEY_notapproxeq: builtins.int
+KEY_notelementof: builtins.int
+KEY_notequal: builtins.int
+KEY_notidentical: builtins.int
+KEY_notsign: builtins.int
+KEY_ntilde: builtins.int
+KEY_numbersign: builtins.int
+KEY_numerosign: builtins.int
+KEY_o: builtins.int
+KEY_oacute: builtins.int
+KEY_obarred: builtins.int
+KEY_obelowdot: builtins.int
+KEY_ocaron: builtins.int
+KEY_ocircumflex: builtins.int
+KEY_ocircumflexacute: builtins.int
+KEY_ocircumflexbelowdot: builtins.int
+KEY_ocircumflexgrave: builtins.int
+KEY_ocircumflexhook: builtins.int
+KEY_ocircumflextilde: builtins.int
+KEY_odiaeresis: builtins.int
+KEY_odoubleacute: builtins.int
+KEY_oe: builtins.int
+KEY_ogonek: builtins.int
+KEY_ograve: builtins.int
+KEY_ohook: builtins.int
+KEY_ohorn: builtins.int
+KEY_ohornacute: builtins.int
+KEY_ohornbelowdot: builtins.int
+KEY_ohorngrave: builtins.int
+KEY_ohornhook: builtins.int
+KEY_ohorntilde: builtins.int
+KEY_omacron: builtins.int
+KEY_oneeighth: builtins.int
+KEY_onefifth: builtins.int
+KEY_onehalf: builtins.int
+KEY_onequarter: builtins.int
+KEY_onesixth: builtins.int
+KEY_onesubscript: builtins.int
+KEY_onesuperior: builtins.int
+KEY_onethird: builtins.int
+KEY_ooblique: builtins.int
+KEY_openrectbullet: builtins.int
+KEY_openstar: builtins.int
+KEY_opentribulletdown: builtins.int
+KEY_opentribulletup: builtins.int
+KEY_ordfeminine: builtins.int
+KEY_oslash: builtins.int
+KEY_otilde: builtins.int
+KEY_overbar: builtins.int
+KEY_overline: builtins.int
+KEY_p: builtins.int
+KEY_pabovedot: builtins.int
+KEY_paragraph: builtins.int
+KEY_parenleft: builtins.int
+KEY_parenright: builtins.int
+KEY_partdifferential: builtins.int
+KEY_partialderivative: builtins.int
+KEY_percent: builtins.int
+KEY_period: builtins.int
+KEY_periodcentered: builtins.int
+KEY_permille: builtins.int
+KEY_phonographcopyright: builtins.int
+KEY_plus: builtins.int
+KEY_plusminus: builtins.int
+KEY_prescription: builtins.int
+KEY_prolongedsound: builtins.int
+KEY_punctspace: builtins.int
+KEY_q: builtins.int
+KEY_quad: builtins.int
+KEY_question: builtins.int
+KEY_questiondown: builtins.int
+KEY_quotedbl: builtins.int
+KEY_quoteleft: builtins.int
+KEY_quoteright: builtins.int
+KEY_r: builtins.int
+KEY_racute: builtins.int
+KEY_radical: builtins.int
+KEY_rcaron: builtins.int
+KEY_rcedilla: builtins.int
+KEY_registered: builtins.int
+KEY_rightanglebracket: builtins.int
+KEY_rightarrow: builtins.int
+KEY_rightcaret: builtins.int
+KEY_rightdoublequotemark: builtins.int
+KEY_rightmiddlecurlybrace: builtins.int
+KEY_rightmiddlesummation: builtins.int
+KEY_rightopentriangle: builtins.int
+KEY_rightpointer: builtins.int
+KEY_rightshoe: builtins.int
+KEY_rightsinglequotemark: builtins.int
+KEY_rightt: builtins.int
+KEY_righttack: builtins.int
+KEY_s: builtins.int
+KEY_sabovedot: builtins.int
+KEY_sacute: builtins.int
+KEY_scaron: builtins.int
+KEY_scedilla: builtins.int
+KEY_schwa: builtins.int
+KEY_scircumflex: builtins.int
+KEY_script_switch: builtins.int
+KEY_seconds: builtins.int
+KEY_section: builtins.int
+KEY_semicolon: builtins.int
+KEY_semivoicedsound: builtins.int
+KEY_seveneighths: builtins.int
+KEY_sevensubscript: builtins.int
+KEY_sevensuperior: builtins.int
+KEY_signaturemark: builtins.int
+KEY_signifblank: builtins.int
+KEY_similarequal: builtins.int
+KEY_singlelowquotemark: builtins.int
+KEY_sixsubscript: builtins.int
+KEY_sixsuperior: builtins.int
+KEY_slash: builtins.int
+KEY_soliddiamond: builtins.int
+KEY_space: builtins.int
+KEY_squareroot: builtins.int
+KEY_ssharp: builtins.int
+KEY_sterling: builtins.int
+KEY_stricteq: builtins.int
+KEY_t: builtins.int
+KEY_tabovedot: builtins.int
+KEY_tcaron: builtins.int
+KEY_tcedilla: builtins.int
+KEY_telephone: builtins.int
+KEY_telephonerecorder: builtins.int
+KEY_therefore: builtins.int
+KEY_thinspace: builtins.int
+KEY_thorn: builtins.int
+KEY_threeeighths: builtins.int
+KEY_threefifths: builtins.int
+KEY_threequarters: builtins.int
+KEY_threesubscript: builtins.int
+KEY_threesuperior: builtins.int
+KEY_tintegral: builtins.int
+KEY_topintegral: builtins.int
+KEY_topleftparens: builtins.int
+KEY_topleftradical: builtins.int
+KEY_topleftsqbracket: builtins.int
+KEY_topleftsummation: builtins.int
+KEY_toprightparens: builtins.int
+KEY_toprightsqbracket: builtins.int
+KEY_toprightsummation: builtins.int
+KEY_topt: builtins.int
+KEY_topvertsummationconnector: builtins.int
+KEY_trademark: builtins.int
+KEY_trademarkincircle: builtins.int
+KEY_tslash: builtins.int
+KEY_twofifths: builtins.int
+KEY_twosubscript: builtins.int
+KEY_twosuperior: builtins.int
+KEY_twothirds: builtins.int
+KEY_u: builtins.int
+KEY_uacute: builtins.int
+KEY_ubelowdot: builtins.int
+KEY_ubreve: builtins.int
+KEY_ucircumflex: builtins.int
+KEY_udiaeresis: builtins.int
+KEY_udoubleacute: builtins.int
+KEY_ugrave: builtins.int
+KEY_uhook: builtins.int
+KEY_uhorn: builtins.int
+KEY_uhornacute: builtins.int
+KEY_uhornbelowdot: builtins.int
+KEY_uhorngrave: builtins.int
+KEY_uhornhook: builtins.int
+KEY_uhorntilde: builtins.int
+KEY_umacron: builtins.int
+KEY_underbar: builtins.int
+KEY_underscore: builtins.int
+KEY_union: builtins.int
+KEY_uogonek: builtins.int
+KEY_uparrow: builtins.int
+KEY_upcaret: builtins.int
+KEY_upleftcorner: builtins.int
+KEY_uprightcorner: builtins.int
+KEY_upshoe: builtins.int
+KEY_upstile: builtins.int
+KEY_uptack: builtins.int
+KEY_uring: builtins.int
+KEY_utilde: builtins.int
+KEY_v: builtins.int
+KEY_variation: builtins.int
+KEY_vertbar: builtins.int
+KEY_vertconnector: builtins.int
+KEY_voicedsound: builtins.int
+KEY_vt: builtins.int
+KEY_w: builtins.int
+KEY_wacute: builtins.int
+KEY_wcircumflex: builtins.int
+KEY_wdiaeresis: builtins.int
+KEY_wgrave: builtins.int
+KEY_x: builtins.int
+KEY_xabovedot: builtins.int
+KEY_y: builtins.int
+KEY_yacute: builtins.int
+KEY_ybelowdot: builtins.int
+KEY_ycircumflex: builtins.int
+KEY_ydiaeresis: builtins.int
+KEY_yen: builtins.int
+KEY_ygrave: builtins.int
+KEY_yhook: builtins.int
+KEY_ytilde: builtins.int
+KEY_z: builtins.int
+KEY_zabovedot: builtins.int
+KEY_zacute: builtins.int
+KEY_zcaron: builtins.int
+KEY_zerosubscript: builtins.int
+KEY_zerosuperior: builtins.int
+KEY_zstroke: builtins.int
+MAJOR_VERSION: builtins.int
+MAX_TIMECOORD_AXES: builtins.int
+MICRO_VERSION: builtins.int
+MINOR_VERSION: builtins.int
+PARENT_RELATIVE: builtins.int
+PRIORITY_REDRAW: builtins.int
+SELECTION_CLIPBOARD: Atom
+SELECTION_PRIMARY: Atom
+SELECTION_SECONDARY: Atom
+SELECTION_TYPE_ATOM: Atom
+SELECTION_TYPE_BITMAP: Atom
+SELECTION_TYPE_COLORMAP: Atom
+SELECTION_TYPE_DRAWABLE: Atom
+SELECTION_TYPE_INTEGER: Atom
+SELECTION_TYPE_PIXMAP: Atom
+SELECTION_TYPE_STRING: Atom
+SELECTION_TYPE_WINDOW: Atom
+TARGET_BITMAP: Atom
+TARGET_COLORMAP: Atom
+TARGET_DRAWABLE: Atom
+TARGET_PIXMAP: Atom
+TARGET_STRING: Atom
diff --git a/stubs/gi/repository/GdkPixbuf.pyi b/stubs/gi/repository/GdkPixbuf.pyi
new file mode 100644
index 000000000..1b060d209
--- /dev/null
+++ b/stubs/gi/repository/GdkPixbuf.pyi
@@ -0,0 +1,333 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+from gi.repository import GObject
+from gi.repository import Gio
+
+
+class Pixbuf(GObject.Object, Gio.Icon, Gio.LoadableIcon):
+ class _Props:
+ @property
+ def bits_per_sample(self) -> int: ...
+
+ @property
+ def has_alpha(self) -> bool: ...
+
+ @property
+ def height(self) -> int: ...
+
+ @property
+ def n_channels(self) -> int: ...
+
+ @property
+ def rowstride(self) -> int: ...
+
+ @property
+ def width(self) -> int: ...
+
+ props: _Props
+
+ def add_alpha(self, substitute_color: builtins.bool, r: builtins.int, g: builtins.int, b: builtins.int) -> Pixbuf: ...
+
+ def apply_embedded_orientation(self) -> Pixbuf: ...
+
+ @staticmethod
+ def calculate_rowstride(colorspace: Colorspace, has_alpha: builtins.bool, bits_per_sample: builtins.int, width: builtins.int, height: builtins.int) -> builtins.int: ...
+
+ def composite(self, dest: Pixbuf, dest_x: builtins.int, dest_y: builtins.int, dest_width: builtins.int, dest_height: builtins.int, offset_x: builtins.float, offset_y: builtins.float, scale_x: builtins.float, scale_y: builtins.float, interp_type: InterpType, overall_alpha: builtins.int) -> None: ...
+
+ def composite_color(self, dest: Pixbuf, dest_x: builtins.int, dest_y: builtins.int, dest_width: builtins.int, dest_height: builtins.int, offset_x: builtins.float, offset_y: builtins.float, scale_x: builtins.float, scale_y: builtins.float, interp_type: InterpType, overall_alpha: builtins.int, check_x: builtins.int, check_y: builtins.int, check_size: builtins.int, color1: builtins.int, color2: builtins.int) -> None: ...
+
+ def composite_color_simple(self, dest_width: builtins.int, dest_height: builtins.int, interp_type: InterpType, overall_alpha: builtins.int, check_size: builtins.int, color1: builtins.int, color2: builtins.int) -> typing.Optional[Pixbuf]: ...
+
+ def copy(self) -> typing.Optional[Pixbuf]: ...
+
+ def copy_area(self, src_x: builtins.int, src_y: builtins.int, width: builtins.int, height: builtins.int, dest_pixbuf: Pixbuf, dest_x: builtins.int, dest_y: builtins.int) -> None: ...
+
+ def copy_options(self, dest_pixbuf: Pixbuf) -> builtins.bool: ...
+
+ def fill(self, pixel: builtins.int) -> None: ...
+
+ def flip(self, horizontal: builtins.bool) -> typing.Optional[Pixbuf]: ...
+
+ def get_bits_per_sample(self) -> builtins.int: ...
+
+ def get_byte_length(self) -> builtins.int: ...
+
+ def get_colorspace(self) -> Colorspace: ...
+
+ @staticmethod
+ def get_file_info(filename: builtins.str) -> typing.Tuple[typing.Optional[PixbufFormat], builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def get_file_info_async(filename: builtins.str, cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def get_file_info_finish(async_result: Gio.AsyncResult) -> typing.Tuple[PixbufFormat, builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def get_formats() -> typing.Sequence[PixbufFormat]: ...
+
+ def get_has_alpha(self) -> builtins.bool: ...
+
+ def get_height(self) -> builtins.int: ...
+
+ def get_n_channels(self) -> builtins.int: ...
+
+ def get_option(self, key: builtins.str) -> builtins.str: ...
+
+ def get_options(self) -> typing.Mapping[builtins.str, builtins.str]: ...
+
+ def get_pixels(self) -> builtins.bytes: ...
+
+ def get_rowstride(self) -> builtins.int: ...
+
+ def get_width(self) -> builtins.int: ...
+
+ @staticmethod
+ def init_modules(path: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def new(colorspace: Colorspace, has_alpha: builtins.bool, bits_per_sample: builtins.int, width: builtins.int, height: builtins.int, **kwargs) -> typing.Optional[Pixbuf]: ... # type: ignore
+
+ @staticmethod
+ def new_from_bytes(data: GLib.Bytes, colorspace: Colorspace, has_alpha: builtins.bool, bits_per_sample: builtins.int, width: builtins.int, height: builtins.int, rowstride: builtins.int) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_data(data: builtins.bytes, colorspace: Colorspace, has_alpha: builtins.bool, bits_per_sample: builtins.int, width: builtins.int, height: builtins.int, rowstride: builtins.int, destroy_fn: typing.Optional[PixbufDestroyNotify], *destroy_fn_data: typing.Optional[builtins.object]) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_file(filename: builtins.str) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_file_at_scale(filename: builtins.str, width: builtins.int, height: builtins.int, preserve_aspect_ratio: builtins.bool) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_file_at_size(filename: builtins.str, width: builtins.int, height: builtins.int) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_inline(data: builtins.bytes, copy_pixels: builtins.bool) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_resource(resource_path: builtins.str) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_resource_at_scale(resource_path: builtins.str, width: builtins.int, height: builtins.int, preserve_aspect_ratio: builtins.bool) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_stream(stream: Gio.InputStream, cancellable: typing.Optional[Gio.Cancellable]) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_stream_async(stream: Gio.InputStream, cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def new_from_stream_at_scale(stream: Gio.InputStream, width: builtins.int, height: builtins.int, preserve_aspect_ratio: builtins.bool, cancellable: typing.Optional[Gio.Cancellable]) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_stream_at_scale_async(stream: Gio.InputStream, width: builtins.int, height: builtins.int, preserve_aspect_ratio: builtins.bool, cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def new_from_stream_finish(async_result: Gio.AsyncResult) -> Pixbuf: ...
+
+ @staticmethod
+ def new_from_xpm_data(data: typing.Sequence[builtins.str]) -> Pixbuf: ...
+
+ def new_subpixbuf(self, src_x: builtins.int, src_y: builtins.int, width: builtins.int, height: builtins.int) -> Pixbuf: ...
+
+ def read_pixel_bytes(self) -> GLib.Bytes: ...
+
+ def read_pixels(self) -> builtins.int: ...
+
+ def remove_option(self, key: builtins.str) -> builtins.bool: ...
+
+ def rotate_simple(self, angle: PixbufRotation) -> typing.Optional[Pixbuf]: ...
+
+ def saturate_and_pixelate(self, dest: Pixbuf, saturation: builtins.float, pixelate: builtins.bool) -> None: ...
+
+ def save_to_bufferv(self, type: builtins.str, option_keys: typing.Sequence[builtins.str], option_values: typing.Sequence[builtins.str]) -> typing.Tuple[builtins.bool, builtins.bytes]: ...
+
+ def save_to_callbackv(self, save_func: PixbufSaveFunc, user_data: typing.Optional[builtins.object], type: builtins.str, option_keys: typing.Sequence[builtins.str], option_values: typing.Sequence[builtins.str]) -> builtins.bool: ...
+
+ @staticmethod
+ def save_to_stream_finish(async_result: Gio.AsyncResult) -> builtins.bool: ...
+
+ def save_to_streamv(self, stream: Gio.OutputStream, type: builtins.str, option_keys: typing.Sequence[builtins.str], option_values: typing.Sequence[builtins.str], cancellable: typing.Optional[Gio.Cancellable]) -> builtins.bool: ...
+
+ def save_to_streamv_async(self, stream: Gio.OutputStream, type: builtins.str, option_keys: typing.Sequence[builtins.str], option_values: typing.Sequence[builtins.str], cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def savev(self, filename: builtins.str, type: builtins.str, option_keys: typing.Sequence[builtins.str], option_values: typing.Sequence[builtins.str]) -> builtins.bool: ...
+
+ def scale(self, dest: Pixbuf, dest_x: builtins.int, dest_y: builtins.int, dest_width: builtins.int, dest_height: builtins.int, offset_x: builtins.float, offset_y: builtins.float, scale_x: builtins.float, scale_y: builtins.float, interp_type: InterpType) -> None: ...
+
+ def scale_simple(self, dest_width: builtins.int, dest_height: builtins.int, interp_type: InterpType) -> typing.Optional[Pixbuf]: ...
+
+ def set_option(self, key: builtins.str, value: builtins.str) -> builtins.bool: ...
+
+
+class PixbufAnimation(GObject.Object):
+
+ def get_height(self) -> builtins.int: ...
+
+ def get_iter(self, start_time: typing.Optional[GLib.TimeVal]) -> PixbufAnimationIter: ...
+
+ def get_static_image(self) -> Pixbuf: ...
+
+ def get_width(self) -> builtins.int: ...
+
+ def is_static_image(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new_from_file(filename: builtins.str) -> PixbufAnimation: ...
+
+ @staticmethod
+ def new_from_resource(resource_path: builtins.str) -> PixbufAnimation: ...
+
+ @staticmethod
+ def new_from_stream(stream: Gio.InputStream, cancellable: typing.Optional[Gio.Cancellable]) -> PixbufAnimation: ...
+
+ @staticmethod
+ def new_from_stream_async(stream: Gio.InputStream, cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def new_from_stream_finish(async_result: Gio.AsyncResult) -> PixbufAnimation: ...
+
+
+class PixbufAnimationIter(GObject.Object):
+
+ def advance(self, current_time: typing.Optional[GLib.TimeVal]) -> builtins.bool: ...
+
+ def get_delay_time(self) -> builtins.int: ...
+
+ def get_pixbuf(self) -> Pixbuf: ...
+
+ def on_currently_loading_frame(self) -> builtins.bool: ...
+
+
+class PixbufLoader(GObject.Object):
+ parent_instance: GObject.Object
+ priv: builtins.object
+
+ def close(self) -> builtins.bool: ...
+
+ def get_animation(self) -> PixbufAnimation: ...
+
+ def get_format(self) -> typing.Optional[PixbufFormat]: ...
+
+ def get_pixbuf(self) -> Pixbuf: ...
+
+ @staticmethod
+ def new(**kwargs) -> PixbufLoader: ... # type: ignore
+
+ @staticmethod
+ def new_with_mime_type(mime_type: builtins.str) -> PixbufLoader: ...
+
+ @staticmethod
+ def new_with_type(image_type: builtins.str) -> PixbufLoader: ...
+
+ def set_size(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def write(self, buf: builtins.bytes) -> builtins.bool: ...
+
+ def write_bytes(self, buffer: GLib.Bytes) -> builtins.bool: ...
+
+ def do_area_prepared(self) -> None: ...
+
+ def do_area_updated(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_closed(self) -> None: ...
+
+ def do_size_prepared(self, width: builtins.int, height: builtins.int) -> None: ...
+
+
+class PixbufSimpleAnim(PixbufAnimation):
+
+ def add_frame(self, pixbuf: Pixbuf) -> None: ...
+
+ def get_loop(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(width: builtins.int, height: builtins.int, rate: builtins.float) -> PixbufSimpleAnim: ...
+
+ def set_loop(self, loop: builtins.bool) -> None: ...
+
+
+class PixbufSimpleAnimIter(PixbufAnimationIter):
+ ...
+
+
+class PixbufFormat():
+
+ def copy(self) -> PixbufFormat: ...
+
+ def free(self) -> None: ...
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_extensions(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_license(self) -> builtins.str: ...
+
+ def get_mime_types(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def is_disabled(self) -> builtins.bool: ...
+
+ def is_save_option_supported(self, option_key: builtins.str) -> builtins.bool: ...
+
+ def is_scalable(self) -> builtins.bool: ...
+
+ def is_writable(self) -> builtins.bool: ...
+
+ def set_disabled(self, disabled: builtins.bool) -> None: ...
+
+
+class Colorspace(GObject.GEnum, builtins.int):
+ RGB = ... # type: Colorspace
+
+
+class InterpType(GObject.GEnum, builtins.int):
+ BILINEAR = ... # type: InterpType
+ HYPER = ... # type: InterpType
+ NEAREST = ... # type: InterpType
+ TILES = ... # type: InterpType
+
+
+class PixbufAlphaMode(GObject.GEnum, builtins.int):
+ BILEVEL = ... # type: PixbufAlphaMode
+ FULL = ... # type: PixbufAlphaMode
+
+
+class PixbufError(GObject.GEnum, builtins.int):
+ BAD_OPTION = ... # type: PixbufError
+ CORRUPT_IMAGE = ... # type: PixbufError
+ FAILED = ... # type: PixbufError
+ INCOMPLETE_ANIMATION = ... # type: PixbufError
+ INSUFFICIENT_MEMORY = ... # type: PixbufError
+ UNKNOWN_TYPE = ... # type: PixbufError
+ UNSUPPORTED_OPERATION = ... # type: PixbufError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class PixbufRotation(GObject.GEnum, builtins.int):
+ CLOCKWISE = ... # type: PixbufRotation
+ COUNTERCLOCKWISE = ... # type: PixbufRotation
+ NONE = ... # type: PixbufRotation
+ UPSIDEDOWN = ... # type: PixbufRotation
+
+
+PixbufDestroyNotify = typing.Callable[[builtins.bytes, typing.Optional[builtins.object]], None]
+PixbufSaveFunc = typing.Callable[[builtins.bytes, typing.Optional[builtins.object]], typing.Tuple[builtins.bool, GLib.Error]]
+
+
+def pixbuf_error_quark() -> builtins.int: ...
+
+
+PIXBUF_FEATURES_H: builtins.int
+PIXBUF_MAJOR: builtins.int
+PIXBUF_MICRO: builtins.int
+PIXBUF_MINOR: builtins.int
+PIXBUF_VERSION: builtins.str
diff --git a/stubs/gi/repository/GdkX11.pyi b/stubs/gi/repository/GdkX11.pyi
new file mode 100644
index 000000000..fbfcec16b
--- /dev/null
+++ b/stubs/gi/repository/GdkX11.pyi
@@ -0,0 +1,216 @@
+import builtins
+import typing
+
+from gi.repository import Gdk
+from gi.repository import GdkPixbuf
+from gi.repository import Gio
+from gi.repository import Pango
+from gi.repository import cairo
+from gi.repository import xlib
+
+
+class X11AppLaunchContext(Gdk.AppLaunchContext):
+ ...
+
+
+class X11Cursor(Gdk.Cursor):
+
+ def get_xcursor(self) -> builtins.int: ...
+
+ def get_xdisplay(self) -> xlib.Display: ...
+
+
+class X11DeviceCore(Gdk.Device):
+ ...
+
+
+class X11DeviceManagerCore(Gdk.DeviceManager):
+ ...
+
+
+class X11DeviceXI2(Gdk.Device):
+ ...
+
+
+class X11Display(Gdk.Display):
+
+ def error_trap_pop(self) -> builtins.int: ...
+
+ def error_trap_pop_ignored(self) -> None: ...
+
+ def error_trap_push(self) -> None: ...
+
+ @staticmethod
+ def get_glx_version(display: Gdk.Display) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def get_startup_notification_id(self) -> builtins.str: ...
+
+ def get_user_time(self) -> builtins.int: ...
+
+ def get_xdisplay(self) -> xlib.Display: ...
+
+ def grab(self) -> None: ...
+
+ def set_cursor_theme(self, theme: typing.Optional[builtins.str], size: builtins.int) -> None: ...
+
+ def set_startup_notification_id(self, startup_id: builtins.str) -> None: ...
+
+ def set_window_scale(self, scale: builtins.int) -> None: ...
+
+ def string_to_compound_text(self, str: builtins.str) -> typing.Tuple[builtins.int, Gdk.Atom, builtins.int, builtins.bytes]: ...
+
+ def text_property_to_text_list(self, encoding: Gdk.Atom, format: builtins.int, text: builtins.int, length: builtins.int, list: builtins.str) -> builtins.int: ...
+
+ def ungrab(self) -> None: ...
+
+ def utf8_to_compound_text(self, str: builtins.str) -> typing.Tuple[builtins.bool, Gdk.Atom, builtins.int, builtins.bytes]: ...
+
+
+class X11DisplayManager(Gdk.DisplayManager):
+ ...
+
+
+class X11DragContext(Gdk.DragContext):
+ ...
+
+
+class X11GLContext(Gdk.GLContext):
+ ...
+
+
+class X11Keymap(Gdk.Keymap):
+
+ def get_group_for_state(self, state: builtins.int) -> builtins.int: ...
+
+ def key_is_modifier(self, keycode: builtins.int) -> builtins.bool: ...
+
+
+class X11Monitor(Gdk.Monitor):
+
+ @staticmethod
+ def get_output(monitor: Gdk.Monitor) -> builtins.int: ...
+
+
+class X11Screen(Gdk.Screen):
+
+ def get_current_desktop(self) -> builtins.int: ...
+
+ def get_monitor_output(self, monitor_num: builtins.int) -> builtins.int: ...
+
+ def get_number_of_desktops(self) -> builtins.int: ...
+
+ def get_screen_number(self) -> builtins.int: ...
+
+ def get_window_manager_name(self) -> builtins.str: ...
+
+ def get_xscreen(self) -> xlib.Screen: ...
+
+ def lookup_visual(self, xvisualid: builtins.int) -> X11Visual: ...
+
+ def supports_net_wm_hint(self, property: Gdk.Atom) -> builtins.bool: ...
+
+
+class X11Visual(Gdk.Visual):
+
+ def get_xvisual(self) -> xlib.Visual: ...
+
+
+class X11Window(Gdk.Window):
+
+ @staticmethod
+ def foreign_new_for_display(display: X11Display, window: builtins.int) -> Gdk.Window: ...
+
+ def get_desktop(self) -> builtins.int: ...
+
+ def get_xid(self) -> builtins.int: ...
+
+ @staticmethod
+ def lookup_for_display(display: X11Display, window: builtins.int) -> X11Window: ...
+
+ def move_to_current_desktop(self) -> None: ...
+
+ def move_to_desktop(self, desktop: builtins.int) -> None: ...
+
+ def set_frame_extents(self, left: builtins.int, right: builtins.int, top: builtins.int, bottom: builtins.int) -> None: ...
+
+ def set_frame_sync_enabled(self, frame_sync_enabled: builtins.bool) -> None: ...
+
+ def set_hide_titlebar_when_maximized(self, hide_titlebar_when_maximized: builtins.bool) -> None: ...
+
+ def set_theme_variant(self, variant: builtins.str) -> None: ...
+
+ def set_user_time(self, timestamp: builtins.int) -> None: ...
+
+ def set_utf8_property(self, name: builtins.str, value: typing.Optional[builtins.str]) -> None: ...
+
+
+class X11DeviceManagerXI2(X11DeviceManagerCore):
+ ...
+
+
+def x11_atom_to_xatom(atom: Gdk.Atom) -> builtins.int: ...
+
+
+def x11_atom_to_xatom_for_display(display: X11Display, atom: Gdk.Atom) -> builtins.int: ...
+
+
+def x11_device_get_id(device: X11DeviceCore) -> builtins.int: ...
+
+
+def x11_device_manager_lookup(device_manager: X11DeviceManagerCore, device_id: builtins.int) -> typing.Optional[X11DeviceCore]: ...
+
+
+def x11_free_compound_text(ctext: builtins.int) -> None: ...
+
+
+def x11_free_text_list(list: builtins.str) -> None: ...
+
+
+def x11_get_default_root_xwindow() -> builtins.int: ...
+
+
+def x11_get_default_screen() -> builtins.int: ...
+
+
+def x11_get_default_xdisplay() -> xlib.Display: ...
+
+
+def x11_get_parent_relative_pattern() -> cairo.Pattern: ...
+
+
+def x11_get_server_time(window: X11Window) -> builtins.int: ...
+
+
+def x11_get_xatom_by_name(atom_name: builtins.str) -> builtins.int: ...
+
+
+def x11_get_xatom_by_name_for_display(display: X11Display, atom_name: builtins.str) -> builtins.int: ...
+
+
+def x11_get_xatom_name(xatom: builtins.int) -> builtins.str: ...
+
+
+def x11_get_xatom_name_for_display(display: X11Display, xatom: builtins.int) -> builtins.str: ...
+
+
+def x11_grab_server() -> None: ...
+
+
+def x11_lookup_xdisplay(xdisplay: xlib.Display) -> X11Display: ...
+
+
+def x11_register_standard_event_type(display: X11Display, event_base: builtins.int, n_events: builtins.int) -> None: ...
+
+
+def x11_set_sm_client_id(sm_client_id: typing.Optional[builtins.str]) -> None: ...
+
+
+def x11_ungrab_server() -> None: ...
+
+
+def x11_xatom_to_atom(xatom: builtins.int) -> Gdk.Atom: ...
+
+
+def x11_xatom_to_atom_for_display(display: X11Display, xatom: builtins.int) -> Gdk.Atom: ...
+
+
diff --git a/stubs/gi/repository/Gio.pyi b/stubs/gi/repository/Gio.pyi
new file mode 100644
index 000000000..cf322c9aa
--- /dev/null
+++ b/stubs/gi/repository/Gio.pyi
@@ -0,0 +1,6453 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+from gi.repository import GObject
+
+
+class Action(GObject.GInterface):
+
+ def activate(self, parameter: typing.Optional[GLib.Variant]) -> None: ...
+
+ def change_state(self, value: GLib.Variant) -> None: ...
+
+ def get_enabled(self) -> builtins.bool: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_parameter_type(self) -> typing.Optional[GLib.VariantType]: ...
+
+ def get_state(self) -> GLib.Variant: ...
+
+ def get_state_hint(self) -> typing.Optional[GLib.Variant]: ...
+
+ def get_state_type(self) -> typing.Optional[GLib.VariantType]: ...
+
+ @staticmethod
+ def name_is_valid(action_name: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def parse_detailed_name(detailed_name: builtins.str) -> typing.Tuple[builtins.bool, builtins.str, GLib.Variant]: ...
+
+ @staticmethod
+ def print_detailed_name(action_name: builtins.str, target_value: typing.Optional[GLib.Variant]) -> builtins.str: ...
+
+ def do_activate(self, parameter: typing.Optional[GLib.Variant]) -> None: ...
+
+ def do_change_state(self, value: GLib.Variant) -> None: ...
+
+ def do_get_enabled(self) -> builtins.bool: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_get_parameter_type(self) -> typing.Optional[GLib.VariantType]: ...
+
+ def do_get_state(self) -> GLib.Variant: ...
+
+ def do_get_state_hint(self) -> typing.Optional[GLib.Variant]: ...
+
+ def do_get_state_type(self) -> typing.Optional[GLib.VariantType]: ...
+
+
+class ActionGroup(GObject.GInterface):
+
+ def action_added(self, action_name: builtins.str) -> None: ...
+
+ def action_enabled_changed(self, action_name: builtins.str, enabled: builtins.bool) -> None: ...
+
+ def action_removed(self, action_name: builtins.str) -> None: ...
+
+ def action_state_changed(self, action_name: builtins.str, state: GLib.Variant) -> None: ...
+
+ def activate_action(self, action_name: builtins.str, parameter: typing.Optional[GLib.Variant]) -> None: ...
+
+ def change_action_state(self, action_name: builtins.str, value: GLib.Variant) -> None: ...
+
+ def get_action_enabled(self, action_name: builtins.str) -> builtins.bool: ...
+
+ def get_action_parameter_type(self, action_name: builtins.str) -> typing.Optional[GLib.VariantType]: ...
+
+ def get_action_state(self, action_name: builtins.str) -> typing.Optional[GLib.Variant]: ...
+
+ def get_action_state_hint(self, action_name: builtins.str) -> typing.Optional[GLib.Variant]: ...
+
+ def get_action_state_type(self, action_name: builtins.str) -> typing.Optional[GLib.VariantType]: ...
+
+ def has_action(self, action_name: builtins.str) -> builtins.bool: ...
+
+ def list_actions(self) -> typing.Sequence[builtins.str]: ...
+
+ def query_action(self, action_name: builtins.str) -> typing.Tuple[builtins.bool, builtins.bool, GLib.VariantType, GLib.VariantType, GLib.Variant, GLib.Variant]: ...
+
+ def do_action_added(self, action_name: builtins.str) -> None: ...
+
+ def do_action_enabled_changed(self, action_name: builtins.str, enabled: builtins.bool) -> None: ...
+
+ def do_action_removed(self, action_name: builtins.str) -> None: ...
+
+ def do_action_state_changed(self, action_name: builtins.str, state: GLib.Variant) -> None: ...
+
+ def do_activate_action(self, action_name: builtins.str, parameter: typing.Optional[GLib.Variant]) -> None: ...
+
+ def do_change_action_state(self, action_name: builtins.str, value: GLib.Variant) -> None: ...
+
+ def do_get_action_enabled(self, action_name: builtins.str) -> builtins.bool: ...
+
+ def do_get_action_parameter_type(self, action_name: builtins.str) -> typing.Optional[GLib.VariantType]: ...
+
+ def do_get_action_state(self, action_name: builtins.str) -> typing.Optional[GLib.Variant]: ...
+
+ def do_get_action_state_hint(self, action_name: builtins.str) -> typing.Optional[GLib.Variant]: ...
+
+ def do_get_action_state_type(self, action_name: builtins.str) -> typing.Optional[GLib.VariantType]: ...
+
+ def do_has_action(self, action_name: builtins.str) -> builtins.bool: ...
+
+ def do_list_actions(self) -> typing.Sequence[builtins.str]: ...
+
+ def do_query_action(self, action_name: builtins.str) -> typing.Tuple[builtins.bool, builtins.bool, GLib.VariantType, GLib.VariantType, GLib.Variant, GLib.Variant]: ...
+
+
+class ActionMap(GObject.GInterface):
+
+ def add_action(self, action: Action) -> None: ...
+
+ def add_action_entries(self, entries: typing.Sequence[ActionEntry], user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_action(self, action_name: builtins.str) -> Action: ...
+
+ def remove_action(self, action_name: builtins.str) -> None: ...
+
+ def do_add_action(self, action: Action) -> None: ...
+
+ def do_lookup_action(self, action_name: builtins.str) -> Action: ...
+
+ def do_remove_action(self, action_name: builtins.str) -> None: ...
+
+
+class AppInfo(GObject.GInterface):
+
+ def add_supports_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ def can_delete(self) -> builtins.bool: ...
+
+ def can_remove_supports_type(self) -> builtins.bool: ...
+
+ @staticmethod
+ def create_from_commandline(commandline: builtins.str, application_name: typing.Optional[builtins.str], flags: AppInfoCreateFlags) -> AppInfo: ...
+
+ def delete(self) -> builtins.bool: ...
+
+ def dup(self) -> AppInfo: ...
+
+ def equal(self, appinfo2: AppInfo) -> builtins.bool: ...
+
+ @staticmethod
+ def get_all() -> typing.Sequence[AppInfo]: ...
+
+ @staticmethod
+ def get_all_for_type(content_type: builtins.str) -> typing.Sequence[AppInfo]: ...
+
+ def get_commandline(self) -> builtins.str: ...
+
+ @staticmethod
+ def get_default_for_type(content_type: builtins.str, must_support_uris: builtins.bool) -> AppInfo: ...
+
+ @staticmethod
+ def get_default_for_uri_scheme(uri_scheme: builtins.str) -> AppInfo: ...
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_display_name(self) -> builtins.str: ...
+
+ def get_executable(self) -> builtins.str: ...
+
+ @staticmethod
+ def get_fallback_for_type(content_type: builtins.str) -> typing.Sequence[AppInfo]: ...
+
+ def get_icon(self) -> Icon: ...
+
+ def get_id(self) -> builtins.str: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ @staticmethod
+ def get_recommended_for_type(content_type: builtins.str) -> typing.Sequence[AppInfo]: ...
+
+ def get_supported_types(self) -> typing.Sequence[builtins.str]: ...
+
+ def launch(self, files: typing.Optional[typing.Sequence[File]], context: typing.Optional[AppLaunchContext]) -> builtins.bool: ...
+
+ @staticmethod
+ def launch_default_for_uri(uri: builtins.str, context: typing.Optional[AppLaunchContext]) -> builtins.bool: ...
+
+ @staticmethod
+ def launch_default_for_uri_async(uri: builtins.str, context: typing.Optional[AppLaunchContext], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def launch_default_for_uri_finish(result: AsyncResult) -> builtins.bool: ...
+
+ def launch_uris(self, uris: typing.Optional[typing.Sequence[builtins.str]], context: typing.Optional[AppLaunchContext]) -> builtins.bool: ...
+
+ def launch_uris_async(self, uris: typing.Optional[typing.Sequence[builtins.str]], context: typing.Optional[AppLaunchContext], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def launch_uris_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def remove_supports_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def reset_type_associations(content_type: builtins.str) -> None: ...
+
+ def set_as_default_for_extension(self, extension: builtins.str) -> builtins.bool: ...
+
+ def set_as_default_for_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ def set_as_last_used_for_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ def should_show(self) -> builtins.bool: ...
+
+ def supports_files(self) -> builtins.bool: ...
+
+ def supports_uris(self) -> builtins.bool: ...
+
+ def do_add_supports_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ def do_can_delete(self) -> builtins.bool: ...
+
+ def do_can_remove_supports_type(self) -> builtins.bool: ...
+
+ def do_do_delete(self) -> builtins.bool: ...
+
+ def do_dup(self) -> AppInfo: ...
+
+ def do_equal(self, appinfo2: AppInfo) -> builtins.bool: ...
+
+ def do_get_commandline(self) -> builtins.str: ...
+
+ def do_get_description(self) -> builtins.str: ...
+
+ def do_get_display_name(self) -> builtins.str: ...
+
+ def do_get_executable(self) -> builtins.str: ...
+
+ def do_get_icon(self) -> Icon: ...
+
+ def do_get_id(self) -> builtins.str: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_get_supported_types(self) -> typing.Sequence[builtins.str]: ...
+
+ def do_launch(self, files: typing.Optional[typing.Sequence[File]], context: typing.Optional[AppLaunchContext]) -> builtins.bool: ...
+
+ def do_launch_uris(self, uris: typing.Optional[typing.Sequence[builtins.str]], context: typing.Optional[AppLaunchContext]) -> builtins.bool: ...
+
+ def do_launch_uris_async(self, uris: typing.Optional[typing.Sequence[builtins.str]], context: typing.Optional[AppLaunchContext], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_launch_uris_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_remove_supports_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ def do_set_as_default_for_extension(self, extension: builtins.str) -> builtins.bool: ...
+
+ def do_set_as_default_for_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ def do_set_as_last_used_for_type(self, content_type: builtins.str) -> builtins.bool: ...
+
+ def do_should_show(self) -> builtins.bool: ...
+
+ def do_supports_files(self) -> builtins.bool: ...
+
+ def do_supports_uris(self) -> builtins.bool: ...
+
+
+class AppInfoMonitor(GObject.Object):
+
+ @staticmethod
+ def get() -> AppInfoMonitor: ...
+
+
+class AppLaunchContext(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_display(self, info: AppInfo, files: typing.Sequence[File]) -> builtins.str: ...
+
+ def get_environment(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_startup_notify_id(self, info: AppInfo, files: typing.Sequence[File]) -> builtins.str: ...
+
+ def launch_failed(self, startup_notify_id: builtins.str) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> AppLaunchContext: ... # type: ignore
+
+ def setenv(self, variable: builtins.str, value: builtins.str) -> None: ...
+
+ def unsetenv(self, variable: builtins.str) -> None: ...
+
+ def do_get_display(self, info: AppInfo, files: typing.Sequence[File]) -> builtins.str: ...
+
+ def do_get_startup_notify_id(self, info: AppInfo, files: typing.Sequence[File]) -> builtins.str: ...
+
+ def do_launch_failed(self, startup_notify_id: builtins.str) -> None: ...
+
+ def do_launched(self, info: AppInfo, platform_data: GLib.Variant) -> None: ...
+
+
+class ApplicationCommandLine(GObject.Object):
+ parent_instance: GObject.Object
+
+ def create_file_for_arg(self, arg: builtins.str) -> File: ...
+
+ def get_arguments(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_cwd(self) -> typing.Optional[builtins.str]: ...
+
+ def get_environ(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_exit_status(self) -> builtins.int: ...
+
+ def get_is_remote(self) -> builtins.bool: ...
+
+ def get_options_dict(self) -> GLib.VariantDict: ...
+
+ def get_platform_data(self) -> typing.Optional[GLib.Variant]: ...
+
+ def get_stdin(self) -> InputStream: ...
+
+ def getenv(self, name: builtins.str) -> builtins.str: ...
+
+ def set_exit_status(self, exit_status: builtins.int) -> None: ...
+
+ def do_get_stdin(self) -> InputStream: ...
+
+ def do_print_literal(self, message: builtins.str) -> None: ...
+
+ def do_printerr_literal(self, message: builtins.str) -> None: ...
+
+
+class AsyncInitable(GObject.GInterface):
+
+ def init_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def init_finish(self, res: AsyncResult) -> builtins.bool: ...
+
+ def new_finish(self, res: AsyncResult) -> GObject.Object: ...
+
+ @staticmethod
+ def newv_async(object_type: GObject.GType, n_parameters: builtins.int, parameters: GObject.Parameter, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_init_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_init_finish(self, res: AsyncResult) -> builtins.bool: ...
+
+
+class AsyncResult(GObject.GInterface):
+
+ def get_source_object(self) -> typing.Optional[GObject.Object]: ...
+
+ def get_user_data(self) -> typing.Optional[builtins.object]: ...
+
+ def is_tagged(self, source_tag: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def legacy_propagate_error(self) -> builtins.bool: ...
+
+ def do_get_source_object(self) -> typing.Optional[GObject.Object]: ...
+
+ def do_get_user_data(self) -> typing.Optional[builtins.object]: ...
+
+ def do_is_tagged(self, source_tag: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+class Cancellable(GObject.Object):
+ parent_instance: GObject.Object
+
+ def cancel(self) -> None: ...
+
+ def connect(self, callback: GObject.Callback, *data: typing.Optional[builtins.object]) -> builtins.int: ... # type: ignore
+
+ def disconnect(self, handler_id: builtins.int) -> None: ...
+
+ @staticmethod
+ def get_current() -> typing.Optional[Cancellable]: ...
+
+ def get_fd(self) -> builtins.int: ...
+
+ def is_cancelled(self) -> builtins.bool: ...
+
+ def make_pollfd(self, pollfd: GLib.PollFD) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> Cancellable: ... # type: ignore
+
+ def pop_current(self) -> None: ...
+
+ def push_current(self) -> None: ...
+
+ def release_fd(self) -> None: ...
+
+ def reset(self) -> None: ...
+
+ def set_error_if_cancelled(self) -> builtins.bool: ...
+
+ def source_new(self) -> GLib.Source: ...
+
+ def do_cancelled(self) -> None: ...
+
+
+class Converter(GObject.GInterface):
+
+ def convert(self, inbuf: builtins.bytes, outbuf: builtins.bytes, flags: ConverterFlags) -> typing.Tuple[ConverterResult, builtins.int, builtins.int]: ...
+
+ def reset(self) -> None: ...
+
+ def do_convert(self, inbuf: typing.Optional[builtins.bytes], outbuf: typing.Optional[builtins.bytes], flags: ConverterFlags) -> typing.Tuple[ConverterResult, builtins.int, builtins.int]: ...
+
+ def do_reset(self) -> None: ...
+
+
+class Credentials(GObject.Object):
+
+ def get_unix_pid(self) -> builtins.int: ...
+
+ def get_unix_user(self) -> builtins.int: ...
+
+ def is_same_user(self, other_credentials: Credentials) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> Credentials: ... # type: ignore
+
+ def set_native(self, native_type: CredentialsType, native: builtins.object) -> None: ...
+
+ def set_unix_user(self, uid: builtins.int) -> builtins.bool: ...
+
+ def to_string(self) -> builtins.str: ...
+
+
+class DBusAuthObserver(GObject.Object):
+
+ def allow_mechanism(self, mechanism: builtins.str) -> builtins.bool: ...
+
+ def authorize_authenticated_peer(self, stream: IOStream, credentials: typing.Optional[Credentials]) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> DBusAuthObserver: ... # type: ignore
+
+
+class DBusInterface(GObject.GInterface):
+
+ def get_info(self) -> DBusInterfaceInfo: ...
+
+ def get_object(self) -> DBusObject: ...
+
+ def set_object(self, object: typing.Optional[DBusObject]) -> None: ...
+
+ def do_dup_object(self) -> DBusObject: ...
+
+ def do_get_info(self) -> DBusInterfaceInfo: ...
+
+ def do_set_object(self, object: typing.Optional[DBusObject]) -> None: ...
+
+
+class DBusMessage(GObject.Object):
+
+ @staticmethod
+ def bytes_needed(blob: builtins.bytes) -> builtins.int: ...
+
+ def copy(self) -> DBusMessage: ...
+
+ def get_arg0(self) -> builtins.str: ...
+
+ def get_body(self) -> GLib.Variant: ...
+
+ def get_byte_order(self) -> DBusMessageByteOrder: ...
+
+ def get_destination(self) -> builtins.str: ...
+
+ def get_error_name(self) -> builtins.str: ...
+
+ def get_flags(self) -> DBusMessageFlags: ...
+
+ def get_header(self, header_field: DBusMessageHeaderField) -> typing.Optional[GLib.Variant]: ...
+
+ def get_header_fields(self) -> builtins.bytes: ...
+
+ def get_interface(self) -> builtins.str: ...
+
+ def get_locked(self) -> builtins.bool: ...
+
+ def get_member(self) -> builtins.str: ...
+
+ def get_message_type(self) -> DBusMessageType: ...
+
+ def get_num_unix_fds(self) -> builtins.int: ...
+
+ def get_path(self) -> builtins.str: ...
+
+ def get_reply_serial(self) -> builtins.int: ...
+
+ def get_sender(self) -> builtins.str: ...
+
+ def get_serial(self) -> builtins.int: ...
+
+ def get_signature(self) -> builtins.str: ...
+
+ def get_unix_fd_list(self) -> UnixFDList: ...
+
+ def lock(self) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> DBusMessage: ... # type: ignore
+
+ @staticmethod
+ def new_from_blob(blob: builtins.bytes, capabilities: DBusCapabilityFlags) -> DBusMessage: ...
+
+ @staticmethod
+ def new_method_call(name: typing.Optional[builtins.str], path: builtins.str, interface_: typing.Optional[builtins.str], method: builtins.str) -> DBusMessage: ...
+
+ def new_method_error_literal(self, error_name: builtins.str, error_message: builtins.str) -> DBusMessage: ...
+
+ def new_method_reply(self) -> DBusMessage: ...
+
+ @staticmethod
+ def new_signal(path: builtins.str, interface_: builtins.str, signal: builtins.str) -> DBusMessage: ...
+
+ def print_(self, indent: builtins.int) -> builtins.str: ...
+
+ def set_body(self, body: GLib.Variant) -> None: ...
+
+ def set_byte_order(self, byte_order: DBusMessageByteOrder) -> None: ...
+
+ def set_destination(self, value: builtins.str) -> None: ...
+
+ def set_error_name(self, value: builtins.str) -> None: ...
+
+ def set_flags(self, flags: DBusMessageFlags) -> None: ...
+
+ def set_header(self, header_field: DBusMessageHeaderField, value: typing.Optional[GLib.Variant]) -> None: ...
+
+ def set_interface(self, value: builtins.str) -> None: ...
+
+ def set_member(self, value: builtins.str) -> None: ...
+
+ def set_message_type(self, type: DBusMessageType) -> None: ...
+
+ def set_num_unix_fds(self, value: builtins.int) -> None: ...
+
+ def set_path(self, value: builtins.str) -> None: ...
+
+ def set_reply_serial(self, value: builtins.int) -> None: ...
+
+ def set_sender(self, value: builtins.str) -> None: ...
+
+ def set_serial(self, serial: builtins.int) -> None: ...
+
+ def set_signature(self, value: builtins.str) -> None: ...
+
+ def set_unix_fd_list(self, fd_list: typing.Optional[UnixFDList]) -> None: ...
+
+ def to_blob(self, capabilities: DBusCapabilityFlags) -> builtins.bytes: ...
+
+ def to_gerror(self) -> builtins.bool: ...
+
+
+class DBusMethodInvocation(GObject.Object):
+
+ def get_connection(self) -> DBusConnection: ...
+
+ def get_interface_name(self) -> builtins.str: ...
+
+ def get_message(self) -> DBusMessage: ...
+
+ def get_method_info(self) -> DBusMethodInfo: ...
+
+ def get_method_name(self) -> builtins.str: ...
+
+ def get_object_path(self) -> builtins.str: ...
+
+ def get_parameters(self) -> GLib.Variant: ...
+
+ def get_property_info(self) -> DBusPropertyInfo: ...
+
+ def get_sender(self) -> builtins.str: ...
+
+ def return_dbus_error(self, error_name: builtins.str, error_message: builtins.str) -> None: ...
+
+ def return_error_literal(self, domain: builtins.int, code: builtins.int, message: builtins.str) -> None: ...
+
+ def return_gerror(self, error: GLib.Error) -> None: ...
+
+ def return_value(self, parameters: typing.Optional[GLib.Variant]) -> None: ...
+
+ def return_value_with_unix_fd_list(self, parameters: typing.Optional[GLib.Variant], fd_list: typing.Optional[UnixFDList]) -> None: ...
+
+
+class DBusObject(GObject.GInterface):
+
+ def get_interface(self, interface_name: builtins.str) -> DBusInterface: ...
+
+ def get_interfaces(self) -> typing.Sequence[DBusInterface]: ...
+
+ def get_object_path(self) -> builtins.str: ...
+
+ def do_get_interface(self, interface_name: builtins.str) -> DBusInterface: ...
+
+ def do_get_interfaces(self) -> typing.Sequence[DBusInterface]: ...
+
+ def do_get_object_path(self) -> builtins.str: ...
+
+ def do_interface_added(self, interface_: DBusInterface) -> None: ...
+
+ def do_interface_removed(self, interface_: DBusInterface) -> None: ...
+
+
+class DBusObjectManager(GObject.GInterface):
+
+ def get_interface(self, object_path: builtins.str, interface_name: builtins.str) -> DBusInterface: ...
+
+ def get_object(self, object_path: builtins.str) -> DBusObject: ...
+
+ def get_object_path(self) -> builtins.str: ...
+
+ def get_objects(self) -> typing.Sequence[DBusObject]: ...
+
+ def do_get_interface(self, object_path: builtins.str, interface_name: builtins.str) -> DBusInterface: ...
+
+ def do_get_object(self, object_path: builtins.str) -> DBusObject: ...
+
+ def do_get_object_path(self) -> builtins.str: ...
+
+ def do_get_objects(self) -> typing.Sequence[DBusObject]: ...
+
+ def do_interface_added(self, object: DBusObject, interface_: DBusInterface) -> None: ...
+
+ def do_interface_removed(self, object: DBusObject, interface_: DBusInterface) -> None: ...
+
+ def do_object_added(self, object: DBusObject) -> None: ...
+
+ def do_object_removed(self, object: DBusObject) -> None: ...
+
+
+class DatagramBased(GObject.GInterface):
+
+ def condition_check(self, condition: GLib.IOCondition) -> GLib.IOCondition: ...
+
+ def condition_wait(self, condition: GLib.IOCondition, timeout: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def create_source(self, condition: GLib.IOCondition, cancellable: typing.Optional[Cancellable]) -> GLib.Source: ...
+
+ def receive_messages(self, messages: typing.Sequence[InputMessage], flags: builtins.int, timeout: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def send_messages(self, messages: typing.Sequence[OutputMessage], flags: builtins.int, timeout: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_condition_check(self, condition: GLib.IOCondition) -> GLib.IOCondition: ...
+
+ def do_condition_wait(self, condition: GLib.IOCondition, timeout: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_create_source(self, condition: GLib.IOCondition, cancellable: typing.Optional[Cancellable]) -> GLib.Source: ...
+
+ def do_receive_messages(self, messages: typing.Sequence[InputMessage], flags: builtins.int, timeout: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_send_messages(self, messages: typing.Sequence[OutputMessage], flags: builtins.int, timeout: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+
+class DesktopAppInfoLookup(GObject.GInterface):
+
+ def get_default_for_uri_scheme(self, uri_scheme: builtins.str) -> AppInfo: ...
+
+ def do_get_default_for_uri_scheme(self, uri_scheme: builtins.str) -> AppInfo: ...
+
+
+class Drive(GObject.GInterface):
+
+ def can_eject(self) -> builtins.bool: ...
+
+ def can_poll_for_media(self) -> builtins.bool: ...
+
+ def can_start(self) -> builtins.bool: ...
+
+ def can_start_degraded(self) -> builtins.bool: ...
+
+ def can_stop(self) -> builtins.bool: ...
+
+ def eject(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def eject_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def enumerate_identifiers(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_icon(self) -> Icon: ...
+
+ def get_identifier(self, kind: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_sort_key(self) -> typing.Optional[builtins.str]: ...
+
+ def get_start_stop_type(self) -> DriveStartStopType: ...
+
+ def get_symbolic_icon(self) -> Icon: ...
+
+ def get_volumes(self) -> typing.Sequence[Volume]: ...
+
+ def has_media(self) -> builtins.bool: ...
+
+ def has_volumes(self) -> builtins.bool: ...
+
+ def is_media_check_automatic(self) -> builtins.bool: ...
+
+ def is_media_removable(self) -> builtins.bool: ...
+
+ def is_removable(self) -> builtins.bool: ...
+
+ def poll_for_media(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def poll_for_media_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def start(self, flags: DriveStartFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def start_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def stop(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def stop_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_can_eject(self) -> builtins.bool: ...
+
+ def do_can_poll_for_media(self) -> builtins.bool: ...
+
+ def do_can_start(self) -> builtins.bool: ...
+
+ def do_can_start_degraded(self) -> builtins.bool: ...
+
+ def do_can_stop(self) -> builtins.bool: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_disconnected(self) -> None: ...
+
+ def do_eject(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_button(self) -> None: ...
+
+ def do_eject_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_eject_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_enumerate_identifiers(self) -> typing.Sequence[builtins.str]: ...
+
+ def do_get_icon(self) -> Icon: ...
+
+ def do_get_identifier(self, kind: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_get_sort_key(self) -> typing.Optional[builtins.str]: ...
+
+ def do_get_start_stop_type(self) -> DriveStartStopType: ...
+
+ def do_get_symbolic_icon(self) -> Icon: ...
+
+ def do_get_volumes(self) -> typing.Sequence[Volume]: ...
+
+ def do_has_media(self) -> builtins.bool: ...
+
+ def do_has_volumes(self) -> builtins.bool: ...
+
+ def do_is_media_check_automatic(self) -> builtins.bool: ...
+
+ def do_is_media_removable(self) -> builtins.bool: ...
+
+ def do_is_removable(self) -> builtins.bool: ...
+
+ def do_poll_for_media(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_poll_for_media_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_start(self, flags: DriveStartFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_start_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_stop(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_stop_button(self) -> None: ...
+
+ def do_stop_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+
+class DtlsClientConnection(GObject.GInterface):
+
+ def get_accepted_cas(self) -> typing.Sequence[builtins.bytes]: ...
+
+ def get_server_identity(self) -> SocketConnectable: ...
+
+ def get_validation_flags(self) -> TlsCertificateFlags: ...
+
+ @staticmethod
+ def new(base_socket: DatagramBased, server_identity: typing.Optional[SocketConnectable]) -> DtlsClientConnection: ...
+
+ def set_server_identity(self, identity: SocketConnectable) -> None: ...
+
+ def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ...
+
+
+class DtlsConnection(GObject.GInterface):
+
+ def close(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def emit_accept_certificate(self, peer_cert: TlsCertificate, errors: TlsCertificateFlags) -> builtins.bool: ...
+
+ def get_certificate(self) -> TlsCertificate: ...
+
+ def get_database(self) -> TlsDatabase: ...
+
+ def get_interaction(self) -> TlsInteraction: ...
+
+ def get_negotiated_protocol(self) -> typing.Optional[builtins.str]: ...
+
+ def get_peer_certificate(self) -> TlsCertificate: ...
+
+ def get_peer_certificate_errors(self) -> TlsCertificateFlags: ...
+
+ def get_rehandshake_mode(self) -> TlsRehandshakeMode: ...
+
+ def get_require_close_notify(self) -> builtins.bool: ...
+
+ def handshake(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def handshake_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def handshake_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def set_advertised_protocols(self, protocols: typing.Optional[typing.Sequence[builtins.str]]) -> None: ...
+
+ def set_certificate(self, certificate: TlsCertificate) -> None: ...
+
+ def set_database(self, database: TlsDatabase) -> None: ...
+
+ def set_interaction(self, interaction: typing.Optional[TlsInteraction]) -> None: ...
+
+ def set_rehandshake_mode(self, mode: TlsRehandshakeMode) -> None: ...
+
+ def set_require_close_notify(self, require_close_notify: builtins.bool) -> None: ...
+
+ def shutdown(self, shutdown_read: builtins.bool, shutdown_write: builtins.bool, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def shutdown_async(self, shutdown_read: builtins.bool, shutdown_write: builtins.bool, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def shutdown_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_accept_certificate(self, peer_cert: TlsCertificate, errors: TlsCertificateFlags) -> builtins.bool: ...
+
+ def do_get_negotiated_protocol(self) -> typing.Optional[builtins.str]: ...
+
+ def do_handshake(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_handshake_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_handshake_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_set_advertised_protocols(self, protocols: typing.Optional[typing.Sequence[builtins.str]]) -> None: ...
+
+ def do_shutdown(self, shutdown_read: builtins.bool, shutdown_write: builtins.bool, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_shutdown_async(self, shutdown_read: builtins.bool, shutdown_write: builtins.bool, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_shutdown_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+
+class DtlsServerConnection(GObject.GInterface):
+
+ @staticmethod
+ def new(base_socket: DatagramBased, certificate: typing.Optional[TlsCertificate]) -> DtlsServerConnection: ...
+
+
+class File(GObject.GInterface):
+
+ def append_to(self, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileOutputStream: ...
+
+ def append_to_async(self, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def append_to_finish(self, res: AsyncResult) -> FileOutputStream: ...
+
+ def copy(self, destination: File, flags: FileCopyFlags, cancellable: typing.Optional[Cancellable], progress_callback: typing.Optional[FileProgressCallback], *progress_callback_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def copy_async(self, destination: File, flags: FileCopyFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], progress_callback: typing.Optional[FileProgressCallback], progress_callback_data: typing.Optional[builtins.object], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def copy_attributes(self, destination: File, flags: FileCopyFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def copy_finish(self, res: AsyncResult) -> builtins.bool: ...
+
+ def create(self, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileOutputStream: ...
+
+ def create_async(self, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def create_finish(self, res: AsyncResult) -> FileOutputStream: ...
+
+ def create_readwrite(self, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileIOStream: ...
+
+ def create_readwrite_async(self, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def create_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ...
+
+ def delete(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def delete_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def delete_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def dup(self) -> File: ...
+
+ def eject_mountable(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def eject_mountable_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_mountable_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def enumerate_children(self, attributes: builtins.str, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> FileEnumerator: ...
+
+ def enumerate_children_async(self, attributes: builtins.str, flags: FileQueryInfoFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def enumerate_children_finish(self, res: AsyncResult) -> FileEnumerator: ...
+
+ def equal(self, file2: File) -> builtins.bool: ...
+
+ def find_enclosing_mount(self, cancellable: typing.Optional[Cancellable]) -> Mount: ...
+
+ def find_enclosing_mount_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def find_enclosing_mount_finish(self, res: AsyncResult) -> Mount: ...
+
+ def get_basename(self) -> typing.Optional[builtins.str]: ...
+
+ def get_child(self, name: builtins.str) -> File: ...
+
+ def get_child_for_display_name(self, display_name: builtins.str) -> File: ...
+
+ def get_parent(self) -> typing.Optional[File]: ...
+
+ def get_parse_name(self) -> builtins.str: ...
+
+ def get_path(self) -> typing.Optional[builtins.str]: ...
+
+ def get_relative_path(self, descendant: File) -> typing.Optional[builtins.str]: ...
+
+ def get_uri(self) -> builtins.str: ...
+
+ def get_uri_scheme(self) -> builtins.str: ...
+
+ def has_parent(self, parent: typing.Optional[File]) -> builtins.bool: ...
+
+ def has_prefix(self, prefix: File) -> builtins.bool: ...
+
+ def has_uri_scheme(self, uri_scheme: builtins.str) -> builtins.bool: ...
+
+ def hash(self) -> builtins.int: ...
+
+ def is_native(self) -> builtins.bool: ...
+
+ def load_bytes(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[GLib.Bytes, typing.Optional[builtins.str]]: ...
+
+ def load_bytes_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def load_bytes_finish(self, result: AsyncResult) -> typing.Tuple[GLib.Bytes, typing.Optional[builtins.str]]: ...
+
+ def load_contents(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.bytes, builtins.str]: ...
+
+ def load_contents_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def load_contents_finish(self, res: AsyncResult) -> typing.Tuple[builtins.bool, builtins.bytes, builtins.str]: ...
+
+ def load_partial_contents_finish(self, res: AsyncResult) -> typing.Tuple[builtins.bool, builtins.bytes, builtins.str]: ...
+
+ def make_directory(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def make_directory_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def make_directory_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def make_directory_with_parents(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def make_symbolic_link(self, symlink_value: builtins.str, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def measure_disk_usage_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, builtins.int]: ...
+
+ def monitor(self, flags: FileMonitorFlags, cancellable: typing.Optional[Cancellable]) -> FileMonitor: ...
+
+ def monitor_directory(self, flags: FileMonitorFlags, cancellable: typing.Optional[Cancellable]) -> FileMonitor: ...
+
+ def monitor_file(self, flags: FileMonitorFlags, cancellable: typing.Optional[Cancellable] = None) -> FileMonitor: ...
+
+ def mount_enclosing_volume(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def mount_enclosing_volume_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def mount_mountable(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def mount_mountable_finish(self, result: AsyncResult) -> File: ...
+
+ def move(self, destination: File, flags: FileCopyFlags, cancellable: typing.Optional[Cancellable], progress_callback: typing.Optional[FileProgressCallback], *progress_callback_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def new_for_commandline_arg(arg: builtins.str) -> File: ...
+
+ @staticmethod
+ def new_for_commandline_arg_and_cwd(arg: builtins.str, cwd: builtins.str) -> File: ...
+
+ @staticmethod
+ def new_for_path(path: builtins.str) -> File: ...
+
+ @staticmethod
+ def new_for_uri(uri: builtins.str) -> File: ...
+
+ @staticmethod
+ def new_tmp(tmpl: typing.Optional[builtins.str]) -> typing.Tuple[File, FileIOStream]: ...
+
+ def open_readwrite(self, cancellable: typing.Optional[Cancellable]) -> FileIOStream: ...
+
+ def open_readwrite_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def open_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ...
+
+ @staticmethod
+ def parse_name(parse_name: builtins.str) -> File: ...
+
+ def peek_path(self) -> typing.Optional[builtins.str]: ...
+
+ def poll_mountable(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def poll_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def query_default_handler(self, cancellable: typing.Optional[Cancellable]) -> AppInfo: ...
+
+ def query_default_handler_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def query_default_handler_finish(self, result: AsyncResult) -> AppInfo: ...
+
+ def query_exists(self, cancellable: typing.Optional[Cancellable] = None) -> builtins.bool: ...
+
+ def query_file_type(self, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> FileType: ...
+
+ def query_filesystem_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def query_filesystem_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def query_filesystem_info_finish(self, res: AsyncResult) -> FileInfo: ...
+
+ def query_info(self, attributes: builtins.str, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable] = None) -> FileInfo: ...
+
+ def query_info_async(self, attributes: builtins.str, flags: FileQueryInfoFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def query_info_finish(self, res: AsyncResult) -> FileInfo: ...
+
+ def query_settable_attributes(self, cancellable: typing.Optional[Cancellable]) -> FileAttributeInfoList: ...
+
+ def query_writable_namespaces(self, cancellable: typing.Optional[Cancellable]) -> FileAttributeInfoList: ...
+
+ def read(self, cancellable: typing.Optional[Cancellable]) -> FileInputStream: ...
+
+ def read_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def read_finish(self, res: AsyncResult) -> FileInputStream: ...
+
+ def replace(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileOutputStream: ...
+
+ def replace_async(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def replace_contents(self, contents: builtins.bytes, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+ def replace_contents_async(self, contents: builtins.bytes, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def replace_contents_bytes_async(self, contents: GLib.Bytes, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def replace_contents_finish(self, res: AsyncResult) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+ def replace_finish(self, res: AsyncResult) -> FileOutputStream: ...
+
+ def replace_readwrite(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileIOStream: ...
+
+ def replace_readwrite_async(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def replace_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ...
+
+ def resolve_relative_path(self, relative_path: builtins.str) -> File: ...
+
+ def set_attribute(self, attribute: builtins.str, type: FileAttributeType, value_p: typing.Optional[builtins.object], flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_attribute_byte_string(self, attribute: builtins.str, value: builtins.str, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_attribute_int32(self, attribute: builtins.str, value: builtins.int, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_attribute_int64(self, attribute: builtins.str, value: builtins.int, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_attribute_string(self, attribute: builtins.str, value: builtins.str, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_attribute_uint32(self, attribute: builtins.str, value: builtins.int, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_attribute_uint64(self, attribute: builtins.str, value: builtins.int, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_attributes_async(self, info: FileInfo, flags: FileQueryInfoFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_attributes_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, FileInfo]: ...
+
+ def set_attributes_from_info(self, info: FileInfo, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_display_name(self, display_name: builtins.str, cancellable: typing.Optional[Cancellable]) -> File: ...
+
+ def set_display_name_async(self, display_name: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_display_name_finish(self, res: AsyncResult) -> File: ...
+
+ def start_mountable(self, flags: DriveStartFlags, start_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def start_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def stop_mountable(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def stop_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def supports_thread_contexts(self) -> builtins.bool: ...
+
+ def trash(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def trash_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def trash_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def unmount_mountable(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def unmount_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def unmount_mountable_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def unmount_mountable_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_append_to(self, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileOutputStream: ...
+
+ def do_append_to_async(self, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_append_to_finish(self, res: AsyncResult) -> FileOutputStream: ...
+
+ def do_copy(self, destination: File, flags: FileCopyFlags, cancellable: typing.Optional[Cancellable], progress_callback: typing.Optional[FileProgressCallback], progress_callback_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def do_copy_async(self, destination: File, flags: FileCopyFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], progress_callback: typing.Optional[FileProgressCallback], progress_callback_data: typing.Optional[builtins.object], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_copy_finish(self, res: AsyncResult) -> builtins.bool: ...
+
+ def do_create(self, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileOutputStream: ...
+
+ def do_create_async(self, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_create_finish(self, res: AsyncResult) -> FileOutputStream: ...
+
+ def do_create_readwrite(self, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileIOStream: ...
+
+ def do_create_readwrite_async(self, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_create_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ...
+
+ def do_delete_file(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_delete_file_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_delete_file_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_dup(self) -> File: ...
+
+ def do_eject_mountable(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_eject_mountable_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_mountable_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_enumerate_children(self, attributes: builtins.str, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> FileEnumerator: ...
+
+ def do_enumerate_children_async(self, attributes: builtins.str, flags: FileQueryInfoFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_enumerate_children_finish(self, res: AsyncResult) -> FileEnumerator: ...
+
+ def do_equal(self, file2: File) -> builtins.bool: ...
+
+ def do_find_enclosing_mount(self, cancellable: typing.Optional[Cancellable]) -> Mount: ...
+
+ def do_find_enclosing_mount_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_find_enclosing_mount_finish(self, res: AsyncResult) -> Mount: ...
+
+ def do_get_basename(self) -> builtins.str: ...
+
+ def do_get_child_for_display_name(self, display_name: builtins.str) -> File: ...
+
+ def do_get_parent(self) -> typing.Optional[File]: ...
+
+ def do_get_parse_name(self) -> builtins.str: ...
+
+ def do_get_path(self) -> builtins.str: ...
+
+ def do_get_relative_path(self, descendant: File) -> builtins.str: ...
+
+ def do_get_uri(self) -> builtins.str: ...
+
+ def do_get_uri_scheme(self) -> builtins.str: ...
+
+ def do_has_uri_scheme(self, uri_scheme: builtins.str) -> builtins.bool: ...
+
+ def do_hash(self) -> builtins.int: ...
+
+ def do_is_native(self) -> builtins.bool: ...
+
+ def do_make_directory(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_make_directory_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_make_directory_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_make_symbolic_link(self, symlink_value: builtins.str, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_measure_disk_usage_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, builtins.int]: ...
+
+ def do_monitor_dir(self, flags: FileMonitorFlags, cancellable: typing.Optional[Cancellable]) -> FileMonitor: ...
+
+ def do_monitor_file(self, flags: FileMonitorFlags, cancellable: typing.Optional[Cancellable]) -> FileMonitor: ...
+
+ def do_mount_enclosing_volume(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_mount_enclosing_volume_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_mount_mountable(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_mount_mountable_finish(self, result: AsyncResult) -> File: ...
+
+ def do_move(self, destination: File, flags: FileCopyFlags, cancellable: typing.Optional[Cancellable], progress_callback: typing.Optional[FileProgressCallback], progress_callback_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def do_open_readwrite(self, cancellable: typing.Optional[Cancellable]) -> FileIOStream: ...
+
+ def do_open_readwrite_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_open_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ...
+
+ def do_poll_mountable(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_poll_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_prefix_matches(self, file: File) -> builtins.bool: ...
+
+ def do_query_filesystem_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def do_query_filesystem_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_query_filesystem_info_finish(self, res: AsyncResult) -> FileInfo: ...
+
+ def do_query_info(self, attributes: builtins.str, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def do_query_info_async(self, attributes: builtins.str, flags: FileQueryInfoFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_query_info_finish(self, res: AsyncResult) -> FileInfo: ...
+
+ def do_query_settable_attributes(self, cancellable: typing.Optional[Cancellable]) -> FileAttributeInfoList: ...
+
+ def do_query_writable_namespaces(self, cancellable: typing.Optional[Cancellable]) -> FileAttributeInfoList: ...
+
+ def do_read_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_read_finish(self, res: AsyncResult) -> FileInputStream: ...
+
+ def do_read_fn(self, cancellable: typing.Optional[Cancellable]) -> FileInputStream: ...
+
+ def do_replace(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileOutputStream: ...
+
+ def do_replace_async(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_replace_finish(self, res: AsyncResult) -> FileOutputStream: ...
+
+ def do_replace_readwrite(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, cancellable: typing.Optional[Cancellable]) -> FileIOStream: ...
+
+ def do_replace_readwrite_async(self, etag: typing.Optional[builtins.str], make_backup: builtins.bool, flags: FileCreateFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_replace_readwrite_finish(self, res: AsyncResult) -> FileIOStream: ...
+
+ def do_resolve_relative_path(self, relative_path: builtins.str) -> File: ...
+
+ def do_set_attribute(self, attribute: builtins.str, type: FileAttributeType, value_p: typing.Optional[builtins.object], flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_set_attributes_async(self, info: FileInfo, flags: FileQueryInfoFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_set_attributes_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, FileInfo]: ...
+
+ def do_set_attributes_from_info(self, info: FileInfo, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_set_display_name(self, display_name: builtins.str, cancellable: typing.Optional[Cancellable]) -> File: ...
+
+ def do_set_display_name_async(self, display_name: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_set_display_name_finish(self, res: AsyncResult) -> File: ...
+
+ def do_start_mountable(self, flags: DriveStartFlags, start_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_start_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_stop_mountable(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_stop_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_trash(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_trash_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_trash_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_unmount_mountable(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_unmount_mountable_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_unmount_mountable_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_unmount_mountable_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+
+class FileDescriptorBased(GObject.GInterface):
+
+ def get_fd(self) -> builtins.int: ...
+
+ def do_get_fd(self) -> builtins.int: ...
+
+
+class FileEnumerator(GObject.Object):
+ parent_instance: GObject.Object
+
+ def close(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def get_child(self, info: FileInfo) -> File: ...
+
+ def get_container(self) -> File: ...
+
+ def has_pending(self) -> builtins.bool: ...
+
+ def is_closed(self) -> builtins.bool: ...
+
+ def iterate(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, FileInfo, File]: ...
+
+ def next_file(self, cancellable: typing.Optional[Cancellable]) -> typing.Optional[FileInfo]: ...
+
+ def next_files_async(self, num_files: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def next_files_finish(self, result: AsyncResult) -> typing.Sequence[FileInfo]: ...
+
+ def set_pending(self, pending: builtins.bool) -> None: ...
+
+ def do_close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_close_fn(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_next_file(self, cancellable: typing.Optional[Cancellable]) -> typing.Optional[FileInfo]: ...
+
+ def do_next_files_async(self, num_files: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_next_files_finish(self, result: AsyncResult) -> typing.Sequence[FileInfo]: ...
+
+
+class FileInfo(GObject.Object):
+
+ def clear_status(self) -> None: ...
+
+ def copy_into(self, dest_info: FileInfo) -> None: ...
+
+ def dup(self) -> FileInfo: ...
+
+ def get_attribute_as_string(self, attribute: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def get_attribute_boolean(self, attribute: builtins.str) -> builtins.bool: ...
+
+ def get_attribute_byte_string(self, attribute: builtins.str) -> builtins.str: ...
+
+ def get_attribute_data(self, attribute: builtins.str) -> typing.Tuple[builtins.bool, FileAttributeType, builtins.object, FileAttributeStatus]: ...
+
+ def get_attribute_int32(self, attribute: builtins.str) -> builtins.int: ...
+
+ def get_attribute_int64(self, attribute: builtins.str) -> builtins.int: ...
+
+ def get_attribute_object(self, attribute: builtins.str) -> GObject.Object: ...
+
+ def get_attribute_status(self, attribute: builtins.str) -> FileAttributeStatus: ...
+
+ def get_attribute_string(self, attribute: builtins.str) -> builtins.str: ...
+
+ def get_attribute_stringv(self, attribute: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def get_attribute_type(self, attribute: builtins.str) -> FileAttributeType: ...
+
+ def get_attribute_uint32(self, attribute: builtins.str) -> builtins.int: ...
+
+ def get_attribute_uint64(self, attribute: builtins.str) -> builtins.int: ...
+
+ def get_content_type(self) -> builtins.str: ...
+
+ def get_deletion_date(self) -> GLib.DateTime: ...
+
+ def get_display_name(self) -> builtins.str: ...
+
+ def get_edit_name(self) -> builtins.str: ...
+
+ def get_etag(self) -> builtins.str: ...
+
+ def get_file_type(self) -> FileType: ...
+
+ def get_icon(self) -> Icon: ...
+
+ def get_is_backup(self) -> builtins.bool: ...
+
+ def get_is_hidden(self) -> builtins.bool: ...
+
+ def get_is_symlink(self) -> builtins.bool: ...
+
+ def get_modification_date_time(self) -> typing.Optional[GLib.DateTime]: ...
+
+ def get_modification_time(self) -> GLib.TimeVal: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_sort_order(self) -> builtins.int: ...
+
+ def get_symbolic_icon(self) -> Icon: ...
+
+ def get_symlink_target(self) -> builtins.str: ...
+
+ def has_attribute(self, attribute: builtins.str) -> builtins.bool: ...
+
+ def has_namespace(self, name_space: builtins.str) -> builtins.bool: ...
+
+ def list_attributes(self, name_space: typing.Optional[builtins.str]) -> typing.Optional[typing.Sequence[builtins.str]]: ...
+
+ @staticmethod
+ def new(**kwargs) -> FileInfo: ... # type: ignore
+
+ def remove_attribute(self, attribute: builtins.str) -> None: ...
+
+ def set_attribute(self, attribute: builtins.str, type: FileAttributeType, value_p: builtins.object) -> None: ...
+
+ def set_attribute_boolean(self, attribute: builtins.str, attr_value: builtins.bool) -> None: ...
+
+ def set_attribute_byte_string(self, attribute: builtins.str, attr_value: builtins.str) -> None: ...
+
+ def set_attribute_int32(self, attribute: builtins.str, attr_value: builtins.int) -> None: ...
+
+ def set_attribute_int64(self, attribute: builtins.str, attr_value: builtins.int) -> None: ...
+
+ def set_attribute_mask(self, mask: FileAttributeMatcher) -> None: ...
+
+ def set_attribute_object(self, attribute: builtins.str, attr_value: GObject.Object) -> None: ...
+
+ def set_attribute_status(self, attribute: builtins.str, status: FileAttributeStatus) -> builtins.bool: ...
+
+ def set_attribute_string(self, attribute: builtins.str, attr_value: builtins.str) -> None: ...
+
+ def set_attribute_stringv(self, attribute: builtins.str, attr_value: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_attribute_uint32(self, attribute: builtins.str, attr_value: builtins.int) -> None: ...
+
+ def set_attribute_uint64(self, attribute: builtins.str, attr_value: builtins.int) -> None: ...
+
+ def set_content_type(self, content_type: builtins.str) -> None: ...
+
+ def set_display_name(self, display_name: builtins.str) -> None: ...
+
+ def set_edit_name(self, edit_name: builtins.str) -> None: ...
+
+ def set_file_type(self, type: FileType) -> None: ...
+
+ def set_icon(self, icon: Icon) -> None: ...
+
+ def set_is_hidden(self, is_hidden: builtins.bool) -> None: ...
+
+ def set_is_symlink(self, is_symlink: builtins.bool) -> None: ...
+
+ def set_modification_date_time(self, mtime: GLib.DateTime) -> None: ...
+
+ def set_modification_time(self, mtime: GLib.TimeVal) -> None: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+ def set_size(self, size: builtins.int) -> None: ...
+
+ def set_sort_order(self, sort_order: builtins.int) -> None: ...
+
+ def set_symbolic_icon(self, icon: Icon) -> None: ...
+
+ def set_symlink_target(self, symlink_target: builtins.str) -> None: ...
+
+ def unset_attribute_mask(self) -> None: ...
+
+
+class FileMonitor(GObject.Object):
+ parent_instance: GObject.Object
+
+ def cancel(self) -> builtins.bool: ...
+
+ def emit_event(self, child: File, other_file: File, event_type: FileMonitorEvent) -> None: ...
+
+ def is_cancelled(self) -> builtins.bool: ...
+
+ def set_rate_limit(self, limit_msecs: builtins.int) -> None: ...
+
+ def do_cancel(self) -> builtins.bool: ...
+
+ def do_changed(self, file: File, other_file: File, event_type: FileMonitorEvent) -> None: ...
+
+
+class FilenameCompleter(GObject.Object):
+
+ def get_completion_suffix(self, initial_text: builtins.str) -> builtins.str: ...
+
+ def get_completions(self, initial_text: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def new(**kwargs) -> FilenameCompleter: ... # type: ignore
+
+ def set_dirs_only(self, dirs_only: builtins.bool) -> None: ...
+
+ def do_got_completion_data(self) -> None: ...
+
+
+class IOModule(GObject.TypeModule):
+
+ def load(self) -> None: ...
+
+ @staticmethod
+ def new(filename: builtins.str) -> IOModule: ...
+
+ @staticmethod
+ def query() -> typing.Sequence[builtins.str]: ...
+
+ def unload(self) -> None: ...
+
+
+class IOStream(GObject.Object):
+ parent_instance: GObject.Object
+
+ def clear_pending(self) -> None: ...
+
+ def close(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def get_input_stream(self) -> InputStream: ...
+
+ def get_output_stream(self) -> OutputStream: ...
+
+ def has_pending(self) -> builtins.bool: ...
+
+ def is_closed(self) -> builtins.bool: ...
+
+ def set_pending(self) -> builtins.bool: ...
+
+ def splice_async(self, stream2: IOStream, flags: IOStreamSpliceFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def splice_finish(result: AsyncResult) -> builtins.bool: ...
+
+ def do_close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_close_fn(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_get_input_stream(self) -> InputStream: ...
+
+ def do_get_output_stream(self) -> OutputStream: ...
+
+
+class Icon(GObject.GInterface):
+
+ @staticmethod
+ def deserialize(value: GLib.Variant) -> Icon: ...
+
+ def equal(self, icon2: typing.Optional[Icon]) -> builtins.bool: ...
+
+ @staticmethod
+ def hash(icon: builtins.object) -> builtins.int: ...
+
+ @staticmethod
+ def new_for_string(str: builtins.str) -> Icon: ...
+
+ def serialize(self) -> GLib.Variant: ...
+
+ def to_string(self) -> typing.Optional[builtins.str]: ...
+
+ def do_equal(self, icon2: typing.Optional[Icon]) -> builtins.bool: ...
+
+ def do_hash(self) -> builtins.int: ...
+
+ def do_serialize(self) -> GLib.Variant: ...
+
+
+class InetAddress(GObject.Object):
+ parent_instance: GObject.Object
+
+ def equal(self, other_address: InetAddress) -> builtins.bool: ...
+
+ def get_family(self) -> SocketFamily: ...
+
+ def get_is_any(self) -> builtins.bool: ...
+
+ def get_is_link_local(self) -> builtins.bool: ...
+
+ def get_is_loopback(self) -> builtins.bool: ...
+
+ def get_is_mc_global(self) -> builtins.bool: ...
+
+ def get_is_mc_link_local(self) -> builtins.bool: ...
+
+ def get_is_mc_node_local(self) -> builtins.bool: ...
+
+ def get_is_mc_org_local(self) -> builtins.bool: ...
+
+ def get_is_mc_site_local(self) -> builtins.bool: ...
+
+ def get_is_multicast(self) -> builtins.bool: ...
+
+ def get_is_site_local(self) -> builtins.bool: ...
+
+ def get_native_size(self) -> builtins.int: ...
+
+ @staticmethod
+ def new_any(family: SocketFamily) -> InetAddress: ...
+
+ @staticmethod
+ def new_from_bytes(bytes: builtins.bytes, family: SocketFamily) -> InetAddress: ...
+
+ @staticmethod
+ def new_from_string(string: builtins.str) -> InetAddress: ...
+
+ @staticmethod
+ def new_loopback(family: SocketFamily) -> InetAddress: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def do_to_string(self) -> builtins.str: ...
+
+
+class Initable(GObject.GInterface):
+
+ def init(self, cancellable: typing.Optional[Cancellable] = None) -> builtins.bool: ...
+
+ def do_init(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+
+class InputStream(GObject.Object):
+ parent_instance: GObject.Object
+
+ def clear_pending(self) -> None: ...
+
+ def close(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def has_pending(self) -> builtins.bool: ...
+
+ def is_closed(self) -> builtins.bool: ...
+
+ def read(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.int, builtins.bytes]: ...
+
+ def read_all(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.bytes, builtins.int]: ...
+
+ def read_all_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> builtins.bytes: ...
+
+ def read_all_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def read_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> builtins.bytes: ...
+
+ def read_bytes(self, count: builtins.int, cancellable: typing.Optional[Cancellable]) -> GLib.Bytes: ...
+
+ def read_bytes_async(self, count: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def read_bytes_finish(self, result: AsyncResult) -> GLib.Bytes: ...
+
+ def read_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def set_pending(self) -> builtins.bool: ...
+
+ def skip(self, count: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def skip_async(self, count: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def skip_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def do_close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_close_fn(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_read_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> builtins.bytes: ...
+
+ def do_read_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def do_read_fn(self, buffer: typing.Optional[builtins.object], count: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_skip(self, count: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_skip_async(self, count: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_skip_finish(self, result: AsyncResult) -> builtins.int: ...
+
+
+class ListModel(GObject.GInterface):
+
+ def get_item(self, position: builtins.int) -> typing.Optional[GObject.Object]: ...
+
+ def get_item_type(self) -> GObject.GType: ...
+
+ def get_n_items(self) -> builtins.int: ...
+
+ def items_changed(self, position: builtins.int, removed: builtins.int, added: builtins.int) -> None: ...
+
+ def do_get_item(self, position: builtins.int) -> typing.Optional[GObject.Object]: ...
+
+ def do_get_item_type(self) -> GObject.GType: ...
+
+ def do_get_n_items(self) -> builtins.int: ...
+
+
+class LoadableIcon(GObject.GInterface):
+
+ def load(self, size: builtins.int, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[InputStream, builtins.str]: ...
+
+ def load_async(self, size: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def load_finish(self, res: AsyncResult) -> typing.Tuple[InputStream, builtins.str]: ...
+
+ def do_load(self, size: builtins.int, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[InputStream, builtins.str]: ...
+
+ def do_load_async(self, size: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_load_finish(self, res: AsyncResult) -> typing.Tuple[InputStream, builtins.str]: ...
+
+
+class MemoryMonitor(GObject.GInterface):
+
+ @staticmethod
+ def dup_default() -> MemoryMonitor: ...
+
+ def do_low_memory_warning(self, level: MemoryMonitorWarningLevel) -> None: ...
+
+
+class MenuAttributeIter(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_next(self) -> typing.Tuple[builtins.bool, builtins.str, GLib.Variant]: ...
+
+ def get_value(self) -> GLib.Variant: ...
+
+ def next(self) -> builtins.bool: ...
+
+ def do_get_next(self) -> typing.Tuple[builtins.bool, builtins.str, GLib.Variant]: ...
+
+
+class MenuItem(GObject.Object):
+
+ def get_attribute_value(self, attribute: builtins.str, expected_type: typing.Optional[GLib.VariantType]) -> GLib.Variant: ...
+
+ def get_link(self, link: builtins.str) -> MenuModel: ...
+
+ @staticmethod
+ def new(label: typing.Optional[builtins.str], detailed_action: typing.Optional[builtins.str], **kwargs) -> MenuItem: ... # type: ignore
+
+ @staticmethod
+ def new_from_model(model: MenuModel, item_index: builtins.int) -> MenuItem: ...
+
+ @staticmethod
+ def new_section(label: typing.Optional[builtins.str], section: MenuModel) -> MenuItem: ...
+
+ @staticmethod
+ def new_submenu(label: typing.Optional[builtins.str], submenu: MenuModel) -> MenuItem: ...
+
+ def set_action_and_target_value(self, action: typing.Optional[builtins.str], target_value: typing.Optional[GLib.Variant]) -> None: ...
+
+ def set_attribute_value(self, attribute: builtins.str, value: typing.Optional[GLib.Variant]) -> None: ...
+
+ def set_detailed_action(self, detailed_action: builtins.str) -> None: ...
+
+ def set_icon(self, icon: Icon) -> None: ...
+
+ def set_label(self, label: typing.Optional[builtins.str]) -> None: ...
+
+ def set_link(self, link: builtins.str, model: typing.Optional[MenuModel]) -> None: ...
+
+ def set_section(self, section: typing.Optional[MenuModel]) -> None: ...
+
+ def set_submenu(self, submenu: typing.Optional[MenuModel]) -> None: ...
+
+
+class MenuLinkIter(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_next(self) -> typing.Tuple[builtins.bool, builtins.str, MenuModel]: ...
+
+ def get_value(self) -> MenuModel: ...
+
+ def next(self) -> builtins.bool: ...
+
+ def do_get_next(self) -> typing.Tuple[builtins.bool, builtins.str, MenuModel]: ...
+
+
+class MenuModel(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_item_attribute_value(self, item_index: builtins.int, attribute: builtins.str, expected_type: typing.Optional[GLib.VariantType]) -> GLib.Variant: ...
+
+ def get_item_link(self, item_index: builtins.int, link: builtins.str) -> MenuModel: ...
+
+ def get_n_items(self) -> builtins.int: ...
+
+ def is_mutable(self) -> builtins.bool: ...
+
+ def items_changed(self, position: builtins.int, removed: builtins.int, added: builtins.int) -> None: ...
+
+ def iterate_item_attributes(self, item_index: builtins.int) -> MenuAttributeIter: ...
+
+ def iterate_item_links(self, item_index: builtins.int) -> MenuLinkIter: ...
+
+ def do_get_item_attribute_value(self, item_index: builtins.int, attribute: builtins.str, expected_type: typing.Optional[GLib.VariantType]) -> GLib.Variant: ...
+
+ def do_get_item_attributes(self, item_index: builtins.int) -> typing.Mapping[builtins.str, GLib.Variant]: ...
+
+ def do_get_item_link(self, item_index: builtins.int, link: builtins.str) -> MenuModel: ...
+
+ def do_get_item_links(self, item_index: builtins.int) -> typing.Mapping[builtins.str, MenuModel]: ...
+
+ def do_get_n_items(self) -> builtins.int: ...
+
+ def do_is_mutable(self) -> builtins.bool: ...
+
+ def do_iterate_item_attributes(self, item_index: builtins.int) -> MenuAttributeIter: ...
+
+ def do_iterate_item_links(self, item_index: builtins.int) -> MenuLinkIter: ...
+
+
+class Mount(GObject.GInterface):
+
+ def can_eject(self) -> builtins.bool: ...
+
+ def can_unmount(self) -> builtins.bool: ...
+
+ def eject(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def eject_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def get_default_location(self) -> File: ...
+
+ def get_drive(self) -> typing.Optional[Drive]: ...
+
+ def get_icon(self) -> Icon: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_root(self) -> File: ...
+
+ def get_sort_key(self) -> typing.Optional[builtins.str]: ...
+
+ def get_symbolic_icon(self) -> Icon: ...
+
+ def get_uuid(self) -> typing.Optional[builtins.str]: ...
+
+ def get_volume(self) -> typing.Optional[Volume]: ...
+
+ def guess_content_type(self, force_rescan: builtins.bool, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def guess_content_type_finish(self, result: AsyncResult) -> typing.Sequence[builtins.str]: ...
+
+ def guess_content_type_sync(self, force_rescan: builtins.bool, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[builtins.str]: ...
+
+ def is_shadowed(self) -> builtins.bool: ...
+
+ def remount(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def remount_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def shadow(self) -> None: ...
+
+ def unmount(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def unmount_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def unmount_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def unmount_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def unshadow(self) -> None: ...
+
+ def do_can_eject(self) -> builtins.bool: ...
+
+ def do_can_unmount(self) -> builtins.bool: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_eject(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_eject_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_get_default_location(self) -> File: ...
+
+ def do_get_drive(self) -> typing.Optional[Drive]: ...
+
+ def do_get_icon(self) -> Icon: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_get_root(self) -> File: ...
+
+ def do_get_sort_key(self) -> typing.Optional[builtins.str]: ...
+
+ def do_get_symbolic_icon(self) -> Icon: ...
+
+ def do_get_uuid(self) -> typing.Optional[builtins.str]: ...
+
+ def do_get_volume(self) -> typing.Optional[Volume]: ...
+
+ def do_guess_content_type(self, force_rescan: builtins.bool, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_guess_content_type_finish(self, result: AsyncResult) -> typing.Sequence[builtins.str]: ...
+
+ def do_guess_content_type_sync(self, force_rescan: builtins.bool, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[builtins.str]: ...
+
+ def do_pre_unmount(self) -> None: ...
+
+ def do_remount(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_remount_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_unmount(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_unmount_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_unmount_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_unmount_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_unmounted(self) -> None: ...
+
+
+class MountOperation(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_anonymous(self) -> builtins.bool: ...
+
+ def get_choice(self) -> builtins.int: ...
+
+ def get_domain(self) -> builtins.str: ...
+
+ def get_is_tcrypt_hidden_volume(self) -> builtins.bool: ...
+
+ def get_is_tcrypt_system_volume(self) -> builtins.bool: ...
+
+ def get_password(self) -> builtins.str: ...
+
+ def get_password_save(self) -> PasswordSave: ...
+
+ def get_pim(self) -> builtins.int: ...
+
+ def get_username(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(**kwargs) -> MountOperation: ... # type: ignore
+
+ def reply(self, result: MountOperationResult) -> None: ...
+
+ def set_anonymous(self, anonymous: builtins.bool) -> None: ...
+
+ def set_choice(self, choice: builtins.int) -> None: ...
+
+ def set_domain(self, domain: builtins.str) -> None: ...
+
+ def set_is_tcrypt_hidden_volume(self, hidden_volume: builtins.bool) -> None: ...
+
+ def set_is_tcrypt_system_volume(self, system_volume: builtins.bool) -> None: ...
+
+ def set_password(self, password: builtins.str) -> None: ...
+
+ def set_password_save(self, save: PasswordSave) -> None: ...
+
+ def set_pim(self, pim: builtins.int) -> None: ...
+
+ def set_username(self, username: builtins.str) -> None: ...
+
+ def do_aborted(self) -> None: ...
+
+ def do_ask_password(self, message: builtins.str, default_user: builtins.str, default_domain: builtins.str, flags: AskPasswordFlags) -> None: ...
+
+ def do_ask_question(self, message: builtins.str, choices: typing.Sequence[builtins.str]) -> None: ...
+
+ def do_reply(self, result: MountOperationResult) -> None: ...
+
+ def do_show_processes(self, message: builtins.str, processes: typing.Sequence[builtins.int], choices: typing.Sequence[builtins.str]) -> None: ...
+
+ def do_show_unmount_progress(self, message: builtins.str, time_left: builtins.int, bytes_left: builtins.int) -> None: ...
+
+
+class NetworkMonitor(GObject.GInterface):
+
+ def can_reach(self, connectable: SocketConnectable, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def can_reach_async(self, connectable: SocketConnectable, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def can_reach_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def get_connectivity(self) -> NetworkConnectivity: ...
+
+ @staticmethod
+ def get_default() -> NetworkMonitor: ...
+
+ def get_network_available(self) -> builtins.bool: ...
+
+ def get_network_metered(self) -> builtins.bool: ...
+
+ def do_can_reach(self, connectable: SocketConnectable, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_can_reach_async(self, connectable: SocketConnectable, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_can_reach_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_network_changed(self, network_available: builtins.bool) -> None: ...
+
+
+class Notification(GObject.Object):
+
+ def add_button(self, label: builtins.str, detailed_action: builtins.str) -> None: ...
+
+ def add_button_with_target(self, label: builtins.str, action: builtins.str, target: typing.Optional[GLib.Variant]) -> None: ...
+
+ @staticmethod
+ def new(title: builtins.str, **kwargs) -> Notification: ... # type: ignore
+
+ def set_body(self, body: typing.Optional[builtins.str]) -> None: ...
+
+ def set_default_action(self, detailed_action: builtins.str) -> None: ...
+
+ def set_default_action_and_target(self, action: builtins.str, target: typing.Optional[GLib.Variant]) -> None: ...
+
+ def set_icon(self, icon: Icon) -> None: ...
+
+ def set_priority(self, priority: NotificationPriority) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_urgent(self, urgent: builtins.bool) -> None: ...
+
+
+class OutputStream(GObject.Object):
+ parent_instance: GObject.Object
+
+ def clear_pending(self) -> None: ...
+
+ def close(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def flush(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def flush_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def flush_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def has_pending(self) -> builtins.bool: ...
+
+ def is_closed(self) -> builtins.bool: ...
+
+ def is_closing(self) -> builtins.bool: ...
+
+ def set_pending(self) -> builtins.bool: ...
+
+ def splice(self, source: InputStream, flags: OutputStreamSpliceFlags, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def splice_async(self, source: InputStream, flags: OutputStreamSpliceFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def splice_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def write(self, buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def write_all(self, buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def write_all_async(self, buffer: builtins.bytes, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def write_all_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def write_async(self, buffer: builtins.bytes, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def write_bytes(self, bytes: GLib.Bytes, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def write_bytes_async(self, bytes: GLib.Bytes, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def write_bytes_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def write_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def writev(self, vectors: typing.Sequence[OutputVector], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def writev_all(self, vectors: typing.Sequence[OutputVector], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def writev_all_async(self, vectors: typing.Sequence[OutputVector], io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def writev_all_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def writev_async(self, vectors: typing.Sequence[OutputVector], io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def writev_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def do_close_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_close_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_close_fn(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_flush(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_flush_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_flush_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_splice(self, source: InputStream, flags: OutputStreamSpliceFlags, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_splice_async(self, source: InputStream, flags: OutputStreamSpliceFlags, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_splice_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def do_write_async(self, buffer: typing.Optional[builtins.bytes], io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_write_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def do_write_fn(self, buffer: typing.Optional[builtins.bytes], cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_writev_async(self, vectors: typing.Sequence[OutputVector], io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_writev_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def do_writev_fn(self, vectors: typing.Sequence[OutputVector], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+
+class Permission(GObject.Object):
+ parent_instance: GObject.Object
+
+ def acquire(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def acquire_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def acquire_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def get_allowed(self) -> builtins.bool: ...
+
+ def get_can_acquire(self) -> builtins.bool: ...
+
+ def get_can_release(self) -> builtins.bool: ...
+
+ def impl_update(self, allowed: builtins.bool, can_acquire: builtins.bool, can_release: builtins.bool) -> None: ...
+
+ def release(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def release_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def release_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_acquire(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_acquire_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_acquire_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_release(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_release_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_release_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+
+class PollableInputStream(GObject.GInterface):
+
+ def can_poll(self) -> builtins.bool: ...
+
+ def create_source(self, cancellable: typing.Optional[Cancellable]) -> GLib.Source: ...
+
+ def is_readable(self) -> builtins.bool: ...
+
+ def read_nonblocking(self, buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_can_poll(self) -> builtins.bool: ...
+
+ def do_create_source(self, cancellable: typing.Optional[Cancellable]) -> GLib.Source: ...
+
+ def do_is_readable(self) -> builtins.bool: ...
+
+ def do_read_nonblocking(self, buffer: typing.Optional[builtins.bytes]) -> builtins.int: ...
+
+
+class PollableOutputStream(GObject.GInterface):
+
+ def can_poll(self) -> builtins.bool: ...
+
+ def create_source(self, cancellable: typing.Optional[Cancellable]) -> GLib.Source: ...
+
+ def is_writable(self) -> builtins.bool: ...
+
+ def write_nonblocking(self, buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def writev_nonblocking(self, vectors: typing.Sequence[OutputVector], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[PollableReturn, builtins.int]: ...
+
+ def do_can_poll(self) -> builtins.bool: ...
+
+ def do_create_source(self, cancellable: typing.Optional[Cancellable]) -> GLib.Source: ...
+
+ def do_is_writable(self) -> builtins.bool: ...
+
+ def do_write_nonblocking(self, buffer: typing.Optional[builtins.bytes]) -> builtins.int: ...
+
+ def do_writev_nonblocking(self, vectors: typing.Sequence[OutputVector]) -> typing.Tuple[PollableReturn, builtins.int]: ...
+
+
+class Proxy(GObject.GInterface):
+
+ def connect(self, connection: IOStream, proxy_address: ProxyAddress, cancellable: typing.Optional[Cancellable]) -> IOStream: ...
+
+ def connect_async(self, connection: IOStream, proxy_address: ProxyAddress, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def connect_finish(self, result: AsyncResult) -> IOStream: ...
+
+ @staticmethod
+ def get_default_for_protocol(protocol: builtins.str) -> Proxy: ...
+
+ def supports_hostname(self) -> builtins.bool: ...
+
+ def do_connect(self, connection: IOStream, proxy_address: ProxyAddress, cancellable: typing.Optional[Cancellable]) -> IOStream: ...
+
+ def do_connect_async(self, connection: IOStream, proxy_address: ProxyAddress, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_connect_finish(self, result: AsyncResult) -> IOStream: ...
+
+ def do_supports_hostname(self) -> builtins.bool: ...
+
+
+class ProxyResolver(GObject.GInterface):
+
+ @staticmethod
+ def get_default() -> ProxyResolver: ...
+
+ def is_supported(self) -> builtins.bool: ...
+
+ def lookup(self, uri: builtins.str, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[builtins.str]: ...
+
+ def lookup_async(self, uri: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_finish(self, result: AsyncResult) -> typing.Sequence[builtins.str]: ...
+
+ def do_is_supported(self) -> builtins.bool: ...
+
+ def do_lookup(self, uri: builtins.str, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[builtins.str]: ...
+
+ def do_lookup_async(self, uri: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_finish(self, result: AsyncResult) -> typing.Sequence[builtins.str]: ...
+
+
+class RemoteActionGroup(GObject.GInterface):
+
+ def activate_action_full(self, action_name: builtins.str, parameter: typing.Optional[GLib.Variant], platform_data: GLib.Variant) -> None: ...
+
+ def change_action_state_full(self, action_name: builtins.str, value: GLib.Variant, platform_data: GLib.Variant) -> None: ...
+
+ def do_activate_action_full(self, action_name: builtins.str, parameter: typing.Optional[GLib.Variant], platform_data: GLib.Variant) -> None: ...
+
+ def do_change_action_state_full(self, action_name: builtins.str, value: GLib.Variant, platform_data: GLib.Variant) -> None: ...
+
+
+class Resolver(GObject.Object):
+ parent_instance: GObject.Object
+
+ @staticmethod
+ def get_default() -> Resolver: ...
+
+ def lookup_by_address(self, address: InetAddress, cancellable: typing.Optional[Cancellable]) -> builtins.str: ...
+
+ def lookup_by_address_async(self, address: InetAddress, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_by_address_finish(self, result: AsyncResult) -> builtins.str: ...
+
+ def lookup_by_name(self, hostname: builtins.str, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[InetAddress]: ...
+
+ def lookup_by_name_async(self, hostname: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_by_name_finish(self, result: AsyncResult) -> typing.Sequence[InetAddress]: ...
+
+ def lookup_by_name_with_flags(self, hostname: builtins.str, flags: ResolverNameLookupFlags, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[InetAddress]: ...
+
+ def lookup_by_name_with_flags_async(self, hostname: builtins.str, flags: ResolverNameLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_by_name_with_flags_finish(self, result: AsyncResult) -> typing.Sequence[InetAddress]: ...
+
+ def lookup_records(self, rrname: builtins.str, record_type: ResolverRecordType, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[GLib.Variant]: ...
+
+ def lookup_records_async(self, rrname: builtins.str, record_type: ResolverRecordType, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_records_finish(self, result: AsyncResult) -> typing.Sequence[GLib.Variant]: ...
+
+ def lookup_service(self, service: builtins.str, protocol: builtins.str, domain: builtins.str, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[SrvTarget]: ...
+
+ def lookup_service_async(self, service: builtins.str, protocol: builtins.str, domain: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_service_finish(self, result: AsyncResult) -> typing.Sequence[SrvTarget]: ...
+
+ def set_default(self) -> None: ...
+
+ def do_lookup_by_address(self, address: InetAddress, cancellable: typing.Optional[Cancellable]) -> builtins.str: ...
+
+ def do_lookup_by_address_async(self, address: InetAddress, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_by_address_finish(self, result: AsyncResult) -> builtins.str: ...
+
+ def do_lookup_by_name(self, hostname: builtins.str, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[InetAddress]: ...
+
+ def do_lookup_by_name_async(self, hostname: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_by_name_finish(self, result: AsyncResult) -> typing.Sequence[InetAddress]: ...
+
+ def do_lookup_by_name_with_flags(self, hostname: builtins.str, flags: ResolverNameLookupFlags, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[InetAddress]: ...
+
+ def do_lookup_by_name_with_flags_async(self, hostname: builtins.str, flags: ResolverNameLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_by_name_with_flags_finish(self, result: AsyncResult) -> typing.Sequence[InetAddress]: ...
+
+ def do_lookup_records(self, rrname: builtins.str, record_type: ResolverRecordType, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[GLib.Variant]: ...
+
+ def do_lookup_records_async(self, rrname: builtins.str, record_type: ResolverRecordType, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_records_finish(self, result: AsyncResult) -> typing.Sequence[GLib.Variant]: ...
+
+ def do_lookup_service_async(self, rrname: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_service_finish(self, result: AsyncResult) -> typing.Sequence[SrvTarget]: ...
+
+ def do_reload(self) -> None: ...
+
+
+class Seekable(GObject.GInterface):
+
+ def can_seek(self) -> builtins.bool: ...
+
+ def can_truncate(self) -> builtins.bool: ...
+
+ def seek(self, offset: builtins.int, type: GLib.SeekType, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def tell(self) -> builtins.int: ...
+
+ def truncate(self, offset: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_can_seek(self) -> builtins.bool: ...
+
+ def do_can_truncate(self) -> builtins.bool: ...
+
+ def do_seek(self, offset: builtins.int, type: GLib.SeekType, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_tell(self) -> builtins.int: ...
+
+ def do_truncate_fn(self, offset: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+
+class Settings(GObject.Object):
+ parent_instance: GObject.Object
+
+ def __init__(self, *, path: typing.Optional[str] = None, schema: typing.Optional[str] = None, schema_id: typing.Optional[str] = None) -> None: ...
+
+ def __getitem__(self, key: str) -> typing.Any: ...
+
+ def __setitem__(self, key: str, value: object) -> None: ...
+
+ def apply(self) -> None: ...
+
+ def bind(self, key: builtins.str, object: GObject.Object, property: builtins.str, flags: SettingsBindFlags) -> None: ...
+
+ def bind_writable(self, key: builtins.str, object: GObject.Object, property: builtins.str, inverted: builtins.bool) -> None: ...
+
+ def create_action(self, key: builtins.str) -> Action: ...
+
+ def delay(self) -> None: ...
+
+ def get_boolean(self, key: builtins.str) -> builtins.bool: ...
+
+ def get_child(self, name: builtins.str) -> Settings: ...
+
+ def get_default_value(self, key: builtins.str) -> typing.Optional[GLib.Variant]: ...
+
+ def get_double(self, key: builtins.str) -> builtins.float: ...
+
+ def get_enum(self, key: builtins.str) -> builtins.int: ...
+
+ def get_flags(self, key: builtins.str) -> builtins.int: ...
+
+ def get_has_unapplied(self) -> builtins.bool: ...
+
+ def get_int(self, key: builtins.str) -> builtins.int: ...
+
+ def get_int64(self, key: builtins.str) -> builtins.int: ...
+
+ def get_mapped(self, key: builtins.str, mapping: SettingsGetMapping, *user_data: typing.Optional[builtins.object]) -> typing.Optional[builtins.object]: ...
+
+ def get_range(self, key: builtins.str) -> GLib.Variant: ...
+
+ def get_string(self, key: builtins.str) -> builtins.str: ...
+
+ def get_strv(self, key: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def get_uint(self, key: builtins.str) -> builtins.int: ...
+
+ def get_uint64(self, key: builtins.str) -> builtins.int: ...
+
+ def get_user_value(self, key: builtins.str) -> typing.Optional[GLib.Variant]: ...
+
+ def get_value(self, key: builtins.str) -> GLib.Variant: ...
+
+ def is_writable(self, name: builtins.str) -> builtins.bool: ...
+
+ def list_children(self) -> typing.Sequence[builtins.str]: ...
+
+ def list_keys(self) -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def list_relocatable_schemas() -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def list_schemas() -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def new(schema_id: builtins.str, **kwargs) -> Settings: ... # type: ignore
+
+ @staticmethod
+ def new_full(schema: SettingsSchema, backend: typing.Optional[SettingsBackend], path: typing.Optional[builtins.str]) -> Settings: ...
+
+ @staticmethod
+ def new_with_backend(schema_id: builtins.str, backend: SettingsBackend) -> Settings: ...
+
+ @staticmethod
+ def new_with_backend_and_path(schema_id: builtins.str, backend: SettingsBackend, path: builtins.str) -> Settings: ...
+
+ @staticmethod
+ def new_with_path(schema_id: builtins.str, path: builtins.str) -> Settings: ...
+
+ def range_check(self, key: builtins.str, value: GLib.Variant) -> builtins.bool: ...
+
+ def reset(self, key: builtins.str) -> None: ...
+
+ def revert(self) -> None: ...
+
+ def set_boolean(self, key: builtins.str, value: builtins.bool) -> builtins.bool: ...
+
+ def set_double(self, key: builtins.str, value: builtins.float) -> builtins.bool: ...
+
+ def set_enum(self, key: builtins.str, value: builtins.int) -> builtins.bool: ...
+
+ def set_flags(self, key: builtins.str, value: builtins.int) -> builtins.bool: ...
+
+ def set_int(self, key: builtins.str, value: builtins.int) -> builtins.bool: ...
+
+ def set_int64(self, key: builtins.str, value: builtins.int) -> builtins.bool: ...
+
+ def set_string(self, key: builtins.str, value: builtins.str) -> builtins.bool: ...
+
+ def set_strv(self, key: builtins.str, value: typing.Optional[typing.Sequence[builtins.str]]) -> builtins.bool: ...
+
+ def set_uint(self, key: builtins.str, value: builtins.int) -> builtins.bool: ...
+
+ def set_uint64(self, key: builtins.str, value: builtins.int) -> builtins.bool: ...
+
+ def set_value(self, key: builtins.str, value: GLib.Variant) -> builtins.bool: ...
+
+ @staticmethod
+ def sync() -> None: ...
+
+ @staticmethod
+ def unbind(object: GObject.Object, property: builtins.str) -> None: ...
+
+ def do_change_event(self, keys: builtins.int, n_keys: builtins.int) -> builtins.bool: ...
+
+ def do_changed(self, key: builtins.str) -> None: ...
+
+ def do_writable_change_event(self, key: builtins.int) -> builtins.bool: ...
+
+ def do_writable_changed(self, key: builtins.str) -> None: ...
+
+
+class SettingsBackend(GObject.Object):
+ parent_instance: GObject.Object
+
+ def changed(self, key: builtins.str, origin_tag: typing.Optional[builtins.object]) -> None: ...
+
+ def changed_tree(self, tree: GLib.Tree, origin_tag: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def flatten_tree(tree: GLib.Tree) -> typing.Tuple[builtins.str, typing.Sequence[builtins.str], typing.Sequence[GLib.Variant]]: ...
+
+ @staticmethod
+ def get_default() -> SettingsBackend: ...
+
+ def keys_changed(self, path: builtins.str, items: typing.Sequence[builtins.str], origin_tag: typing.Optional[builtins.object]) -> None: ...
+
+ def path_changed(self, path: builtins.str, origin_tag: typing.Optional[builtins.object]) -> None: ...
+
+ def path_writable_changed(self, path: builtins.str) -> None: ...
+
+ def writable_changed(self, key: builtins.str) -> None: ...
+
+ def do_get_writable(self, key: builtins.str) -> builtins.bool: ...
+
+ def do_read(self, key: builtins.str, expected_type: GLib.VariantType, default_value: builtins.bool) -> GLib.Variant: ...
+
+ def do_read_user_value(self, key: builtins.str, expected_type: GLib.VariantType) -> GLib.Variant: ...
+
+ def do_reset(self, key: builtins.str, origin_tag: typing.Optional[builtins.object]) -> None: ...
+
+ def do_subscribe(self, name: builtins.str) -> None: ...
+
+ def do_sync(self) -> None: ...
+
+ def do_unsubscribe(self, name: builtins.str) -> None: ...
+
+ def do_write(self, key: builtins.str, value: GLib.Variant, origin_tag: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def do_write_tree(self, tree: GLib.Tree, origin_tag: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+
+class SocketAddressEnumerator(GObject.Object):
+ parent_instance: GObject.Object
+
+ def next(self, cancellable: typing.Optional[Cancellable]) -> SocketAddress: ...
+
+ def next_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def next_finish(self, result: AsyncResult) -> SocketAddress: ...
+
+ def do_next(self, cancellable: typing.Optional[Cancellable]) -> SocketAddress: ...
+
+ def do_next_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_next_finish(self, result: AsyncResult) -> SocketAddress: ...
+
+
+class SocketClient(GObject.Object):
+ parent_instance: GObject.Object
+
+ def add_application_proxy(self, protocol: builtins.str) -> None: ...
+
+ def connect(self, connectable: SocketConnectable, cancellable: typing.Optional[Cancellable]) -> SocketConnection: ... # type: ignore
+
+ def connect_async(self, connectable: SocketConnectable, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def connect_finish(self, result: AsyncResult) -> SocketConnection: ...
+
+ def connect_to_host(self, host_and_port: builtins.str, default_port: builtins.int, cancellable: typing.Optional[Cancellable]) -> SocketConnection: ...
+
+ def connect_to_host_async(self, host_and_port: builtins.str, default_port: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def connect_to_host_finish(self, result: AsyncResult) -> SocketConnection: ...
+
+ def connect_to_service(self, domain: builtins.str, service: builtins.str, cancellable: typing.Optional[Cancellable]) -> SocketConnection: ...
+
+ def connect_to_service_async(self, domain: builtins.str, service: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def connect_to_service_finish(self, result: AsyncResult) -> SocketConnection: ...
+
+ def connect_to_uri(self, uri: builtins.str, default_port: builtins.int, cancellable: typing.Optional[Cancellable]) -> SocketConnection: ...
+
+ def connect_to_uri_async(self, uri: builtins.str, default_port: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def connect_to_uri_finish(self, result: AsyncResult) -> SocketConnection: ...
+
+ def get_enable_proxy(self) -> builtins.bool: ...
+
+ def get_family(self) -> SocketFamily: ...
+
+ def get_local_address(self) -> SocketAddress: ...
+
+ def get_protocol(self) -> SocketProtocol: ...
+
+ def get_proxy_resolver(self) -> ProxyResolver: ...
+
+ def get_socket_type(self) -> SocketType: ...
+
+ def get_timeout(self) -> builtins.int: ...
+
+ def get_tls(self) -> builtins.bool: ...
+
+ def get_tls_validation_flags(self) -> TlsCertificateFlags: ...
+
+ @staticmethod
+ def new(**kwargs) -> SocketClient: ... # type: ignore
+
+ def set_enable_proxy(self, enable: builtins.bool) -> None: ...
+
+ def set_family(self, family: SocketFamily) -> None: ...
+
+ def set_local_address(self, address: typing.Optional[SocketAddress]) -> None: ...
+
+ def set_protocol(self, protocol: SocketProtocol) -> None: ...
+
+ def set_proxy_resolver(self, proxy_resolver: typing.Optional[ProxyResolver]) -> None: ...
+
+ def set_socket_type(self, type: SocketType) -> None: ...
+
+ def set_timeout(self, timeout: builtins.int) -> None: ...
+
+ def set_tls(self, tls: builtins.bool) -> None: ...
+
+ def set_tls_validation_flags(self, flags: TlsCertificateFlags) -> None: ...
+
+ def do_event(self, event: SocketClientEvent, connectable: SocketConnectable, connection: IOStream) -> None: ...
+
+
+class SocketConnectable(GObject.GInterface):
+
+ def enumerate(self) -> SocketAddressEnumerator: ...
+
+ def proxy_enumerate(self) -> SocketAddressEnumerator: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def do_enumerate(self) -> SocketAddressEnumerator: ...
+
+ def do_proxy_enumerate(self) -> SocketAddressEnumerator: ...
+
+ def do_to_string(self) -> builtins.str: ...
+
+
+class SocketControlMessage(GObject.Object):
+ parent_instance: GObject.Object
+
+ @staticmethod
+ def deserialize(level: builtins.int, type: builtins.int, data: builtins.bytes) -> SocketControlMessage: ...
+
+ def get_level(self) -> builtins.int: ...
+
+ def get_msg_type(self) -> builtins.int: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def serialize(self, data: builtins.object) -> None: ...
+
+ def do_get_level(self) -> builtins.int: ...
+
+ def do_get_size(self) -> builtins.int: ...
+
+ def do_get_type(self) -> builtins.int: ...
+
+ def do_serialize(self, data: builtins.object) -> None: ...
+
+
+class SocketListener(GObject.Object):
+ parent_instance: GObject.Object
+
+ def accept(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[SocketConnection, typing.Optional[GObject.Object]]: ...
+
+ def accept_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def accept_finish(self, result: AsyncResult) -> typing.Tuple[SocketConnection, typing.Optional[GObject.Object]]: ...
+
+ def accept_socket(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[Socket, typing.Optional[GObject.Object]]: ...
+
+ def accept_socket_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def accept_socket_finish(self, result: AsyncResult) -> typing.Tuple[Socket, typing.Optional[GObject.Object]]: ...
+
+ def add_address(self, address: SocketAddress, type: SocketType, protocol: SocketProtocol, source_object: typing.Optional[GObject.Object]) -> typing.Tuple[builtins.bool, SocketAddress]: ...
+
+ def add_any_inet_port(self, source_object: typing.Optional[GObject.Object]) -> builtins.int: ...
+
+ def add_inet_port(self, port: builtins.int, source_object: typing.Optional[GObject.Object]) -> builtins.bool: ...
+
+ def add_socket(self, socket: Socket, source_object: typing.Optional[GObject.Object]) -> builtins.bool: ...
+
+ def close(self) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> SocketListener: ... # type: ignore
+
+ def set_backlog(self, listen_backlog: builtins.int) -> None: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_event(self, event: SocketListenerEvent, socket: Socket) -> None: ...
+
+
+class SubprocessLauncher(GObject.Object):
+
+ def getenv(self, variable: builtins.str) -> builtins.str: ...
+
+ @staticmethod
+ def new(flags: SubprocessFlags, **kwargs) -> SubprocessLauncher: ... # type: ignore
+
+ def set_cwd(self, cwd: builtins.str) -> None: ...
+
+ def set_environ(self, env: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_flags(self, flags: SubprocessFlags) -> None: ...
+
+ def set_stderr_file_path(self, path: typing.Optional[builtins.str]) -> None: ...
+
+ def set_stdin_file_path(self, path: builtins.str) -> None: ...
+
+ def set_stdout_file_path(self, path: typing.Optional[builtins.str]) -> None: ...
+
+ def setenv(self, variable: builtins.str, value: builtins.str, overwrite: builtins.bool) -> None: ...
+
+ def spawnv(self, argv: typing.Sequence[builtins.str]) -> Subprocess: ...
+
+ def take_fd(self, source_fd: builtins.int, target_fd: builtins.int) -> None: ...
+
+ def take_stderr_fd(self, fd: builtins.int) -> None: ...
+
+ def take_stdin_fd(self, fd: builtins.int) -> None: ...
+
+ def take_stdout_fd(self, fd: builtins.int) -> None: ...
+
+ def unsetenv(self, variable: builtins.str) -> None: ...
+
+
+class TestDBus(GObject.Object):
+
+ def add_service_dir(self, path: builtins.str) -> None: ...
+
+ def down(self) -> None: ...
+
+ def get_bus_address(self) -> typing.Optional[builtins.str]: ...
+
+ def get_flags(self) -> TestDBusFlags: ...
+
+ @staticmethod
+ def new(flags: TestDBusFlags, **kwargs) -> TestDBus: ... # type: ignore
+
+ def stop(self) -> None: ...
+
+ @staticmethod
+ def unset() -> None: ...
+
+ def up(self) -> None: ...
+
+
+class TlsBackend(GObject.GInterface):
+
+ def get_certificate_type(self) -> GObject.GType: ...
+
+ def get_client_connection_type(self) -> GObject.GType: ...
+
+ @staticmethod
+ def get_default() -> TlsBackend: ...
+
+ def get_default_database(self) -> TlsDatabase: ...
+
+ def get_dtls_client_connection_type(self) -> GObject.GType: ...
+
+ def get_dtls_server_connection_type(self) -> GObject.GType: ...
+
+ def get_file_database_type(self) -> GObject.GType: ...
+
+ def get_server_connection_type(self) -> GObject.GType: ...
+
+ def set_default_database(self, database: typing.Optional[TlsDatabase]) -> None: ...
+
+ def supports_dtls(self) -> builtins.bool: ...
+
+ def supports_tls(self) -> builtins.bool: ...
+
+ def do_get_default_database(self) -> TlsDatabase: ...
+
+ def do_supports_dtls(self) -> builtins.bool: ...
+
+ def do_supports_tls(self) -> builtins.bool: ...
+
+
+class TlsCertificate(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_issuer(self) -> TlsCertificate: ...
+
+ def is_same(self, cert_two: TlsCertificate) -> builtins.bool: ...
+
+ @staticmethod
+ def list_new_from_file(file: builtins.str) -> typing.Sequence[TlsCertificate]: ...
+
+ @staticmethod
+ def new_from_file(file: builtins.str) -> TlsCertificate: ...
+
+ @staticmethod
+ def new_from_files(cert_file: builtins.str, key_file: builtins.str) -> TlsCertificate: ...
+
+ @staticmethod
+ def new_from_pem(data: builtins.str, length: builtins.int) -> TlsCertificate: ...
+
+ def verify(self, identity: typing.Optional[SocketConnectable], trusted_ca: typing.Optional[TlsCertificate]) -> TlsCertificateFlags: ...
+
+ def do_verify(self, identity: typing.Optional[SocketConnectable], trusted_ca: typing.Optional[TlsCertificate]) -> TlsCertificateFlags: ...
+
+
+class TlsClientConnection(GObject.GInterface):
+
+ def copy_session_state(self, source: TlsClientConnection) -> None: ...
+
+ def get_accepted_cas(self) -> typing.Sequence[builtins.bytes]: ...
+
+ def get_server_identity(self) -> SocketConnectable: ...
+
+ def get_use_ssl3(self) -> builtins.bool: ...
+
+ def get_validation_flags(self) -> TlsCertificateFlags: ...
+
+ @staticmethod
+ def new(base_io_stream: IOStream, server_identity: typing.Optional[SocketConnectable]) -> TlsClientConnection: ...
+
+ def set_server_identity(self, identity: SocketConnectable) -> None: ...
+
+ def set_use_ssl3(self, use_ssl3: builtins.bool) -> None: ...
+
+ def set_validation_flags(self, flags: TlsCertificateFlags) -> None: ...
+
+ def do_copy_session_state(self, source: TlsClientConnection) -> None: ...
+
+
+class TlsDatabase(GObject.Object):
+ parent_instance: GObject.Object
+
+ def create_certificate_handle(self, certificate: TlsCertificate) -> typing.Optional[builtins.str]: ...
+
+ def lookup_certificate_for_handle(self, handle: builtins.str, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable]) -> typing.Optional[TlsCertificate]: ...
+
+ def lookup_certificate_for_handle_async(self, handle: builtins.str, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_certificate_for_handle_finish(self, result: AsyncResult) -> TlsCertificate: ...
+
+ def lookup_certificate_issuer(self, certificate: TlsCertificate, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable]) -> TlsCertificate: ...
+
+ def lookup_certificate_issuer_async(self, certificate: TlsCertificate, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_certificate_issuer_finish(self, result: AsyncResult) -> TlsCertificate: ...
+
+ def lookup_certificates_issued_by(self, issuer_raw_dn: builtins.bytes, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[TlsCertificate]: ...
+
+ def lookup_certificates_issued_by_async(self, issuer_raw_dn: builtins.bytes, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def lookup_certificates_issued_by_finish(self, result: AsyncResult) -> typing.Sequence[TlsCertificate]: ...
+
+ def verify_chain(self, chain: TlsCertificate, purpose: builtins.str, identity: typing.Optional[SocketConnectable], interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseVerifyFlags, cancellable: typing.Optional[Cancellable]) -> TlsCertificateFlags: ...
+
+ def verify_chain_async(self, chain: TlsCertificate, purpose: builtins.str, identity: typing.Optional[SocketConnectable], interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseVerifyFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def verify_chain_finish(self, result: AsyncResult) -> TlsCertificateFlags: ...
+
+ def do_create_certificate_handle(self, certificate: TlsCertificate) -> typing.Optional[builtins.str]: ...
+
+ def do_lookup_certificate_for_handle(self, handle: builtins.str, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable]) -> typing.Optional[TlsCertificate]: ...
+
+ def do_lookup_certificate_for_handle_async(self, handle: builtins.str, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_certificate_for_handle_finish(self, result: AsyncResult) -> TlsCertificate: ...
+
+ def do_lookup_certificate_issuer(self, certificate: TlsCertificate, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable]) -> TlsCertificate: ...
+
+ def do_lookup_certificate_issuer_async(self, certificate: TlsCertificate, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_certificate_issuer_finish(self, result: AsyncResult) -> TlsCertificate: ...
+
+ def do_lookup_certificates_issued_by(self, issuer_raw_dn: builtins.bytes, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable]) -> typing.Sequence[TlsCertificate]: ...
+
+ def do_lookup_certificates_issued_by_async(self, issuer_raw_dn: builtins.bytes, interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseLookupFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_lookup_certificates_issued_by_finish(self, result: AsyncResult) -> typing.Sequence[TlsCertificate]: ...
+
+ def do_verify_chain(self, chain: TlsCertificate, purpose: builtins.str, identity: typing.Optional[SocketConnectable], interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseVerifyFlags, cancellable: typing.Optional[Cancellable]) -> TlsCertificateFlags: ...
+
+ def do_verify_chain_async(self, chain: TlsCertificate, purpose: builtins.str, identity: typing.Optional[SocketConnectable], interaction: typing.Optional[TlsInteraction], flags: TlsDatabaseVerifyFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_verify_chain_finish(self, result: AsyncResult) -> TlsCertificateFlags: ...
+
+
+class TlsFileDatabase(GObject.GInterface):
+
+ @staticmethod
+ def new(anchors: builtins.str) -> TlsFileDatabase: ...
+
+
+class TlsInteraction(GObject.Object):
+ parent_instance: GObject.Object
+
+ def ask_password(self, password: TlsPassword, cancellable: typing.Optional[Cancellable]) -> TlsInteractionResult: ...
+
+ def ask_password_async(self, password: TlsPassword, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def ask_password_finish(self, result: AsyncResult) -> TlsInteractionResult: ...
+
+ def invoke_ask_password(self, password: TlsPassword, cancellable: typing.Optional[Cancellable]) -> TlsInteractionResult: ...
+
+ def invoke_request_certificate(self, connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: typing.Optional[Cancellable]) -> TlsInteractionResult: ...
+
+ def request_certificate(self, connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: typing.Optional[Cancellable]) -> TlsInteractionResult: ...
+
+ def request_certificate_async(self, connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def request_certificate_finish(self, result: AsyncResult) -> TlsInteractionResult: ...
+
+ def do_ask_password(self, password: TlsPassword, cancellable: typing.Optional[Cancellable]) -> TlsInteractionResult: ...
+
+ def do_ask_password_async(self, password: TlsPassword, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_ask_password_finish(self, result: AsyncResult) -> TlsInteractionResult: ...
+
+ def do_request_certificate(self, connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: typing.Optional[Cancellable]) -> TlsInteractionResult: ...
+
+ def do_request_certificate_async(self, connection: TlsConnection, flags: TlsCertificateRequestFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_request_certificate_finish(self, result: AsyncResult) -> TlsInteractionResult: ...
+
+
+class TlsPassword(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_flags(self) -> TlsPasswordFlags: ...
+
+ def get_value(self, length: typing.Optional[builtins.int]) -> builtins.int: ...
+
+ def get_warning(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(flags: TlsPasswordFlags, description: builtins.str, **kwargs) -> TlsPassword: ... # type: ignore
+
+ def set_description(self, description: builtins.str) -> None: ...
+
+ def set_flags(self, flags: TlsPasswordFlags) -> None: ...
+
+ def set_value(self, value: builtins.bytes) -> None: ...
+
+ def set_value_full(self, value: builtins.bytes, destroy: typing.Optional[GLib.DestroyNotify]) -> None: ...
+
+ def set_warning(self, warning: builtins.str) -> None: ...
+
+ def do_get_default_warning(self) -> builtins.str: ...
+
+ def do_get_value(self, length: typing.Optional[builtins.int]) -> builtins.int: ...
+
+ def do_set_value(self, value: builtins.bytes, destroy: typing.Optional[GLib.DestroyNotify]) -> None: ...
+
+
+class TlsServerConnection(GObject.GInterface):
+
+ @staticmethod
+ def new(base_io_stream: IOStream, certificate: typing.Optional[TlsCertificate]) -> TlsServerConnection: ...
+
+
+class UnixFDList(GObject.Object):
+ parent_instance: GObject.Object
+
+ def append(self, fd: builtins.int) -> builtins.int: ...
+
+ def get(self, index_: builtins.int) -> builtins.int: ...
+
+ def get_length(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(**kwargs) -> UnixFDList: ... # type: ignore
+
+ @staticmethod
+ def new_from_array(fds: typing.Sequence[builtins.int]) -> UnixFDList: ...
+
+ def peek_fds(self) -> typing.Sequence[builtins.int]: ...
+
+ def steal_fds(self) -> typing.Sequence[builtins.int]: ...
+
+
+class UnixMountMonitor(GObject.Object):
+
+ @staticmethod
+ def get() -> UnixMountMonitor: ...
+
+ @staticmethod
+ def new(**kwargs) -> UnixMountMonitor: ... # type: ignore
+
+ def set_rate_limit(self, limit_msec: builtins.int) -> None: ...
+
+
+class Vfs(GObject.Object):
+ parent_instance: GObject.Object
+
+ @staticmethod
+ def get_default() -> Vfs: ...
+
+ def get_file_for_path(self, path: builtins.str) -> File: ...
+
+ def get_file_for_uri(self, uri: builtins.str) -> File: ...
+
+ @staticmethod
+ def get_local() -> Vfs: ...
+
+ def get_supported_uri_schemes(self) -> typing.Sequence[builtins.str]: ...
+
+ def is_active(self) -> builtins.bool: ...
+
+ def parse_name(self, parse_name: builtins.str) -> File: ...
+
+ def register_uri_scheme(self, scheme: builtins.str, uri_func: typing.Optional[VfsFileLookupFunc], uri_data: typing.Optional[builtins.object], parse_name_func: typing.Optional[VfsFileLookupFunc], *parse_name_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def unregister_uri_scheme(self, scheme: builtins.str) -> builtins.bool: ...
+
+ def do_add_writable_namespaces(self, list: FileAttributeInfoList) -> None: ...
+
+ def do_get_file_for_path(self, path: builtins.str) -> File: ...
+
+ def do_get_file_for_uri(self, uri: builtins.str) -> File: ...
+
+ def do_get_supported_uri_schemes(self) -> typing.Sequence[builtins.str]: ...
+
+ def do_is_active(self) -> builtins.bool: ...
+
+ def do_local_file_add_info(self, filename: builtins.str, device: builtins.int, attribute_matcher: FileAttributeMatcher, info: FileInfo, cancellable: typing.Optional[Cancellable], extra_data: typing.Optional[builtins.object], free_extra_data: GLib.DestroyNotify) -> None: ...
+
+ def do_local_file_moved(self, source: builtins.str, dest: builtins.str) -> None: ...
+
+ def do_local_file_removed(self, filename: builtins.str) -> None: ...
+
+ def do_local_file_set_attributes(self, filename: builtins.str, info: FileInfo, flags: FileQueryInfoFlags, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_parse_name(self, parse_name: builtins.str) -> File: ...
+
+
+class Volume(GObject.GInterface):
+
+ def can_eject(self) -> builtins.bool: ...
+
+ def can_mount(self) -> builtins.bool: ...
+
+ def eject(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def eject_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def eject_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def enumerate_identifiers(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_activation_root(self) -> typing.Optional[File]: ...
+
+ def get_drive(self) -> typing.Optional[Drive]: ...
+
+ def get_icon(self) -> Icon: ...
+
+ def get_identifier(self, kind: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def get_mount(self) -> typing.Optional[Mount]: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_sort_key(self) -> typing.Optional[builtins.str]: ...
+
+ def get_symbolic_icon(self) -> Icon: ...
+
+ def get_uuid(self) -> typing.Optional[builtins.str]: ...
+
+ def mount(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def mount_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def should_automount(self) -> builtins.bool: ...
+
+ def do_can_eject(self) -> builtins.bool: ...
+
+ def do_can_mount(self) -> builtins.bool: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_eject(self, flags: MountUnmountFlags, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_eject_with_operation(self, flags: MountUnmountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_eject_with_operation_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_enumerate_identifiers(self) -> typing.Sequence[builtins.str]: ...
+
+ def do_get_activation_root(self) -> typing.Optional[File]: ...
+
+ def do_get_drive(self) -> typing.Optional[Drive]: ...
+
+ def do_get_icon(self) -> Icon: ...
+
+ def do_get_identifier(self, kind: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def do_get_mount(self) -> typing.Optional[Mount]: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_get_sort_key(self) -> typing.Optional[builtins.str]: ...
+
+ def do_get_symbolic_icon(self) -> Icon: ...
+
+ def do_get_uuid(self) -> typing.Optional[builtins.str]: ...
+
+ def do_mount_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def do_mount_fn(self, flags: MountMountFlags, mount_operation: typing.Optional[MountOperation], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_removed(self) -> None: ...
+
+ def do_should_automount(self) -> builtins.bool: ...
+
+
+class VolumeMonitor(GObject.Object):
+ parent_instance: GObject.Object
+ priv: builtins.object
+
+ @staticmethod
+ def adopt_orphan_mount(mount: Mount) -> Volume: ...
+
+ @staticmethod
+ def get() -> VolumeMonitor: ...
+
+ def get_connected_drives(self) -> typing.Sequence[Drive]: ...
+
+ def get_mount_for_uuid(self, uuid: builtins.str) -> Mount: ...
+
+ def get_mounts(self) -> typing.Sequence[Mount]: ...
+
+ def get_volume_for_uuid(self, uuid: builtins.str) -> Volume: ...
+
+ def get_volumes(self) -> typing.Sequence[Volume]: ...
+
+ def do_drive_changed(self, drive: Drive) -> None: ...
+
+ def do_drive_connected(self, drive: Drive) -> None: ...
+
+ def do_drive_disconnected(self, drive: Drive) -> None: ...
+
+ def do_drive_eject_button(self, drive: Drive) -> None: ...
+
+ def do_drive_stop_button(self, drive: Drive) -> None: ...
+
+ def do_get_connected_drives(self) -> typing.Sequence[Drive]: ...
+
+ def do_get_mount_for_uuid(self, uuid: builtins.str) -> Mount: ...
+
+ def do_get_mounts(self) -> typing.Sequence[Mount]: ...
+
+ def do_get_volume_for_uuid(self, uuid: builtins.str) -> Volume: ...
+
+ def do_get_volumes(self) -> typing.Sequence[Volume]: ...
+
+ def do_mount_added(self, mount: Mount) -> None: ...
+
+ def do_mount_changed(self, mount: Mount) -> None: ...
+
+ def do_mount_pre_unmount(self, mount: Mount) -> None: ...
+
+ def do_mount_removed(self, mount: Mount) -> None: ...
+
+ def do_volume_added(self, volume: Volume) -> None: ...
+
+ def do_volume_changed(self, volume: Volume) -> None: ...
+
+ def do_volume_removed(self, volume: Volume) -> None: ...
+
+
+class PropertyAction(GObject.Object, Action):
+
+ @staticmethod
+ def new(name: builtins.str, object: GObject.Object, property_name: builtins.str, **kwargs) -> PropertyAction: ... # type: ignore
+
+
+class SimpleAction(GObject.Object, Action):
+
+ @staticmethod
+ def new(name: builtins.str, parameter_type: typing.Optional[GLib.VariantType], **kwargs) -> SimpleAction: ... # type: ignore
+
+ @staticmethod
+ def new_stateful(name: builtins.str, parameter_type: typing.Optional[GLib.VariantType], state: GLib.Variant) -> SimpleAction: ...
+
+ def set_enabled(self, enabled: builtins.bool) -> None: ...
+
+ def set_state(self, value: GLib.Variant) -> None: ...
+
+ def set_state_hint(self, state_hint: typing.Optional[GLib.Variant]) -> None: ...
+
+
+class Application(GObject.Object, ActionGroup, ActionMap):
+ parent_instance: GObject.Object
+
+ def __init__(self, *, application_id: typing.Optional[str] = None, flags: ApplicationFlags = ApplicationFlags.FLAGS_NONE) -> None: ...
+
+ def activate(self) -> None: ...
+
+ def add_main_option(self, long_name: builtins.str, short_name: builtins.int, flags: GLib.OptionFlags, arg: GLib.OptionArg, description: builtins.str, arg_description: typing.Optional[builtins.str]) -> None: ...
+
+ def add_main_option_entries(self, entries: typing.Sequence[GLib.OptionEntry]) -> None: ...
+
+ def add_option_group(self, group: GLib.OptionGroup) -> None: ...
+
+ def bind_busy_property(self, object: GObject.Object, property: builtins.str) -> None: ...
+
+ def get_application_id(self) -> builtins.str: ...
+
+ def get_dbus_connection(self) -> DBusConnection: ...
+
+ def get_dbus_object_path(self) -> builtins.str: ...
+
+ @staticmethod
+ def get_default() -> Application: ...
+
+ def get_flags(self) -> ApplicationFlags: ...
+
+ def get_inactivity_timeout(self) -> builtins.int: ...
+
+ def get_is_busy(self) -> builtins.bool: ...
+
+ def get_is_registered(self) -> builtins.bool: ...
+
+ def get_is_remote(self) -> builtins.bool: ...
+
+ def get_resource_base_path(self) -> typing.Optional[builtins.str]: ...
+
+ def hold(self) -> None: ...
+
+ @staticmethod
+ def id_is_valid(application_id: builtins.str) -> builtins.bool: ...
+
+ def mark_busy(self) -> None: ...
+
+ @staticmethod
+ def new(application_id: typing.Optional[builtins.str], flags: ApplicationFlags, **kwargs) -> Application: ... # type: ignore
+
+ def open(self, files: typing.Sequence[File], hint: builtins.str) -> None: ...
+
+ def quit(self) -> None: ...
+
+ def register(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def release(self) -> None: ...
+
+ def run(self, argv: typing.Optional[typing.Sequence[builtins.str]]) -> builtins.int: ...
+
+ def send_notification(self, id: typing.Optional[builtins.str], notification: Notification) -> None: ...
+
+ def set_action_group(self, action_group: typing.Optional[ActionGroup]) -> None: ...
+
+ def set_application_id(self, application_id: typing.Optional[builtins.str]) -> None: ...
+
+ def set_default(self) -> None: ...
+
+ def set_flags(self, flags: ApplicationFlags) -> None: ...
+
+ def set_inactivity_timeout(self, inactivity_timeout: builtins.int) -> None: ...
+
+ def set_option_context_description(self, description: typing.Optional[builtins.str]) -> None: ...
+
+ def set_option_context_parameter_string(self, parameter_string: typing.Optional[builtins.str]) -> None: ...
+
+ def set_option_context_summary(self, summary: typing.Optional[builtins.str]) -> None: ...
+
+ def set_resource_base_path(self, resource_path: typing.Optional[builtins.str]) -> None: ...
+
+ def unbind_busy_property(self, object: GObject.Object, property: builtins.str) -> None: ...
+
+ def unmark_busy(self) -> None: ...
+
+ def withdraw_notification(self, id: builtins.str) -> None: ...
+
+ def do_activate(self) -> None: ...
+
+ def do_add_platform_data(self, builder: GLib.VariantBuilder) -> None: ...
+
+ def do_after_emit(self, platform_data: GLib.Variant) -> None: ...
+
+ def do_before_emit(self, platform_data: GLib.Variant) -> None: ...
+
+ def do_command_line(self, command_line: ApplicationCommandLine) -> builtins.int: ...
+
+ def do_dbus_register(self, connection: DBusConnection, object_path: builtins.str) -> builtins.bool: ...
+
+ def do_dbus_unregister(self, connection: DBusConnection, object_path: builtins.str) -> None: ...
+
+ def do_handle_local_options(self, options: GLib.VariantDict) -> builtins.int: ...
+
+ def do_local_command_line(self, arguments: typing.Sequence[builtins.str]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str], builtins.int]: ...
+
+ def do_name_lost(self) -> builtins.bool: ...
+
+ def do_open(self, files: typing.Sequence[File], hint: builtins.str) -> None: ...
+
+ def do_quit_mainloop(self) -> None: ...
+
+ def do_run_mainloop(self) -> None: ...
+
+ def do_shutdown(self) -> None: ...
+
+ def do_startup(self) -> None: ...
+
+
+class SimpleActionGroup(GObject.Object, ActionGroup, ActionMap):
+ parent_instance: GObject.Object
+
+ def add_entries(self, entries: typing.Sequence[ActionEntry], user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def insert(self, action: Action) -> None: ...
+
+ def lookup(self, action_name: builtins.str) -> Action: ...
+
+ @staticmethod
+ def new(**kwargs) -> SimpleActionGroup: ... # type: ignore
+
+ def remove(self, action_name: builtins.str) -> None: ...
+
+
+class DesktopAppInfo(GObject.Object, AppInfo):
+
+ def get_action_name(self, action_name: builtins.str) -> builtins.str: ...
+
+ def get_boolean(self, key: builtins.str) -> builtins.bool: ...
+
+ def get_categories(self) -> builtins.str: ...
+
+ def get_filename(self) -> builtins.str: ...
+
+ def get_generic_name(self) -> builtins.str: ...
+
+ @staticmethod
+ def get_implementations(interface: builtins.str) -> typing.Sequence[DesktopAppInfo]: ...
+
+ def get_is_hidden(self) -> builtins.bool: ...
+
+ def get_keywords(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_locale_string(self, key: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def get_nodisplay(self) -> builtins.bool: ...
+
+ def get_show_in(self, desktop_env: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def get_startup_wm_class(self) -> builtins.str: ...
+
+ def get_string(self, key: builtins.str) -> builtins.str: ...
+
+ def get_string_list(self, key: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def has_key(self, key: builtins.str) -> builtins.bool: ...
+
+ def launch_action(self, action_name: builtins.str, launch_context: typing.Optional[AppLaunchContext]) -> None: ...
+
+ def launch_uris_as_manager(self, uris: typing.Sequence[builtins.str], launch_context: typing.Optional[AppLaunchContext], spawn_flags: GLib.SpawnFlags, user_setup: typing.Optional[GLib.SpawnChildSetupFunc], user_setup_data: typing.Optional[builtins.object], pid_callback: typing.Optional[DesktopAppLaunchCallback], *pid_callback_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def launch_uris_as_manager_with_fds(self, uris: typing.Sequence[builtins.str], launch_context: typing.Optional[AppLaunchContext], spawn_flags: GLib.SpawnFlags, user_setup: typing.Optional[GLib.SpawnChildSetupFunc], user_setup_data: typing.Optional[builtins.object], pid_callback: typing.Optional[DesktopAppLaunchCallback], pid_callback_data: typing.Optional[builtins.object], stdin_fd: builtins.int, stdout_fd: builtins.int, stderr_fd: builtins.int) -> builtins.bool: ...
+
+ def list_actions(self) -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def new(desktop_id: builtins.str, **kwargs) -> typing.Optional[DesktopAppInfo]: ... # type: ignore
+
+ @staticmethod
+ def new_from_filename(filename: builtins.str) -> typing.Optional[DesktopAppInfo]: ...
+
+ @staticmethod
+ def new_from_keyfile(key_file: GLib.KeyFile) -> typing.Optional[DesktopAppInfo]: ...
+
+ @staticmethod
+ def search(search_string: builtins.str) -> typing.Sequence[typing.Sequence[builtins.str]]: ...
+
+ @staticmethod
+ def set_desktop_env(desktop_env: builtins.str) -> None: ...
+
+
+class SimpleAsyncResult(GObject.Object, AsyncResult):
+
+ def complete(self) -> None: ...
+
+ def complete_in_idle(self) -> None: ...
+
+ def get_op_res_gboolean(self) -> builtins.bool: ...
+
+ def get_op_res_gssize(self) -> builtins.int: ...
+
+ @staticmethod
+ def is_valid(result: AsyncResult, source: typing.Optional[GObject.Object], source_tag: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ @staticmethod
+ def new(source_object: typing.Optional[GObject.Object], callback: typing.Optional[AsyncReadyCallback], user_data: typing.Optional[builtins.object], source_tag: typing.Optional[builtins.object], **kwargs) -> SimpleAsyncResult: ... # type: ignore
+
+ @staticmethod
+ def new_from_error(source_object: typing.Optional[GObject.Object], callback: typing.Optional[AsyncReadyCallback], user_data: typing.Optional[builtins.object], error: GLib.Error) -> SimpleAsyncResult: ...
+
+ def propagate_error(self) -> builtins.bool: ...
+
+ def set_check_cancellable(self, check_cancellable: typing.Optional[Cancellable]) -> None: ...
+
+ def set_from_error(self, error: GLib.Error) -> None: ...
+
+ def set_handle_cancellation(self, handle_cancellation: builtins.bool) -> None: ...
+
+ def set_op_res_gboolean(self, op_res: builtins.bool) -> None: ...
+
+ def set_op_res_gssize(self, op_res: builtins.int) -> None: ...
+
+
+class Task(GObject.Object, AsyncResult):
+
+ def get_cancellable(self) -> Cancellable: ...
+
+ def get_check_cancellable(self) -> builtins.bool: ...
+
+ def get_completed(self) -> builtins.bool: ...
+
+ def get_context(self) -> GLib.MainContext: ...
+
+ def get_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_priority(self) -> builtins.int: ...
+
+ def get_return_on_cancel(self) -> builtins.bool: ...
+
+ def get_source_object(self) -> typing.Optional[GObject.Object]: ...
+
+ def get_source_tag(self) -> typing.Optional[builtins.object]: ...
+
+ def get_task_data(self) -> typing.Optional[builtins.object]: ...
+
+ def had_error(self) -> builtins.bool: ...
+
+ @staticmethod
+ def is_valid(result: AsyncResult, source_object: typing.Optional[GObject.Object]) -> builtins.bool: ...
+
+ @staticmethod
+ def new(source_object: typing.Optional[GObject.Object], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *callback_data: typing.Optional[builtins.object], **kwargs) -> Task: ... # type: ignore
+
+ def propagate_boolean(self) -> builtins.bool: ...
+
+ def propagate_int(self) -> builtins.int: ...
+
+ def propagate_pointer(self) -> typing.Optional[builtins.object]: ...
+
+ def propagate_value(self) -> typing.Tuple[builtins.bool, GObject.Value]: ...
+
+ @staticmethod
+ def report_error(source_object: typing.Optional[GObject.Object], callback: typing.Optional[AsyncReadyCallback], callback_data: typing.Optional[builtins.object], source_tag: typing.Optional[builtins.object], error: GLib.Error) -> None: ...
+
+ def return_boolean(self, result: builtins.bool) -> None: ...
+
+ def return_error(self, error: GLib.Error) -> None: ...
+
+ def return_error_if_cancelled(self) -> builtins.bool: ...
+
+ def return_int(self, result: builtins.int) -> None: ...
+
+ def return_pointer(self, result: typing.Optional[builtins.object], result_destroy: typing.Optional[GLib.DestroyNotify]) -> None: ...
+
+ def return_value(self, result: typing.Optional[GObject.Value]) -> None: ...
+
+ def run_in_thread(self, task_func: TaskThreadFunc) -> None: ...
+
+ def run_in_thread_sync(self, task_func: TaskThreadFunc) -> None: ...
+
+ def set_check_cancellable(self, check_cancellable: builtins.bool) -> None: ...
+
+ def set_name(self, name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_priority(self, priority: builtins.int) -> None: ...
+
+ def set_return_on_cancel(self, return_on_cancel: builtins.bool) -> builtins.bool: ...
+
+ def set_source_tag(self, source_tag: typing.Optional[builtins.object]) -> None: ...
+
+ def set_task_data(self, task_data: typing.Optional[builtins.object], task_data_destroy: typing.Optional[GLib.DestroyNotify]) -> None: ...
+
+
+class ZlibCompressor(GObject.Object, Converter):
+
+ def get_file_info(self) -> FileInfo: ...
+
+ @staticmethod
+ def new(format: ZlibCompressorFormat, level: builtins.int, **kwargs) -> ZlibCompressor: ... # type: ignore
+
+ def set_file_info(self, file_info: typing.Optional[FileInfo]) -> None: ...
+
+
+class ZlibDecompressor(GObject.Object, Converter):
+
+ def get_file_info(self) -> FileInfo: ...
+
+ @staticmethod
+ def new(format: ZlibCompressorFormat, **kwargs) -> ZlibDecompressor: ... # type: ignore
+
+
+class DBusInterfaceSkeleton(GObject.Object, DBusInterface):
+ parent_instance: GObject.Object
+
+ def export(self, connection: DBusConnection, object_path: builtins.str) -> builtins.bool: ...
+
+ def flush(self) -> None: ...
+
+ def get_connection(self) -> DBusConnection: ...
+
+ def get_connections(self) -> typing.Sequence[DBusConnection]: ...
+
+ def get_flags(self) -> DBusInterfaceSkeletonFlags: ...
+
+ def get_info(self) -> DBusInterfaceInfo: ...
+
+ def get_object_path(self) -> builtins.str: ...
+
+ def get_properties(self) -> GLib.Variant: ...
+
+ def has_connection(self, connection: DBusConnection) -> builtins.bool: ...
+
+ def set_flags(self, flags: DBusInterfaceSkeletonFlags) -> None: ...
+
+ def unexport(self) -> None: ...
+
+ def unexport_from_connection(self, connection: DBusConnection) -> None: ...
+
+ def do_flush(self) -> None: ...
+
+ def do_g_authorize_method(self, invocation: DBusMethodInvocation) -> builtins.bool: ...
+
+ def do_get_info(self) -> DBusInterfaceInfo: ...
+
+ def do_get_properties(self) -> GLib.Variant: ...
+
+
+class DBusObjectProxy(GObject.Object, DBusObject):
+ parent_instance: GObject.Object
+
+ def get_connection(self) -> DBusConnection: ...
+
+ @staticmethod
+ def new(connection: DBusConnection, object_path: builtins.str, **kwargs) -> DBusObjectProxy: ... # type: ignore
+
+
+class DBusObjectSkeleton(GObject.Object, DBusObject):
+ parent_instance: GObject.Object
+
+ def add_interface(self, interface_: DBusInterfaceSkeleton) -> None: ...
+
+ def flush(self) -> None: ...
+
+ @staticmethod
+ def new(object_path: builtins.str, **kwargs) -> DBusObjectSkeleton: ... # type: ignore
+
+ def remove_interface(self, interface_: DBusInterfaceSkeleton) -> None: ...
+
+ def remove_interface_by_name(self, interface_name: builtins.str) -> None: ...
+
+ def set_object_path(self, object_path: builtins.str) -> None: ...
+
+ def do_authorize_method(self, interface_: DBusInterfaceSkeleton, invocation: DBusMethodInvocation) -> builtins.bool: ...
+
+
+class DBusObjectManagerServer(GObject.Object, DBusObjectManager):
+ parent_instance: GObject.Object
+
+ def export(self, object: DBusObjectSkeleton) -> None: ...
+
+ def export_uniquely(self, object: DBusObjectSkeleton) -> None: ...
+
+ def get_connection(self) -> DBusConnection: ...
+
+ def is_exported(self, object: DBusObjectSkeleton) -> builtins.bool: ...
+
+ @staticmethod
+ def new(object_path: builtins.str, **kwargs) -> DBusObjectManagerServer: ... # type: ignore
+
+ def set_connection(self, connection: typing.Optional[DBusConnection]) -> None: ...
+
+ def unexport(self, object_path: builtins.str) -> builtins.bool: ...
+
+
+class SimpleIOStream(IOStream):
+
+ @staticmethod
+ def new(input_stream: InputStream, output_stream: OutputStream) -> IOStream: ...
+
+
+class SocketConnection(IOStream):
+ parent_instance: IOStream
+
+ def connect(self, address: SocketAddress, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ... # type: ignore
+
+ def connect_async(self, address: SocketAddress, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def connect_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ @staticmethod
+ def factory_lookup_type(family: SocketFamily, type: SocketType, protocol_id: builtins.int) -> GObject.GType: ...
+
+ @staticmethod
+ def factory_register_type(g_type: GObject.GType, family: SocketFamily, type: SocketType, protocol: builtins.int) -> None: ...
+
+ def get_local_address(self) -> SocketAddress: ...
+
+ def get_remote_address(self) -> SocketAddress: ...
+
+ def get_socket(self) -> Socket: ...
+
+ def is_connected(self) -> builtins.bool: ...
+
+
+class TlsConnection(IOStream):
+ parent_instance: IOStream
+
+ def emit_accept_certificate(self, peer_cert: TlsCertificate, errors: TlsCertificateFlags) -> builtins.bool: ...
+
+ def get_certificate(self) -> TlsCertificate: ...
+
+ def get_database(self) -> TlsDatabase: ...
+
+ def get_interaction(self) -> TlsInteraction: ...
+
+ def get_negotiated_protocol(self) -> typing.Optional[builtins.str]: ...
+
+ def get_peer_certificate(self) -> TlsCertificate: ...
+
+ def get_peer_certificate_errors(self) -> TlsCertificateFlags: ...
+
+ def get_rehandshake_mode(self) -> TlsRehandshakeMode: ...
+
+ def get_require_close_notify(self) -> builtins.bool: ...
+
+ def get_use_system_certdb(self) -> builtins.bool: ...
+
+ def handshake(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def handshake_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def handshake_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def set_advertised_protocols(self, protocols: typing.Optional[typing.Sequence[builtins.str]]) -> None: ...
+
+ def set_certificate(self, certificate: TlsCertificate) -> None: ...
+
+ def set_database(self, database: TlsDatabase) -> None: ...
+
+ def set_interaction(self, interaction: typing.Optional[TlsInteraction]) -> None: ...
+
+ def set_rehandshake_mode(self, mode: TlsRehandshakeMode) -> None: ...
+
+ def set_require_close_notify(self, require_close_notify: builtins.bool) -> None: ...
+
+ def set_use_system_certdb(self, use_system_certdb: builtins.bool) -> None: ...
+
+ def do_accept_certificate(self, peer_cert: TlsCertificate, errors: TlsCertificateFlags) -> builtins.bool: ...
+
+ def do_handshake(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_handshake_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_handshake_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+
+class Emblem(GObject.Object, Icon):
+
+ def get_icon(self) -> Icon: ...
+
+ def get_origin(self) -> EmblemOrigin: ...
+
+ @staticmethod
+ def new(icon: Icon, **kwargs) -> Emblem: ... # type: ignore
+
+ @staticmethod
+ def new_with_origin(icon: Icon, origin: EmblemOrigin) -> Emblem: ...
+
+
+class EmblemedIcon(GObject.Object, Icon):
+ parent_instance: GObject.Object
+
+ def add_emblem(self, emblem: Emblem) -> None: ...
+
+ def clear_emblems(self) -> None: ...
+
+ def get_emblems(self) -> typing.Sequence[Emblem]: ...
+
+ def get_icon(self) -> Icon: ...
+
+ @staticmethod
+ def new(icon: Icon, emblem: typing.Optional[Emblem], **kwargs) -> EmblemedIcon: ... # type: ignore
+
+
+class ThemedIcon(GObject.Object, Icon):
+
+ def append_name(self, iconname: builtins.str) -> None: ...
+
+ def get_names(self) -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def new(iconname: builtins.str, **kwargs) -> ThemedIcon: ... # type: ignore
+
+ @staticmethod
+ def new_from_names(iconnames: typing.Sequence[builtins.str]) -> ThemedIcon: ...
+
+ @staticmethod
+ def new_with_default_fallbacks(iconname: builtins.str) -> ThemedIcon: ...
+
+ def prepend_name(self, iconname: builtins.str) -> None: ...
+
+
+class CharsetConverter(GObject.Object, Converter, Initable):
+
+ def get_num_fallbacks(self) -> builtins.int: ...
+
+ def get_use_fallback(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(to_charset: builtins.str, from_charset: builtins.str, **kwargs) -> CharsetConverter: ... # type: ignore
+
+ def set_use_fallback(self, use_fallback: builtins.bool) -> None: ...
+
+
+class DBusConnection(GObject.Object, AsyncInitable, Initable):
+
+ def add_filter(self, filter_function: DBusMessageFilterFunction, *user_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ def call(self, bus_name: typing.Optional[builtins.str], object_path: builtins.str, interface_name: builtins.str, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], reply_type: typing.Optional[GLib.VariantType], flags: DBusCallFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def call_finish(self, res: AsyncResult) -> GLib.Variant: ...
+
+ def call_sync(self, bus_name: typing.Optional[builtins.str], object_path: builtins.str, interface_name: builtins.str, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], reply_type: typing.Optional[GLib.VariantType], flags: DBusCallFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable]) -> GLib.Variant: ...
+
+ def call_with_unix_fd_list(self, bus_name: typing.Optional[builtins.str], object_path: builtins.str, interface_name: builtins.str, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], reply_type: typing.Optional[GLib.VariantType], flags: DBusCallFlags, timeout_msec: builtins.int, fd_list: typing.Optional[UnixFDList], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def call_with_unix_fd_list_finish(self, res: AsyncResult) -> typing.Tuple[GLib.Variant, UnixFDList]: ...
+
+ def call_with_unix_fd_list_sync(self, bus_name: typing.Optional[builtins.str], object_path: builtins.str, interface_name: builtins.str, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], reply_type: typing.Optional[GLib.VariantType], flags: DBusCallFlags, timeout_msec: builtins.int, fd_list: typing.Optional[UnixFDList], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[GLib.Variant, UnixFDList]: ...
+
+ def close(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def close_finish(self, res: AsyncResult) -> builtins.bool: ...
+
+ def close_sync(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def emit_signal(self, destination_bus_name: typing.Optional[builtins.str], object_path: builtins.str, interface_name: builtins.str, signal_name: builtins.str, parameters: typing.Optional[GLib.Variant]) -> builtins.bool: ...
+
+ def export_action_group(self, object_path: builtins.str, action_group: ActionGroup) -> builtins.int: ...
+
+ def export_menu_model(self, object_path: builtins.str, menu: MenuModel) -> builtins.int: ...
+
+ def flush(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def flush_finish(self, res: AsyncResult) -> builtins.bool: ...
+
+ def flush_sync(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def get_capabilities(self) -> DBusCapabilityFlags: ...
+
+ def get_exit_on_close(self) -> builtins.bool: ...
+
+ def get_flags(self) -> DBusConnectionFlags: ...
+
+ def get_guid(self) -> builtins.str: ...
+
+ def get_last_serial(self) -> builtins.int: ...
+
+ def get_peer_credentials(self) -> typing.Optional[Credentials]: ...
+
+ def get_stream(self) -> IOStream: ...
+
+ def get_unique_name(self) -> typing.Optional[builtins.str]: ...
+
+ def is_closed(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(stream: IOStream, guid: typing.Optional[builtins.str], flags: DBusConnectionFlags, observer: typing.Optional[DBusAuthObserver], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object], **kwargs) -> None: ... # type: ignore
+
+ @staticmethod
+ def new_finish(res: AsyncResult) -> DBusConnection: ...
+
+ @staticmethod
+ def new_for_address(address: builtins.str, flags: DBusConnectionFlags, observer: typing.Optional[DBusAuthObserver], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def new_for_address_finish(res: AsyncResult) -> DBusConnection: ...
+
+ @staticmethod
+ def new_for_address_sync(address: builtins.str, flags: DBusConnectionFlags, observer: typing.Optional[DBusAuthObserver], cancellable: typing.Optional[Cancellable]) -> DBusConnection: ...
+
+ @staticmethod
+ def new_sync(stream: IOStream, guid: typing.Optional[builtins.str], flags: DBusConnectionFlags, observer: typing.Optional[DBusAuthObserver], cancellable: typing.Optional[Cancellable]) -> DBusConnection: ...
+
+ def register_object(self, object_path: builtins.str, interface_info: DBusInterfaceInfo, method_call_closure: typing.Optional[DBusInterfaceMethodCallFunc], get_property_closure: typing.Optional[DBusInterfaceGetPropertyFunc], set_property_closure: typing.Optional[DBusInterfaceSetPropertyFunc]) -> builtins.int: ...
+
+ def register_subtree(self, object_path: builtins.str, vtable: DBusSubtreeVTable, flags: DBusSubtreeFlags, user_data: typing.Optional[builtins.object], user_data_free_func: GLib.DestroyNotify) -> builtins.int: ...
+
+ def remove_filter(self, filter_id: builtins.int) -> None: ...
+
+ def send_message(self, message: DBusMessage, flags: DBusSendMessageFlags) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def send_message_with_reply(self, message: DBusMessage, flags: DBusSendMessageFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ def send_message_with_reply_finish(self, res: AsyncResult) -> DBusMessage: ...
+
+ def send_message_with_reply_sync(self, message: DBusMessage, flags: DBusSendMessageFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[DBusMessage, builtins.int]: ...
+
+ def set_exit_on_close(self, exit_on_close: builtins.bool) -> None: ...
+
+ def signal_subscribe(self, sender: typing.Optional[builtins.str], interface_name: typing.Optional[builtins.str], member: typing.Optional[builtins.str], object_path: typing.Optional[builtins.str], arg0: typing.Optional[builtins.str], flags: DBusSignalFlags, callback: typing.Callable[[DBusConnection, builtins.str, builtins.str, builtins.str, builtins.str, GLib.Variant], None]) -> builtins.int: ...
+
+ def signal_unsubscribe(self, subscription_id: builtins.int) -> None: ...
+
+ def start_message_processing(self) -> None: ...
+
+ def unexport_action_group(self, export_id: builtins.int) -> None: ...
+
+ def unexport_menu_model(self, export_id: builtins.int) -> None: ...
+
+ def unregister_object(self, registration_id: builtins.int) -> builtins.bool: ...
+
+ def unregister_subtree(self, registration_id: builtins.int) -> builtins.bool: ...
+
+
+class DBusObjectManagerClient(GObject.Object, AsyncInitable, DBusObjectManager, Initable):
+ parent_instance: GObject.Object
+
+ def get_connection(self) -> DBusConnection: ...
+
+ def get_flags(self) -> DBusObjectManagerClientFlags: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_name_owner(self) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def new(connection: DBusConnection, flags: DBusObjectManagerClientFlags, name: builtins.str, object_path: builtins.str, get_proxy_type_func: typing.Optional[DBusProxyTypeFunc], get_proxy_type_user_data: typing.Optional[builtins.object], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object], **kwargs) -> None: ... # type: ignore
+
+ @staticmethod
+ def new_finish(res: AsyncResult) -> DBusObjectManagerClient: ...
+
+ @staticmethod
+ def new_for_bus(bus_type: BusType, flags: DBusObjectManagerClientFlags, name: builtins.str, object_path: builtins.str, get_proxy_type_func: typing.Optional[DBusProxyTypeFunc], get_proxy_type_user_data: typing.Optional[builtins.object], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def new_for_bus_finish(res: AsyncResult) -> DBusObjectManagerClient: ...
+
+ @staticmethod
+ def new_for_bus_sync(bus_type: BusType, flags: DBusObjectManagerClientFlags, name: builtins.str, object_path: builtins.str, get_proxy_type_func: typing.Optional[DBusProxyTypeFunc], get_proxy_type_user_data: typing.Optional[builtins.object], cancellable: typing.Optional[Cancellable]) -> DBusObjectManagerClient: ...
+
+ @staticmethod
+ def new_sync(connection: DBusConnection, flags: DBusObjectManagerClientFlags, name: typing.Optional[builtins.str], object_path: builtins.str, get_proxy_type_func: typing.Optional[DBusProxyTypeFunc], get_proxy_type_user_data: typing.Optional[builtins.object], cancellable: typing.Optional[Cancellable]) -> DBusObjectManagerClient: ...
+
+ def do_interface_proxy_properties_changed(self, object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, changed_properties: GLib.Variant, invalidated_properties: builtins.str) -> None: ...
+
+ def do_interface_proxy_signal(self, object_proxy: DBusObjectProxy, interface_proxy: DBusProxy, sender_name: builtins.str, signal_name: builtins.str, parameters: GLib.Variant) -> None: ...
+
+
+class DBusProxy(GObject.Object, AsyncInitable, DBusInterface, Initable):
+ parent_instance: GObject.Object
+
+ def __init__(self, *, g_bus_type: BusType = BusType.NONE, g_connection: typing.Optional[DBusConnection] = None, g_default_timeout: int = -1, g_flags: DBusProxyFlags, g_interface_name: typing.Optional[str] = None, g_name: str, g_object_path: typing.Optional[str] = None) -> None: ...
+
+ def __getattr__(self, name: str) -> typing.Callable[..., typing.Any]: ...
+
+ T = typing.TypeVar("T")
+ T1 = typing.TypeVar("T1")
+ T2 = typing.TypeVar("T2")
+
+ @typing.overload
+ def call(self: T, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], flags: DBusCallFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[typing.Callable[[T, AsyncResult], None]] = None) -> None: ...
+ @typing.overload
+ def call(self: T, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], flags: DBusCallFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[typing.Callable[[T, AsyncResult, T1], None]], user_data1: T1) -> None: ...
+ @typing.overload
+ def call(self: T, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], flags: DBusCallFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[typing.Callable[[T, AsyncResult, T1, T2], None]], user_data1: T1, user_data2: T2) -> None: ...
+
+ def call_finish(self, res: AsyncResult) -> GLib.Variant: ...
+
+ def call_sync(self, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], flags: DBusCallFlags, timeout_msec: builtins.int, cancellable: typing.Optional[Cancellable]) -> GLib.Variant: ...
+
+ def call_with_unix_fd_list(self, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], flags: DBusCallFlags, timeout_msec: builtins.int, fd_list: typing.Optional[UnixFDList], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def call_with_unix_fd_list_finish(self, res: AsyncResult) -> typing.Tuple[GLib.Variant, UnixFDList]: ...
+
+ def call_with_unix_fd_list_sync(self, method_name: builtins.str, parameters: typing.Optional[GLib.Variant], flags: DBusCallFlags, timeout_msec: builtins.int, fd_list: typing.Optional[UnixFDList], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[GLib.Variant, UnixFDList]: ...
+
+ def get_cached_property(self, property_name: builtins.str) -> typing.Optional[GLib.Variant]: ...
+
+ def get_cached_property_names(self) -> typing.Optional[typing.Sequence[builtins.str]]: ...
+
+ def get_connection(self) -> DBusConnection: ...
+
+ def get_default_timeout(self) -> builtins.int: ...
+
+ def get_flags(self) -> DBusProxyFlags: ...
+
+ def get_interface_info(self) -> typing.Optional[DBusInterfaceInfo]: ...
+
+ def get_interface_name(self) -> builtins.str: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_name_owner(self) -> typing.Optional[builtins.str]: ...
+
+ def get_object_path(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(connection: DBusConnection, flags: DBusProxyFlags, info: typing.Optional[DBusInterfaceInfo], name: typing.Optional[builtins.str], object_path: builtins.str, interface_name: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object], **kwargs) -> None: ... # type: ignore
+
+ @staticmethod
+ def new_finish(res: AsyncResult) -> DBusProxy: ...
+
+ @staticmethod
+ def new_for_bus(bus_type: BusType, flags: DBusProxyFlags, info: typing.Optional[DBusInterfaceInfo], name: builtins.str, object_path: builtins.str, interface_name: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def new_for_bus_finish(res: AsyncResult) -> DBusProxy: ...
+
+ @staticmethod
+ def new_for_bus_sync(bus_type: BusType, flags: DBusProxyFlags, info: typing.Optional[DBusInterfaceInfo], name: builtins.str, object_path: builtins.str, interface_name: builtins.str, cancellable: typing.Optional[Cancellable] = None) -> DBusProxy: ...
+
+ @staticmethod
+ def new_sync(connection: DBusConnection, flags: DBusProxyFlags, info: typing.Optional[DBusInterfaceInfo], name: typing.Optional[builtins.str], object_path: builtins.str, interface_name: builtins.str, cancellable: typing.Optional[Cancellable]) -> DBusProxy: ...
+
+ def set_cached_property(self, property_name: builtins.str, value: typing.Optional[GLib.Variant]) -> None: ...
+
+ def set_default_timeout(self, timeout_msec: builtins.int) -> None: ...
+
+ def set_interface_info(self, info: typing.Optional[DBusInterfaceInfo]) -> None: ...
+
+ def do_g_properties_changed(self, changed_properties: GLib.Variant, invalidated_properties: typing.List[str]) -> None: ...
+
+ def do_g_signal(self, sender_name: builtins.str, signal_name: builtins.str, parameters: GLib.Variant) -> None: ...
+
+
+class DBusServer(GObject.Object, Initable):
+
+ def get_client_address(self) -> builtins.str: ...
+
+ def get_flags(self) -> DBusServerFlags: ...
+
+ def get_guid(self) -> builtins.str: ...
+
+ def is_active(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new_sync(address: builtins.str, flags: DBusServerFlags, guid: builtins.str, observer: typing.Optional[DBusAuthObserver], cancellable: typing.Optional[Cancellable]) -> DBusServer: ...
+
+ def start(self) -> None: ...
+
+ def stop(self) -> None: ...
+
+
+class InetAddressMask(GObject.Object, Initable):
+ parent_instance: GObject.Object
+
+ def equal(self, mask2: InetAddressMask) -> builtins.bool: ...
+
+ def get_address(self) -> InetAddress: ...
+
+ def get_family(self) -> SocketFamily: ...
+
+ def get_length(self) -> builtins.int: ...
+
+ def matches(self, address: InetAddress) -> builtins.bool: ...
+
+ @staticmethod
+ def new(addr: InetAddress, length: builtins.int, **kwargs) -> InetAddressMask: ... # type: ignore
+
+ @staticmethod
+ def new_from_string(mask_string: builtins.str) -> InetAddressMask: ...
+
+ def to_string(self) -> builtins.str: ...
+
+
+class Socket(GObject.Object, DatagramBased, Initable):
+ parent_instance: GObject.Object
+
+ def accept(self, cancellable: typing.Optional[Cancellable]) -> Socket: ...
+
+ def bind(self, address: SocketAddress, allow_reuse: builtins.bool) -> builtins.bool: ...
+
+ def check_connect_result(self) -> builtins.bool: ...
+
+ def close(self) -> builtins.bool: ...
+
+ def condition_check(self, condition: GLib.IOCondition) -> GLib.IOCondition: ...
+
+ def condition_timed_wait(self, condition: GLib.IOCondition, timeout_us: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def condition_wait(self, condition: GLib.IOCondition, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ... # type: ignore
+
+ def connect(self, address: SocketAddress, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ... # type: ignore
+
+ def connection_factory_create_connection(self) -> SocketConnection: ...
+
+ def get_available_bytes(self) -> builtins.int: ...
+
+ def get_blocking(self) -> builtins.bool: ...
+
+ def get_broadcast(self) -> builtins.bool: ...
+
+ def get_credentials(self) -> Credentials: ...
+
+ def get_family(self) -> SocketFamily: ...
+
+ def get_fd(self) -> builtins.int: ...
+
+ def get_keepalive(self) -> builtins.bool: ...
+
+ def get_listen_backlog(self) -> builtins.int: ...
+
+ def get_local_address(self) -> SocketAddress: ...
+
+ def get_multicast_loopback(self) -> builtins.bool: ...
+
+ def get_multicast_ttl(self) -> builtins.int: ...
+
+ def get_option(self, level: builtins.int, optname: builtins.int) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def get_protocol(self) -> SocketProtocol: ...
+
+ def get_remote_address(self) -> SocketAddress: ...
+
+ def get_socket_type(self) -> SocketType: ...
+
+ def get_timeout(self) -> builtins.int: ...
+
+ def get_ttl(self) -> builtins.int: ...
+
+ def is_closed(self) -> builtins.bool: ...
+
+ def is_connected(self) -> builtins.bool: ...
+
+ def join_multicast_group(self, group: InetAddress, source_specific: builtins.bool, iface: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def join_multicast_group_ssm(self, group: InetAddress, source_specific: typing.Optional[InetAddress], iface: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def leave_multicast_group(self, group: InetAddress, source_specific: builtins.bool, iface: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def leave_multicast_group_ssm(self, group: InetAddress, source_specific: typing.Optional[InetAddress], iface: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def listen(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(family: SocketFamily, type: SocketType, protocol: SocketProtocol, **kwargs) -> Socket: ... # type: ignore
+
+ @staticmethod
+ def new_from_fd(fd: builtins.int) -> Socket: ...
+
+ def receive(self, buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def receive_from(self, buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.int, SocketAddress]: ...
+
+ def receive_message(self, vectors: typing.Sequence[InputVector], flags: builtins.int, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.int, SocketAddress, typing.Sequence[SocketControlMessage], builtins.int]: ...
+
+ def receive_messages(self, messages: typing.Sequence[InputMessage], flags: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ... # type: ignore
+
+ def receive_with_blocking(self, buffer: builtins.bytes, blocking: builtins.bool, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def send(self, buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def send_message(self, address: typing.Optional[SocketAddress], vectors: typing.Sequence[OutputVector], messages: typing.Optional[typing.Sequence[SocketControlMessage]], flags: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def send_message_with_timeout(self, address: typing.Optional[SocketAddress], vectors: typing.Sequence[OutputVector], messages: typing.Optional[typing.Sequence[SocketControlMessage]], flags: builtins.int, timeout_us: builtins.int, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[PollableReturn, builtins.int]: ...
+
+ def send_messages(self, messages: typing.Sequence[OutputMessage], flags: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ... # type: ignore
+
+ def send_to(self, address: typing.Optional[SocketAddress], buffer: builtins.bytes, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def send_with_blocking(self, buffer: builtins.bytes, blocking: builtins.bool, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def set_blocking(self, blocking: builtins.bool) -> None: ...
+
+ def set_broadcast(self, broadcast: builtins.bool) -> None: ...
+
+ def set_keepalive(self, keepalive: builtins.bool) -> None: ...
+
+ def set_listen_backlog(self, backlog: builtins.int) -> None: ...
+
+ def set_multicast_loopback(self, loopback: builtins.bool) -> None: ...
+
+ def set_multicast_ttl(self, ttl: builtins.int) -> None: ...
+
+ def set_option(self, level: builtins.int, optname: builtins.int, value: builtins.int) -> builtins.bool: ...
+
+ def set_timeout(self, timeout: builtins.int) -> None: ...
+
+ def set_ttl(self, ttl: builtins.int) -> None: ...
+
+ def shutdown(self, shutdown_read: builtins.bool, shutdown_write: builtins.bool) -> builtins.bool: ...
+
+ def speaks_ipv4(self) -> builtins.bool: ...
+
+
+class Subprocess(GObject.Object, Initable):
+
+ def communicate(self, stdin_buf: typing.Optional[GLib.Bytes], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, typing.Optional[GLib.Bytes], typing.Optional[GLib.Bytes]]: ...
+
+ def communicate_async(self, stdin_buf: typing.Optional[GLib.Bytes], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def communicate_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, typing.Optional[GLib.Bytes], typing.Optional[GLib.Bytes]]: ...
+
+ def communicate_utf8(self, stdin_buf: typing.Optional[builtins.str], cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, typing.Optional[builtins.str], typing.Optional[builtins.str]]: ...
+
+ def communicate_utf8_async(self, stdin_buf: typing.Optional[builtins.str], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def communicate_utf8_finish(self, result: AsyncResult) -> typing.Tuple[builtins.bool, typing.Optional[builtins.str], typing.Optional[builtins.str]]: ...
+
+ def force_exit(self) -> None: ...
+
+ def get_exit_status(self) -> builtins.int: ...
+
+ def get_identifier(self) -> typing.Optional[builtins.str]: ...
+
+ def get_if_exited(self) -> builtins.bool: ...
+
+ def get_if_signaled(self) -> builtins.bool: ...
+
+ def get_status(self) -> builtins.int: ...
+
+ def get_stderr_pipe(self) -> InputStream: ...
+
+ def get_stdin_pipe(self) -> OutputStream: ...
+
+ def get_stdout_pipe(self) -> InputStream: ...
+
+ def get_successful(self) -> builtins.bool: ...
+
+ def get_term_sig(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(argv: typing.Sequence[builtins.str], flags: SubprocessFlags, **kwargs) -> Subprocess: ... # type: ignore
+
+ def send_signal(self, signal_num: builtins.int) -> None: ...
+
+ def wait(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def wait_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def wait_check(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def wait_check_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def wait_check_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def wait_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+
+class FilterInputStream(InputStream):
+ base_stream: InputStream
+ parent_instance: InputStream
+
+ def get_base_stream(self) -> InputStream: ...
+
+ def get_close_base_stream(self) -> builtins.bool: ...
+
+ def set_close_base_stream(self, close_base: builtins.bool) -> None: ...
+
+
+class ListStore(GObject.Object, ListModel):
+
+ def append(self, item: GObject.Object) -> None: ...
+
+ def find(self, item: GObject.Object) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def find_with_equal_func(self, item: GObject.Object, equal_func: GLib.EqualFunc) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def insert(self, position: builtins.int, item: GObject.Object) -> None: ...
+
+ def insert_sorted(self, item: GObject.Object, compare_func: GLib.CompareDataFunc, *user_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ @staticmethod
+ def new(item_type: GObject.GType, **kwargs) -> ListStore: ... # type: ignore
+
+ def remove(self, position: builtins.int) -> None: ...
+
+ def remove_all(self) -> None: ...
+
+ def sort(self, compare_func: GLib.CompareDataFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def splice(self, position: builtins.int, n_removals: builtins.int, additions: typing.Sequence[GObject.Object]) -> None: ...
+
+
+class BytesIcon(GObject.Object, Icon, LoadableIcon):
+
+ def get_bytes(self) -> GLib.Bytes: ...
+
+ @staticmethod
+ def new(bytes: GLib.Bytes, **kwargs) -> BytesIcon: ... # type: ignore
+
+
+class FileIcon(GObject.Object, Icon, LoadableIcon):
+
+ def get_file(self) -> File: ...
+
+ @staticmethod
+ def new(file: File, **kwargs) -> FileIcon: ... # type: ignore
+
+
+class DBusMenuModel(MenuModel):
+
+ @staticmethod
+ def get(connection: DBusConnection, bus_name: typing.Optional[builtins.str], object_path: builtins.str) -> DBusMenuModel: ...
+
+
+class Menu(MenuModel):
+
+ def append(self, label: typing.Optional[builtins.str], detailed_action: typing.Optional[builtins.str]) -> None: ...
+
+ def append_item(self, item: MenuItem) -> None: ...
+
+ def append_section(self, label: typing.Optional[builtins.str], section: MenuModel) -> None: ...
+
+ def append_submenu(self, label: typing.Optional[builtins.str], submenu: MenuModel) -> None: ...
+
+ def freeze(self) -> None: ...
+
+ def insert(self, position: builtins.int, label: typing.Optional[builtins.str], detailed_action: typing.Optional[builtins.str]) -> None: ...
+
+ def insert_item(self, position: builtins.int, item: MenuItem) -> None: ...
+
+ def insert_section(self, position: builtins.int, label: typing.Optional[builtins.str], section: MenuModel) -> None: ...
+
+ def insert_submenu(self, position: builtins.int, label: typing.Optional[builtins.str], submenu: MenuModel) -> None: ...
+
+ @staticmethod
+ def new() -> Menu: ...
+
+ def prepend(self, label: typing.Optional[builtins.str], detailed_action: typing.Optional[builtins.str]) -> None: ...
+
+ def prepend_item(self, item: MenuItem) -> None: ...
+
+ def prepend_section(self, label: typing.Optional[builtins.str], section: MenuModel) -> None: ...
+
+ def prepend_submenu(self, label: typing.Optional[builtins.str], submenu: MenuModel) -> None: ...
+
+ def remove(self, position: builtins.int) -> None: ...
+
+ def remove_all(self) -> None: ...
+
+
+class FilterOutputStream(OutputStream):
+ base_stream: OutputStream
+ parent_instance: OutputStream
+
+ def get_base_stream(self) -> OutputStream: ...
+
+ def get_close_base_stream(self) -> builtins.bool: ...
+
+ def set_close_base_stream(self, close_base: builtins.bool) -> None: ...
+
+
+class SimplePermission(Permission):
+
+ @staticmethod
+ def new(allowed: builtins.bool) -> Permission: ...
+
+
+class UnixInputStream(InputStream, FileDescriptorBased, PollableInputStream):
+ parent_instance: InputStream
+
+ def get_close_fd(self) -> builtins.bool: ...
+
+ def get_fd(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(fd: builtins.int, close_fd: builtins.bool) -> InputStream: ...
+
+ def set_close_fd(self, close_fd: builtins.bool) -> None: ...
+
+
+class UnixOutputStream(OutputStream, FileDescriptorBased, PollableOutputStream):
+ parent_instance: OutputStream
+
+ def get_close_fd(self) -> builtins.bool: ...
+
+ def get_fd(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(fd: builtins.int, close_fd: builtins.bool) -> OutputStream: ...
+
+ def set_close_fd(self, close_fd: builtins.bool) -> None: ...
+
+
+class SimpleProxyResolver(GObject.Object, ProxyResolver):
+ parent_instance: GObject.Object
+
+ @staticmethod
+ def new(default_proxy: typing.Optional[builtins.str], ignore_hosts: typing.Optional[builtins.str], **kwargs) -> ProxyResolver: ... # type: ignore
+
+ def set_default_proxy(self, default_proxy: builtins.str) -> None: ...
+
+ def set_ignore_hosts(self, ignore_hosts: builtins.str) -> None: ...
+
+ def set_uri_proxy(self, uri_scheme: builtins.str, proxy: builtins.str) -> None: ...
+
+
+class DBusActionGroup(GObject.Object, ActionGroup, RemoteActionGroup):
+
+ @staticmethod
+ def get(connection: DBusConnection, bus_name: typing.Optional[builtins.str], object_path: builtins.str) -> DBusActionGroup: ...
+
+
+class FileIOStream(IOStream, Seekable):
+ parent_instance: IOStream
+
+ def get_etag(self) -> builtins.str: ...
+
+ def query_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def query_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def query_info_finish(self, result: AsyncResult) -> FileInfo: ...
+
+ def do_can_seek(self) -> builtins.bool: ...
+
+ def do_can_truncate(self) -> builtins.bool: ...
+
+ def do_get_etag(self) -> builtins.str: ...
+
+ def do_query_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def do_query_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_query_info_finish(self, result: AsyncResult) -> FileInfo: ...
+
+ def do_seek(self, offset: builtins.int, type: GLib.SeekType, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_tell(self) -> builtins.int: ...
+
+ def do_truncate_fn(self, size: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+
+class FileInputStream(InputStream, Seekable):
+ parent_instance: InputStream
+
+ def query_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def query_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def query_info_finish(self, result: AsyncResult) -> FileInfo: ...
+
+ def do_can_seek(self) -> builtins.bool: ...
+
+ def do_query_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def do_query_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_query_info_finish(self, result: AsyncResult) -> FileInfo: ...
+
+ def do_seek(self, offset: builtins.int, type: GLib.SeekType, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_tell(self) -> builtins.int: ...
+
+
+class FileOutputStream(OutputStream, Seekable):
+ parent_instance: OutputStream
+
+ def get_etag(self) -> builtins.str: ...
+
+ def query_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def query_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def query_info_finish(self, result: AsyncResult) -> FileInfo: ...
+
+ def do_can_seek(self) -> builtins.bool: ...
+
+ def do_can_truncate(self) -> builtins.bool: ...
+
+ def do_get_etag(self) -> builtins.str: ...
+
+ def do_query_info(self, attributes: builtins.str, cancellable: typing.Optional[Cancellable]) -> FileInfo: ...
+
+ def do_query_info_async(self, attributes: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_query_info_finish(self, result: AsyncResult) -> FileInfo: ...
+
+ def do_seek(self, offset: builtins.int, type: GLib.SeekType, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def do_tell(self) -> builtins.int: ...
+
+ def do_truncate_fn(self, size: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+
+class MemoryInputStream(InputStream, PollableInputStream, Seekable):
+ parent_instance: InputStream
+
+ def add_bytes(self, bytes: GLib.Bytes) -> None: ...
+
+ def add_data(self, data: builtins.bytes, destroy: typing.Optional[GLib.DestroyNotify]) -> None: ...
+
+ @staticmethod
+ def new() -> InputStream: ...
+
+ @staticmethod
+ def new_from_bytes(bytes: GLib.Bytes) -> InputStream: ...
+
+ @staticmethod
+ def new_from_data(data: builtins.bytes, destroy: typing.Optional[GLib.DestroyNotify]) -> InputStream: ...
+
+
+class MemoryOutputStream(OutputStream, PollableOutputStream, Seekable):
+ parent_instance: OutputStream
+
+ def get_data(self) -> typing.Optional[builtins.object]: ... # type: ignore
+
+ def get_data_size(self) -> builtins.int: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ @staticmethod
+ def new_resizable() -> OutputStream: ...
+
+ def steal_as_bytes(self) -> GLib.Bytes: ...
+
+ def steal_data(self) -> typing.Optional[builtins.object]: ... # type: ignore
+
+
+class ProxyAddressEnumerator(SocketAddressEnumerator):
+ parent_instance: SocketAddressEnumerator
+
+
+class NetworkAddress(GObject.Object, SocketConnectable):
+ parent_instance: GObject.Object
+
+ def get_hostname(self) -> builtins.str: ...
+
+ def get_port(self) -> builtins.int: ...
+
+ def get_scheme(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(hostname: builtins.str, port: builtins.int, **kwargs) -> NetworkAddress: ... # type: ignore
+
+ @staticmethod
+ def new_loopback(port: builtins.int) -> NetworkAddress: ...
+
+ @staticmethod
+ def parse(host_and_port: builtins.str, default_port: builtins.int) -> NetworkAddress: ...
+
+ @staticmethod
+ def parse_uri(uri: builtins.str, default_port: builtins.int) -> NetworkAddress: ...
+
+
+class NetworkService(GObject.Object, SocketConnectable):
+ parent_instance: GObject.Object
+
+ def get_domain(self) -> builtins.str: ...
+
+ def get_protocol(self) -> builtins.str: ...
+
+ def get_scheme(self) -> builtins.str: ...
+
+ def get_service(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(service: builtins.str, protocol: builtins.str, domain: builtins.str, **kwargs) -> NetworkService: ... # type: ignore
+
+ def set_scheme(self, scheme: builtins.str) -> None: ...
+
+
+class SocketAddress(GObject.Object, SocketConnectable):
+ parent_instance: GObject.Object
+
+ def get_family(self) -> SocketFamily: ...
+
+ def get_native_size(self) -> builtins.int: ...
+
+ @staticmethod
+ def new_from_native(native: builtins.object, len: builtins.int) -> SocketAddress: ...
+
+ def to_native(self, dest: typing.Optional[builtins.object], destlen: builtins.int) -> builtins.bool: ...
+
+ def do_get_family(self) -> SocketFamily: ...
+
+ def do_get_native_size(self) -> builtins.int: ...
+
+ def do_to_native(self, dest: typing.Optional[builtins.object], destlen: builtins.int) -> builtins.bool: ...
+
+
+class UnixCredentialsMessage(SocketControlMessage):
+ parent_instance: SocketControlMessage
+
+ def get_credentials(self) -> Credentials: ...
+
+ @staticmethod
+ def is_supported() -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> SocketControlMessage: ...
+
+ @staticmethod
+ def new_with_credentials(credentials: Credentials) -> SocketControlMessage: ...
+
+
+class UnixFDMessage(SocketControlMessage):
+ parent_instance: SocketControlMessage
+
+ def append_fd(self, fd: builtins.int) -> builtins.bool: ...
+
+ def get_fd_list(self) -> UnixFDList: ...
+
+ @staticmethod
+ def new() -> SocketControlMessage: ...
+
+ @staticmethod
+ def new_with_fd_list(fd_list: UnixFDList) -> SocketControlMessage: ...
+
+ def steal_fds(self) -> typing.Sequence[builtins.int]: ...
+
+
+class SocketService(SocketListener):
+ parent_instance: SocketListener
+
+ def is_active(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> SocketService: ... # type: ignore
+
+ def start(self) -> None: ...
+
+ def stop(self) -> None: ...
+
+ def do_incoming(self, connection: SocketConnection, source_object: GObject.Object) -> builtins.bool: ...
+
+
+class NativeVolumeMonitor(VolumeMonitor):
+ parent_instance: VolumeMonitor
+
+
+class TcpConnection(SocketConnection):
+ parent_instance: SocketConnection
+
+ def get_graceful_disconnect(self) -> builtins.bool: ...
+
+ def set_graceful_disconnect(self, graceful_disconnect: builtins.bool) -> None: ...
+
+
+class UnixConnection(SocketConnection):
+ parent_instance: SocketConnection
+
+ def receive_credentials(self, cancellable: typing.Optional[Cancellable]) -> Credentials: ...
+
+ def receive_credentials_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def receive_credentials_finish(self, result: AsyncResult) -> Credentials: ...
+
+ def receive_fd(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def send_credentials(self, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def send_credentials_async(self, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def send_credentials_finish(self, result: AsyncResult) -> builtins.bool: ...
+
+ def send_fd(self, fd: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+
+class BufferedInputStream(FilterInputStream, Seekable):
+ parent_instance: FilterInputStream
+
+ def fill(self, count: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def fill_async(self, count: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def fill_finish(self, result: AsyncResult) -> builtins.int: ...
+
+ def get_available(self) -> builtins.int: ...
+
+ def get_buffer_size(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(base_stream: InputStream) -> InputStream: ...
+
+ @staticmethod
+ def new_sized(base_stream: InputStream, size: builtins.int) -> InputStream: ...
+
+ def peek(self, buffer: builtins.bytes, offset: builtins.int) -> builtins.int: ...
+
+ def peek_buffer(self) -> builtins.bytes: ...
+
+ def read_byte(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def set_buffer_size(self, size: builtins.int) -> None: ...
+
+ def do_fill(self, count: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def do_fill_async(self, count: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_fill_finish(self, result: AsyncResult) -> builtins.int: ...
+
+
+class ConverterInputStream(FilterInputStream, PollableInputStream):
+ parent_instance: FilterInputStream
+
+ def get_converter(self) -> Converter: ...
+
+ @staticmethod
+ def new(base_stream: InputStream, converter: Converter) -> InputStream: ...
+
+
+class BufferedOutputStream(FilterOutputStream, Seekable):
+ parent_instance: FilterOutputStream
+
+ def get_auto_grow(self) -> builtins.bool: ...
+
+ def get_buffer_size(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(base_stream: OutputStream) -> OutputStream: ...
+
+ @staticmethod
+ def new_sized(base_stream: OutputStream, size: builtins.int) -> OutputStream: ...
+
+ def set_auto_grow(self, auto_grow: builtins.bool) -> None: ...
+
+ def set_buffer_size(self, size: builtins.int) -> None: ...
+
+
+class ConverterOutputStream(FilterOutputStream, PollableOutputStream):
+ parent_instance: FilterOutputStream
+
+ def get_converter(self) -> Converter: ...
+
+ @staticmethod
+ def new(base_stream: OutputStream, converter: Converter) -> OutputStream: ...
+
+
+class DataOutputStream(FilterOutputStream, Seekable):
+ parent_instance: FilterOutputStream
+
+ def get_byte_order(self) -> DataStreamByteOrder: ...
+
+ @staticmethod
+ def new(base_stream: OutputStream) -> DataOutputStream: ...
+
+ def put_byte(self, data: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def put_int16(self, data: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def put_int32(self, data: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def put_int64(self, data: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def put_string(self, str: builtins.str, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def put_uint16(self, data: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def put_uint32(self, data: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def put_uint64(self, data: builtins.int, cancellable: typing.Optional[Cancellable]) -> builtins.bool: ...
+
+ def set_byte_order(self, order: DataStreamByteOrder) -> None: ...
+
+
+class InetSocketAddress(SocketAddress):
+ parent_instance: SocketAddress
+
+ def get_address(self) -> InetAddress: ...
+
+ def get_flowinfo(self) -> builtins.int: ...
+
+ def get_port(self) -> builtins.int: ...
+
+ def get_scope_id(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(address: InetAddress, port: builtins.int) -> SocketAddress: ...
+
+ @staticmethod
+ def new_from_string(address: builtins.str, port: builtins.int) -> SocketAddress: ...
+
+
+class NativeSocketAddress(SocketAddress):
+ parent_instance: SocketAddress
+
+ @staticmethod
+ def new(native: typing.Optional[builtins.object], len: builtins.int) -> SocketAddress: ...
+
+
+class UnixSocketAddress(SocketAddress):
+ parent_instance: SocketAddress
+
+ @staticmethod
+ def abstract_names_supported() -> builtins.bool: ...
+
+ def get_address_type(self) -> UnixSocketAddressType: ...
+
+ def get_is_abstract(self) -> builtins.bool: ...
+
+ def get_path(self) -> builtins.str: ...
+
+ def get_path_len(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(path: builtins.str) -> SocketAddress: ...
+
+ @staticmethod
+ def new_abstract(path: typing.Sequence[builtins.int]) -> SocketAddress: ...
+
+ @staticmethod
+ def new_with_type(path: typing.Sequence[builtins.int], type: UnixSocketAddressType) -> SocketAddress: ...
+
+
+class ThreadedSocketService(SocketService):
+ parent_instance: SocketService
+
+ @staticmethod
+ def new(max_threads: builtins.int) -> SocketService: ... # type: ignore
+
+ def do_run(self, connection: SocketConnection, source_object: GObject.Object) -> builtins.bool: ...
+
+
+class TcpWrapperConnection(TcpConnection):
+ parent_instance: TcpConnection
+
+ def get_base_io_stream(self) -> IOStream: ...
+
+ @staticmethod
+ def new(base_io_stream: IOStream, socket: Socket) -> SocketConnection: ...
+
+
+class DataInputStream(BufferedInputStream):
+ parent_instance: BufferedInputStream
+
+ def get_byte_order(self) -> DataStreamByteOrder: ...
+
+ def get_newline_type(self) -> DataStreamNewlineType: ...
+
+ @staticmethod
+ def new(base_stream: InputStream) -> DataInputStream: ...
+
+ def read_byte(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def read_int16(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def read_int32(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def read_int64(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def read_line(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[typing.Optional[builtins.bytes], builtins.int]: ...
+
+ def read_line_async(self, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def read_line_finish(self, result: AsyncResult) -> typing.Tuple[typing.Optional[builtins.bytes], builtins.int]: ...
+
+ def read_line_finish_utf8(self, result: AsyncResult) -> typing.Tuple[typing.Optional[builtins.str], builtins.int]: ...
+
+ def read_line_utf8(self, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[typing.Optional[builtins.str], builtins.int]: ...
+
+ def read_uint16(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def read_uint32(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def read_uint64(self, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+ def read_until(self, stop_chars: builtins.str, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def read_until_async(self, stop_chars: builtins.str, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def read_until_finish(self, result: AsyncResult) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def read_upto(self, stop_chars: builtins.str, stop_chars_len: builtins.int, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def read_upto_async(self, stop_chars: builtins.str, stop_chars_len: builtins.int, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def read_upto_finish(self, result: AsyncResult) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def set_byte_order(self, order: DataStreamByteOrder) -> None: ...
+
+ def set_newline_type(self, type: DataStreamNewlineType) -> None: ...
+
+
+class ProxyAddress(InetSocketAddress):
+ parent_instance: InetSocketAddress
+
+ def get_destination_hostname(self) -> builtins.str: ...
+
+ def get_destination_port(self) -> builtins.int: ...
+
+ def get_destination_protocol(self) -> builtins.str: ...
+
+ def get_password(self) -> builtins.str: ...
+
+ def get_protocol(self) -> builtins.str: ...
+
+ def get_uri(self) -> builtins.str: ...
+
+ def get_username(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(inetaddr: InetAddress, port: builtins.int, protocol: builtins.str, dest_hostname: builtins.str, dest_port: builtins.int, username: typing.Optional[builtins.str], password: typing.Optional[builtins.str]) -> SocketAddress: ... # type: ignore
+
+
+class ActionEntry():
+ activate: builtins.object
+ change_state: builtins.object
+ name: builtins.str
+ padding: typing.Sequence[builtins.int]
+ parameter_type: builtins.str
+ state: builtins.str
+
+
+class DBusAnnotationInfo():
+ annotations: typing.Sequence[DBusAnnotationInfo]
+ key: builtins.str
+ ref_count: builtins.int
+ value: builtins.str
+
+ @staticmethod
+ def lookup(annotations: typing.Optional[typing.Sequence[DBusAnnotationInfo]], name: builtins.str) -> builtins.str: ...
+
+ def ref(self) -> DBusAnnotationInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class DBusArgInfo():
+ annotations: typing.Sequence[DBusAnnotationInfo]
+ name: builtins.str
+ ref_count: builtins.int
+ signature: builtins.str
+
+ def ref(self) -> DBusArgInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class DBusErrorEntry():
+ dbus_error_name: builtins.str
+ error_code: builtins.int
+
+
+class DBusInterfaceInfo():
+ annotations: typing.Sequence[DBusAnnotationInfo]
+ methods: typing.Sequence[DBusMethodInfo]
+ name: builtins.str
+ properties: typing.Sequence[DBusPropertyInfo]
+ ref_count: builtins.int
+ signals: typing.Sequence[DBusSignalInfo]
+
+ def cache_build(self) -> None: ...
+
+ def cache_release(self) -> None: ...
+
+ def generate_xml(self, indent: builtins.int, string_builder: GLib.String) -> None: ...
+
+ def lookup_method(self, name: builtins.str) -> DBusMethodInfo: ...
+
+ def lookup_property(self, name: builtins.str) -> DBusPropertyInfo: ...
+
+ def lookup_signal(self, name: builtins.str) -> DBusSignalInfo: ...
+
+ def ref(self) -> DBusInterfaceInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class DBusInterfaceVTable():
+ get_property: DBusInterfaceGetPropertyFunc
+ method_call: DBusInterfaceMethodCallFunc
+ padding: typing.Sequence[builtins.object]
+ set_property: DBusInterfaceSetPropertyFunc
+
+
+class DBusMethodInfo():
+ annotations: typing.Sequence[DBusAnnotationInfo]
+ in_args: typing.Sequence[DBusArgInfo]
+ name: builtins.str
+ out_args: typing.Sequence[DBusArgInfo]
+ ref_count: builtins.int
+
+ def ref(self) -> DBusMethodInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class DBusNodeInfo():
+ annotations: typing.Sequence[DBusAnnotationInfo]
+ interfaces: typing.Sequence[DBusInterfaceInfo]
+ nodes: typing.Sequence[DBusNodeInfo]
+ path: builtins.str
+ ref_count: builtins.int
+
+ def generate_xml(self, indent: builtins.int, string_builder: GLib.String) -> None: ...
+
+ def lookup_interface(self, name: builtins.str) -> DBusInterfaceInfo: ...
+
+ @staticmethod
+ def new_for_xml(xml_data: builtins.str) -> DBusNodeInfo: ...
+
+ def ref(self) -> DBusNodeInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class DBusPropertyInfo():
+ annotations: typing.Sequence[DBusAnnotationInfo]
+ flags: DBusPropertyInfoFlags
+ name: builtins.str
+ ref_count: builtins.int
+ signature: builtins.str
+
+ def ref(self) -> DBusPropertyInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class DBusSignalInfo():
+ annotations: typing.Sequence[DBusAnnotationInfo]
+ args: typing.Sequence[DBusArgInfo]
+ name: builtins.str
+ ref_count: builtins.int
+
+ def ref(self) -> DBusSignalInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class DBusSubtreeVTable():
+ dispatch: DBusSubtreeDispatchFunc
+ enumerate: builtins.object
+ introspect: DBusSubtreeIntrospectFunc
+ padding: typing.Sequence[builtins.object]
+
+
+class FileAttributeInfo():
+ flags: FileAttributeInfoFlags
+ name: builtins.str
+ type: FileAttributeType
+
+
+class FileAttributeInfoList():
+ infos: FileAttributeInfo
+ n_infos: builtins.int
+
+ def add(self, name: builtins.str, type: FileAttributeType, flags: FileAttributeInfoFlags) -> None: ...
+
+ def dup(self) -> FileAttributeInfoList: ...
+
+ def lookup(self, name: builtins.str) -> FileAttributeInfo: ...
+
+ @staticmethod
+ def new() -> FileAttributeInfoList: ...
+
+ def ref(self) -> FileAttributeInfoList: ...
+
+ def unref(self) -> None: ...
+
+
+class FileAttributeMatcher():
+
+ def enumerate_namespace(self, ns: builtins.str) -> builtins.bool: ...
+
+ def enumerate_next(self) -> builtins.str: ...
+
+ def matches(self, attribute: builtins.str) -> builtins.bool: ...
+
+ def matches_only(self, attribute: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def new(attributes: builtins.str) -> FileAttributeMatcher: ...
+
+ def ref(self) -> FileAttributeMatcher: ...
+
+ def subtract(self, subtract: FileAttributeMatcher) -> FileAttributeMatcher: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def unref(self) -> None: ...
+
+
+class IOExtension():
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_priority(self) -> builtins.int: ...
+
+ def get_type(self) -> GObject.GType: ...
+
+
+class IOExtensionPoint():
+
+ def get_extension_by_name(self, name: builtins.str) -> IOExtension: ...
+
+ def get_extensions(self) -> typing.Sequence[IOExtension]: ...
+
+ def get_required_type(self) -> GObject.GType: ...
+
+ @staticmethod
+ def implement(extension_point_name: builtins.str, type: GObject.GType, extension_name: builtins.str, priority: builtins.int) -> IOExtension: ...
+
+ @staticmethod
+ def lookup(name: builtins.str) -> IOExtensionPoint: ...
+
+ @staticmethod
+ def register(name: builtins.str) -> IOExtensionPoint: ...
+
+ def set_required_type(self, type: GObject.GType) -> None: ...
+
+
+class IOModuleScope():
+
+ def block(self, basename: builtins.str) -> None: ...
+
+ def free(self) -> None: ...
+
+
+class IOSchedulerJob():
+
+ def send_to_mainloop(self, func: GLib.SourceFunc, *user_data: typing.Optional[builtins.object]) -> builtins.bool: ...
+
+ def send_to_mainloop_async(self, func: GLib.SourceFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+class IOStreamAdapter():
+ ...
+
+
+class InputMessage():
+ address: SocketAddress
+ bytes_received: builtins.int
+ control_messages: typing.Sequence[SocketControlMessage]
+ flags: builtins.int
+ num_control_messages: builtins.int
+ num_vectors: builtins.int
+ vectors: typing.Sequence[InputVector]
+
+
+class InputVector():
+ buffer: builtins.object
+ size: builtins.int
+
+
+class OutputMessage():
+ address: SocketAddress
+ bytes_sent: builtins.int
+ control_messages: typing.Sequence[SocketControlMessage]
+ num_control_messages: builtins.int
+ num_vectors: builtins.int
+ vectors: OutputVector
+
+
+class OutputVector():
+ buffer: builtins.object
+ size: builtins.int
+
+
+class Resource():
+
+ def enumerate_children(self, path: builtins.str, lookup_flags: ResourceLookupFlags) -> typing.Sequence[builtins.str]: ...
+
+ def get_info(self, path: builtins.str, lookup_flags: ResourceLookupFlags) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def load(filename: builtins.str) -> Resource: ...
+
+ def lookup_data(self, path: builtins.str, lookup_flags: ResourceLookupFlags) -> GLib.Bytes: ...
+
+ @staticmethod
+ def new_from_data(data: GLib.Bytes) -> Resource: ...
+
+ def open_stream(self, path: builtins.str, lookup_flags: ResourceLookupFlags) -> InputStream: ...
+
+ def ref(self) -> Resource: ...
+
+ def unref(self) -> None: ...
+
+
+class SettingsSchema():
+
+ def get_id(self) -> builtins.str: ...
+
+ def get_key(self, name: builtins.str) -> SettingsSchemaKey: ...
+
+ def get_path(self) -> builtins.str: ...
+
+ def has_key(self, name: builtins.str) -> builtins.bool: ...
+
+ def list_children(self) -> typing.Sequence[builtins.str]: ...
+
+ def list_keys(self) -> typing.Sequence[builtins.str]: ...
+
+ def ref(self) -> SettingsSchema: ...
+
+ def unref(self) -> None: ...
+
+
+class SettingsSchemaKey():
+
+ def get_default_value(self) -> GLib.Variant: ...
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_range(self) -> GLib.Variant: ...
+
+ def get_summary(self) -> builtins.str: ...
+
+ def get_value_type(self) -> GLib.VariantType: ...
+
+ def range_check(self, value: GLib.Variant) -> builtins.bool: ...
+
+ def ref(self) -> SettingsSchemaKey: ...
+
+ def unref(self) -> None: ...
+
+
+class SettingsSchemaSource():
+
+ @staticmethod
+ def get_default() -> typing.Optional[SettingsSchemaSource]: ...
+
+ def list_schemas(self, recursive: builtins.bool) -> typing.Tuple[typing.Sequence[builtins.str], typing.Sequence[builtins.str]]: ...
+
+ def lookup(self, schema_id: builtins.str, recursive: builtins.bool) -> typing.Optional[SettingsSchema]: ...
+
+ @staticmethod
+ def new_from_directory(directory: builtins.str, parent: typing.Optional[SettingsSchemaSource], trusted: builtins.bool) -> SettingsSchemaSource: ...
+
+ def ref(self) -> SettingsSchemaSource: ...
+
+ def unref(self) -> None: ...
+
+
+class SrvTarget():
+
+ def copy(self) -> SrvTarget: ...
+
+ def free(self) -> None: ...
+
+ def get_hostname(self) -> builtins.str: ...
+
+ def get_port(self) -> builtins.int: ...
+
+ def get_priority(self) -> builtins.int: ...
+
+ def get_weight(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(hostname: builtins.str, port: builtins.int, priority: builtins.int, weight: builtins.int) -> SrvTarget: ...
+
+
+class StaticResource():
+ data: builtins.int
+ data_len: builtins.int
+ next: StaticResource
+ padding: builtins.object
+ resource: Resource
+
+ def fini(self) -> None: ...
+
+ def get_resource(self) -> Resource: ...
+
+ def init(self) -> None: ...
+
+
+class UnixMountEntry():
+ ...
+
+
+class UnixMountPoint():
+
+ def compare(self, mount2: UnixMountPoint) -> builtins.int: ...
+
+ def copy(self) -> UnixMountPoint: ...
+
+ def free(self) -> None: ...
+
+ def get_device_path(self) -> builtins.str: ...
+
+ def get_fs_type(self) -> builtins.str: ...
+
+ def get_mount_path(self) -> builtins.str: ...
+
+ def get_options(self) -> builtins.str: ...
+
+ def guess_can_eject(self) -> builtins.bool: ...
+
+ def guess_icon(self) -> Icon: ...
+
+ def guess_name(self) -> builtins.str: ...
+
+ def guess_symbolic_icon(self) -> Icon: ...
+
+ def is_loopback(self) -> builtins.bool: ...
+
+ def is_readonly(self) -> builtins.bool: ...
+
+ def is_user_mountable(self) -> builtins.bool: ...
+
+
+class AppInfoCreateFlags(GObject.GFlags, builtins.int):
+ NEEDS_TERMINAL = ... # type: AppInfoCreateFlags
+ NONE = ... # type: AppInfoCreateFlags
+ SUPPORTS_STARTUP_NOTIFICATION = ... # type: AppInfoCreateFlags
+ SUPPORTS_URIS = ... # type: AppInfoCreateFlags
+
+
+class ApplicationFlags(GObject.GFlags, builtins.int):
+ ALLOW_REPLACEMENT = ... # type: ApplicationFlags
+ CAN_OVERRIDE_APP_ID = ... # type: ApplicationFlags
+ FLAGS_NONE = ... # type: ApplicationFlags
+ HANDLES_COMMAND_LINE = ... # type: ApplicationFlags
+ HANDLES_OPEN = ... # type: ApplicationFlags
+ IS_LAUNCHER = ... # type: ApplicationFlags
+ IS_SERVICE = ... # type: ApplicationFlags
+ NON_UNIQUE = ... # type: ApplicationFlags
+ REPLACE = ... # type: ApplicationFlags
+ SEND_ENVIRONMENT = ... # type: ApplicationFlags
+
+
+class AskPasswordFlags(GObject.GFlags, builtins.int):
+ ANONYMOUS_SUPPORTED = ... # type: AskPasswordFlags
+ NEED_DOMAIN = ... # type: AskPasswordFlags
+ NEED_PASSWORD = ... # type: AskPasswordFlags
+ NEED_USERNAME = ... # type: AskPasswordFlags
+ SAVING_SUPPORTED = ... # type: AskPasswordFlags
+ TCRYPT = ... # type: AskPasswordFlags
+
+
+class BusNameOwnerFlags(GObject.GFlags, builtins.int):
+ ALLOW_REPLACEMENT = ... # type: BusNameOwnerFlags
+ DO_NOT_QUEUE = ... # type: BusNameOwnerFlags
+ NONE = ... # type: BusNameOwnerFlags
+ REPLACE = ... # type: BusNameOwnerFlags
+
+
+class BusNameWatcherFlags(GObject.GFlags, builtins.int):
+ AUTO_START = ... # type: BusNameWatcherFlags
+ NONE = ... # type: BusNameWatcherFlags
+
+
+class ConverterFlags(GObject.GFlags, builtins.int):
+ FLUSH = ... # type: ConverterFlags
+ INPUT_AT_END = ... # type: ConverterFlags
+ NONE = ... # type: ConverterFlags
+
+
+class DBusCallFlags(GObject.GFlags, builtins.int):
+ ALLOW_INTERACTIVE_AUTHORIZATION = ... # type: DBusCallFlags
+ NONE = ... # type: DBusCallFlags
+ NO_AUTO_START = ... # type: DBusCallFlags
+
+
+class DBusCapabilityFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: DBusCapabilityFlags
+ UNIX_FD_PASSING = ... # type: DBusCapabilityFlags
+
+
+class DBusConnectionFlags(GObject.GFlags, builtins.int):
+ AUTHENTICATION_ALLOW_ANONYMOUS = ... # type: DBusConnectionFlags
+ AUTHENTICATION_CLIENT = ... # type: DBusConnectionFlags
+ AUTHENTICATION_SERVER = ... # type: DBusConnectionFlags
+ DELAY_MESSAGE_PROCESSING = ... # type: DBusConnectionFlags
+ MESSAGE_BUS_CONNECTION = ... # type: DBusConnectionFlags
+ NONE = ... # type: DBusConnectionFlags
+
+
+class DBusInterfaceSkeletonFlags(GObject.GFlags, builtins.int):
+ HANDLE_METHOD_INVOCATIONS_IN_THREAD = ... # type: DBusInterfaceSkeletonFlags
+ NONE = ... # type: DBusInterfaceSkeletonFlags
+
+
+class DBusMessageFlags(GObject.GFlags, builtins.int):
+ ALLOW_INTERACTIVE_AUTHORIZATION = ... # type: DBusMessageFlags
+ NONE = ... # type: DBusMessageFlags
+ NO_AUTO_START = ... # type: DBusMessageFlags
+ NO_REPLY_EXPECTED = ... # type: DBusMessageFlags
+
+
+class DBusObjectManagerClientFlags(GObject.GFlags, builtins.int):
+ DO_NOT_AUTO_START = ... # type: DBusObjectManagerClientFlags
+ NONE = ... # type: DBusObjectManagerClientFlags
+
+
+class DBusPropertyInfoFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: DBusPropertyInfoFlags
+ READABLE = ... # type: DBusPropertyInfoFlags
+ WRITABLE = ... # type: DBusPropertyInfoFlags
+
+
+class DBusProxyFlags(GObject.GFlags, builtins.int):
+ DO_NOT_AUTO_START = ... # type: DBusProxyFlags
+ DO_NOT_AUTO_START_AT_CONSTRUCTION = ... # type: DBusProxyFlags
+ DO_NOT_CONNECT_SIGNALS = ... # type: DBusProxyFlags
+ DO_NOT_LOAD_PROPERTIES = ... # type: DBusProxyFlags
+ GET_INVALIDATED_PROPERTIES = ... # type: DBusProxyFlags
+ NONE = ... # type: DBusProxyFlags
+
+
+class DBusSendMessageFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: DBusSendMessageFlags
+ PRESERVE_SERIAL = ... # type: DBusSendMessageFlags
+
+
+class DBusServerFlags(GObject.GFlags, builtins.int):
+ AUTHENTICATION_ALLOW_ANONYMOUS = ... # type: DBusServerFlags
+ NONE = ... # type: DBusServerFlags
+ RUN_IN_THREAD = ... # type: DBusServerFlags
+
+
+class DBusSignalFlags(GObject.GFlags, builtins.int):
+ MATCH_ARG0_NAMESPACE = ... # type: DBusSignalFlags
+ MATCH_ARG0_PATH = ... # type: DBusSignalFlags
+ NONE = ... # type: DBusSignalFlags
+ NO_MATCH_RULE = ... # type: DBusSignalFlags
+
+
+class DBusSubtreeFlags(GObject.GFlags, builtins.int):
+ DISPATCH_TO_UNENUMERATED_NODES = ... # type: DBusSubtreeFlags
+ NONE = ... # type: DBusSubtreeFlags
+
+
+class DriveStartFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: DriveStartFlags
+
+
+class FileAttributeInfoFlags(GObject.GFlags, builtins.int):
+ COPY_WHEN_MOVED = ... # type: FileAttributeInfoFlags
+ COPY_WITH_FILE = ... # type: FileAttributeInfoFlags
+ NONE = ... # type: FileAttributeInfoFlags
+
+
+class FileCopyFlags(GObject.GFlags, builtins.int):
+ ALL_METADATA = ... # type: FileCopyFlags
+ BACKUP = ... # type: FileCopyFlags
+ NOFOLLOW_SYMLINKS = ... # type: FileCopyFlags
+ NONE = ... # type: FileCopyFlags
+ NO_FALLBACK_FOR_MOVE = ... # type: FileCopyFlags
+ OVERWRITE = ... # type: FileCopyFlags
+ TARGET_DEFAULT_PERMS = ... # type: FileCopyFlags
+
+
+class FileCreateFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: FileCreateFlags
+ PRIVATE = ... # type: FileCreateFlags
+ REPLACE_DESTINATION = ... # type: FileCreateFlags
+
+
+class FileMeasureFlags(GObject.GFlags, builtins.int):
+ APPARENT_SIZE = ... # type: FileMeasureFlags
+ NONE = ... # type: FileMeasureFlags
+ NO_XDEV = ... # type: FileMeasureFlags
+ REPORT_ANY_ERROR = ... # type: FileMeasureFlags
+
+
+class FileMonitorFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: FileMonitorFlags
+ SEND_MOVED = ... # type: FileMonitorFlags
+ WATCH_HARD_LINKS = ... # type: FileMonitorFlags
+ WATCH_MOUNTS = ... # type: FileMonitorFlags
+ WATCH_MOVES = ... # type: FileMonitorFlags
+
+
+class FileQueryInfoFlags(GObject.GFlags, builtins.int):
+ NOFOLLOW_SYMLINKS = ... # type: FileQueryInfoFlags
+ NONE = ... # type: FileQueryInfoFlags
+
+
+class IOStreamSpliceFlags(GObject.GFlags, builtins.int):
+ CLOSE_STREAM1 = ... # type: IOStreamSpliceFlags
+ CLOSE_STREAM2 = ... # type: IOStreamSpliceFlags
+ NONE = ... # type: IOStreamSpliceFlags
+ WAIT_FOR_BOTH = ... # type: IOStreamSpliceFlags
+
+
+class MountMountFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: MountMountFlags
+
+
+class MountUnmountFlags(GObject.GFlags, builtins.int):
+ FORCE = ... # type: MountUnmountFlags
+ NONE = ... # type: MountUnmountFlags
+
+
+class OutputStreamSpliceFlags(GObject.GFlags, builtins.int):
+ CLOSE_SOURCE = ... # type: OutputStreamSpliceFlags
+ CLOSE_TARGET = ... # type: OutputStreamSpliceFlags
+ NONE = ... # type: OutputStreamSpliceFlags
+
+
+class ResolverNameLookupFlags(GObject.GFlags, builtins.int):
+ DEFAULT = ... # type: ResolverNameLookupFlags
+ IPV4_ONLY = ... # type: ResolverNameLookupFlags
+ IPV6_ONLY = ... # type: ResolverNameLookupFlags
+
+
+class ResourceFlags(GObject.GFlags, builtins.int):
+ COMPRESSED = ... # type: ResourceFlags
+ NONE = ... # type: ResourceFlags
+
+
+class ResourceLookupFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: ResourceLookupFlags
+
+
+class SettingsBindFlags(GObject.GFlags, builtins.int):
+ DEFAULT = ... # type: SettingsBindFlags
+ GET = ... # type: SettingsBindFlags
+ GET_NO_CHANGES = ... # type: SettingsBindFlags
+ INVERT_BOOLEAN = ... # type: SettingsBindFlags
+ NO_SENSITIVITY = ... # type: SettingsBindFlags
+ SET = ... # type: SettingsBindFlags
+
+
+class SocketMsgFlags(GObject.GFlags, builtins.int):
+ DONTROUTE = ... # type: SocketMsgFlags
+ NONE = ... # type: SocketMsgFlags
+ OOB = ... # type: SocketMsgFlags
+ PEEK = ... # type: SocketMsgFlags
+
+
+class SubprocessFlags(GObject.GFlags, builtins.int):
+ INHERIT_FDS = ... # type: SubprocessFlags
+ NONE = ... # type: SubprocessFlags
+ STDERR_MERGE = ... # type: SubprocessFlags
+ STDERR_PIPE = ... # type: SubprocessFlags
+ STDERR_SILENCE = ... # type: SubprocessFlags
+ STDIN_INHERIT = ... # type: SubprocessFlags
+ STDIN_PIPE = ... # type: SubprocessFlags
+ STDOUT_PIPE = ... # type: SubprocessFlags
+ STDOUT_SILENCE = ... # type: SubprocessFlags
+
+
+class TestDBusFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: TestDBusFlags
+
+
+class TlsCertificateFlags(GObject.GFlags, builtins.int):
+ BAD_IDENTITY = ... # type: TlsCertificateFlags
+ EXPIRED = ... # type: TlsCertificateFlags
+ GENERIC_ERROR = ... # type: TlsCertificateFlags
+ INSECURE = ... # type: TlsCertificateFlags
+ NOT_ACTIVATED = ... # type: TlsCertificateFlags
+ REVOKED = ... # type: TlsCertificateFlags
+ UNKNOWN_CA = ... # type: TlsCertificateFlags
+ VALIDATE_ALL = ... # type: TlsCertificateFlags
+
+
+class TlsDatabaseVerifyFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: TlsDatabaseVerifyFlags
+
+
+class TlsPasswordFlags(GObject.GFlags, builtins.int):
+ FINAL_TRY = ... # type: TlsPasswordFlags
+ MANY_TRIES = ... # type: TlsPasswordFlags
+ NONE = ... # type: TlsPasswordFlags
+ RETRY = ... # type: TlsPasswordFlags
+
+
+class BusType(GObject.GEnum, builtins.int):
+ NONE = ... # type: BusType
+ SESSION = ... # type: BusType
+ STARTER = ... # type: BusType
+ SYSTEM = ... # type: BusType
+
+
+class ConverterResult(GObject.GEnum, builtins.int):
+ CONVERTED = ... # type: ConverterResult
+ ERROR = ... # type: ConverterResult
+ FINISHED = ... # type: ConverterResult
+ FLUSHED = ... # type: ConverterResult
+
+
+class CredentialsType(GObject.GEnum, builtins.int):
+ FREEBSD_CMSGCRED = ... # type: CredentialsType
+ INVALID = ... # type: CredentialsType
+ LINUX_UCRED = ... # type: CredentialsType
+ NETBSD_UNPCBID = ... # type: CredentialsType
+ OPENBSD_SOCKPEERCRED = ... # type: CredentialsType
+ SOLARIS_UCRED = ... # type: CredentialsType
+
+
+class DBusError(GObject.GEnum, builtins.int):
+ ACCESS_DENIED = ... # type: DBusError
+ ADDRESS_IN_USE = ... # type: DBusError
+ ADT_AUDIT_DATA_UNKNOWN = ... # type: DBusError
+ AUTH_FAILED = ... # type: DBusError
+ BAD_ADDRESS = ... # type: DBusError
+ DISCONNECTED = ... # type: DBusError
+ FAILED = ... # type: DBusError
+ FILE_EXISTS = ... # type: DBusError
+ FILE_NOT_FOUND = ... # type: DBusError
+ INVALID_ARGS = ... # type: DBusError
+ INVALID_FILE_CONTENT = ... # type: DBusError
+ INVALID_SIGNATURE = ... # type: DBusError
+ IO_ERROR = ... # type: DBusError
+ LIMITS_EXCEEDED = ... # type: DBusError
+ MATCH_RULE_INVALID = ... # type: DBusError
+ MATCH_RULE_NOT_FOUND = ... # type: DBusError
+ NAME_HAS_NO_OWNER = ... # type: DBusError
+ NOT_SUPPORTED = ... # type: DBusError
+ NO_MEMORY = ... # type: DBusError
+ NO_NETWORK = ... # type: DBusError
+ NO_REPLY = ... # type: DBusError
+ NO_SERVER = ... # type: DBusError
+ OBJECT_PATH_IN_USE = ... # type: DBusError
+ PROPERTY_READ_ONLY = ... # type: DBusError
+ SELINUX_SECURITY_CONTEXT_UNKNOWN = ... # type: DBusError
+ SERVICE_UNKNOWN = ... # type: DBusError
+ SPAWN_CHILD_EXITED = ... # type: DBusError
+ SPAWN_CHILD_SIGNALED = ... # type: DBusError
+ SPAWN_CONFIG_INVALID = ... # type: DBusError
+ SPAWN_EXEC_FAILED = ... # type: DBusError
+ SPAWN_FAILED = ... # type: DBusError
+ SPAWN_FILE_INVALID = ... # type: DBusError
+ SPAWN_FORK_FAILED = ... # type: DBusError
+ SPAWN_NO_MEMORY = ... # type: DBusError
+ SPAWN_PERMISSIONS_INVALID = ... # type: DBusError
+ SPAWN_SERVICE_INVALID = ... # type: DBusError
+ SPAWN_SERVICE_NOT_FOUND = ... # type: DBusError
+ SPAWN_SETUP_FAILED = ... # type: DBusError
+ TIMED_OUT = ... # type: DBusError
+ TIMEOUT = ... # type: DBusError
+ UNIX_PROCESS_ID_UNKNOWN = ... # type: DBusError
+ UNKNOWN_INTERFACE = ... # type: DBusError
+ UNKNOWN_METHOD = ... # type: DBusError
+ UNKNOWN_OBJECT = ... # type: DBusError
+ UNKNOWN_PROPERTY = ... # type: DBusError
+
+ @staticmethod
+ def encode_gerror(error: GLib.Error) -> builtins.str: ...
+
+ @staticmethod
+ def get_remote_error(error: GLib.Error) -> builtins.str: ...
+
+ @staticmethod
+ def is_remote_error(error: GLib.Error) -> builtins.bool: ...
+
+ @staticmethod
+ def new_for_dbus_error(dbus_error_name: builtins.str, dbus_error_message: builtins.str) -> GLib.Error: ...
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+ @staticmethod
+ def register_error(error_domain: builtins.int, error_code: builtins.int, dbus_error_name: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def register_error_domain(error_domain_quark_name: builtins.str, quark_volatile: builtins.int, entries: typing.Sequence[DBusErrorEntry]) -> None: ...
+
+ @staticmethod
+ def strip_remote_error(error: GLib.Error) -> builtins.bool: ...
+
+ @staticmethod
+ def unregister_error(error_domain: builtins.int, error_code: builtins.int, dbus_error_name: builtins.str) -> builtins.bool: ...
+
+
+class DBusMessageByteOrder(GObject.GEnum, builtins.int):
+ BIG_ENDIAN = ... # type: DBusMessageByteOrder
+ LITTLE_ENDIAN = ... # type: DBusMessageByteOrder
+
+
+class DBusMessageHeaderField(GObject.GEnum, builtins.int):
+ DESTINATION = ... # type: DBusMessageHeaderField
+ ERROR_NAME = ... # type: DBusMessageHeaderField
+ INTERFACE = ... # type: DBusMessageHeaderField
+ INVALID = ... # type: DBusMessageHeaderField
+ MEMBER = ... # type: DBusMessageHeaderField
+ NUM_UNIX_FDS = ... # type: DBusMessageHeaderField
+ PATH = ... # type: DBusMessageHeaderField
+ REPLY_SERIAL = ... # type: DBusMessageHeaderField
+ SENDER = ... # type: DBusMessageHeaderField
+ SIGNATURE = ... # type: DBusMessageHeaderField
+
+
+class DBusMessageType(GObject.GEnum, builtins.int):
+ ERROR = ... # type: DBusMessageType
+ INVALID = ... # type: DBusMessageType
+ METHOD_CALL = ... # type: DBusMessageType
+ METHOD_RETURN = ... # type: DBusMessageType
+ SIGNAL = ... # type: DBusMessageType
+
+
+class DataStreamByteOrder(GObject.GEnum, builtins.int):
+ BIG_ENDIAN = ... # type: DataStreamByteOrder
+ HOST_ENDIAN = ... # type: DataStreamByteOrder
+ LITTLE_ENDIAN = ... # type: DataStreamByteOrder
+
+
+class DataStreamNewlineType(GObject.GEnum, builtins.int):
+ ANY = ... # type: DataStreamNewlineType
+ CR = ... # type: DataStreamNewlineType
+ CR_LF = ... # type: DataStreamNewlineType
+ LF = ... # type: DataStreamNewlineType
+
+
+class DriveStartStopType(GObject.GEnum, builtins.int):
+ MULTIDISK = ... # type: DriveStartStopType
+ NETWORK = ... # type: DriveStartStopType
+ PASSWORD = ... # type: DriveStartStopType
+ SHUTDOWN = ... # type: DriveStartStopType
+ UNKNOWN = ... # type: DriveStartStopType
+
+
+class EmblemOrigin(GObject.GEnum, builtins.int):
+ DEVICE = ... # type: EmblemOrigin
+ LIVEMETADATA = ... # type: EmblemOrigin
+ TAG = ... # type: EmblemOrigin
+ UNKNOWN = ... # type: EmblemOrigin
+
+
+class FileAttributeStatus(GObject.GEnum, builtins.int):
+ ERROR_SETTING = ... # type: FileAttributeStatus
+ SET = ... # type: FileAttributeStatus
+ UNSET = ... # type: FileAttributeStatus
+
+
+class FileAttributeType(GObject.GEnum, builtins.int):
+ BOOLEAN = ... # type: FileAttributeType
+ BYTE_STRING = ... # type: FileAttributeType
+ INT32 = ... # type: FileAttributeType
+ INT64 = ... # type: FileAttributeType
+ INVALID = ... # type: FileAttributeType
+ OBJECT = ... # type: FileAttributeType
+ STRING = ... # type: FileAttributeType
+ STRINGV = ... # type: FileAttributeType
+ UINT32 = ... # type: FileAttributeType
+ UINT64 = ... # type: FileAttributeType
+
+
+class FileMonitorEvent(GObject.GEnum, builtins.int):
+ ATTRIBUTE_CHANGED = ... # type: FileMonitorEvent
+ CHANGED = ... # type: FileMonitorEvent
+ CHANGES_DONE_HINT = ... # type: FileMonitorEvent
+ CREATED = ... # type: FileMonitorEvent
+ DELETED = ... # type: FileMonitorEvent
+ MOVED = ... # type: FileMonitorEvent
+ MOVED_IN = ... # type: FileMonitorEvent
+ MOVED_OUT = ... # type: FileMonitorEvent
+ PRE_UNMOUNT = ... # type: FileMonitorEvent
+ RENAMED = ... # type: FileMonitorEvent
+ UNMOUNTED = ... # type: FileMonitorEvent
+
+
+class FileType(GObject.GEnum, builtins.int):
+ DIRECTORY = ... # type: FileType
+ MOUNTABLE = ... # type: FileType
+ REGULAR = ... # type: FileType
+ SHORTCUT = ... # type: FileType
+ SPECIAL = ... # type: FileType
+ SYMBOLIC_LINK = ... # type: FileType
+ UNKNOWN = ... # type: FileType
+
+
+class FilesystemPreviewType(GObject.GEnum, builtins.int):
+ IF_ALWAYS = ... # type: FilesystemPreviewType
+ IF_LOCAL = ... # type: FilesystemPreviewType
+ NEVER = ... # type: FilesystemPreviewType
+
+
+class IOErrorEnum(GObject.GEnum, builtins.int):
+ ADDRESS_IN_USE = ... # type: IOErrorEnum
+ ALREADY_MOUNTED = ... # type: IOErrorEnum
+ BROKEN_PIPE = ... # type: IOErrorEnum
+ BUSY = ... # type: IOErrorEnum
+ CANCELLED = ... # type: IOErrorEnum
+ CANT_CREATE_BACKUP = ... # type: IOErrorEnum
+ CLOSED = ... # type: IOErrorEnum
+ CONNECTION_CLOSED = ... # type: IOErrorEnum
+ CONNECTION_REFUSED = ... # type: IOErrorEnum
+ DBUS_ERROR = ... # type: IOErrorEnum
+ EXISTS = ... # type: IOErrorEnum
+ FAILED = ... # type: IOErrorEnum
+ FAILED_HANDLED = ... # type: IOErrorEnum
+ FILENAME_TOO_LONG = ... # type: IOErrorEnum
+ HOST_NOT_FOUND = ... # type: IOErrorEnum
+ HOST_UNREACHABLE = ... # type: IOErrorEnum
+ INVALID_ARGUMENT = ... # type: IOErrorEnum
+ INVALID_DATA = ... # type: IOErrorEnum
+ INVALID_FILENAME = ... # type: IOErrorEnum
+ IS_DIRECTORY = ... # type: IOErrorEnum
+ MESSAGE_TOO_LARGE = ... # type: IOErrorEnum
+ NETWORK_UNREACHABLE = ... # type: IOErrorEnum
+ NOT_CONNECTED = ... # type: IOErrorEnum
+ NOT_DIRECTORY = ... # type: IOErrorEnum
+ NOT_EMPTY = ... # type: IOErrorEnum
+ NOT_FOUND = ... # type: IOErrorEnum
+ NOT_INITIALIZED = ... # type: IOErrorEnum
+ NOT_MOUNTABLE_FILE = ... # type: IOErrorEnum
+ NOT_MOUNTED = ... # type: IOErrorEnum
+ NOT_REGULAR_FILE = ... # type: IOErrorEnum
+ NOT_SUPPORTED = ... # type: IOErrorEnum
+ NOT_SYMBOLIC_LINK = ... # type: IOErrorEnum
+ NO_SPACE = ... # type: IOErrorEnum
+ PARTIAL_INPUT = ... # type: IOErrorEnum
+ PENDING = ... # type: IOErrorEnum
+ PERMISSION_DENIED = ... # type: IOErrorEnum
+ PROXY_AUTH_FAILED = ... # type: IOErrorEnum
+ PROXY_FAILED = ... # type: IOErrorEnum
+ PROXY_NEED_AUTH = ... # type: IOErrorEnum
+ PROXY_NOT_ALLOWED = ... # type: IOErrorEnum
+ READ_ONLY = ... # type: IOErrorEnum
+ TIMED_OUT = ... # type: IOErrorEnum
+ TOO_MANY_LINKS = ... # type: IOErrorEnum
+ TOO_MANY_OPEN_FILES = ... # type: IOErrorEnum
+ WOULD_BLOCK = ... # type: IOErrorEnum
+ WOULD_MERGE = ... # type: IOErrorEnum
+ WOULD_RECURSE = ... # type: IOErrorEnum
+ WRONG_ETAG = ... # type: IOErrorEnum
+
+
+class IOModuleScopeFlags(GObject.GEnum, builtins.int):
+ BLOCK_DUPLICATES = ... # type: IOModuleScopeFlags
+ NONE = ... # type: IOModuleScopeFlags
+
+
+class MemoryMonitorWarningLevel(GObject.GEnum, builtins.int):
+ CRITICAL = ... # type: MemoryMonitorWarningLevel
+ LOW = ... # type: MemoryMonitorWarningLevel
+ MEDIUM = ... # type: MemoryMonitorWarningLevel
+
+
+class MountOperationResult(GObject.GEnum, builtins.int):
+ ABORTED = ... # type: MountOperationResult
+ HANDLED = ... # type: MountOperationResult
+ UNHANDLED = ... # type: MountOperationResult
+
+
+class NetworkConnectivity(GObject.GEnum, builtins.int):
+ FULL = ... # type: NetworkConnectivity
+ LIMITED = ... # type: NetworkConnectivity
+ LOCAL = ... # type: NetworkConnectivity
+ PORTAL = ... # type: NetworkConnectivity
+
+
+class NotificationPriority(GObject.GEnum, builtins.int):
+ HIGH = ... # type: NotificationPriority
+ LOW = ... # type: NotificationPriority
+ NORMAL = ... # type: NotificationPriority
+ URGENT = ... # type: NotificationPriority
+
+
+class PasswordSave(GObject.GEnum, builtins.int):
+ FOR_SESSION = ... # type: PasswordSave
+ NEVER = ... # type: PasswordSave
+ PERMANENTLY = ... # type: PasswordSave
+
+
+class PollableReturn(GObject.GEnum, builtins.int):
+ FAILED = ... # type: PollableReturn
+ OK = ... # type: PollableReturn
+ WOULD_BLOCK = ... # type: PollableReturn
+
+
+class ResolverError(GObject.GEnum, builtins.int):
+ INTERNAL = ... # type: ResolverError
+ NOT_FOUND = ... # type: ResolverError
+ TEMPORARY_FAILURE = ... # type: ResolverError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class ResolverRecordType(GObject.GEnum, builtins.int):
+ MX = ... # type: ResolverRecordType
+ NS = ... # type: ResolverRecordType
+ SOA = ... # type: ResolverRecordType
+ SRV = ... # type: ResolverRecordType
+ TXT = ... # type: ResolverRecordType
+
+
+class ResourceError(GObject.GEnum, builtins.int):
+ INTERNAL = ... # type: ResourceError
+ NOT_FOUND = ... # type: ResourceError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class SocketClientEvent(GObject.GEnum, builtins.int):
+ COMPLETE = ... # type: SocketClientEvent
+ CONNECTED = ... # type: SocketClientEvent
+ CONNECTING = ... # type: SocketClientEvent
+ PROXY_NEGOTIATED = ... # type: SocketClientEvent
+ PROXY_NEGOTIATING = ... # type: SocketClientEvent
+ RESOLVED = ... # type: SocketClientEvent
+ RESOLVING = ... # type: SocketClientEvent
+ TLS_HANDSHAKED = ... # type: SocketClientEvent
+ TLS_HANDSHAKING = ... # type: SocketClientEvent
+
+
+class SocketFamily(GObject.GEnum, builtins.int):
+ INVALID = ... # type: SocketFamily
+ IPV4 = ... # type: SocketFamily
+ IPV6 = ... # type: SocketFamily
+ UNIX = ... # type: SocketFamily
+
+
+class SocketListenerEvent(GObject.GEnum, builtins.int):
+ BINDING = ... # type: SocketListenerEvent
+ BOUND = ... # type: SocketListenerEvent
+ LISTENED = ... # type: SocketListenerEvent
+ LISTENING = ... # type: SocketListenerEvent
+
+
+class SocketProtocol(GObject.GEnum, builtins.int):
+ DEFAULT = ... # type: SocketProtocol
+ SCTP = ... # type: SocketProtocol
+ TCP = ... # type: SocketProtocol
+ UDP = ... # type: SocketProtocol
+ UNKNOWN = ... # type: SocketProtocol
+
+
+class SocketType(GObject.GEnum, builtins.int):
+ DATAGRAM = ... # type: SocketType
+ INVALID = ... # type: SocketType
+ SEQPACKET = ... # type: SocketType
+ STREAM = ... # type: SocketType
+
+
+class TlsAuthenticationMode(GObject.GEnum, builtins.int):
+ NONE = ... # type: TlsAuthenticationMode
+ REQUESTED = ... # type: TlsAuthenticationMode
+ REQUIRED = ... # type: TlsAuthenticationMode
+
+
+class TlsCertificateRequestFlags(GObject.GEnum, builtins.int):
+ NONE = ... # type: TlsCertificateRequestFlags
+
+
+class TlsDatabaseLookupFlags(GObject.GEnum, builtins.int):
+ KEYPAIR = ... # type: TlsDatabaseLookupFlags
+ NONE = ... # type: TlsDatabaseLookupFlags
+
+
+class TlsError(GObject.GEnum, builtins.int):
+ BAD_CERTIFICATE = ... # type: TlsError
+ CERTIFICATE_REQUIRED = ... # type: TlsError
+ EOF = ... # type: TlsError
+ HANDSHAKE = ... # type: TlsError
+ INAPPROPRIATE_FALLBACK = ... # type: TlsError
+ MISC = ... # type: TlsError
+ NOT_TLS = ... # type: TlsError
+ UNAVAILABLE = ... # type: TlsError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class TlsInteractionResult(GObject.GEnum, builtins.int):
+ FAILED = ... # type: TlsInteractionResult
+ HANDLED = ... # type: TlsInteractionResult
+ UNHANDLED = ... # type: TlsInteractionResult
+
+
+class TlsRehandshakeMode(GObject.GEnum, builtins.int):
+ NEVER = ... # type: TlsRehandshakeMode
+ SAFELY = ... # type: TlsRehandshakeMode
+ UNSAFELY = ... # type: TlsRehandshakeMode
+
+
+class UnixSocketAddressType(GObject.GEnum, builtins.int):
+ ABSTRACT = ... # type: UnixSocketAddressType
+ ABSTRACT_PADDED = ... # type: UnixSocketAddressType
+ ANONYMOUS = ... # type: UnixSocketAddressType
+ INVALID = ... # type: UnixSocketAddressType
+ PATH = ... # type: UnixSocketAddressType
+
+
+class ZlibCompressorFormat(GObject.GEnum, builtins.int):
+ GZIP = ... # type: ZlibCompressorFormat
+ RAW = ... # type: ZlibCompressorFormat
+ ZLIB = ... # type: ZlibCompressorFormat
+
+
+AsyncReadyCallback = typing.Callable[[typing.Optional[GObject.Object], AsyncResult, typing.Optional[builtins.object]], None]
+BusAcquiredCallback = typing.Callable[[DBusConnection, builtins.str, typing.Optional[builtins.object]], None]
+BusNameAcquiredCallback = typing.Callable[[DBusConnection, builtins.str, typing.Optional[builtins.object]], None]
+BusNameAppearedCallback = typing.Callable[[DBusConnection, builtins.str, builtins.str, typing.Optional[builtins.object]], None]
+BusNameLostCallback = typing.Callable[[DBusConnection, builtins.str, typing.Optional[builtins.object]], None]
+BusNameVanishedCallback = typing.Callable[[DBusConnection, builtins.str, typing.Optional[builtins.object]], None]
+CancellableSourceFunc = typing.Callable[[typing.Optional[Cancellable], typing.Optional[builtins.object]], builtins.bool]
+DBusInterfaceGetPropertyFunc = typing.Callable[[DBusConnection, builtins.str, builtins.str, builtins.str, builtins.str, GLib.Error, typing.Optional[builtins.object]], GLib.Variant]
+DBusInterfaceMethodCallFunc = typing.Callable[[DBusConnection, builtins.str, builtins.str, builtins.str, builtins.str, GLib.Variant, DBusMethodInvocation], None]
+DBusInterfaceSetPropertyFunc = typing.Callable[[DBusConnection, builtins.str, builtins.str, builtins.str, builtins.str, GLib.Variant, GLib.Error, typing.Optional[builtins.object]], builtins.bool]
+DBusMessageFilterFunction = typing.Callable[[DBusConnection, DBusMessage, builtins.bool, typing.Optional[builtins.object]], typing.Optional[DBusMessage]]
+DBusProxyTypeFunc = typing.Callable[[DBusObjectManagerClient, builtins.str, typing.Optional[builtins.str], typing.Optional[builtins.object]], GObject.GType]
+DBusSignalCallback = typing.Callable[[DBusConnection, builtins.str, builtins.str, builtins.str, builtins.str, GLib.Variant, typing.Optional[builtins.object]], None]
+DBusSubtreeDispatchFunc = typing.Callable[[DBusConnection, builtins.str, builtins.str, builtins.str, builtins.str, builtins.object, typing.Optional[builtins.object]], DBusInterfaceVTable]
+DBusSubtreeIntrospectFunc = typing.Callable[[DBusConnection, builtins.str, builtins.str, builtins.str, typing.Optional[builtins.object]], DBusInterfaceInfo]
+DatagramBasedSourceFunc = typing.Callable[[DatagramBased, GLib.IOCondition, typing.Optional[builtins.object]], builtins.bool]
+DesktopAppLaunchCallback = typing.Callable[[DesktopAppInfo, builtins.int, typing.Optional[builtins.object]], None]
+FileMeasureProgressCallback = typing.Callable[[builtins.bool, builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], None]
+FileProgressCallback = typing.Callable[[builtins.int, builtins.int, typing.Optional[builtins.object]], None]
+FileReadMoreCallback = typing.Callable[[builtins.str, builtins.int, typing.Optional[builtins.object]], builtins.bool]
+IOSchedulerJobFunc = typing.Callable[[IOSchedulerJob, typing.Optional[Cancellable], typing.Optional[builtins.object]], builtins.bool]
+PollableSourceFunc = typing.Callable[[GObject.Object, typing.Optional[builtins.object]], builtins.bool]
+ReallocFunc = typing.Callable[[typing.Optional[builtins.object], builtins.int], typing.Optional[builtins.object]]
+SettingsBindGetMapping = typing.Callable[[GObject.Value, GLib.Variant, typing.Optional[builtins.object]], builtins.bool]
+SettingsBindSetMapping = typing.Callable[[GObject.Value, GLib.VariantType, typing.Optional[builtins.object]], GLib.Variant]
+SettingsGetMapping = typing.Callable[[GLib.Variant, typing.Optional[builtins.object]], typing.Tuple[builtins.bool, builtins.object]]
+SimpleAsyncThreadFunc = typing.Callable[[SimpleAsyncResult, GObject.Object, typing.Optional[Cancellable]], None]
+SocketSourceFunc = typing.Callable[[Socket, GLib.IOCondition, typing.Optional[builtins.object]], builtins.bool]
+TaskThreadFunc = typing.Callable[[Task, GObject.Object, typing.Optional[builtins.object], typing.Optional[Cancellable]], None]
+VfsFileLookupFunc = typing.Callable[[Vfs, builtins.str, typing.Optional[builtins.object]], File]
+
+
+def action_name_is_valid(action_name: builtins.str) -> builtins.bool: ...
+
+
+def action_parse_detailed_name(detailed_name: builtins.str) -> typing.Tuple[builtins.bool, builtins.str, GLib.Variant]: ...
+
+
+def action_print_detailed_name(action_name: builtins.str, target_value: typing.Optional[GLib.Variant]) -> builtins.str: ...
+
+
+def app_info_create_from_commandline(commandline: builtins.str, application_name: typing.Optional[builtins.str], flags: AppInfoCreateFlags) -> AppInfo: ...
+
+
+def app_info_get_all() -> typing.Sequence[AppInfo]: ...
+
+
+def app_info_get_all_for_type(content_type: builtins.str) -> typing.Sequence[AppInfo]: ...
+
+
+def app_info_get_default_for_type(content_type: builtins.str, must_support_uris: builtins.bool) -> AppInfo: ...
+
+
+def app_info_get_default_for_uri_scheme(uri_scheme: builtins.str) -> AppInfo: ...
+
+
+def app_info_get_fallback_for_type(content_type: builtins.str) -> typing.Sequence[AppInfo]: ...
+
+
+def app_info_get_recommended_for_type(content_type: builtins.str) -> typing.Sequence[AppInfo]: ...
+
+
+def app_info_launch_default_for_uri(uri: builtins.str, context: typing.Optional[AppLaunchContext]) -> builtins.bool: ...
+
+
+def app_info_launch_default_for_uri_async(uri: builtins.str, context: typing.Optional[AppLaunchContext], cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def app_info_launch_default_for_uri_finish(result: AsyncResult) -> builtins.bool: ...
+
+
+def app_info_reset_type_associations(content_type: builtins.str) -> None: ...
+
+
+def async_initable_newv_async(object_type: GObject.GType, n_parameters: builtins.int, parameters: GObject.Parameter, io_priority: builtins.int, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def bus_get(bus_type: BusType, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def bus_get_finish(res: AsyncResult) -> DBusConnection: ...
+
+
+def bus_get_sync(bus_type: BusType, cancellable: typing.Optional[Cancellable] = None) -> DBusConnection: ...
+
+
+def bus_own_name(bus_type: BusType, name: builtins.str, flags: BusNameOwnerFlags, bus_acquired_closure: typing.Optional[GObject.Closure], name_acquired_closure: typing.Optional[GObject.Closure], name_lost_closure: typing.Optional[GObject.Closure]) -> builtins.int: ...
+
+
+def bus_own_name_on_connection(connection: DBusConnection, name: builtins.str, flags: BusNameOwnerFlags, name_acquired_closure: typing.Optional[GObject.Closure], name_lost_closure: typing.Optional[GObject.Closure]) -> builtins.int: ...
+
+
+def bus_unown_name(owner_id: builtins.int) -> None: ...
+
+
+def bus_unwatch_name(watcher_id: builtins.int) -> None: ...
+
+
+def bus_watch_name(bus_type: BusType, name: builtins.str, flags: BusNameWatcherFlags, name_appeared_closure: typing.Optional[typing.Callable[[DBusConnection, str, str], None]], name_vanished_closure: typing.Optional[typing.Callable[[DBusConnection, str], None]]) -> builtins.int: ...
+
+
+def bus_watch_name_on_connection(connection: DBusConnection, name: builtins.str, flags: BusNameWatcherFlags, name_appeared_closure: typing.Optional[GObject.Closure], name_vanished_closure: typing.Optional[GObject.Closure]) -> builtins.int: ...
+
+
+def content_type_can_be_executable(type: builtins.str) -> builtins.bool: ...
+
+
+def content_type_equals(type1: builtins.str, type2: builtins.str) -> builtins.bool: ...
+
+
+def content_type_from_mime_type(mime_type: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def content_type_get_description(type: builtins.str) -> builtins.str: ...
+
+
+def content_type_get_generic_icon_name(type: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def content_type_get_icon(type: builtins.str) -> Icon: ...
+
+
+def content_type_get_mime_dirs() -> typing.Sequence[builtins.str]: ...
+
+
+def content_type_get_mime_type(type: builtins.str) -> typing.Optional[builtins.str]: ...
+
+
+def content_type_get_symbolic_icon(type: builtins.str) -> Icon: ...
+
+
+def content_type_guess(filename: typing.Optional[builtins.str], data: typing.Optional[builtins.bytes]) -> typing.Tuple[builtins.str, builtins.bool]: ...
+
+
+def content_type_guess_for_tree(root: File) -> typing.Sequence[builtins.str]: ...
+
+
+def content_type_is_a(type: builtins.str, supertype: builtins.str) -> builtins.bool: ...
+
+
+def content_type_is_mime_type(type: builtins.str, mime_type: builtins.str) -> builtins.bool: ...
+
+
+def content_type_is_unknown(type: builtins.str) -> builtins.bool: ...
+
+
+def content_type_set_mime_dirs(dirs: typing.Optional[typing.Sequence[builtins.str]]) -> None: ...
+
+
+def content_types_get_registered() -> typing.Sequence[builtins.str]: ...
+
+
+def dbus_address_escape_value(string: builtins.str) -> builtins.str: ...
+
+
+def dbus_address_get_for_bus_sync(bus_type: BusType, cancellable: typing.Optional[Cancellable]) -> builtins.str: ...
+
+
+def dbus_address_get_stream(address: builtins.str, cancellable: typing.Optional[Cancellable], callback: typing.Optional[AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def dbus_address_get_stream_finish(res: AsyncResult) -> typing.Tuple[IOStream, builtins.str]: ...
+
+
+def dbus_address_get_stream_sync(address: builtins.str, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[IOStream, builtins.str]: ...
+
+
+def dbus_annotation_info_lookup(annotations: typing.Optional[typing.Sequence[DBusAnnotationInfo]], name: builtins.str) -> builtins.str: ...
+
+
+def dbus_error_encode_gerror(error: GLib.Error) -> builtins.str: ...
+
+
+def dbus_error_get_remote_error(error: GLib.Error) -> builtins.str: ...
+
+
+def dbus_error_is_remote_error(error: GLib.Error) -> builtins.bool: ...
+
+
+def dbus_error_new_for_dbus_error(dbus_error_name: builtins.str, dbus_error_message: builtins.str) -> GLib.Error: ...
+
+
+def dbus_error_quark() -> builtins.int: ...
+
+
+def dbus_error_register_error(error_domain: builtins.int, error_code: builtins.int, dbus_error_name: builtins.str) -> builtins.bool: ...
+
+
+def dbus_error_register_error_domain(error_domain_quark_name: builtins.str, quark_volatile: builtins.int, entries: typing.Sequence[DBusErrorEntry]) -> None: ...
+
+
+def dbus_error_strip_remote_error(error: GLib.Error) -> builtins.bool: ...
+
+
+def dbus_error_unregister_error(error_domain: builtins.int, error_code: builtins.int, dbus_error_name: builtins.str) -> builtins.bool: ...
+
+
+def dbus_generate_guid() -> builtins.str: ...
+
+
+def dbus_gvalue_to_gvariant(gvalue: GObject.Value, type: GLib.VariantType) -> GLib.Variant: ...
+
+
+def dbus_gvariant_to_gvalue(value: GLib.Variant) -> GObject.Value: ...
+
+
+def dbus_is_address(string: builtins.str) -> builtins.bool: ...
+
+
+def dbus_is_guid(string: builtins.str) -> builtins.bool: ...
+
+
+def dbus_is_interface_name(string: builtins.str) -> builtins.bool: ...
+
+
+def dbus_is_member_name(string: builtins.str) -> builtins.bool: ...
+
+
+def dbus_is_name(string: builtins.str) -> builtins.bool: ...
+
+
+def dbus_is_supported_address(string: builtins.str) -> builtins.bool: ...
+
+
+def dbus_is_unique_name(string: builtins.str) -> builtins.bool: ...
+
+
+def dtls_client_connection_new(base_socket: DatagramBased, server_identity: typing.Optional[SocketConnectable]) -> DtlsClientConnection: ...
+
+
+def dtls_server_connection_new(base_socket: DatagramBased, certificate: typing.Optional[TlsCertificate]) -> DtlsServerConnection: ...
+
+
+def file_new_for_commandline_arg(arg: builtins.str) -> File: ...
+
+
+def file_new_for_commandline_arg_and_cwd(arg: builtins.str, cwd: builtins.str) -> File: ...
+
+
+def file_new_for_path(path: builtins.str) -> File: ...
+
+
+def file_new_for_uri(uri: builtins.str) -> File: ...
+
+
+def file_new_tmp(tmpl: typing.Optional[builtins.str]) -> typing.Tuple[File, FileIOStream]: ...
+
+
+def file_parse_name(parse_name: builtins.str) -> File: ...
+
+
+def icon_deserialize(value: GLib.Variant) -> Icon: ...
+
+
+def icon_hash(icon: builtins.object) -> builtins.int: ...
+
+
+def icon_new_for_string(str: builtins.str) -> Icon: ...
+
+
+def initable_newv(object_type: GObject.GType, parameters: typing.Sequence[GObject.Parameter], cancellable: typing.Optional[Cancellable]) -> GObject.Object: ...
+
+
+def io_error_from_errno(err_no: builtins.int) -> IOErrorEnum: ...
+
+
+def io_error_quark() -> builtins.int: ...
+
+
+def io_extension_point_implement(extension_point_name: builtins.str, type: GObject.GType, extension_name: builtins.str, priority: builtins.int) -> IOExtension: ...
+
+
+def io_extension_point_lookup(name: builtins.str) -> IOExtensionPoint: ...
+
+
+def io_extension_point_register(name: builtins.str) -> IOExtensionPoint: ...
+
+
+def io_modules_load_all_in_directory(dirname: builtins.str) -> typing.Sequence[IOModule]: ...
+
+
+def io_modules_load_all_in_directory_with_scope(dirname: builtins.str, scope: IOModuleScope) -> typing.Sequence[IOModule]: ...
+
+
+def io_modules_scan_all_in_directory(dirname: builtins.str) -> None: ...
+
+
+def io_modules_scan_all_in_directory_with_scope(dirname: builtins.str, scope: IOModuleScope) -> None: ...
+
+
+def io_scheduler_cancel_all_jobs() -> None: ...
+
+
+def io_scheduler_push_job(job_func: IOSchedulerJobFunc, user_data: typing.Optional[builtins.object], io_priority: builtins.int, cancellable: typing.Optional[Cancellable]) -> None: ...
+
+
+def keyfile_settings_backend_new(filename: builtins.str, root_path: builtins.str, root_group: typing.Optional[builtins.str]) -> SettingsBackend: ...
+
+
+def memory_monitor_dup_default() -> MemoryMonitor: ...
+
+
+def memory_settings_backend_new() -> SettingsBackend: ...
+
+
+def network_monitor_get_default() -> NetworkMonitor: ...
+
+
+def networking_init() -> None: ...
+
+
+def null_settings_backend_new() -> SettingsBackend: ...
+
+
+def pollable_source_new(pollable_stream: GObject.Object) -> GLib.Source: ...
+
+
+def pollable_source_new_full(pollable_stream: GObject.Object, child_source: typing.Optional[GLib.Source], cancellable: typing.Optional[Cancellable]) -> GLib.Source: ...
+
+
+def pollable_stream_read(stream: InputStream, buffer: builtins.bytes, blocking: builtins.bool, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+
+def pollable_stream_write(stream: OutputStream, buffer: builtins.bytes, blocking: builtins.bool, cancellable: typing.Optional[Cancellable]) -> builtins.int: ...
+
+
+def pollable_stream_write_all(stream: OutputStream, buffer: builtins.bytes, blocking: builtins.bool, cancellable: typing.Optional[Cancellable]) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+
+def proxy_get_default_for_protocol(protocol: builtins.str) -> Proxy: ...
+
+
+def proxy_resolver_get_default() -> ProxyResolver: ...
+
+
+def resolver_error_quark() -> builtins.int: ...
+
+
+def resource_error_quark() -> builtins.int: ...
+
+
+def resource_load(filename: builtins.str) -> Resource: ...
+
+
+def resources_enumerate_children(path: builtins.str, lookup_flags: ResourceLookupFlags) -> typing.Sequence[builtins.str]: ...
+
+
+def resources_get_info(path: builtins.str, lookup_flags: ResourceLookupFlags) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+
+def resources_lookup_data(path: builtins.str, lookup_flags: ResourceLookupFlags) -> GLib.Bytes: ...
+
+
+def resources_open_stream(path: builtins.str, lookup_flags: ResourceLookupFlags) -> InputStream: ...
+
+
+def resources_register(resource: Resource) -> None: ...
+
+
+def resources_unregister(resource: Resource) -> None: ...
+
+
+def settings_schema_source_get_default() -> typing.Optional[SettingsSchemaSource]: ...
+
+
+def simple_async_report_gerror_in_idle(object: typing.Optional[GObject.Object], callback: typing.Optional[AsyncReadyCallback], user_data: typing.Optional[builtins.object], error: GLib.Error) -> None: ...
+
+
+def tls_backend_get_default() -> TlsBackend: ...
+
+
+def tls_client_connection_new(base_io_stream: IOStream, server_identity: typing.Optional[SocketConnectable]) -> TlsClientConnection: ...
+
+
+def tls_error_quark() -> builtins.int: ...
+
+
+def tls_file_database_new(anchors: builtins.str) -> TlsFileDatabase: ...
+
+
+def tls_server_connection_new(base_io_stream: IOStream, certificate: typing.Optional[TlsCertificate]) -> TlsServerConnection: ...
+
+
+def unix_is_mount_path_system_internal(mount_path: builtins.str) -> builtins.bool: ...
+
+
+def unix_is_system_device_path(device_path: builtins.str) -> builtins.bool: ...
+
+
+def unix_is_system_fs_type(fs_type: builtins.str) -> builtins.bool: ...
+
+
+def unix_mount_at(mount_path: builtins.str) -> typing.Tuple[UnixMountEntry, builtins.int]: ...
+
+
+def unix_mount_compare(mount1: UnixMountEntry, mount2: UnixMountEntry) -> builtins.int: ...
+
+
+def unix_mount_copy(mount_entry: UnixMountEntry) -> UnixMountEntry: ...
+
+
+def unix_mount_for(file_path: builtins.str) -> typing.Tuple[UnixMountEntry, builtins.int]: ...
+
+
+def unix_mount_free(mount_entry: UnixMountEntry) -> None: ...
+
+
+def unix_mount_get_device_path(mount_entry: UnixMountEntry) -> builtins.str: ...
+
+
+def unix_mount_get_fs_type(mount_entry: UnixMountEntry) -> builtins.str: ...
+
+
+def unix_mount_get_mount_path(mount_entry: UnixMountEntry) -> builtins.str: ...
+
+
+def unix_mount_get_options(mount_entry: UnixMountEntry) -> typing.Optional[builtins.str]: ...
+
+
+def unix_mount_get_root_path(mount_entry: UnixMountEntry) -> typing.Optional[builtins.str]: ...
+
+
+def unix_mount_guess_can_eject(mount_entry: UnixMountEntry) -> builtins.bool: ...
+
+
+def unix_mount_guess_icon(mount_entry: UnixMountEntry) -> Icon: ...
+
+
+def unix_mount_guess_name(mount_entry: UnixMountEntry) -> builtins.str: ...
+
+
+def unix_mount_guess_should_display(mount_entry: UnixMountEntry) -> builtins.bool: ...
+
+
+def unix_mount_guess_symbolic_icon(mount_entry: UnixMountEntry) -> Icon: ...
+
+
+def unix_mount_is_readonly(mount_entry: UnixMountEntry) -> builtins.bool: ...
+
+
+def unix_mount_is_system_internal(mount_entry: UnixMountEntry) -> builtins.bool: ...
+
+
+def unix_mount_points_changed_since(time: builtins.int) -> builtins.bool: ...
+
+
+def unix_mount_points_get() -> typing.Tuple[typing.Sequence[UnixMountPoint], builtins.int]: ...
+
+
+def unix_mounts_changed_since(time: builtins.int) -> builtins.bool: ...
+
+
+def unix_mounts_get() -> typing.Tuple[typing.Sequence[UnixMountEntry], builtins.int]: ...
+
+
+DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME: builtins.str
+DRIVE_IDENTIFIER_KIND_UNIX_DEVICE: builtins.str
+FILE_ATTRIBUTE_ACCESS_CAN_DELETE: builtins.str
+FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE: builtins.str
+FILE_ATTRIBUTE_ACCESS_CAN_READ: builtins.str
+FILE_ATTRIBUTE_ACCESS_CAN_RENAME: builtins.str
+FILE_ATTRIBUTE_ACCESS_CAN_TRASH: builtins.str
+FILE_ATTRIBUTE_ACCESS_CAN_WRITE: builtins.str
+FILE_ATTRIBUTE_DOS_IS_ARCHIVE: builtins.str
+FILE_ATTRIBUTE_DOS_IS_MOUNTPOINT: builtins.str
+FILE_ATTRIBUTE_DOS_IS_SYSTEM: builtins.str
+FILE_ATTRIBUTE_DOS_REPARSE_POINT_TAG: builtins.str
+FILE_ATTRIBUTE_ETAG_VALUE: builtins.str
+FILE_ATTRIBUTE_FILESYSTEM_FREE: builtins.str
+FILE_ATTRIBUTE_FILESYSTEM_READONLY: builtins.str
+FILE_ATTRIBUTE_FILESYSTEM_REMOTE: builtins.str
+FILE_ATTRIBUTE_FILESYSTEM_SIZE: builtins.str
+FILE_ATTRIBUTE_FILESYSTEM_TYPE: builtins.str
+FILE_ATTRIBUTE_FILESYSTEM_USED: builtins.str
+FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW: builtins.str
+FILE_ATTRIBUTE_GVFS_BACKEND: builtins.str
+FILE_ATTRIBUTE_ID_FILE: builtins.str
+FILE_ATTRIBUTE_ID_FILESYSTEM: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_CAN_START: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE: builtins.str
+FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE: builtins.str
+FILE_ATTRIBUTE_OWNER_GROUP: builtins.str
+FILE_ATTRIBUTE_OWNER_USER: builtins.str
+FILE_ATTRIBUTE_OWNER_USER_REAL: builtins.str
+FILE_ATTRIBUTE_PREVIEW_ICON: builtins.str
+FILE_ATTRIBUTE_RECENT_MODIFIED: builtins.str
+FILE_ATTRIBUTE_SELINUX_CONTEXT: builtins.str
+FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE: builtins.str
+FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE: builtins.str
+FILE_ATTRIBUTE_STANDARD_COPY_NAME: builtins.str
+FILE_ATTRIBUTE_STANDARD_DESCRIPTION: builtins.str
+FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME: builtins.str
+FILE_ATTRIBUTE_STANDARD_EDIT_NAME: builtins.str
+FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE: builtins.str
+FILE_ATTRIBUTE_STANDARD_ICON: builtins.str
+FILE_ATTRIBUTE_STANDARD_IS_BACKUP: builtins.str
+FILE_ATTRIBUTE_STANDARD_IS_HIDDEN: builtins.str
+FILE_ATTRIBUTE_STANDARD_IS_SYMLINK: builtins.str
+FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL: builtins.str
+FILE_ATTRIBUTE_STANDARD_IS_VOLATILE: builtins.str
+FILE_ATTRIBUTE_STANDARD_NAME: builtins.str
+FILE_ATTRIBUTE_STANDARD_SIZE: builtins.str
+FILE_ATTRIBUTE_STANDARD_SORT_ORDER: builtins.str
+FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON: builtins.str
+FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET: builtins.str
+FILE_ATTRIBUTE_STANDARD_TARGET_URI: builtins.str
+FILE_ATTRIBUTE_STANDARD_TYPE: builtins.str
+FILE_ATTRIBUTE_THUMBNAILING_FAILED: builtins.str
+FILE_ATTRIBUTE_THUMBNAIL_IS_VALID: builtins.str
+FILE_ATTRIBUTE_THUMBNAIL_PATH: builtins.str
+FILE_ATTRIBUTE_TIME_ACCESS: builtins.str
+FILE_ATTRIBUTE_TIME_ACCESS_USEC: builtins.str
+FILE_ATTRIBUTE_TIME_CHANGED: builtins.str
+FILE_ATTRIBUTE_TIME_CHANGED_USEC: builtins.str
+FILE_ATTRIBUTE_TIME_CREATED: builtins.str
+FILE_ATTRIBUTE_TIME_CREATED_USEC: builtins.str
+FILE_ATTRIBUTE_TIME_MODIFIED: builtins.str
+FILE_ATTRIBUTE_TIME_MODIFIED_USEC: builtins.str
+FILE_ATTRIBUTE_TRASH_DELETION_DATE: builtins.str
+FILE_ATTRIBUTE_TRASH_ITEM_COUNT: builtins.str
+FILE_ATTRIBUTE_TRASH_ORIG_PATH: builtins.str
+FILE_ATTRIBUTE_UNIX_BLOCKS: builtins.str
+FILE_ATTRIBUTE_UNIX_BLOCK_SIZE: builtins.str
+FILE_ATTRIBUTE_UNIX_DEVICE: builtins.str
+FILE_ATTRIBUTE_UNIX_GID: builtins.str
+FILE_ATTRIBUTE_UNIX_INODE: builtins.str
+FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT: builtins.str
+FILE_ATTRIBUTE_UNIX_MODE: builtins.str
+FILE_ATTRIBUTE_UNIX_NLINK: builtins.str
+FILE_ATTRIBUTE_UNIX_RDEV: builtins.str
+FILE_ATTRIBUTE_UNIX_UID: builtins.str
+MEMORY_MONITOR_EXTENSION_POINT_NAME: builtins.str
+MENU_ATTRIBUTE_ACTION: builtins.str
+MENU_ATTRIBUTE_ACTION_NAMESPACE: builtins.str
+MENU_ATTRIBUTE_ICON: builtins.str
+MENU_ATTRIBUTE_LABEL: builtins.str
+MENU_ATTRIBUTE_TARGET: builtins.str
+MENU_LINK_SECTION: builtins.str
+MENU_LINK_SUBMENU: builtins.str
+NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME: builtins.str
+NETWORK_MONITOR_EXTENSION_POINT_NAME: builtins.str
+PROXY_EXTENSION_POINT_NAME: builtins.str
+PROXY_RESOLVER_EXTENSION_POINT_NAME: builtins.str
+SETTINGS_BACKEND_EXTENSION_POINT_NAME: builtins.str
+TLS_BACKEND_EXTENSION_POINT_NAME: builtins.str
+TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT: builtins.str
+TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER: builtins.str
+VFS_EXTENSION_POINT_NAME: builtins.str
+VOLUME_IDENTIFIER_KIND_CLASS: builtins.str
+VOLUME_IDENTIFIER_KIND_HAL_UDI: builtins.str
+VOLUME_IDENTIFIER_KIND_LABEL: builtins.str
+VOLUME_IDENTIFIER_KIND_NFS_MOUNT: builtins.str
+VOLUME_IDENTIFIER_KIND_UNIX_DEVICE: builtins.str
+VOLUME_IDENTIFIER_KIND_UUID: builtins.str
+VOLUME_MONITOR_EXTENSION_POINT_NAME: builtins.str
diff --git a/stubs/gi/repository/Gtk.pyi b/stubs/gi/repository/Gtk.pyi
new file mode 100644
index 000000000..9b8ae89f1
--- /dev/null
+++ b/stubs/gi/repository/Gtk.pyi
@@ -0,0 +1,13161 @@
+import builtins
+import typing
+
+from gi.repository import Atk
+from gi.repository import GLib
+from gi.repository import GObject
+from gi.repository import Gdk
+from gi.repository import GdkPixbuf
+from gi.repository import Gio
+from gi.repository import Pango
+import cairo
+
+
+class PyGTKDeprecationWarning():
+ ...
+
+
+class TreeModelRow():
+
+ def __getitem__(self, key: int) -> typing.Any: ...
+
+
+class TreeModelRowIter():
+ def __next__(self) -> TreeModelRow: ...
+
+ iter: TreeIter
+
+
+class AccelGroup(GObject.Object):
+ parent: GObject.Object
+
+ def activate(self, accel_quark: builtins.int, acceleratable: GObject.Object, accel_key: builtins.int, accel_mods: Gdk.ModifierType) -> builtins.bool: ...
+
+ def connect(self, accel_key: builtins.int, accel_mods: Gdk.ModifierType, accel_flags: AccelFlags, closure: AccelGroupActivate) -> None: ... # type: ignore
+
+ def connect_by_path(self, accel_path: builtins.str, closure: GObject.Closure) -> None: ...
+
+ def disconnect(self, closure: typing.Optional[GObject.Closure]) -> builtins.bool: ... # type: ignore
+
+ def disconnect_key(self, accel_key: builtins.int, accel_mods: Gdk.ModifierType) -> builtins.bool: ...
+
+ def find(self, find_func: AccelGroupFindFunc, *data: typing.Optional[builtins.object]) -> AccelKey: ...
+
+ @staticmethod
+ def from_accel_closure(closure: GObject.Closure) -> typing.Optional[AccelGroup]: ...
+
+ def get_is_locked(self) -> builtins.bool: ...
+
+ def get_modifier_mask(self) -> Gdk.ModifierType: ...
+
+ def lock(self) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> AccelGroup: ... # type: ignore
+
+ def query(self, accel_key: builtins.int, accel_mods: Gdk.ModifierType) -> typing.Optional[typing.Sequence[AccelGroupEntry]]: ...
+
+ def unlock(self) -> None: ...
+
+ def do_accel_changed(self, keyval: builtins.int, modifier: Gdk.ModifierType, accel_closure: GObject.Closure) -> None: ...
+
+
+class AccelMap(GObject.Object):
+
+ @staticmethod
+ def add_entry(accel_path: builtins.str, accel_key: builtins.int, accel_mods: Gdk.ModifierType) -> None: ...
+
+ @staticmethod
+ def add_filter(filter_pattern: builtins.str) -> None: ...
+
+ @staticmethod
+ def change_entry(accel_path: builtins.str, accel_key: builtins.int, accel_mods: Gdk.ModifierType, replace: builtins.bool) -> builtins.bool: ...
+
+ @staticmethod
+ def foreach(data: typing.Optional[builtins.object], foreach_func: AccelMapForeach) -> None: ...
+
+ @staticmethod
+ def foreach_unfiltered(data: typing.Optional[builtins.object], foreach_func: AccelMapForeach) -> None: ...
+
+ @staticmethod
+ def get() -> AccelMap: ...
+
+ @staticmethod
+ def load(file_name: builtins.str) -> None: ...
+
+ @staticmethod
+ def load_fd(fd: builtins.int) -> None: ...
+
+ @staticmethod
+ def load_scanner(scanner: GLib.Scanner) -> None: ...
+
+ @staticmethod
+ def lock_path(accel_path: builtins.str) -> None: ...
+
+ @staticmethod
+ def lookup_entry(accel_path: builtins.str) -> typing.Tuple[builtins.bool, AccelKey]: ...
+
+ @staticmethod
+ def save(file_name: builtins.str) -> None: ...
+
+ @staticmethod
+ def save_fd(fd: builtins.int) -> None: ...
+
+ @staticmethod
+ def unlock_path(accel_path: builtins.str) -> None: ...
+
+
+class Accessible(Atk.Object):
+ parent: Atk.Object
+
+ def connect_widget_destroyed(self) -> None: ...
+
+ def get_widget(self) -> typing.Optional[Widget]: ...
+
+ def set_widget(self, widget: typing.Optional[Widget]) -> None: ...
+
+ def do_connect_widget_destroyed(self) -> None: ...
+
+ def do_widget_set(self) -> None: ...
+
+ def do_widget_unset(self) -> None: ...
+
+
+class Actionable(GObject.GInterface):
+
+ def get_action_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_action_target_value(self) -> GLib.Variant: ...
+
+ def set_action_name(self, action_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_action_target_value(self, target_value: typing.Optional[GLib.Variant]) -> None: ...
+
+ def set_detailed_action_name(self, detailed_action_name: builtins.str) -> None: ...
+
+ def do_get_action_name(self) -> typing.Optional[builtins.str]: ...
+
+ def do_get_action_target_value(self) -> GLib.Variant: ...
+
+ def do_set_action_name(self, action_name: typing.Optional[builtins.str]) -> None: ...
+
+ def do_set_action_target_value(self, target_value: typing.Optional[GLib.Variant]) -> None: ...
+
+
+class Activatable(GObject.GInterface):
+
+ def do_set_related_action(self, action: Action) -> None: ...
+
+ def get_related_action(self) -> Action: ...
+
+ def get_use_action_appearance(self) -> builtins.bool: ...
+
+ def set_related_action(self, action: Action) -> None: ...
+
+ def set_use_action_appearance(self, use_appearance: builtins.bool) -> None: ...
+
+ def sync_action_properties(self, action: typing.Optional[Action]) -> None: ...
+
+ def do_sync_action_properties(self, action: typing.Optional[Action]) -> None: ...
+
+ def do_update(self, action: Action, property_name: builtins.str) -> None: ...
+
+
+class Adjustment(GObject.InitiallyUnowned):
+ parent_instance: GObject.InitiallyUnowned
+
+ def changed(self) -> None: ...
+
+ def clamp_page(self, lower: builtins.float, upper: builtins.float) -> None: ...
+
+ def configure(self, value: builtins.float, lower: builtins.float, upper: builtins.float, step_increment: builtins.float, page_increment: builtins.float, page_size: builtins.float) -> None: ...
+
+ def get_lower(self) -> builtins.float: ...
+
+ def get_minimum_increment(self) -> builtins.float: ...
+
+ def get_page_increment(self) -> builtins.float: ...
+
+ def get_page_size(self) -> builtins.float: ...
+
+ def get_step_increment(self) -> builtins.float: ...
+
+ def get_upper(self) -> builtins.float: ...
+
+ def get_value(self) -> builtins.float: ...
+
+ @staticmethod
+ def new(value: builtins.float, lower: builtins.float, upper: builtins.float, step_increment: builtins.float, page_increment: builtins.float, page_size: builtins.float) -> Adjustment: ...
+
+ def set_lower(self, lower: builtins.float) -> None: ...
+
+ def set_page_increment(self, page_increment: builtins.float) -> None: ...
+
+ def set_page_size(self, page_size: builtins.float) -> None: ...
+
+ def set_step_increment(self, step_increment: builtins.float) -> None: ...
+
+ def set_upper(self, upper: builtins.float) -> None: ...
+
+ def set_value(self, value: builtins.float) -> None: ...
+
+ def value_changed(self) -> None: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_value_changed(self) -> None: ...
+
+
+class AppChooser(GObject.GInterface):
+
+ def get_app_info(self) -> typing.Optional[Gio.AppInfo]: ...
+
+ def get_content_type(self) -> builtins.str: ...
+
+ def refresh(self) -> None: ...
+
+
+class Application(Gio.Application):
+ parent: Gio.Application
+
+ def add_accelerator(self, accelerator: builtins.str, action_name: builtins.str, parameter: typing.Optional[GLib.Variant]) -> None: ...
+
+ def add_window(self, window: Window) -> None: ...
+
+ def get_accels_for_action(self, detailed_action_name: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def get_actions_for_accel(self, accel: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+ def get_active_window(self) -> typing.Optional[Window]: ...
+
+ def get_app_menu(self) -> typing.Optional[Gio.MenuModel]: ...
+
+ def get_menu_by_id(self, id: builtins.str) -> Gio.Menu: ...
+
+ def get_menubar(self) -> Gio.MenuModel: ...
+
+ def get_window_by_id(self, id: builtins.int) -> typing.Optional[Window]: ...
+
+ def get_windows(self) -> typing.Sequence[Window]: ...
+
+ def inhibit(self, window: typing.Optional[Window], flags: ApplicationInhibitFlags, reason: typing.Optional[builtins.str]) -> builtins.int: ...
+
+ def is_inhibited(self, flags: ApplicationInhibitFlags) -> builtins.bool: ...
+
+ def list_action_descriptions(self) -> typing.Sequence[builtins.str]: ...
+
+ @staticmethod
+ def new(application_id: typing.Optional[builtins.str], flags: Gio.ApplicationFlags) -> Application: ... # type: ignore
+
+ def prefers_app_menu(self) -> builtins.bool: ...
+
+ def remove_accelerator(self, action_name: builtins.str, parameter: typing.Optional[GLib.Variant]) -> None: ...
+
+ def remove_window(self, window: Window) -> None: ...
+
+ def set_accels_for_action(self, detailed_action_name: builtins.str, accels: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_app_menu(self, app_menu: typing.Optional[Gio.MenuModel]) -> None: ...
+
+ def set_menubar(self, menubar: typing.Optional[Gio.MenuModel]) -> None: ...
+
+ def uninhibit(self, cookie: builtins.int) -> None: ...
+
+ def do_window_added(self, window: Window) -> None: ...
+
+ def do_window_removed(self, window: Window) -> None: ...
+
+
+class Buildable(GObject.GInterface):
+
+ def add_child(self, builder: Builder, child: GObject.Object, type: typing.Optional[builtins.str]) -> None: ...
+
+ def construct_child(self, builder: Builder, name: builtins.str) -> GObject.Object: ...
+
+ def custom_finished(self, builder: Builder, child: typing.Optional[GObject.Object], tagname: builtins.str, data: typing.Optional[builtins.object]) -> None: ...
+
+ def custom_tag_end(self, builder: Builder, child: typing.Optional[GObject.Object], tagname: builtins.str, data: typing.Optional[builtins.object]) -> None: ...
+
+ def custom_tag_start(self, builder: Builder, child: typing.Optional[GObject.Object], tagname: builtins.str) -> typing.Tuple[builtins.bool, GLib.MarkupParser, builtins.object]: ...
+
+ def get_internal_child(self, builder: Builder, childname: builtins.str) -> GObject.Object: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def parser_finished(self, builder: Builder) -> None: ...
+
+ def set_buildable_property(self, builder: Builder, name: builtins.str, value: GObject.Value) -> None: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+ def do_add_child(self, builder: Builder, child: GObject.Object, type: typing.Optional[builtins.str]) -> None: ...
+
+ def do_construct_child(self, builder: Builder, name: builtins.str) -> GObject.Object: ...
+
+ def do_custom_finished(self, builder: Builder, child: typing.Optional[GObject.Object], tagname: builtins.str, data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_custom_tag_end(self, builder: Builder, child: typing.Optional[GObject.Object], tagname: builtins.str, data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_custom_tag_start(self, builder: Builder, child: typing.Optional[GObject.Object], tagname: builtins.str) -> typing.Tuple[builtins.bool, GLib.MarkupParser, builtins.object]: ...
+
+ def do_get_internal_child(self, builder: Builder, childname: builtins.str) -> GObject.Object: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_parser_finished(self, builder: Builder) -> None: ...
+
+ def do_set_buildable_property(self, builder: Builder, name: builtins.str, value: GObject.Value) -> None: ...
+
+ def do_set_name(self, name: builtins.str) -> None: ...
+
+
+class Builder(GObject.Object):
+ parent_instance: GObject.Object
+
+ def __init__(self,
+ *,
+ translation_domain: typing.Optional[str] = None,
+ ) -> None: ...
+
+ def add_callback_symbol(self, callback_name: builtins.str, callback_symbol: GObject.Callback) -> None: ...
+
+ def add_from_file(self, filename: builtins.str) -> builtins.int: ...
+
+ def add_from_resource(self, resource_path: builtins.str) -> builtins.int: ...
+
+ def add_from_string(self, buffer: builtins.str, length: builtins.int) -> builtins.int: ...
+
+ def add_objects_from_file(self, filename: builtins.str, object_ids: typing.Sequence[builtins.str]) -> builtins.int: ...
+
+ def add_objects_from_resource(self, resource_path: builtins.str, object_ids: typing.Sequence[builtins.str]) -> builtins.int: ...
+
+ def add_objects_from_string(self, buffer: builtins.str, length: builtins.int, object_ids: typing.Sequence[builtins.str]) -> builtins.int: ...
+
+ def connect_signals(self, user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def connect_signals_full(self, func: BuilderConnectFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def expose_object(self, name: builtins.str, object: GObject.Object) -> None: ...
+
+ def extend_with_template(self, widget: Widget, template_type: GObject.GType, buffer: builtins.str, length: builtins.int) -> builtins.int: ...
+
+ def get_application(self) -> typing.Optional[Application]: ...
+
+ def get_object(self, name: builtins.str) -> typing.Optional[GObject.Object]: ...
+
+ def get_objects(self) -> typing.Sequence[GObject.Object]: ...
+
+ def get_translation_domain(self) -> builtins.str: ...
+
+ def get_type_from_name(self, type_name: builtins.str) -> GObject.GType: ...
+
+ @staticmethod
+ def new(**kwargs) -> Builder: ... # type: ignore
+
+ @staticmethod
+ def new_from_file(filename: builtins.str) -> Builder: ...
+
+ @staticmethod
+ def new_from_resource(resource_path: builtins.str) -> Builder: ...
+
+ @staticmethod
+ def new_from_string(string: builtins.str, length: builtins.int) -> Builder: ...
+
+ def set_application(self, application: Application) -> None: ...
+
+ def set_translation_domain(self, domain: typing.Optional[builtins.str]) -> None: ...
+
+ def value_from_string(self, pspec: GObject.ParamSpec, string: builtins.str) -> typing.Tuple[builtins.bool, GObject.Value]: ...
+
+ def value_from_string_type(self, type: GObject.GType, string: builtins.str) -> typing.Tuple[builtins.bool, GObject.Value]: ...
+
+ def do_get_type_from_name(self, type_name: builtins.str) -> GObject.GType: ...
+
+
+class CellAccessibleParent(GObject.GInterface):
+
+ def activate(self, cell: CellAccessible) -> None: ...
+
+ def edit(self, cell: CellAccessible) -> None: ...
+
+ def expand_collapse(self, cell: CellAccessible) -> None: ...
+
+ def get_cell_area(self, cell: CellAccessible) -> Gdk.Rectangle: ...
+
+ def get_cell_extents(self, cell: CellAccessible, coord_type: Atk.CoordType) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def get_cell_position(self, cell: CellAccessible) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_child_index(self, cell: CellAccessible) -> builtins.int: ...
+
+ def get_column_header_cells(self, cell: CellAccessible) -> typing.Sequence[Atk.Object]: ...
+
+ def get_renderer_state(self, cell: CellAccessible) -> CellRendererState: ...
+
+ def get_row_header_cells(self, cell: CellAccessible) -> typing.Sequence[Atk.Object]: ...
+
+ def grab_focus(self, cell: CellAccessible) -> builtins.bool: ...
+
+ def update_relationset(self, cell: CellAccessible, relationset: Atk.RelationSet) -> None: ...
+
+ def do_activate(self, cell: CellAccessible) -> None: ...
+
+ def do_edit(self, cell: CellAccessible) -> None: ...
+
+ def do_expand_collapse(self, cell: CellAccessible) -> None: ...
+
+ def do_get_cell_area(self, cell: CellAccessible) -> Gdk.Rectangle: ...
+
+ def do_get_cell_extents(self, cell: CellAccessible, coord_type: Atk.CoordType) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def do_get_cell_position(self, cell: CellAccessible) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_child_index(self, cell: CellAccessible) -> builtins.int: ...
+
+ def do_get_column_header_cells(self, cell: CellAccessible) -> typing.Sequence[Atk.Object]: ...
+
+ def do_get_renderer_state(self, cell: CellAccessible) -> CellRendererState: ...
+
+ def do_get_row_header_cells(self, cell: CellAccessible) -> typing.Sequence[Atk.Object]: ...
+
+ def do_grab_focus(self, cell: CellAccessible) -> builtins.bool: ...
+
+ def do_update_relationset(self, cell: CellAccessible, relationset: Atk.RelationSet) -> None: ...
+
+
+class CellAreaContext(GObject.Object):
+ parent_instance: GObject.Object
+
+ def allocate(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def get_allocation(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_area(self) -> CellArea: ...
+
+ def get_preferred_height(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_height_for_width(self, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_width(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_width_for_height(self, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def push_preferred_height(self, minimum_height: builtins.int, natural_height: builtins.int) -> None: ...
+
+ def push_preferred_width(self, minimum_width: builtins.int, natural_width: builtins.int) -> None: ...
+
+ def reset(self) -> None: ...
+
+ def do_allocate(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_get_preferred_height_for_width(self, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_width_for_height(self, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_reset(self) -> None: ...
+
+
+class CellEditable(GObject.GInterface):
+
+ def editing_done(self) -> None: ...
+
+ def remove_widget(self) -> None: ...
+
+ def start_editing(self, event: typing.Optional[Gdk.Event]) -> None: ...
+
+ def do_editing_done(self) -> None: ...
+
+ def do_remove_widget(self) -> None: ...
+
+ def do_start_editing(self, event: typing.Optional[Gdk.Event]) -> None: ...
+
+
+class CellLayout(GObject.GInterface):
+
+ def add_attribute(self, cell: CellRenderer, attribute: builtins.str, column: builtins.int) -> None: ...
+
+ def clear(self) -> None: ...
+
+ def clear_attributes(self, cell: CellRenderer) -> None: ...
+
+ def get_area(self) -> typing.Optional[CellArea]: ...
+
+ def get_cells(self) -> typing.Sequence[CellRenderer]: ...
+
+ def pack_end(self, cell: CellRenderer, expand: builtins.bool) -> None: ...
+
+ def pack_start(self, cell: CellRenderer, expand: builtins.bool) -> None: ...
+
+ def reorder(self, cell: CellRenderer, position: builtins.int) -> None: ...
+
+ def set_cell_data_func(self, cell: CellRenderer, func: typing.Optional[CellLayoutDataFunc], *func_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_add_attribute(self, cell: CellRenderer, attribute: builtins.str, column: builtins.int) -> None: ...
+
+ def do_clear(self) -> None: ...
+
+ def do_clear_attributes(self, cell: CellRenderer) -> None: ...
+
+ def do_get_area(self) -> typing.Optional[CellArea]: ...
+
+ def do_get_cells(self) -> typing.Sequence[CellRenderer]: ...
+
+ def do_pack_end(self, cell: CellRenderer, expand: builtins.bool) -> None: ...
+
+ def do_pack_start(self, cell: CellRenderer, expand: builtins.bool) -> None: ...
+
+ def do_reorder(self, cell: CellRenderer, position: builtins.int) -> None: ...
+
+ def do_set_cell_data_func(self, cell: CellRenderer, func: typing.Optional[CellLayoutDataFunc], func_data: typing.Optional[builtins.object]) -> None: ...
+
+
+class CellRenderer(GObject.InitiallyUnowned):
+ parent_instance: GObject.InitiallyUnowned
+
+ class _Props:
+ sensitive: bool
+
+ props: _Props
+
+ def activate(self, event: Gdk.Event, widget: Widget, path: builtins.str, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState) -> builtins.bool: ...
+
+ def get_aligned_area(self, widget: Widget, flags: CellRendererState, cell_area: Gdk.Rectangle) -> Gdk.Rectangle: ...
+
+ def get_alignment(self) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def get_fixed_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_padding(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_height(self, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_height_for_width(self, widget: Widget, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_size(self, widget: Widget) -> typing.Tuple[Requisition, Requisition]: ...
+
+ def get_preferred_width(self, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_width_for_height(self, widget: Widget, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_request_mode(self) -> SizeRequestMode: ...
+
+ def get_sensitive(self) -> builtins.bool: ...
+
+ def get_size(self, widget: Widget, cell_area: typing.Optional[Gdk.Rectangle]) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def get_state(self, widget: typing.Optional[Widget], cell_state: CellRendererState) -> StateFlags: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ def is_activatable(self) -> builtins.bool: ...
+
+ def render(self, cr: cairo.Context, widget: Widget, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState) -> None: ...
+
+ def set_alignment(self, xalign: builtins.float, yalign: builtins.float) -> None: ...
+
+ def set_fixed_size(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def set_padding(self, xpad: builtins.int, ypad: builtins.int) -> None: ...
+
+ def set_sensitive(self, sensitive: builtins.bool) -> None: ...
+
+ def set_visible(self, visible: builtins.bool) -> None: ...
+
+ def start_editing(self, event: typing.Optional[Gdk.Event], widget: Widget, path: builtins.str, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState) -> typing.Optional[CellEditable]: ...
+
+ def stop_editing(self, canceled: builtins.bool) -> None: ...
+
+ @staticmethod
+ def set_accessible_type(type: GObject.GType) -> None: ...
+
+ def do_activate(self, event: Gdk.Event, widget: Widget, path: builtins.str, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState) -> builtins.bool: ...
+
+ def do_editing_canceled(self) -> None: ...
+
+ def do_editing_started(self, editable: CellEditable, path: builtins.str) -> None: ...
+
+ def do_get_aligned_area(self, widget: Widget, flags: CellRendererState, cell_area: Gdk.Rectangle) -> Gdk.Rectangle: ...
+
+ def do_get_preferred_height(self, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_height_for_width(self, widget: Widget, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_width(self, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_width_for_height(self, widget: Widget, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_request_mode(self) -> SizeRequestMode: ...
+
+ def do_get_size(self, widget: Widget, cell_area: typing.Optional[Gdk.Rectangle]) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def do_render(self, cr: cairo.Context, widget: Widget, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState) -> None: ...
+
+ def do_start_editing(self, event: typing.Optional[Gdk.Event], widget: Widget, path: builtins.str, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState) -> typing.Optional[CellEditable]: ...
+
+
+class Clipboard(GObject.Object):
+
+ def clear(self) -> None: ...
+
+ @staticmethod
+ def get(selection: Gdk.Atom) -> Clipboard: ...
+
+ @staticmethod
+ def get_default(display: Gdk.Display) -> Clipboard: ...
+
+ def get_display(self) -> Gdk.Display: ...
+
+ @staticmethod
+ def get_for_display(display: Gdk.Display, selection: Gdk.Atom) -> Clipboard: ...
+
+ def get_owner(self) -> typing.Optional[GObject.Object]: ...
+
+ def request_contents(self, target: Gdk.Atom, callback: ClipboardReceivedFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def request_image(self, callback: ClipboardImageReceivedFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def request_rich_text(self, buffer: TextBuffer, callback: ClipboardRichTextReceivedFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def request_targets(self, callback: ClipboardTargetsReceivedFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def request_text(self, callback: ClipboardTextReceivedFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def request_uris(self, callback: ClipboardURIReceivedFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_can_store(self, targets: typing.Optional[typing.Sequence[TargetEntry]]) -> None: ...
+
+ def set_image(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ...
+
+ def set_text(self, text: builtins.str, len: builtins.int) -> None: ...
+
+ def store(self) -> None: ...
+
+ def wait_for_contents(self, target: Gdk.Atom) -> typing.Optional[SelectionData]: ...
+
+ def wait_for_image(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def wait_for_rich_text(self, buffer: TextBuffer) -> typing.Tuple[typing.Optional[builtins.bytes], Gdk.Atom]: ...
+
+ def wait_for_targets(self) -> typing.Tuple[builtins.bool, typing.Sequence[Gdk.Atom]]: ...
+
+ def wait_for_text(self) -> typing.Optional[builtins.str]: ...
+
+ def wait_for_uris(self) -> typing.Optional[typing.Sequence[builtins.str]]: ...
+
+ def wait_is_image_available(self) -> builtins.bool: ...
+
+ def wait_is_rich_text_available(self, buffer: TextBuffer) -> builtins.bool: ...
+
+ def wait_is_target_available(self, target: Gdk.Atom) -> builtins.bool: ...
+
+ def wait_is_text_available(self) -> builtins.bool: ...
+
+ def wait_is_uris_available(self) -> builtins.bool: ...
+
+
+class ColorChooser(GObject.GInterface):
+
+ def add_palette(self, orientation: Orientation, colors_per_line: builtins.int, colors: typing.Optional[typing.Sequence[Gdk.RGBA]]) -> None: ...
+
+ def get_rgba(self) -> Gdk.RGBA: ...
+
+ def get_use_alpha(self) -> builtins.bool: ...
+
+ def set_rgba(self, color: Gdk.RGBA) -> None: ...
+
+ def set_use_alpha(self, use_alpha: builtins.bool) -> None: ...
+
+ def do_add_palette(self, orientation: Orientation, colors_per_line: builtins.int, colors: typing.Optional[typing.Sequence[Gdk.RGBA]]) -> None: ...
+
+ def do_color_activated(self, color: Gdk.RGBA) -> None: ...
+
+ def do_get_rgba(self) -> Gdk.RGBA: ...
+
+ def do_set_rgba(self, color: Gdk.RGBA) -> None: ...
+
+
+class Editable(GObject.GInterface):
+
+ def copy_clipboard(self) -> None: ...
+
+ def cut_clipboard(self) -> None: ...
+
+ def delete_selection(self) -> None: ...
+
+ def delete_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def get_chars(self, start_pos: builtins.int, end_pos: builtins.int) -> builtins.str: ...
+
+ def get_editable(self) -> builtins.bool: ...
+
+ def get_position(self) -> builtins.int: ...
+
+ def get_selection_bounds(self) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def insert_text(self, new_text: builtins.str, new_text_length: builtins.int, position: builtins.int) -> builtins.int: ...
+
+ def paste_clipboard(self) -> None: ...
+
+ def select_region(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def set_editable(self, is_editable: builtins.bool) -> None: ...
+
+ def set_position(self, position: builtins.int) -> None: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_delete_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def do_do_delete_text(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+ def do_do_insert_text(self, new_text: builtins.str, new_text_length: builtins.int, position: builtins.int) -> builtins.int: ...
+
+ def do_get_chars(self, start_pos: builtins.int, end_pos: builtins.int) -> builtins.str: ...
+
+ def do_get_position(self) -> builtins.int: ...
+
+ def do_get_selection_bounds(self) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def do_insert_text(self, new_text: builtins.str, new_text_length: builtins.int, position: builtins.int) -> builtins.int: ...
+
+ def do_set_position(self, position: builtins.int) -> None: ...
+
+ def do_set_selection_bounds(self, start_pos: builtins.int, end_pos: builtins.int) -> None: ...
+
+
+class EntryBuffer(GObject.Object):
+ parent_instance: GObject.Object
+
+ class _Props:
+ text: str
+
+ props: _Props
+
+ def delete_text(self, position: builtins.int, n_chars: builtins.int) -> builtins.int: ...
+
+ def emit_deleted_text(self, position: builtins.int, n_chars: builtins.int) -> None: ...
+
+ def emit_inserted_text(self, position: builtins.int, chars: builtins.str, n_chars: builtins.int) -> None: ...
+
+ def get_bytes(self) -> builtins.int: ...
+
+ def get_length(self) -> builtins.int: ...
+
+ def get_max_length(self) -> builtins.int: ...
+
+ def get_text(self) -> builtins.str: ...
+
+ def insert_text(self, position: builtins.int, chars: builtins.str, n_chars: builtins.int) -> builtins.int: ...
+
+ @staticmethod
+ def new(initial_chars: typing.Optional[builtins.str], n_initial_chars: builtins.int, **kwargs) -> EntryBuffer: ... # type: ignore
+
+ def set_max_length(self, max_length: builtins.int) -> None: ...
+
+ def set_text(self, chars: builtins.str, n_chars: builtins.int) -> None: ...
+
+ def do_delete_text(self, position: builtins.int, n_chars: builtins.int) -> builtins.int: ...
+
+ def do_deleted_text(self, position: builtins.int, n_chars: builtins.int) -> None: ...
+
+ def do_get_length(self) -> builtins.int: ...
+
+ def do_get_text(self, n_bytes: builtins.int) -> builtins.str: ...
+
+ def do_insert_text(self, position: builtins.int, chars: builtins.str, n_chars: builtins.int) -> builtins.int: ...
+
+ def do_inserted_text(self, position: builtins.int, chars: builtins.str, n_chars: builtins.int) -> None: ...
+
+
+class EntryIconAccessible(Atk.Object, Atk.Action, Atk.Component): # type: ignore
+ ...
+
+
+class EventController(GObject.Object):
+
+ def get_propagation_phase(self) -> PropagationPhase: ...
+
+ def get_widget(self) -> Widget: ...
+
+ def handle_event(self, event: Gdk.Event) -> builtins.bool: ...
+
+ def reset(self) -> None: ...
+
+ def set_propagation_phase(self, phase: PropagationPhase) -> None: ...
+
+
+class FileChooser(GObject.GInterface):
+
+ def add_choice(self, id: builtins.str, label: builtins.str, options: typing.Optional[typing.Sequence[builtins.str]], option_labels: typing.Optional[typing.Sequence[builtins.str]]) -> None: ...
+
+ def add_filter(self, filter: FileFilter) -> None: ...
+
+ def add_shortcut_folder(self, folder: builtins.str) -> builtins.bool: ...
+
+ def add_shortcut_folder_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def get_action(self) -> FileChooserAction: ...
+
+ def get_choice(self, id: builtins.str) -> builtins.str: ...
+
+ def get_create_folders(self) -> builtins.bool: ...
+
+ def get_current_folder(self) -> typing.Optional[builtins.str]: ...
+
+ def get_current_folder_file(self) -> Gio.File: ...
+
+ def get_current_folder_uri(self) -> typing.Optional[builtins.str]: ...
+
+ def get_current_name(self) -> builtins.str: ...
+
+ def get_do_overwrite_confirmation(self) -> builtins.bool: ...
+
+ def get_extra_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_file(self) -> Gio.File: ...
+
+ def get_filename(self) -> typing.Optional[builtins.str]: ...
+
+ def get_filenames(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_files(self) -> typing.Sequence[Gio.File]: ...
+
+ def get_filter(self) -> typing.Optional[FileFilter]: ...
+
+ def get_local_only(self) -> builtins.bool: ...
+
+ def get_preview_file(self) -> typing.Optional[Gio.File]: ...
+
+ def get_preview_filename(self) -> typing.Optional[builtins.str]: ...
+
+ def get_preview_uri(self) -> typing.Optional[builtins.str]: ...
+
+ def get_preview_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_preview_widget_active(self) -> builtins.bool: ...
+
+ def get_select_multiple(self) -> builtins.bool: ...
+
+ def get_show_hidden(self) -> builtins.bool: ...
+
+ def get_uri(self) -> typing.Optional[builtins.str]: ...
+
+ def get_uris(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_use_preview_label(self) -> builtins.bool: ...
+
+ def list_filters(self) -> typing.Sequence[FileFilter]: ...
+
+ def list_shortcut_folder_uris(self) -> typing.Optional[typing.Sequence[builtins.str]]: ...
+
+ def list_shortcut_folders(self) -> typing.Optional[typing.Sequence[builtins.str]]: ...
+
+ def remove_choice(self, id: builtins.str) -> None: ...
+
+ def remove_filter(self, filter: FileFilter) -> None: ...
+
+ def remove_shortcut_folder(self, folder: builtins.str) -> builtins.bool: ...
+
+ def remove_shortcut_folder_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def select_all(self) -> None: ...
+
+ def select_file(self, file: Gio.File) -> builtins.bool: ...
+
+ def select_filename(self, filename: builtins.str) -> builtins.bool: ...
+
+ def select_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def set_action(self, action: FileChooserAction) -> None: ...
+
+ def set_choice(self, id: builtins.str, option: builtins.str) -> None: ...
+
+ def set_create_folders(self, create_folders: builtins.bool) -> None: ...
+
+ def set_current_folder(self, filename: builtins.str) -> builtins.bool: ...
+
+ def set_current_folder_file(self, file: Gio.File) -> builtins.bool: ...
+
+ def set_current_folder_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def set_current_name(self, name: builtins.str) -> None: ...
+
+ def set_do_overwrite_confirmation(self, do_overwrite_confirmation: builtins.bool) -> None: ...
+
+ def set_extra_widget(self, extra_widget: Widget) -> None: ...
+
+ def set_file(self, file: Gio.File) -> builtins.bool: ...
+
+ def set_filename(self, filename: builtins.str) -> builtins.bool: ...
+
+ def set_filter(self, filter: FileFilter) -> None: ...
+
+ def set_local_only(self, local_only: builtins.bool) -> None: ...
+
+ def set_preview_widget(self, preview_widget: Widget) -> None: ...
+
+ def set_preview_widget_active(self, active: builtins.bool) -> None: ...
+
+ def set_select_multiple(self, select_multiple: builtins.bool) -> None: ...
+
+ def set_show_hidden(self, show_hidden: builtins.bool) -> None: ...
+
+ def set_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def set_use_preview_label(self, use_label: builtins.bool) -> None: ...
+
+ def unselect_all(self) -> None: ...
+
+ def unselect_file(self, file: Gio.File) -> None: ...
+
+ def unselect_filename(self, filename: builtins.str) -> None: ...
+
+ def unselect_uri(self, uri: builtins.str) -> None: ...
+
+
+class FontChooser(GObject.GInterface):
+
+ def get_font(self) -> typing.Optional[builtins.str]: ...
+
+ def get_font_desc(self) -> typing.Optional[Pango.FontDescription]: ...
+
+ def get_font_face(self) -> typing.Optional[Pango.FontFace]: ...
+
+ def get_font_family(self) -> typing.Optional[Pango.FontFamily]: ...
+
+ def get_font_features(self) -> builtins.str: ...
+
+ def get_font_map(self) -> typing.Optional[Pango.FontMap]: ...
+
+ def get_font_size(self) -> builtins.int: ...
+
+ def get_language(self) -> builtins.str: ...
+
+ def get_level(self) -> FontChooserLevel: ...
+
+ def get_preview_text(self) -> builtins.str: ...
+
+ def get_show_preview_entry(self) -> builtins.bool: ...
+
+ def set_filter_func(self, filter: typing.Optional[FontFilterFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_font(self, fontname: builtins.str) -> None: ...
+
+ def set_font_desc(self, font_desc: Pango.FontDescription) -> None: ...
+
+ def set_font_map(self, fontmap: typing.Optional[Pango.FontMap]) -> None: ...
+
+ def set_language(self, language: builtins.str) -> None: ...
+
+ def set_level(self, level: FontChooserLevel) -> None: ...
+
+ def set_preview_text(self, text: builtins.str) -> None: ...
+
+ def set_show_preview_entry(self, show_preview_entry: builtins.bool) -> None: ...
+
+ def do_font_activated(self, fontname: builtins.str) -> None: ...
+
+ def do_get_font_face(self) -> typing.Optional[Pango.FontFace]: ...
+
+ def do_get_font_family(self) -> typing.Optional[Pango.FontFamily]: ...
+
+ def do_get_font_map(self) -> typing.Optional[Pango.FontMap]: ...
+
+ def do_get_font_size(self) -> builtins.int: ...
+
+ def do_set_filter_func(self, filter: typing.Optional[FontFilterFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_set_font_map(self, fontmap: typing.Optional[Pango.FontMap]) -> None: ...
+
+
+class IMContext(GObject.Object):
+ parent_instance: GObject.Object
+
+ def delete_surrounding(self, offset: builtins.int, n_chars: builtins.int) -> builtins.bool: ...
+
+ def filter_keypress(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def focus_in(self) -> None: ...
+
+ def focus_out(self) -> None: ...
+
+ def get_preedit_string(self) -> typing.Tuple[builtins.str, Pango.AttrList, builtins.int]: ...
+
+ def get_surrounding(self) -> typing.Tuple[builtins.bool, builtins.str, builtins.int]: ...
+
+ def reset(self) -> None: ...
+
+ def set_client_window(self, window: typing.Optional[Gdk.Window]) -> None: ...
+
+ def set_cursor_location(self, area: Gdk.Rectangle) -> None: ...
+
+ def set_surrounding(self, text: builtins.str, len: builtins.int, cursor_index: builtins.int) -> None: ...
+
+ def set_use_preedit(self, use_preedit: builtins.bool) -> None: ...
+
+ def do_commit(self, str: builtins.str) -> None: ...
+
+ def do_delete_surrounding(self, offset: builtins.int, n_chars: builtins.int) -> builtins.bool: ...
+
+ def do_filter_keypress(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def do_focus_in(self) -> None: ...
+
+ def do_focus_out(self) -> None: ...
+
+ def do_get_preedit_string(self) -> typing.Tuple[builtins.str, Pango.AttrList, builtins.int]: ...
+
+ def do_get_surrounding(self) -> typing.Tuple[builtins.bool, builtins.str, builtins.int]: ...
+
+ def do_preedit_changed(self) -> None: ...
+
+ def do_preedit_end(self) -> None: ...
+
+ def do_preedit_start(self) -> None: ...
+
+ def do_reset(self) -> None: ...
+
+ def do_retrieve_surrounding(self) -> builtins.bool: ...
+
+ def do_set_client_window(self, window: typing.Optional[Gdk.Window]) -> None: ...
+
+ def do_set_cursor_location(self, area: Gdk.Rectangle) -> None: ...
+
+ def do_set_surrounding(self, text: builtins.str, len: builtins.int, cursor_index: builtins.int) -> None: ...
+
+ def do_set_use_preedit(self, use_preedit: builtins.bool) -> None: ...
+
+
+class IconInfo(GObject.Object):
+
+ def get_attach_points(self) -> typing.Tuple[builtins.bool, typing.Sequence[Gdk.Point]]: ...
+
+ def get_base_scale(self) -> builtins.int: ...
+
+ def get_base_size(self) -> builtins.int: ...
+
+ def get_builtin_pixbuf(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_display_name(self) -> builtins.str: ...
+
+ def get_embedded_rect(self) -> typing.Tuple[builtins.bool, Gdk.Rectangle]: ...
+
+ def get_filename(self) -> typing.Optional[builtins.str]: ...
+
+ def is_symbolic(self) -> builtins.bool: ...
+
+ def load_icon(self) -> GdkPixbuf.Pixbuf: ...
+
+ def load_icon_async(self, cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def load_icon_finish(self, res: Gio.AsyncResult) -> GdkPixbuf.Pixbuf: ...
+
+ def load_surface(self, for_window: typing.Optional[Gdk.Window]) -> cairo.Surface: ...
+
+ def load_symbolic(self, fg: Gdk.RGBA, success_color: typing.Optional[Gdk.RGBA], warning_color: typing.Optional[Gdk.RGBA], error_color: typing.Optional[Gdk.RGBA]) -> typing.Tuple[GdkPixbuf.Pixbuf, builtins.bool]: ...
+
+ def load_symbolic_async(self, fg: Gdk.RGBA, success_color: typing.Optional[Gdk.RGBA], warning_color: typing.Optional[Gdk.RGBA], error_color: typing.Optional[Gdk.RGBA], cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def load_symbolic_finish(self, res: Gio.AsyncResult) -> typing.Tuple[GdkPixbuf.Pixbuf, builtins.bool]: ...
+
+ def load_symbolic_for_context(self, context: StyleContext) -> typing.Tuple[GdkPixbuf.Pixbuf, builtins.bool]: ...
+
+ def load_symbolic_for_context_async(self, context: StyleContext, cancellable: typing.Optional[Gio.Cancellable], callback: typing.Optional[Gio.AsyncReadyCallback], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def load_symbolic_for_context_finish(self, res: Gio.AsyncResult) -> typing.Tuple[GdkPixbuf.Pixbuf, builtins.bool]: ...
+
+ def load_symbolic_for_style(self, style: Style, state: StateType) -> typing.Tuple[GdkPixbuf.Pixbuf, builtins.bool]: ...
+
+ @staticmethod
+ def new_for_pixbuf(icon_theme: IconTheme, pixbuf: GdkPixbuf.Pixbuf) -> IconInfo: ...
+
+ def set_raw_coordinates(self, raw_coordinates: builtins.bool) -> None: ...
+
+
+class IconTheme(GObject.Object):
+ parent_instance: GObject.Object
+
+ @staticmethod
+ def add_builtin_icon(icon_name: builtins.str, size: builtins.int, pixbuf: GdkPixbuf.Pixbuf) -> None: ...
+
+ def add_resource_path(self, path: builtins.str) -> None: ...
+
+ def append_search_path(self, path: builtins.str) -> None: ...
+
+ def choose_icon(self, icon_names: typing.Sequence[builtins.str], size: builtins.int, flags: IconLookupFlags) -> typing.Optional[IconInfo]: ...
+
+ def choose_icon_for_scale(self, icon_names: typing.Sequence[builtins.str], size: builtins.int, scale: builtins.int, flags: IconLookupFlags) -> typing.Optional[IconInfo]: ...
+
+ @staticmethod
+ def get_default() -> IconTheme: ...
+
+ def get_example_icon_name(self) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def get_for_screen(screen: Gdk.Screen) -> IconTheme: ...
+
+ def get_icon_sizes(self, icon_name: builtins.str) -> typing.Sequence[builtins.int]: ...
+
+ def get_search_path(self) -> typing.Sequence[builtins.str]: ...
+
+ def has_icon(self, icon_name: builtins.str) -> builtins.bool: ...
+
+ def list_contexts(self) -> typing.Sequence[builtins.str]: ...
+
+ def list_icons(self, context: typing.Optional[builtins.str]) -> typing.Sequence[builtins.str]: ...
+
+ def load_icon(self, icon_name: builtins.str, size: builtins.int, flags: IconLookupFlags) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def load_icon_for_scale(self, icon_name: builtins.str, size: builtins.int, scale: builtins.int, flags: IconLookupFlags) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def load_surface(self, icon_name: builtins.str, size: builtins.int, scale: builtins.int, for_window: typing.Optional[Gdk.Window], flags: IconLookupFlags) -> typing.Optional[cairo.Surface]: ...
+
+ def lookup_by_gicon(self, icon: Gio.Icon, size: builtins.int, flags: IconLookupFlags) -> typing.Optional[IconInfo]: ...
+
+ def lookup_by_gicon_for_scale(self, icon: Gio.Icon, size: builtins.int, scale: builtins.int, flags: IconLookupFlags) -> typing.Optional[IconInfo]: ...
+
+ def lookup_icon(self, icon_name: builtins.str, size: builtins.int, flags: IconLookupFlags) -> typing.Optional[IconInfo]: ...
+
+ def lookup_icon_for_scale(self, icon_name: builtins.str, size: builtins.int, scale: builtins.int, flags: IconLookupFlags) -> typing.Optional[IconInfo]: ...
+
+ @staticmethod
+ def new(**kwargs) -> IconTheme: ... # type: ignore
+
+ def prepend_search_path(self, path: builtins.str) -> None: ...
+
+ def rescan_if_needed(self) -> builtins.bool: ...
+
+ def set_custom_theme(self, theme_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_screen(self, screen: Gdk.Screen) -> None: ...
+
+ def set_search_path(self, path: typing.Sequence[builtins.str]) -> None: ...
+
+ def do_changed(self) -> None: ...
+
+
+class MountOperation(Gio.MountOperation):
+ parent_instance: Gio.MountOperation
+
+ def get_parent(self) -> Window: ...
+
+ def get_screen(self) -> Gdk.Screen: ...
+
+ def is_showing(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(parent: typing.Optional[Window]) -> Gio.MountOperation: ... # type: ignore
+
+ def set_parent(self, parent: typing.Optional[Window]) -> None: ...
+
+ def set_screen(self, screen: Gdk.Screen) -> None: ...
+
+
+class NativeDialog(GObject.Object):
+ parent_instance: GObject.Object
+
+ def destroy(self) -> None: ...
+
+ def get_modal(self) -> builtins.bool: ...
+
+ def get_title(self) -> typing.Optional[builtins.str]: ...
+
+ def get_transient_for(self) -> typing.Optional[Window]: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ def hide(self) -> None: ...
+
+ def run(self) -> builtins.int: ...
+
+ def set_modal(self, modal: builtins.bool) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_transient_for(self, parent: typing.Optional[Window]) -> None: ...
+
+ def show(self) -> None: ...
+
+ def do_hide(self) -> None: ...
+
+ def do_response(self, response_id: builtins.int) -> None: ...
+
+ def do_show(self) -> None: ...
+
+
+class NotebookPageAccessible(Atk.Object, Atk.Component):
+ parent: Atk.Object
+
+ def invalidate(self) -> None: ...
+
+ @staticmethod
+ def new(notebook: NotebookAccessible, child: Widget) -> Atk.Object: ...
+
+
+class NumerableIcon(Gio.EmblemedIcon):
+ parent: Gio.EmblemedIcon
+
+ def get_background_gicon(self) -> typing.Optional[Gio.Icon]: ...
+
+ def get_background_icon_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_count(self) -> builtins.int: ...
+
+ def get_label(self) -> typing.Optional[builtins.str]: ...
+
+ def get_style_context(self) -> typing.Optional[StyleContext]: ...
+
+ @staticmethod
+ def new(base_icon: Gio.Icon) -> Gio.Icon: ... # type: ignore
+
+ @staticmethod
+ def new_with_style_context(base_icon: Gio.Icon, context: StyleContext) -> Gio.Icon: ...
+
+ def set_background_gicon(self, icon: typing.Optional[Gio.Icon]) -> None: ...
+
+ def set_background_icon_name(self, icon_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_count(self, count: builtins.int) -> None: ...
+
+ def set_label(self, label: typing.Optional[builtins.str]) -> None: ...
+
+ def set_style_context(self, style: StyleContext) -> None: ...
+
+
+class Orientable(GObject.GInterface):
+
+ def get_orientation(self) -> Orientation: ...
+
+ def set_orientation(self, orientation: Orientation) -> None: ...
+
+
+class PageSetup(GObject.Object):
+
+ def copy(self) -> PageSetup: ...
+
+ def get_bottom_margin(self, unit: Unit) -> builtins.float: ...
+
+ def get_left_margin(self, unit: Unit) -> builtins.float: ...
+
+ def get_orientation(self) -> PageOrientation: ...
+
+ def get_page_height(self, unit: Unit) -> builtins.float: ...
+
+ def get_page_width(self, unit: Unit) -> builtins.float: ...
+
+ def get_paper_height(self, unit: Unit) -> builtins.float: ...
+
+ def get_paper_size(self) -> PaperSize: ...
+
+ def get_paper_width(self, unit: Unit) -> builtins.float: ...
+
+ def get_right_margin(self, unit: Unit) -> builtins.float: ...
+
+ def get_top_margin(self, unit: Unit) -> builtins.float: ...
+
+ def load_file(self, file_name: builtins.str) -> builtins.bool: ...
+
+ def load_key_file(self, key_file: GLib.KeyFile, group_name: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> PageSetup: ... # type: ignore
+
+ @staticmethod
+ def new_from_file(file_name: builtins.str) -> PageSetup: ...
+
+ @staticmethod
+ def new_from_gvariant(variant: GLib.Variant) -> PageSetup: ...
+
+ @staticmethod
+ def new_from_key_file(key_file: GLib.KeyFile, group_name: typing.Optional[builtins.str]) -> PageSetup: ...
+
+ def set_bottom_margin(self, margin: builtins.float, unit: Unit) -> None: ...
+
+ def set_left_margin(self, margin: builtins.float, unit: Unit) -> None: ...
+
+ def set_orientation(self, orientation: PageOrientation) -> 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: builtins.float, unit: Unit) -> None: ...
+
+ def set_top_margin(self, margin: builtins.float, unit: Unit) -> None: ...
+
+ def to_file(self, file_name: builtins.str) -> builtins.bool: ...
+
+ def to_gvariant(self) -> GLib.Variant: ...
+
+ def to_key_file(self, key_file: GLib.KeyFile, group_name: typing.Optional[builtins.str]) -> None: ...
+
+
+class PrintContext(GObject.Object):
+
+ def create_pango_context(self) -> Pango.Context: ...
+
+ def create_pango_layout(self) -> Pango.Layout: ...
+
+ def get_cairo_context(self) -> cairo.Context: ...
+
+ def get_dpi_x(self) -> builtins.float: ...
+
+ def get_dpi_y(self) -> builtins.float: ...
+
+ def get_hard_margins(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float, builtins.float, builtins.float]: ...
+
+ def get_height(self) -> builtins.float: ...
+
+ def get_page_setup(self) -> PageSetup: ...
+
+ def get_pango_fontmap(self) -> Pango.FontMap: ...
+
+ def get_width(self) -> builtins.float: ...
+
+ def set_cairo_context(self, cr: cairo.Context, dpi_x: builtins.float, dpi_y: builtins.float) -> None: ...
+
+
+class PrintOperationPreview(GObject.GInterface):
+
+ def end_preview(self) -> None: ...
+
+ def is_selected(self, page_nr: builtins.int) -> builtins.bool: ...
+
+ def render_page(self, page_nr: builtins.int) -> None: ...
+
+ def do_end_preview(self) -> None: ...
+
+ def do_got_page_size(self, context: PrintContext, page_setup: PageSetup) -> None: ...
+
+ def do_is_selected(self, page_nr: builtins.int) -> builtins.bool: ...
+
+ def do_ready(self, context: PrintContext) -> None: ...
+
+ def do_render_page(self, page_nr: builtins.int) -> None: ...
+
+
+class PrintSettings(GObject.Object):
+
+ def copy(self) -> PrintSettings: ...
+
+ def foreach(self, func: PrintSettingsFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def get(self, key: builtins.str) -> builtins.str: ...
+
+ def get_bool(self, key: builtins.str) -> builtins.bool: ...
+
+ def get_collate(self) -> builtins.bool: ...
+
+ def get_default_source(self) -> builtins.str: ...
+
+ def get_dither(self) -> builtins.str: ...
+
+ def get_double(self, key: builtins.str) -> builtins.float: ...
+
+ def get_double_with_default(self, key: builtins.str, def_: builtins.float) -> builtins.float: ...
+
+ def get_duplex(self) -> PrintDuplex: ...
+
+ def get_finishings(self) -> builtins.str: ...
+
+ def get_int(self, key: builtins.str) -> builtins.int: ...
+
+ def get_int_with_default(self, key: builtins.str, def_: builtins.int) -> builtins.int: ...
+
+ def get_length(self, key: builtins.str, unit: Unit) -> builtins.float: ...
+
+ def get_media_type(self) -> builtins.str: ...
+
+ def get_n_copies(self) -> builtins.int: ...
+
+ def get_number_up(self) -> builtins.int: ...
+
+ def get_number_up_layout(self) -> NumberUpLayout: ...
+
+ def get_orientation(self) -> PageOrientation: ...
+
+ def get_output_bin(self) -> builtins.str: ...
+
+ def get_page_ranges(self) -> typing.Sequence[PageRange]: ...
+
+ def get_page_set(self) -> PageSet: ...
+
+ def get_paper_height(self, unit: Unit) -> builtins.float: ...
+
+ def get_paper_size(self) -> PaperSize: ...
+
+ def get_paper_width(self, unit: Unit) -> builtins.float: ...
+
+ def get_print_pages(self) -> PrintPages: ...
+
+ def get_printer(self) -> builtins.str: ...
+
+ def get_printer_lpi(self) -> builtins.float: ...
+
+ def get_quality(self) -> PrintQuality: ...
+
+ def get_resolution(self) -> builtins.int: ...
+
+ def get_resolution_x(self) -> builtins.int: ...
+
+ def get_resolution_y(self) -> builtins.int: ...
+
+ def get_reverse(self) -> builtins.bool: ...
+
+ def get_scale(self) -> builtins.float: ...
+
+ def get_use_color(self) -> builtins.bool: ...
+
+ def has_key(self, key: builtins.str) -> builtins.bool: ...
+
+ def load_file(self, file_name: builtins.str) -> builtins.bool: ...
+
+ def load_key_file(self, key_file: GLib.KeyFile, group_name: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> PrintSettings: ... # type: ignore
+
+ @staticmethod
+ def new_from_file(file_name: builtins.str) -> PrintSettings: ...
+
+ @staticmethod
+ def new_from_gvariant(variant: GLib.Variant) -> PrintSettings: ...
+
+ @staticmethod
+ def new_from_key_file(key_file: GLib.KeyFile, group_name: typing.Optional[builtins.str]) -> PrintSettings: ...
+
+ def set(self, key: builtins.str, value: typing.Optional[builtins.str]) -> None: ...
+
+ def set_bool(self, key: builtins.str, value: builtins.bool) -> None: ...
+
+ def set_collate(self, collate: builtins.bool) -> None: ...
+
+ def set_default_source(self, default_source: builtins.str) -> None: ...
+
+ def set_dither(self, dither: builtins.str) -> None: ...
+
+ def set_double(self, key: builtins.str, value: builtins.float) -> None: ...
+
+ def set_duplex(self, duplex: PrintDuplex) -> None: ...
+
+ def set_finishings(self, finishings: builtins.str) -> None: ...
+
+ def set_int(self, key: builtins.str, value: builtins.int) -> None: ...
+
+ def set_length(self, key: builtins.str, value: builtins.float, unit: Unit) -> None: ...
+
+ def set_media_type(self, media_type: builtins.str) -> None: ...
+
+ def set_n_copies(self, num_copies: builtins.int) -> None: ...
+
+ def set_number_up(self, number_up: builtins.int) -> None: ...
+
+ def set_number_up_layout(self, number_up_layout: NumberUpLayout) -> None: ...
+
+ def set_orientation(self, orientation: PageOrientation) -> None: ...
+
+ def set_output_bin(self, output_bin: builtins.str) -> None: ...
+
+ def set_page_ranges(self, page_ranges: typing.Sequence[PageRange]) -> None: ...
+
+ def set_page_set(self, page_set: PageSet) -> None: ...
+
+ def set_paper_height(self, height: builtins.float, unit: Unit) -> None: ...
+
+ def set_paper_size(self, paper_size: PaperSize) -> None: ...
+
+ def set_paper_width(self, width: builtins.float, unit: Unit) -> None: ...
+
+ def set_print_pages(self, pages: PrintPages) -> None: ...
+
+ def set_printer(self, printer: builtins.str) -> None: ...
+
+ def set_printer_lpi(self, lpi: builtins.float) -> None: ...
+
+ def set_quality(self, quality: PrintQuality) -> None: ...
+
+ def set_resolution(self, resolution: builtins.int) -> None: ...
+
+ def set_resolution_xy(self, resolution_x: builtins.int, resolution_y: builtins.int) -> None: ...
+
+ def set_reverse(self, reverse: builtins.bool) -> None: ...
+
+ def set_scale(self, scale: builtins.float) -> None: ...
+
+ def set_use_color(self, use_color: builtins.bool) -> None: ...
+
+ def to_file(self, file_name: builtins.str) -> builtins.bool: ...
+
+ def to_gvariant(self) -> GLib.Variant: ...
+
+ def to_key_file(self, key_file: GLib.KeyFile, group_name: typing.Optional[builtins.str]) -> None: ...
+
+ def unset(self, key: builtins.str) -> None: ...
+
+
+class RcStyle(GObject.Object):
+ base: typing.Sequence[Gdk.Color]
+ bg: typing.Sequence[Gdk.Color]
+ bg_pixmap_name: typing.Sequence[builtins.str]
+ color_flags: typing.Sequence[RcFlags]
+ engine_specified: builtins.int
+ fg: typing.Sequence[Gdk.Color]
+ font_desc: Pango.FontDescription
+ icon_factories: typing.Sequence[builtins.object]
+ name: builtins.str
+ parent_instance: GObject.Object
+ rc_properties: typing.Sequence[builtins.object]
+ rc_style_lists: typing.Sequence[builtins.object]
+ text: typing.Sequence[Gdk.Color]
+ xthickness: builtins.int
+ ythickness: builtins.int
+
+ def copy(self) -> RcStyle: ...
+
+ @staticmethod
+ def new(**kwargs) -> RcStyle: ... # type: ignore
+
+ def do_merge(self, src: RcStyle) -> None: ...
+
+ def do_parse(self, settings: Settings, scanner: GLib.Scanner) -> builtins.int: ...
+
+
+class RecentChooser(GObject.GInterface):
+
+ def add_filter(self, filter: RecentFilter) -> None: ...
+
+ def get_current_item(self) -> RecentInfo: ...
+
+ def get_current_uri(self) -> builtins.str: ...
+
+ def get_filter(self) -> RecentFilter: ...
+
+ def get_items(self) -> typing.Sequence[RecentInfo]: ...
+
+ def get_limit(self) -> builtins.int: ...
+
+ def get_local_only(self) -> builtins.bool: ...
+
+ def get_select_multiple(self) -> builtins.bool: ...
+
+ def get_show_icons(self) -> builtins.bool: ...
+
+ def get_show_not_found(self) -> builtins.bool: ...
+
+ def get_show_private(self) -> builtins.bool: ...
+
+ def get_show_tips(self) -> builtins.bool: ...
+
+ def get_sort_type(self) -> RecentSortType: ...
+
+ def get_uris(self) -> typing.Sequence[builtins.str]: ...
+
+ def list_filters(self) -> typing.Sequence[RecentFilter]: ...
+
+ def remove_filter(self, filter: RecentFilter) -> None: ...
+
+ def select_all(self) -> None: ...
+
+ def select_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def set_current_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def set_filter(self, filter: typing.Optional[RecentFilter]) -> None: ...
+
+ def set_limit(self, limit: builtins.int) -> None: ...
+
+ def set_local_only(self, local_only: builtins.bool) -> None: ...
+
+ def set_select_multiple(self, select_multiple: builtins.bool) -> None: ...
+
+ def set_show_icons(self, show_icons: builtins.bool) -> None: ...
+
+ def set_show_not_found(self, show_not_found: builtins.bool) -> None: ...
+
+ def set_show_private(self, show_private: builtins.bool) -> None: ...
+
+ def set_show_tips(self, show_tips: builtins.bool) -> None: ...
+
+ def set_sort_func(self, sort_func: RecentSortFunc, *sort_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_sort_type(self, sort_type: RecentSortType) -> None: ...
+
+ def unselect_all(self) -> None: ...
+
+ def unselect_uri(self, uri: builtins.str) -> None: ...
+
+ def do_add_filter(self, filter: RecentFilter) -> None: ...
+
+ def do_get_current_uri(self) -> builtins.str: ...
+
+ def do_get_items(self) -> typing.Sequence[RecentInfo]: ...
+
+ def do_item_activated(self) -> None: ...
+
+ def do_list_filters(self) -> typing.Sequence[RecentFilter]: ...
+
+ def do_remove_filter(self, filter: RecentFilter) -> None: ...
+
+ def do_select_all(self) -> None: ...
+
+ def do_select_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def do_selection_changed(self) -> None: ...
+
+ def do_set_current_uri(self, uri: builtins.str) -> builtins.bool: ...
+
+ def do_set_sort_func(self, sort_func: RecentSortFunc, sort_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_unselect_all(self) -> None: ...
+
+ def do_unselect_uri(self, uri: builtins.str) -> None: ...
+
+
+class RecentManager(GObject.Object):
+ parent_instance: GObject.Object
+
+ def add_full(self, uri: builtins.str, recent_data: RecentData) -> builtins.bool: ...
+
+ def add_item(self, uri: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def get_default() -> RecentManager: ...
+
+ def get_items(self) -> typing.Sequence[RecentInfo]: ...
+
+ def has_item(self, uri: builtins.str) -> builtins.bool: ...
+
+ def lookup_item(self, uri: builtins.str) -> typing.Optional[RecentInfo]: ...
+
+ def move_item(self, uri: builtins.str, new_uri: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> RecentManager: ... # type: ignore
+
+ def purge_items(self) -> builtins.int: ...
+
+ def remove_item(self, uri: builtins.str) -> builtins.bool: ...
+
+ def do_changed(self) -> None: ...
+
+
+class Scrollable(GObject.GInterface):
+
+ def get_border(self) -> typing.Tuple[builtins.bool, Border]: ...
+
+ def get_hadjustment(self) -> Adjustment: ...
+
+ def get_hscroll_policy(self) -> ScrollablePolicy: ...
+
+ def get_vadjustment(self) -> Adjustment: ...
+
+ def get_vscroll_policy(self) -> ScrollablePolicy: ...
+
+ def set_hadjustment(self, hadjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_hscroll_policy(self, policy: ScrollablePolicy) -> None: ...
+
+ def set_vadjustment(self, vadjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_vscroll_policy(self, policy: ScrollablePolicy) -> None: ...
+
+ def do_get_border(self) -> typing.Tuple[builtins.bool, Border]: ...
+
+
+class StatusIcon(GObject.Object):
+ parent_instance: GObject.Object
+
+ class _Props:
+ icon_name: typing.Optional[str]
+ tooltip_markup: str
+ visible: bool
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ icon_name: typing.Optional[str] = None,
+ tooltip_markup: str = "",
+ visible: bool = True,
+ ) -> None: ...
+
+ def get_geometry(self) -> typing.Tuple[builtins.bool, Gdk.Screen, Gdk.Rectangle, Orientation]: ...
+
+ def get_gicon(self) -> typing.Optional[Gio.Icon]: ...
+
+ def get_has_tooltip(self) -> builtins.bool: ...
+
+ def get_icon_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_pixbuf(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_screen(self) -> Gdk.Screen: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_stock(self) -> typing.Optional[builtins.str]: ...
+
+ def get_storage_type(self) -> ImageType: ...
+
+ def get_title(self) -> builtins.str: ...
+
+ def get_tooltip_markup(self) -> typing.Optional[builtins.str]: ...
+
+ def get_tooltip_text(self) -> typing.Optional[builtins.str]: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ def get_x11_window_id(self) -> builtins.int: ...
+
+ def is_embedded(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> StatusIcon: ... # type: ignore
+
+ @staticmethod
+ def new_from_file(filename: builtins.str) -> StatusIcon: ...
+
+ @staticmethod
+ def new_from_gicon(icon: Gio.Icon) -> StatusIcon: ...
+
+ @staticmethod
+ def new_from_icon_name(icon_name: builtins.str) -> StatusIcon: ...
+
+ @staticmethod
+ def new_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf) -> StatusIcon: ...
+
+ @staticmethod
+ def new_from_stock(stock_id: builtins.str, **kwargs) -> StatusIcon: ... # type: ignore
+
+ @staticmethod
+ def position_menu(menu: Menu, x: builtins.int, y: builtins.int, user_data: StatusIcon) -> typing.Tuple[builtins.int, builtins.int, builtins.bool]: ...
+
+ def set_from_file(self, filename: builtins.str) -> None: ...
+
+ def set_from_gicon(self, icon: Gio.Icon) -> None: ...
+
+ def set_from_icon_name(self, icon_name: builtins.str) -> None: ...
+
+ def set_from_pixbuf(self, pixbuf: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_from_stock(self, stock_id: builtins.str) -> None: ...
+
+ def set_has_tooltip(self, has_tooltip: builtins.bool) -> None: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+ def set_screen(self, screen: Gdk.Screen) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_tooltip_markup(self, markup: typing.Optional[builtins.str]) -> None: ...
+
+ def set_tooltip_text(self, text: builtins.str) -> None: ...
+
+ def set_visible(self, visible: builtins.bool) -> None: ...
+
+ def do_activate(self) -> None: ...
+
+ def do_button_press_event(self, event: Gdk.EventButton) -> builtins.bool: ...
+
+ def do_button_release_event(self, event: Gdk.EventButton) -> builtins.bool: ...
+
+ def do_popup_menu(self, button: builtins.int, activate_time: builtins.int) -> None: ...
+
+ def do_query_tooltip(self, x: builtins.int, y: builtins.int, keyboard_mode: builtins.bool, tooltip: Tooltip) -> builtins.bool: ...
+
+ def do_scroll_event(self, event: Gdk.EventScroll) -> builtins.bool: ...
+
+ def do_size_changed(self, size: builtins.int) -> builtins.bool: ...
+
+
+class Style(GObject.Object):
+ attach_count: builtins.int
+ background: typing.Sequence[cairo.Pattern]
+ base: typing.Sequence[Gdk.Color]
+ bg: typing.Sequence[Gdk.Color]
+ black: Gdk.Color
+ dark: typing.Sequence[Gdk.Color]
+ fg: typing.Sequence[Gdk.Color]
+ font_desc: Pango.FontDescription
+ icon_factories: typing.Sequence[builtins.object]
+ light: typing.Sequence[Gdk.Color]
+ mid: typing.Sequence[Gdk.Color]
+ parent_instance: GObject.Object
+ private_font_desc: Pango.FontDescription
+ property_cache: typing.Sequence[builtins.object]
+ rc_style: RcStyle
+ styles: typing.Sequence[builtins.object]
+ text: typing.Sequence[Gdk.Color]
+ text_aa: typing.Sequence[Gdk.Color]
+ visual: Gdk.Visual
+ white: Gdk.Color
+ xthickness: builtins.int
+ ythickness: builtins.int
+
+ def apply_default_background(self, cr: cairo.Context, window: Gdk.Window, state_type: StateType, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def copy(self) -> Style: ...
+
+ def detach(self) -> None: ...
+
+ def get_style_property(self, widget_type: GObject.GType, property_name: builtins.str) -> GObject.Value: ...
+
+ def has_context(self) -> builtins.bool: ...
+
+ def lookup_color(self, color_name: builtins.str) -> typing.Tuple[builtins.bool, Gdk.Color]: ...
+
+ def lookup_icon_set(self, stock_id: builtins.str) -> IconSet: ...
+
+ @staticmethod
+ def new(**kwargs) -> Style: ... # type: ignore
+
+ def render_icon(self, source: IconSource, direction: TextDirection, state: StateType, size: builtins.int, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str]) -> GdkPixbuf.Pixbuf: ...
+
+ def set_background(self, window: Gdk.Window, state_type: StateType) -> None: ...
+
+ def do_copy(self, src: Style) -> None: ...
+
+ def do_draw_arrow(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, arrow_type: ArrowType, fill: builtins.bool, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_box(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_box_gap(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, gap_side: PositionType, gap_x: builtins.int, gap_width: builtins.int) -> None: ...
+
+ def do_draw_check(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_diamond(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_expander(self, cr: cairo.Context, state_type: StateType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, expander_style: ExpanderStyle) -> None: ...
+
+ def do_draw_extension(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, gap_side: PositionType) -> None: ...
+
+ def do_draw_flat_box(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_focus(self, cr: cairo.Context, state_type: StateType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_handle(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, orientation: Orientation) -> None: ...
+
+ def do_draw_hline(self, cr: cairo.Context, state_type: StateType, widget: Widget, detail: builtins.str, x1: builtins.int, x2: builtins.int, y: builtins.int) -> None: ...
+
+ def do_draw_layout(self, cr: cairo.Context, state_type: StateType, use_text: builtins.bool, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, layout: Pango.Layout) -> None: ...
+
+ def do_draw_option(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_resize_grip(self, cr: cairo.Context, state_type: StateType, widget: Widget, detail: builtins.str, edge: Gdk.WindowEdge, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_shadow(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_shadow_gap(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, gap_side: PositionType, gap_x: builtins.int, gap_width: builtins.int) -> None: ...
+
+ def do_draw_slider(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, orientation: Orientation) -> None: ...
+
+ def do_draw_spinner(self, cr: cairo.Context, state_type: StateType, widget: Widget, detail: builtins.str, step: builtins.int, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_tab(self, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: Widget, detail: builtins.str, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_vline(self, cr: cairo.Context, state_type: StateType, widget: Widget, detail: builtins.str, y1_: builtins.int, y2_: builtins.int, x: builtins.int) -> None: ...
+
+ def do_init_from_rc(self, rc_style: RcStyle) -> None: ...
+
+ def do_realize(self) -> None: ...
+
+ def do_render_icon(self, source: IconSource, direction: TextDirection, state: StateType, size: builtins.int, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str]) -> GdkPixbuf.Pixbuf: ...
+
+ def do_set_background(self, window: Gdk.Window, state_type: StateType) -> None: ...
+
+ def do_unrealize(self) -> None: ...
+
+
+class StyleContext(GObject.Object):
+ parent_object: GObject.Object
+
+ def add_class(self, class_name: builtins.str) -> None: ...
+
+ def add_provider(self, provider: StyleProvider, priority: builtins.int) -> None: ...
+
+ @staticmethod
+ def add_provider_for_screen(screen: Gdk.Screen, provider: StyleProvider, priority: builtins.int) -> None: ...
+
+ def add_region(self, region_name: builtins.str, flags: RegionFlags) -> None: ...
+
+ def cancel_animations(self, region_id: typing.Optional[builtins.object]) -> None: ...
+
+ def get_background_color(self, state: StateFlags) -> Gdk.RGBA: ...
+
+ def get_border(self, state: StateFlags) -> Border: ...
+
+ def get_border_color(self, state: StateFlags) -> Gdk.RGBA: ...
+
+ def get_color(self, state: StateFlags) -> Gdk.RGBA: ...
+
+ def get_direction(self) -> TextDirection: ...
+
+ def get_font(self, state: StateFlags) -> Pango.FontDescription: ...
+
+ def get_frame_clock(self) -> typing.Optional[Gdk.FrameClock]: ...
+
+ def get_junction_sides(self) -> JunctionSides: ...
+
+ def get_margin(self, state: StateFlags) -> Border: ...
+
+ def get_padding(self, state: StateFlags) -> Border: ...
+
+ def get_parent(self) -> typing.Optional[StyleContext]: ...
+
+ def get_path(self) -> WidgetPath: ...
+
+ def get_property(self, property: builtins.str, state: StateFlags) -> GObject.Value: ... # type: ignore
+
+ def get_scale(self) -> builtins.int: ...
+
+ def get_screen(self) -> Gdk.Screen: ...
+
+ def get_section(self, property: builtins.str) -> typing.Optional[CssSection]: ...
+
+ def get_state(self) -> StateFlags: ...
+
+ def get_style_property(self, property_name: builtins.str, value: GObject.Value) -> None: ...
+
+ def has_class(self, class_name: builtins.str) -> builtins.bool: ...
+
+ def has_region(self, region_name: builtins.str) -> typing.Tuple[builtins.bool, RegionFlags]: ...
+
+ def invalidate(self) -> None: ...
+
+ def list_classes(self) -> typing.Sequence[builtins.str]: ...
+
+ def list_regions(self) -> typing.Sequence[builtins.str]: ...
+
+ def lookup_color(self, color_name: builtins.str) -> typing.Tuple[builtins.bool, Gdk.RGBA]: ...
+
+ def lookup_icon_set(self, stock_id: builtins.str) -> typing.Optional[IconSet]: ...
+
+ @staticmethod
+ def new(**kwargs) -> StyleContext: ... # type: ignore
+
+ def notify_state_change(self, window: Gdk.Window, region_id: typing.Optional[builtins.object], state: StateType, state_value: builtins.bool) -> None: ...
+
+ def pop_animatable_region(self) -> None: ...
+
+ def push_animatable_region(self, region_id: typing.Optional[builtins.object]) -> None: ...
+
+ def remove_class(self, class_name: builtins.str) -> None: ...
+
+ def remove_provider(self, provider: StyleProvider) -> None: ...
+
+ @staticmethod
+ def remove_provider_for_screen(screen: Gdk.Screen, provider: StyleProvider) -> None: ...
+
+ def remove_region(self, region_name: builtins.str) -> None: ...
+
+ @staticmethod
+ def reset_widgets(screen: Gdk.Screen) -> None: ...
+
+ def restore(self) -> None: ...
+
+ def save(self) -> None: ...
+
+ def scroll_animations(self, window: Gdk.Window, dx: builtins.int, dy: builtins.int) -> None: ...
+
+ def set_background(self, window: Gdk.Window) -> None: ...
+
+ def set_direction(self, direction: TextDirection) -> None: ...
+
+ def set_frame_clock(self, frame_clock: Gdk.FrameClock) -> None: ...
+
+ def set_junction_sides(self, sides: JunctionSides) -> None: ...
+
+ def set_parent(self, parent: typing.Optional[StyleContext]) -> None: ...
+
+ def set_path(self, path: WidgetPath) -> None: ...
+
+ def set_scale(self, scale: builtins.int) -> None: ...
+
+ def set_screen(self, screen: Gdk.Screen) -> None: ...
+
+ def set_state(self, flags: StateFlags) -> None: ...
+
+ def state_is_running(self, state: StateType) -> typing.Tuple[builtins.bool, builtins.float]: ...
+
+ def to_string(self, flags: StyleContextPrintFlags) -> builtins.str: ...
+
+ def do_changed(self) -> None: ...
+
+
+class StyleProvider(GObject.GInterface):
+
+ def get_icon_factory(self, path: WidgetPath) -> typing.Optional[IconFactory]: ...
+
+ def get_style(self, path: WidgetPath) -> typing.Optional[StyleProperties]: ...
+
+ def get_style_property(self, path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec) -> typing.Tuple[builtins.bool, GObject.Value]: ...
+
+ def do_get_icon_factory(self, path: WidgetPath) -> typing.Optional[IconFactory]: ...
+
+ def do_get_style(self, path: WidgetPath) -> typing.Optional[StyleProperties]: ...
+
+ def do_get_style_property(self, path: WidgetPath, state: StateFlags, pspec: GObject.ParamSpec) -> typing.Tuple[builtins.bool, GObject.Value]: ...
+
+
+class TextBuffer(GObject.Object):
+ parent_instance: GObject.Object
+
+ 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: ...
+
+ def apply_tag_by_name(self, name: builtins.str, start: TextIter, end: TextIter) -> None: ...
+
+ def backspace(self, iter: TextIter, interactive: builtins.bool, default_editable: builtins.bool) -> builtins.bool: ...
+
+ def begin_user_action(self) -> None: ...
+
+ def copy_clipboard(self, clipboard: Clipboard) -> None: ...
+
+ def create_child_anchor(self, iter: TextIter) -> TextChildAnchor: ...
+
+ def create_mark(self, mark_name: typing.Optional[builtins.str], where: TextIter, left_gravity: builtins.bool) -> TextMark: ...
+
+ def cut_clipboard(self, clipboard: Clipboard, default_editable: builtins.bool) -> None: ...
+
+ def delete(self, start: TextIter, end: TextIter) -> None: ...
+
+ def delete_interactive(self, start_iter: TextIter, end_iter: TextIter, default_editable: builtins.bool) -> builtins.bool: ...
+
+ def delete_mark(self, mark: TextMark) -> None: ...
+
+ def delete_mark_by_name(self, name: builtins.str) -> None: ...
+
+ def delete_selection(self, interactive: builtins.bool, default_editable: builtins.bool) -> builtins.bool: ...
+
+ def deserialize(self, content_buffer: TextBuffer, format: Gdk.Atom, iter: TextIter, data: builtins.bytes) -> builtins.bool: ...
+
+ def deserialize_get_can_create_tags(self, format: Gdk.Atom) -> builtins.bool: ...
+
+ def deserialize_set_can_create_tags(self, format: Gdk.Atom, can_create_tags: builtins.bool) -> None: ...
+
+ def end_user_action(self) -> None: ...
+
+ def get_bounds(self) -> typing.Tuple[TextIter, TextIter]: ...
+
+ def get_char_count(self) -> builtins.int: ...
+
+ def get_copy_target_list(self) -> TargetList: ...
+
+ def get_deserialize_formats(self) -> typing.Sequence[Gdk.Atom]: ...
+
+ def get_end_iter(self) -> TextIter: ...
+
+ def get_has_selection(self) -> builtins.bool: ...
+
+ def get_insert(self) -> TextMark: ...
+
+ def get_iter_at_child_anchor(self, anchor: TextChildAnchor) -> TextIter: ...
+
+ def get_iter_at_line(self, line_number: builtins.int) -> TextIter: ...
+
+ def get_iter_at_line_index(self, line_number: builtins.int, byte_index: builtins.int) -> TextIter: ...
+
+ def get_iter_at_line_offset(self, line_number: builtins.int, char_offset: builtins.int) -> TextIter: ...
+
+ def get_iter_at_mark(self, mark: TextMark) -> TextIter: ...
+
+ def get_iter_at_offset(self, char_offset: builtins.int) -> TextIter: ...
+
+ def get_line_count(self) -> builtins.int: ...
+
+ def get_mark(self, name: builtins.str) -> typing.Optional[TextMark]: ...
+
+ def get_modified(self) -> builtins.bool: ...
+
+ def get_paste_target_list(self) -> TargetList: ...
+
+ def get_selection_bound(self) -> TextMark: ...
+
+ def get_selection_bounds(self) -> typing.Tuple[builtins.bool, TextIter, TextIter]: ...
+
+ def get_serialize_formats(self) -> typing.Sequence[Gdk.Atom]: ...
+
+ def get_slice(self, start: TextIter, end: TextIter, include_hidden_chars: builtins.bool) -> builtins.str: ...
+
+ def get_start_iter(self) -> TextIter: ...
+
+ def get_tag_table(self) -> TextTagTable: ...
+
+ def get_text(self, start: TextIter, end: TextIter, include_hidden_chars: builtins.bool) -> builtins.str: ...
+
+ def insert(self, iter: TextIter, text: builtins.str, len: builtins.int) -> None: ...
+
+ def insert_at_cursor(self, text: builtins.str, len: builtins.int) -> None: ...
+
+ def insert_child_anchor(self, iter: TextIter, anchor: TextChildAnchor) -> None: ...
+
+ def insert_interactive(self, iter: TextIter, text: builtins.str, len: builtins.int, default_editable: builtins.bool) -> builtins.bool: ...
+
+ def insert_interactive_at_cursor(self, text: builtins.str, len: builtins.int, default_editable: builtins.bool) -> builtins.bool: ...
+
+ def insert_markup(self, iter: TextIter, markup: builtins.str, len: builtins.int) -> None: ...
+
+ def insert_pixbuf(self, iter: TextIter, pixbuf: GdkPixbuf.Pixbuf) -> None: ...
+
+ def insert_range(self, iter: TextIter, start: TextIter, end: TextIter) -> None: ...
+
+ def insert_range_interactive(self, iter: TextIter, start: TextIter, end: TextIter, default_editable: builtins.bool) -> builtins.bool: ...
+
+ def move_mark(self, mark: TextMark, where: TextIter) -> None: ...
+
+ def move_mark_by_name(self, name: builtins.str, where: TextIter) -> None: ...
+
+ @staticmethod
+ def new(table: typing.Optional[TextTagTable], **kwargs) -> TextBuffer: ... # type: ignore
+
+ def paste_clipboard(self, clipboard: Clipboard, override_location: typing.Optional[TextIter], default_editable: builtins.bool) -> None: ...
+
+ def place_cursor(self, where: TextIter) -> None: ...
+
+ def register_deserialize_format(self, mime_type: builtins.str, function: TextBufferDeserializeFunc, *user_data: typing.Optional[builtins.object]) -> Gdk.Atom: ...
+
+ def register_deserialize_tagset(self, tagset_name: typing.Optional[builtins.str]) -> Gdk.Atom: ...
+
+ def register_serialize_format(self, mime_type: builtins.str, function: TextBufferSerializeFunc, *user_data: typing.Optional[builtins.object]) -> Gdk.Atom: ...
+
+ def register_serialize_tagset(self, tagset_name: typing.Optional[builtins.str]) -> Gdk.Atom: ...
+
+ def remove_all_tags(self, start: TextIter, end: TextIter) -> None: ...
+
+ def remove_selection_clipboard(self, clipboard: Clipboard) -> None: ...
+
+ def remove_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ...
+
+ def remove_tag_by_name(self, name: builtins.str, start: TextIter, end: TextIter) -> None: ...
+
+ def select_range(self, ins: TextIter, bound: TextIter) -> None: ...
+
+ def serialize(self, content_buffer: TextBuffer, format: Gdk.Atom, start: TextIter, end: TextIter) -> builtins.bytes: ...
+
+ def set_modified(self, setting: builtins.bool) -> None: ...
+
+ def set_text(self, text: builtins.str, len: builtins.int) -> None: ...
+
+ def unregister_deserialize_format(self, format: Gdk.Atom) -> None: ...
+
+ def unregister_serialize_format(self, format: Gdk.Atom) -> None: ...
+
+ def do_apply_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ...
+
+ def do_begin_user_action(self) -> None: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_delete_range(self, start: TextIter, end: TextIter) -> None: ...
+
+ def do_end_user_action(self) -> None: ...
+
+ def do_insert_child_anchor(self, iter: TextIter, anchor: TextChildAnchor) -> None: ...
+
+ def do_insert_pixbuf(self, iter: TextIter, pixbuf: GdkPixbuf.Pixbuf) -> None: ...
+
+ def do_insert_text(self, pos: TextIter, new_text: builtins.str, new_text_length: builtins.int) -> None: ...
+
+ def do_mark_deleted(self, mark: TextMark) -> None: ...
+
+ def do_mark_set(self, location: TextIter, mark: TextMark) -> None: ...
+
+ def do_modified_changed(self) -> None: ...
+
+ def do_paste_done(self, clipboard: Clipboard) -> None: ...
+
+ def do_remove_tag(self, tag: TextTag, start: TextIter, end: TextIter) -> None: ...
+
+
+class TextChildAnchor(GObject.Object):
+ parent_instance: GObject.Object
+ segment: builtins.object
+
+ def get_deleted(self) -> builtins.bool: ...
+
+ def get_widgets(self) -> typing.Sequence[Widget]: ...
+
+ @staticmethod
+ def new(**kwargs) -> TextChildAnchor: ... # type: ignore
+
+
+class TextMark(GObject.Object):
+ parent_instance: GObject.Object
+ segment: builtins.object
+
+ def get_buffer(self) -> TextBuffer: ...
+
+ def get_deleted(self) -> builtins.bool: ...
+
+ def get_left_gravity(self) -> builtins.bool: ...
+
+ def get_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(name: typing.Optional[builtins.str], left_gravity: builtins.bool, **kwargs) -> TextMark: ... # type: ignore
+
+ def set_visible(self, setting: builtins.bool) -> None: ...
+
+
+class TextTag(GObject.Object):
+ parent_instance: GObject.Object
+
+ def changed(self, size_changed: builtins.bool) -> None: ...
+
+ def event(self, event_object: GObject.Object, event: Gdk.Event, iter: TextIter) -> builtins.bool: ...
+
+ def get_priority(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(name: typing.Optional[builtins.str], **kwargs) -> TextTag: ... # type: ignore
+
+ def set_priority(self, priority: builtins.int) -> None: ...
+
+ def do_event(self, event_object: GObject.Object, event: Gdk.Event, iter: TextIter) -> builtins.bool: ...
+
+
+class ThemingEngine(GObject.Object):
+ parent_object: GObject.Object
+
+ def get_background_color(self, state: StateFlags) -> Gdk.RGBA: ...
+
+ def get_border(self, state: StateFlags) -> Border: ...
+
+ def get_border_color(self, state: StateFlags) -> Gdk.RGBA: ...
+
+ def get_color(self, state: StateFlags) -> Gdk.RGBA: ...
+
+ def get_direction(self) -> TextDirection: ...
+
+ def get_font(self, state: StateFlags) -> Pango.FontDescription: ...
+
+ def get_junction_sides(self) -> JunctionSides: ...
+
+ def get_margin(self, state: StateFlags) -> Border: ...
+
+ def get_padding(self, state: StateFlags) -> Border: ...
+
+ def get_path(self) -> WidgetPath: ...
+
+ def get_property(self, property: builtins.str, state: StateFlags) -> GObject.Value: ... # type: ignore
+
+ def get_screen(self) -> typing.Optional[Gdk.Screen]: ...
+
+ def get_state(self) -> StateFlags: ...
+
+ def get_style_property(self, property_name: builtins.str) -> GObject.Value: ...
+
+ def has_class(self, style_class: builtins.str) -> builtins.bool: ...
+
+ def has_region(self, style_region: builtins.str) -> typing.Tuple[builtins.bool, RegionFlags]: ...
+
+ @staticmethod
+ def load(name: builtins.str) -> typing.Optional[ThemingEngine]: ...
+
+ def lookup_color(self, color_name: builtins.str) -> typing.Tuple[builtins.bool, Gdk.RGBA]: ...
+
+ def state_is_running(self, state: StateType) -> typing.Tuple[builtins.bool, builtins.float]: ...
+
+ def do_render_activity(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_arrow(self, cr: cairo.Context, angle: builtins.float, x: builtins.float, y: builtins.float, size: builtins.float) -> None: ...
+
+ def do_render_background(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_check(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_expander(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_extension(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float, gap_side: PositionType) -> None: ...
+
+ def do_render_focus(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_frame(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_frame_gap(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float, gap_side: PositionType, xy0_gap: builtins.float, xy1_gap: builtins.float) -> None: ...
+
+ def do_render_handle(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_icon(self, cr: cairo.Context, pixbuf: GdkPixbuf.Pixbuf, x: builtins.float, y: builtins.float) -> None: ...
+
+ def do_render_icon_surface(self, cr: cairo.Context, surface: cairo.Surface, x: builtins.float, y: builtins.float) -> None: ...
+
+ def do_render_layout(self, cr: cairo.Context, x: builtins.float, y: builtins.float, layout: Pango.Layout) -> None: ...
+
+ def do_render_line(self, cr: cairo.Context, x0: builtins.float, y0: builtins.float, x1: builtins.float, y1: builtins.float) -> None: ...
+
+ def do_render_option(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+ def do_render_slider(self, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float, orientation: Orientation) -> None: ...
+
+
+class ToolShell(GObject.GInterface):
+
+ def get_ellipsize_mode(self) -> Pango.EllipsizeMode: ...
+
+ def get_icon_size(self) -> builtins.int: ...
+
+ def get_orientation(self) -> Orientation: ...
+
+ def get_relief_style(self) -> ReliefStyle: ...
+
+ def get_style(self) -> ToolbarStyle: ...
+
+ def get_text_alignment(self) -> builtins.float: ...
+
+ def get_text_orientation(self) -> Orientation: ...
+
+ def get_text_size_group(self) -> SizeGroup: ...
+
+ def rebuild_menu(self) -> None: ...
+
+ def do_get_ellipsize_mode(self) -> Pango.EllipsizeMode: ...
+
+ def do_get_icon_size(self) -> IconSize: ...
+
+ def do_get_orientation(self) -> Orientation: ...
+
+ def do_get_relief_style(self) -> ReliefStyle: ...
+
+ def do_get_style(self) -> ToolbarStyle: ...
+
+ def do_get_text_alignment(self) -> builtins.float: ...
+
+ def do_get_text_orientation(self) -> Orientation: ...
+
+ def do_get_text_size_group(self) -> SizeGroup: ...
+
+ def do_rebuild_menu(self) -> None: ...
+
+
+class Tooltip(GObject.Object):
+
+ def set_custom(self, custom_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_icon(self, pixbuf: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_icon_from_gicon(self, gicon: typing.Optional[Gio.Icon], size: builtins.int) -> None: ...
+
+ def set_icon_from_icon_name(self, icon_name: typing.Optional[builtins.str], size: builtins.int) -> None: ...
+
+ def set_icon_from_stock(self, stock_id: typing.Optional[builtins.str], size: builtins.int) -> None: ...
+
+ def set_markup(self, markup: typing.Optional[builtins.str]) -> None: ...
+
+ def set_text(self, text: typing.Optional[builtins.str]) -> None: ...
+
+ def set_tip_area(self, rect: Gdk.Rectangle) -> None: ...
+
+ @staticmethod
+ def trigger_tooltip_query(display: Gdk.Display) -> None: ...
+
+
+class ToplevelAccessible(Atk.Object):
+ parent: Atk.Object
+
+ def get_children(self) -> typing.Sequence[Window]: ...
+
+
+class TreeDragDest(GObject.GInterface):
+
+ def drag_data_received(self, dest: TreePath, selection_data: SelectionData) -> builtins.bool: ...
+
+ def row_drop_possible(self, dest_path: TreePath, selection_data: SelectionData) -> builtins.bool: ...
+
+ def do_drag_data_received(self, dest: TreePath, selection_data: SelectionData) -> builtins.bool: ...
+
+ def do_row_drop_possible(self, dest_path: TreePath, selection_data: SelectionData) -> builtins.bool: ...
+
+
+class TreeDragSource(GObject.GInterface):
+
+ def drag_data_delete(self, path: TreePath) -> builtins.bool: ...
+
+ def drag_data_get(self, path: TreePath, selection_data: SelectionData) -> builtins.bool: ...
+
+ def row_draggable(self, path: TreePath) -> builtins.bool: ...
+
+ def do_drag_data_delete(self, path: TreePath) -> builtins.bool: ...
+
+ def do_drag_data_get(self, path: TreePath, selection_data: SelectionData) -> builtins.bool: ...
+
+ def do_row_draggable(self, path: TreePath) -> builtins.bool: ...
+
+
+class TreeModel(GObject.GInterface):
+
+ def __len__(self) -> int: ...
+
+ def __iter__(self) -> typing.Iterator[TreeModelRowIter]: ...
+
+ def __getitem__(self, key: typing.Union[TreePath, int, str]) -> TreeModelRow: ...
+
+ def filter_new(self, root: typing.Optional[TreePath]) -> TreeModel: ...
+
+ def foreach(self, func: TreeModelForeachFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def get(self, treeiter: TreeIter, *columns: int) -> typing.Tuple[object, ...]: ...
+
+ def get_column_type(self, index_: builtins.int) -> GObject.GType: ...
+
+ def get_flags(self) -> TreeModelFlags: ...
+
+ def get_iter(self, path: typing.Union[TreePath, str, int]) -> typing.Optional[TreeIter]: ...
+
+ def get_iter_first(self) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def get_iter_from_string(self, path_string: builtins.str) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def get_n_columns(self) -> builtins.int: ...
+
+ def get_path(self, iter: TreeIter) -> TreePath: ...
+
+ def get_string_from_iter(self, iter: TreeIter) -> builtins.str: ...
+
+ def get_value(self, iter: TreeIter, column: builtins.int) -> typing.Any: ...
+
+ def iter_children(self, parent: typing.Optional[TreeIter]) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def iter_has_child(self, iter: TreeIter) -> builtins.bool: ...
+
+ def iter_n_children(self, iter: typing.Optional[TreeIter]) -> builtins.int: ...
+
+ def iter_next(self, iter: TreeIter) -> builtins.bool: ...
+
+ def iter_nth_child(self, parent: typing.Optional[TreeIter], n: builtins.int) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def iter_parent(self, child: TreeIter) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def iter_previous(self, iter: TreeIter) -> builtins.bool: ...
+
+ def ref_node(self, iter: TreeIter) -> None: ...
+
+ def row_changed(self, path: TreePath, iter: TreeIter) -> None: ...
+
+ def row_deleted(self, path: TreePath) -> None: ...
+
+ def row_has_child_toggled(self, path: TreePath, iter: TreeIter) -> None: ...
+
+ def row_inserted(self, path: TreePath, iter: TreeIter) -> None: ...
+
+ def rows_reordered(self, path: TreePath, iter: typing.Optional[TreeIter], new_order: typing.Sequence[builtins.int]) -> None: ...
+
+ def unref_node(self, iter: TreeIter) -> None: ...
+
+ def do_get_column_type(self, index_: builtins.int) -> GObject.GType: ...
+
+ def do_get_flags(self) -> TreeModelFlags: ...
+
+ def do_get_iter(self, path: TreePath) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def do_get_n_columns(self) -> builtins.int: ...
+
+ def do_get_path(self, iter: TreeIter) -> TreePath: ...
+
+ def do_get_value(self, iter: TreeIter, column: builtins.int) -> GObject.Value: ...
+
+ def do_iter_children(self, parent: typing.Optional[TreeIter]) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def do_iter_has_child(self, iter: TreeIter) -> builtins.bool: ...
+
+ def do_iter_n_children(self, iter: typing.Optional[TreeIter]) -> builtins.int: ...
+
+ def do_iter_next(self, iter: TreeIter) -> builtins.bool: ...
+
+ def do_iter_nth_child(self, parent: typing.Optional[TreeIter], n: builtins.int) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def do_iter_parent(self, child: TreeIter) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def do_iter_previous(self, iter: TreeIter) -> builtins.bool: ...
+
+ def do_ref_node(self, iter: TreeIter) -> None: ...
+
+ def do_row_changed(self, path: TreePath, iter: TreeIter) -> None: ...
+
+ def do_row_deleted(self, path: TreePath) -> None: ...
+
+ def do_row_has_child_toggled(self, path: TreePath, iter: TreeIter) -> None: ...
+
+ def do_row_inserted(self, path: TreePath, iter: TreeIter) -> None: ...
+
+ def do_unref_node(self, iter: TreeIter) -> None: ...
+
+
+class TreeSelection(GObject.Object):
+ parent: GObject.Object
+
+ def count_selected_rows(self) -> builtins.int: ...
+
+ def get_mode(self) -> SelectionMode: ...
+
+ def get_selected(self) -> typing.Tuple[TreeModel, typing.Optional[TreeIter]]: ...
+
+ def get_selected_rows(self) -> typing.Tuple[TreeModel, typing.Sequence[TreePath]]: ...
+
+ def get_tree_view(self) -> TreeView: ...
+
+ def iter_is_selected(self, iter: TreeIter) -> builtins.bool: ...
+
+ def path_is_selected(self, path: TreePath) -> builtins.bool: ...
+
+ def select_all(self) -> None: ...
+
+ def select_iter(self, iter: TreeIter) -> None: ...
+
+ def select_path(self, path: typing.Union[TreePath, str, int]) -> None: ...
+
+ def select_range(self, start_path: TreePath, end_path: TreePath) -> None: ...
+
+ def selected_foreach(self, func: TreeSelectionForeachFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_mode(self, type: SelectionMode) -> None: ...
+
+ def set_select_function(self, func: typing.Optional[TreeSelectionFunc], *data: typing.Optional[builtins.object]) -> None: ...
+
+ def unselect_all(self) -> None: ...
+
+ def unselect_iter(self, iter: TreeIter) -> None: ...
+
+ def unselect_path(self, path: TreePath) -> None: ...
+
+ def unselect_range(self, start_path: TreePath, end_path: TreePath) -> None: ...
+
+ def do_changed(self) -> None: ...
+
+
+class TreeSortable(GObject.GInterface):
+
+ def get_sort_column_id(self) -> typing.Tuple[builtins.bool, builtins.int, SortType]: ...
+
+ def has_default_sort_func(self) -> builtins.bool: ...
+
+ def set_default_sort_func(self, sort_func: TreeIterCompareFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_sort_column_id(self, sort_column_id: builtins.int, order: SortType) -> None: ...
+
+ def set_sort_func(self, sort_column_id: builtins.int, sort_func: TreeIterCompareFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def sort_column_changed(self) -> None: ...
+
+ def do_get_sort_column_id(self) -> typing.Tuple[builtins.bool, builtins.int, SortType]: ...
+
+ def do_has_default_sort_func(self) -> builtins.bool: ...
+
+ def do_set_default_sort_func(self, sort_func: TreeIterCompareFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_set_sort_column_id(self, sort_column_id: builtins.int, order: SortType) -> None: ...
+
+ def do_set_sort_func(self, sort_column_id: builtins.int, sort_func: TreeIterCompareFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_sort_column_changed(self) -> None: ...
+
+
+class WindowGroup(GObject.Object):
+ parent_instance: GObject.Object
+
+ def add_window(self, window: Window) -> None: ...
+
+ def get_current_device_grab(self, device: Gdk.Device) -> typing.Optional[Widget]: ...
+
+ def get_current_grab(self) -> Widget: ...
+
+ def list_windows(self) -> typing.Sequence[Window]: ...
+
+ @staticmethod
+ def new(**kwargs) -> WindowGroup: ... # type: ignore
+
+ def remove_window(self, window: Window) -> None: ...
+
+
+class CellAccessible(Accessible, Atk.Action, Atk.Component, Atk.TableCell): # type: ignore
+ parent: Accessible
+
+ def do_update_cache(self, emit_signal: builtins.bool) -> None: ...
+
+
+class WidgetAccessible(Accessible, Atk.Component):
+ parent: Accessible
+
+
+class Action(GObject.Object, Buildable):
+ object: GObject.Object
+
+ def activate(self) -> None: ...
+
+ def block_activate(self) -> None: ...
+
+ def connect_accelerator(self) -> None: ...
+
+ def create_icon(self, icon_size: builtins.int) -> Widget: ...
+
+ def create_menu(self) -> Widget: ...
+
+ def create_menu_item(self) -> Widget: ...
+
+ def create_tool_item(self) -> Widget: ...
+
+ def disconnect_accelerator(self) -> None: ...
+
+ def get_accel_closure(self) -> GObject.Closure: ...
+
+ def get_accel_path(self) -> builtins.str: ...
+
+ def get_always_show_image(self) -> builtins.bool: ...
+
+ def get_gicon(self) -> Gio.Icon: ...
+
+ def get_icon_name(self) -> builtins.str: ...
+
+ def get_is_important(self) -> builtins.bool: ...
+
+ def get_label(self) -> builtins.str: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_proxies(self) -> typing.Sequence[Widget]: ...
+
+ def get_sensitive(self) -> builtins.bool: ...
+
+ def get_short_label(self) -> builtins.str: ...
+
+ def get_stock_id(self) -> builtins.str: ...
+
+ def get_tooltip(self) -> builtins.str: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ def get_visible_horizontal(self) -> builtins.bool: ...
+
+ def get_visible_vertical(self) -> builtins.bool: ...
+
+ def is_sensitive(self) -> builtins.bool: ...
+
+ def is_visible(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(name: builtins.str, label: typing.Optional[builtins.str], tooltip: typing.Optional[builtins.str], stock_id: typing.Optional[builtins.str], **kwargs) -> Action: ... # type: ignore
+
+ def set_accel_group(self, accel_group: typing.Optional[AccelGroup]) -> None: ...
+
+ def set_accel_path(self, accel_path: builtins.str) -> None: ...
+
+ def set_always_show_image(self, always_show: builtins.bool) -> None: ...
+
+ def set_gicon(self, icon: Gio.Icon) -> None: ...
+
+ def set_icon_name(self, icon_name: builtins.str) -> None: ...
+
+ def set_is_important(self, is_important: builtins.bool) -> None: ...
+
+ def set_label(self, label: builtins.str) -> None: ...
+
+ def set_sensitive(self, sensitive: builtins.bool) -> None: ...
+
+ def set_short_label(self, short_label: builtins.str) -> None: ...
+
+ def set_stock_id(self, stock_id: builtins.str) -> None: ...
+
+ def set_tooltip(self, tooltip: builtins.str) -> None: ...
+
+ def set_visible(self, visible: builtins.bool) -> None: ...
+
+ def set_visible_horizontal(self, visible_horizontal: builtins.bool) -> None: ...
+
+ def set_visible_vertical(self, visible_vertical: builtins.bool) -> None: ...
+
+ def unblock_activate(self) -> None: ...
+
+ def do_activate(self) -> None: ...
+
+ def do_connect_proxy(self, proxy: Widget) -> None: ...
+
+ def do_create_menu(self) -> Widget: ...
+
+ def do_create_menu_item(self) -> Widget: ...
+
+ def do_create_tool_item(self) -> Widget: ...
+
+ def do_disconnect_proxy(self, proxy: Widget) -> None: ...
+
+
+class ActionGroup(GObject.Object, Buildable):
+ parent: GObject.Object
+
+ def add_action(self, action: Action) -> None: ...
+
+ def add_action_with_accel(self, action: Action, accelerator: typing.Optional[builtins.str]) -> None: ...
+
+ def get_accel_group(self) -> AccelGroup: ...
+
+ def get_action(self, action_name: builtins.str) -> Action: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_sensitive(self) -> builtins.bool: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ def list_actions(self) -> typing.Sequence[Action]: ...
+
+ @staticmethod
+ def new(name: builtins.str, **kwargs) -> ActionGroup: ... # type: ignore
+
+ def remove_action(self, action: Action) -> None: ...
+
+ def set_accel_group(self, accel_group: typing.Optional[AccelGroup]) -> None: ...
+
+ def set_sensitive(self, sensitive: builtins.bool) -> None: ...
+
+ def set_translate_func(self, func: TranslateFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_translation_domain(self, domain: typing.Optional[builtins.str]) -> None: ...
+
+ def set_visible(self, visible: builtins.bool) -> None: ...
+
+ def translate_string(self, string: builtins.str) -> builtins.str: ...
+
+ def do_get_action(self, action_name: builtins.str) -> Action: ...
+
+
+class FileFilter(GObject.InitiallyUnowned, Buildable):
+
+ def add_custom(self, needed: FileFilterFlags, func: FileFilterFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def add_mime_type(self, mime_type: builtins.str) -> None: ...
+
+ def add_pattern(self, pattern: builtins.str) -> None: ...
+
+ def add_pixbuf_formats(self) -> None: ...
+
+ def filter(self, filter_info: FileFilterInfo) -> builtins.bool: ...
+
+ def get_name(self) -> typing.Optional[builtins.str]: ... # type: ignore
+
+ def get_needed(self) -> FileFilterFlags: ...
+
+ @staticmethod
+ def new() -> FileFilter: ...
+
+ @staticmethod
+ def new_from_gvariant(variant: GLib.Variant) -> FileFilter: ...
+
+ def set_name(self, name: typing.Optional[builtins.str]) -> None: ...
+
+ def to_gvariant(self) -> GLib.Variant: ...
+
+
+class IconFactory(GObject.Object, Buildable):
+ parent_instance: GObject.Object
+
+ def add(self, stock_id: builtins.str, icon_set: IconSet) -> None: ...
+
+ def add_default(self) -> None: ...
+
+ def lookup(self, stock_id: builtins.str) -> IconSet: ...
+
+ @staticmethod
+ def lookup_default(stock_id: builtins.str) -> IconSet: ...
+
+ @staticmethod
+ def new(**kwargs) -> IconFactory: ... # type: ignore
+
+ def remove_default(self) -> None: ...
+
+
+class RecentFilter(GObject.InitiallyUnowned, Buildable):
+
+ def add_age(self, days: builtins.int) -> None: ...
+
+ def add_application(self, application: builtins.str) -> None: ...
+
+ def add_custom(self, needed: RecentFilterFlags, func: RecentFilterFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def add_group(self, group: builtins.str) -> None: ...
+
+ def add_mime_type(self, mime_type: builtins.str) -> None: ...
+
+ def add_pattern(self, pattern: builtins.str) -> None: ...
+
+ def add_pixbuf_formats(self) -> None: ...
+
+ def filter(self, filter_info: RecentFilterInfo) -> builtins.bool: ...
+
+ def get_name(self) -> typing.Optional[builtins.str]: ... # type: ignore
+
+ def get_needed(self) -> RecentFilterFlags: ...
+
+ @staticmethod
+ def new() -> RecentFilter: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+
+class SizeGroup(GObject.Object, Buildable):
+ parent_instance: GObject.Object
+
+ def add_widget(self, widget: Widget) -> None: ...
+
+ def get_ignore_hidden(self) -> builtins.bool: ...
+
+ def get_mode(self) -> SizeGroupMode: ...
+
+ def get_widgets(self) -> typing.Sequence[Widget]: ...
+
+ @staticmethod
+ def new(mode: SizeGroupMode, **kwargs) -> SizeGroup: ... # type: ignore
+
+ def remove_widget(self, widget: Widget) -> None: ...
+
+ def set_ignore_hidden(self, ignore_hidden: builtins.bool) -> None: ...
+
+ def set_mode(self, mode: SizeGroupMode) -> None: ...
+
+
+class TextTagTable(GObject.Object, Buildable):
+ parent_instance: GObject.Object
+
+ def add(self, tag: TextTag) -> builtins.bool: ...
+
+ def foreach(self, func: TextTagTableForeach, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def lookup(self, name: builtins.str) -> typing.Optional[TextTag]: ...
+
+ @staticmethod
+ def new(**kwargs) -> TextTagTable: ... # type: ignore
+
+ def remove(self, tag: TextTag) -> None: ...
+
+ def do_tag_added(self, tag: TextTag) -> None: ...
+
+ def do_tag_changed(self, tag: TextTag, size_changed: builtins.bool) -> None: ...
+
+ def do_tag_removed(self, tag: TextTag) -> None: ...
+
+
+class UIManager(GObject.Object, Buildable):
+ parent: GObject.Object
+
+ def add_ui(self, merge_id: builtins.int, path: builtins.str, name: builtins.str, action: typing.Optional[builtins.str], type: UIManagerItemType, top: builtins.bool) -> None: ...
+
+ def add_ui_from_file(self, filename: builtins.str) -> builtins.int: ...
+
+ def add_ui_from_resource(self, resource_path: builtins.str) -> builtins.int: ...
+
+ def add_ui_from_string(self, buffer: builtins.str, length: builtins.int) -> builtins.int: ...
+
+ def ensure_update(self) -> None: ...
+
+ def get_accel_group(self) -> AccelGroup: ...
+
+ def get_action(self, path: builtins.str) -> Action: ...
+
+ def get_action_groups(self) -> typing.Sequence[ActionGroup]: ...
+
+ def get_add_tearoffs(self) -> builtins.bool: ...
+
+ def get_toplevels(self, types: UIManagerItemType) -> typing.Sequence[Widget]: ...
+
+ def get_ui(self) -> builtins.str: ...
+
+ def get_widget(self, path: builtins.str) -> Widget: ...
+
+ def insert_action_group(self, action_group: ActionGroup, pos: builtins.int) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> UIManager: ... # type: ignore
+
+ def new_merge_id(self) -> builtins.int: ...
+
+ def remove_action_group(self, action_group: ActionGroup) -> None: ...
+
+ def remove_ui(self, merge_id: builtins.int) -> None: ...
+
+ def set_add_tearoffs(self, add_tearoffs: builtins.bool) -> None: ...
+
+ def do_actions_changed(self) -> None: ...
+
+ def do_add_widget(self, widget: Widget) -> None: ...
+
+ def do_connect_proxy(self, action: Action, proxy: Widget) -> None: ...
+
+ def do_disconnect_proxy(self, action: Action, proxy: Widget) -> None: ...
+
+ def do_get_action(self, path: builtins.str) -> Action: ...
+
+ def do_get_widget(self, path: builtins.str) -> Widget: ...
+
+ def do_post_activate(self, action: Action) -> None: ...
+
+ def do_pre_activate(self, action: Action) -> None: ...
+
+
+class Widget(GObject.InitiallyUnowned, Atk.ImplementorIface, Buildable):
+ parent_instance: GObject.InitiallyUnowned
+
+ class _Props:
+ halign: Align
+ has_tooltip: bool
+ height_request: int
+ hexpand: bool
+ margin: int
+ margin_left: int
+ name: typing.Optional[str]
+ opacity: float
+ parent: typing.Optional[Container]
+ receives_default: bool
+ sensitive: bool
+ tooltip_text: typing.Optional[str]
+ valign: Align
+ vexpand: bool
+ visible: bool
+ width_request: int
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def activate(self) -> builtins.bool: ...
+
+ def add_accelerator(self, accel_signal: builtins.str, accel_group: AccelGroup, accel_key: builtins.int, accel_mods: Gdk.ModifierType, accel_flags: AccelFlags) -> None: ...
+
+ def add_device_events(self, device: Gdk.Device, events: Gdk.EventMask) -> None: ...
+
+ def add_events(self, events: builtins.int) -> None: ...
+
+ def add_mnemonic_label(self, label: Widget) -> None: ...
+
+ def add_tick_callback(self, callback: TickCallback, *user_data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ def can_activate_accel(self, signal_id: builtins.int) -> builtins.bool: ...
+
+ def child_focus(self, direction: DirectionType) -> builtins.bool: ...
+
+ def child_notify(self, child_property: builtins.str) -> None: ...
+
+ def class_path(self) -> typing.Tuple[builtins.int, builtins.str, builtins.str]: ...
+
+ def compute_expand(self, orientation: Orientation) -> builtins.bool: ...
+
+ def create_pango_context(self) -> Pango.Context: ...
+
+ def create_pango_layout(self, text: typing.Optional[builtins.str]) -> Pango.Layout: ...
+
+ def destroy(self) -> None: ...
+
+ def destroyed(self, widget_pointer: Widget) -> Widget: ...
+
+ def device_is_shadowed(self, device: Gdk.Device) -> builtins.bool: ...
+
+ def drag_begin(self, targets: TargetList, actions: Gdk.DragAction, button: builtins.int, event: typing.Optional[Gdk.Event]) -> Gdk.DragContext: ...
+
+ def drag_begin_with_coordinates(self, targets: TargetList, actions: Gdk.DragAction, button: builtins.int, event: typing.Optional[Gdk.Event], x: builtins.int, y: builtins.int) -> Gdk.DragContext: ...
+
+ def drag_check_threshold(self, start_x: builtins.int, start_y: builtins.int, current_x: builtins.int, current_y: builtins.int) -> builtins.bool: ...
+
+ def drag_dest_add_image_targets(self) -> None: ...
+
+ def drag_dest_add_text_targets(self) -> None: ...
+
+ def drag_dest_add_uri_targets(self) -> None: ...
+
+ def drag_dest_find_target(self, context: Gdk.DragContext, target_list: typing.Optional[TargetList]) -> Gdk.Atom: ...
+
+ def drag_dest_get_target_list(self) -> typing.Optional[TargetList]: ...
+
+ def drag_dest_get_track_motion(self) -> builtins.bool: ...
+
+ def drag_dest_set(self, flags: DestDefaults, targets: typing.Optional[typing.Sequence[TargetEntry]], actions: Gdk.DragAction) -> None: ...
+
+ def drag_dest_set_proxy(self, proxy_window: Gdk.Window, protocol: Gdk.DragProtocol, use_coordinates: builtins.bool) -> None: ...
+
+ def drag_dest_set_target_list(self, target_list: typing.Optional[TargetList]) -> None: ...
+
+ def drag_dest_set_track_motion(self, track_motion: builtins.bool) -> None: ...
+
+ def drag_dest_unset(self) -> None: ...
+
+ def drag_get_data(self, context: Gdk.DragContext, target: Gdk.Atom, time_: builtins.int) -> None: ...
+
+ def drag_highlight(self) -> None: ...
+
+ def drag_source_add_image_targets(self) -> None: ...
+
+ def drag_source_add_text_targets(self) -> None: ...
+
+ def drag_source_add_uri_targets(self) -> None: ...
+
+ def drag_source_get_target_list(self) -> typing.Optional[TargetList]: ...
+
+ def drag_source_set(self, start_button_mask: Gdk.ModifierType, targets: typing.Optional[typing.Sequence[TargetEntry]], actions: Gdk.DragAction) -> None: ...
+
+ def drag_source_set_icon_gicon(self, icon: Gio.Icon) -> None: ...
+
+ def drag_source_set_icon_name(self, icon_name: builtins.str) -> None: ...
+
+ def drag_source_set_icon_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ...
+
+ def drag_source_set_icon_stock(self, stock_id: builtins.str) -> None: ...
+
+ def drag_source_set_target_list(self, target_list: typing.Optional[TargetList]) -> None: ...
+
+ def drag_source_unset(self) -> None: ...
+
+ def drag_unhighlight(self) -> None: ...
+
+ def draw(self, cr: cairo.Context) -> None: ...
+
+ def ensure_style(self) -> None: ...
+
+ def error_bell(self) -> None: ...
+
+ def event(self, event: Gdk.Event) -> builtins.bool: ...
+
+ def freeze_child_notify(self) -> None: ...
+
+ def get_accessible(self) -> Atk.Object: ...
+
+ def get_action_group(self, prefix: builtins.str) -> typing.Optional[Gio.ActionGroup]: ...
+
+ def get_allocated_baseline(self) -> builtins.int: ...
+
+ def get_allocated_height(self) -> builtins.int: ...
+
+ def get_allocated_size(self) -> typing.Tuple[Gdk.Rectangle, builtins.int]: ...
+
+ def get_allocated_width(self) -> builtins.int: ...
+
+ def get_allocation(self) -> Gdk.Rectangle: ...
+
+ def get_ancestor(self, widget_type: GObject.GType) -> typing.Optional[Widget]: ...
+
+ def get_app_paintable(self) -> builtins.bool: ...
+
+ def get_can_default(self) -> builtins.bool: ...
+
+ def get_can_focus(self) -> builtins.bool: ...
+
+ def get_child_requisition(self) -> Requisition: ...
+
+ def get_child_visible(self) -> builtins.bool: ...
+
+ def get_clip(self) -> Gdk.Rectangle: ...
+
+ def get_clipboard(self, selection: Gdk.Atom) -> Clipboard: ...
+
+ def get_composite_name(self) -> builtins.str: ...
+
+ @staticmethod
+ def get_default_direction() -> TextDirection: ...
+
+ @staticmethod
+ def get_default_style() -> Style: ...
+
+ def get_device_enabled(self, device: Gdk.Device) -> builtins.bool: ...
+
+ def get_device_events(self, device: Gdk.Device) -> Gdk.EventMask: ...
+
+ def get_direction(self) -> TextDirection: ...
+
+ def get_display(self) -> Gdk.Display: ...
+
+ def get_double_buffered(self) -> builtins.bool: ...
+
+ def get_events(self) -> builtins.int: ...
+
+ def get_focus_on_click(self) -> builtins.bool: ...
+
+ def get_font_map(self) -> typing.Optional[Pango.FontMap]: ...
+
+ def get_font_options(self) -> typing.Optional[cairo.FontOptions]: ...
+
+ def get_frame_clock(self) -> typing.Optional[Gdk.FrameClock]: ...
+
+ def get_halign(self) -> Align: ...
+
+ def get_has_tooltip(self) -> builtins.bool: ...
+
+ def get_has_window(self) -> builtins.bool: ...
+
+ def get_hexpand(self) -> builtins.bool: ...
+
+ def get_hexpand_set(self) -> builtins.bool: ...
+
+ def get_mapped(self) -> builtins.bool: ...
+
+ def get_margin_bottom(self) -> builtins.int: ...
+
+ def get_margin_end(self) -> builtins.int: ...
+
+ def get_margin_left(self) -> builtins.int: ...
+
+ def get_margin_right(self) -> builtins.int: ...
+
+ def get_margin_start(self) -> builtins.int: ...
+
+ def get_margin_top(self) -> builtins.int: ...
+
+ def get_modifier_mask(self, intent: Gdk.ModifierIntent) -> Gdk.ModifierType: ...
+
+ def get_modifier_style(self) -> RcStyle: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def get_no_show_all(self) -> builtins.bool: ...
+
+ def get_opacity(self) -> builtins.float: ...
+
+ def get_pango_context(self) -> Pango.Context: ...
+
+ def get_parent(self) -> typing.Optional[Widget]: ...
+
+ def get_parent_window(self) -> typing.Optional[Gdk.Window]: ...
+
+ def get_path(self) -> WidgetPath: ...
+
+ def get_pointer(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_height(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_height_and_baseline_for_width(self, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def get_preferred_height_for_width(self, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_size(self) -> typing.Tuple[Requisition, Requisition]: ...
+
+ def get_preferred_width(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_width_for_height(self, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_realized(self) -> builtins.bool: ...
+
+ def get_receives_default(self) -> builtins.bool: ...
+
+ def get_request_mode(self) -> SizeRequestMode: ...
+
+ def get_requisition(self) -> Requisition: ...
+
+ def get_root_window(self) -> Gdk.Window: ...
+
+ def get_scale_factor(self) -> builtins.int: ...
+
+ def get_screen(self) -> Gdk.Screen: ...
+
+ def get_sensitive(self) -> builtins.bool: ...
+
+ def get_settings(self) -> Settings: ...
+
+ def get_size_request(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_state(self) -> StateType: ...
+
+ def get_state_flags(self) -> StateFlags: ...
+
+ def get_style(self) -> Style: ...
+
+ def get_style_context(self) -> StyleContext: ...
+
+ def get_support_multidevice(self) -> builtins.bool: ...
+
+ def get_template_child(self, widget_type: GObject.GType, name: builtins.str) -> GObject.Object: ...
+
+ def get_tooltip_markup(self) -> typing.Optional[builtins.str]: ...
+
+ def get_tooltip_text(self) -> typing.Optional[builtins.str]: ...
+
+ def get_tooltip_window(self) -> Window: ...
+
+ def get_toplevel(self) -> Widget: ...
+
+ def get_valign(self) -> Align: ...
+
+ def get_valign_with_baseline(self) -> Align: ...
+
+ def get_vexpand(self) -> builtins.bool: ...
+
+ def get_vexpand_set(self) -> builtins.bool: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ def get_visual(self) -> Gdk.Visual: ...
+
+ def get_window(self) -> typing.Optional[Gdk.Window]: ...
+
+ def grab_add(self) -> None: ...
+
+ def grab_default(self) -> None: ...
+
+ def grab_focus(self) -> None: ...
+
+ def grab_remove(self) -> None: ...
+
+ def has_default(self) -> builtins.bool: ...
+
+ def has_focus(self) -> builtins.bool: ...
+
+ def has_grab(self) -> builtins.bool: ...
+
+ def has_rc_style(self) -> builtins.bool: ...
+
+ def has_screen(self) -> builtins.bool: ...
+
+ def has_visible_focus(self) -> builtins.bool: ...
+
+ def hide(self) -> None: ...
+
+ def hide_on_delete(self) -> builtins.bool: ...
+
+ def in_destruction(self) -> builtins.bool: ...
+
+ def init_template(self) -> None: ...
+
+ def input_shape_combine_region(self, region: typing.Optional[cairo.Region]) -> None: ...
+
+ def insert_action_group(self, name: builtins.str, group: typing.Optional[Gio.ActionGroup]) -> None: ...
+
+ def intersect(self, area: Gdk.Rectangle) -> typing.Tuple[builtins.bool, Gdk.Rectangle]: ...
+
+ def is_ancestor(self, ancestor: Widget) -> builtins.bool: ...
+
+ def is_composited(self) -> builtins.bool: ...
+
+ def is_drawable(self) -> builtins.bool: ...
+
+ def is_focus(self) -> builtins.bool: ...
+
+ def is_sensitive(self) -> builtins.bool: ...
+
+ def is_toplevel(self) -> builtins.bool: ...
+
+ def is_visible(self) -> builtins.bool: ...
+
+ def keynav_failed(self, direction: DirectionType) -> builtins.bool: ...
+
+ def list_accel_closures(self) -> typing.Sequence[GObject.Closure]: ...
+
+ def list_action_prefixes(self) -> typing.Sequence[builtins.str]: ...
+
+ def list_mnemonic_labels(self) -> typing.Sequence[Widget]: ...
+
+ def map(self) -> None: ...
+
+ def mnemonic_activate(self, group_cycling: builtins.bool) -> builtins.bool: ...
+
+ def modify_base(self, state: StateType, color: typing.Optional[Gdk.Color]) -> None: ...
+
+ def modify_bg(self, state: StateType, color: typing.Optional[Gdk.Color]) -> None: ...
+
+ def modify_cursor(self, primary: typing.Optional[Gdk.Color], secondary: typing.Optional[Gdk.Color]) -> None: ...
+
+ def modify_fg(self, state: StateType, color: typing.Optional[Gdk.Color]) -> None: ...
+
+ def modify_font(self, font_desc: typing.Optional[Pango.FontDescription]) -> None: ...
+
+ def modify_style(self, style: RcStyle) -> None: ...
+
+ def modify_text(self, state: StateType, color: typing.Optional[Gdk.Color]) -> None: ...
+
+ def override_background_color(self, state: StateFlags, color: typing.Optional[Gdk.RGBA]) -> None: ...
+
+ def override_color(self, state: StateFlags, color: typing.Optional[Gdk.RGBA]) -> None: ...
+
+ def override_cursor(self, cursor: typing.Optional[Gdk.RGBA], secondary_cursor: typing.Optional[Gdk.RGBA]) -> None: ...
+
+ def override_font(self, font_desc: typing.Optional[Pango.FontDescription]) -> None: ...
+
+ def override_symbolic_color(self, name: builtins.str, color: typing.Optional[Gdk.RGBA]) -> None: ...
+
+ def path(self) -> typing.Tuple[builtins.int, builtins.str, builtins.str]: ...
+
+ @staticmethod
+ def pop_composite_child() -> None: ...
+
+ @staticmethod
+ def push_composite_child() -> None: ...
+
+ def queue_allocate(self) -> None: ...
+
+ def queue_compute_expand(self) -> None: ...
+
+ def queue_draw(self) -> None: ...
+
+ def queue_draw_area(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def queue_draw_region(self, region: cairo.Region) -> None: ...
+
+ def queue_resize(self) -> None: ...
+
+ def queue_resize_no_redraw(self) -> None: ...
+
+ def realize(self) -> None: ...
+
+ def region_intersect(self, region: cairo.Region) -> cairo.Region: ...
+
+ def register_window(self, window: Gdk.Window) -> None: ...
+
+ def remove_accelerator(self, accel_group: AccelGroup, accel_key: builtins.int, accel_mods: Gdk.ModifierType) -> builtins.bool: ...
+
+ def remove_mnemonic_label(self, label: Widget) -> None: ...
+
+ def remove_tick_callback(self, id: builtins.int) -> None: ...
+
+ def render_icon(self, stock_id: builtins.str, size: builtins.int, detail: typing.Optional[builtins.str]) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def render_icon_pixbuf(self, stock_id: builtins.str, size: builtins.int) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def reparent(self, new_parent: Widget) -> None: ...
+
+ def reset_rc_styles(self) -> None: ...
+
+ def reset_style(self) -> None: ...
+
+ def send_expose(self, event: Gdk.Event) -> builtins.int: ...
+
+ def send_focus_change(self, event: Gdk.Event) -> builtins.bool: ...
+
+ def set_accel_path(self, accel_path: typing.Optional[builtins.str], accel_group: typing.Optional[AccelGroup]) -> None: ...
+
+ def set_allocation(self, allocation: Gdk.Rectangle) -> None: ...
+
+ def set_app_paintable(self, app_paintable: builtins.bool) -> None: ...
+
+ def set_can_default(self, can_default: builtins.bool) -> None: ...
+
+ def set_can_focus(self, can_focus: builtins.bool) -> None: ...
+
+ def set_child_visible(self, is_visible: builtins.bool) -> None: ...
+
+ def set_clip(self, clip: Gdk.Rectangle) -> None: ...
+
+ def set_composite_name(self, name: builtins.str) -> None: ...
+
+ @staticmethod
+ def set_default_direction(dir: TextDirection) -> None: ...
+
+ def set_device_enabled(self, device: Gdk.Device, enabled: builtins.bool) -> None: ...
+
+ def set_device_events(self, device: Gdk.Device, events: Gdk.EventMask) -> None: ...
+
+ def set_direction(self, dir: TextDirection) -> None: ...
+
+ def set_double_buffered(self, double_buffered: builtins.bool) -> None: ...
+
+ def set_events(self, events: builtins.int) -> None: ...
+
+ def set_focus_on_click(self, focus_on_click: builtins.bool) -> None: ...
+
+ def set_font_map(self, font_map: typing.Optional[Pango.FontMap]) -> None: ...
+
+ def set_font_options(self, options: typing.Optional[cairo.FontOptions]) -> None: ...
+
+ def set_halign(self, align: Align) -> None: ...
+
+ def set_has_tooltip(self, has_tooltip: builtins.bool) -> None: ...
+
+ def set_has_window(self, has_window: builtins.bool) -> None: ...
+
+ def set_hexpand(self, expand: builtins.bool) -> None: ...
+
+ def set_hexpand_set(self, set: builtins.bool) -> None: ...
+
+ def set_mapped(self, mapped: builtins.bool) -> None: ...
+
+ def set_margin_bottom(self, margin: builtins.int) -> None: ...
+
+ def set_margin_end(self, margin: builtins.int) -> None: ...
+
+ def set_margin_left(self, margin: builtins.int) -> None: ...
+
+ def set_margin_right(self, margin: builtins.int) -> None: ...
+
+ def set_margin_start(self, margin: builtins.int) -> None: ...
+
+ def set_margin_top(self, margin: builtins.int) -> None: ...
+
+ def set_name(self, name: builtins.str) -> None: ...
+
+ def set_no_show_all(self, no_show_all: builtins.bool) -> None: ...
+
+ def set_opacity(self, opacity: builtins.float) -> None: ...
+
+ def set_parent(self, parent: Widget) -> None: ...
+
+ def set_parent_window(self, parent_window: Gdk.Window) -> None: ...
+
+ def set_realized(self, realized: builtins.bool) -> None: ...
+
+ def set_receives_default(self, receives_default: builtins.bool) -> None: ...
+
+ def set_redraw_on_allocate(self, redraw_on_allocate: builtins.bool) -> None: ...
+
+ def set_sensitive(self, sensitive: builtins.bool) -> None: ...
+
+ def set_size_request(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def set_state(self, state: StateType) -> None: ...
+
+ def set_state_flags(self, flags: StateFlags, clear: builtins.bool) -> None: ...
+
+ def set_style(self, style: typing.Optional[Style]) -> None: ...
+
+ def set_support_multidevice(self, support_multidevice: builtins.bool) -> None: ...
+
+ def set_tooltip_markup(self, markup: typing.Optional[builtins.str]) -> None: ...
+
+ def set_tooltip_text(self, text: typing.Optional[builtins.str]) -> None: ...
+
+ def set_tooltip_window(self, custom_window: typing.Optional[Window]) -> None: ...
+
+ def set_valign(self, align: Align) -> None: ...
+
+ def set_vexpand(self, expand: builtins.bool) -> None: ...
+
+ def set_vexpand_set(self, set: builtins.bool) -> None: ...
+
+ def set_visible(self, visible: builtins.bool) -> None: ...
+
+ def set_visual(self, visual: typing.Optional[Gdk.Visual]) -> None: ...
+
+ def set_window(self, window: Gdk.Window) -> None: ...
+
+ def shape_combine_region(self, region: typing.Optional[cairo.Region]) -> None: ...
+
+ def show(self) -> None: ...
+
+ def show_all(self) -> None: ...
+
+ def show_now(self) -> None: ...
+
+ def size_allocate(self, allocation: Gdk.Rectangle) -> None: ...
+
+ def size_allocate_with_baseline(self, allocation: Gdk.Rectangle, baseline: builtins.int) -> None: ...
+
+ def size_request(self) -> Requisition: ...
+
+ def style_attach(self) -> None: ...
+
+ def style_get_property(self, property_name: builtins.str, value: GObject.Value) -> None: ...
+
+ def thaw_child_notify(self) -> None: ...
+
+ def translate_coordinates(self, dest_widget: Widget, src_x: builtins.int, src_y: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def trigger_tooltip_query(self) -> None: ...
+
+ def unmap(self) -> None: ...
+
+ def unparent(self) -> None: ...
+
+ def unrealize(self) -> None: ...
+
+ def unregister_window(self, window: Gdk.Window) -> None: ...
+
+ def unset_state_flags(self, flags: StateFlags) -> None: ...
+
+ @staticmethod
+ def bind_template_callback_full(callback_name: builtins.str, callback_symbol: GObject.Callback) -> None: ...
+
+ @staticmethod
+ def bind_template_child_full(name: builtins.str, internal_child: builtins.bool, struct_offset: builtins.int) -> None: ...
+
+ @staticmethod
+ def find_style_property(property_name: builtins.str) -> GObject.ParamSpec: ...
+
+ @staticmethod
+ def get_css_name() -> builtins.str: ...
+
+ @staticmethod
+ def install_style_property(pspec: GObject.ParamSpec) -> None: ...
+
+ @staticmethod
+ def list_style_properties() -> typing.Sequence[GObject.ParamSpec]: ...
+
+ @staticmethod
+ def set_accessible_role(role: Atk.Role) -> None: ...
+
+ @staticmethod
+ def set_accessible_type(type: GObject.GType) -> None: ...
+
+ @staticmethod
+ def set_connect_func(connect_func: BuilderConnectFunc, *connect_data: typing.Optional[builtins.object]) -> None: ...
+
+ @staticmethod
+ def set_css_name(name: builtins.str) -> None: ...
+
+ @staticmethod
+ def set_template(template_bytes: GLib.Bytes) -> None: ...
+
+ @staticmethod
+ def set_template_from_resource(resource_name: builtins.str) -> None: ...
+
+ def do_adjust_baseline_allocation(self, baseline: builtins.int) -> None: ...
+
+ def do_adjust_baseline_request(self, minimum_baseline: builtins.int, natural_baseline: builtins.int) -> None: ...
+
+ def do_adjust_size_allocation(self, orientation: Orientation, minimum_size: builtins.int, natural_size: builtins.int, allocated_pos: builtins.int, allocated_size: builtins.int) -> None: ...
+
+ def do_adjust_size_request(self, orientation: Orientation, minimum_size: builtins.int, natural_size: builtins.int) -> None: ...
+
+ def do_button_press_event(self, event: Gdk.EventButton) -> builtins.bool: ...
+
+ def do_button_release_event(self, event: Gdk.EventButton) -> builtins.bool: ...
+
+ def do_can_activate_accel(self, signal_id: builtins.int) -> builtins.bool: ...
+
+ def do_child_notify(self, child_property: GObject.ParamSpec) -> None: ...
+
+ def do_composited_changed(self) -> None: ...
+
+ def do_compute_expand(self, hexpand_p: builtins.bool, vexpand_p: builtins.bool) -> None: ...
+
+ def do_configure_event(self, event: Gdk.EventConfigure) -> builtins.bool: ...
+
+ def do_damage_event(self, event: Gdk.EventExpose) -> builtins.bool: ...
+
+ def do_delete_event(self, event: Gdk.EventAny) -> builtins.bool: ...
+
+ def do_destroy(self) -> None: ...
+
+ def do_destroy_event(self, event: Gdk.EventAny) -> builtins.bool: ...
+
+ def do_direction_changed(self, previous_direction: TextDirection) -> None: ...
+
+ def do_dispatch_child_properties_changed(self, n_pspecs: builtins.int, pspecs: GObject.ParamSpec) -> None: ...
+
+ def do_drag_begin(self, context: Gdk.DragContext) -> None: ...
+
+ def do_drag_data_delete(self, context: Gdk.DragContext) -> None: ...
+
+ def do_drag_data_get(self, context: Gdk.DragContext, selection_data: SelectionData, info: builtins.int, time_: builtins.int) -> None: ...
+
+ def do_drag_data_received(self, context: Gdk.DragContext, x: builtins.int, y: builtins.int, selection_data: SelectionData, info: builtins.int, time_: builtins.int) -> None: ...
+
+ def do_drag_drop(self, context: Gdk.DragContext, x: builtins.int, y: builtins.int, time_: builtins.int) -> builtins.bool: ...
+
+ def do_drag_end(self, context: Gdk.DragContext) -> None: ...
+
+ def do_drag_failed(self, context: Gdk.DragContext, result: DragResult) -> builtins.bool: ...
+
+ def do_drag_leave(self, context: Gdk.DragContext, time_: builtins.int) -> None: ...
+
+ def do_drag_motion(self, context: Gdk.DragContext, x: builtins.int, y: builtins.int, time_: builtins.int) -> builtins.bool: ...
+
+ def do_draw(self, cr: cairo.Context) -> builtins.bool: ...
+
+ def do_enter_notify_event(self, event: Gdk.EventCrossing) -> builtins.bool: ...
+
+ def do_event(self, event: Gdk.Event) -> builtins.bool: ...
+
+ def do_focus(self, direction: DirectionType) -> builtins.bool: ...
+
+ def do_focus_in_event(self, event: Gdk.EventFocus) -> builtins.bool: ...
+
+ def do_focus_out_event(self, event: Gdk.EventFocus) -> builtins.bool: ...
+
+ def do_get_accessible(self) -> Atk.Object: ...
+
+ def do_get_preferred_height(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_height_and_baseline_for_width(self, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def do_get_preferred_height_for_width(self, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_width(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_width_for_height(self, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_request_mode(self) -> SizeRequestMode: ...
+
+ def do_grab_broken_event(self, event: Gdk.EventGrabBroken) -> builtins.bool: ...
+
+ def do_grab_focus(self) -> None: ...
+
+ def do_grab_notify(self, was_grabbed: builtins.bool) -> None: ...
+
+ def do_hide(self) -> None: ...
+
+ def do_hierarchy_changed(self, previous_toplevel: Widget) -> None: ...
+
+ def do_key_press_event(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def do_key_release_event(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def do_keynav_failed(self, direction: DirectionType) -> builtins.bool: ...
+
+ def do_leave_notify_event(self, event: Gdk.EventCrossing) -> builtins.bool: ...
+
+ def do_map(self) -> None: ...
+
+ def do_map_event(self, event: Gdk.EventAny) -> builtins.bool: ...
+
+ def do_mnemonic_activate(self, group_cycling: builtins.bool) -> builtins.bool: ...
+
+ def do_motion_notify_event(self, event: Gdk.EventMotion) -> builtins.bool: ...
+
+ def do_move_focus(self, direction: DirectionType) -> None: ...
+
+ def do_parent_set(self, previous_parent: Widget) -> None: ...
+
+ def do_popup_menu(self) -> builtins.bool: ...
+
+ def do_property_notify_event(self, event: Gdk.EventProperty) -> builtins.bool: ...
+
+ def do_proximity_in_event(self, event: Gdk.EventProximity) -> builtins.bool: ...
+
+ def do_proximity_out_event(self, event: Gdk.EventProximity) -> builtins.bool: ...
+
+ def do_query_tooltip(self, x: builtins.int, y: builtins.int, keyboard_tooltip: builtins.bool, tooltip: Tooltip) -> builtins.bool: ...
+
+ def do_queue_draw_region(self, region: cairo.Region) -> None: ...
+
+ def do_realize(self) -> None: ...
+
+ def do_screen_changed(self, previous_screen: Gdk.Screen) -> None: ...
+
+ def do_scroll_event(self, event: Gdk.EventScroll) -> builtins.bool: ...
+
+ def do_selection_clear_event(self, event: Gdk.EventSelection) -> builtins.bool: ...
+
+ def do_selection_get(self, selection_data: SelectionData, info: builtins.int, time_: builtins.int) -> None: ...
+
+ def do_selection_notify_event(self, event: Gdk.EventSelection) -> builtins.bool: ...
+
+ def do_selection_received(self, selection_data: SelectionData, time_: builtins.int) -> None: ...
+
+ def do_selection_request_event(self, event: Gdk.EventSelection) -> builtins.bool: ...
+
+ def do_show(self) -> None: ...
+
+ def do_show_all(self) -> None: ...
+
+ def do_show_help(self, help_type: WidgetHelpType) -> builtins.bool: ...
+
+ def do_size_allocate(self, allocation: Gdk.Rectangle) -> None: ...
+
+ def do_state_changed(self, previous_state: StateType) -> None: ...
+
+ def do_state_flags_changed(self, previous_state_flags: StateFlags) -> None: ...
+
+ def do_style_set(self, previous_style: Style) -> None: ...
+
+ def do_style_updated(self) -> None: ...
+
+ def do_touch_event(self, event: Gdk.EventTouch) -> builtins.bool: ...
+
+ def do_unmap(self) -> None: ...
+
+ def do_unmap_event(self, event: Gdk.EventAny) -> builtins.bool: ...
+
+ def do_unrealize(self) -> None: ...
+
+ def do_visibility_notify_event(self, event: Gdk.EventVisibility) -> builtins.bool: ...
+
+ def do_window_state_event(self, event: Gdk.EventWindowState) -> builtins.bool: ...
+
+
+class CellArea(GObject.InitiallyUnowned, Buildable, CellLayout):
+ parent_instance: GObject.InitiallyUnowned
+
+ def activate(self, context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, flags: CellRendererState, edit_only: builtins.bool) -> builtins.bool: ...
+
+ def activate_cell(self, widget: Widget, renderer: CellRenderer, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState) -> builtins.bool: ...
+
+ def add(self, renderer: CellRenderer) -> None: ...
+
+ def add_focus_sibling(self, renderer: CellRenderer, sibling: CellRenderer) -> None: ...
+
+ def apply_attributes(self, tree_model: TreeModel, iter: TreeIter, is_expander: builtins.bool, is_expanded: builtins.bool) -> None: ...
+
+ def attribute_connect(self, renderer: CellRenderer, attribute: builtins.str, column: builtins.int) -> None: ...
+
+ def attribute_disconnect(self, renderer: CellRenderer, attribute: builtins.str) -> None: ...
+
+ def attribute_get_column(self, renderer: CellRenderer, attribute: builtins.str) -> builtins.int: ...
+
+ def cell_get_property(self, renderer: CellRenderer, property_name: builtins.str, value: GObject.Value) -> None: ...
+
+ def cell_set_property(self, renderer: CellRenderer, property_name: builtins.str, value: GObject.Value) -> None: ...
+
+ def copy_context(self, context: CellAreaContext) -> CellAreaContext: ...
+
+ def create_context(self) -> CellAreaContext: ...
+
+ def event(self, context: CellAreaContext, widget: Widget, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState) -> builtins.int: ...
+
+ def focus(self, direction: DirectionType) -> builtins.bool: ...
+
+ def foreach(self, callback: CellCallback, *callback_data: typing.Optional[builtins.object]) -> None: ...
+
+ def foreach_alloc(self, context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback, *callback_data: typing.Optional[builtins.object]) -> None: ...
+
+ def get_cell_allocation(self, context: CellAreaContext, widget: Widget, renderer: CellRenderer, cell_area: Gdk.Rectangle) -> Gdk.Rectangle: ...
+
+ def get_cell_at_position(self, context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, x: builtins.int, y: builtins.int) -> typing.Tuple[CellRenderer, Gdk.Rectangle]: ...
+
+ def get_current_path_string(self) -> builtins.str: ...
+
+ def get_edit_widget(self) -> CellEditable: ...
+
+ def get_edited_cell(self) -> CellRenderer: ...
+
+ def get_focus_cell(self) -> CellRenderer: ...
+
+ def get_focus_from_sibling(self, renderer: CellRenderer) -> typing.Optional[CellRenderer]: ...
+
+ def get_focus_siblings(self, renderer: CellRenderer) -> typing.Sequence[CellRenderer]: ...
+
+ def get_preferred_height(self, context: CellAreaContext, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_height_for_width(self, context: CellAreaContext, widget: Widget, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_width(self, context: CellAreaContext, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_preferred_width_for_height(self, context: CellAreaContext, widget: Widget, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_request_mode(self) -> SizeRequestMode: ...
+
+ def has_renderer(self, renderer: CellRenderer) -> builtins.bool: ...
+
+ def inner_cell_area(self, widget: Widget, cell_area: Gdk.Rectangle) -> Gdk.Rectangle: ...
+
+ def is_activatable(self) -> builtins.bool: ...
+
+ def is_focus_sibling(self, renderer: CellRenderer, sibling: CellRenderer) -> builtins.bool: ...
+
+ def remove(self, renderer: CellRenderer) -> None: ...
+
+ def remove_focus_sibling(self, renderer: CellRenderer, sibling: CellRenderer) -> None: ...
+
+ def render(self, context: CellAreaContext, widget: Widget, cr: cairo.Context, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState, paint_focus: builtins.bool) -> None: ...
+
+ def request_renderer(self, renderer: CellRenderer, orientation: Orientation, widget: Widget, for_size: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def set_focus_cell(self, renderer: CellRenderer) -> None: ...
+
+ def stop_editing(self, canceled: builtins.bool) -> None: ...
+
+ @staticmethod
+ def find_cell_property(property_name: builtins.str) -> GObject.ParamSpec: ...
+
+ @staticmethod
+ def install_cell_property(property_id: builtins.int, pspec: GObject.ParamSpec) -> None: ...
+
+ @staticmethod
+ def list_cell_properties() -> typing.Sequence[GObject.ParamSpec]: ...
+
+ def do_activate(self, context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, flags: CellRendererState, edit_only: builtins.bool) -> builtins.bool: ...
+
+ def do_add(self, renderer: CellRenderer) -> None: ...
+
+ def do_apply_attributes(self, tree_model: TreeModel, iter: TreeIter, is_expander: builtins.bool, is_expanded: builtins.bool) -> None: ...
+
+ def do_copy_context(self, context: CellAreaContext) -> CellAreaContext: ...
+
+ def do_create_context(self) -> CellAreaContext: ...
+
+ def do_event(self, context: CellAreaContext, widget: Widget, event: Gdk.Event, cell_area: Gdk.Rectangle, flags: CellRendererState) -> builtins.int: ...
+
+ def do_focus(self, direction: DirectionType) -> builtins.bool: ...
+
+ def do_foreach(self, callback: CellCallback, callback_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_foreach_alloc(self, context: CellAreaContext, widget: Widget, cell_area: Gdk.Rectangle, background_area: Gdk.Rectangle, callback: CellAllocCallback, callback_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_get_cell_property(self, renderer: CellRenderer, property_id: builtins.int, value: GObject.Value, pspec: GObject.ParamSpec) -> None: ...
+
+ def do_get_preferred_height(self, context: CellAreaContext, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_height_for_width(self, context: CellAreaContext, widget: Widget, width: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_width(self, context: CellAreaContext, widget: Widget) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_preferred_width_for_height(self, context: CellAreaContext, widget: Widget, height: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def do_get_request_mode(self) -> SizeRequestMode: ...
+
+ def do_is_activatable(self) -> builtins.bool: ...
+
+ def do_remove(self, renderer: CellRenderer) -> None: ...
+
+ def do_render(self, context: CellAreaContext, widget: Widget, cr: cairo.Context, background_area: Gdk.Rectangle, cell_area: Gdk.Rectangle, flags: CellRendererState, paint_focus: builtins.bool) -> None: ...
+
+ def do_set_cell_property(self, renderer: CellRenderer, property_id: builtins.int, value: GObject.Value, pspec: GObject.ParamSpec) -> None: ...
+
+
+class EntryCompletion(GObject.Object, Buildable, CellLayout):
+ parent_instance: GObject.Object
+
+ def complete(self) -> None: ...
+
+ def compute_prefix(self, key: builtins.str) -> typing.Optional[builtins.str]: ...
+
+ def delete_action(self, index_: builtins.int) -> None: ...
+
+ def get_completion_prefix(self) -> builtins.str: ...
+
+ def get_entry(self) -> Widget: ...
+
+ def get_inline_completion(self) -> builtins.bool: ...
+
+ def get_inline_selection(self) -> builtins.bool: ...
+
+ def get_minimum_key_length(self) -> builtins.int: ...
+
+ def get_model(self) -> typing.Optional[TreeModel]: ...
+
+ def get_popup_completion(self) -> builtins.bool: ...
+
+ def get_popup_set_width(self) -> builtins.bool: ...
+
+ def get_popup_single_match(self) -> builtins.bool: ...
+
+ def get_text_column(self) -> builtins.int: ...
+
+ def insert_action_markup(self, index_: builtins.int, markup: builtins.str) -> None: ...
+
+ def insert_action_text(self, index_: builtins.int, text: builtins.str) -> None: ...
+
+ def insert_prefix(self) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> EntryCompletion: ... # type: ignore
+
+ @staticmethod
+ def new_with_area(area: CellArea) -> EntryCompletion: ...
+
+ def set_inline_completion(self, inline_completion: builtins.bool) -> None: ...
+
+ def set_inline_selection(self, inline_selection: builtins.bool) -> None: ...
+
+ def set_match_func(self, func: EntryCompletionMatchFunc, *func_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_minimum_key_length(self, length: builtins.int) -> None: ...
+
+ def set_model(self, model: typing.Optional[TreeModel]) -> None: ...
+
+ def set_popup_completion(self, popup_completion: builtins.bool) -> None: ...
+
+ def set_popup_set_width(self, popup_set_width: builtins.bool) -> None: ...
+
+ def set_popup_single_match(self, popup_single_match: builtins.bool) -> None: ...
+
+ def set_text_column(self, column: builtins.int) -> None: ...
+
+ def do_action_activated(self, index_: builtins.int) -> None: ...
+
+ def do_cursor_on_match(self, model: TreeModel, iter: TreeIter) -> builtins.bool: ...
+
+ def do_insert_prefix(self, prefix: builtins.str) -> builtins.bool: ...
+
+ def do_match_selected(self, model: TreeModel, iter: TreeIter) -> builtins.bool: ...
+
+ def do_no_matches(self) -> None: ...
+
+
+class TreeViewColumn(GObject.InitiallyUnowned, Buildable, CellLayout):
+ parent_instance: GObject.InitiallyUnowned
+
+ def add_attribute(self, cell_renderer: CellRenderer, attribute: builtins.str, column: builtins.int) -> None: ...
+
+ def cell_get_position(self, cell_renderer: CellRenderer) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def cell_get_size(self, cell_area: typing.Optional[Gdk.Rectangle]) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ def cell_is_visible(self) -> builtins.bool: ...
+
+ def cell_set_cell_data(self, tree_model: TreeModel, iter: TreeIter, is_expander: builtins.bool, is_expanded: builtins.bool) -> None: ...
+
+ def clear(self) -> None: ...
+
+ def clear_attributes(self, cell_renderer: CellRenderer) -> None: ...
+
+ def clicked(self) -> None: ...
+
+ def focus_cell(self, cell: CellRenderer) -> None: ...
+
+ def get_alignment(self) -> builtins.float: ...
+
+ def get_button(self) -> Widget: ...
+
+ def get_clickable(self) -> builtins.bool: ...
+
+ def get_expand(self) -> builtins.bool: ...
+
+ def get_fixed_width(self) -> builtins.int: ...
+
+ def get_max_width(self) -> builtins.int: ...
+
+ def get_min_width(self) -> builtins.int: ...
+
+ def get_reorderable(self) -> builtins.bool: ...
+
+ def get_resizable(self) -> builtins.bool: ...
+
+ def get_sizing(self) -> TreeViewColumnSizing: ...
+
+ def get_sort_column_id(self) -> builtins.int: ...
+
+ def get_sort_indicator(self) -> builtins.bool: ...
+
+ def get_sort_order(self) -> SortType: ...
+
+ def get_spacing(self) -> builtins.int: ...
+
+ def get_title(self) -> builtins.str: ...
+
+ def get_tree_view(self) -> typing.Optional[Widget]: ...
+
+ def get_visible(self) -> builtins.bool: ...
+
+ def get_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_width(self) -> builtins.int: ...
+
+ def get_x_offset(self) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> TreeViewColumn: ...
+
+ @staticmethod
+ def new_with_area(area: CellArea) -> TreeViewColumn: ...
+
+ def pack_end(self, cell: CellRenderer, expand: builtins.bool) -> None: ...
+
+ def pack_start(self, cell: CellRenderer, expand: builtins.bool) -> None: ...
+
+ def queue_resize(self) -> None: ...
+
+ def set_alignment(self, xalign: builtins.float) -> None: ...
+
+ def set_attributes(self, cell_renderer: CellRenderer, **kwargs: int) -> None: ...
+
+ def set_cell_data_func(self, cell_renderer: CellRenderer, func: typing.Optional[TreeCellDataFunc], *func_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_clickable(self, clickable: builtins.bool) -> None: ...
+
+ def set_expand(self, expand: builtins.bool) -> None: ...
+
+ def set_fixed_width(self, fixed_width: builtins.int) -> None: ...
+
+ def set_max_width(self, max_width: builtins.int) -> None: ...
+
+ def set_min_width(self, min_width: builtins.int) -> None: ...
+
+ def set_reorderable(self, reorderable: builtins.bool) -> None: ...
+
+ def set_resizable(self, resizable: builtins.bool) -> None: ...
+
+ def set_sizing(self, type: TreeViewColumnSizing) -> None: ...
+
+ def set_sort_column_id(self, sort_column_id: builtins.int) -> None: ...
+
+ def set_sort_indicator(self, setting: builtins.bool) -> None: ...
+
+ def set_sort_order(self, order: SortType) -> None: ...
+
+ def set_spacing(self, spacing: builtins.int) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_visible(self, visible: builtins.bool) -> None: ...
+
+ def set_widget(self, widget: typing.Optional[Widget]) -> None: ...
+
+ def do_clicked(self) -> None: ...
+
+
+class CellRendererPixbuf(CellRenderer):
+ parent: CellRenderer
+
+ def __init__(self,
+ *,
+ stock_size: int = 1,
+ ) -> None: ...
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+
+class CellRendererSpinner(CellRenderer):
+ parent: CellRenderer
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+
+class CellRendererText(CellRenderer):
+ parent: CellRenderer
+
+ class _Props(CellRenderer._Props):
+ ellipsize: Pango.EllipsizeMode
+ style: Pango.Style
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ ellipsize: Pango.EllipsizeMode = Pango.EllipsizeMode.NONE,
+ style: Pango.Style = Pango.Style.NORMAL,
+ ) -> None: ...
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+ def set_fixed_height_from_font(self, number_of_rows: builtins.int) -> None: ...
+
+ def do_edited(self, path: builtins.str, new_text: builtins.str) -> None: ...
+
+
+class CellRendererToggle(CellRenderer):
+ parent: CellRenderer
+
+ def get_activatable(self) -> builtins.bool: ...
+
+ def get_active(self) -> builtins.bool: ...
+
+ def get_radio(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+ def set_activatable(self, setting: builtins.bool) -> None: ...
+
+ def set_active(self, setting: builtins.bool) -> None: ...
+
+ def set_radio(self, radio: builtins.bool) -> None: ...
+
+ def do_toggled(self, path: builtins.str) -> None: ...
+
+
+class EventControllerKey(EventController):
+
+ def forward(self, widget: Widget) -> builtins.bool: ...
+
+ def get_group(self) -> builtins.int: ...
+
+ def get_im_context(self) -> IMContext: ...
+
+ @staticmethod
+ def new(widget: Widget) -> EventController: ...
+
+ def set_im_context(self, im_context: IMContext) -> None: ...
+
+
+class EventControllerMotion(EventController):
+
+ @staticmethod
+ def new(widget: Widget) -> EventController: ...
+
+
+class EventControllerScroll(EventController):
+
+ def get_flags(self) -> EventControllerScrollFlags: ...
+
+ @staticmethod
+ def new(widget: Widget, flags: EventControllerScrollFlags) -> EventController: ...
+
+ def set_flags(self, flags: EventControllerScrollFlags) -> None: ...
+
+
+class Gesture(EventController):
+
+ def get_bounding_box(self) -> typing.Tuple[builtins.bool, Gdk.Rectangle]: ...
+
+ def get_bounding_box_center(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ def get_device(self) -> typing.Optional[Gdk.Device]: ...
+
+ def get_group(self) -> typing.Sequence[Gesture]: ...
+
+ def get_last_event(self, sequence: typing.Optional[Gdk.EventSequence]) -> typing.Optional[Gdk.Event]: ...
+
+ def get_last_updated_sequence(self) -> typing.Optional[Gdk.EventSequence]: ...
+
+ def get_point(self, sequence: typing.Optional[Gdk.EventSequence]) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ def get_sequence_state(self, sequence: Gdk.EventSequence) -> EventSequenceState: ...
+
+ def get_sequences(self) -> typing.Sequence[Gdk.EventSequence]: ...
+
+ def get_window(self) -> typing.Optional[Gdk.Window]: ...
+
+ def group(self, gesture: Gesture) -> None: ...
+
+ def handles_sequence(self, sequence: typing.Optional[Gdk.EventSequence]) -> builtins.bool: ...
+
+ def is_active(self) -> builtins.bool: ...
+
+ def is_grouped_with(self, other: Gesture) -> builtins.bool: ...
+
+ def is_recognized(self) -> builtins.bool: ...
+
+ def set_sequence_state(self, sequence: Gdk.EventSequence, state: EventSequenceState) -> builtins.bool: ...
+
+ def set_state(self, state: EventSequenceState) -> builtins.bool: ...
+
+ def set_window(self, window: typing.Optional[Gdk.Window]) -> None: ...
+
+ def ungroup(self) -> None: ...
+
+
+class PadController(EventController):
+
+ @staticmethod
+ def new(window: Window, group: Gio.ActionGroup, pad: typing.Optional[Gdk.Device]) -> PadController: ...
+
+ def set_action(self, type: PadActionType, index: builtins.int, mode: builtins.int, label: builtins.str, action_name: builtins.str) -> None: ...
+
+ def set_action_entries(self, entries: typing.Sequence[PadActionEntry]) -> None: ...
+
+
+class IMContextSimple(IMContext):
+ object: IMContext
+
+ def add_compose_file(self, compose_file: builtins.str) -> None: ...
+
+ @staticmethod
+ def new() -> IMContext: ...
+
+
+class IMMulticontext(IMContext):
+ object: IMContext
+
+ def append_menuitems(self, menushell: MenuShell) -> None: ...
+
+ def get_context_id(self) -> builtins.str: ...
+
+ @staticmethod
+ def new() -> IMContext: ...
+
+ def set_context_id(self, context_id: builtins.str) -> None: ...
+
+
+class FileChooserNative(NativeDialog, FileChooser):
+
+ def get_accept_label(self) -> typing.Optional[builtins.str]: ...
+
+ def get_cancel_label(self) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def new(title: typing.Optional[builtins.str], parent: typing.Optional[Window], action: FileChooserAction, accept_label: typing.Optional[builtins.str], cancel_label: typing.Optional[builtins.str]) -> FileChooserNative: ...
+
+ def set_accept_label(self, accept_label: typing.Optional[builtins.str]) -> None: ...
+
+ def set_cancel_label(self, cancel_label: typing.Optional[builtins.str]) -> None: ...
+
+
+class CellRendererProgress(CellRenderer, Orientable):
+ parent_instance: CellRenderer
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+
+class PrintOperation(GObject.Object, PrintOperationPreview):
+ parent_instance: GObject.Object
+
+ def cancel(self) -> None: ...
+
+ def draw_page_finish(self) -> None: ...
+
+ def get_default_page_setup(self) -> PageSetup: ...
+
+ def get_embed_page_setup(self) -> builtins.bool: ...
+
+ def get_error(self) -> None: ...
+
+ def get_has_selection(self) -> builtins.bool: ...
+
+ def get_n_pages_to_print(self) -> builtins.int: ...
+
+ def get_print_settings(self) -> PrintSettings: ...
+
+ def get_status(self) -> PrintStatus: ...
+
+ def get_status_string(self) -> builtins.str: ...
+
+ def get_support_selection(self) -> builtins.bool: ...
+
+ def is_finished(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(**kwargs) -> PrintOperation: ... # type: ignore
+
+ def run(self, action: PrintOperationAction, parent: typing.Optional[Window]) -> PrintOperationResult: ...
+
+ def set_allow_async(self, allow_async: builtins.bool) -> None: ...
+
+ def set_current_page(self, current_page: builtins.int) -> None: ...
+
+ def set_custom_tab_label(self, label: typing.Optional[builtins.str]) -> None: ...
+
+ def set_default_page_setup(self, default_page_setup: typing.Optional[PageSetup]) -> None: ...
+
+ def set_defer_drawing(self) -> None: ...
+
+ def set_embed_page_setup(self, embed: builtins.bool) -> None: ...
+
+ def set_export_filename(self, filename: builtins.str) -> None: ...
+
+ def set_has_selection(self, has_selection: builtins.bool) -> None: ...
+
+ def set_job_name(self, job_name: builtins.str) -> None: ...
+
+ def set_n_pages(self, n_pages: builtins.int) -> None: ...
+
+ def set_print_settings(self, print_settings: typing.Optional[PrintSettings]) -> None: ...
+
+ def set_show_progress(self, show_progress: builtins.bool) -> None: ...
+
+ def set_support_selection(self, support_selection: builtins.bool) -> None: ...
+
+ def set_track_print_status(self, track_status: builtins.bool) -> None: ...
+
+ def set_unit(self, unit: Unit) -> None: ...
+
+ def set_use_full_page(self, full_page: builtins.bool) -> 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_draw_page(self, context: PrintContext, page_nr: builtins.int) -> None: ...
+
+ def do_end_print(self, context: PrintContext) -> None: ...
+
+ def do_paginate(self, context: PrintContext) -> builtins.bool: ...
+
+ def do_preview(self, preview: PrintOperationPreview, context: PrintContext, parent: Window) -> builtins.bool: ...
+
+ def do_request_page_setup(self, context: PrintContext, page_nr: builtins.int, setup: PageSetup) -> None: ...
+
+ def do_status_changed(self) -> None: ...
+
+ def do_update_custom_widget(self, widget: Widget, setup: PageSetup, settings: PrintSettings) -> None: ...
+
+
+class CssProvider(GObject.Object, StyleProvider):
+ parent_instance: GObject.Object
+
+ @staticmethod
+ def get_default() -> CssProvider: ...
+
+ @staticmethod
+ def get_named(name: builtins.str, variant: typing.Optional[builtins.str]) -> CssProvider: ...
+
+ def load_from_data(self, data: builtins.bytes) -> builtins.bool: ...
+
+ def load_from_file(self, file: Gio.File) -> builtins.bool: ...
+
+ def load_from_path(self, path: builtins.str) -> builtins.bool: ...
+
+ def load_from_resource(self, resource_path: builtins.str) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> CssProvider: ... # type: ignore
+
+ def to_string(self) -> builtins.str: ...
+
+ def do_parsing_error(self, section: CssSection, error: GLib.Error) -> None: ...
+
+
+class Settings(GObject.Object, StyleProvider):
+ parent_instance: GObject.Object
+
+ @staticmethod
+ def get_default() -> typing.Optional[Settings]: ...
+
+ @staticmethod
+ def get_for_screen(screen: Gdk.Screen) -> Settings: ...
+
+ @staticmethod
+ def install_property(pspec: GObject.ParamSpec) -> None: ... # type: ignore
+
+ @staticmethod
+ def install_property_parser(pspec: GObject.ParamSpec, parser: RcPropertyParser) -> None: ...
+
+ def reset_property(self, name: builtins.str) -> None: ...
+
+ def set_double_property(self, name: builtins.str, v_double: builtins.float, origin: builtins.str) -> None: ...
+
+ def set_long_property(self, name: builtins.str, v_long: builtins.int, origin: builtins.str) -> None: ...
+
+ def set_property_value(self, name: builtins.str, svalue: SettingsValue) -> None: ...
+
+ def set_string_property(self, name: builtins.str, v_string: builtins.str, origin: builtins.str) -> None: ...
+
+
+class StyleProperties(GObject.Object, StyleProvider):
+ parent_object: GObject.Object
+
+ def clear(self) -> None: ...
+
+ def get_property(self, property: builtins.str, state: StateFlags) -> typing.Tuple[builtins.bool, GObject.Value]: ... # type: ignore
+
+ def lookup_color(self, name: builtins.str) -> SymbolicColor: ...
+
+ def map_color(self, name: builtins.str, color: SymbolicColor) -> None: ...
+
+ def merge(self, props_to_merge: StyleProperties, replace: builtins.bool) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> StyleProperties: ... # type: ignore
+
+ def set_property(self, property: builtins.str, state: StateFlags, value: GObject.Value) -> None: ... # type: ignore
+
+ def unset_property(self, property: builtins.str, state: StateFlags) -> None: ...
+
+
+class TreeModelFilter(GObject.Object, TreeDragSource, TreeModel):
+ parent: GObject.Object
+
+ def clear_cache(self) -> None: ...
+
+ def convert_child_iter_to_iter(self, child_iter: TreeIter) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def convert_child_path_to_path(self, child_path: TreePath) -> typing.Optional[TreePath]: ...
+
+ def convert_iter_to_child_iter(self, filter_iter: TreeIter) -> TreeIter: ...
+
+ def convert_path_to_child_path(self, filter_path: TreePath) -> typing.Optional[TreePath]: ...
+
+ def get_model(self) -> TreeModel: ...
+
+ def refilter(self) -> None: ...
+
+ def set_modify_func(self, types: typing.Sequence[GObject.GType], func: TreeModelFilterModifyFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_visible_column(self, column: builtins.int) -> None: ...
+
+ def set_visible_func(self, func: TreeModelFilterVisibleFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_modify(self, child_model: TreeModel, iter: TreeIter, value: GObject.Value, column: builtins.int) -> None: ...
+
+ def do_visible(self, child_model: TreeModel, iter: TreeIter) -> builtins.bool: ...
+
+
+class ListStore(GObject.Object, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable):
+ parent: GObject.Object
+
+ def __init__(self, *column_types: type) -> None: ...
+
+ def append(self, row: typing.Optional[typing.Collection[object]] = None) -> TreeIter: ...
+
+ def clear(self) -> None: ...
+
+ def insert(self, position: builtins.int) -> TreeIter: ...
+
+ def insert_after(self, sibling: typing.Optional[TreeIter]) -> TreeIter: ...
+
+ def insert_before(self, sibling: typing.Optional[TreeIter]) -> TreeIter: ...
+
+ def insert_with_valuesv(self, position: builtins.int, columns: typing.Sequence[builtins.int], values: typing.Sequence[GObject.Value]) -> TreeIter: ...
+
+ def iter_is_valid(self, iter: TreeIter) -> builtins.bool: ...
+
+ def move_after(self, iter: TreeIter, position: typing.Optional[TreeIter]) -> None: ...
+
+ def move_before(self, iter: TreeIter, position: typing.Optional[TreeIter]) -> None: ...
+
+ @staticmethod
+ def new(types: typing.Sequence[GObject.GType], **kwargs) -> ListStore: ... # type: ignore
+
+ def prepend(self, row: typing.Optional[typing.Collection[object]] = None) -> TreeIter: ...
+
+ def remove(self, iter: TreeIter) -> builtins.bool: ...
+
+ def reorder(self, new_order: typing.Sequence[builtins.int]) -> None: ...
+
+ def set(self, iter: TreeIter, *args: object) -> None: ...
+
+ def set_column_types(self, types: typing.Sequence[GObject.GType]) -> None: ...
+
+ def set_value(self, iter: TreeIter, column: builtins.int, value: GObject.Value) -> None: ...
+
+ def swap(self, a: TreeIter, b: TreeIter) -> None: ...
+
+
+class TreeModelSort(GObject.Object, TreeDragSource, TreeModel, TreeSortable):
+ parent: GObject.Object
+
+ def clear_cache(self) -> None: ...
+
+ def convert_child_iter_to_iter(self, child_iter: TreeIter) -> typing.Tuple[builtins.bool, TreeIter]: ...
+
+ def convert_child_path_to_path(self, child_path: TreePath) -> typing.Optional[TreePath]: ...
+
+ def convert_iter_to_child_iter(self, sorted_iter: TreeIter) -> TreeIter: ...
+
+ def convert_path_to_child_path(self, sorted_path: TreePath) -> typing.Optional[TreePath]: ...
+
+ def get_model(self) -> TreeModel: ...
+
+ def iter_is_valid(self, iter: TreeIter) -> builtins.bool: ...
+
+ @staticmethod
+ def new_with_model(child_model: TreeModel) -> TreeModelSort: ...
+
+ def reset_default_sort_func(self) -> None: ...
+
+
+class TreeStore(GObject.Object, Buildable, TreeDragDest, TreeDragSource, TreeModel, TreeSortable):
+ parent: GObject.Object
+
+ def append(self, parent: typing.Optional[TreeIter]) -> TreeIter: ...
+
+ def clear(self) -> None: ...
+
+ def insert(self, parent: typing.Optional[TreeIter], position: builtins.int) -> TreeIter: ...
+
+ def insert_after(self, parent: typing.Optional[TreeIter], sibling: typing.Optional[TreeIter]) -> TreeIter: ...
+
+ def insert_before(self, parent: typing.Optional[TreeIter], sibling: typing.Optional[TreeIter]) -> TreeIter: ...
+
+ def insert_with_values(self, parent: typing.Optional[TreeIter], position: builtins.int, columns: typing.Sequence[builtins.int], values: typing.Sequence[GObject.Value]) -> TreeIter: ...
+
+ def is_ancestor(self, iter: TreeIter, descendant: TreeIter) -> builtins.bool: ...
+
+ def iter_depth(self, iter: TreeIter) -> builtins.int: ...
+
+ def iter_is_valid(self, iter: TreeIter) -> builtins.bool: ...
+
+ def move_after(self, iter: TreeIter, position: typing.Optional[TreeIter]) -> None: ...
+
+ def move_before(self, iter: TreeIter, position: typing.Optional[TreeIter]) -> None: ...
+
+ @staticmethod
+ def new(types: typing.Sequence[GObject.GType], **kwargs) -> TreeStore: ... # type: ignore
+
+ def prepend(self, parent: typing.Optional[TreeIter]) -> TreeIter: ...
+
+ def remove(self, iter: TreeIter) -> builtins.bool: ...
+
+ def set(self, iter: TreeIter, columns: typing.Sequence[builtins.int], values: typing.Sequence[GObject.Value]) -> None: ...
+
+ def set_column_types(self, types: typing.Sequence[GObject.GType]) -> None: ...
+
+ def set_value(self, iter: TreeIter, column: builtins.int, value: GObject.Value) -> None: ...
+
+ def swap(self, a: TreeIter, b: TreeIter) -> None: ...
+
+
+class ContainerCellAccessible(CellAccessible):
+ parent: CellAccessible
+
+ def add_child(self, child: CellAccessible) -> None: ...
+
+ def get_children(self) -> typing.Sequence[CellAccessible]: ...
+
+ @staticmethod
+ def new() -> ContainerCellAccessible: ...
+
+ def remove_child(self, child: CellAccessible) -> None: ...
+
+
+class RendererCellAccessible(CellAccessible):
+ parent: CellAccessible
+
+ @staticmethod
+ def new(renderer: CellRenderer) -> Atk.Object: ...
+
+
+class ArrowAccessible(WidgetAccessible, Atk.Image):
+ parent: WidgetAccessible
+
+
+class ContainerAccessible(WidgetAccessible):
+ parent: WidgetAccessible
+
+
+class EntryAccessible(WidgetAccessible, Atk.Action, Atk.EditableText, Atk.Text): # type: ignore
+ parent: WidgetAccessible
+
+
+class ImageAccessible(WidgetAccessible, Atk.Image):
+ parent: WidgetAccessible
+
+
+class LabelAccessible(WidgetAccessible, Atk.Hypertext, Atk.Text):
+ parent: WidgetAccessible
+
+
+class LevelBarAccessible(WidgetAccessible, Atk.Value):
+ parent: WidgetAccessible
+
+
+class ProgressBarAccessible(WidgetAccessible, Atk.Value):
+ parent: WidgetAccessible
+
+
+class RangeAccessible(WidgetAccessible, Atk.Value):
+ parent: WidgetAccessible
+
+
+class SpinnerAccessible(WidgetAccessible, Atk.Image):
+ parent: WidgetAccessible
+
+
+class SwitchAccessible(WidgetAccessible, Atk.Action): # type: ignore
+ parent: WidgetAccessible
+
+
+class RecentAction(Action, RecentChooser):
+ parent_instance: Action
+
+ def get_show_numbers(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(name: builtins.str, label: typing.Optional[builtins.str], tooltip: typing.Optional[builtins.str], stock_id: typing.Optional[builtins.str]) -> Action: ... # type: ignore
+
+ @staticmethod
+ def new_for_manager(name: builtins.str, label: typing.Optional[builtins.str], tooltip: typing.Optional[builtins.str], stock_id: typing.Optional[builtins.str], manager: typing.Optional[RecentManager]) -> Action: ...
+
+ def set_show_numbers(self, show_numbers: builtins.bool) -> None: ...
+
+
+class ToggleAction(Action):
+ parent: Action
+
+ def get_active(self) -> builtins.bool: ...
+
+ def get_draw_as_radio(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(name: builtins.str, label: typing.Optional[builtins.str], tooltip: typing.Optional[builtins.str], stock_id: typing.Optional[builtins.str]) -> ToggleAction: ... # type: ignore
+
+ def set_active(self, is_active: builtins.bool) -> None: ...
+
+ def set_draw_as_radio(self, draw_as_radio: builtins.bool) -> None: ...
+
+ def toggled(self) -> None: ...
+
+ def do_toggled(self) -> None: ...
+
+
+class Calendar(Widget):
+ widget: Widget
+
+ def clear_marks(self) -> None: ...
+
+ def get_date(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+ def get_day_is_marked(self, day: builtins.int) -> builtins.bool: ...
+
+ def get_detail_height_rows(self) -> builtins.int: ...
+
+ def get_detail_width_chars(self) -> builtins.int: ...
+
+ def get_display_options(self) -> CalendarDisplayOptions: ...
+
+ def mark_day(self, day: builtins.int) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def select_day(self, day: builtins.int) -> None: ...
+
+ def select_month(self, month: builtins.int, year: builtins.int) -> None: ...
+
+ def set_detail_func(self, func: CalendarDetailFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_detail_height_rows(self, rows: builtins.int) -> None: ...
+
+ def set_detail_width_chars(self, chars: builtins.int) -> None: ...
+
+ def set_display_options(self, flags: CalendarDisplayOptions) -> None: ...
+
+ def unmark_day(self, day: builtins.int) -> None: ...
+
+ def do_day_selected(self) -> None: ...
+
+ def do_day_selected_double_click(self) -> None: ...
+
+ def do_month_changed(self) -> None: ...
+
+ def do_next_month(self) -> None: ...
+
+ def do_next_year(self) -> None: ...
+
+ def do_prev_month(self) -> None: ...
+
+ def do_prev_year(self) -> None: ...
+
+
+class CellView(Widget, CellLayout, Orientable):
+ parent_instance: Widget
+
+ def get_displayed_row(self) -> typing.Optional[TreePath]: ...
+
+ def get_draw_sensitive(self) -> builtins.bool: ...
+
+ def get_fit_model(self) -> builtins.bool: ...
+
+ def get_model(self) -> typing.Optional[TreeModel]: ...
+
+ def get_size_of_row(self, path: TreePath) -> typing.Tuple[builtins.bool, Requisition]: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_context(area: CellArea, context: CellAreaContext) -> Widget: ...
+
+ @staticmethod
+ def new_with_markup(markup: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_pixbuf(pixbuf: GdkPixbuf.Pixbuf) -> Widget: ...
+
+ @staticmethod
+ def new_with_text(text: builtins.str) -> Widget: ...
+
+ def set_background_color(self, color: Gdk.Color) -> None: ...
+
+ def set_background_rgba(self, rgba: Gdk.RGBA) -> None: ...
+
+ def set_displayed_row(self, path: typing.Optional[TreePath]) -> None: ...
+
+ def set_draw_sensitive(self, draw_sensitive: builtins.bool) -> None: ...
+
+ def set_fit_model(self, fit_model: builtins.bool) -> None: ...
+
+ def set_model(self, model: typing.Optional[TreeModel]) -> None: ...
+
+
+class Container(Widget):
+ widget: Widget
+
+ def __init__(self,
+ *,
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def add(self, widget: Widget) -> None: ...
+
+ def check_resize(self) -> None: ...
+
+ def child_get_property(self, child: Widget, property_name: builtins.str, value: GObject.Value) -> None: ...
+
+ def child_notify(self, child: Widget, child_property: builtins.str) -> None: ... # type: ignore
+
+ def child_notify_by_pspec(self, child: Widget, pspec: GObject.ParamSpec) -> None: ...
+
+ def child_set_property(self, child: Widget, property_name: builtins.str, value: GObject.Value) -> None: ...
+
+ def child_type(self) -> GObject.GType: ...
+
+ def forall(self, callback: Callback, *callback_data: typing.Optional[builtins.object]) -> None: ...
+
+ def foreach(self, callback: typing.Callable[[Widget], None]) -> None: ...
+
+ def get_border_width(self) -> builtins.int: ...
+
+ def get_children(self) -> typing.Sequence[Widget]: ...
+
+ def get_focus_chain(self) -> typing.Tuple[builtins.bool, typing.Sequence[Widget]]: ...
+
+ def get_focus_child(self) -> typing.Optional[Widget]: ...
+
+ def get_focus_hadjustment(self) -> typing.Optional[Adjustment]: ...
+
+ def get_focus_vadjustment(self) -> typing.Optional[Adjustment]: ...
+
+ def get_path_for_child(self, child: Widget) -> WidgetPath: ...
+
+ def get_resize_mode(self) -> ResizeMode: ...
+
+ def propagate_draw(self, child: Widget, cr: cairo.Context) -> None: ...
+
+ def remove(self, widget: Widget) -> None: ...
+
+ def resize_children(self) -> None: ...
+
+ def set_border_width(self, border_width: builtins.int) -> None: ...
+
+ def set_focus_chain(self, focusable_widgets: typing.Sequence[Widget]) -> None: ...
+
+ def set_focus_child(self, child: typing.Optional[Widget]) -> None: ...
+
+ def set_focus_hadjustment(self, adjustment: Adjustment) -> None: ...
+
+ def set_focus_vadjustment(self, adjustment: Adjustment) -> None: ...
+
+ def set_reallocate_redraws(self, needs_redraws: builtins.bool) -> None: ...
+
+ def set_resize_mode(self, resize_mode: ResizeMode) -> None: ...
+
+ def unset_focus_chain(self) -> None: ...
+
+ @staticmethod
+ def find_child_property(property_name: builtins.str) -> typing.Optional[GObject.ParamSpec]: ...
+
+ @staticmethod
+ def handle_border_width() -> None: ...
+
+ @staticmethod
+ def install_child_properties(pspecs: typing.Sequence[GObject.ParamSpec]) -> None: ...
+
+ @staticmethod
+ def install_child_property(property_id: builtins.int, pspec: GObject.ParamSpec) -> None: ...
+
+ @staticmethod
+ def list_child_properties() -> typing.Sequence[GObject.ParamSpec]: ...
+
+ def do_add(self, widget: Widget) -> None: ...
+
+ def do_check_resize(self) -> None: ...
+
+ def do_child_type(self) -> GObject.GType: ...
+
+ def do_composite_name(self, child: Widget) -> builtins.str: ...
+
+ def do_forall(self, include_internals: builtins.bool, callback: Callback, callback_data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_get_child_property(self, child: Widget, property_id: builtins.int, value: GObject.Value, pspec: GObject.ParamSpec) -> None: ...
+
+ def do_get_path_for_child(self, child: Widget) -> WidgetPath: ...
+
+ def do_remove(self, widget: Widget) -> None: ...
+
+ def do_set_child_property(self, child: Widget, property_id: builtins.int, value: GObject.Value, pspec: GObject.ParamSpec) -> None: ...
+
+ def do_set_focus_child(self, child: typing.Optional[Widget]) -> None: ...
+
+
+class DrawingArea(Widget):
+ dummy: builtins.object
+ widget: Widget
+
+ @staticmethod
+ def new() -> Widget: ...
+
+
+class Entry(Widget, CellEditable, Editable):
+ parent_instance: Widget
+
+ class _Props(Widget._Props):
+ secondary_icon_name: typing.Optional[str]
+ secondary_icon_tooltip_text: typing.Optional[str]
+ text: str
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ secondary_icon_name: typing.Optional[str] = None,
+ secondary_icon_tooltip_text: typing.Optional[str] = None,
+ text: str = "",
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_activates_default(self) -> builtins.bool: ...
+
+ def get_alignment(self) -> builtins.float: ...
+
+ def get_attributes(self) -> typing.Optional[Pango.AttrList]: ...
+
+ def get_buffer(self) -> EntryBuffer: ...
+
+ def get_completion(self) -> EntryCompletion: ...
+
+ def get_current_icon_drag_source(self) -> builtins.int: ...
+
+ def get_cursor_hadjustment(self) -> typing.Optional[Adjustment]: ...
+
+ def get_has_frame(self) -> builtins.bool: ...
+
+ def get_icon_activatable(self, icon_pos: EntryIconPosition) -> builtins.bool: ...
+
+ def get_icon_area(self, icon_pos: EntryIconPosition) -> Gdk.Rectangle: ...
+
+ def get_icon_at_pos(self, x: builtins.int, y: builtins.int) -> builtins.int: ...
+
+ def get_icon_gicon(self, icon_pos: EntryIconPosition) -> typing.Optional[Gio.Icon]: ...
+
+ def get_icon_name(self, icon_pos: EntryIconPosition) -> typing.Optional[builtins.str]: ...
+
+ def get_icon_pixbuf(self, icon_pos: EntryIconPosition) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_icon_sensitive(self, icon_pos: EntryIconPosition) -> builtins.bool: ...
+
+ def get_icon_stock(self, icon_pos: EntryIconPosition) -> builtins.str: ...
+
+ def get_icon_storage_type(self, icon_pos: EntryIconPosition) -> ImageType: ...
+
+ def get_icon_tooltip_markup(self, icon_pos: EntryIconPosition) -> typing.Optional[builtins.str]: ...
+
+ def get_icon_tooltip_text(self, icon_pos: EntryIconPosition) -> typing.Optional[builtins.str]: ...
+
+ def get_inner_border(self) -> typing.Optional[Border]: ...
+
+ def get_input_hints(self) -> InputHints: ...
+
+ def get_input_purpose(self) -> InputPurpose: ...
+
+ def get_invisible_char(self) -> builtins.str: ...
+
+ def get_layout(self) -> Pango.Layout: ...
+
+ def get_layout_offsets(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_max_length(self) -> builtins.int: ...
+
+ def get_max_width_chars(self) -> builtins.int: ...
+
+ def get_overwrite_mode(self) -> builtins.bool: ...
+
+ def get_placeholder_text(self) -> builtins.str: ...
+
+ def get_progress_fraction(self) -> builtins.float: ...
+
+ def get_progress_pulse_step(self) -> builtins.float: ...
+
+ def get_tabs(self) -> typing.Optional[Pango.TabArray]: ...
+
+ def get_text(self) -> builtins.str: ...
+
+ def get_text_area(self) -> Gdk.Rectangle: ...
+
+ def get_text_length(self) -> builtins.int: ...
+
+ def get_visibility(self) -> builtins.bool: ...
+
+ def get_width_chars(self) -> builtins.int: ...
+
+ def grab_focus_without_selecting(self) -> None: ...
+
+ def im_context_filter_keypress(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def layout_index_to_text_index(self, layout_index: builtins.int) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_buffer(buffer: EntryBuffer) -> Widget: ...
+
+ def progress_pulse(self) -> None: ...
+
+ def reset_im_context(self) -> None: ...
+
+ def set_activates_default(self, setting: builtins.bool) -> None: ...
+
+ def set_alignment(self, xalign: builtins.float) -> None: ...
+
+ def set_attributes(self, attrs: Pango.AttrList) -> None: ...
+
+ def set_buffer(self, buffer: EntryBuffer) -> None: ...
+
+ def set_completion(self, completion: typing.Optional[EntryCompletion]) -> None: ...
+
+ def set_cursor_hadjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_has_frame(self, setting: builtins.bool) -> None: ...
+
+ def set_icon_activatable(self, icon_pos: EntryIconPosition, activatable: builtins.bool) -> None: ...
+
+ def set_icon_drag_source(self, icon_pos: EntryIconPosition, target_list: TargetList, actions: Gdk.DragAction) -> None: ...
+
+ def set_icon_from_gicon(self, icon_pos: EntryIconPosition, icon: typing.Optional[Gio.Icon]) -> None: ...
+
+ def set_icon_from_icon_name(self, icon_pos: EntryIconPosition, icon_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_icon_from_pixbuf(self, icon_pos: EntryIconPosition, pixbuf: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_icon_from_stock(self, icon_pos: EntryIconPosition, stock_id: typing.Optional[builtins.str]) -> None: ...
+
+ def set_icon_sensitive(self, icon_pos: EntryIconPosition, sensitive: builtins.bool) -> None: ...
+
+ def set_icon_tooltip_markup(self, icon_pos: EntryIconPosition, tooltip: typing.Optional[builtins.str]) -> None: ...
+
+ def set_icon_tooltip_text(self, icon_pos: EntryIconPosition, tooltip: typing.Optional[builtins.str]) -> None: ...
+
+ def set_inner_border(self, border: typing.Optional[Border]) -> None: ...
+
+ def set_input_hints(self, hints: InputHints) -> None: ...
+
+ def set_input_purpose(self, purpose: InputPurpose) -> None: ...
+
+ def set_invisible_char(self, ch: builtins.str) -> None: ...
+
+ def set_max_length(self, max: builtins.int) -> None: ...
+
+ def set_max_width_chars(self, n_chars: builtins.int) -> None: ...
+
+ def set_overwrite_mode(self, overwrite: builtins.bool) -> None: ...
+
+ def set_placeholder_text(self, text: typing.Optional[builtins.str]) -> None: ...
+
+ def set_progress_fraction(self, fraction: builtins.float) -> None: ...
+
+ def set_progress_pulse_step(self, fraction: builtins.float) -> None: ...
+
+ def set_tabs(self, tabs: Pango.TabArray) -> None: ...
+
+ def set_text(self, text: builtins.str) -> None: ...
+
+ def set_visibility(self, visible: builtins.bool) -> None: ...
+
+ def set_width_chars(self, n_chars: builtins.int) -> None: ...
+
+ def text_index_to_layout_index(self, text_index: builtins.int) -> builtins.int: ...
+
+ def unset_invisible_char(self) -> None: ...
+
+ def do_activate(self) -> None: ...
+
+ 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: builtins.int) -> None: ...
+
+ def do_get_frame_size(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_get_text_area_size(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_insert_at_cursor(self, str: builtins.str) -> None: ...
+
+ def do_insert_emoji(self) -> None: ...
+
+ def do_move_cursor(self, step: MovementStep, count: builtins.int, extend_selection: builtins.bool) -> None: ...
+
+ def do_paste_clipboard(self) -> None: ...
+
+ def do_populate_popup(self, popup: Widget) -> None: ...
+
+ def do_toggle_overwrite(self) -> None: ...
+
+
+class GLArea(Widget):
+ parent_instance: Widget
+
+ def attach_buffers(self) -> None: ...
+
+ def get_auto_render(self) -> builtins.bool: ...
+
+ def get_context(self) -> Gdk.GLContext: ...
+
+ def get_error(self) -> typing.Optional[GLib.Error]: ...
+
+ def get_has_alpha(self) -> builtins.bool: ...
+
+ def get_has_depth_buffer(self) -> builtins.bool: ...
+
+ def get_has_stencil_buffer(self) -> builtins.bool: ...
+
+ def get_required_version(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_use_es(self) -> builtins.bool: ...
+
+ def make_current(self) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def queue_render(self) -> None: ...
+
+ def set_auto_render(self, auto_render: builtins.bool) -> None: ...
+
+ def set_error(self, error: typing.Optional[GLib.Error]) -> None: ...
+
+ def set_has_alpha(self, has_alpha: builtins.bool) -> None: ...
+
+ def set_has_depth_buffer(self, has_depth_buffer: builtins.bool) -> None: ...
+
+ def set_has_stencil_buffer(self, has_stencil_buffer: builtins.bool) -> None: ...
+
+ def set_required_version(self, major: builtins.int, minor: builtins.int) -> None: ...
+
+ def set_use_es(self, use_es: builtins.bool) -> None: ...
+
+ def do_render(self, context: Gdk.GLContext) -> builtins.bool: ...
+
+ def do_resize(self, width: builtins.int, height: builtins.int) -> None: ...
+
+
+class HSV(Widget):
+ parent_instance: Widget
+
+ def get_color(self) -> typing.Tuple[builtins.float, builtins.float, builtins.float]: ...
+
+ def get_metrics(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def is_adjusting(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_color(self, h: builtins.float, s: builtins.float, v: builtins.float) -> None: ...
+
+ def set_metrics(self, size: builtins.int, ring_width: builtins.int) -> None: ...
+
+ @staticmethod
+ def to_rgb(h: builtins.float, s: builtins.float, v: builtins.float) -> typing.Tuple[builtins.float, builtins.float, builtins.float]: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_move(self, type: DirectionType) -> None: ...
+
+
+class Invisible(Widget):
+ widget: Widget
+
+ def get_screen(self) -> Gdk.Screen: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_for_screen(screen: Gdk.Screen) -> Widget: ...
+
+ def set_screen(self, screen: Gdk.Screen) -> None: ...
+
+
+class LevelBar(Widget, Orientable):
+ parent: Widget
+
+ def add_offset_value(self, name: builtins.str, value: builtins.float) -> None: ...
+
+ def get_inverted(self) -> builtins.bool: ...
+
+ def get_max_value(self) -> builtins.float: ...
+
+ def get_min_value(self) -> builtins.float: ...
+
+ def get_mode(self) -> LevelBarMode: ...
+
+ def get_offset_value(self, name: typing.Optional[builtins.str]) -> typing.Tuple[builtins.bool, builtins.float]: ...
+
+ def get_value(self) -> builtins.float: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_for_interval(min_value: builtins.float, max_value: builtins.float) -> Widget: ...
+
+ def remove_offset_value(self, name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_inverted(self, inverted: builtins.bool) -> None: ...
+
+ def set_max_value(self, value: builtins.float) -> None: ...
+
+ def set_min_value(self, value: builtins.float) -> None: ...
+
+ def set_mode(self, mode: LevelBarMode) -> None: ...
+
+ def set_value(self, value: builtins.float) -> None: ...
+
+ def do_offset_changed(self, name: builtins.str) -> None: ...
+
+
+class Misc(Widget):
+ widget: Widget
+
+ def get_alignment(self) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def get_padding(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def set_alignment(self, xalign: builtins.float, yalign: builtins.float) -> None: ...
+
+ def set_padding(self, xpad: builtins.int, ypad: builtins.int) -> None: ...
+
+
+class ProgressBar(Widget, Orientable):
+ parent: Widget
+
+ class _Props(Widget._Props):
+ fraction: float
+ text: typing.Optional[str]
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ fraction: float = 0,
+ text: typing.Optional[str] = None,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ # Orientable
+ orientation: Orientation = Orientation.HORIZONTAL,
+ ) -> None: ...
+
+ def get_ellipsize(self) -> Pango.EllipsizeMode: ...
+
+ def get_fraction(self) -> builtins.float: ...
+
+ def get_inverted(self) -> builtins.bool: ...
+
+ def get_pulse_step(self) -> builtins.float: ...
+
+ def get_show_text(self) -> builtins.bool: ...
+
+ def get_text(self) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def pulse(self) -> None: ...
+
+ def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ...
+
+ def set_fraction(self, fraction: builtins.float) -> None: ...
+
+ def set_inverted(self, inverted: builtins.bool) -> None: ...
+
+ def set_pulse_step(self, fraction: builtins.float) -> None: ...
+
+ def set_show_text(self, show_text: builtins.bool) -> None: ...
+
+ def set_text(self, text: typing.Optional[builtins.str]) -> None: ...
+
+
+class Range(Widget, Orientable):
+ widget: Widget
+
+ def get_adjustment(self) -> Adjustment: ...
+
+ def get_fill_level(self) -> builtins.float: ...
+
+ def get_flippable(self) -> builtins.bool: ...
+
+ def get_inverted(self) -> builtins.bool: ...
+
+ def get_lower_stepper_sensitivity(self) -> SensitivityType: ...
+
+ def get_min_slider_size(self) -> builtins.int: ...
+
+ def get_range_rect(self) -> Gdk.Rectangle: ...
+
+ def get_restrict_to_fill_level(self) -> builtins.bool: ...
+
+ def get_round_digits(self) -> builtins.int: ...
+
+ def get_show_fill_level(self) -> builtins.bool: ...
+
+ def get_slider_range(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_slider_size_fixed(self) -> builtins.bool: ...
+
+ def get_upper_stepper_sensitivity(self) -> SensitivityType: ...
+
+ def get_value(self) -> builtins.float: ...
+
+ def set_adjustment(self, adjustment: Adjustment) -> None: ...
+
+ def set_fill_level(self, fill_level: builtins.float) -> None: ...
+
+ def set_flippable(self, flippable: builtins.bool) -> None: ...
+
+ def set_increments(self, step: builtins.float, page: builtins.float) -> None: ...
+
+ def set_inverted(self, setting: builtins.bool) -> None: ...
+
+ def set_lower_stepper_sensitivity(self, sensitivity: SensitivityType) -> None: ...
+
+ def set_min_slider_size(self, min_size: builtins.int) -> None: ...
+
+ def set_range(self, min: builtins.float, max: builtins.float) -> None: ...
+
+ def set_restrict_to_fill_level(self, restrict_to_fill_level: builtins.bool) -> None: ...
+
+ def set_round_digits(self, round_digits: builtins.int) -> None: ...
+
+ def set_show_fill_level(self, show_fill_level: builtins.bool) -> None: ...
+
+ def set_slider_size_fixed(self, size_fixed: builtins.bool) -> None: ...
+
+ def set_upper_stepper_sensitivity(self, sensitivity: SensitivityType) -> None: ...
+
+ def set_value(self, value: builtins.float) -> None: ...
+
+ def do_adjust_bounds(self, new_value: builtins.float) -> None: ...
+
+ def do_change_value(self, scroll: ScrollType, new_value: builtins.float) -> builtins.bool: ...
+
+ def do_get_range_border(self, border_: Border) -> None: ...
+
+ def do_get_range_size_request(self, orientation: Orientation, minimum: builtins.int, natural: builtins.int) -> None: ...
+
+ def do_move_slider(self, scroll: ScrollType) -> None: ...
+
+ def do_value_changed(self) -> None: ...
+
+
+class Separator(Widget, Orientable):
+ widget: Widget
+
+ def __init__(self,
+ *,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ # Orientable
+ orientation: Orientation = Orientation.HORIZONTAL,
+ ) -> None: ...
+
+ @staticmethod
+ def new(orientation: Orientation) -> Widget: ...
+
+
+class Spinner(Widget):
+ parent: Widget
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def start(self) -> None: ...
+
+ def stop(self) -> None: ...
+
+
+class Switch(Widget, Actionable, Activatable):
+ parent_instance: Widget
+
+ def get_active(self) -> builtins.bool: ...
+
+ def get_state(self) -> builtins.bool: ... # type: ignore
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_active(self, is_active: builtins.bool) -> None: ...
+
+ def set_state(self, state: builtins.bool) -> None: ... # type: ignore
+
+ def do_activate(self) -> None: ...
+
+ def do_state_set(self, state: builtins.bool) -> builtins.bool: ...
+
+
+class CellAreaBox(CellArea, Orientable):
+ parent_instance: CellArea
+
+ def get_spacing(self) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> CellArea: ...
+
+ def pack_end(self, renderer: CellRenderer, expand: builtins.bool, align: builtins.bool, fixed: builtins.bool) -> None: ... # type: ignore
+
+ def pack_start(self, renderer: CellRenderer, expand: builtins.bool, align: builtins.bool, fixed: builtins.bool) -> None: ... # type: ignore
+
+ def set_spacing(self, spacing: builtins.int) -> None: ...
+
+
+class CellRendererAccel(CellRendererText):
+ parent: CellRendererText
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+ def do_accel_cleared(self, path_string: builtins.str) -> None: ...
+
+ def do_accel_edited(self, path_string: builtins.str, accel_key: builtins.int, accel_mods: Gdk.ModifierType, hardware_keycode: builtins.int) -> None: ...
+
+
+class CellRendererCombo(CellRendererText):
+ parent: CellRendererText
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+
+class CellRendererSpin(CellRendererText):
+ parent: CellRendererText
+
+ @staticmethod
+ def new() -> CellRenderer: ...
+
+
+class GestureRotate(Gesture):
+
+ def get_angle_delta(self) -> builtins.float: ...
+
+ @staticmethod
+ def new(widget: Widget) -> Gesture: ...
+
+
+class GestureSingle(Gesture):
+
+ def get_button(self) -> builtins.int: ...
+
+ def get_current_button(self) -> builtins.int: ...
+
+ def get_current_sequence(self) -> typing.Optional[Gdk.EventSequence]: ...
+
+ def get_exclusive(self) -> builtins.bool: ...
+
+ def get_touch_only(self) -> builtins.bool: ...
+
+ def set_button(self, button: builtins.int) -> None: ...
+
+ def set_exclusive(self, exclusive: builtins.bool) -> None: ...
+
+ def set_touch_only(self, touch_only: builtins.bool) -> None: ...
+
+
+class GestureZoom(Gesture):
+
+ def get_scale_delta(self) -> builtins.float: ...
+
+ @staticmethod
+ def new(widget: Widget) -> Gesture: ...
+
+
+class BooleanCellAccessible(RendererCellAccessible):
+ parent: RendererCellAccessible
+
+
+class ImageCellAccessible(RendererCellAccessible, Atk.Image): # type: ignore
+ parent: RendererCellAccessible
+
+
+class TextCellAccessible(RendererCellAccessible, Atk.Text): # type: ignore
+ parent: RendererCellAccessible
+
+
+class ButtonAccessible(ContainerAccessible, Atk.Action, Atk.Image): # type: ignore
+ parent: ContainerAccessible
+
+
+class ComboBoxAccessible(ContainerAccessible, Atk.Action, Atk.Selection): # type: ignore
+ parent: ContainerAccessible
+
+
+class ExpanderAccessible(ContainerAccessible, Atk.Action): # type: ignore
+ parent: ContainerAccessible
+
+
+class FlowBoxAccessible(ContainerAccessible, Atk.Selection):
+ parent: ContainerAccessible
+
+
+class FlowBoxChildAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class FrameAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class HeaderBarAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class IconViewAccessible(ContainerAccessible, Atk.Selection):
+ parent: ContainerAccessible
+
+
+class ListBoxAccessible(ContainerAccessible, Atk.Selection):
+ parent: ContainerAccessible
+
+
+class ListBoxRowAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class MenuItemAccessible(ContainerAccessible, Atk.Action, Atk.Selection): # type: ignore
+ parent: ContainerAccessible
+
+
+class MenuShellAccessible(ContainerAccessible, Atk.Selection):
+ parent: ContainerAccessible
+
+
+class NotebookAccessible(ContainerAccessible, Atk.Selection):
+ parent: ContainerAccessible
+
+
+class PanedAccessible(ContainerAccessible, Atk.Value):
+ parent: ContainerAccessible
+
+
+class PopoverAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class ScrolledWindowAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class StackAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class StatusbarAccessible(ContainerAccessible):
+ parent: ContainerAccessible
+
+
+class TextViewAccessible(ContainerAccessible, Atk.EditableText, Atk.StreamableContent, Atk.Text):
+ parent: ContainerAccessible
+
+
+class TreeViewAccessible(ContainerAccessible, Atk.Selection, Atk.Table, CellAccessibleParent): # type: ignore
+ parent: ContainerAccessible
+
+
+class WindowAccessible(ContainerAccessible, Atk.Window):
+ parent: ContainerAccessible
+
+
+class SpinButtonAccessible(EntryAccessible, Atk.Value): # type: ignore
+ parent: EntryAccessible
+
+
+class ScaleAccessible(RangeAccessible):
+ parent: RangeAccessible
+
+
+class RadioAction(ToggleAction):
+ parent: ToggleAction
+
+ def get_current_value(self) -> builtins.int: ...
+
+ def get_group(self) -> typing.Sequence[RadioAction]: ...
+
+ def join_group(self, group_source: typing.Optional[RadioAction]) -> None: ...
+
+ @staticmethod
+ def new(name: builtins.str, label: typing.Optional[builtins.str], tooltip: typing.Optional[builtins.str], stock_id: typing.Optional[builtins.str], value: builtins.int) -> RadioAction: ... # type: ignore
+
+ def set_current_value(self, current_value: builtins.int) -> None: ...
+
+ def set_group(self, group: typing.Optional[typing.Sequence[RadioAction]]) -> None: ...
+
+ def do_changed(self, current: RadioAction) -> None: ...
+
+
+class Bin(Container):
+ container: Container
+
+ def get_child(self) -> typing.Optional[Widget]: ...
+
+
+class Box(Container, Orientable):
+ container: Container
+
+ def __init__(self,
+ *,
+ homogeneous: bool = False,
+ spacing: int = 0,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ # Orientable
+ orientation: Orientation = Orientation.HORIZONTAL,
+ ) -> None: ...
+
+ def get_baseline_position(self) -> BaselinePosition: ...
+
+ def get_center_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_homogeneous(self) -> builtins.bool: ...
+
+ def get_spacing(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(orientation: Orientation, spacing: builtins.int) -> Widget: ...
+
+ def pack_end(self, child: Widget, expand: builtins.bool, fill: builtins.bool, padding: builtins.int) -> None: ...
+
+ def pack_start(self, child: Widget, expand: builtins.bool, fill: builtins.bool, padding: builtins.int) -> None: ...
+
+ def query_child_packing(self, child: Widget) -> typing.Tuple[builtins.bool, builtins.bool, builtins.int, PackType]: ...
+
+ def reorder_child(self, child: Widget, position: builtins.int) -> None: ...
+
+ def set_baseline_position(self, position: BaselinePosition) -> None: ...
+
+ def set_center_widget(self, widget: typing.Optional[Widget]) -> None: ...
+
+ def set_child_packing(self, child: Widget, expand: builtins.bool, fill: builtins.bool, padding: builtins.int, pack_type: PackType) -> None: ...
+
+ def set_homogeneous(self, homogeneous: builtins.bool) -> None: ...
+
+ def set_spacing(self, spacing: builtins.int) -> None: ...
+
+
+class Fixed(Container):
+ container: Container
+
+ def move(self, widget: Widget, x: builtins.int, y: builtins.int) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def put(self, widget: Widget, x: builtins.int, y: builtins.int) -> None: ...
+
+
+class FlowBox(Container, Orientable):
+ container: Container
+
+ def bind_model(self, model: typing.Optional[Gio.ListModel], create_widget_func: FlowBoxCreateWidgetFunc, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def get_activate_on_single_click(self) -> builtins.bool: ...
+
+ def get_child_at_index(self, idx: builtins.int) -> typing.Optional[FlowBoxChild]: ...
+
+ def get_child_at_pos(self, x: builtins.int, y: builtins.int) -> typing.Optional[FlowBoxChild]: ...
+
+ def get_column_spacing(self) -> builtins.int: ...
+
+ def get_homogeneous(self) -> builtins.bool: ...
+
+ def get_max_children_per_line(self) -> builtins.int: ...
+
+ def get_min_children_per_line(self) -> builtins.int: ...
+
+ def get_row_spacing(self) -> builtins.int: ...
+
+ def get_selected_children(self) -> typing.Sequence[FlowBoxChild]: ...
+
+ def get_selection_mode(self) -> SelectionMode: ...
+
+ def insert(self, widget: Widget, position: builtins.int) -> None: ...
+
+ def invalidate_filter(self) -> None: ...
+
+ def invalidate_sort(self) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def select_all(self) -> None: ...
+
+ def select_child(self, child: FlowBoxChild) -> None: ...
+
+ def selected_foreach(self, func: FlowBoxForeachFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_activate_on_single_click(self, single: builtins.bool) -> None: ...
+
+ def set_column_spacing(self, spacing: builtins.int) -> None: ...
+
+ def set_filter_func(self, filter_func: typing.Optional[FlowBoxFilterFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_hadjustment(self, adjustment: Adjustment) -> None: ...
+
+ def set_homogeneous(self, homogeneous: builtins.bool) -> None: ...
+
+ def set_max_children_per_line(self, n_children: builtins.int) -> None: ...
+
+ def set_min_children_per_line(self, n_children: builtins.int) -> None: ...
+
+ def set_row_spacing(self, spacing: builtins.int) -> None: ...
+
+ def set_selection_mode(self, mode: SelectionMode) -> None: ...
+
+ def set_sort_func(self, sort_func: typing.Optional[FlowBoxSortFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_vadjustment(self, adjustment: Adjustment) -> None: ...
+
+ def unselect_all(self) -> None: ...
+
+ def unselect_child(self, child: FlowBoxChild) -> None: ...
+
+ def do_activate_cursor_child(self) -> None: ...
+
+ def do_child_activated(self, child: FlowBoxChild) -> None: ...
+
+ def do_move_cursor(self, step: MovementStep, count: builtins.int) -> builtins.bool: ...
+
+ def do_select_all(self) -> None: ...
+
+ def do_selected_children_changed(self) -> None: ...
+
+ def do_toggle_cursor_child(self) -> None: ...
+
+ def do_unselect_all(self) -> None: ...
+
+
+class Grid(Container, Orientable):
+ container: Container
+
+ def __init__(self,
+ *,
+ row_spacing: int = 0,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ # Orientable
+ orientation: Orientation = Orientation.HORIZONTAL,
+ ) -> None: ...
+
+ def attach(self, child: Widget, left: builtins.int, top: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def attach_next_to(self, child: Widget, sibling: typing.Optional[Widget], side: PositionType, width: builtins.int, height: builtins.int) -> None: ...
+
+ def get_baseline_row(self) -> builtins.int: ...
+
+ def get_child_at(self, left: builtins.int, top: builtins.int) -> typing.Optional[Widget]: ...
+
+ def get_column_homogeneous(self) -> builtins.bool: ...
+
+ def get_column_spacing(self) -> builtins.int: ...
+
+ def get_row_baseline_position(self, row: builtins.int) -> BaselinePosition: ...
+
+ def get_row_homogeneous(self) -> builtins.bool: ...
+
+ def get_row_spacing(self) -> builtins.int: ...
+
+ def insert_column(self, position: builtins.int) -> None: ...
+
+ def insert_next_to(self, sibling: Widget, side: PositionType) -> None: ...
+
+ def insert_row(self, position: builtins.int) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def remove_column(self, position: builtins.int) -> None: ...
+
+ def remove_row(self, position: builtins.int) -> None: ...
+
+ def set_baseline_row(self, row: builtins.int) -> None: ...
+
+ def set_column_homogeneous(self, homogeneous: builtins.bool) -> None: ...
+
+ def set_column_spacing(self, spacing: builtins.int) -> None: ...
+
+ def set_row_baseline_position(self, row: builtins.int, pos: BaselinePosition) -> None: ...
+
+ def set_row_homogeneous(self, homogeneous: builtins.bool) -> None: ...
+
+ def set_row_spacing(self, spacing: builtins.int) -> None: ...
+
+
+class HeaderBar(Container):
+ container: Container
+
+ def get_custom_title(self) -> typing.Optional[Widget]: ...
+
+ def get_decoration_layout(self) -> builtins.str: ...
+
+ def get_has_subtitle(self) -> builtins.bool: ...
+
+ def get_show_close_button(self) -> builtins.bool: ...
+
+ def get_subtitle(self) -> typing.Optional[builtins.str]: ...
+
+ def get_title(self) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def pack_end(self, child: Widget) -> None: ...
+
+ def pack_start(self, child: Widget) -> None: ...
+
+ def set_custom_title(self, title_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_decoration_layout(self, layout: typing.Optional[builtins.str]) -> None: ...
+
+ def set_has_subtitle(self, setting: builtins.bool) -> None: ...
+
+ def set_show_close_button(self, setting: builtins.bool) -> None: ...
+
+ def set_subtitle(self, subtitle: typing.Optional[builtins.str]) -> None: ...
+
+ def set_title(self, title: typing.Optional[builtins.str]) -> None: ...
+
+
+class IconView(Container, CellLayout, Scrollable):
+ parent: Container
+
+ def convert_widget_to_bin_window_coords(self, wx: builtins.int, wy: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def create_drag_icon(self, path: TreePath) -> cairo.Surface: ...
+
+ def enable_model_drag_dest(self, targets: typing.Sequence[TargetEntry], actions: Gdk.DragAction) -> None: ...
+
+ def enable_model_drag_source(self, start_button_mask: Gdk.ModifierType, targets: typing.Sequence[TargetEntry], actions: Gdk.DragAction) -> None: ...
+
+ def get_activate_on_single_click(self) -> builtins.bool: ...
+
+ def get_cell_rect(self, path: TreePath, cell: typing.Optional[CellRenderer]) -> typing.Tuple[builtins.bool, Gdk.Rectangle]: ...
+
+ def get_column_spacing(self) -> builtins.int: ...
+
+ def get_columns(self) -> builtins.int: ...
+
+ def get_cursor(self) -> typing.Tuple[builtins.bool, TreePath, CellRenderer]: ...
+
+ def get_dest_item_at_pos(self, drag_x: builtins.int, drag_y: builtins.int) -> typing.Tuple[builtins.bool, TreePath, IconViewDropPosition]: ...
+
+ def get_drag_dest_item(self) -> typing.Tuple[TreePath, IconViewDropPosition]: ...
+
+ def get_item_at_pos(self, x: builtins.int, y: builtins.int) -> typing.Tuple[builtins.bool, TreePath, CellRenderer]: ...
+
+ def get_item_column(self, path: TreePath) -> builtins.int: ...
+
+ def get_item_orientation(self) -> Orientation: ...
+
+ def get_item_padding(self) -> builtins.int: ...
+
+ def get_item_row(self, path: TreePath) -> builtins.int: ...
+
+ def get_item_width(self) -> builtins.int: ...
+
+ def get_margin(self) -> builtins.int: ...
+
+ def get_markup_column(self) -> builtins.int: ...
+
+ def get_model(self) -> typing.Optional[TreeModel]: ...
+
+ def get_path_at_pos(self, x: builtins.int, y: builtins.int) -> typing.Optional[TreePath]: ...
+
+ def get_pixbuf_column(self) -> builtins.int: ...
+
+ def get_reorderable(self) -> builtins.bool: ...
+
+ def get_row_spacing(self) -> builtins.int: ...
+
+ def get_selected_items(self) -> typing.Sequence[TreePath]: ...
+
+ def get_selection_mode(self) -> SelectionMode: ...
+
+ def get_spacing(self) -> builtins.int: ...
+
+ def get_text_column(self) -> builtins.int: ...
+
+ def get_tooltip_column(self) -> builtins.int: ...
+
+ def get_tooltip_context(self, x: builtins.int, y: builtins.int, keyboard_tip: builtins.bool) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, TreeModel, TreePath, TreeIter]: ...
+
+ def get_visible_range(self) -> typing.Tuple[builtins.bool, TreePath, TreePath]: ...
+
+ def item_activated(self, path: TreePath) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_area(area: CellArea) -> Widget: ...
+
+ @staticmethod
+ def new_with_model(model: TreeModel) -> Widget: ...
+
+ def path_is_selected(self, path: TreePath) -> builtins.bool: ...
+
+ def scroll_to_path(self, path: TreePath, use_align: builtins.bool, row_align: builtins.float, col_align: builtins.float) -> None: ...
+
+ def select_all(self) -> None: ...
+
+ def select_path(self, path: TreePath) -> None: ...
+
+ def selected_foreach(self, func: IconViewForeachFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_activate_on_single_click(self, single: builtins.bool) -> None: ...
+
+ def set_column_spacing(self, column_spacing: builtins.int) -> None: ...
+
+ def set_columns(self, columns: builtins.int) -> None: ...
+
+ def set_cursor(self, path: TreePath, cell: typing.Optional[CellRenderer], start_editing: builtins.bool) -> None: ...
+
+ def set_drag_dest_item(self, path: typing.Optional[TreePath], pos: IconViewDropPosition) -> None: ...
+
+ def set_item_orientation(self, orientation: Orientation) -> None: ...
+
+ def set_item_padding(self, item_padding: builtins.int) -> None: ...
+
+ def set_item_width(self, item_width: builtins.int) -> None: ...
+
+ def set_margin(self, margin: builtins.int) -> None: ...
+
+ def set_markup_column(self, column: builtins.int) -> None: ...
+
+ def set_model(self, model: typing.Optional[TreeModel]) -> None: ...
+
+ def set_pixbuf_column(self, column: builtins.int) -> None: ...
+
+ def set_reorderable(self, reorderable: builtins.bool) -> None: ...
+
+ def set_row_spacing(self, row_spacing: builtins.int) -> None: ...
+
+ def set_selection_mode(self, mode: SelectionMode) -> None: ...
+
+ def set_spacing(self, spacing: builtins.int) -> None: ...
+
+ def set_text_column(self, column: builtins.int) -> None: ...
+
+ def set_tooltip_cell(self, tooltip: Tooltip, path: TreePath, cell: typing.Optional[CellRenderer]) -> None: ...
+
+ def set_tooltip_column(self, column: builtins.int) -> None: ...
+
+ def set_tooltip_item(self, tooltip: Tooltip, path: TreePath) -> None: ...
+
+ def unselect_all(self) -> None: ...
+
+ def unselect_path(self, path: TreePath) -> None: ...
+
+ def unset_model_drag_dest(self) -> None: ...
+
+ def unset_model_drag_source(self) -> None: ...
+
+ def do_activate_cursor_item(self) -> builtins.bool: ...
+
+ def do_item_activated(self, path: TreePath) -> None: ...
+
+ def do_move_cursor(self, step: MovementStep, count: builtins.int) -> builtins.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: ...
+
+
+class Layout(Container, Scrollable):
+ container: Container
+
+ def get_bin_window(self) -> Gdk.Window: ...
+
+ def get_hadjustment(self) -> Adjustment: ...
+
+ def get_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_vadjustment(self) -> Adjustment: ...
+
+ def move(self, child_widget: Widget, x: builtins.int, y: builtins.int) -> None: ...
+
+ @staticmethod
+ def new(hadjustment: typing.Optional[Adjustment], vadjustment: typing.Optional[Adjustment]) -> Widget: ...
+
+ def put(self, child_widget: Widget, x: builtins.int, y: builtins.int) -> None: ...
+
+ def set_hadjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_size(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def set_vadjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+
+class ListBox(Container):
+ parent_instance: Container
+
+ def bind_model(self, model: typing.Optional[Gio.ListModel], create_widget_func: typing.Optional[ListBoxCreateWidgetFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def drag_highlight_row(self, row: ListBoxRow) -> None: ...
+
+ def drag_unhighlight_row(self) -> None: ...
+
+ def get_activate_on_single_click(self) -> builtins.bool: ...
+
+ def get_adjustment(self) -> Adjustment: ...
+
+ def get_row_at_index(self, index_: builtins.int) -> typing.Optional[ListBoxRow]: ...
+
+ def get_row_at_y(self, y: builtins.int) -> typing.Optional[ListBoxRow]: ...
+
+ def get_selected_row(self) -> ListBoxRow: ...
+
+ def get_selected_rows(self) -> typing.Sequence[ListBoxRow]: ...
+
+ def get_selection_mode(self) -> SelectionMode: ...
+
+ def insert(self, child: Widget, position: builtins.int) -> None: ...
+
+ def invalidate_filter(self) -> None: ...
+
+ def invalidate_headers(self) -> None: ...
+
+ def invalidate_sort(self) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def prepend(self, child: Widget) -> None: ...
+
+ def select_all(self) -> None: ...
+
+ def select_row(self, row: typing.Optional[ListBoxRow]) -> None: ...
+
+ def selected_foreach(self, func: ListBoxForeachFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_activate_on_single_click(self, single: builtins.bool) -> None: ...
+
+ def set_adjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_filter_func(self, filter_func: typing.Optional[ListBoxFilterFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_header_func(self, update_header: typing.Optional[ListBoxUpdateHeaderFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_placeholder(self, placeholder: typing.Optional[Widget]) -> None: ...
+
+ def set_selection_mode(self, mode: SelectionMode) -> None: ...
+
+ def set_sort_func(self, sort_func: typing.Optional[ListBoxSortFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def unselect_all(self) -> None: ...
+
+ def unselect_row(self, row: ListBoxRow) -> None: ...
+
+ def do_activate_cursor_row(self) -> None: ...
+
+ def do_move_cursor(self, step: MovementStep, count: builtins.int) -> None: ...
+
+ def do_row_activated(self, row: ListBoxRow) -> None: ...
+
+ def do_row_selected(self, row: ListBoxRow) -> None: ...
+
+ def do_select_all(self) -> None: ...
+
+ def do_selected_rows_changed(self) -> None: ...
+
+ def do_toggle_cursor_row(self) -> None: ...
+
+ def do_unselect_all(self) -> None: ...
+
+
+class MenuShell(Container):
+ container: Container
+
+ def activate_item(self, menu_item: Widget, force_deactivate: builtins.bool) -> None: ...
+
+ def append(self, child: MenuItem) -> None: ...
+
+ def bind_model(self, model: typing.Optional[Gio.MenuModel], action_namespace: typing.Optional[builtins.str], with_separators: builtins.bool) -> None: ...
+
+ def cancel(self) -> None: ...
+
+ def deactivate(self) -> None: ...
+
+ def deselect(self) -> None: ...
+
+ def get_parent_shell(self) -> Widget: ...
+
+ def get_selected_item(self) -> Widget: ...
+
+ def get_take_focus(self) -> builtins.bool: ...
+
+ def insert(self, child: Widget, position: builtins.int) -> None: ...
+
+ def prepend(self, child: Widget) -> None: ...
+
+ def select_first(self, search_sensitive: builtins.bool) -> None: ...
+
+ def select_item(self, menu_item: Widget) -> None: ...
+
+ def set_take_focus(self, take_focus: builtins.bool) -> None: ...
+
+ def do_activate_current(self, force_hide: builtins.bool) -> None: ...
+
+ def do_cancel(self) -> None: ...
+
+ def do_deactivate(self) -> None: ...
+
+ def do_get_popup_delay(self) -> builtins.int: ...
+
+ def do_insert(self, child: Widget, position: builtins.int) -> None: ...
+
+ def do_move_current(self, direction: MenuDirectionType) -> None: ...
+
+ def do_move_selected(self, distance: builtins.int) -> builtins.bool: ...
+
+ def do_select_item(self, menu_item: Widget) -> None: ...
+
+ def do_selection_done(self) -> None: ...
+
+
+class Notebook(Container):
+ container: Container
+
+ def append_page(self, child: Widget, tab_label: typing.Optional[Widget]) -> builtins.int: ...
+
+ def append_page_menu(self, child: Widget, tab_label: typing.Optional[Widget], menu_label: typing.Optional[Widget]) -> builtins.int: ...
+
+ def detach_tab(self, child: Widget) -> None: ...
+
+ def get_action_widget(self, pack_type: PackType) -> typing.Optional[Widget]: ...
+
+ def get_current_page(self) -> builtins.int: ...
+
+ def get_group_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_menu_label(self, child: Widget) -> typing.Optional[Widget]: ...
+
+ def get_menu_label_text(self, child: Widget) -> typing.Optional[builtins.str]: ...
+
+ def get_n_pages(self) -> builtins.int: ...
+
+ def get_nth_page(self, page_num: builtins.int) -> typing.Optional[Widget]: ...
+
+ def get_scrollable(self) -> builtins.bool: ...
+
+ def get_show_border(self) -> builtins.bool: ...
+
+ def get_show_tabs(self) -> builtins.bool: ...
+
+ def get_tab_detachable(self, child: Widget) -> builtins.bool: ...
+
+ def get_tab_hborder(self) -> builtins.int: ...
+
+ def get_tab_label(self, child: Widget) -> typing.Optional[Widget]: ...
+
+ def get_tab_label_text(self, child: Widget) -> typing.Optional[builtins.str]: ...
+
+ def get_tab_pos(self) -> PositionType: ...
+
+ def get_tab_reorderable(self, child: Widget) -> builtins.bool: ...
+
+ def get_tab_vborder(self) -> builtins.int: ...
+
+ def insert_page(self, child: Widget, tab_label: typing.Optional[Widget], position: builtins.int) -> builtins.int: ...
+
+ def insert_page_menu(self, child: Widget, tab_label: typing.Optional[Widget], menu_label: typing.Optional[Widget], position: builtins.int) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def next_page(self) -> None: ...
+
+ def page_num(self, child: Widget) -> builtins.int: ...
+
+ def popup_disable(self) -> None: ...
+
+ def popup_enable(self) -> None: ...
+
+ def prepend_page(self, child: Widget, tab_label: typing.Optional[Widget]) -> builtins.int: ...
+
+ def prepend_page_menu(self, child: Widget, tab_label: typing.Optional[Widget], menu_label: typing.Optional[Widget]) -> builtins.int: ...
+
+ def prev_page(self) -> None: ...
+
+ def remove_page(self, page_num: builtins.int) -> None: ...
+
+ def reorder_child(self, child: Widget, position: builtins.int) -> None: ...
+
+ def set_action_widget(self, widget: Widget, pack_type: PackType) -> None: ...
+
+ def set_current_page(self, page_num: builtins.int) -> None: ...
+
+ def set_group_name(self, group_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_menu_label(self, child: Widget, menu_label: typing.Optional[Widget]) -> None: ...
+
+ def set_menu_label_text(self, child: Widget, menu_text: builtins.str) -> None: ...
+
+ def set_scrollable(self, scrollable: builtins.bool) -> None: ...
+
+ def set_show_border(self, show_border: builtins.bool) -> None: ...
+
+ def set_show_tabs(self, show_tabs: builtins.bool) -> None: ...
+
+ def set_tab_detachable(self, child: Widget, detachable: builtins.bool) -> None: ...
+
+ def set_tab_label(self, child: Widget, tab_label: typing.Optional[Widget]) -> None: ...
+
+ def set_tab_label_text(self, child: Widget, tab_text: builtins.str) -> None: ...
+
+ def set_tab_pos(self, pos: PositionType) -> None: ...
+
+ def set_tab_reorderable(self, child: Widget, reorderable: builtins.bool) -> None: ...
+
+ def do_change_current_page(self, offset: builtins.int) -> builtins.bool: ...
+
+ def do_focus_tab(self, type: NotebookTab) -> builtins.bool: ...
+
+ def do_insert_page(self, child: Widget, tab_label: Widget, menu_label: Widget, position: builtins.int) -> builtins.int: ...
+
+ def do_move_focus_out(self, direction: DirectionType) -> None: ...
+
+ def do_page_added(self, child: Widget, page_num: builtins.int) -> None: ...
+
+ def do_page_removed(self, child: Widget, page_num: builtins.int) -> None: ...
+
+ def do_page_reordered(self, child: Widget, page_num: builtins.int) -> None: ...
+
+ def do_reorder_tab(self, direction: DirectionType, move_to_last: builtins.bool) -> builtins.bool: ...
+
+ def do_select_page(self, move_focus: builtins.bool) -> builtins.bool: ...
+
+ def do_switch_page(self, page: Widget, page_num: builtins.int) -> None: ...
+
+
+class Paned(Container, Orientable):
+ container: Container
+
+ def add1(self, child: Widget) -> None: ...
+
+ def add2(self, child: Widget) -> None: ...
+
+ def get_child1(self) -> typing.Optional[Widget]: ...
+
+ def get_child2(self) -> typing.Optional[Widget]: ...
+
+ def get_handle_window(self) -> Gdk.Window: ...
+
+ def get_position(self) -> builtins.int: ...
+
+ def get_wide_handle(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(orientation: Orientation) -> Widget: ...
+
+ def pack1(self, child: Widget, resize: builtins.bool, shrink: builtins.bool) -> None: ...
+
+ def pack2(self, child: Widget, resize: builtins.bool, shrink: builtins.bool) -> None: ...
+
+ def set_position(self, position: builtins.int) -> None: ...
+
+ def set_wide_handle(self, wide: builtins.bool) -> None: ...
+
+ def do_accept_position(self) -> builtins.bool: ...
+
+ def do_cancel_position(self) -> builtins.bool: ...
+
+ def do_cycle_child_focus(self, reverse: builtins.bool) -> builtins.bool: ...
+
+ def do_cycle_handle_focus(self, reverse: builtins.bool) -> builtins.bool: ...
+
+ def do_move_handle(self, scroll: ScrollType) -> builtins.bool: ...
+
+ def do_toggle_handle_focus(self) -> builtins.bool: ...
+
+
+class Socket(Container):
+ container: Container
+
+ def add_id(self, window: builtins.int) -> None: ...
+
+ def get_id(self) -> builtins.int: ...
+
+ def get_plug_window(self) -> typing.Optional[Gdk.Window]: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def do_plug_added(self) -> None: ...
+
+ def do_plug_removed(self) -> builtins.bool: ...
+
+
+class Stack(Container):
+ parent_instance: Container
+
+ def add_named(self, child: Widget, name: builtins.str) -> None: ...
+
+ def add_titled(self, child: Widget, name: builtins.str, title: builtins.str) -> None: ...
+
+ def get_child_by_name(self, name: builtins.str) -> typing.Optional[Widget]: ...
+
+ def get_hhomogeneous(self) -> builtins.bool: ...
+
+ def get_homogeneous(self) -> builtins.bool: ...
+
+ def get_interpolate_size(self) -> builtins.bool: ...
+
+ def get_transition_duration(self) -> builtins.int: ...
+
+ def get_transition_running(self) -> builtins.bool: ...
+
+ def get_transition_type(self) -> StackTransitionType: ...
+
+ def get_vhomogeneous(self) -> builtins.bool: ...
+
+ def get_visible_child(self) -> typing.Optional[Widget]: ...
+
+ def get_visible_child_name(self) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_hhomogeneous(self, hhomogeneous: builtins.bool) -> None: ...
+
+ def set_homogeneous(self, homogeneous: builtins.bool) -> None: ...
+
+ def set_interpolate_size(self, interpolate_size: builtins.bool) -> None: ...
+
+ def set_transition_duration(self, duration: builtins.int) -> None: ...
+
+ def set_transition_type(self, transition: StackTransitionType) -> None: ...
+
+ def set_vhomogeneous(self, vhomogeneous: builtins.bool) -> None: ...
+
+ def set_visible_child(self, child: Widget) -> None: ...
+
+ def set_visible_child_full(self, name: builtins.str, transition: StackTransitionType) -> None: ...
+
+ def set_visible_child_name(self, name: builtins.str) -> None: ...
+
+
+class Table(Container):
+ container: Container
+
+ def attach(self, child: Widget, left_attach: builtins.int, right_attach: builtins.int, top_attach: builtins.int, bottom_attach: builtins.int, xoptions: AttachOptions, yoptions: AttachOptions, xpadding: builtins.int, ypadding: builtins.int) -> None: ...
+
+ def attach_defaults(self, widget: Widget, left_attach: builtins.int, right_attach: builtins.int, top_attach: builtins.int, bottom_attach: builtins.int) -> None: ...
+
+ def get_col_spacing(self, column: builtins.int) -> builtins.int: ...
+
+ def get_default_col_spacing(self) -> builtins.int: ...
+
+ def get_default_row_spacing(self) -> builtins.int: ...
+
+ def get_homogeneous(self) -> builtins.bool: ...
+
+ def get_row_spacing(self, row: builtins.int) -> builtins.int: ...
+
+ def get_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def new(rows: builtins.int, columns: builtins.int, homogeneous: builtins.bool) -> Widget: ...
+
+ def resize(self, rows: builtins.int, columns: builtins.int) -> None: ...
+
+ def set_col_spacing(self, column: builtins.int, spacing: builtins.int) -> None: ...
+
+ def set_col_spacings(self, spacing: builtins.int) -> None: ...
+
+ def set_homogeneous(self, homogeneous: builtins.bool) -> None: ...
+
+ def set_row_spacing(self, row: builtins.int, spacing: builtins.int) -> None: ...
+
+ def set_row_spacings(self, spacing: builtins.int) -> None: ...
+
+
+class TextView(Container, Scrollable):
+ parent_instance: Container
+
+ def add_child_at_anchor(self, child: Widget, anchor: TextChildAnchor) -> None: ...
+
+ def add_child_in_window(self, child: Widget, which_window: TextWindowType, xpos: builtins.int, ypos: builtins.int) -> None: ...
+
+ def backward_display_line(self, iter: TextIter) -> builtins.bool: ...
+
+ def backward_display_line_start(self, iter: TextIter) -> builtins.bool: ...
+
+ def buffer_to_window_coords(self, win: TextWindowType, buffer_x: builtins.int, buffer_y: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def forward_display_line(self, iter: TextIter) -> builtins.bool: ...
+
+ def forward_display_line_end(self, iter: TextIter) -> builtins.bool: ...
+
+ def get_accepts_tab(self) -> builtins.bool: ...
+
+ def get_border_window_size(self, type: TextWindowType) -> builtins.int: ...
+
+ def get_bottom_margin(self) -> builtins.int: ...
+
+ def get_buffer(self) -> TextBuffer: ...
+
+ def get_cursor_locations(self, iter: typing.Optional[TextIter]) -> typing.Tuple[Gdk.Rectangle, Gdk.Rectangle]: ...
+
+ def get_cursor_visible(self) -> builtins.bool: ...
+
+ def get_default_attributes(self) -> TextAttributes: ...
+
+ def get_editable(self) -> builtins.bool: ...
+
+ def get_hadjustment(self) -> Adjustment: ...
+
+ def get_indent(self) -> builtins.int: ...
+
+ def get_input_hints(self) -> InputHints: ...
+
+ def get_input_purpose(self) -> InputPurpose: ...
+
+ def get_iter_at_location(self, x: builtins.int, y: builtins.int) -> typing.Tuple[builtins.bool, TextIter]: ...
+
+ def get_iter_at_position(self, x: builtins.int, y: builtins.int) -> typing.Tuple[builtins.bool, TextIter, builtins.int]: ...
+
+ def get_iter_location(self, iter: TextIter) -> Gdk.Rectangle: ...
+
+ def get_justification(self) -> Justification: ...
+
+ def get_left_margin(self) -> builtins.int: ...
+
+ def get_line_at_y(self, y: builtins.int) -> typing.Tuple[TextIter, builtins.int]: ...
+
+ def get_line_yrange(self, iter: TextIter) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_monospace(self) -> builtins.bool: ...
+
+ def get_overwrite(self) -> builtins.bool: ...
+
+ def get_pixels_above_lines(self) -> builtins.int: ...
+
+ def get_pixels_below_lines(self) -> builtins.int: ...
+
+ def get_pixels_inside_wrap(self) -> builtins.int: ...
+
+ def get_right_margin(self) -> builtins.int: ...
+
+ def get_tabs(self) -> typing.Optional[Pango.TabArray]: ...
+
+ def get_top_margin(self) -> builtins.int: ...
+
+ def get_vadjustment(self) -> Adjustment: ...
+
+ def get_visible_rect(self) -> Gdk.Rectangle: ...
+
+ def get_window(self, win: TextWindowType) -> typing.Optional[Gdk.Window]: ... # type: ignore
+
+ def get_window_type(self, window: Gdk.Window) -> TextWindowType: ...
+
+ def get_wrap_mode(self) -> WrapMode: ...
+
+ def im_context_filter_keypress(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def move_child(self, child: Widget, xpos: builtins.int, ypos: builtins.int) -> None: ...
+
+ def move_mark_onscreen(self, mark: TextMark) -> builtins.bool: ...
+
+ def move_visually(self, iter: TextIter, count: builtins.int) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_buffer(buffer: TextBuffer) -> Widget: ...
+
+ def place_cursor_onscreen(self) -> builtins.bool: ...
+
+ def reset_cursor_blink(self) -> None: ...
+
+ def reset_im_context(self) -> None: ...
+
+ def scroll_mark_onscreen(self, mark: TextMark) -> None: ...
+
+ def scroll_to_iter(self, iter: TextIter, within_margin: builtins.float, use_align: builtins.bool, xalign: builtins.float, yalign: builtins.float) -> builtins.bool: ...
+
+ def scroll_to_mark(self, mark: TextMark, within_margin: builtins.float, use_align: builtins.bool, xalign: builtins.float, yalign: builtins.float) -> None: ...
+
+ def set_accepts_tab(self, accepts_tab: builtins.bool) -> None: ...
+
+ def set_border_window_size(self, type: TextWindowType, size: builtins.int) -> None: ...
+
+ def set_bottom_margin(self, bottom_margin: builtins.int) -> None: ...
+
+ def set_buffer(self, buffer: typing.Optional[TextBuffer]) -> None: ...
+
+ def set_cursor_visible(self, setting: builtins.bool) -> None: ...
+
+ def set_editable(self, setting: builtins.bool) -> None: ...
+
+ def set_indent(self, indent: builtins.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_left_margin(self, left_margin: builtins.int) -> None: ...
+
+ def set_monospace(self, monospace: builtins.bool) -> None: ...
+
+ def set_overwrite(self, overwrite: builtins.bool) -> None: ...
+
+ def set_pixels_above_lines(self, pixels_above_lines: builtins.int) -> None: ...
+
+ def set_pixels_below_lines(self, pixels_below_lines: builtins.int) -> None: ...
+
+ def set_pixels_inside_wrap(self, pixels_inside_wrap: builtins.int) -> None: ...
+
+ def set_right_margin(self, right_margin: builtins.int) -> None: ...
+
+ def set_tabs(self, tabs: Pango.TabArray) -> None: ...
+
+ def set_top_margin(self, top_margin: builtins.int) -> None: ...
+
+ def set_wrap_mode(self, wrap_mode: WrapMode) -> None: ...
+
+ def starts_display_line(self, iter: TextIter) -> builtins.bool: ...
+
+ def window_to_buffer_coords(self, win: TextWindowType, window_x: builtins.int, window_y: builtins.int) -> typing.Tuple[builtins.int, builtins.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: builtins.int) -> None: ...
+
+ def do_draw_layer(self, layer: TextViewLayer, cr: cairo.Context) -> None: ...
+
+ def do_extend_selection(self, granularity: TextExtendSelection, location: TextIter, start: TextIter, end: TextIter) -> builtins.bool: ...
+
+ def do_insert_at_cursor(self, str: builtins.str) -> None: ...
+
+ def do_insert_emoji(self) -> None: ...
+
+ def do_move_cursor(self, step: MovementStep, count: builtins.int, extend_selection: builtins.bool) -> None: ...
+
+ def do_paste_clipboard(self) -> None: ...
+
+ def do_populate_popup(self, popup: Widget) -> None: ...
+
+ def do_set_anchor(self) -> None: ...
+
+ def do_toggle_overwrite(self) -> None: ...
+
+
+class ToolItemGroup(Container, ToolShell): # type: ignore
+ parent_instance: Container
+
+ def get_collapsed(self) -> builtins.bool: ...
+
+ def get_drop_item(self, x: builtins.int, y: builtins.int) -> ToolItem: ...
+
+ def get_ellipsize(self) -> Pango.EllipsizeMode: ...
+
+ def get_header_relief(self) -> ReliefStyle: ...
+
+ def get_item_position(self, item: ToolItem) -> builtins.int: ...
+
+ def get_label(self) -> builtins.str: ...
+
+ def get_label_widget(self) -> Widget: ...
+
+ def get_n_items(self) -> builtins.int: ...
+
+ def get_nth_item(self, index: builtins.int) -> ToolItem: ...
+
+ def insert(self, item: ToolItem, position: builtins.int) -> None: ...
+
+ @staticmethod
+ def new(label: builtins.str) -> Widget: ...
+
+ def set_collapsed(self, collapsed: builtins.bool) -> None: ...
+
+ def set_ellipsize(self, ellipsize: Pango.EllipsizeMode) -> None: ...
+
+ def set_header_relief(self, style: ReliefStyle) -> None: ...
+
+ def set_item_position(self, item: ToolItem, position: builtins.int) -> None: ...
+
+ def set_label(self, label: builtins.str) -> None: ...
+
+ def set_label_widget(self, label_widget: Widget) -> None: ...
+
+
+class ToolPalette(Container, Orientable, Scrollable):
+ parent_instance: Container
+
+ def add_drag_dest(self, widget: Widget, flags: DestDefaults, targets: ToolPaletteDragTargets, actions: Gdk.DragAction) -> None: ...
+
+ def get_drag_item(self, selection: SelectionData) -> Widget: ...
+
+ @staticmethod
+ def get_drag_target_group() -> TargetEntry: ...
+
+ @staticmethod
+ def get_drag_target_item() -> TargetEntry: ...
+
+ def get_drop_group(self, x: builtins.int, y: builtins.int) -> typing.Optional[ToolItemGroup]: ...
+
+ def get_drop_item(self, x: builtins.int, y: builtins.int) -> typing.Optional[ToolItem]: ...
+
+ def get_exclusive(self, group: ToolItemGroup) -> builtins.bool: ...
+
+ def get_expand(self, group: ToolItemGroup) -> builtins.bool: ...
+
+ def get_group_position(self, group: ToolItemGroup) -> builtins.int: ...
+
+ def get_hadjustment(self) -> Adjustment: ...
+
+ def get_icon_size(self) -> builtins.int: ...
+
+ def get_style(self) -> ToolbarStyle: ... # type: ignore
+
+ def get_vadjustment(self) -> Adjustment: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_drag_source(self, targets: ToolPaletteDragTargets) -> None: ...
+
+ def set_exclusive(self, group: ToolItemGroup, exclusive: builtins.bool) -> None: ...
+
+ def set_expand(self, group: ToolItemGroup, expand: builtins.bool) -> None: ...
+
+ def set_group_position(self, group: ToolItemGroup, position: builtins.int) -> None: ...
+
+ def set_icon_size(self, icon_size: builtins.int) -> None: ...
+
+ def set_style(self, style: ToolbarStyle) -> None: ... # type: ignore
+
+ def unset_icon_size(self) -> None: ...
+
+ def unset_style(self) -> None: ...
+
+
+class Toolbar(Container, Orientable, ToolShell):
+ container: Container
+
+ def get_drop_index(self, x: builtins.int, y: builtins.int) -> builtins.int: ...
+
+ def get_icon_size(self) -> IconSize: ...
+
+ def get_item_index(self, item: ToolItem) -> builtins.int: ...
+
+ def get_n_items(self) -> builtins.int: ...
+
+ def get_nth_item(self, n: builtins.int) -> typing.Optional[ToolItem]: ...
+
+ def get_relief_style(self) -> ReliefStyle: ...
+
+ def get_show_arrow(self) -> builtins.bool: ...
+
+ def get_style(self) -> ToolbarStyle: ... # type: ignore
+
+ def insert(self, item: ToolItem, pos: builtins.int) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_drop_highlight_item(self, tool_item: typing.Optional[ToolItem], index_: builtins.int) -> None: ...
+
+ def set_icon_size(self, icon_size: IconSize) -> None: ...
+
+ def set_show_arrow(self, show_arrow: builtins.bool) -> None: ...
+
+ def set_style(self, style: ToolbarStyle) -> None: ... # type: ignore
+
+ def unset_icon_size(self) -> None: ...
+
+ def unset_style(self) -> None: ...
+
+ def do_orientation_changed(self, orientation: Orientation) -> None: ...
+
+ def do_popup_context_menu(self, x: builtins.int, y: builtins.int, button_number: builtins.int) -> builtins.bool: ...
+
+ def do_style_changed(self, style: ToolbarStyle) -> None: ...
+
+
+class TreeView(Container, Scrollable):
+ parent: Container
+
+ class _Props(Container._Props):
+ headers_visible: bool
+ model: typing.Optional[TreeModel]
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ headers_visible: bool = True,
+ model: typing.Optional[TreeModel] = None,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def append_column(self, column: TreeViewColumn) -> builtins.int: ...
+
+ def collapse_all(self) -> None: ...
+
+ def collapse_row(self, path: TreePath) -> builtins.bool: ...
+
+ def columns_autosize(self) -> None: ...
+
+ def convert_bin_window_to_tree_coords(self, bx: builtins.int, by: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def convert_bin_window_to_widget_coords(self, bx: builtins.int, by: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def convert_tree_to_bin_window_coords(self, tx: builtins.int, ty: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def convert_tree_to_widget_coords(self, tx: builtins.int, ty: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def convert_widget_to_bin_window_coords(self, wx: builtins.int, wy: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def convert_widget_to_tree_coords(self, wx: builtins.int, wy: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def create_row_drag_icon(self, path: TreePath) -> cairo.Surface: ...
+
+ def enable_model_drag_dest(self, targets: typing.Sequence[TargetEntry], actions: Gdk.DragAction) -> None: ...
+
+ def enable_model_drag_source(self, start_button_mask: Gdk.ModifierType, targets: typing.Sequence[TargetEntry], actions: Gdk.DragAction) -> None: ...
+
+ def expand_all(self) -> None: ...
+
+ def expand_row(self, path: TreePath, open_all: builtins.bool) -> builtins.bool: ...
+
+ def expand_to_path(self, path: TreePath) -> None: ...
+
+ def get_activate_on_single_click(self) -> builtins.bool: ...
+
+ def get_background_area(self, path: typing.Optional[TreePath], column: typing.Optional[TreeViewColumn]) -> Gdk.Rectangle: ...
+
+ def get_bin_window(self) -> typing.Optional[Gdk.Window]: ...
+
+ def get_cell_area(self, path: typing.Optional[TreePath], column: typing.Optional[TreeViewColumn]) -> Gdk.Rectangle: ...
+
+ def get_column(self, n: builtins.int) -> typing.Optional[TreeViewColumn]: ...
+
+ def get_columns(self) -> typing.Sequence[TreeViewColumn]: ...
+
+ def get_cursor(self) -> typing.Tuple[typing.Optional[TreePath], typing.Optional[TreeViewColumn]]: ...
+
+ def get_dest_row_at_pos(self, drag_x: builtins.int, drag_y: builtins.int) -> typing.Tuple[builtins.bool, typing.Optional[TreePath], TreeViewDropPosition]: ...
+
+ def get_drag_dest_row(self) -> typing.Tuple[typing.Optional[TreePath], TreeViewDropPosition]: ...
+
+ def get_enable_search(self) -> builtins.bool: ...
+
+ def get_enable_tree_lines(self) -> builtins.bool: ...
+
+ def get_expander_column(self) -> TreeViewColumn: ...
+
+ def get_fixed_height_mode(self) -> builtins.bool: ...
+
+ def get_grid_lines(self) -> TreeViewGridLines: ...
+
+ def get_hadjustment(self) -> Adjustment: ...
+
+ def get_headers_clickable(self) -> builtins.bool: ...
+
+ def get_headers_visible(self) -> builtins.bool: ...
+
+ def get_hover_expand(self) -> builtins.bool: ...
+
+ def get_hover_selection(self) -> builtins.bool: ...
+
+ def get_level_indentation(self) -> builtins.int: ...
+
+ def get_model(self) -> typing.Optional[TreeModel]: ...
+
+ def get_n_columns(self) -> builtins.int: ...
+
+ def get_path_at_pos(self, x: builtins.int, y: builtins.int) -> typing.Optional[typing.Tuple[typing.Optional[TreePath], typing.Optional[TreeViewColumn], builtins.int, builtins.int]]: ...
+
+ def get_reorderable(self) -> builtins.bool: ...
+
+ def get_rubber_banding(self) -> builtins.bool: ...
+
+ def get_rules_hint(self) -> builtins.bool: ...
+
+ def get_search_column(self) -> builtins.int: ...
+
+ def get_search_entry(self) -> Entry: ...
+
+ def get_selection(self) -> TreeSelection: ...
+
+ def get_show_expanders(self) -> builtins.bool: ...
+
+ def get_tooltip_column(self) -> builtins.int: ...
+
+ def get_tooltip_context(self, x: builtins.int, y: builtins.int, keyboard_tip: builtins.bool) -> typing.Tuple[builtins.bool, builtins.int, builtins.int, typing.Optional[TreeModel], TreePath, TreeIter]: ...
+
+ def get_vadjustment(self) -> Adjustment: ...
+
+ def get_visible_range(self) -> typing.Tuple[builtins.bool, TreePath, TreePath]: ...
+
+ def get_visible_rect(self) -> Gdk.Rectangle: ...
+
+ def insert_column(self, column: TreeViewColumn, position: builtins.int) -> builtins.int: ...
+
+ def insert_column_with_data_func(self, position: builtins.int, title: builtins.str, cell: CellRenderer, func: TreeCellDataFunc, *data: typing.Optional[builtins.object]) -> builtins.int: ...
+
+ def is_blank_at_pos(self, x: builtins.int, y: builtins.int) -> typing.Tuple[builtins.bool, typing.Optional[TreePath], typing.Optional[TreeViewColumn], builtins.int, builtins.int]: ...
+
+ def is_rubber_banding_active(self) -> builtins.bool: ...
+
+ def map_expanded_rows(self, func: TreeViewMappingFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def move_column_after(self, column: TreeViewColumn, base_column: typing.Optional[TreeViewColumn]) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_model(model: TreeModel) -> Widget: ...
+
+ def remove_column(self, column: TreeViewColumn) -> builtins.int: ...
+
+ def row_activated(self, path: TreePath, column: TreeViewColumn) -> None: ...
+
+ def row_expanded(self, path: TreePath) -> builtins.bool: ...
+
+ def scroll_to_cell(self, path: typing.Optional[TreePath], column: typing.Optional[TreeViewColumn], use_align: builtins.bool, row_align: builtins.float, col_align: builtins.float) -> None: ...
+
+ def scroll_to_point(self, tree_x: builtins.int, tree_y: builtins.int) -> None: ...
+
+ def set_activate_on_single_click(self, single: builtins.bool) -> None: ...
+
+ def set_column_drag_function(self, func: typing.Optional[TreeViewColumnDropFunc], *user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_cursor(self, path: typing.Union[TreePath, int, str], focus_column: typing.Optional[TreeViewColumn] = None, start_editing: bool = False) -> None: ...
+
+ def set_cursor_on_cell(self, path: TreePath, focus_column: typing.Optional[TreeViewColumn], focus_cell: typing.Optional[CellRenderer], start_editing: builtins.bool) -> None: ...
+
+ def set_destroy_count_func(self, func: typing.Optional[TreeDestroyCountFunc], *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_drag_dest_row(self, path: typing.Optional[TreePath], pos: TreeViewDropPosition) -> None: ...
+
+ def set_enable_search(self, enable_search: builtins.bool) -> None: ...
+
+ def set_enable_tree_lines(self, enabled: builtins.bool) -> None: ...
+
+ def set_expander_column(self, column: typing.Optional[TreeViewColumn]) -> None: ...
+
+ def set_fixed_height_mode(self, enable: builtins.bool) -> None: ...
+
+ def set_grid_lines(self, grid_lines: TreeViewGridLines) -> None: ...
+
+ def set_hadjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_headers_clickable(self, setting: builtins.bool) -> None: ...
+
+ def set_headers_visible(self, headers_visible: builtins.bool) -> None: ...
+
+ def set_hover_expand(self, expand: builtins.bool) -> None: ...
+
+ def set_hover_selection(self, hover: builtins.bool) -> None: ...
+
+ def set_level_indentation(self, indentation: builtins.int) -> None: ...
+
+ def set_model(self, model: typing.Optional[TreeModel]) -> None: ...
+
+ def set_reorderable(self, reorderable: builtins.bool) -> None: ...
+
+ def set_row_separator_func(self, func: typing.Optional[TreeViewRowSeparatorFunc], *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_rubber_banding(self, enable: builtins.bool) -> None: ...
+
+ def set_rules_hint(self, setting: builtins.bool) -> None: ...
+
+ def set_search_column(self, column: builtins.int) -> None: ...
+
+ def set_search_entry(self, entry: typing.Optional[Entry]) -> None: ...
+
+ def set_search_equal_func(self, search_equal_func: typing.Callable[[TreeModel, int, str, TreeIter], bool], *search_user_data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_search_position_func(self, func: typing.Optional[TreeViewSearchPositionFunc], *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_show_expanders(self, enabled: builtins.bool) -> None: ...
+
+ def set_tooltip_cell(self, tooltip: Tooltip, path: typing.Optional[TreePath], column: typing.Optional[TreeViewColumn], cell: typing.Optional[CellRenderer]) -> None: ...
+
+ def set_tooltip_column(self, column: builtins.int) -> None: ...
+
+ def set_tooltip_row(self, tooltip: Tooltip, path: TreePath) -> None: ...
+
+ def set_vadjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def unset_rows_drag_dest(self) -> None: ...
+
+ def unset_rows_drag_source(self) -> None: ...
+
+ def do_columns_changed(self) -> None: ...
+
+ def do_cursor_changed(self) -> None: ...
+
+ def do_expand_collapse_cursor_row(self, logical: builtins.bool, expand: builtins.bool, open_all: builtins.bool) -> builtins.bool: ...
+
+ def do_move_cursor(self, step: MovementStep, count: builtins.int) -> builtins.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: ...
+
+ def do_select_all(self) -> builtins.bool: ...
+
+ def do_select_cursor_parent(self) -> builtins.bool: ...
+
+ def do_select_cursor_row(self, start_editing: builtins.bool) -> builtins.bool: ...
+
+ def do_start_interactive_search(self) -> builtins.bool: ...
+
+ def do_test_collapse_row(self, iter: TreeIter, path: TreePath) -> builtins.bool: ...
+
+ def do_test_expand_row(self, iter: TreeIter, path: TreePath) -> builtins.bool: ...
+
+ def do_toggle_cursor_row(self) -> builtins.bool: ...
+
+ def do_unselect_all(self) -> builtins.bool: ...
+
+
+class SearchEntry(Entry):
+ parent: Entry
+
+ def handle_event(self, event: Gdk.Event) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def do_next_match(self) -> None: ...
+
+ def do_previous_match(self) -> None: ...
+
+ def do_search_changed(self) -> None: ...
+
+ def do_stop_search(self) -> None: ...
+
+
+class SpinButton(Entry, Orientable):
+ entry: Entry
+
+ class _Props(Entry._Props):
+ numeric: bool
+ value: float
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ numeric: bool = False,
+ value: float = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ # Orientable
+ orientation: Orientation = Orientation.HORIZONTAL,
+ ) -> None: ...
+
+ def configure(self, adjustment: typing.Optional[Adjustment], climb_rate: builtins.float, digits: builtins.int) -> None: ...
+
+ def get_adjustment(self) -> Adjustment: ...
+
+ def get_digits(self) -> builtins.int: ...
+
+ def get_increments(self) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def get_numeric(self) -> builtins.bool: ...
+
+ def get_range(self) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def get_snap_to_ticks(self) -> builtins.bool: ...
+
+ def get_update_policy(self) -> SpinButtonUpdatePolicy: ...
+
+ def get_value(self) -> builtins.float: ...
+
+ def get_value_as_int(self) -> builtins.int: ...
+
+ def get_wrap(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(adjustment: typing.Optional[Adjustment], climb_rate: builtins.float, digits: builtins.int) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_with_range(min: builtins.float, max: builtins.float, step: builtins.float) -> Widget: ...
+
+ def set_adjustment(self, adjustment: Adjustment) -> None: ...
+
+ def set_digits(self, digits: builtins.int) -> None: ...
+
+ def set_increments(self, step: builtins.float, page: builtins.float) -> None: ...
+
+ def set_numeric(self, numeric: builtins.bool) -> None: ...
+
+ def set_range(self, min: builtins.float, max: builtins.float) -> None: ...
+
+ def set_snap_to_ticks(self, snap_to_ticks: builtins.bool) -> None: ...
+
+ def set_update_policy(self, policy: SpinButtonUpdatePolicy) -> None: ...
+
+ def set_value(self, value: builtins.float) -> None: ...
+
+ def set_wrap(self, wrap: builtins.bool) -> None: ...
+
+ def spin(self, direction: SpinType, increment: builtins.float) -> None: ...
+
+ def update(self) -> None: ...
+
+ def do_change_value(self, scroll: ScrollType) -> None: ...
+
+ def do_input(self, new_value: builtins.float) -> builtins.int: ...
+
+ def do_output(self) -> builtins.int: ...
+
+ def do_value_changed(self) -> None: ...
+
+ def do_wrapped(self) -> None: ...
+
+
+class Arrow(Misc):
+ misc: Misc
+
+ @staticmethod
+ def new(arrow_type: ArrowType, shadow_type: ShadowType) -> Widget: ...
+
+ def set(self, arrow_type: ArrowType, shadow_type: ShadowType) -> None: ...
+
+
+class Image(Misc):
+ misc: Misc
+
+ class _Props(Misc._Props):
+ icon_name: typing.Optional[str]
+ pixel_size: int
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ icon_name: typing.Optional[str] = None,
+ pixel_size: int = -1,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def clear(self) -> None: ...
+
+ def get_animation(self) -> typing.Optional[GdkPixbuf.PixbufAnimation]: ...
+
+ def get_gicon(self) -> typing.Tuple[Gio.Icon, builtins.int]: ...
+
+ def get_icon_name(self) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def get_icon_set(self) -> typing.Tuple[IconSet, builtins.int]: ...
+
+ def get_pixbuf(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_pixel_size(self) -> builtins.int: ...
+
+ def get_stock(self) -> typing.Tuple[builtins.str, builtins.int]: ...
+
+ def get_storage_type(self) -> ImageType: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_from_animation(animation: GdkPixbuf.PixbufAnimation) -> Widget: ...
+
+ @staticmethod
+ def new_from_file(filename: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_from_gicon(icon: Gio.Icon, size: builtins.int) -> Widget: ...
+
+ @staticmethod
+ def new_from_icon_name(icon_name: typing.Optional[builtins.str], size: builtins.int) -> Widget: ...
+
+ @staticmethod
+ def new_from_icon_set(icon_set: IconSet, size: builtins.int) -> Widget: ...
+
+ @staticmethod
+ def new_from_pixbuf(pixbuf: typing.Optional[GdkPixbuf.Pixbuf]) -> Widget: ...
+
+ @staticmethod
+ def new_from_resource(resource_path: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_from_stock(stock_id: builtins.str, size: builtins.int) -> Widget: ...
+
+ @staticmethod
+ def new_from_surface(surface: typing.Optional[cairo.Surface]) -> Widget: ...
+
+ def set_from_animation(self, animation: GdkPixbuf.PixbufAnimation) -> None: ...
+
+ def set_from_file(self, filename: typing.Optional[builtins.str]) -> None: ...
+
+ def set_from_gicon(self, icon: Gio.Icon, size: builtins.int) -> None: ...
+
+ def set_from_icon_name(self, icon_name: typing.Optional[builtins.str], size: builtins.int) -> None: ...
+
+ def set_from_icon_set(self, icon_set: IconSet, size: builtins.int) -> None: ...
+
+ def set_from_pixbuf(self, pixbuf: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_from_resource(self, resource_path: typing.Optional[builtins.str]) -> None: ...
+
+ def set_from_stock(self, stock_id: builtins.str, size: builtins.int) -> None: ...
+
+ def set_from_surface(self, surface: typing.Optional[cairo.Surface]) -> None: ...
+
+ def set_pixel_size(self, pixel_size: builtins.int) -> None: ...
+
+
+class Label(Misc):
+ misc: Misc
+
+ class _Props(Misc._Props):
+ ellipsize: Pango.EllipsizeMode
+ label: str
+ selectable: bool
+ single_line_mode: bool
+ use_markup: bool
+ wrap: bool
+ xalign: float
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ ellipsize: Pango.EllipsizeMode = Pango.EllipsizeMode.NONE,
+ label: str = "",
+ selectable: bool = False,
+ single_line_mode: bool = False,
+ use_markup: bool = False,
+ wrap: bool = False,
+ xalign: float = 0.5,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_angle(self) -> builtins.float: ...
+
+ def get_attributes(self) -> typing.Optional[Pango.AttrList]: ...
+
+ def get_current_uri(self) -> builtins.str: ...
+
+ def get_ellipsize(self) -> Pango.EllipsizeMode: ...
+
+ def get_justify(self) -> Justification: ...
+
+ def get_label(self) -> builtins.str: ...
+
+ def get_layout(self) -> Pango.Layout: ...
+
+ def get_layout_offsets(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_line_wrap(self) -> builtins.bool: ...
+
+ def get_line_wrap_mode(self) -> Pango.WrapMode: ...
+
+ def get_lines(self) -> builtins.int: ...
+
+ def get_max_width_chars(self) -> builtins.int: ...
+
+ def get_mnemonic_keyval(self) -> builtins.int: ...
+
+ def get_mnemonic_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_selectable(self) -> builtins.bool: ...
+
+ def get_selection_bounds(self) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ def get_single_line_mode(self) -> builtins.bool: ...
+
+ def get_text(self) -> builtins.str: ...
+
+ def get_track_visited_links(self) -> builtins.bool: ...
+
+ def get_use_markup(self) -> builtins.bool: ...
+
+ def get_use_underline(self) -> builtins.bool: ...
+
+ def get_width_chars(self) -> builtins.int: ...
+
+ def get_xalign(self) -> builtins.float: ...
+
+ def get_yalign(self) -> builtins.float: ...
+
+ @staticmethod
+ def new(str: typing.Optional[builtins.str]) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(str: typing.Optional[builtins.str]) -> Widget: ...
+
+ def select_region(self, start_offset: builtins.int, end_offset: builtins.int) -> None: ...
+
+ def set_angle(self, angle: builtins.float) -> None: ...
+
+ def set_attributes(self, attrs: typing.Optional[Pango.AttrList]) -> None: ...
+
+ def set_ellipsize(self, mode: Pango.EllipsizeMode) -> None: ...
+
+ def set_justify(self, jtype: Justification) -> None: ...
+
+ def set_label(self, str: builtins.str) -> None: ...
+
+ def set_line_wrap(self, wrap: builtins.bool) -> None: ...
+
+ def set_line_wrap_mode(self, wrap_mode: Pango.WrapMode) -> None: ...
+
+ def set_lines(self, lines: builtins.int) -> None: ...
+
+ def set_markup(self, str: builtins.str) -> None: ...
+
+ def set_markup_with_mnemonic(self, str: builtins.str) -> None: ...
+
+ def set_max_width_chars(self, n_chars: builtins.int) -> None: ...
+
+ def set_mnemonic_widget(self, widget: typing.Optional[Widget]) -> None: ...
+
+ def set_pattern(self, pattern: builtins.str) -> None: ...
+
+ def set_selectable(self, setting: builtins.bool) -> None: ...
+
+ def set_single_line_mode(self, single_line_mode: builtins.bool) -> None: ...
+
+ def set_text(self, str: builtins.str) -> None: ...
+
+ def set_text_with_mnemonic(self, str: builtins.str) -> None: ...
+
+ def set_track_visited_links(self, track_links: builtins.bool) -> None: ...
+
+ def set_use_markup(self, setting: builtins.bool) -> None: ...
+
+ def set_use_underline(self, setting: builtins.bool) -> None: ...
+
+ def set_width_chars(self, n_chars: builtins.int) -> None: ...
+
+ def set_xalign(self, xalign: builtins.float) -> None: ...
+
+ def set_yalign(self, yalign: builtins.float) -> None: ...
+
+ def do_activate_link(self, uri: builtins.str) -> builtins.bool: ...
+
+ def do_copy_clipboard(self) -> None: ...
+
+ def do_move_cursor(self, step: MovementStep, count: builtins.int, extend_selection: builtins.bool) -> None: ...
+
+ def do_populate_popup(self, menu: Menu) -> None: ...
+
+
+class Scale(Range):
+ range: Range
+
+ def add_mark(self, value: builtins.float, position: PositionType, markup: typing.Optional[builtins.str]) -> None: ...
+
+ def clear_marks(self) -> None: ...
+
+ def get_digits(self) -> builtins.int: ...
+
+ def get_draw_value(self) -> builtins.bool: ...
+
+ def get_has_origin(self) -> builtins.bool: ...
+
+ def get_layout(self) -> typing.Optional[Pango.Layout]: ...
+
+ def get_layout_offsets(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_value_pos(self) -> PositionType: ...
+
+ @staticmethod
+ def new(orientation: Orientation, adjustment: typing.Optional[Adjustment]) -> Widget: ...
+
+ @staticmethod
+ def new_with_range(orientation: Orientation, min: builtins.float, max: builtins.float, step: builtins.float) -> Widget: ...
+
+ def set_digits(self, digits: builtins.int) -> None: ...
+
+ def set_draw_value(self, draw_value: builtins.bool) -> None: ...
+
+ def set_has_origin(self, has_origin: builtins.bool) -> None: ...
+
+ def set_value_pos(self, pos: PositionType) -> None: ...
+
+ def do_draw_value(self) -> None: ...
+
+ def do_format_value(self, value: builtins.float) -> builtins.str: ...
+
+ def do_get_layout_offsets(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+class Scrollbar(Range):
+ range: Range
+
+ @staticmethod
+ def new(orientation: Orientation, adjustment: typing.Optional[Adjustment]) -> Widget: ...
+
+
+class HSeparator(Separator):
+ separator: Separator
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class VSeparator(Separator):
+ separator: Separator
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class GestureDrag(GestureSingle):
+
+ def get_offset(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ def get_start_point(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ @staticmethod
+ def new(widget: Widget) -> Gesture: ...
+
+
+class GestureLongPress(GestureSingle):
+
+ @staticmethod
+ def new(widget: Widget) -> Gesture: ...
+
+
+class GestureMultiPress(GestureSingle):
+
+ def get_area(self) -> typing.Tuple[builtins.bool, Gdk.Rectangle]: ...
+
+ @staticmethod
+ def new(widget: Widget) -> Gesture: ...
+
+ def set_area(self, rect: typing.Optional[Gdk.Rectangle]) -> None: ...
+
+
+class GestureStylus(GestureSingle):
+
+ def get_axes(self, axes: typing.Sequence[Gdk.AxisUse]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.float]]: ...
+
+ def get_axis(self, axis: Gdk.AxisUse) -> typing.Tuple[builtins.bool, builtins.float]: ...
+
+ def get_device_tool(self) -> typing.Optional[Gdk.DeviceTool]: ...
+
+ @staticmethod
+ def new(widget: Widget) -> Gesture: ...
+
+
+class GestureSwipe(GestureSingle):
+
+ def get_velocity(self) -> typing.Tuple[builtins.bool, builtins.float, builtins.float]: ...
+
+ @staticmethod
+ def new(widget: Widget) -> Gesture: ...
+
+
+class LinkButtonAccessible(ButtonAccessible, Atk.HyperlinkImpl): # type: ignore
+ parent: ButtonAccessible
+
+
+class LockButtonAccessible(ButtonAccessible):
+ parent: ButtonAccessible
+
+
+class ScaleButtonAccessible(ButtonAccessible, Atk.Value): # type: ignore
+ parent: ButtonAccessible
+
+
+class ToggleButtonAccessible(ButtonAccessible):
+ parent: ButtonAccessible
+
+
+class CheckMenuItemAccessible(MenuItemAccessible):
+ parent: MenuItemAccessible
+
+
+class MenuAccessible(MenuShellAccessible):
+ parent: MenuShellAccessible
+
+
+class ActionBar(Bin):
+ bin: Bin
+
+ def get_center_widget(self) -> typing.Optional[Widget]: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def pack_end(self, child: Widget) -> None: ...
+
+ def pack_start(self, child: Widget) -> None: ...
+
+ def set_center_widget(self, center_widget: typing.Optional[Widget]) -> None: ...
+
+
+class Alignment(Bin):
+ bin: Bin
+
+ def get_padding(self) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def new(xalign: builtins.float, yalign: builtins.float, xscale: builtins.float, yscale: builtins.float) -> Widget: ...
+
+ def set(self, xalign: builtins.float, yalign: builtins.float, xscale: builtins.float, yscale: builtins.float) -> None: ...
+
+ def set_padding(self, padding_top: builtins.int, padding_bottom: builtins.int, padding_left: builtins.int, padding_right: builtins.int) -> None: ...
+
+
+class Button(Bin, Actionable, Activatable):
+ bin: Bin
+
+ class _Props(Bin._Props):
+ image: typing.Optional[Widget]
+ label: typing.Optional[str]
+ relief: ReliefStyle
+ use_underline: bool
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ image: typing.Optional[Widget] = None,
+ label: typing.Optional[str] = None,
+ relief: ReliefStyle = ReliefStyle.NORMAL,
+ use_underline: bool = False,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def clicked(self) -> None: ...
+
+ def enter(self) -> None: ...
+
+ def get_alignment(self) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def get_always_show_image(self) -> builtins.bool: ...
+
+ def get_event_window(self) -> Gdk.Window: ...
+
+ def get_focus_on_click(self) -> builtins.bool: ...
+
+ def get_image(self) -> typing.Optional[Widget]: ...
+
+ def get_image_position(self) -> PositionType: ...
+
+ def get_label(self) -> builtins.str: ...
+
+ def get_relief(self) -> ReliefStyle: ...
+
+ def get_use_stock(self) -> builtins.bool: ...
+
+ def get_use_underline(self) -> builtins.bool: ...
+
+ def leave(self) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_from_icon_name(icon_name: typing.Optional[builtins.str], size: builtins.int) -> Widget: ...
+
+ @staticmethod
+ def new_from_stock(stock_id: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_label(label: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(label: builtins.str) -> Widget: ...
+
+ def pressed(self) -> None: ...
+
+ def released(self) -> None: ...
+
+ def set_alignment(self, xalign: builtins.float, yalign: builtins.float) -> None: ...
+
+ def set_always_show_image(self, always_show: builtins.bool) -> None: ...
+
+ def set_focus_on_click(self, focus_on_click: builtins.bool) -> None: ...
+
+ def set_image(self, image: typing.Optional[Widget]) -> None: ...
+
+ def set_image_position(self, position: PositionType) -> None: ...
+
+ def set_label(self, label: builtins.str) -> None: ...
+
+ def set_relief(self, relief: ReliefStyle) -> None: ...
+
+ def set_use_stock(self, use_stock: builtins.bool) -> None: ...
+
+ def set_use_underline(self, use_underline: builtins.bool) -> None: ...
+
+ def do_activate(self) -> None: ...
+
+ def do_clicked(self) -> None: ...
+
+ def do_enter(self) -> None: ...
+
+ def do_leave(self) -> None: ...
+
+ def do_pressed(self) -> None: ...
+
+ def do_released(self) -> None: ...
+
+
+class ComboBox(Bin, CellEditable, CellLayout):
+ parent_instance: Bin
+
+ class _Props(Bin._Props):
+ model: TreeModel
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ model: TreeModel,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_active(self) -> builtins.int: ...
+
+ def get_active_id(self) -> typing.Optional[builtins.str]: ...
+
+ def get_active_iter(self) -> typing.Optional[TreeIter]: ...
+
+ def get_add_tearoffs(self) -> builtins.bool: ...
+
+ def get_button_sensitivity(self) -> SensitivityType: ...
+
+ def get_column_span_column(self) -> builtins.int: ...
+
+ def get_entry_text_column(self) -> builtins.int: ...
+
+ def get_focus_on_click(self) -> builtins.bool: ...
+
+ def get_has_entry(self) -> builtins.bool: ...
+
+ def get_id_column(self) -> builtins.int: ...
+
+ def get_model(self) -> TreeModel: ...
+
+ def get_popup_accessible(self) -> Atk.Object: ...
+
+ def get_popup_fixed_width(self) -> builtins.bool: ...
+
+ def get_row_span_column(self) -> builtins.int: ...
+
+ def get_title(self) -> builtins.str: ...
+
+ def get_wrap_width(self) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_area(area: CellArea) -> Widget: ...
+
+ @staticmethod
+ def new_with_area_and_entry(area: CellArea) -> Widget: ...
+
+ @staticmethod
+ def new_with_entry() -> Widget: ...
+
+ @staticmethod
+ def new_with_model(model: TreeModel) -> Widget: ...
+
+ @staticmethod
+ def new_with_model_and_entry(model: TreeModel) -> Widget: ...
+
+ def popdown(self) -> None: ...
+
+ def popup(self) -> None: ...
+
+ def popup_for_device(self, device: Gdk.Device) -> None: ...
+
+ def set_active(self, index_: builtins.int) -> None: ...
+
+ def set_active_id(self, active_id: typing.Optional[builtins.str]) -> builtins.bool: ...
+
+ def set_active_iter(self, iter: typing.Optional[TreeIter]) -> None: ...
+
+ def set_add_tearoffs(self, add_tearoffs: builtins.bool) -> None: ...
+
+ def set_button_sensitivity(self, sensitivity: SensitivityType) -> None: ...
+
+ def set_column_span_column(self, column_span: builtins.int) -> None: ...
+
+ def set_entry_text_column(self, text_column: builtins.int) -> None: ...
+
+ def set_focus_on_click(self, focus_on_click: builtins.bool) -> None: ...
+
+ def set_id_column(self, id_column: builtins.int) -> None: ...
+
+ def set_model(self, model: typing.Optional[TreeModel]) -> None: ...
+
+ def set_popup_fixed_width(self, fixed: builtins.bool) -> None: ...
+
+ def set_row_separator_func(self, func: TreeViewRowSeparatorFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_row_span_column(self, row_span: builtins.int) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_wrap_width(self, width: builtins.int) -> None: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_format_entry_text(self, path: builtins.str) -> builtins.str: ...
+
+
+class EventBox(Bin):
+ bin: Bin
+
+ def get_above_child(self) -> builtins.bool: ...
+
+ def get_visible_window(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_above_child(self, above_child: builtins.bool) -> None: ...
+
+ def set_visible_window(self, visible_window: builtins.bool) -> None: ...
+
+
+class Expander(Bin):
+ bin: Bin
+
+ def __init__(self,
+ *,
+ label_widget: typing.Optional[Widget] = None,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_expanded(self) -> builtins.bool: ...
+
+ def get_label(self) -> typing.Optional[builtins.str]: ...
+
+ def get_label_fill(self) -> builtins.bool: ...
+
+ def get_label_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_resize_toplevel(self) -> builtins.bool: ...
+
+ def get_spacing(self) -> builtins.int: ...
+
+ def get_use_markup(self) -> builtins.bool: ...
+
+ def get_use_underline(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(label: typing.Optional[builtins.str]) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(label: typing.Optional[builtins.str]) -> Widget: ...
+
+ def set_expanded(self, expanded: builtins.bool) -> None: ...
+
+ def set_label(self, label: typing.Optional[builtins.str]) -> None: ...
+
+ def set_label_fill(self, label_fill: builtins.bool) -> None: ...
+
+ def set_label_widget(self, label_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_resize_toplevel(self, resize_toplevel: builtins.bool) -> None: ...
+
+ def set_spacing(self, spacing: builtins.int) -> None: ...
+
+ def set_use_markup(self, use_markup: builtins.bool) -> None: ...
+
+ def set_use_underline(self, use_underline: builtins.bool) -> None: ...
+
+ def do_activate(self) -> None: ...
+
+
+class FlowBoxChild(Bin):
+ parent_instance: Bin
+
+ def changed(self) -> None: ...
+
+ def get_index(self) -> builtins.int: ...
+
+ def is_selected(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def do_activate(self) -> None: ...
+
+
+class Frame(Bin):
+ bin: Bin
+
+ def get_label(self) -> typing.Optional[builtins.str]: ...
+
+ def get_label_align(self) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def get_label_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_shadow_type(self) -> ShadowType: ...
+
+ @staticmethod
+ def new(label: typing.Optional[builtins.str]) -> Widget: ...
+
+ def set_label(self, label: typing.Optional[builtins.str]) -> None: ...
+
+ def set_label_align(self, xalign: builtins.float, yalign: builtins.float) -> None: ...
+
+ def set_label_widget(self, label_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_shadow_type(self, type: ShadowType) -> None: ...
+
+ def do_compute_child_allocation(self, allocation: Gdk.Rectangle) -> None: ...
+
+
+class HandleBox(Bin):
+ bin: Bin
+
+ def get_child_detached(self) -> builtins.bool: ...
+
+ def get_handle_position(self) -> PositionType: ...
+
+ def get_shadow_type(self) -> ShadowType: ...
+
+ def get_snap_edge(self) -> PositionType: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ 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 do_child_attached(self, child: Widget) -> None: ...
+
+ def do_child_detached(self, child: Widget) -> None: ...
+
+
+class ListBoxRow(Bin, Actionable):
+ parent_instance: Bin
+
+ def changed(self) -> None: ...
+
+ def get_activatable(self) -> builtins.bool: ...
+
+ def get_header(self) -> typing.Optional[Widget]: ...
+
+ def get_index(self) -> builtins.int: ...
+
+ def get_selectable(self) -> builtins.bool: ...
+
+ def is_selected(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_activatable(self, activatable: builtins.bool) -> None: ...
+
+ def set_header(self, header: typing.Optional[Widget]) -> None: ...
+
+ def set_selectable(self, selectable: builtins.bool) -> None: ...
+
+ def do_activate(self) -> None: ...
+
+
+class MenuItem(Bin, Actionable, Activatable):
+ bin: Bin
+
+ def activate(self) -> None: ... # type: ignore
+
+ def deselect(self) -> None: ...
+
+ def get_accel_path(self) -> typing.Optional[builtins.str]: ...
+
+ def get_label(self) -> builtins.str: ...
+
+ def get_reserve_indicator(self) -> builtins.bool: ...
+
+ def get_right_justified(self) -> builtins.bool: ...
+
+ def get_submenu(self) -> typing.Optional[Widget]: ...
+
+ def get_use_underline(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_label(label: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(label: builtins.str) -> MenuItem: ...
+
+ def select(self) -> None: ...
+
+ def set_accel_path(self, accel_path: typing.Optional[builtins.str]) -> None: ... # type: ignore
+
+ def set_label(self, label: builtins.str) -> None: ...
+
+ def set_reserve_indicator(self, reserve: builtins.bool) -> None: ...
+
+ def set_right_justified(self, right_justified: builtins.bool) -> None: ...
+
+ def set_submenu(self, submenu: typing.Optional[Menu]) -> None: ...
+
+ def set_use_underline(self, setting: builtins.bool) -> None: ...
+
+ def toggle_size_allocate(self, allocation: builtins.int) -> None: ...
+
+ def toggle_size_request(self, requisition: builtins.int) -> builtins.int: ...
+
+ def do_activate(self) -> None: ...
+
+ def do_activate_item(self) -> None: ...
+
+ def do_deselect(self) -> None: ...
+
+ def do_get_label(self) -> builtins.str: ...
+
+ def do_select(self) -> None: ...
+
+ def do_set_label(self, label: builtins.str) -> None: ...
+
+ def do_toggle_size_allocate(self, allocation: builtins.int) -> None: ...
+
+ def do_toggle_size_request(self, requisition: builtins.int) -> builtins.int: ...
+
+
+class Overlay(Bin):
+ parent: Bin
+
+ def add_overlay(self, widget: Widget) -> None: ...
+
+ def get_overlay_pass_through(self, widget: Widget) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def reorder_overlay(self, child: Widget, index_: builtins.int) -> None: ...
+
+ def set_overlay_pass_through(self, widget: Widget, pass_through: builtins.bool) -> None: ...
+
+ def do_get_child_position(self, widget: Widget, allocation: Gdk.Rectangle) -> builtins.bool: ...
+
+
+class Popover(Bin):
+ parent_instance: Bin
+
+ def bind_model(self, model: typing.Optional[Gio.MenuModel], action_namespace: typing.Optional[builtins.str]) -> None: ...
+
+ def get_constrain_to(self) -> PopoverConstraint: ...
+
+ def get_default_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_modal(self) -> builtins.bool: ...
+
+ def get_pointing_to(self) -> typing.Tuple[builtins.bool, Gdk.Rectangle]: ...
+
+ def get_position(self) -> PositionType: ...
+
+ def get_relative_to(self) -> Widget: ...
+
+ def get_transitions_enabled(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(relative_to: typing.Optional[Widget]) -> Widget: ...
+
+ @staticmethod
+ def new_from_model(relative_to: typing.Optional[Widget], model: Gio.MenuModel) -> Widget: ...
+
+ def popdown(self) -> None: ...
+
+ def popup(self) -> None: ...
+
+ def set_constrain_to(self, constraint: PopoverConstraint) -> None: ...
+
+ def set_default_widget(self, widget: typing.Optional[Widget]) -> None: ...
+
+ def set_modal(self, modal: builtins.bool) -> None: ...
+
+ def set_pointing_to(self, rect: Gdk.Rectangle) -> None: ...
+
+ def set_position(self, position: PositionType) -> None: ...
+
+ def set_relative_to(self, relative_to: typing.Optional[Widget]) -> None: ...
+
+ def set_transitions_enabled(self, transitions_enabled: builtins.bool) -> None: ...
+
+ def do_closed(self) -> None: ...
+
+
+class Revealer(Bin):
+ parent_instance: Bin
+
+ def get_child_revealed(self) -> builtins.bool: ...
+
+ def get_reveal_child(self) -> builtins.bool: ...
+
+ def get_transition_duration(self) -> builtins.int: ...
+
+ def get_transition_type(self) -> RevealerTransitionType: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_reveal_child(self, reveal_child: builtins.bool) -> None: ...
+
+ def set_transition_duration(self, duration: builtins.int) -> None: ...
+
+ def set_transition_type(self, transition: RevealerTransitionType) -> None: ...
+
+
+class ScrolledWindow(Bin):
+ container: Bin
+
+ class _Props(Bin._Props):
+ hscrollbar_policy: PolicyType
+ overlay_scrolling: bool
+ shadow_type: ShadowType
+ vscrollbar_policy: PolicyType
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ hscrollbar_policy: PolicyType = PolicyType.AUTOMATIC,
+ overlay_scrolling: bool = True,
+ shadow_type: ShadowType = ShadowType.NONE,
+ vscrollbar_policy: PolicyType = PolicyType.AUTOMATIC,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def add_with_viewport(self, child: Widget) -> None: ...
+
+ def get_capture_button_press(self) -> builtins.bool: ...
+
+ def get_hadjustment(self) -> Adjustment: ...
+
+ def get_hscrollbar(self) -> Widget: ...
+
+ def get_kinetic_scrolling(self) -> builtins.bool: ...
+
+ def get_max_content_height(self) -> builtins.int: ...
+
+ def get_max_content_width(self) -> builtins.int: ...
+
+ def get_min_content_height(self) -> builtins.int: ...
+
+ def get_min_content_width(self) -> builtins.int: ...
+
+ def get_overlay_scrolling(self) -> builtins.bool: ...
+
+ def get_placement(self) -> CornerType: ...
+
+ def get_policy(self) -> typing.Tuple[PolicyType, PolicyType]: ...
+
+ def get_propagate_natural_height(self) -> builtins.bool: ...
+
+ def get_propagate_natural_width(self) -> builtins.bool: ...
+
+ def get_shadow_type(self) -> ShadowType: ...
+
+ def get_vadjustment(self) -> Adjustment: ...
+
+ def get_vscrollbar(self) -> Widget: ...
+
+ @staticmethod
+ def new(hadjustment: typing.Optional[Adjustment], vadjustment: typing.Optional[Adjustment]) -> Widget: ...
+
+ def set_capture_button_press(self, capture_button_press: builtins.bool) -> None: ...
+
+ def set_hadjustment(self, hadjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_kinetic_scrolling(self, kinetic_scrolling: builtins.bool) -> None: ...
+
+ def set_max_content_height(self, height: builtins.int) -> None: ...
+
+ def set_max_content_width(self, width: builtins.int) -> None: ...
+
+ def set_min_content_height(self, height: builtins.int) -> None: ...
+
+ def set_min_content_width(self, width: builtins.int) -> None: ...
+
+ def set_overlay_scrolling(self, overlay_scrolling: builtins.bool) -> None: ...
+
+ def set_placement(self, window_placement: CornerType) -> None: ...
+
+ def set_policy(self, hscrollbar_policy: PolicyType, vscrollbar_policy: PolicyType) -> None: ...
+
+ def set_propagate_natural_height(self, propagate: builtins.bool) -> None: ...
+
+ def set_propagate_natural_width(self, propagate: builtins.bool) -> None: ...
+
+ def set_shadow_type(self, type: ShadowType) -> None: ...
+
+ def set_vadjustment(self, vadjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def unset_placement(self) -> None: ...
+
+ def do_move_focus_out(self, direction: DirectionType) -> None: ...
+
+ def do_scroll_child(self, scroll: ScrollType, horizontal: builtins.bool) -> builtins.bool: ...
+
+
+class SearchBar(Bin):
+ parent: Bin
+
+ def connect_entry(self, entry: Entry) -> None: ...
+
+ def get_search_mode(self) -> builtins.bool: ...
+
+ def get_show_close_button(self) -> builtins.bool: ...
+
+ def handle_event(self, event: Gdk.Event) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_search_mode(self, search_mode: builtins.bool) -> None: ...
+
+ def set_show_close_button(self, visible: builtins.bool) -> None: ...
+
+
+class StackSidebar(Bin):
+ parent: Bin
+
+ def get_stack(self) -> typing.Optional[Stack]: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_stack(self, stack: Stack) -> None: ...
+
+
+class ToolItem(Bin, Activatable):
+ parent: Bin
+
+ def get_ellipsize_mode(self) -> Pango.EllipsizeMode: ...
+
+ def get_expand(self) -> builtins.bool: ...
+
+ def get_homogeneous(self) -> builtins.bool: ...
+
+ def get_icon_size(self) -> builtins.int: ...
+
+ def get_is_important(self) -> builtins.bool: ...
+
+ def get_orientation(self) -> Orientation: ...
+
+ def get_proxy_menu_item(self, menu_item_id: builtins.str) -> typing.Optional[Widget]: ...
+
+ def get_relief_style(self) -> ReliefStyle: ...
+
+ def get_text_alignment(self) -> builtins.float: ...
+
+ def get_text_orientation(self) -> Orientation: ...
+
+ def get_text_size_group(self) -> SizeGroup: ...
+
+ def get_toolbar_style(self) -> ToolbarStyle: ...
+
+ def get_use_drag_window(self) -> builtins.bool: ...
+
+ def get_visible_horizontal(self) -> builtins.bool: ...
+
+ def get_visible_vertical(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> ToolItem: ...
+
+ def rebuild_menu(self) -> None: ...
+
+ def retrieve_proxy_menu_item(self) -> Widget: ...
+
+ def set_expand(self, expand: builtins.bool) -> None: ...
+
+ def set_homogeneous(self, homogeneous: builtins.bool) -> None: ...
+
+ def set_is_important(self, is_important: builtins.bool) -> None: ...
+
+ def set_proxy_menu_item(self, menu_item_id: builtins.str, menu_item: typing.Optional[Widget]) -> None: ...
+
+ def set_tooltip_markup(self, markup: builtins.str) -> None: ... # type: ignore
+
+ def set_tooltip_text(self, text: builtins.str) -> None: ... # type: ignore
+
+ def set_use_drag_window(self, use_drag_window: builtins.bool) -> None: ...
+
+ def set_visible_horizontal(self, visible_horizontal: builtins.bool) -> None: ...
+
+ def set_visible_vertical(self, visible_vertical: builtins.bool) -> None: ...
+
+ def toolbar_reconfigured(self) -> None: ...
+
+ def do_create_menu_proxy(self) -> builtins.bool: ...
+
+ def do_toolbar_reconfigured(self) -> None: ...
+
+
+class Viewport(Bin, Scrollable):
+ bin: Bin
+
+ def __init__(self,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_bin_window(self) -> Gdk.Window: ...
+
+ def get_hadjustment(self) -> Adjustment: ...
+
+ def get_shadow_type(self) -> ShadowType: ...
+
+ def get_vadjustment(self) -> Adjustment: ...
+
+ def get_view_window(self) -> Gdk.Window: ...
+
+ @staticmethod
+ def new(hadjustment: typing.Optional[Adjustment], vadjustment: typing.Optional[Adjustment]) -> Widget: ...
+
+ def set_hadjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+ def set_shadow_type(self, type: ShadowType) -> None: ...
+
+ def set_vadjustment(self, adjustment: typing.Optional[Adjustment]) -> None: ...
+
+
+class Window(Bin):
+ bin: Bin
+
+ class _Props(Bin._Props):
+ application: typing.Optional[Application]
+ default_height: int
+ default_width: int
+ icon_name: typing.Optional[str]
+ modal: bool
+ resizable: bool
+ skip_taskbar_hint: bool
+ title: typing.Optional[str]
+ type_hint: Gdk.WindowTypeHint
+ window_position: WindowPosition
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ application: typing.Optional[Application] = None,
+ default_height: int = -1,
+ default_width: int = -1,
+ icon_name: typing.Optional[str] = None,
+ modal: bool = False,
+ resizable: bool = True,
+ skip_taskbar_hint: bool = False,
+ title: typing.Optional[str] = None,
+ type_hint: Gdk.WindowTypeHint = Gdk.WindowTypeHint.NORMAL,
+ window_position: WindowPosition = WindowPosition.NONE,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def activate_default(self) -> builtins.bool: ...
+
+ def activate_focus(self) -> builtins.bool: ...
+
+ def activate_key(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def add_accel_group(self, accel_group: AccelGroup) -> None: ...
+
+ def add_mnemonic(self, keyval: builtins.int, target: Widget) -> None: ...
+
+ def begin_move_drag(self, button: builtins.int, root_x: builtins.int, root_y: builtins.int, timestamp: builtins.int) -> None: ...
+
+ def begin_resize_drag(self, edge: Gdk.WindowEdge, button: builtins.int, root_x: builtins.int, root_y: builtins.int, timestamp: builtins.int) -> None: ...
+
+ def close(self) -> None: ...
+
+ def deiconify(self) -> None: ...
+
+ def fullscreen(self) -> None: ...
+
+ def fullscreen_on_monitor(self, screen: Gdk.Screen, monitor: builtins.int) -> None: ...
+
+ def get_accept_focus(self) -> builtins.bool: ...
+
+ def get_application(self) -> typing.Optional[Application]: ...
+
+ def get_attached_to(self) -> typing.Optional[Widget]: ...
+
+ def get_decorated(self) -> builtins.bool: ...
+
+ @staticmethod
+ def get_default_icon_list() -> typing.Sequence[GdkPixbuf.Pixbuf]: ...
+
+ @staticmethod
+ def get_default_icon_name() -> builtins.str: ...
+
+ def get_default_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_default_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_deletable(self) -> builtins.bool: ...
+
+ def get_destroy_with_parent(self) -> builtins.bool: ...
+
+ def get_focus(self) -> typing.Optional[Widget]: ...
+
+ def get_focus_on_map(self) -> builtins.bool: ...
+
+ def get_focus_visible(self) -> builtins.bool: ...
+
+ def get_gravity(self) -> Gdk.Gravity: ...
+
+ def get_group(self) -> WindowGroup: ...
+
+ def get_has_resize_grip(self) -> builtins.bool: ...
+
+ def get_hide_titlebar_when_maximized(self) -> builtins.bool: ...
+
+ def get_icon(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_icon_list(self) -> typing.Sequence[GdkPixbuf.Pixbuf]: ...
+
+ def get_icon_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_mnemonic_modifier(self) -> Gdk.ModifierType: ...
+
+ def get_mnemonics_visible(self) -> builtins.bool: ...
+
+ def get_modal(self) -> builtins.bool: ...
+
+ def get_opacity(self) -> builtins.float: ...
+
+ def get_position(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_resizable(self) -> builtins.bool: ...
+
+ def get_resize_grip_area(self) -> typing.Tuple[builtins.bool, Gdk.Rectangle]: ...
+
+ def get_role(self) -> typing.Optional[builtins.str]: ...
+
+ def get_screen(self) -> Gdk.Screen: ...
+
+ def get_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_skip_pager_hint(self) -> builtins.bool: ...
+
+ def get_skip_taskbar_hint(self) -> builtins.bool: ...
+
+ def get_title(self) -> typing.Optional[builtins.str]: ...
+
+ def get_titlebar(self) -> typing.Optional[Widget]: ...
+
+ def get_transient_for(self) -> typing.Optional[Window]: ...
+
+ def get_type_hint(self) -> Gdk.WindowTypeHint: ...
+
+ def get_urgency_hint(self) -> builtins.bool: ...
+
+ def get_window_type(self) -> WindowType: ...
+
+ def has_group(self) -> builtins.bool: ...
+
+ def has_toplevel_focus(self) -> builtins.bool: ...
+
+ def iconify(self) -> None: ...
+
+ def is_active(self) -> builtins.bool: ...
+
+ def is_maximized(self) -> builtins.bool: ...
+
+ @staticmethod
+ def list_toplevels() -> typing.Sequence[Widget]: ...
+
+ def maximize(self) -> None: ...
+
+ def mnemonic_activate(self, keyval: builtins.int, modifier: Gdk.ModifierType) -> builtins.bool: ... # type: ignore
+
+ def move(self, x: builtins.int, y: builtins.int) -> None: ...
+
+ @staticmethod
+ def new(type: WindowType) -> Widget: ...
+
+ def parse_geometry(self, geometry: builtins.str) -> builtins.bool: ...
+
+ def present(self) -> None: ...
+
+ def present_with_time(self, timestamp: builtins.int) -> None: ...
+
+ def propagate_key_event(self, event: Gdk.EventKey) -> builtins.bool: ...
+
+ def remove_accel_group(self, accel_group: AccelGroup) -> None: ...
+
+ def remove_mnemonic(self, keyval: builtins.int, target: Widget) -> None: ...
+
+ def reshow_with_initial_size(self) -> None: ...
+
+ def resize(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def resize_grip_is_visible(self) -> builtins.bool: ...
+
+ def resize_to_geometry(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def set_accept_focus(self, setting: builtins.bool) -> None: ...
+
+ def set_application(self, application: typing.Optional[Application]) -> None: ...
+
+ def set_attached_to(self, attach_widget: typing.Optional[Widget]) -> None: ...
+
+ @staticmethod
+ def set_auto_startup_notification(setting: builtins.bool) -> None: ...
+
+ def set_decorated(self, setting: builtins.bool) -> None: ...
+
+ def set_default(self, default_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_default_geometry(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ @staticmethod
+ def set_default_icon(icon: GdkPixbuf.Pixbuf) -> None: ...
+
+ @staticmethod
+ def set_default_icon_from_file(filename: builtins.str) -> builtins.bool: ...
+
+ @staticmethod
+ def set_default_icon_list(list: typing.Sequence[GdkPixbuf.Pixbuf]) -> None: ...
+
+ @staticmethod
+ def set_default_icon_name(name: builtins.str) -> None: ...
+
+ def set_default_size(self, width: builtins.int, height: builtins.int) -> None: ...
+
+ def set_deletable(self, setting: builtins.bool) -> None: ...
+
+ def set_destroy_with_parent(self, setting: builtins.bool) -> None: ...
+
+ def set_focus(self, focus: typing.Optional[Widget]) -> None: ...
+
+ def set_focus_on_map(self, setting: builtins.bool) -> None: ...
+
+ def set_focus_visible(self, setting: builtins.bool) -> None: ...
+
+ def set_geometry_hints(self, geometry_widget: typing.Optional[Widget], geometry: typing.Optional[Gdk.Geometry], geom_mask: Gdk.WindowHints) -> None: ...
+
+ def set_gravity(self, gravity: Gdk.Gravity) -> None: ...
+
+ def set_has_resize_grip(self, value: builtins.bool) -> None: ...
+
+ def set_has_user_ref_count(self, setting: builtins.bool) -> None: ...
+
+ def set_hide_titlebar_when_maximized(self, setting: builtins.bool) -> None: ...
+
+ def set_icon(self, icon: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_icon_from_file(self, filename: builtins.str) -> builtins.bool: ...
+
+ def set_icon_list(self, list: typing.Sequence[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_icon_name(self, name: typing.Optional[builtins.str]) -> None: ...
+
+ @staticmethod
+ def set_interactive_debugging(enable: builtins.bool) -> None: ...
+
+ def set_keep_above(self, setting: builtins.bool) -> None: ...
+
+ def set_keep_below(self, setting: builtins.bool) -> None: ...
+
+ def set_mnemonic_modifier(self, modifier: Gdk.ModifierType) -> None: ...
+
+ def set_mnemonics_visible(self, setting: builtins.bool) -> None: ...
+
+ def set_modal(self, modal: builtins.bool) -> None: ...
+
+ def set_opacity(self, opacity: builtins.float) -> None: ...
+
+ def set_position(self, position: WindowPosition) -> None: ...
+
+ def set_resizable(self, resizable: builtins.bool) -> None: ...
+
+ def set_role(self, role: builtins.str) -> None: ...
+
+ def set_screen(self, screen: Gdk.Screen) -> None: ...
+
+ def set_skip_pager_hint(self, setting: builtins.bool) -> None: ...
+
+ def set_skip_taskbar_hint(self, setting: builtins.bool) -> None: ...
+
+ def set_startup_id(self, startup_id: builtins.str) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_titlebar(self, titlebar: typing.Optional[Widget]) -> None: ...
+
+ def set_transient_for(self, parent: typing.Optional[Window]) -> None: ...
+
+ def set_type_hint(self, hint: Gdk.WindowTypeHint) -> None: ...
+
+ def set_urgency_hint(self, setting: builtins.bool) -> None: ...
+
+ def set_wmclass(self, wmclass_name: builtins.str, wmclass_class: builtins.str) -> None: ...
+
+ def stick(self) -> None: ...
+
+ def unfullscreen(self) -> None: ...
+
+ def unmaximize(self) -> None: ...
+
+ def unstick(self) -> None: ...
+
+ def do_activate_default(self) -> None: ...
+
+ def do_activate_focus(self) -> None: ...
+
+ def do_enable_debugging(self, toggle: builtins.bool) -> builtins.bool: ...
+
+ def do_keys_changed(self) -> None: ...
+
+ def do_set_focus(self, focus: typing.Optional[Widget]) -> None: ...
+
+
+class AppChooserWidget(Box, AppChooser):
+ parent: Box
+
+ def get_default_text(self) -> builtins.str: ...
+
+ def get_show_all(self) -> builtins.bool: ...
+
+ def get_show_default(self) -> builtins.bool: ...
+
+ def get_show_fallback(self) -> builtins.bool: ...
+
+ def get_show_other(self) -> builtins.bool: ...
+
+ def get_show_recommended(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(content_type: builtins.str) -> Widget: ... # type: ignore
+
+ def set_default_text(self, text: builtins.str) -> None: ...
+
+ def set_show_all(self, setting: builtins.bool) -> None: ...
+
+ def set_show_default(self, setting: builtins.bool) -> None: ...
+
+ def set_show_fallback(self, setting: builtins.bool) -> None: ...
+
+ def set_show_other(self, setting: builtins.bool) -> None: ...
+
+ def set_show_recommended(self, setting: builtins.bool) -> None: ...
+
+ def do_application_activated(self, app_info: Gio.AppInfo) -> None: ...
+
+ def do_application_selected(self, app_info: Gio.AppInfo) -> None: ...
+
+ def do_populate_popup(self, menu: Menu, app_info: Gio.AppInfo) -> None: ...
+
+
+class ButtonBox(Box):
+ box: Box
+
+ def get_child_non_homogeneous(self, child: Widget) -> builtins.bool: ...
+
+ def get_child_secondary(self, child: Widget) -> builtins.bool: ...
+
+ def get_layout(self) -> ButtonBoxStyle: ...
+
+ @staticmethod
+ def new(orientation: Orientation) -> Widget: ... # type: ignore
+
+ def set_child_non_homogeneous(self, child: Widget, non_homogeneous: builtins.bool) -> None: ...
+
+ def set_child_secondary(self, child: Widget, is_secondary: builtins.bool) -> None: ...
+
+ def set_layout(self, layout_style: ButtonBoxStyle) -> None: ...
+
+
+class ColorChooserWidget(Box, ColorChooser):
+ parent_instance: Box
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class ColorSelection(Box):
+ parent_instance: Box
+
+ def get_current_alpha(self) -> builtins.int: ...
+
+ def get_current_color(self) -> Gdk.Color: ...
+
+ def get_current_rgba(self) -> Gdk.RGBA: ...
+
+ def get_has_opacity_control(self) -> builtins.bool: ...
+
+ def get_has_palette(self) -> builtins.bool: ...
+
+ def get_previous_alpha(self) -> builtins.int: ...
+
+ def get_previous_color(self) -> Gdk.Color: ...
+
+ def get_previous_rgba(self) -> Gdk.RGBA: ...
+
+ def is_adjusting(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ @staticmethod
+ def palette_from_string(str: builtins.str) -> typing.Tuple[builtins.bool, typing.Sequence[Gdk.Color]]: ...
+
+ @staticmethod
+ def palette_to_string(colors: typing.Sequence[Gdk.Color]) -> builtins.str: ...
+
+ def set_current_alpha(self, alpha: builtins.int) -> None: ...
+
+ def set_current_color(self, color: Gdk.Color) -> None: ...
+
+ def set_current_rgba(self, rgba: Gdk.RGBA) -> None: ...
+
+ def set_has_opacity_control(self, has_opacity: builtins.bool) -> None: ...
+
+ def set_has_palette(self, has_palette: builtins.bool) -> None: ...
+
+ def set_previous_alpha(self, alpha: builtins.int) -> None: ...
+
+ def set_previous_color(self, color: Gdk.Color) -> None: ...
+
+ def set_previous_rgba(self, rgba: Gdk.RGBA) -> None: ...
+
+ def do_color_changed(self) -> None: ...
+
+
+class FileChooserButton(Box, FileChooser):
+ parent: Box
+
+ def get_focus_on_click(self) -> builtins.bool: ...
+
+ def get_title(self) -> builtins.str: ...
+
+ def get_width_chars(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(title: builtins.str, action: FileChooserAction) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_with_dialog(dialog: Dialog) -> Widget: ...
+
+ def set_focus_on_click(self, focus_on_click: builtins.bool) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_width_chars(self, n_chars: builtins.int) -> None: ...
+
+ def do_file_set(self) -> None: ...
+
+
+class FileChooserWidget(Box, FileChooser):
+ parent_instance: Box
+
+ @staticmethod
+ def new(action: FileChooserAction) -> Widget: ... # type: ignore
+
+
+class FontChooserWidget(Box, FontChooser):
+ parent_instance: Box
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class FontSelection(Box):
+ parent_instance: Box
+
+ def get_face(self) -> Pango.FontFace: ...
+
+ def get_face_list(self) -> Widget: ...
+
+ def get_family(self) -> Pango.FontFamily: ...
+
+ def get_family_list(self) -> Widget: ...
+
+ def get_font_name(self) -> builtins.str: ...
+
+ def get_preview_entry(self) -> Widget: ...
+
+ def get_preview_text(self) -> builtins.str: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_size_entry(self) -> Widget: ...
+
+ def get_size_list(self) -> Widget: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def set_font_name(self, fontname: builtins.str) -> builtins.bool: ...
+
+ def set_preview_text(self, text: builtins.str) -> None: ...
+
+
+class HBox(Box):
+ box: Box
+
+ @staticmethod
+ def new(homogeneous: builtins.bool, spacing: builtins.int) -> Widget: ... # type: ignore
+
+
+class InfoBar(Box):
+ parent: Box
+
+ def __init__(self,
+ *,
+ show_close_button: bool = False,
+ # Box
+ homogeneous: bool = False,
+ spacing: int = 0,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ # Orientable
+ orientation: Orientation = Orientation.HORIZONTAL,
+ ) -> None: ...
+
+ def add_action_widget(self, child: Widget, response_id: builtins.int) -> None: ...
+
+ def add_button(self, button_text: builtins.str, response_id: builtins.int) -> Button: ...
+
+ def get_action_area(self) -> Box: ...
+
+ def get_content_area(self) -> Box: ...
+
+ def get_message_type(self) -> MessageType: ...
+
+ def get_revealed(self) -> builtins.bool: ...
+
+ def get_show_close_button(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def response(self, response_id: builtins.int) -> None: ...
+
+ def set_default_response(self, response_id: builtins.int) -> None: ...
+
+ def set_message_type(self, message_type: MessageType) -> None: ...
+
+ def set_response_sensitive(self, response_id: builtins.int, setting: builtins.bool) -> None: ...
+
+ def set_revealed(self, revealed: builtins.bool) -> None: ...
+
+ def set_show_close_button(self, setting: builtins.bool) -> None: ...
+
+ def do_close(self) -> None: ...
+
+ def do_response(self, response_id: builtins.int) -> None: ...
+
+
+class RecentChooserWidget(Box, RecentChooser):
+ parent_instance: Box
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_for_manager(manager: RecentManager) -> Widget: ...
+
+
+class ShortcutLabel(Box):
+
+ def get_accelerator(self) -> typing.Optional[builtins.str]: ...
+
+ def get_disabled_text(self) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def new(accelerator: builtins.str) -> Widget: ... # type: ignore
+
+ def set_accelerator(self, accelerator: builtins.str) -> None: ...
+
+ def set_disabled_text(self, disabled_text: builtins.str) -> None: ...
+
+
+class ShortcutsGroup(Box):
+ ...
+
+
+class ShortcutsSection(Box):
+ ...
+
+
+class ShortcutsShortcut(Box):
+ ...
+
+
+class StackSwitcher(Box):
+ widget: Box
+
+ def get_stack(self) -> typing.Optional[Stack]: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def set_stack(self, stack: typing.Optional[Stack]) -> None: ...
+
+
+class Statusbar(Box):
+ parent_widget: Box
+
+ def get_context_id(self, context_description: builtins.str) -> builtins.int: ...
+
+ def get_message_area(self) -> Box: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def pop(self, context_id: builtins.int) -> None: ...
+
+ def push(self, context_id: builtins.int, text: builtins.str) -> builtins.int: ...
+
+ def remove(self, context_id: builtins.int, message_id: builtins.int) -> None: ... # type: ignore
+
+ def remove_all(self, context_id: builtins.int) -> None: ...
+
+ def do_text_popped(self, context_id: builtins.int, text: builtins.str) -> None: ...
+
+ def do_text_pushed(self, context_id: builtins.int, text: builtins.str) -> None: ...
+
+
+class VBox(Box):
+ box: Box
+
+ @staticmethod
+ def new(homogeneous: builtins.bool, spacing: builtins.int) -> Widget: ... # type: ignore
+
+
+class Menu(MenuShell):
+ menu_shell: MenuShell
+
+ def attach(self, child: Widget, left_attach: builtins.int, right_attach: builtins.int, top_attach: builtins.int, bottom_attach: builtins.int) -> None: ...
+
+ def attach_to_widget(self, attach_widget: Widget, detacher: typing.Optional[MenuDetachFunc]) -> None: ...
+
+ def detach(self) -> None: ...
+
+ def get_accel_group(self) -> AccelGroup: ...
+
+ def get_accel_path(self) -> builtins.str: ...
+
+ def get_active(self) -> Widget: ...
+
+ def get_attach_widget(self) -> Widget: ...
+
+ @staticmethod
+ def get_for_attach_widget(widget: Widget) -> typing.Sequence[Widget]: ...
+
+ def get_monitor(self) -> builtins.int: ...
+
+ def get_reserve_toggle_size(self) -> builtins.bool: ...
+
+ def get_tearoff_state(self) -> builtins.bool: ...
+
+ def get_title(self) -> builtins.str: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_from_model(model: Gio.MenuModel) -> Widget: ...
+
+ def place_on_monitor(self, monitor: Gdk.Monitor) -> None: ...
+
+ def popdown(self) -> None: ...
+
+ def popup(self, parent_menu_shell: typing.Optional[Widget], parent_menu_item: typing.Optional[Widget], func: typing.Optional[MenuPositionFunc], data: typing.Optional[builtins.object], button: builtins.int, activate_time: builtins.int) -> None: ...
+
+ def popup_at_pointer(self, trigger_event: typing.Optional[Gdk.Event]) -> None: ...
+
+ def popup_at_rect(self, rect_window: Gdk.Window, rect: Gdk.Rectangle, rect_anchor: Gdk.Gravity, menu_anchor: Gdk.Gravity, trigger_event: typing.Optional[Gdk.Event]) -> None: ...
+
+ def popup_at_widget(self, widget: Widget, widget_anchor: Gdk.Gravity, menu_anchor: Gdk.Gravity, trigger_event: typing.Optional[Gdk.Event]) -> None: ...
+
+ def popup_for_device(self, device: typing.Optional[Gdk.Device], parent_menu_shell: typing.Optional[Widget], parent_menu_item: typing.Optional[Widget], func: typing.Optional[MenuPositionFunc], data: typing.Optional[builtins.object], button: builtins.int, activate_time: builtins.int) -> None: ...
+
+ def reorder_child(self, child: Widget, position: builtins.int) -> None: ...
+
+ def reposition(self) -> None: ...
+
+ def set_accel_group(self, accel_group: typing.Optional[AccelGroup]) -> None: ...
+
+ def set_accel_path(self, accel_path: typing.Optional[builtins.str]) -> None: ... # type: ignore
+
+ def set_active(self, index: builtins.int) -> None: ...
+
+ def set_monitor(self, monitor_num: builtins.int) -> None: ...
+
+ def set_reserve_toggle_size(self, reserve_toggle_size: builtins.bool) -> None: ...
+
+ def set_screen(self, screen: typing.Optional[Gdk.Screen]) -> None: ...
+
+ def set_tearoff_state(self, torn_off: builtins.bool) -> None: ...
+
+ def set_title(self, title: typing.Optional[builtins.str]) -> None: ...
+
+
+class MenuBar(MenuShell):
+ menu_shell: MenuShell
+
+ def get_child_pack_direction(self) -> PackDirection: ...
+
+ def get_pack_direction(self) -> PackDirection: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_from_model(model: Gio.MenuModel) -> Widget: ...
+
+ def set_child_pack_direction(self, child_pack_dir: PackDirection) -> None: ...
+
+ def set_pack_direction(self, pack_dir: PackDirection) -> None: ...
+
+
+class HPaned(Paned):
+ paned: Paned
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class VPaned(Paned):
+ paned: Paned
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class AccelLabel(Label):
+ label: Label
+
+ def get_accel(self) -> typing.Tuple[builtins.int, Gdk.ModifierType]: ...
+
+ def get_accel_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_accel_width(self) -> builtins.int: ...
+
+ @staticmethod
+ def new(string: builtins.str) -> Widget: ... # type: ignore
+
+ def refetch(self) -> builtins.bool: ...
+
+ def set_accel(self, accelerator_key: builtins.int, accelerator_mods: Gdk.ModifierType) -> None: ...
+
+ def set_accel_closure(self, accel_closure: typing.Optional[GObject.Closure]) -> None: ...
+
+ def set_accel_widget(self, accel_widget: typing.Optional[Widget]) -> None: ...
+
+
+class HScale(Scale):
+ scale: Scale
+
+ @staticmethod
+ def new(adjustment: typing.Optional[Adjustment]) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_with_range(min: builtins.float, max: builtins.float, step: builtins.float) -> Widget: ... # type: ignore
+
+
+class VScale(Scale):
+ scale: Scale
+
+ @staticmethod
+ def new(adjustment: Adjustment) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_with_range(min: builtins.float, max: builtins.float, step: builtins.float) -> Widget: ... # type: ignore
+
+
+class HScrollbar(Scrollbar):
+ scrollbar: Scrollbar
+
+ @staticmethod
+ def new(adjustment: typing.Optional[Adjustment]) -> Widget: ... # type: ignore
+
+
+class VScrollbar(Scrollbar):
+ scrollbar: Scrollbar
+
+ @staticmethod
+ def new(adjustment: typing.Optional[Adjustment]) -> Widget: ... # type: ignore
+
+
+class GesturePan(GestureDrag):
+
+ def get_orientation(self) -> Orientation: ...
+
+ @staticmethod
+ def new(widget: Widget, orientation: Orientation) -> Gesture: ... # type: ignore
+
+ def set_orientation(self, orientation: Orientation) -> None: ...
+
+
+class MenuButtonAccessible(ToggleButtonAccessible):
+ parent: ToggleButtonAccessible
+
+
+class RadioButtonAccessible(ToggleButtonAccessible):
+ parent: ToggleButtonAccessible
+
+
+class RadioMenuItemAccessible(CheckMenuItemAccessible):
+ parent: CheckMenuItemAccessible
+
+
+class ColorButton(Button, ColorChooser):
+ button: Button
+
+ def get_alpha(self) -> builtins.int: ...
+
+ def get_color(self) -> Gdk.Color: ...
+
+ def get_title(self) -> builtins.str: ...
+
+ def get_use_alpha(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_color(color: Gdk.Color) -> Widget: ...
+
+ @staticmethod
+ def new_with_rgba(rgba: Gdk.RGBA) -> Widget: ...
+
+ def set_alpha(self, alpha: builtins.int) -> None: ...
+
+ def set_color(self, color: Gdk.Color) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_use_alpha(self, use_alpha: builtins.bool) -> None: ...
+
+ def do_color_set(self) -> None: ...
+
+
+class FontButton(Button, FontChooser):
+ button: Button
+
+ def get_font_name(self) -> builtins.str: ...
+
+ def get_show_size(self) -> builtins.bool: ...
+
+ def get_show_style(self) -> builtins.bool: ...
+
+ def get_title(self) -> builtins.str: ...
+
+ def get_use_font(self) -> builtins.bool: ...
+
+ def get_use_size(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_font(fontname: builtins.str) -> Widget: ...
+
+ def set_font_name(self, fontname: builtins.str) -> builtins.bool: ...
+
+ def set_show_size(self, show_size: builtins.bool) -> None: ...
+
+ def set_show_style(self, show_style: builtins.bool) -> None: ...
+
+ def set_title(self, title: builtins.str) -> None: ...
+
+ def set_use_font(self, use_font: builtins.bool) -> None: ...
+
+ def set_use_size(self, use_size: builtins.bool) -> None: ...
+
+ def do_font_set(self) -> None: ...
+
+
+class LinkButton(Button):
+ parent_instance: Button
+
+ def get_uri(self) -> builtins.str: ...
+
+ def get_visited(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(uri: builtins.str) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_with_label(uri: builtins.str, label: typing.Optional[builtins.str]) -> Widget: ... # type: ignore
+
+ def set_uri(self, uri: builtins.str) -> None: ...
+
+ def set_visited(self, visited: builtins.bool) -> None: ...
+
+ def do_activate_link(self) -> builtins.bool: ...
+
+
+class LockButton(Button):
+ parent: Button
+
+ def get_permission(self) -> Gio.Permission: ...
+
+ @staticmethod
+ def new(permission: typing.Optional[Gio.Permission]) -> Widget: ... # type: ignore
+
+ def set_permission(self, permission: typing.Optional[Gio.Permission]) -> None: ...
+
+
+class ModelButton(Button):
+
+ @staticmethod
+ def new() -> Widget: ...
+
+
+class ScaleButton(Button, Orientable):
+ parent: Button
+
+ def get_adjustment(self) -> Adjustment: ...
+
+ def get_minus_button(self) -> Button: ...
+
+ def get_plus_button(self) -> Button: ...
+
+ def get_popup(self) -> Widget: ...
+
+ def get_value(self) -> builtins.float: ...
+
+ @staticmethod
+ def new(size: builtins.int, min: builtins.float, max: builtins.float, step: builtins.float, icons: typing.Optional[typing.Sequence[builtins.str]]) -> Widget: ... # type: ignore
+
+ def set_adjustment(self, adjustment: Adjustment) -> None: ...
+
+ def set_icons(self, icons: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_value(self, value: builtins.float) -> None: ...
+
+ def do_value_changed(self, value: builtins.float) -> None: ...
+
+
+class ToggleButton(Button):
+ button: Button
+
+ class _Props(Button._Props):
+ active: bool
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ active: bool = False,
+ # Button
+ image: typing.Optional[Widget] = None,
+ label: typing.Optional[str] = None,
+ relief: ReliefStyle = ReliefStyle.NORMAL,
+ use_underline: bool = False,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_active(self) -> builtins.bool: ...
+
+ def get_inconsistent(self) -> builtins.bool: ...
+
+ def get_mode(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_label(label: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(label: builtins.str) -> Widget: ...
+
+ def set_active(self, is_active: builtins.bool) -> None: ...
+
+ def set_inconsistent(self, setting: builtins.bool) -> None: ...
+
+ def set_mode(self, draw_indicator: builtins.bool) -> None: ...
+
+ def toggled(self) -> None: ...
+
+ def do_toggled(self) -> None: ...
+
+
+class AppChooserButton(ComboBox, AppChooser):
+ parent: ComboBox
+
+ def append_custom_item(self, name: builtins.str, label: builtins.str, icon: Gio.Icon) -> None: ...
+
+ def append_separator(self) -> None: ...
+
+ def get_heading(self) -> typing.Optional[builtins.str]: ...
+
+ def get_show_default_item(self) -> builtins.bool: ...
+
+ def get_show_dialog_item(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(content_type: builtins.str) -> Widget: ... # type: ignore
+
+ def set_active_custom_item(self, name: builtins.str) -> None: ...
+
+ def set_heading(self, heading: builtins.str) -> None: ...
+
+ def set_show_default_item(self, setting: builtins.bool) -> None: ...
+
+ def set_show_dialog_item(self, setting: builtins.bool) -> None: ...
+
+ def do_custom_item_activated(self, item_name: builtins.str) -> None: ...
+
+
+class ComboBoxText(ComboBox):
+ parent_instance: ComboBox
+
+ def append(self, id: typing.Optional[builtins.str], text: builtins.str) -> None: ...
+
+ def append_text(self, text: builtins.str) -> None: ...
+
+ def get_active_text(self) -> builtins.str: ...
+
+ def insert(self, position: builtins.int, id: typing.Optional[builtins.str], text: builtins.str) -> None: ...
+
+ def insert_text(self, position: builtins.int, text: builtins.str) -> None: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_entry() -> Widget: ...
+
+ def prepend(self, id: typing.Optional[builtins.str], text: builtins.str) -> None: ...
+
+ def prepend_text(self, text: builtins.str) -> None: ...
+
+ def remove(self, position: builtins.int) -> None: ... # type: ignore
+
+ def remove_all(self) -> None: ...
+
+
+class AspectFrame(Frame):
+ frame: Frame
+
+ @staticmethod
+ def new(label: typing.Optional[builtins.str], xalign: builtins.float, yalign: builtins.float, ratio: builtins.float, obey_child: builtins.bool) -> Widget: ... # type: ignore
+
+ def set(self, xalign: builtins.float, yalign: builtins.float, ratio: builtins.float, obey_child: builtins.bool) -> None: ...
+
+
+class CheckMenuItem(MenuItem):
+ menu_item: MenuItem
+
+ class _Props(MenuItem._Props):
+ active: bool
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_active(self) -> builtins.bool: ...
+
+ def get_draw_as_radio(self) -> builtins.bool: ...
+
+ def get_inconsistent(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_label(label: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(label: builtins.str) -> CheckMenuItem: ...
+
+ def set_active(self, is_active: builtins.bool) -> None: ...
+
+ def set_draw_as_radio(self, draw_as_radio: builtins.bool) -> None: ...
+
+ def set_inconsistent(self, setting: builtins.bool) -> None: ...
+
+ def toggled(self) -> None: ...
+
+ def do_draw_indicator(self, cr: cairo.Context) -> None: ...
+
+ def do_toggled(self) -> None: ...
+
+
+class ImageMenuItem(MenuItem):
+ menu_item: MenuItem
+
+ def __init__(self,
+ *,
+ image: typing.Optional[Widget] = None,
+ label: str = "",
+ use_underline: bool = False
+ ) -> None: ...
+
+ def get_always_show_image(self) -> builtins.bool: ...
+
+ def get_image(self) -> Widget: ...
+
+ def get_use_stock(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_from_stock(stock_id: builtins.str, accel_group: typing.Optional[AccelGroup]) -> Widget: ...
+
+ @staticmethod
+ def new_with_label(label: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(label: builtins.str) -> ImageMenuItem: ...
+
+ def set_accel_group(self, accel_group: AccelGroup) -> None: ...
+
+ def set_always_show_image(self, always_show: builtins.bool) -> None: ...
+
+ def set_image(self, image: typing.Optional[Widget]) -> None: ...
+
+ def set_use_stock(self, use_stock: builtins.bool) -> None: ...
+
+
+class SeparatorMenuItem(MenuItem):
+ menu_item: MenuItem
+
+ @staticmethod
+ def new() -> Widget: ...
+
+
+class TearoffMenuItem(MenuItem):
+ menu_item: MenuItem
+
+ @staticmethod
+ def new() -> Widget: ...
+
+
+class PopoverMenu(Popover):
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def open_submenu(self, name: builtins.str) -> None: ...
+
+
+class PlacesSidebar(ScrolledWindow):
+
+ def add_shortcut(self, location: Gio.File) -> None: ...
+
+ def get_local_only(self) -> builtins.bool: ...
+
+ def get_location(self) -> typing.Optional[Gio.File]: ...
+
+ def get_nth_bookmark(self, n: builtins.int) -> typing.Optional[Gio.File]: ...
+
+ def get_open_flags(self) -> PlacesOpenFlags: ...
+
+ def get_show_connect_to_server(self) -> builtins.bool: ...
+
+ def get_show_desktop(self) -> builtins.bool: ...
+
+ def get_show_enter_location(self) -> builtins.bool: ...
+
+ def get_show_other_locations(self) -> builtins.bool: ...
+
+ def get_show_recent(self) -> builtins.bool: ...
+
+ def get_show_starred_location(self) -> builtins.bool: ...
+
+ def get_show_trash(self) -> builtins.bool: ...
+
+ def list_shortcuts(self) -> typing.Sequence[Gio.File]: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def remove_shortcut(self, location: Gio.File) -> None: ...
+
+ def set_drop_targets_visible(self, visible: builtins.bool, context: Gdk.DragContext) -> None: ...
+
+ def set_local_only(self, local_only: builtins.bool) -> None: ...
+
+ def set_location(self, location: typing.Optional[Gio.File]) -> None: ...
+
+ def set_open_flags(self, flags: PlacesOpenFlags) -> None: ...
+
+ def set_show_connect_to_server(self, show_connect_to_server: builtins.bool) -> None: ...
+
+ def set_show_desktop(self, show_desktop: builtins.bool) -> None: ...
+
+ def set_show_enter_location(self, show_enter_location: builtins.bool) -> None: ...
+
+ def set_show_other_locations(self, show_other_locations: builtins.bool) -> None: ...
+
+ def set_show_recent(self, show_recent: builtins.bool) -> None: ...
+
+ def set_show_starred_location(self, show_starred_location: builtins.bool) -> None: ...
+
+ def set_show_trash(self, show_trash: builtins.bool) -> None: ...
+
+
+class SeparatorToolItem(ToolItem):
+ parent: ToolItem
+
+ def get_draw(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> ToolItem: ...
+
+ def set_draw(self, draw: builtins.bool) -> None: ...
+
+
+class ToolButton(ToolItem, Actionable):
+ parent: ToolItem
+
+ class _Props(ToolItem._Props):
+ icon_widget: typing.Optional[Widget]
+ label: typing.Optional[str]
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ icon_widget: typing.Optional[Widget],
+ label: typing.Optional[str] = None,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_icon_name(self) -> typing.Optional[builtins.str]: ...
+
+ def get_icon_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_label(self) -> typing.Optional[builtins.str]: ...
+
+ def get_label_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_stock_id(self) -> builtins.str: ...
+
+ def get_use_underline(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(icon_widget: typing.Optional[Widget], label: typing.Optional[builtins.str]) -> ToolItem: ... # type: ignore
+
+ @staticmethod
+ def new_from_stock(stock_id: builtins.str) -> ToolItem: ...
+
+ def set_icon_name(self, icon_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_icon_widget(self, icon_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_label(self, label: typing.Optional[builtins.str]) -> None: ...
+
+ def set_label_widget(self, label_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_stock_id(self, stock_id: typing.Optional[builtins.str]) -> None: ...
+
+ def set_use_underline(self, use_underline: builtins.bool) -> None: ...
+
+ def do_clicked(self) -> None: ...
+
+
+class ApplicationWindow(Window, Gio.ActionGroup, Gio.ActionMap):
+ parent_instance: Window
+
+ def __init__(self,
+ *,
+ # Window
+ application: typing.Optional[Application] = None,
+ default_height: int = -1,
+ default_width: int = -1,
+ icon_name: typing.Optional[str] = None,
+ modal: bool = False,
+ resizable: bool = True,
+ skip_taskbar_hint: bool = False,
+ title: typing.Optional[str] = None,
+ type_hint: Gdk.WindowTypeHint = Gdk.WindowTypeHint.NORMAL,
+ window_position: WindowPosition = WindowPosition.NONE,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def get_help_overlay(self) -> typing.Optional[ShortcutsWindow]: ...
+
+ def get_id(self) -> builtins.int: ...
+
+ def get_show_menubar(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(application: Application) -> Widget: ... # type: ignore
+
+ def set_help_overlay(self, help_overlay: typing.Optional[ShortcutsWindow]) -> None: ...
+
+ def set_show_menubar(self, show_menubar: builtins.bool) -> None: ...
+
+
+class Assistant(Window):
+ parent: Window
+
+ def add_action_widget(self, child: Widget) -> None: ...
+
+ def append_page(self, page: Widget) -> builtins.int: ...
+
+ def commit(self) -> None: ...
+
+ def get_current_page(self) -> builtins.int: ...
+
+ def get_n_pages(self) -> builtins.int: ...
+
+ def get_nth_page(self, page_num: builtins.int) -> typing.Optional[Widget]: ...
+
+ def get_page_complete(self, page: Widget) -> builtins.bool: ...
+
+ def get_page_has_padding(self, page: Widget) -> builtins.bool: ...
+
+ def get_page_header_image(self, page: Widget) -> GdkPixbuf.Pixbuf: ...
+
+ def get_page_side_image(self, page: Widget) -> GdkPixbuf.Pixbuf: ...
+
+ def get_page_title(self, page: Widget) -> builtins.str: ...
+
+ def get_page_type(self, page: Widget) -> AssistantPageType: ...
+
+ def insert_page(self, page: Widget, position: builtins.int) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def next_page(self) -> None: ...
+
+ def prepend_page(self, page: Widget) -> builtins.int: ...
+
+ def previous_page(self) -> None: ...
+
+ def remove_action_widget(self, child: Widget) -> None: ...
+
+ def remove_page(self, page_num: builtins.int) -> None: ...
+
+ def set_current_page(self, page_num: builtins.int) -> None: ...
+
+ def set_forward_page_func(self, page_func: typing.Optional[AssistantPageFunc], *data: typing.Optional[builtins.object]) -> None: ...
+
+ def set_page_complete(self, page: Widget, complete: builtins.bool) -> None: ...
+
+ def set_page_has_padding(self, page: Widget, has_padding: builtins.bool) -> None: ...
+
+ def set_page_header_image(self, page: Widget, pixbuf: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_page_side_image(self, page: Widget, pixbuf: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_page_title(self, page: Widget, title: builtins.str) -> None: ...
+
+ def set_page_type(self, page: Widget, type: AssistantPageType) -> None: ...
+
+ def update_buttons_state(self) -> None: ...
+
+ def do_apply(self) -> None: ...
+
+ def do_cancel(self) -> None: ...
+
+ def do_close(self) -> None: ...
+
+ def do_prepare(self, page: Widget) -> None: ...
+
+
+class Dialog(Window):
+ window: Window
+
+ @property
+ def action_area(self) -> Box: ...
+
+ @property
+ def vbox(self) -> Box: ...
+
+ def add_action_widget(self, child: Widget, response_id: builtins.int) -> None: ...
+
+ def add_button(self, button_text: builtins.str, response_id: builtins.int) -> Button: ...
+
+ def add_buttons(self, *args: typing.Any) -> None: ...
+
+ def get_action_area(self) -> Box: ...
+
+ def get_content_area(self) -> Box: ...
+
+ def get_header_bar(self) -> HeaderBar: ...
+
+ def get_response_for_widget(self, widget: Widget) -> builtins.int: ...
+
+ def get_widget_for_response(self, response_id: builtins.int) -> typing.Optional[Widget]: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def response(self, response_id: builtins.int) -> None: ...
+
+ def run(self) -> builtins.int: ...
+
+ def set_alternative_button_order_from_array(self, new_order: typing.Sequence[builtins.int]) -> None: ...
+
+ def set_default_response(self, response_id: builtins.int) -> None: ...
+
+ def set_response_sensitive(self, response_id: builtins.int, setting: builtins.bool) -> None: ...
+
+ def do_close(self) -> None: ...
+
+ def do_response(self, response_id: builtins.int) -> None: ...
+
+
+class OffscreenWindow(Window):
+ parent_object: Window
+
+ def get_pixbuf(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_surface(self) -> typing.Optional[cairo.Surface]: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class Plug(Window):
+ window: Window
+
+ def construct(self, socket_id: builtins.int) -> None: ...
+
+ def construct_for_display(self, display: Gdk.Display, socket_id: builtins.int) -> None: ...
+
+ def get_embedded(self) -> builtins.bool: ...
+
+ def get_id(self) -> builtins.int: ...
+
+ def get_socket_window(self) -> typing.Optional[Gdk.Window]: ...
+
+ @staticmethod
+ def new(socket_id: builtins.int) -> Plug: ...
+
+ @staticmethod
+ def new_for_display(display: Gdk.Display, socket_id: builtins.int) -> Widget: ...
+
+ def do_embedded(self) -> None: ...
+
+
+class ShortcutsWindow(Window):
+ window: Window
+
+ def do_close(self) -> None: ...
+
+ def do_search(self) -> None: ...
+
+
+class HButtonBox(ButtonBox):
+ button_box: ButtonBox
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class VButtonBox(ButtonBox):
+ button_box: ButtonBox
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class RecentChooserMenu(Menu, Activatable, RecentChooser):
+ parent_instance: Menu
+
+ def get_show_numbers(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_for_manager(manager: RecentManager) -> Widget: ...
+
+ def set_show_numbers(self, show_numbers: builtins.bool) -> None: ...
+
+
+class VolumeButton(ScaleButton):
+ parent: ScaleButton
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+
+class CheckButton(ToggleButton):
+ toggle_button: ToggleButton
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ @staticmethod
+ def new_with_label(label: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(label: builtins.str) -> Widget: ...
+
+ def do_draw_indicator(self, cr: cairo.Context) -> None: ...
+
+
+class MenuButton(ToggleButton):
+ parent: ToggleButton
+
+ def get_align_widget(self) -> typing.Optional[Widget]: ...
+
+ def get_direction(self) -> ArrowType: ... # type: ignore
+
+ def get_menu_model(self) -> typing.Optional[Gio.MenuModel]: ...
+
+ def get_popover(self) -> typing.Optional[Popover]: ...
+
+ def get_popup(self) -> typing.Optional[Menu]: ...
+
+ def get_use_popover(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ...
+
+ def set_align_widget(self, align_widget: typing.Optional[Widget]) -> None: ...
+
+ def set_direction(self, direction: ArrowType) -> None: ... # type: ignore
+
+ def set_menu_model(self, menu_model: typing.Optional[Gio.MenuModel]) -> None: ...
+
+ def set_popover(self, popover: typing.Optional[Widget]) -> None: ...
+
+ def set_popup(self, menu: typing.Optional[Widget]) -> None: ...
+
+ def set_use_popover(self, use_popover: builtins.bool) -> None: ...
+
+
+class RadioMenuItem(CheckMenuItem):
+ check_menu_item: CheckMenuItem
+
+ def get_group(self) -> typing.Sequence[RadioMenuItem]: ...
+
+ def join_group(self, group_source: typing.Optional[RadioMenuItem]) -> None: ...
+
+ @staticmethod
+ def new(group: typing.Optional[typing.Sequence[RadioMenuItem]]) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_from_widget(group: typing.Optional[RadioMenuItem]) -> Widget: ...
+
+ @staticmethod
+ def new_with_label(group: typing.Optional[typing.Sequence[RadioMenuItem]], label: builtins.str) -> RadioMenuItem: ... # type: ignore
+
+ @staticmethod
+ def new_with_label_from_widget(group: typing.Optional[RadioMenuItem], label: typing.Optional[builtins.str]) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(group: typing.Optional[typing.Sequence[RadioMenuItem]], label: builtins.str) -> RadioMenuItem: ... # type: ignore
+
+ @staticmethod
+ def new_with_mnemonic_from_widget(group: typing.Optional[RadioMenuItem], label: typing.Optional[builtins.str]) -> Widget: ...
+
+ def set_group(self, group: typing.Optional[typing.Sequence[RadioMenuItem]]) -> None: ...
+
+ def do_group_changed(self) -> None: ...
+
+
+class MenuToolButton(ToolButton):
+ parent: ToolButton
+
+ def get_menu(self) -> Widget: ...
+
+ @staticmethod
+ def new(icon_widget: typing.Optional[Widget], label: typing.Optional[builtins.str]) -> ToolItem: ... # type: ignore
+
+ @staticmethod
+ def new_from_stock(stock_id: builtins.str) -> ToolItem: ...
+
+ def set_arrow_tooltip_markup(self, markup: builtins.str) -> None: ...
+
+ def set_arrow_tooltip_text(self, text: builtins.str) -> None: ...
+
+ def set_menu(self, menu: Widget) -> None: ...
+
+ def do_show_menu(self) -> None: ...
+
+
+class ToggleToolButton(ToolButton):
+ parent: ToolButton
+
+ def get_active(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> ToolItem: ... # type: ignore
+
+ @staticmethod
+ def new_from_stock(stock_id: builtins.str) -> ToolItem: ...
+
+ def set_active(self, is_active: builtins.bool) -> None: ...
+
+ def do_toggled(self) -> None: ...
+
+
+class AboutDialog(Dialog):
+ parent_instance: Dialog
+
+ def add_credit_section(self, section_name: builtins.str, people: typing.Sequence[builtins.str]) -> None: ...
+
+ def get_artists(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_authors(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_comments(self) -> builtins.str: ...
+
+ def get_copyright(self) -> builtins.str: ...
+
+ def get_documenters(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_license(self) -> builtins.str: ...
+
+ def get_license_type(self) -> License: ...
+
+ def get_logo(self) -> GdkPixbuf.Pixbuf: ...
+
+ def get_logo_icon_name(self) -> builtins.str: ...
+
+ def get_program_name(self) -> builtins.str: ...
+
+ def get_translator_credits(self) -> builtins.str: ...
+
+ def get_version(self) -> builtins.str: ...
+
+ def get_website(self) -> builtins.str: ...
+
+ def get_website_label(self) -> builtins.str: ...
+
+ def get_wrap_license(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> Widget: ... # type: ignore
+
+ def set_artists(self, artists: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_authors(self, authors: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_comments(self, comments: typing.Optional[builtins.str]) -> None: ...
+
+ def set_copyright(self, copyright: typing.Optional[builtins.str]) -> None: ...
+
+ def set_documenters(self, documenters: typing.Sequence[builtins.str]) -> None: ...
+
+ def set_license(self, license: typing.Optional[builtins.str]) -> None: ...
+
+ def set_license_type(self, license_type: License) -> None: ...
+
+ def set_logo(self, logo: typing.Optional[GdkPixbuf.Pixbuf]) -> None: ...
+
+ def set_logo_icon_name(self, icon_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_program_name(self, name: builtins.str) -> None: ...
+
+ def set_translator_credits(self, translator_credits: typing.Optional[builtins.str]) -> None: ...
+
+ def set_version(self, version: typing.Optional[builtins.str]) -> None: ...
+
+ def set_website(self, website: typing.Optional[builtins.str]) -> None: ...
+
+ def set_website_label(self, website_label: builtins.str) -> None: ...
+
+ def set_wrap_license(self, wrap_license: builtins.bool) -> None: ...
+
+ def do_activate_link(self, uri: builtins.str) -> builtins.bool: ...
+
+
+class AppChooserDialog(Dialog, AppChooser):
+ parent: Dialog
+
+ def get_heading(self) -> typing.Optional[builtins.str]: ...
+
+ def get_widget(self) -> Widget: ...
+
+ @staticmethod
+ def new(parent: typing.Optional[Window], flags: DialogFlags, file: Gio.File) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_for_content_type(parent: typing.Optional[Window], flags: DialogFlags, content_type: builtins.str) -> Widget: ...
+
+ def set_heading(self, heading: builtins.str) -> None: ...
+
+
+class ColorChooserDialog(Dialog, ColorChooser):
+ parent_instance: Dialog
+
+ @staticmethod
+ def new(title: typing.Optional[builtins.str], parent: typing.Optional[Window]) -> Widget: ... # type: ignore
+
+
+class ColorSelectionDialog(Dialog):
+ parent_instance: Dialog
+
+ def get_color_selection(self) -> Widget: ...
+
+ @staticmethod
+ def new(title: builtins.str) -> Widget: ... # type: ignore
+
+
+class FileChooserDialog(Dialog, FileChooser):
+ parent_instance: Dialog
+
+
+class FontChooserDialog(Dialog, FontChooser):
+ parent_instance: Dialog
+
+ @staticmethod
+ def new(title: typing.Optional[builtins.str], parent: typing.Optional[Window]) -> Widget: ... # type: ignore
+
+
+class FontSelectionDialog(Dialog):
+ parent_instance: Dialog
+
+ def get_cancel_button(self) -> Widget: ...
+
+ def get_font_name(self) -> builtins.str: ...
+
+ def get_font_selection(self) -> Widget: ...
+
+ def get_ok_button(self) -> Widget: ...
+
+ def get_preview_text(self) -> builtins.str: ...
+
+ @staticmethod
+ def new(title: builtins.str) -> Widget: ... # type: ignore
+
+ def set_font_name(self, fontname: builtins.str) -> builtins.bool: ...
+
+ def set_preview_text(self, text: builtins.str) -> None: ...
+
+
+class MessageDialog(Dialog):
+ parent_instance: Dialog
+
+ class _Props(Dialog._Props):
+ secondary_text: typing.Optional[str]
+ secondary_use_markup: bool
+ text: typing.Optional[str]
+ type: MessageType = MessageType.INFO
+
+ props: _Props
+
+ def __init__(self,
+ *,
+ buttons: ButtonsType = ButtonsType.NONE,
+ secondary_text: typing.Optional[str] = None,
+ secondary_use_markup: bool = False,
+ text: typing.Optional[str] = "",
+ type: MessageType = MessageType.INFO,
+ # Window
+ application: typing.Optional[Application] = None,
+ default_height: int = -1,
+ default_width: int = -1,
+ icon_name: typing.Optional[str] = None,
+ modal: bool = False,
+ resizable: bool = True,
+ skip_taskbar_hint: bool = False,
+ title: typing.Optional[str] = None,
+ type_hint: Gdk.WindowTypeHint = Gdk.WindowTypeHint.NORMAL,
+ window_position: WindowPosition = WindowPosition.NONE,
+ # Container
+ border_width: int = 0,
+ # Widget
+ halign: Align = Align.FILL,
+ has_tooltip: bool = False,
+ height_request: int = -1,
+ hexpand: bool = False,
+ margin: int = 0,
+ margin_left: int = 0,
+ name: typing.Optional[str] = None,
+ opacity: float = 1,
+ parent: typing.Optional[Container] = None,
+ receives_default: bool = False,
+ sensitive: bool = True,
+ tooltip_text: typing.Optional[str] = None,
+ valign: Align = Align.FILL,
+ vexpand: bool = False,
+ visible: bool = False,
+ width_request: int = -1,
+ ) -> None: ...
+
+ def format_secondary_markup(self, message_format: str, *args: object) -> None: ...
+
+ def format_secondary_text(self, message_format: str, *args: object) -> None: ...
+
+ def get_image(self) -> Widget: ...
+
+ def get_message_area(self) -> Box: ...
+
+ def set_image(self, image: Widget) -> None: ...
+
+ def set_markup(self, str: builtins.str) -> None: ...
+
+
+class RecentChooserDialog(Dialog, RecentChooser):
+ parent_instance: Dialog
+
+
+class RadioButton(CheckButton):
+ check_button: CheckButton
+
+ def get_group(self) -> typing.Sequence[RadioButton]: ...
+
+ def join_group(self, group_source: typing.Optional[RadioButton]) -> None: ...
+
+ @staticmethod
+ def new(group: typing.Optional[typing.Sequence[RadioButton]]) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_from_widget(radio_group_member: typing.Optional[RadioButton]) -> Widget: ...
+
+ @staticmethod
+ def new_with_label(group: typing.Optional[typing.Sequence[RadioButton]], label: builtins.str) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_with_label_from_widget(radio_group_member: typing.Optional[RadioButton], label: builtins.str) -> Widget: ...
+
+ @staticmethod
+ def new_with_mnemonic(group: typing.Optional[typing.Sequence[RadioButton]], label: builtins.str) -> Widget: ... # type: ignore
+
+ @staticmethod
+ def new_with_mnemonic_from_widget(radio_group_member: typing.Optional[RadioButton], label: builtins.str) -> Widget: ...
+
+ def set_group(self, group: typing.Optional[typing.Sequence[RadioButton]]) -> None: ...
+
+ def do_group_changed(self) -> None: ...
+
+
+class RadioToolButton(ToggleToolButton):
+ parent: ToggleToolButton
+
+ def get_group(self) -> typing.Sequence[RadioButton]: ...
+
+ @staticmethod
+ def new(group: typing.Optional[typing.Sequence[RadioButton]]) -> ToolItem: ... # type: ignore
+
+ @staticmethod
+ def new_from_stock(group: typing.Optional[typing.Sequence[RadioButton]], stock_id: builtins.str) -> ToolItem: ... # type: ignore
+
+ @staticmethod
+ def new_from_widget(group: typing.Optional[RadioToolButton]) -> ToolItem: ...
+
+ @staticmethod
+ def new_with_stock_from_widget(group: typing.Optional[RadioToolButton], stock_id: builtins.str) -> ToolItem: ...
+
+ def set_group(self, group: typing.Optional[typing.Sequence[RadioButton]]) -> None: ...
+
+
+class AccelGroupEntry():
+ accel_path_quark: builtins.int
+ closure: GObject.Closure
+ key: AccelKey
+
+
+class AccelKey():
+ accel_flags: builtins.int
+ accel_key: builtins.int
+ accel_mods: Gdk.ModifierType
+
+
+class ActionEntry():
+ accelerator: builtins.str
+ callback: GObject.Callback
+ label: builtins.str
+ name: builtins.str
+ stock_id: builtins.str
+ tooltip: builtins.str
+
+
+class BindingArg():
+ arg_type: GObject.GType
+
+
+class BindingEntry():
+ binding_set: BindingSet
+ destroyed: builtins.int
+ hash_next: BindingEntry
+ in_emission: builtins.int
+ keyval: builtins.int
+ marks_unbound: builtins.int
+ modifiers: Gdk.ModifierType
+ set_next: BindingEntry
+ signals: BindingSignal
+
+ @staticmethod
+ def add_signal_from_string(binding_set: BindingSet, signal_desc: builtins.str) -> GLib.TokenType: ...
+
+ @staticmethod
+ def add_signall(binding_set: BindingSet, keyval: builtins.int, modifiers: Gdk.ModifierType, signal_name: builtins.str, binding_args: typing.Sequence[BindingArg]) -> None: ...
+
+ @staticmethod
+ def remove(binding_set: BindingSet, keyval: builtins.int, modifiers: Gdk.ModifierType) -> None: ...
+
+ @staticmethod
+ def skip(binding_set: BindingSet, keyval: builtins.int, modifiers: Gdk.ModifierType) -> None: ...
+
+
+class BindingSet():
+ class_branch_pspecs: typing.Sequence[builtins.object]
+ current: BindingEntry
+ entries: BindingEntry
+ parsed: builtins.int
+ priority: builtins.int
+ set_name: builtins.str
+ widget_class_pspecs: typing.Sequence[builtins.object]
+ widget_path_pspecs: typing.Sequence[builtins.object]
+
+ def activate(self, keyval: builtins.int, modifiers: Gdk.ModifierType, object: GObject.Object) -> builtins.bool: ...
+
+ def add_path(self, path_type: PathType, path_pattern: builtins.str, priority: PathPriorityType) -> None: ...
+
+ @staticmethod
+ def find(set_name: builtins.str) -> typing.Optional[BindingSet]: ...
+
+
+class BindingSignal():
+ args: typing.Sequence[BindingArg]
+ n_args: builtins.int
+ next: BindingSignal
+ signal_name: builtins.str
+
+
+class Border():
+ bottom: builtins.int
+ left: builtins.int
+ right: builtins.int
+ top: builtins.int
+
+ def copy(self) -> Border: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def new() -> Border: ...
+
+
+class CssSection():
+
+ def get_end_line(self) -> builtins.int: ...
+
+ def get_end_position(self) -> builtins.int: ...
+
+ def get_file(self) -> Gio.File: ...
+
+ def get_parent(self) -> typing.Optional[CssSection]: ...
+
+ def get_section_type(self) -> CssSectionType: ...
+
+ def get_start_line(self) -> builtins.int: ...
+
+ def get_start_position(self) -> builtins.int: ...
+
+ def ref(self) -> CssSection: ...
+
+ def unref(self) -> None: ...
+
+
+class FileFilterInfo():
+ contains: FileFilterFlags
+ display_name: builtins.str
+ filename: builtins.str
+ mime_type: builtins.str
+ uri: builtins.str
+
+
+class FixedChild():
+ widget: Widget
+ x: builtins.int
+ y: builtins.int
+
+
+class Gradient():
+
+ def add_color_stop(self, offset: builtins.float, color: SymbolicColor) -> None: ...
+
+ @staticmethod
+ def new_linear(x0: builtins.float, y0: builtins.float, x1: builtins.float, y1: builtins.float) -> Gradient: ...
+
+ @staticmethod
+ def new_radial(x0: builtins.float, y0: builtins.float, radius0: builtins.float, x1: builtins.float, y1: builtins.float, radius1: builtins.float) -> Gradient: ...
+
+ def ref(self) -> Gradient: ...
+
+ def resolve(self, props: StyleProperties) -> typing.Tuple[builtins.bool, cairo.Pattern]: ...
+
+ def resolve_for_context(self, context: StyleContext) -> cairo.Pattern: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def unref(self) -> None: ...
+
+
+class IMContextInfo():
+ context_id: builtins.str
+ context_name: builtins.str
+ default_locales: builtins.str
+ domain: builtins.str
+ domain_dirname: builtins.str
+
+
+class IconSet():
+
+ def add_source(self, source: IconSource) -> None: ...
+
+ def copy(self) -> IconSet: ...
+
+ def get_sizes(self) -> typing.Sequence[builtins.int]: ...
+
+ @staticmethod
+ def new() -> IconSet: ...
+
+ @staticmethod
+ def new_from_pixbuf(pixbuf: GdkPixbuf.Pixbuf) -> IconSet: ...
+
+ def ref(self) -> IconSet: ...
+
+ def render_icon(self, style: typing.Optional[Style], direction: TextDirection, state: StateType, size: builtins.int, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str]) -> GdkPixbuf.Pixbuf: ...
+
+ def render_icon_pixbuf(self, context: StyleContext, size: builtins.int) -> GdkPixbuf.Pixbuf: ...
+
+ def render_icon_surface(self, context: StyleContext, size: builtins.int, scale: builtins.int, for_window: typing.Optional[Gdk.Window]) -> cairo.Surface: ...
+
+ def unref(self) -> None: ...
+
+
+class IconSource():
+
+ def copy(self) -> IconSource: ...
+
+ def free(self) -> None: ...
+
+ def get_direction(self) -> TextDirection: ...
+
+ def get_direction_wildcarded(self) -> builtins.bool: ...
+
+ def get_filename(self) -> builtins.str: ...
+
+ def get_icon_name(self) -> builtins.str: ...
+
+ def get_pixbuf(self) -> GdkPixbuf.Pixbuf: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_size_wildcarded(self) -> builtins.bool: ...
+
+ def get_state(self) -> StateType: ...
+
+ def get_state_wildcarded(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> IconSource: ...
+
+ def set_direction(self, direction: TextDirection) -> None: ...
+
+ def set_direction_wildcarded(self, setting: builtins.bool) -> None: ...
+
+ def set_filename(self, filename: builtins.str) -> None: ...
+
+ def set_icon_name(self, icon_name: typing.Optional[builtins.str]) -> None: ...
+
+ def set_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> None: ...
+
+ def set_size(self, size: builtins.int) -> None: ...
+
+ def set_size_wildcarded(self, setting: builtins.bool) -> None: ...
+
+ def set_state(self, state: StateType) -> None: ...
+
+ def set_state_wildcarded(self, setting: builtins.bool) -> None: ...
+
+
+class LabelSelectionInfo():
+ ...
+
+
+class PadActionEntry():
+ action_name: builtins.str
+ index: builtins.int
+ label: builtins.str
+ mode: builtins.int
+ type: PadActionType
+
+
+class PageRange():
+ end: builtins.int
+ start: builtins.int
+
+
+class PaperSize():
+
+ def copy(self) -> PaperSize: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def get_default() -> builtins.str: ...
+
+ def get_default_bottom_margin(self, unit: Unit) -> builtins.float: ...
+
+ def get_default_left_margin(self, unit: Unit) -> builtins.float: ...
+
+ def get_default_right_margin(self, unit: Unit) -> builtins.float: ...
+
+ def get_default_top_margin(self, unit: Unit) -> builtins.float: ...
+
+ def get_display_name(self) -> builtins.str: ...
+
+ def get_height(self, unit: Unit) -> builtins.float: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ @staticmethod
+ def get_paper_sizes(include_custom: builtins.bool) -> typing.Sequence[PaperSize]: ...
+
+ def get_ppd_name(self) -> builtins.str: ...
+
+ def get_width(self, unit: Unit) -> builtins.float: ...
+
+ def is_custom(self) -> builtins.bool: ...
+
+ def is_equal(self, size2: PaperSize) -> builtins.bool: ...
+
+ def is_ipp(self) -> builtins.bool: ...
+
+ @staticmethod
+ def new(name: typing.Optional[builtins.str]) -> PaperSize: ...
+
+ @staticmethod
+ def new_custom(name: builtins.str, display_name: builtins.str, width: builtins.float, height: builtins.float, unit: Unit) -> PaperSize: ...
+
+ @staticmethod
+ def new_from_gvariant(variant: GLib.Variant) -> PaperSize: ...
+
+ @staticmethod
+ def new_from_ipp(ipp_name: builtins.str, width: builtins.float, height: builtins.float) -> PaperSize: ...
+
+ @staticmethod
+ def new_from_key_file(key_file: GLib.KeyFile, group_name: typing.Optional[builtins.str]) -> PaperSize: ...
+
+ @staticmethod
+ def new_from_ppd(ppd_name: builtins.str, ppd_display_name: builtins.str, width: builtins.float, height: builtins.float) -> PaperSize: ...
+
+ def set_size(self, width: builtins.float, height: builtins.float, unit: Unit) -> None: ...
+
+ def to_gvariant(self) -> GLib.Variant: ...
+
+ def to_key_file(self, key_file: GLib.KeyFile, group_name: builtins.str) -> None: ...
+
+
+class RadioActionEntry():
+ accelerator: builtins.str
+ label: builtins.str
+ name: builtins.str
+ stock_id: builtins.str
+ tooltip: builtins.str
+ value: builtins.int
+
+
+class RcContext():
+ ...
+
+
+class RcProperty():
+ origin: builtins.str
+ property_name: builtins.int
+ type_name: builtins.int
+ value: GObject.Value
+
+ @staticmethod
+ def parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+ @staticmethod
+ def parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+ @staticmethod
+ def parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+ @staticmethod
+ def parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+ @staticmethod
+ def parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+
+class RecentData():
+ app_exec: builtins.str
+ app_name: builtins.str
+ description: builtins.str
+ display_name: builtins.str
+ groups: typing.Sequence[builtins.str]
+ is_private: builtins.bool
+ mime_type: builtins.str
+
+
+class RecentFilterInfo():
+ age: builtins.int
+ applications: typing.Sequence[builtins.str]
+ contains: RecentFilterFlags
+ display_name: builtins.str
+ groups: typing.Sequence[builtins.str]
+ mime_type: builtins.str
+ uri: builtins.str
+
+
+class RecentInfo():
+
+ def create_app_info(self, app_name: typing.Optional[builtins.str]) -> typing.Optional[Gio.AppInfo]: ...
+
+ def exists(self) -> builtins.bool: ...
+
+ def get_added(self) -> builtins.int: ...
+
+ def get_age(self) -> builtins.int: ...
+
+ def get_application_info(self, app_name: builtins.str) -> typing.Tuple[builtins.bool, builtins.str, builtins.int, builtins.int]: ...
+
+ def get_applications(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_description(self) -> builtins.str: ...
+
+ def get_display_name(self) -> builtins.str: ...
+
+ def get_gicon(self) -> typing.Optional[Gio.Icon]: ...
+
+ def get_groups(self) -> typing.Sequence[builtins.str]: ...
+
+ def get_icon(self, size: builtins.int) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_mime_type(self) -> builtins.str: ...
+
+ def get_modified(self) -> builtins.int: ...
+
+ def get_private_hint(self) -> builtins.bool: ...
+
+ def get_short_name(self) -> builtins.str: ...
+
+ def get_uri(self) -> builtins.str: ...
+
+ def get_uri_display(self) -> typing.Optional[builtins.str]: ...
+
+ def get_visited(self) -> builtins.int: ...
+
+ def has_application(self, app_name: builtins.str) -> builtins.bool: ...
+
+ def has_group(self, group_name: builtins.str) -> builtins.bool: ...
+
+ def is_local(self) -> builtins.bool: ...
+
+ def last_application(self) -> builtins.str: ...
+
+ def match(self, info_b: RecentInfo) -> builtins.bool: ...
+
+ def ref(self) -> RecentInfo: ...
+
+ def unref(self) -> None: ...
+
+
+class RequestedSize():
+ data: builtins.object
+ minimum_size: builtins.int
+ natural_size: builtins.int
+
+
+class Requisition():
+ height: builtins.int
+ width: builtins.int
+
+ def copy(self) -> Requisition: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def new() -> Requisition: ...
+
+
+class SelectionData():
+
+ def copy(self) -> SelectionData: ...
+
+ def free(self) -> None: ...
+
+ def get_data(self) -> builtins.bytes: ...
+
+ def get_data_type(self) -> Gdk.Atom: ...
+
+ def get_display(self) -> Gdk.Display: ...
+
+ def get_format(self) -> builtins.int: ...
+
+ def get_length(self) -> builtins.int: ...
+
+ def get_pixbuf(self) -> typing.Optional[GdkPixbuf.Pixbuf]: ...
+
+ def get_selection(self) -> Gdk.Atom: ...
+
+ def get_target(self) -> Gdk.Atom: ...
+
+ def get_targets(self) -> typing.Tuple[builtins.bool, typing.Sequence[Gdk.Atom]]: ...
+
+ def get_text(self) -> typing.Optional[builtins.str]: ...
+
+ def get_uris(self) -> typing.Sequence[builtins.str]: ...
+
+ def set(self, type: Gdk.Atom, format: builtins.int, data: builtins.bytes) -> None: ...
+
+ def set_pixbuf(self, pixbuf: GdkPixbuf.Pixbuf) -> builtins.bool: ...
+
+ def set_text(self, str: builtins.str, len: builtins.int) -> builtins.bool: ...
+
+ def set_uris(self, uris: typing.Sequence[builtins.str]) -> builtins.bool: ...
+
+ def targets_include_image(self, writable: builtins.bool) -> builtins.bool: ...
+
+ def targets_include_rich_text(self, buffer: TextBuffer) -> builtins.bool: ...
+
+ def targets_include_text(self) -> builtins.bool: ...
+
+ def targets_include_uri(self) -> builtins.bool: ...
+
+
+class SettingsValue():
+ origin: builtins.str
+ value: GObject.Value
+
+
+class StockItem():
+ keyval: builtins.int
+ label: builtins.str
+ modifier: Gdk.ModifierType
+ stock_id: builtins.str
+ translation_domain: builtins.str
+
+ def free(self) -> None: ...
+
+
+class SymbolicColor():
+
+ @staticmethod
+ def new_alpha(color: SymbolicColor, factor: builtins.float) -> SymbolicColor: ...
+
+ @staticmethod
+ def new_literal(color: Gdk.RGBA) -> SymbolicColor: ...
+
+ @staticmethod
+ def new_mix(color1: SymbolicColor, color2: SymbolicColor, factor: builtins.float) -> SymbolicColor: ...
+
+ @staticmethod
+ def new_name(name: builtins.str) -> SymbolicColor: ...
+
+ @staticmethod
+ def new_shade(color: SymbolicColor, factor: builtins.float) -> SymbolicColor: ...
+
+ @staticmethod
+ def new_win32(theme_class: builtins.str, id: builtins.int) -> SymbolicColor: ...
+
+ def ref(self) -> SymbolicColor: ...
+
+ def resolve(self, props: typing.Optional[StyleProperties]) -> typing.Tuple[builtins.bool, Gdk.RGBA]: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def unref(self) -> None: ...
+
+
+class TableChild():
+ bottom_attach: builtins.int
+ left_attach: builtins.int
+ right_attach: builtins.int
+ top_attach: builtins.int
+ widget: Widget
+ xexpand: builtins.int
+ xfill: builtins.int
+ xpadding: builtins.int
+ xshrink: builtins.int
+ yexpand: builtins.int
+ yfill: builtins.int
+ ypadding: builtins.int
+ yshrink: builtins.int
+
+
+class TableRowCol():
+ allocation: builtins.int
+ empty: builtins.int
+ expand: builtins.int
+ need_expand: builtins.int
+ need_shrink: builtins.int
+ requisition: builtins.int
+ shrink: builtins.int
+ spacing: builtins.int
+
+
+class TargetEntry():
+ flags: builtins.int
+ info: builtins.int
+ target: builtins.str
+
+ def copy(self) -> TargetEntry: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def new(target: builtins.str, flags: builtins.int, info: builtins.int) -> TargetEntry: ...
+
+
+class TargetList():
+
+ def add(self, target: Gdk.Atom, flags: builtins.int, info: builtins.int) -> None: ...
+
+ def add_image_targets(self, info: builtins.int, writable: builtins.bool) -> None: ...
+
+ def add_rich_text_targets(self, info: builtins.int, deserializable: builtins.bool, buffer: TextBuffer) -> None: ...
+
+ def add_table(self, targets: typing.Sequence[TargetEntry]) -> None: ...
+
+ def add_text_targets(self, info: builtins.int) -> None: ...
+
+ def add_uri_targets(self, info: builtins.int) -> None: ...
+
+ def find(self, target: Gdk.Atom) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ @staticmethod
+ def new(targets: typing.Optional[typing.Sequence[TargetEntry]]) -> TargetList: ...
+
+ def ref(self) -> TargetList: ...
+
+ def remove(self, target: Gdk.Atom) -> None: ...
+
+ def unref(self) -> None: ...
+
+
+class TargetPair():
+ flags: builtins.int
+ info: builtins.int
+ target: Gdk.Atom
+
+
+class TextAppearance():
+ bg_color: Gdk.Color
+ draw_bg: builtins.int
+ fg_color: Gdk.Color
+ inside_selection: builtins.int
+ is_text: builtins.int
+ rise: builtins.int
+ strikethrough: builtins.int
+ underline: builtins.int
+
+
+class TextAttributes():
+ appearance: TextAppearance
+ bg_full_height: builtins.int
+ direction: TextDirection
+ editable: builtins.int
+ font: Pango.FontDescription
+ font_scale: builtins.float
+ indent: builtins.int
+ invisible: builtins.int
+ justification: Justification
+ language: Pango.Language
+ left_margin: builtins.int
+ letter_spacing: builtins.int
+ no_fallback: builtins.int
+ pg_bg_color: Gdk.Color
+ pg_bg_rgba: Gdk.RGBA
+ pixels_above_lines: builtins.int
+ pixels_below_lines: builtins.int
+ pixels_inside_wrap: builtins.int
+ refcount: builtins.int
+ right_margin: builtins.int
+ tabs: Pango.TabArray
+ wrap_mode: WrapMode
+
+ def copy(self) -> TextAttributes: ...
+
+ def copy_values(self, dest: TextAttributes) -> None: ...
+
+ @staticmethod
+ def new() -> TextAttributes: ...
+
+ def ref(self) -> TextAttributes: ...
+
+ def unref(self) -> None: ...
+
+
+class TextBTree():
+ ...
+
+
+class TextIter():
+ dummy10: builtins.object
+ dummy11: builtins.int
+ dummy12: builtins.int
+ dummy13: builtins.int
+ dummy14: builtins.object
+ dummy1: builtins.object
+ dummy2: builtins.object
+ dummy3: builtins.int
+ dummy4: builtins.int
+ dummy5: builtins.int
+ dummy6: builtins.int
+ dummy7: builtins.int
+ dummy8: builtins.int
+ dummy9: builtins.object
+
+ def assign(self, other: TextIter) -> None: ...
+
+ def backward_char(self) -> builtins.bool: ...
+
+ def backward_chars(self, count: builtins.int) -> builtins.bool: ...
+
+ def backward_cursor_position(self) -> builtins.bool: ...
+
+ def backward_cursor_positions(self, count: builtins.int) -> builtins.bool: ...
+
+ def backward_find_char(self, pred: TextCharPredicate, user_data: typing.Optional[builtins.object], limit: typing.Optional[TextIter]) -> builtins.bool: ...
+
+ def backward_line(self) -> builtins.bool: ...
+
+ def backward_lines(self, count: builtins.int) -> builtins.bool: ...
+
+ def backward_search(self, str: builtins.str, flags: TextSearchFlags, limit: typing.Optional[TextIter]) -> typing.Tuple[builtins.bool, TextIter, TextIter]: ...
+
+ def backward_sentence_start(self) -> builtins.bool: ...
+
+ def backward_sentence_starts(self, count: builtins.int) -> builtins.bool: ...
+
+ def backward_to_tag_toggle(self, tag: typing.Optional[TextTag]) -> builtins.bool: ...
+
+ def backward_visible_cursor_position(self) -> builtins.bool: ...
+
+ def backward_visible_cursor_positions(self, count: builtins.int) -> builtins.bool: ...
+
+ def backward_visible_line(self) -> builtins.bool: ...
+
+ def backward_visible_lines(self, count: builtins.int) -> builtins.bool: ...
+
+ def backward_visible_word_start(self) -> builtins.bool: ...
+
+ def backward_visible_word_starts(self, count: builtins.int) -> builtins.bool: ...
+
+ def backward_word_start(self) -> builtins.bool: ...
+
+ def backward_word_starts(self, count: builtins.int) -> builtins.bool: ...
+
+ def begins_tag(self, tag: typing.Optional[TextTag]) -> builtins.bool: ...
+
+ def can_insert(self, default_editability: builtins.bool) -> builtins.bool: ...
+
+ def compare(self, rhs: TextIter) -> builtins.int: ...
+
+ def copy(self) -> TextIter: ...
+
+ def editable(self, default_setting: builtins.bool) -> builtins.bool: ...
+
+ def ends_line(self) -> builtins.bool: ...
+
+ def ends_sentence(self) -> builtins.bool: ...
+
+ def ends_tag(self, tag: typing.Optional[TextTag]) -> builtins.bool: ...
+
+ def ends_word(self) -> builtins.bool: ...
+
+ def equal(self, rhs: TextIter) -> builtins.bool: ...
+
+ def forward_char(self) -> builtins.bool: ...
+
+ def forward_chars(self, count: builtins.int) -> builtins.bool: ...
+
+ def forward_cursor_position(self) -> builtins.bool: ...
+
+ def forward_cursor_positions(self, count: builtins.int) -> builtins.bool: ...
+
+ def forward_find_char(self, pred: TextCharPredicate, user_data: typing.Optional[builtins.object], limit: typing.Optional[TextIter]) -> builtins.bool: ...
+
+ def forward_line(self) -> builtins.bool: ...
+
+ def forward_lines(self, count: builtins.int) -> builtins.bool: ...
+
+ def forward_search(self, str: builtins.str, flags: TextSearchFlags, limit: typing.Optional[TextIter]) -> typing.Tuple[builtins.bool, TextIter, TextIter]: ...
+
+ def forward_sentence_end(self) -> builtins.bool: ...
+
+ def forward_sentence_ends(self, count: builtins.int) -> builtins.bool: ...
+
+ def forward_to_end(self) -> None: ...
+
+ def forward_to_line_end(self) -> builtins.bool: ...
+
+ def forward_to_tag_toggle(self, tag: typing.Optional[TextTag]) -> builtins.bool: ...
+
+ def forward_visible_cursor_position(self) -> builtins.bool: ...
+
+ def forward_visible_cursor_positions(self, count: builtins.int) -> builtins.bool: ...
+
+ def forward_visible_line(self) -> builtins.bool: ...
+
+ def forward_visible_lines(self, count: builtins.int) -> builtins.bool: ...
+
+ def forward_visible_word_end(self) -> builtins.bool: ...
+
+ def forward_visible_word_ends(self, count: builtins.int) -> builtins.bool: ...
+
+ def forward_word_end(self) -> builtins.bool: ...
+
+ def forward_word_ends(self, count: builtins.int) -> builtins.bool: ...
+
+ def free(self) -> None: ...
+
+ def get_attributes(self) -> typing.Tuple[builtins.bool, TextAttributes]: ...
+
+ def get_buffer(self) -> TextBuffer: ...
+
+ def get_bytes_in_line(self) -> builtins.int: ...
+
+ def get_char(self) -> builtins.str: ...
+
+ def get_chars_in_line(self) -> builtins.int: ...
+
+ def get_child_anchor(self) -> TextChildAnchor: ...
+
+ def get_language(self) -> Pango.Language: ...
+
+ def get_line(self) -> builtins.int: ...
+
+ def get_line_index(self) -> builtins.int: ...
+
+ def get_line_offset(self) -> builtins.int: ...
+
+ def get_marks(self) -> typing.Sequence[TextMark]: ...
+
+ def get_offset(self) -> builtins.int: ...
+
+ def get_pixbuf(self) -> GdkPixbuf.Pixbuf: ...
+
+ def get_slice(self, end: TextIter) -> builtins.str: ...
+
+ def get_tags(self) -> typing.Sequence[TextTag]: ...
+
+ def get_text(self, end: TextIter) -> builtins.str: ...
+
+ def get_toggled_tags(self, toggled_on: builtins.bool) -> typing.Sequence[TextTag]: ...
+
+ def get_visible_line_index(self) -> builtins.int: ...
+
+ def get_visible_line_offset(self) -> builtins.int: ...
+
+ def get_visible_slice(self, end: TextIter) -> builtins.str: ...
+
+ def get_visible_text(self, end: TextIter) -> builtins.str: ...
+
+ def has_tag(self, tag: TextTag) -> builtins.bool: ...
+
+ def in_range(self, start: TextIter, end: TextIter) -> builtins.bool: ...
+
+ def inside_sentence(self) -> builtins.bool: ...
+
+ def inside_word(self) -> builtins.bool: ...
+
+ def is_cursor_position(self) -> builtins.bool: ...
+
+ def is_end(self) -> builtins.bool: ...
+
+ def is_start(self) -> builtins.bool: ...
+
+ def order(self, second: TextIter) -> None: ...
+
+ def set_line(self, line_number: builtins.int) -> None: ...
+
+ def set_line_index(self, byte_on_line: builtins.int) -> None: ...
+
+ def set_line_offset(self, char_on_line: builtins.int) -> None: ...
+
+ def set_offset(self, char_offset: builtins.int) -> None: ...
+
+ def set_visible_line_index(self, byte_on_line: builtins.int) -> None: ...
+
+ def set_visible_line_offset(self, char_on_line: builtins.int) -> None: ...
+
+ def starts_line(self) -> builtins.bool: ...
+
+ def starts_sentence(self) -> builtins.bool: ...
+
+ def starts_tag(self, tag: typing.Optional[TextTag]) -> builtins.bool: ...
+
+ def starts_word(self) -> builtins.bool: ...
+
+ def toggles_tag(self, tag: typing.Optional[TextTag]) -> builtins.bool: ...
+
+
+class ThemeEngine():
+ ...
+
+
+class ToggleActionEntry():
+ accelerator: builtins.str
+ callback: GObject.Callback
+ is_active: builtins.bool
+ label: builtins.str
+ name: builtins.str
+ stock_id: builtins.str
+ tooltip: builtins.str
+
+
+class TreeIter():
+ stamp: builtins.int
+ user_data2: builtins.object
+ user_data3: builtins.object
+ user_data: builtins.object
+
+ def copy(self) -> TreeIter: ...
+
+ def free(self) -> None: ...
+
+
+class TreePath():
+
+ def append_index(self, index_: builtins.int) -> None: ...
+
+ def compare(self, b: TreePath) -> builtins.int: ...
+
+ def copy(self) -> TreePath: ...
+
+ def down(self) -> None: ...
+
+ def free(self) -> None: ...
+
+ def get_depth(self) -> builtins.int: ...
+
+ def get_indices(self) -> typing.Sequence[builtins.int]: ...
+
+ def is_ancestor(self, descendant: TreePath) -> builtins.bool: ...
+
+ def is_descendant(self, ancestor: TreePath) -> builtins.bool: ...
+
+ @staticmethod
+ def new() -> TreePath: ...
+
+ @staticmethod
+ def new_first() -> TreePath: ...
+
+ @staticmethod
+ def new_from_indices(indices: typing.Sequence[builtins.int]) -> TreePath: ...
+
+ @staticmethod
+ def new_from_string(path: builtins.str) -> TreePath: ...
+
+ def next(self) -> None: ...
+
+ def prepend_index(self, index_: builtins.int) -> None: ...
+
+ def prev(self) -> builtins.bool: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def up(self) -> builtins.bool: ...
+
+
+class TreeRowReference():
+
+ def copy(self) -> TreeRowReference: ...
+
+ @staticmethod
+ def deleted(proxy: GObject.Object, path: TreePath) -> None: ...
+
+ def free(self) -> None: ...
+
+ def get_model(self) -> TreeModel: ...
+
+ def get_path(self) -> typing.Optional[TreePath]: ...
+
+ @staticmethod
+ def inserted(proxy: GObject.Object, path: TreePath) -> None: ...
+
+ @staticmethod
+ def new(model: TreeModel, path: TreePath) -> TreeRowReference: ...
+
+ @staticmethod
+ def new_proxy(proxy: GObject.Object, model: TreeModel, path: TreePath) -> TreeRowReference: ...
+
+ def valid(self) -> builtins.bool: ...
+
+
+class WidgetPath():
+
+ def append_for_widget(self, widget: Widget) -> builtins.int: ...
+
+ def append_type(self, type: GObject.GType) -> builtins.int: ...
+
+ def append_with_siblings(self, siblings: WidgetPath, sibling_index: builtins.int) -> builtins.int: ...
+
+ def copy(self) -> WidgetPath: ...
+
+ def free(self) -> None: ...
+
+ def get_object_type(self) -> GObject.GType: ...
+
+ def has_parent(self, type: GObject.GType) -> builtins.bool: ...
+
+ def is_type(self, type: GObject.GType) -> builtins.bool: ...
+
+ def iter_add_class(self, pos: builtins.int, name: builtins.str) -> None: ...
+
+ def iter_add_region(self, pos: builtins.int, name: builtins.str, flags: RegionFlags) -> None: ...
+
+ def iter_clear_classes(self, pos: builtins.int) -> None: ...
+
+ def iter_clear_regions(self, pos: builtins.int) -> None: ...
+
+ def iter_get_name(self, pos: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def iter_get_object_name(self, pos: builtins.int) -> typing.Optional[builtins.str]: ...
+
+ def iter_get_object_type(self, pos: builtins.int) -> GObject.GType: ...
+
+ def iter_get_sibling_index(self, pos: builtins.int) -> builtins.int: ...
+
+ def iter_get_siblings(self, pos: builtins.int) -> WidgetPath: ...
+
+ def iter_get_state(self, pos: builtins.int) -> StateFlags: ...
+
+ def iter_has_class(self, pos: builtins.int, name: builtins.str) -> builtins.bool: ...
+
+ def iter_has_name(self, pos: builtins.int, name: builtins.str) -> builtins.bool: ...
+
+ def iter_has_qclass(self, pos: builtins.int, qname: builtins.int) -> builtins.bool: ...
+
+ def iter_has_qname(self, pos: builtins.int, qname: builtins.int) -> builtins.bool: ...
+
+ def iter_has_qregion(self, pos: builtins.int, qname: builtins.int) -> typing.Tuple[builtins.bool, RegionFlags]: ...
+
+ def iter_has_region(self, pos: builtins.int, name: builtins.str) -> typing.Tuple[builtins.bool, RegionFlags]: ...
+
+ def iter_list_classes(self, pos: builtins.int) -> typing.Sequence[builtins.str]: ...
+
+ def iter_list_regions(self, pos: builtins.int) -> typing.Sequence[builtins.str]: ...
+
+ def iter_remove_class(self, pos: builtins.int, name: builtins.str) -> None: ...
+
+ def iter_remove_region(self, pos: builtins.int, name: builtins.str) -> None: ...
+
+ def iter_set_name(self, pos: builtins.int, name: builtins.str) -> None: ...
+
+ def iter_set_object_name(self, pos: builtins.int, name: typing.Optional[builtins.str]) -> None: ...
+
+ def iter_set_object_type(self, pos: builtins.int, type: GObject.GType) -> None: ...
+
+ def iter_set_state(self, pos: builtins.int, state: StateFlags) -> None: ...
+
+ def length(self) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> WidgetPath: ...
+
+ def prepend_type(self, type: GObject.GType) -> None: ...
+
+ def ref(self) -> WidgetPath: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def unref(self) -> None: ...
+
+
+class WindowGeometryInfo():
+ ...
+
+
+class AccelFlags(GObject.GFlags, builtins.int):
+ LOCKED = ... # type: AccelFlags
+ MASK = ... # type: AccelFlags
+ VISIBLE = ... # type: AccelFlags
+
+
+class ApplicationInhibitFlags(GObject.GFlags, builtins.int):
+ IDLE = ... # type: ApplicationInhibitFlags
+ LOGOUT = ... # type: ApplicationInhibitFlags
+ SUSPEND = ... # type: ApplicationInhibitFlags
+ SWITCH = ... # type: ApplicationInhibitFlags
+
+
+class AttachOptions(GObject.GFlags, builtins.int):
+ EXPAND = ... # type: AttachOptions
+ FILL = ... # type: AttachOptions
+ SHRINK = ... # type: AttachOptions
+
+
+class CalendarDisplayOptions(GObject.GFlags, builtins.int):
+ NO_MONTH_CHANGE = ... # type: CalendarDisplayOptions
+ SHOW_DAY_NAMES = ... # type: CalendarDisplayOptions
+ SHOW_DETAILS = ... # type: CalendarDisplayOptions
+ SHOW_HEADING = ... # type: CalendarDisplayOptions
+ SHOW_WEEK_NUMBERS = ... # type: CalendarDisplayOptions
+
+
+class CellRendererState(GObject.GFlags, builtins.int):
+ EXPANDABLE = ... # type: CellRendererState
+ EXPANDED = ... # type: CellRendererState
+ FOCUSED = ... # type: CellRendererState
+ INSENSITIVE = ... # type: CellRendererState
+ PRELIT = ... # type: CellRendererState
+ SELECTED = ... # type: CellRendererState
+ SORTED = ... # type: CellRendererState
+
+
+class DebugFlag(GObject.GFlags, builtins.int):
+ ACTIONS = ... # type: DebugFlag
+ BASELINES = ... # type: DebugFlag
+ BUILDER = ... # type: DebugFlag
+ GEOMETRY = ... # type: DebugFlag
+ ICONTHEME = ... # type: DebugFlag
+ INTERACTIVE = ... # type: DebugFlag
+ KEYBINDINGS = ... # type: DebugFlag
+ LAYOUT = ... # type: DebugFlag
+ MISC = ... # type: DebugFlag
+ MODULES = ... # type: DebugFlag
+ MULTIHEAD = ... # type: DebugFlag
+ NO_CSS_CACHE = ... # type: DebugFlag
+ NO_PIXEL_CACHE = ... # type: DebugFlag
+ PIXEL_CACHE = ... # type: DebugFlag
+ PLUGSOCKET = ... # type: DebugFlag
+ PRINTING = ... # type: DebugFlag
+ RESIZE = ... # type: DebugFlag
+ SIZE_REQUEST = ... # type: DebugFlag
+ TEXT = ... # type: DebugFlag
+ TOUCHSCREEN = ... # type: DebugFlag
+ TREE = ... # type: DebugFlag
+ UPDATES = ... # type: DebugFlag
+
+
+class DestDefaults(GObject.GFlags, builtins.int):
+ ALL = ... # type: DestDefaults
+ DROP = ... # type: DestDefaults
+ HIGHLIGHT = ... # type: DestDefaults
+ MOTION = ... # type: DestDefaults
+
+
+class DialogFlags(GObject.GFlags, builtins.int):
+ DESTROY_WITH_PARENT = ... # type: DialogFlags
+ MODAL = ... # type: DialogFlags
+ USE_HEADER_BAR = ... # type: DialogFlags
+
+
+class EventControllerScrollFlags(GObject.GFlags, builtins.int):
+ BOTH_AXES = ... # type: EventControllerScrollFlags
+ DISCRETE = ... # type: EventControllerScrollFlags
+ HORIZONTAL = ... # type: EventControllerScrollFlags
+ KINETIC = ... # type: EventControllerScrollFlags
+ NONE = ... # type: EventControllerScrollFlags
+ VERTICAL = ... # type: EventControllerScrollFlags
+
+
+class FileFilterFlags(GObject.GFlags, builtins.int):
+ DISPLAY_NAME = ... # type: FileFilterFlags
+ FILENAME = ... # type: FileFilterFlags
+ MIME_TYPE = ... # type: FileFilterFlags
+ URI = ... # type: FileFilterFlags
+
+
+class FontChooserLevel(GObject.GFlags, builtins.int):
+ FAMILY = ... # type: FontChooserLevel
+ FEATURES = ... # type: FontChooserLevel
+ SIZE = ... # type: FontChooserLevel
+ STYLE = ... # type: FontChooserLevel
+ VARIATIONS = ... # type: FontChooserLevel
+
+
+class IconLookupFlags(GObject.GFlags, builtins.int):
+ DIR_LTR = ... # type: IconLookupFlags
+ DIR_RTL = ... # type: IconLookupFlags
+ FORCE_REGULAR = ... # type: IconLookupFlags
+ FORCE_SIZE = ... # type: IconLookupFlags
+ FORCE_SVG = ... # type: IconLookupFlags
+ FORCE_SYMBOLIC = ... # type: IconLookupFlags
+ GENERIC_FALLBACK = ... # type: IconLookupFlags
+ NO_SVG = ... # type: IconLookupFlags
+ USE_BUILTIN = ... # type: IconLookupFlags
+
+
+class InputHints(GObject.GFlags, builtins.int):
+ EMOJI = ... # type: InputHints
+ INHIBIT_OSK = ... # type: InputHints
+ LOWERCASE = ... # type: InputHints
+ NONE = ... # type: InputHints
+ NO_EMOJI = ... # type: InputHints
+ NO_SPELLCHECK = ... # type: InputHints
+ SPELLCHECK = ... # type: InputHints
+ UPPERCASE_CHARS = ... # type: InputHints
+ UPPERCASE_SENTENCES = ... # type: InputHints
+ UPPERCASE_WORDS = ... # type: InputHints
+ VERTICAL_WRITING = ... # type: InputHints
+ WORD_COMPLETION = ... # type: InputHints
+
+
+class JunctionSides(GObject.GFlags, builtins.int):
+ BOTTOM = ... # type: JunctionSides
+ CORNER_BOTTOMLEFT = ... # type: JunctionSides
+ CORNER_BOTTOMRIGHT = ... # type: JunctionSides
+ CORNER_TOPLEFT = ... # type: JunctionSides
+ CORNER_TOPRIGHT = ... # type: JunctionSides
+ LEFT = ... # type: JunctionSides
+ NONE = ... # type: JunctionSides
+ RIGHT = ... # type: JunctionSides
+ TOP = ... # type: JunctionSides
+
+
+class PlacesOpenFlags(GObject.GFlags, builtins.int):
+ NEW_TAB = ... # type: PlacesOpenFlags
+ NEW_WINDOW = ... # type: PlacesOpenFlags
+ NORMAL = ... # type: PlacesOpenFlags
+
+
+class RcFlags(GObject.GFlags, builtins.int):
+ BASE = ... # type: RcFlags
+ BG = ... # type: RcFlags
+ FG = ... # type: RcFlags
+ TEXT = ... # type: RcFlags
+
+
+class RecentFilterFlags(GObject.GFlags, builtins.int):
+ AGE = ... # type: RecentFilterFlags
+ APPLICATION = ... # type: RecentFilterFlags
+ DISPLAY_NAME = ... # type: RecentFilterFlags
+ GROUP = ... # type: RecentFilterFlags
+ MIME_TYPE = ... # type: RecentFilterFlags
+ URI = ... # type: RecentFilterFlags
+
+
+class RegionFlags(GObject.GFlags, builtins.int):
+ EVEN = ... # type: RegionFlags
+ FIRST = ... # type: RegionFlags
+ LAST = ... # type: RegionFlags
+ ODD = ... # type: RegionFlags
+ ONLY = ... # type: RegionFlags
+ SORTED = ... # type: RegionFlags
+
+
+class StateFlags(GObject.GFlags, builtins.int):
+ ACTIVE = ... # type: StateFlags
+ BACKDROP = ... # type: StateFlags
+ CHECKED = ... # type: StateFlags
+ DIR_LTR = ... # type: StateFlags
+ DIR_RTL = ... # type: StateFlags
+ DROP_ACTIVE = ... # type: StateFlags
+ FOCUSED = ... # type: StateFlags
+ INCONSISTENT = ... # type: StateFlags
+ INSENSITIVE = ... # type: StateFlags
+ LINK = ... # type: StateFlags
+ NORMAL = ... # type: StateFlags
+ PRELIGHT = ... # type: StateFlags
+ SELECTED = ... # type: StateFlags
+ VISITED = ... # type: StateFlags
+
+
+class StyleContextPrintFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: StyleContextPrintFlags
+ RECURSE = ... # type: StyleContextPrintFlags
+ SHOW_STYLE = ... # type: StyleContextPrintFlags
+
+
+class TargetFlags(GObject.GFlags, builtins.int):
+ OTHER_APP = ... # type: TargetFlags
+ OTHER_WIDGET = ... # type: TargetFlags
+ SAME_APP = ... # type: TargetFlags
+ SAME_WIDGET = ... # type: TargetFlags
+
+
+class TextSearchFlags(GObject.GFlags, builtins.int):
+ CASE_INSENSITIVE = ... # type: TextSearchFlags
+ TEXT_ONLY = ... # type: TextSearchFlags
+ VISIBLE_ONLY = ... # type: TextSearchFlags
+
+
+class ToolPaletteDragTargets(GObject.GFlags, builtins.int):
+ GROUPS = ... # type: ToolPaletteDragTargets
+ ITEMS = ... # type: ToolPaletteDragTargets
+
+
+class TreeModelFlags(GObject.GFlags, builtins.int):
+ ITERS_PERSIST = ... # type: TreeModelFlags
+ LIST_ONLY = ... # type: TreeModelFlags
+
+
+class UIManagerItemType(GObject.GFlags, builtins.int):
+ ACCELERATOR = ... # type: UIManagerItemType
+ AUTO = ... # type: UIManagerItemType
+ MENU = ... # type: UIManagerItemType
+ MENUBAR = ... # type: UIManagerItemType
+ MENUITEM = ... # type: UIManagerItemType
+ PLACEHOLDER = ... # type: UIManagerItemType
+ POPUP = ... # type: UIManagerItemType
+ POPUP_WITH_ACCELS = ... # type: UIManagerItemType
+ SEPARATOR = ... # type: UIManagerItemType
+ TOOLBAR = ... # type: UIManagerItemType
+ TOOLITEM = ... # type: UIManagerItemType
+
+
+class Align(GObject.GEnum, builtins.int):
+ BASELINE = ... # type: Align
+ CENTER = ... # type: Align
+ END = ... # type: Align
+ FILL = ... # type: Align
+ START = ... # type: Align
+
+
+class ArrowPlacement(GObject.GEnum, builtins.int):
+ BOTH = ... # type: ArrowPlacement
+ END = ... # type: ArrowPlacement
+ START = ... # type: ArrowPlacement
+
+
+class ArrowType(GObject.GEnum, builtins.int):
+ DOWN = ... # type: ArrowType
+ LEFT = ... # type: ArrowType
+ NONE = ... # type: ArrowType
+ RIGHT = ... # type: ArrowType
+ UP = ... # type: ArrowType
+
+
+class AssistantPageType(GObject.GEnum, builtins.int):
+ CONFIRM = ... # type: AssistantPageType
+ CONTENT = ... # type: AssistantPageType
+ CUSTOM = ... # type: AssistantPageType
+ INTRO = ... # type: AssistantPageType
+ PROGRESS = ... # type: AssistantPageType
+ SUMMARY = ... # type: AssistantPageType
+
+
+class BaselinePosition(GObject.GEnum, builtins.int):
+ BOTTOM = ... # type: BaselinePosition
+ CENTER = ... # type: BaselinePosition
+ TOP = ... # type: BaselinePosition
+
+
+class BorderStyle(GObject.GEnum, builtins.int):
+ DASHED = ... # type: BorderStyle
+ DOTTED = ... # type: BorderStyle
+ DOUBLE = ... # type: BorderStyle
+ GROOVE = ... # type: BorderStyle
+ HIDDEN = ... # type: BorderStyle
+ INSET = ... # type: BorderStyle
+ NONE = ... # type: BorderStyle
+ OUTSET = ... # type: BorderStyle
+ RIDGE = ... # type: BorderStyle
+ SOLID = ... # type: BorderStyle
+
+
+class BuilderError(GObject.GEnum, builtins.int):
+ DUPLICATE_ID = ... # type: BuilderError
+ INVALID_ATTRIBUTE = ... # type: BuilderError
+ INVALID_ID = ... # type: BuilderError
+ INVALID_PROPERTY = ... # type: BuilderError
+ INVALID_SIGNAL = ... # type: BuilderError
+ INVALID_TAG = ... # type: BuilderError
+ INVALID_TYPE_FUNCTION = ... # type: BuilderError
+ INVALID_VALUE = ... # type: BuilderError
+ MISSING_ATTRIBUTE = ... # type: BuilderError
+ MISSING_PROPERTY_VALUE = ... # type: BuilderError
+ OBJECT_TYPE_REFUSED = ... # type: BuilderError
+ TEMPLATE_MISMATCH = ... # type: BuilderError
+ UNHANDLED_TAG = ... # type: BuilderError
+ VERSION_MISMATCH = ... # type: BuilderError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class ButtonBoxStyle(GObject.GEnum, builtins.int):
+ CENTER = ... # type: ButtonBoxStyle
+ EDGE = ... # type: ButtonBoxStyle
+ END = ... # type: ButtonBoxStyle
+ EXPAND = ... # type: ButtonBoxStyle
+ SPREAD = ... # type: ButtonBoxStyle
+ START = ... # type: ButtonBoxStyle
+
+
+class ButtonRole(GObject.GEnum, builtins.int):
+ CHECK = ... # type: ButtonRole
+ NORMAL = ... # type: ButtonRole
+ RADIO = ... # type: ButtonRole
+
+
+class ButtonsType(GObject.GEnum, builtins.int):
+ CANCEL = ... # type: ButtonsType
+ CLOSE = ... # type: ButtonsType
+ NONE = ... # type: ButtonsType
+ OK = ... # type: ButtonsType
+ OK_CANCEL = ... # type: ButtonsType
+ YES_NO = ... # type: ButtonsType
+
+
+class CellRendererAccelMode(GObject.GEnum, builtins.int):
+ GTK = ... # type: CellRendererAccelMode
+ OTHER = ... # type: CellRendererAccelMode
+
+
+class CellRendererMode(GObject.GEnum, builtins.int):
+ ACTIVATABLE = ... # type: CellRendererMode
+ EDITABLE = ... # type: CellRendererMode
+ INERT = ... # type: CellRendererMode
+
+
+class CornerType(GObject.GEnum, builtins.int):
+ BOTTOM_LEFT = ... # type: CornerType
+ BOTTOM_RIGHT = ... # type: CornerType
+ TOP_LEFT = ... # type: CornerType
+ TOP_RIGHT = ... # type: CornerType
+
+
+class CssProviderError(GObject.GEnum, builtins.int):
+ DEPRECATED = ... # type: CssProviderError
+ FAILED = ... # type: CssProviderError
+ IMPORT = ... # type: CssProviderError
+ NAME = ... # type: CssProviderError
+ SYNTAX = ... # type: CssProviderError
+ UNKNOWN_VALUE = ... # type: CssProviderError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class CssSectionType(GObject.GEnum, builtins.int):
+ BINDING_SET = ... # type: CssSectionType
+ COLOR_DEFINITION = ... # type: CssSectionType
+ DECLARATION = ... # type: CssSectionType
+ DOCUMENT = ... # type: CssSectionType
+ IMPORT = ... # type: CssSectionType
+ KEYFRAMES = ... # type: CssSectionType
+ RULESET = ... # type: CssSectionType
+ SELECTOR = ... # type: CssSectionType
+ VALUE = ... # type: CssSectionType
+
+
+class DeleteType(GObject.GEnum, builtins.int):
+ CHARS = ... # type: DeleteType
+ DISPLAY_LINES = ... # type: DeleteType
+ DISPLAY_LINE_ENDS = ... # type: DeleteType
+ PARAGRAPHS = ... # type: DeleteType
+ PARAGRAPH_ENDS = ... # type: DeleteType
+ WHITESPACE = ... # type: DeleteType
+ WORDS = ... # type: DeleteType
+ WORD_ENDS = ... # type: DeleteType
+
+
+class DirectionType(GObject.GEnum, builtins.int):
+ DOWN = ... # type: DirectionType
+ LEFT = ... # type: DirectionType
+ RIGHT = ... # type: DirectionType
+ TAB_BACKWARD = ... # type: DirectionType
+ TAB_FORWARD = ... # type: DirectionType
+ UP = ... # type: DirectionType
+
+
+class DragResult(GObject.GEnum, builtins.int):
+ ERROR = ... # type: DragResult
+ GRAB_BROKEN = ... # type: DragResult
+ NO_TARGET = ... # type: DragResult
+ SUCCESS = ... # type: DragResult
+ TIMEOUT_EXPIRED = ... # type: DragResult
+ USER_CANCELLED = ... # type: DragResult
+
+
+class EntryIconPosition(GObject.GEnum, builtins.int):
+ PRIMARY = ... # type: EntryIconPosition
+ SECONDARY = ... # type: EntryIconPosition
+
+
+class EventSequenceState(GObject.GEnum, builtins.int):
+ CLAIMED = ... # type: EventSequenceState
+ DENIED = ... # type: EventSequenceState
+ NONE = ... # type: EventSequenceState
+
+
+class ExpanderStyle(GObject.GEnum, builtins.int):
+ COLLAPSED = ... # type: ExpanderStyle
+ EXPANDED = ... # type: ExpanderStyle
+ SEMI_COLLAPSED = ... # type: ExpanderStyle
+ SEMI_EXPANDED = ... # type: ExpanderStyle
+
+
+class FileChooserAction(GObject.GEnum, builtins.int):
+ CREATE_FOLDER = ... # type: FileChooserAction
+ OPEN = ... # type: FileChooserAction
+ SAVE = ... # type: FileChooserAction
+ SELECT_FOLDER = ... # type: FileChooserAction
+
+
+class FileChooserConfirmation(GObject.GEnum, builtins.int):
+ ACCEPT_FILENAME = ... # type: FileChooserConfirmation
+ CONFIRM = ... # type: FileChooserConfirmation
+ SELECT_AGAIN = ... # type: FileChooserConfirmation
+
+
+class FileChooserError(GObject.GEnum, builtins.int):
+ ALREADY_EXISTS = ... # type: FileChooserError
+ BAD_FILENAME = ... # type: FileChooserError
+ INCOMPLETE_HOSTNAME = ... # type: FileChooserError
+ NONEXISTENT = ... # type: FileChooserError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class IMPreeditStyle(GObject.GEnum, builtins.int):
+ CALLBACK = ... # type: IMPreeditStyle
+ NONE = ... # type: IMPreeditStyle
+ NOTHING = ... # type: IMPreeditStyle
+
+
+class IMStatusStyle(GObject.GEnum, builtins.int):
+ CALLBACK = ... # type: IMStatusStyle
+ NONE = ... # type: IMStatusStyle
+ NOTHING = ... # type: IMStatusStyle
+
+
+class IconSize(GObject.GEnum, builtins.int):
+ BUTTON = ... # type: IconSize
+ DIALOG = ... # type: IconSize
+ DND = ... # type: IconSize
+ INVALID = ... # type: IconSize
+ LARGE_TOOLBAR = ... # type: IconSize
+ MENU = ... # type: IconSize
+ SMALL_TOOLBAR = ... # type: IconSize
+
+ @staticmethod
+ def from_name(name: builtins.str) -> builtins.int: ...
+
+ @staticmethod
+ def get_name(size: builtins.int) -> builtins.str: ...
+
+ @staticmethod
+ def lookup(size: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def lookup_for_settings(settings: Settings, size: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def register(name: builtins.str, width: builtins.int, height: builtins.int) -> builtins.int: ...
+
+ @staticmethod
+ def register_alias(alias: builtins.str, target: builtins.int) -> None: ...
+
+
+class IconThemeError(GObject.GEnum, builtins.int):
+ FAILED = ... # type: IconThemeError
+ NOT_FOUND = ... # type: IconThemeError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class IconViewDropPosition(GObject.GEnum, builtins.int):
+ DROP_ABOVE = ... # type: IconViewDropPosition
+ DROP_BELOW = ... # type: IconViewDropPosition
+ DROP_INTO = ... # type: IconViewDropPosition
+ DROP_LEFT = ... # type: IconViewDropPosition
+ DROP_RIGHT = ... # type: IconViewDropPosition
+ NO_DROP = ... # type: IconViewDropPosition
+
+
+class ImageType(GObject.GEnum, builtins.int):
+ ANIMATION = ... # type: ImageType
+ EMPTY = ... # type: ImageType
+ GICON = ... # type: ImageType
+ ICON_NAME = ... # type: ImageType
+ ICON_SET = ... # type: ImageType
+ PIXBUF = ... # type: ImageType
+ STOCK = ... # type: ImageType
+ SURFACE = ... # type: ImageType
+
+
+class InputPurpose(GObject.GEnum, builtins.int):
+ ALPHA = ... # type: InputPurpose
+ DIGITS = ... # type: InputPurpose
+ EMAIL = ... # type: InputPurpose
+ FREE_FORM = ... # type: InputPurpose
+ NAME = ... # type: InputPurpose
+ NUMBER = ... # type: InputPurpose
+ PASSWORD = ... # type: InputPurpose
+ PHONE = ... # type: InputPurpose
+ PIN = ... # type: InputPurpose
+ TERMINAL = ... # type: InputPurpose
+ URL = ... # type: InputPurpose
+
+
+class Justification(GObject.GEnum, builtins.int):
+ CENTER = ... # type: Justification
+ FILL = ... # type: Justification
+ LEFT = ... # type: Justification
+ RIGHT = ... # type: Justification
+
+
+class LevelBarMode(GObject.GEnum, builtins.int):
+ CONTINUOUS = ... # type: LevelBarMode
+ DISCRETE = ... # type: LevelBarMode
+
+
+class License(GObject.GEnum, builtins.int):
+ AGPL_3_0 = ... # type: License
+ AGPL_3_0_ONLY = ... # type: License
+ APACHE_2_0 = ... # type: License
+ ARTISTIC = ... # type: License
+ BSD = ... # type: License
+ BSD_3 = ... # type: License
+ CUSTOM = ... # type: License
+ GPL_2_0 = ... # type: License
+ GPL_2_0_ONLY = ... # type: License
+ GPL_3_0 = ... # type: License
+ GPL_3_0_ONLY = ... # type: License
+ LGPL_2_1 = ... # type: License
+ LGPL_2_1_ONLY = ... # type: License
+ LGPL_3_0 = ... # type: License
+ LGPL_3_0_ONLY = ... # type: License
+ MIT_X11 = ... # type: License
+ MPL_2_0 = ... # type: License
+ UNKNOWN = ... # type: License
+
+
+class MenuDirectionType(GObject.GEnum, builtins.int):
+ CHILD = ... # type: MenuDirectionType
+ NEXT = ... # type: MenuDirectionType
+ PARENT = ... # type: MenuDirectionType
+ PREV = ... # type: MenuDirectionType
+
+
+class MessageType(GObject.GEnum, builtins.int):
+ ERROR = ... # type: MessageType
+ INFO = ... # type: MessageType
+ OTHER = ... # type: MessageType
+ QUESTION = ... # type: MessageType
+ WARNING = ... # type: MessageType
+
+
+class MovementStep(GObject.GEnum, builtins.int):
+ BUFFER_ENDS = ... # type: MovementStep
+ DISPLAY_LINES = ... # type: MovementStep
+ DISPLAY_LINE_ENDS = ... # type: MovementStep
+ HORIZONTAL_PAGES = ... # type: MovementStep
+ LOGICAL_POSITIONS = ... # type: MovementStep
+ PAGES = ... # type: MovementStep
+ PARAGRAPHS = ... # type: MovementStep
+ PARAGRAPH_ENDS = ... # type: MovementStep
+ VISUAL_POSITIONS = ... # type: MovementStep
+ WORDS = ... # type: MovementStep
+
+
+class NotebookTab(GObject.GEnum, builtins.int):
+ FIRST = ... # type: NotebookTab
+ LAST = ... # type: NotebookTab
+
+
+class NumberUpLayout(GObject.GEnum, builtins.int):
+ BTLR = ... # type: NumberUpLayout
+ BTRL = ... # type: NumberUpLayout
+ LRBT = ... # type: NumberUpLayout
+ LRTB = ... # type: NumberUpLayout
+ RLBT = ... # type: NumberUpLayout
+ RLTB = ... # type: NumberUpLayout
+ TBLR = ... # type: NumberUpLayout
+ TBRL = ... # type: NumberUpLayout
+
+
+class Orientation(GObject.GEnum, builtins.int):
+ HORIZONTAL = ... # type: Orientation
+ VERTICAL = ... # type: Orientation
+
+
+class PackDirection(GObject.GEnum, builtins.int):
+ BTT = ... # type: PackDirection
+ LTR = ... # type: PackDirection
+ RTL = ... # type: PackDirection
+ TTB = ... # type: PackDirection
+
+
+class PackType(GObject.GEnum, builtins.int):
+ END = ... # type: PackType
+ START = ... # type: PackType
+
+
+class PadActionType(GObject.GEnum, builtins.int):
+ BUTTON = ... # type: PadActionType
+ RING = ... # type: PadActionType
+ STRIP = ... # type: PadActionType
+
+
+class PageOrientation(GObject.GEnum, builtins.int):
+ LANDSCAPE = ... # type: PageOrientation
+ PORTRAIT = ... # type: PageOrientation
+ REVERSE_LANDSCAPE = ... # type: PageOrientation
+ REVERSE_PORTRAIT = ... # type: PageOrientation
+
+
+class PageSet(GObject.GEnum, builtins.int):
+ ALL = ... # type: PageSet
+ EVEN = ... # type: PageSet
+ ODD = ... # type: PageSet
+
+
+class PanDirection(GObject.GEnum, builtins.int):
+ DOWN = ... # type: PanDirection
+ LEFT = ... # type: PanDirection
+ RIGHT = ... # type: PanDirection
+ UP = ... # type: PanDirection
+
+
+class PathPriorityType(GObject.GEnum, builtins.int):
+ APPLICATION = ... # type: PathPriorityType
+ GTK = ... # type: PathPriorityType
+ HIGHEST = ... # type: PathPriorityType
+ LOWEST = ... # type: PathPriorityType
+ RC = ... # type: PathPriorityType
+ THEME = ... # type: PathPriorityType
+
+
+class PathType(GObject.GEnum, builtins.int):
+ CLASS = ... # type: PathType
+ WIDGET = ... # type: PathType
+ WIDGET_CLASS = ... # type: PathType
+
+
+class PolicyType(GObject.GEnum, builtins.int):
+ ALWAYS = ... # type: PolicyType
+ AUTOMATIC = ... # type: PolicyType
+ EXTERNAL = ... # type: PolicyType
+ NEVER = ... # type: PolicyType
+
+
+class PopoverConstraint(GObject.GEnum, builtins.int):
+ NONE = ... # type: PopoverConstraint
+ WINDOW = ... # type: PopoverConstraint
+
+
+class PositionType(GObject.GEnum, builtins.int):
+ BOTTOM = ... # type: PositionType
+ LEFT = ... # type: PositionType
+ RIGHT = ... # type: PositionType
+ TOP = ... # type: PositionType
+
+
+class PrintDuplex(GObject.GEnum, builtins.int):
+ HORIZONTAL = ... # type: PrintDuplex
+ SIMPLEX = ... # type: PrintDuplex
+ VERTICAL = ... # type: PrintDuplex
+
+
+class PrintError(GObject.GEnum, builtins.int):
+ GENERAL = ... # type: PrintError
+ INTERNAL_ERROR = ... # type: PrintError
+ INVALID_FILE = ... # type: PrintError
+ NOMEM = ... # type: PrintError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class PrintOperationAction(GObject.GEnum, builtins.int):
+ EXPORT = ... # type: PrintOperationAction
+ PREVIEW = ... # type: PrintOperationAction
+ PRINT = ... # type: PrintOperationAction
+ PRINT_DIALOG = ... # type: PrintOperationAction
+
+
+class PrintOperationResult(GObject.GEnum, builtins.int):
+ APPLY = ... # type: PrintOperationResult
+ CANCEL = ... # type: PrintOperationResult
+ ERROR = ... # type: PrintOperationResult
+ IN_PROGRESS = ... # type: PrintOperationResult
+
+
+class PrintPages(GObject.GEnum, builtins.int):
+ ALL = ... # type: PrintPages
+ CURRENT = ... # type: PrintPages
+ RANGES = ... # type: PrintPages
+ SELECTION = ... # type: PrintPages
+
+
+class PrintQuality(GObject.GEnum, builtins.int):
+ DRAFT = ... # type: PrintQuality
+ HIGH = ... # type: PrintQuality
+ LOW = ... # type: PrintQuality
+ NORMAL = ... # type: PrintQuality
+
+
+class PrintStatus(GObject.GEnum, builtins.int):
+ FINISHED = ... # type: PrintStatus
+ FINISHED_ABORTED = ... # type: PrintStatus
+ GENERATING_DATA = ... # type: PrintStatus
+ INITIAL = ... # type: PrintStatus
+ PENDING = ... # type: PrintStatus
+ PENDING_ISSUE = ... # type: PrintStatus
+ PREPARING = ... # type: PrintStatus
+ PRINTING = ... # type: PrintStatus
+ SENDING_DATA = ... # type: PrintStatus
+
+
+class PropagationPhase(GObject.GEnum, builtins.int):
+ BUBBLE = ... # type: PropagationPhase
+ CAPTURE = ... # type: PropagationPhase
+ NONE = ... # type: PropagationPhase
+ TARGET = ... # type: PropagationPhase
+
+
+class RcTokenType(GObject.GEnum, builtins.int):
+ ACTIVE = ... # type: RcTokenType
+ APPLICATION = ... # type: RcTokenType
+ BASE = ... # type: RcTokenType
+ BG = ... # type: RcTokenType
+ BG_PIXMAP = ... # type: RcTokenType
+ BIND = ... # type: RcTokenType
+ BINDING = ... # type: RcTokenType
+ CLASS = ... # type: RcTokenType
+ COLOR = ... # type: RcTokenType
+ ENGINE = ... # type: RcTokenType
+ FG = ... # type: RcTokenType
+ FONT = ... # type: RcTokenType
+ FONTSET = ... # type: RcTokenType
+ FONT_NAME = ... # type: RcTokenType
+ GTK = ... # type: RcTokenType
+ HIGHEST = ... # type: RcTokenType
+ IM_MODULE_FILE = ... # type: RcTokenType
+ IM_MODULE_PATH = ... # type: RcTokenType
+ INCLUDE = ... # type: RcTokenType
+ INSENSITIVE = ... # type: RcTokenType
+ INVALID = ... # type: RcTokenType
+ LAST = ... # type: RcTokenType
+ LOWEST = ... # type: RcTokenType
+ LTR = ... # type: RcTokenType
+ MODULE_PATH = ... # type: RcTokenType
+ NORMAL = ... # type: RcTokenType
+ PIXMAP_PATH = ... # type: RcTokenType
+ PRELIGHT = ... # type: RcTokenType
+ RC = ... # type: RcTokenType
+ RTL = ... # type: RcTokenType
+ SELECTED = ... # type: RcTokenType
+ STOCK = ... # type: RcTokenType
+ STYLE = ... # type: RcTokenType
+ TEXT = ... # type: RcTokenType
+ THEME = ... # type: RcTokenType
+ UNBIND = ... # type: RcTokenType
+ WIDGET = ... # type: RcTokenType
+ WIDGET_CLASS = ... # type: RcTokenType
+ XTHICKNESS = ... # type: RcTokenType
+ YTHICKNESS = ... # type: RcTokenType
+
+
+class RecentChooserError(GObject.GEnum, builtins.int):
+ INVALID_URI = ... # type: RecentChooserError
+ NOT_FOUND = ... # type: RecentChooserError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class RecentManagerError(GObject.GEnum, builtins.int):
+ INVALID_ENCODING = ... # type: RecentManagerError
+ INVALID_URI = ... # type: RecentManagerError
+ NOT_FOUND = ... # type: RecentManagerError
+ NOT_REGISTERED = ... # type: RecentManagerError
+ READ = ... # type: RecentManagerError
+ UNKNOWN = ... # type: RecentManagerError
+ WRITE = ... # type: RecentManagerError
+
+ @staticmethod
+ def quark() -> builtins.int: ...
+
+
+class RecentSortType(GObject.GEnum, builtins.int):
+ CUSTOM = ... # type: RecentSortType
+ LRU = ... # type: RecentSortType
+ MRU = ... # type: RecentSortType
+ NONE = ... # type: RecentSortType
+
+
+class ReliefStyle(GObject.GEnum, builtins.int):
+ HALF = ... # type: ReliefStyle
+ NONE = ... # type: ReliefStyle
+ NORMAL = ... # type: ReliefStyle
+
+
+class ResizeMode(GObject.GEnum, builtins.int):
+ IMMEDIATE = ... # type: ResizeMode
+ PARENT = ... # type: ResizeMode
+ QUEUE = ... # type: ResizeMode
+
+
+class ResponseType(GObject.GEnum, builtins.int):
+ ACCEPT = ... # type: ResponseType
+ APPLY = ... # type: ResponseType
+ CANCEL = ... # type: ResponseType
+ CLOSE = ... # type: ResponseType
+ DELETE_EVENT = ... # type: ResponseType
+ HELP = ... # type: ResponseType
+ NO = ... # type: ResponseType
+ NONE = ... # type: ResponseType
+ OK = ... # type: ResponseType
+ REJECT = ... # type: ResponseType
+ YES = ... # type: ResponseType
+
+
+class RevealerTransitionType(GObject.GEnum, builtins.int):
+ CROSSFADE = ... # type: RevealerTransitionType
+ NONE = ... # type: RevealerTransitionType
+ SLIDE_DOWN = ... # type: RevealerTransitionType
+ SLIDE_LEFT = ... # type: RevealerTransitionType
+ SLIDE_RIGHT = ... # type: RevealerTransitionType
+ SLIDE_UP = ... # type: RevealerTransitionType
+
+
+class ScrollStep(GObject.GEnum, builtins.int):
+ ENDS = ... # type: ScrollStep
+ HORIZONTAL_ENDS = ... # type: ScrollStep
+ HORIZONTAL_PAGES = ... # type: ScrollStep
+ HORIZONTAL_STEPS = ... # type: ScrollStep
+ PAGES = ... # type: ScrollStep
+ STEPS = ... # type: ScrollStep
+
+
+class ScrollType(GObject.GEnum, builtins.int):
+ END = ... # type: ScrollType
+ JUMP = ... # type: ScrollType
+ NONE = ... # type: ScrollType
+ PAGE_BACKWARD = ... # type: ScrollType
+ PAGE_DOWN = ... # type: ScrollType
+ PAGE_FORWARD = ... # type: ScrollType
+ PAGE_LEFT = ... # type: ScrollType
+ PAGE_RIGHT = ... # type: ScrollType
+ PAGE_UP = ... # type: ScrollType
+ START = ... # type: ScrollType
+ STEP_BACKWARD = ... # type: ScrollType
+ STEP_DOWN = ... # type: ScrollType
+ STEP_FORWARD = ... # type: ScrollType
+ STEP_LEFT = ... # type: ScrollType
+ STEP_RIGHT = ... # type: ScrollType
+ STEP_UP = ... # type: ScrollType
+
+
+class ScrollablePolicy(GObject.GEnum, builtins.int):
+ MINIMUM = ... # type: ScrollablePolicy
+ NATURAL = ... # type: ScrollablePolicy
+
+
+class SelectionMode(GObject.GEnum, builtins.int):
+ BROWSE = ... # type: SelectionMode
+ MULTIPLE = ... # type: SelectionMode
+ NONE = ... # type: SelectionMode
+ SINGLE = ... # type: SelectionMode
+
+
+class SensitivityType(GObject.GEnum, builtins.int):
+ AUTO = ... # type: SensitivityType
+ OFF = ... # type: SensitivityType
+ ON = ... # type: SensitivityType
+
+
+class ShadowType(GObject.GEnum, builtins.int):
+ ETCHED_IN = ... # type: ShadowType
+ ETCHED_OUT = ... # type: ShadowType
+ IN = ... # type: ShadowType
+ NONE = ... # type: ShadowType
+ OUT = ... # type: ShadowType
+
+
+class ShortcutType(GObject.GEnum, builtins.int):
+ ACCELERATOR = ... # type: ShortcutType
+ GESTURE = ... # type: ShortcutType
+ GESTURE_PINCH = ... # type: ShortcutType
+ GESTURE_ROTATE_CLOCKWISE = ... # type: ShortcutType
+ GESTURE_ROTATE_COUNTERCLOCKWISE = ... # type: ShortcutType
+ GESTURE_STRETCH = ... # type: ShortcutType
+ GESTURE_TWO_FINGER_SWIPE_LEFT = ... # type: ShortcutType
+ GESTURE_TWO_FINGER_SWIPE_RIGHT = ... # type: ShortcutType
+
+
+class SizeGroupMode(GObject.GEnum, builtins.int):
+ BOTH = ... # type: SizeGroupMode
+ HORIZONTAL = ... # type: SizeGroupMode
+ NONE = ... # type: SizeGroupMode
+ VERTICAL = ... # type: SizeGroupMode
+
+
+class SizeRequestMode(GObject.GEnum, builtins.int):
+ CONSTANT_SIZE = ... # type: SizeRequestMode
+ HEIGHT_FOR_WIDTH = ... # type: SizeRequestMode
+ WIDTH_FOR_HEIGHT = ... # type: SizeRequestMode
+
+
+class SortType(GObject.GEnum, builtins.int):
+ ASCENDING = ... # type: SortType
+ DESCENDING = ... # type: SortType
+
+
+class SpinButtonUpdatePolicy(GObject.GEnum, builtins.int):
+ ALWAYS = ... # type: SpinButtonUpdatePolicy
+ IF_VALID = ... # type: SpinButtonUpdatePolicy
+
+
+class SpinType(GObject.GEnum, builtins.int):
+ END = ... # type: SpinType
+ HOME = ... # type: SpinType
+ PAGE_BACKWARD = ... # type: SpinType
+ PAGE_FORWARD = ... # type: SpinType
+ STEP_BACKWARD = ... # type: SpinType
+ STEP_FORWARD = ... # type: SpinType
+ USER_DEFINED = ... # type: SpinType
+
+
+class StackTransitionType(GObject.GEnum, builtins.int):
+ CROSSFADE = ... # type: StackTransitionType
+ NONE = ... # type: StackTransitionType
+ OVER_DOWN = ... # type: StackTransitionType
+ OVER_DOWN_UP = ... # type: StackTransitionType
+ OVER_LEFT = ... # type: StackTransitionType
+ OVER_LEFT_RIGHT = ... # type: StackTransitionType
+ OVER_RIGHT = ... # type: StackTransitionType
+ OVER_RIGHT_LEFT = ... # type: StackTransitionType
+ OVER_UP = ... # type: StackTransitionType
+ OVER_UP_DOWN = ... # type: StackTransitionType
+ SLIDE_DOWN = ... # type: StackTransitionType
+ SLIDE_LEFT = ... # type: StackTransitionType
+ SLIDE_LEFT_RIGHT = ... # type: StackTransitionType
+ SLIDE_RIGHT = ... # type: StackTransitionType
+ SLIDE_UP = ... # type: StackTransitionType
+ SLIDE_UP_DOWN = ... # type: StackTransitionType
+ UNDER_DOWN = ... # type: StackTransitionType
+ UNDER_LEFT = ... # type: StackTransitionType
+ UNDER_RIGHT = ... # type: StackTransitionType
+ UNDER_UP = ... # type: StackTransitionType
+
+
+class StateType(GObject.GEnum, builtins.int):
+ ACTIVE = ... # type: StateType
+ FOCUSED = ... # type: StateType
+ INCONSISTENT = ... # type: StateType
+ INSENSITIVE = ... # type: StateType
+ NORMAL = ... # type: StateType
+ PRELIGHT = ... # type: StateType
+ SELECTED = ... # type: StateType
+
+
+class TextBufferTargetInfo(GObject.GEnum, builtins.int):
+ BUFFER_CONTENTS = ... # type: TextBufferTargetInfo
+ RICH_TEXT = ... # type: TextBufferTargetInfo
+ TEXT = ... # type: TextBufferTargetInfo
+
+
+class TextDirection(GObject.GEnum, builtins.int):
+ LTR = ... # type: TextDirection
+ NONE = ... # type: TextDirection
+ RTL = ... # type: TextDirection
+
+
+class TextExtendSelection(GObject.GEnum, builtins.int):
+ LINE = ... # type: TextExtendSelection
+ WORD = ... # type: TextExtendSelection
+
+
+class TextViewLayer(GObject.GEnum, builtins.int):
+ ABOVE = ... # type: TextViewLayer
+ ABOVE_TEXT = ... # type: TextViewLayer
+ BELOW = ... # type: TextViewLayer
+ BELOW_TEXT = ... # type: TextViewLayer
+
+
+class TextWindowType(GObject.GEnum, builtins.int):
+ BOTTOM = ... # type: TextWindowType
+ LEFT = ... # type: TextWindowType
+ PRIVATE = ... # type: TextWindowType
+ RIGHT = ... # type: TextWindowType
+ TEXT = ... # type: TextWindowType
+ TOP = ... # type: TextWindowType
+ WIDGET = ... # type: TextWindowType
+
+
+class ToolbarSpaceStyle(GObject.GEnum, builtins.int):
+ EMPTY = ... # type: ToolbarSpaceStyle
+ LINE = ... # type: ToolbarSpaceStyle
+
+
+class ToolbarStyle(GObject.GEnum, builtins.int):
+ BOTH = ... # type: ToolbarStyle
+ BOTH_HORIZ = ... # type: ToolbarStyle
+ ICONS = ... # type: ToolbarStyle
+ TEXT = ... # type: ToolbarStyle
+
+
+class TreeViewColumnSizing(GObject.GEnum, builtins.int):
+ AUTOSIZE = ... # type: TreeViewColumnSizing
+ FIXED = ... # type: TreeViewColumnSizing
+ GROW_ONLY = ... # type: TreeViewColumnSizing
+
+
+class TreeViewDropPosition(GObject.GEnum, builtins.int):
+ AFTER = ... # type: TreeViewDropPosition
+ BEFORE = ... # type: TreeViewDropPosition
+ INTO_OR_AFTER = ... # type: TreeViewDropPosition
+ INTO_OR_BEFORE = ... # type: TreeViewDropPosition
+
+
+class TreeViewGridLines(GObject.GEnum, builtins.int):
+ BOTH = ... # type: TreeViewGridLines
+ HORIZONTAL = ... # type: TreeViewGridLines
+ NONE = ... # type: TreeViewGridLines
+ VERTICAL = ... # type: TreeViewGridLines
+
+
+class Unit(GObject.GEnum, builtins.int):
+ INCH = ... # type: Unit
+ MM = ... # type: Unit
+ NONE = ... # type: Unit
+ POINTS = ... # type: Unit
+
+
+class WidgetHelpType(GObject.GEnum, builtins.int):
+ TOOLTIP = ... # type: WidgetHelpType
+ WHATS_THIS = ... # type: WidgetHelpType
+
+
+class WindowPosition(GObject.GEnum, builtins.int):
+ CENTER = ... # type: WindowPosition
+ CENTER_ALWAYS = ... # type: WindowPosition
+ CENTER_ON_PARENT = ... # type: WindowPosition
+ MOUSE = ... # type: WindowPosition
+ NONE = ... # type: WindowPosition
+
+
+class WindowType(GObject.GEnum, builtins.int):
+ POPUP = ... # type: WindowType
+ TOPLEVEL = ... # type: WindowType
+
+
+class WrapMode(GObject.GEnum, builtins.int):
+ CHAR = ... # type: WrapMode
+ NONE = ... # type: WrapMode
+ WORD = ... # type: WrapMode
+ WORD_CHAR = ... # type: WrapMode
+
+
+AccelGroupActivate = typing.Callable[[AccelGroup, GObject.Object, builtins.int, Gdk.ModifierType], builtins.bool]
+AccelGroupFindFunc = typing.Callable[[AccelKey, GObject.Closure, typing.Optional[builtins.object]], builtins.bool]
+AccelMapForeach = typing.Callable[[typing.Optional[builtins.object], builtins.str, builtins.int, Gdk.ModifierType, builtins.bool], None]
+AssistantPageFunc = typing.Callable[[builtins.int, typing.Optional[builtins.object]], builtins.int]
+BuilderConnectFunc = typing.Callable[[Builder, GObject.Object, builtins.str, builtins.str, typing.Optional[GObject.Object], GObject.ConnectFlags, typing.Optional[builtins.object]], None]
+CalendarDetailFunc = typing.Callable[[Calendar, builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], typing.Optional[builtins.str]]
+Callback = typing.Callable[[Widget, typing.Optional[builtins.object]], None]
+CellAllocCallback = typing.Callable[[CellRenderer, Gdk.Rectangle, Gdk.Rectangle, typing.Optional[builtins.object]], builtins.bool]
+CellCallback = typing.Callable[[CellRenderer, typing.Optional[builtins.object]], builtins.bool]
+CellLayoutDataFunc = typing.Callable[[CellLayout, CellRenderer, TreeModel, TreeIter, typing.Optional[builtins.object]], None]
+ClipboardClearFunc = typing.Callable[[Clipboard, typing.Optional[builtins.object]], None]
+ClipboardGetFunc = typing.Callable[[Clipboard, SelectionData, builtins.int, typing.Optional[builtins.object]], None]
+ClipboardImageReceivedFunc = typing.Callable[[Clipboard, GdkPixbuf.Pixbuf, typing.Optional[builtins.object]], None]
+ClipboardReceivedFunc = typing.Callable[[Clipboard, SelectionData, typing.Optional[builtins.object]], None]
+ClipboardRichTextReceivedFunc = typing.Callable[[Clipboard, Gdk.Atom, typing.Optional[builtins.str], builtins.int, typing.Optional[builtins.object]], None]
+ClipboardTargetsReceivedFunc = typing.Callable[[Clipboard, typing.Optional[typing.Sequence[Gdk.Atom]], typing.Optional[builtins.object]], None]
+ClipboardTextReceivedFunc = typing.Callable[[Clipboard, typing.Optional[builtins.str], typing.Optional[builtins.object]], None]
+ClipboardURIReceivedFunc = typing.Callable[[Clipboard, typing.Sequence[builtins.str], typing.Optional[builtins.object]], None]
+ColorSelectionChangePaletteFunc = typing.Callable[[typing.Sequence[Gdk.Color]], None]
+ColorSelectionChangePaletteWithScreenFunc = typing.Callable[[Gdk.Screen, typing.Sequence[Gdk.Color]], None]
+EntryCompletionMatchFunc = typing.Callable[[EntryCompletion, builtins.str, TreeIter, typing.Optional[builtins.object]], builtins.bool]
+FileFilterFunc = typing.Callable[[FileFilterInfo, typing.Optional[builtins.object]], builtins.bool]
+FlowBoxCreateWidgetFunc = typing.Callable[[GObject.Object, typing.Optional[builtins.object]], Widget]
+FlowBoxFilterFunc = typing.Callable[[FlowBoxChild, typing.Optional[builtins.object]], builtins.bool]
+FlowBoxForeachFunc = typing.Callable[[FlowBox, FlowBoxChild, typing.Optional[builtins.object]], None]
+FlowBoxSortFunc = typing.Callable[[FlowBoxChild, FlowBoxChild, typing.Optional[builtins.object]], builtins.int]
+FontFilterFunc = typing.Callable[[Pango.FontFamily, Pango.FontFace, typing.Optional[builtins.object]], builtins.bool]
+IconViewForeachFunc = typing.Callable[[IconView, TreePath, typing.Optional[builtins.object]], None]
+KeySnoopFunc = typing.Callable[[Widget, Gdk.EventKey, typing.Optional[builtins.object]], builtins.int]
+ListBoxCreateWidgetFunc = typing.Callable[[GObject.Object, typing.Optional[builtins.object]], Widget]
+ListBoxFilterFunc = typing.Callable[[ListBoxRow, typing.Optional[builtins.object]], builtins.bool]
+ListBoxForeachFunc = typing.Callable[[ListBox, ListBoxRow, typing.Optional[builtins.object]], None]
+ListBoxSortFunc = typing.Callable[[ListBoxRow, ListBoxRow, typing.Optional[builtins.object]], builtins.int]
+ListBoxUpdateHeaderFunc = typing.Callable[[ListBoxRow, typing.Optional[ListBoxRow], typing.Optional[builtins.object]], None]
+MenuDetachFunc = typing.Callable[[Widget, Menu], None]
+MenuPositionFunc = typing.Callable[[Menu, builtins.int, builtins.int, typing.Optional[builtins.object]], typing.Tuple[builtins.int, builtins.int, builtins.bool]]
+ModuleDisplayInitFunc = typing.Callable[[Gdk.Display], None]
+ModuleInitFunc = typing.Callable[[typing.Optional[typing.Sequence[builtins.str]]], None]
+PageSetupDoneFunc = typing.Callable[[PageSetup, typing.Optional[builtins.object]], None]
+PrintSettingsFunc = typing.Callable[[builtins.str, builtins.str, typing.Optional[builtins.object]], None]
+RcPropertyParser = typing.Callable[[GObject.ParamSpec, GLib.String, GObject.Value], builtins.bool]
+RecentFilterFunc = typing.Callable[[RecentFilterInfo, typing.Optional[builtins.object]], builtins.bool]
+RecentSortFunc = typing.Callable[[RecentInfo, RecentInfo, typing.Optional[builtins.object]], builtins.int]
+StylePropertyParser = typing.Callable[[builtins.str, GObject.Value], builtins.bool]
+TextBufferDeserializeFunc = typing.Callable[[TextBuffer, TextBuffer, TextIter, builtins.bytes, builtins.bool, typing.Optional[builtins.object]], builtins.bool]
+TextBufferSerializeFunc = typing.Callable[[TextBuffer, TextBuffer, TextIter, TextIter, builtins.int, typing.Optional[builtins.object]], typing.Optional[builtins.int]]
+TextCharPredicate = typing.Callable[[builtins.str, typing.Optional[builtins.object]], builtins.bool]
+TextTagTableForeach = typing.Callable[[TextTag, typing.Optional[builtins.object]], None]
+TickCallback = typing.Callable[[Widget, Gdk.FrameClock, typing.Optional[builtins.object]], builtins.bool]
+TranslateFunc = typing.Callable[[builtins.str, typing.Optional[builtins.object]], builtins.str]
+TreeCellDataFunc = typing.Callable[[TreeViewColumn, CellRenderer, TreeModel, TreeIter, typing.Optional[builtins.object]], None]
+TreeDestroyCountFunc = typing.Callable[[TreeView, TreePath, builtins.int, typing.Optional[builtins.object]], None]
+TreeIterCompareFunc = typing.Callable[[TreeModel, TreeIter, TreeIter, typing.Optional[builtins.object]], builtins.int]
+TreeModelFilterModifyFunc = typing.Callable[[TreeModel, TreeIter, builtins.int, typing.Optional[builtins.object]], GObject.Value]
+TreeModelFilterVisibleFunc = typing.Callable[[TreeModel, TreeIter, typing.Optional[builtins.object]], builtins.bool]
+TreeModelForeachFunc = typing.Callable[[TreeModel, TreePath, TreeIter, typing.Optional[builtins.object]], builtins.bool]
+TreeSelectionForeachFunc = typing.Callable[[TreeModel, TreePath, TreeIter, typing.Optional[builtins.object]], None]
+TreeSelectionFunc = typing.Callable[[TreeSelection, TreeModel, TreePath, builtins.bool, typing.Optional[builtins.object]], builtins.bool]
+TreeViewColumnDropFunc = typing.Callable[[TreeView, TreeViewColumn, TreeViewColumn, TreeViewColumn, typing.Optional[builtins.object]], builtins.bool]
+TreeViewMappingFunc = typing.Callable[[TreeView, TreePath, typing.Optional[builtins.object]], None]
+TreeViewRowSeparatorFunc = typing.Callable[[TreeModel, TreeIter, typing.Optional[builtins.object]], builtins.bool]
+TreeViewSearchEqualFunc = typing.Callable[[TreeModel, builtins.int, builtins.str, TreeIter, typing.Optional[builtins.object]], builtins.bool]
+TreeViewSearchPositionFunc = typing.Callable[[TreeView, Widget, typing.Optional[builtins.object]], None]
+
+
+def accel_groups_activate(object: GObject.Object, accel_key: builtins.int, accel_mods: Gdk.ModifierType) -> builtins.bool: ...
+
+
+def accel_groups_from_object(object: GObject.Object) -> typing.Sequence[AccelGroup]: ...
+
+
+def accelerator_get_default_mod_mask() -> Gdk.ModifierType: ...
+
+
+def accelerator_get_label(accelerator_key: builtins.int, accelerator_mods: Gdk.ModifierType) -> builtins.str: ...
+
+
+def accelerator_get_label_with_keycode(display: typing.Optional[Gdk.Display], accelerator_key: builtins.int, keycode: builtins.int, accelerator_mods: Gdk.ModifierType) -> builtins.str: ...
+
+
+def accelerator_name(accelerator_key: builtins.int, accelerator_mods: Gdk.ModifierType) -> builtins.str: ...
+
+
+def accelerator_name_with_keycode(display: typing.Optional[Gdk.Display], accelerator_key: builtins.int, keycode: builtins.int, accelerator_mods: Gdk.ModifierType) -> builtins.str: ...
+
+
+def accelerator_parse(accelerator: builtins.str) -> typing.Tuple[builtins.int, Gdk.ModifierType]: ...
+
+
+def accelerator_parse_with_keycode(accelerator: builtins.str) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int], Gdk.ModifierType]: ...
+
+
+def accelerator_set_default_mod_mask(default_mod_mask: Gdk.ModifierType) -> None: ...
+
+
+def accelerator_valid(keyval: builtins.int, modifiers: Gdk.ModifierType) -> builtins.bool: ...
+
+
+def alternative_dialog_button_order(screen: typing.Optional[Gdk.Screen]) -> builtins.bool: ...
+
+
+def binding_entry_add_signal_from_string(binding_set: BindingSet, signal_desc: builtins.str) -> GLib.TokenType: ...
+
+
+def binding_entry_add_signall(binding_set: BindingSet, keyval: builtins.int, modifiers: Gdk.ModifierType, signal_name: builtins.str, binding_args: typing.Sequence[BindingArg]) -> None: ...
+
+
+def binding_entry_remove(binding_set: BindingSet, keyval: builtins.int, modifiers: Gdk.ModifierType) -> None: ...
+
+
+def binding_entry_skip(binding_set: BindingSet, keyval: builtins.int, modifiers: Gdk.ModifierType) -> None: ...
+
+
+def binding_set_find(set_name: builtins.str) -> typing.Optional[BindingSet]: ...
+
+
+def bindings_activate(object: GObject.Object, keyval: builtins.int, modifiers: Gdk.ModifierType) -> builtins.bool: ...
+
+
+def bindings_activate_event(object: GObject.Object, event: Gdk.EventKey) -> builtins.bool: ...
+
+
+def builder_error_quark() -> builtins.int: ...
+
+
+def cairo_should_draw_window(cr: cairo.Context, window: Gdk.Window) -> builtins.bool: ...
+
+
+def cairo_transform_to_window(cr: cairo.Context, widget: Widget, window: Gdk.Window) -> None: ...
+
+
+def check_version(required_major: builtins.int, required_minor: builtins.int, required_micro: builtins.int) -> typing.Optional[builtins.str]: ...
+
+
+def css_provider_error_quark() -> builtins.int: ...
+
+
+def device_grab_add(widget: Widget, device: Gdk.Device, block_others: builtins.bool) -> None: ...
+
+
+def device_grab_remove(widget: Widget, device: Gdk.Device) -> None: ...
+
+
+def disable_setlocale() -> None: ...
+
+
+def distribute_natural_allocation(extra_space: builtins.int, n_requested_sizes: builtins.int, sizes: RequestedSize) -> builtins.int: ...
+
+
+def drag_cancel(context: Gdk.DragContext) -> None: ...
+
+
+def drag_finish(context: Gdk.DragContext, success: builtins.bool, del_: builtins.bool, time_: builtins.int) -> None: ...
+
+
+def drag_get_source_widget(context: Gdk.DragContext) -> typing.Optional[Widget]: ...
+
+
+def drag_set_icon_default(context: Gdk.DragContext) -> None: ...
+
+
+def drag_set_icon_gicon(context: Gdk.DragContext, icon: Gio.Icon, hot_x: builtins.int, hot_y: builtins.int) -> None: ...
+
+
+def drag_set_icon_name(context: Gdk.DragContext, icon_name: builtins.str, hot_x: builtins.int, hot_y: builtins.int) -> None: ...
+
+
+def drag_set_icon_pixbuf(context: Gdk.DragContext, pixbuf: GdkPixbuf.Pixbuf, hot_x: builtins.int, hot_y: builtins.int) -> None: ...
+
+
+def drag_set_icon_stock(context: Gdk.DragContext, stock_id: builtins.str, hot_x: builtins.int, hot_y: builtins.int) -> None: ...
+
+
+def drag_set_icon_surface(context: Gdk.DragContext, surface: cairo.Surface) -> None: ...
+
+
+def drag_set_icon_widget(context: Gdk.DragContext, widget: Widget, hot_x: builtins.int, hot_y: builtins.int) -> None: ...
+
+
+def draw_insertion_cursor(widget: Widget, cr: cairo.Context, location: Gdk.Rectangle, is_primary: builtins.bool, direction: TextDirection, draw_arrow: builtins.bool) -> None: ...
+
+
+def events_pending() -> builtins.bool: ...
+
+
+def false() -> builtins.bool: ...
+
+
+def file_chooser_error_quark() -> builtins.int: ...
+
+
+def get_binary_age() -> builtins.int: ...
+
+
+def get_current_event() -> typing.Optional[Gdk.Event]: ...
+
+
+def get_current_event_device() -> typing.Optional[Gdk.Device]: ...
+
+
+def get_current_event_state() -> typing.Tuple[builtins.bool, Gdk.ModifierType]: ...
+
+
+def get_current_event_time() -> builtins.int: ...
+
+
+def get_debug_flags() -> builtins.int: ...
+
+
+def get_default_language() -> Pango.Language: ...
+
+
+def get_event_widget(event: Gdk.Event) -> typing.Optional[Widget]: ...
+
+
+def get_interface_age() -> builtins.int: ...
+
+
+def get_locale_direction() -> TextDirection: ...
+
+
+def get_major_version() -> builtins.int: ...
+
+
+def get_micro_version() -> builtins.int: ...
+
+
+def get_minor_version() -> builtins.int: ...
+
+
+def get_option_group(open_default_display: builtins.bool) -> GLib.OptionGroup: ...
+
+
+def grab_get_current() -> typing.Optional[Widget]: ...
+
+
+def icon_size_from_name(name: builtins.str) -> builtins.int: ...
+
+
+def icon_size_get_name(size: builtins.int) -> builtins.str: ...
+
+
+def icon_size_lookup(size: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+
+def icon_size_lookup_for_settings(settings: Settings, size: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+
+def icon_size_register(name: builtins.str, width: builtins.int, height: builtins.int) -> builtins.int: ...
+
+
+def icon_size_register_alias(alias: builtins.str, target: builtins.int) -> None: ...
+
+
+def icon_theme_error_quark() -> builtins.int: ...
+
+
+def init(argv: typing.Optional[typing.Sequence[builtins.str]]) -> typing.Sequence[builtins.str]: ...
+
+
+def init_check(argv: typing.Optional[typing.Sequence[builtins.str]]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+
+def init_with_args(argv: typing.Optional[typing.Sequence[builtins.str]], parameter_string: typing.Optional[builtins.str], entries: typing.Sequence[GLib.OptionEntry], translation_domain: typing.Optional[builtins.str]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+
+def key_snooper_remove(snooper_handler_id: builtins.int) -> None: ...
+
+
+def main() -> None: ...
+
+
+def main_do_event(event: Gdk.Event) -> None: ...
+
+
+def main_iteration() -> builtins.bool: ...
+
+
+def main_iteration_do(blocking: builtins.bool) -> builtins.bool: ...
+
+
+def main_level() -> builtins.int: ...
+
+
+def main_quit() -> None: ...
+
+
+def paint_arrow(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], arrow_type: ArrowType, fill: builtins.bool, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_box(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_box_gap(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, gap_side: PositionType, gap_x: builtins.int, gap_width: builtins.int) -> None: ...
+
+
+def paint_check(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_diamond(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_expander(style: Style, cr: cairo.Context, state_type: StateType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, expander_style: ExpanderStyle) -> None: ...
+
+
+def paint_extension(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, gap_side: PositionType) -> None: ...
+
+
+def paint_flat_box(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_focus(style: Style, cr: cairo.Context, state_type: StateType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_handle(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, orientation: Orientation) -> None: ...
+
+
+def paint_hline(style: Style, cr: cairo.Context, state_type: StateType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x1: builtins.int, x2: builtins.int, y: builtins.int) -> None: ...
+
+
+def paint_layout(style: Style, cr: cairo.Context, state_type: StateType, use_text: builtins.bool, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, layout: Pango.Layout) -> None: ...
+
+
+def paint_option(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_resize_grip(style: Style, cr: cairo.Context, state_type: StateType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], edge: Gdk.WindowEdge, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_shadow(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_shadow_gap(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, gap_side: PositionType, gap_x: builtins.int, gap_width: builtins.int) -> None: ...
+
+
+def paint_slider(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int, orientation: Orientation) -> None: ...
+
+
+def paint_spinner(style: Style, cr: cairo.Context, state_type: StateType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], step: builtins.int, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_tab(style: Style, cr: cairo.Context, state_type: StateType, shadow_type: ShadowType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+
+def paint_vline(style: Style, cr: cairo.Context, state_type: StateType, widget: typing.Optional[Widget], detail: typing.Optional[builtins.str], y1_: builtins.int, y2_: builtins.int, x: builtins.int) -> None: ...
+
+
+def paper_size_get_default() -> builtins.str: ...
+
+
+def paper_size_get_paper_sizes(include_custom: builtins.bool) -> typing.Sequence[PaperSize]: ...
+
+
+def parse_args(argv: typing.Sequence[builtins.str]) -> typing.Tuple[builtins.bool, typing.Sequence[builtins.str]]: ...
+
+
+def print_error_quark() -> builtins.int: ...
+
+
+def print_run_page_setup_dialog(parent: typing.Optional[Window], page_setup: typing.Optional[PageSetup], settings: PrintSettings) -> PageSetup: ...
+
+
+def print_run_page_setup_dialog_async(parent: typing.Optional[Window], page_setup: typing.Optional[PageSetup], settings: PrintSettings, done_cb: PageSetupDoneFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+
+def propagate_event(widget: Widget, event: Gdk.Event) -> None: ...
+
+
+def rc_add_default_file(filename: builtins.str) -> None: ...
+
+
+def rc_find_module_in_path(module_file: builtins.str) -> builtins.str: ...
+
+
+def rc_find_pixmap_in_path(settings: Settings, scanner: GLib.Scanner, pixmap_file: builtins.str) -> builtins.str: ...
+
+
+def rc_get_default_files() -> typing.Sequence[builtins.str]: ...
+
+
+def rc_get_im_module_file() -> builtins.str: ...
+
+
+def rc_get_im_module_path() -> builtins.str: ...
+
+
+def rc_get_module_dir() -> builtins.str: ...
+
+
+def rc_get_style(widget: Widget) -> Style: ...
+
+
+def rc_get_style_by_paths(settings: Settings, widget_path: typing.Optional[builtins.str], class_path: typing.Optional[builtins.str], type: GObject.GType) -> typing.Optional[Style]: ...
+
+
+def rc_get_theme_dir() -> builtins.str: ...
+
+
+def rc_parse(filename: builtins.str) -> None: ...
+
+
+def rc_parse_color(scanner: GLib.Scanner) -> typing.Tuple[builtins.int, Gdk.Color]: ...
+
+
+def rc_parse_color_full(scanner: GLib.Scanner, style: typing.Optional[RcStyle]) -> typing.Tuple[builtins.int, Gdk.Color]: ...
+
+
+def rc_parse_priority(scanner: GLib.Scanner, priority: PathPriorityType) -> builtins.int: ...
+
+
+def rc_parse_state(scanner: GLib.Scanner) -> typing.Tuple[builtins.int, StateType]: ...
+
+
+def rc_parse_string(rc_string: builtins.str) -> None: ...
+
+
+def rc_property_parse_border(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+
+def rc_property_parse_color(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+
+def rc_property_parse_enum(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+
+def rc_property_parse_flags(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+
+def rc_property_parse_requisition(pspec: GObject.ParamSpec, gstring: GLib.String, property_value: GObject.Value) -> builtins.bool: ...
+
+
+def rc_reparse_all() -> builtins.bool: ...
+
+
+def rc_reparse_all_for_settings(settings: Settings, force_load: builtins.bool) -> builtins.bool: ...
+
+
+def rc_reset_styles(settings: Settings) -> None: ...
+
+
+def rc_set_default_files(filenames: typing.Sequence[builtins.str]) -> None: ...
+
+
+def recent_chooser_error_quark() -> builtins.int: ...
+
+
+def recent_manager_error_quark() -> builtins.int: ...
+
+
+def render_activity(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_arrow(context: StyleContext, cr: cairo.Context, angle: builtins.float, x: builtins.float, y: builtins.float, size: builtins.float) -> None: ...
+
+
+def render_background(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_background_get_clip(context: StyleContext, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> Gdk.Rectangle: ...
+
+
+def render_check(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_expander(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_extension(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float, gap_side: PositionType) -> None: ...
+
+
+def render_focus(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_frame(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_frame_gap(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float, gap_side: PositionType, xy0_gap: builtins.float, xy1_gap: builtins.float) -> None: ...
+
+
+def render_handle(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_icon(context: StyleContext, cr: cairo.Context, pixbuf: GdkPixbuf.Pixbuf, x: builtins.float, y: builtins.float) -> None: ...
+
+
+def render_icon_pixbuf(context: StyleContext, source: IconSource, size: builtins.int) -> GdkPixbuf.Pixbuf: ...
+
+
+def render_icon_surface(context: StyleContext, cr: cairo.Context, surface: cairo.Surface, x: builtins.float, y: builtins.float) -> None: ...
+
+
+def render_insertion_cursor(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, layout: Pango.Layout, index: builtins.int, direction: Pango.Direction) -> None: ...
+
+
+def render_layout(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, layout: Pango.Layout) -> None: ...
+
+
+def render_line(context: StyleContext, cr: cairo.Context, x0: builtins.float, y0: builtins.float, x1: builtins.float, y1: builtins.float) -> None: ...
+
+
+def render_option(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float) -> None: ...
+
+
+def render_slider(context: StyleContext, cr: cairo.Context, x: builtins.float, y: builtins.float, width: builtins.float, height: builtins.float, orientation: Orientation) -> None: ...
+
+
+def rgb_to_hsv(r: builtins.float, g: builtins.float, b: builtins.float) -> typing.Tuple[builtins.float, builtins.float, builtins.float]: ...
+
+
+def selection_add_target(widget: Widget, selection: Gdk.Atom, target: Gdk.Atom, info: builtins.int) -> None: ...
+
+
+def selection_add_targets(widget: Widget, selection: Gdk.Atom, targets: typing.Sequence[TargetEntry]) -> None: ...
+
+
+def selection_clear_targets(widget: Widget, selection: Gdk.Atom) -> None: ...
+
+
+def selection_convert(widget: Widget, selection: Gdk.Atom, target: Gdk.Atom, time_: builtins.int) -> builtins.bool: ...
+
+
+def selection_owner_set(widget: typing.Optional[Widget], selection: Gdk.Atom, time_: builtins.int) -> builtins.bool: ...
+
+
+def selection_owner_set_for_display(display: Gdk.Display, widget: typing.Optional[Widget], selection: Gdk.Atom, time_: builtins.int) -> builtins.bool: ...
+
+
+def selection_remove_all(widget: Widget) -> None: ...
+
+
+def set_debug_flags(flags: builtins.int) -> None: ...
+
+
+def show_uri(screen: typing.Optional[Gdk.Screen], uri: builtins.str, timestamp: builtins.int) -> builtins.bool: ...
+
+
+def show_uri_on_window(parent: typing.Optional[Window], uri: builtins.str, timestamp: builtins.int) -> builtins.bool: ...
+
+
+def stock_add(items: typing.Sequence[StockItem]) -> None: ...
+
+
+def stock_add_static(items: typing.Sequence[StockItem]) -> None: ...
+
+
+def stock_list_ids() -> typing.Sequence[builtins.str]: ...
+
+
+def stock_lookup(stock_id: builtins.str) -> typing.Tuple[builtins.bool, StockItem]: ...
+
+
+def stock_set_translate_func(domain: builtins.str, func: TranslateFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+
+def target_table_free(targets: typing.Sequence[TargetEntry]) -> None: ...
+
+
+def target_table_new_from_list(list: TargetList) -> typing.Sequence[TargetEntry]: ...
+
+
+def targets_include_image(targets: typing.Sequence[Gdk.Atom], writable: builtins.bool) -> builtins.bool: ...
+
+
+def targets_include_rich_text(targets: typing.Sequence[Gdk.Atom], buffer: TextBuffer) -> builtins.bool: ...
+
+
+def targets_include_text(targets: typing.Sequence[Gdk.Atom]) -> builtins.bool: ...
+
+
+def targets_include_uri(targets: typing.Sequence[Gdk.Atom]) -> builtins.bool: ...
+
+
+def test_create_simple_window(window_title: builtins.str, dialog_text: builtins.str) -> Widget: ...
+
+
+def test_find_label(widget: Widget, label_pattern: builtins.str) -> Widget: ...
+
+
+def test_find_sibling(base_widget: Widget, widget_type: GObject.GType) -> Widget: ...
+
+
+def test_find_widget(widget: Widget, label_pattern: builtins.str, widget_type: GObject.GType) -> typing.Optional[Widget]: ...
+
+
+def test_list_all_types() -> typing.Sequence[GObject.GType]: ...
+
+
+def test_register_all_types() -> None: ...
+
+
+def test_slider_get_value(widget: Widget) -> builtins.float: ...
+
+
+def test_slider_set_perc(widget: Widget, percentage: builtins.float) -> None: ...
+
+
+def test_spin_button_click(spinner: SpinButton, button: builtins.int, upwards: builtins.bool) -> builtins.bool: ...
+
+
+def test_text_get(widget: Widget) -> builtins.str: ...
+
+
+def test_text_set(widget: Widget, string: builtins.str) -> None: ...
+
+
+def test_widget_click(widget: Widget, button: builtins.int, modifiers: Gdk.ModifierType) -> builtins.bool: ...
+
+
+def test_widget_send_key(widget: Widget, keyval: builtins.int, modifiers: Gdk.ModifierType) -> builtins.bool: ...
+
+
+def test_widget_wait_for_draw(widget: Widget) -> None: ...
+
+
+def tree_get_row_drag_data(selection_data: SelectionData) -> typing.Tuple[builtins.bool, typing.Optional[TreeModel], typing.Optional[TreePath]]: ...
+
+
+def tree_row_reference_deleted(proxy: GObject.Object, path: TreePath) -> None: ...
+
+
+def tree_row_reference_inserted(proxy: GObject.Object, path: TreePath) -> None: ...
+
+
+def tree_set_row_drag_data(selection_data: SelectionData, tree_model: TreeModel, path: TreePath) -> builtins.bool: ...
+
+
+def true() -> builtins.bool: ...
+
+
+BINARY_AGE: builtins.int
+INPUT_ERROR: builtins.int
+INTERFACE_AGE: builtins.int
+LEVEL_BAR_OFFSET_FULL: builtins.str
+LEVEL_BAR_OFFSET_HIGH: builtins.str
+LEVEL_BAR_OFFSET_LOW: builtins.str
+MAJOR_VERSION: builtins.int
+MAX_COMPOSE_LEN: builtins.int
+MICRO_VERSION: builtins.int
+MINOR_VERSION: builtins.int
+PAPER_NAME_A3: builtins.str
+PAPER_NAME_A4: builtins.str
+PAPER_NAME_A5: builtins.str
+PAPER_NAME_B5: builtins.str
+PAPER_NAME_EXECUTIVE: builtins.str
+PAPER_NAME_LEGAL: builtins.str
+PAPER_NAME_LETTER: builtins.str
+PATH_PRIO_MASK: builtins.int
+PRINT_SETTINGS_COLLATE: builtins.str
+PRINT_SETTINGS_DEFAULT_SOURCE: builtins.str
+PRINT_SETTINGS_DITHER: builtins.str
+PRINT_SETTINGS_DUPLEX: builtins.str
+PRINT_SETTINGS_FINISHINGS: builtins.str
+PRINT_SETTINGS_MEDIA_TYPE: builtins.str
+PRINT_SETTINGS_NUMBER_UP: builtins.str
+PRINT_SETTINGS_NUMBER_UP_LAYOUT: builtins.str
+PRINT_SETTINGS_N_COPIES: builtins.str
+PRINT_SETTINGS_ORIENTATION: builtins.str
+PRINT_SETTINGS_OUTPUT_BASENAME: builtins.str
+PRINT_SETTINGS_OUTPUT_BIN: builtins.str
+PRINT_SETTINGS_OUTPUT_DIR: builtins.str
+PRINT_SETTINGS_OUTPUT_FILE_FORMAT: builtins.str
+PRINT_SETTINGS_OUTPUT_URI: builtins.str
+PRINT_SETTINGS_PAGE_RANGES: builtins.str
+PRINT_SETTINGS_PAGE_SET: builtins.str
+PRINT_SETTINGS_PAPER_FORMAT: builtins.str
+PRINT_SETTINGS_PAPER_HEIGHT: builtins.str
+PRINT_SETTINGS_PAPER_WIDTH: builtins.str
+PRINT_SETTINGS_PRINTER: builtins.str
+PRINT_SETTINGS_PRINTER_LPI: builtins.str
+PRINT_SETTINGS_PRINT_PAGES: builtins.str
+PRINT_SETTINGS_QUALITY: builtins.str
+PRINT_SETTINGS_RESOLUTION: builtins.str
+PRINT_SETTINGS_RESOLUTION_X: builtins.str
+PRINT_SETTINGS_RESOLUTION_Y: builtins.str
+PRINT_SETTINGS_REVERSE: builtins.str
+PRINT_SETTINGS_SCALE: builtins.str
+PRINT_SETTINGS_USE_COLOR: builtins.str
+PRINT_SETTINGS_WIN32_DRIVER_EXTRA: builtins.str
+PRINT_SETTINGS_WIN32_DRIVER_VERSION: builtins.str
+PRIORITY_RESIZE: builtins.int
+STOCK_ABOUT: builtins.str
+STOCK_ADD: builtins.str
+STOCK_APPLY: builtins.str
+STOCK_BOLD: builtins.str
+STOCK_CANCEL: builtins.str
+STOCK_CAPS_LOCK_WARNING: builtins.str
+STOCK_CDROM: builtins.str
+STOCK_CLEAR: builtins.str
+STOCK_CLOSE: builtins.str
+STOCK_COLOR_PICKER: builtins.str
+STOCK_CONNECT: builtins.str
+STOCK_CONVERT: builtins.str
+STOCK_COPY: builtins.str
+STOCK_CUT: builtins.str
+STOCK_DELETE: builtins.str
+STOCK_DIALOG_AUTHENTICATION: builtins.str
+STOCK_DIALOG_ERROR: builtins.str
+STOCK_DIALOG_INFO: builtins.str
+STOCK_DIALOG_QUESTION: builtins.str
+STOCK_DIALOG_WARNING: builtins.str
+STOCK_DIRECTORY: builtins.str
+STOCK_DISCARD: builtins.str
+STOCK_DISCONNECT: builtins.str
+STOCK_DND: builtins.str
+STOCK_DND_MULTIPLE: builtins.str
+STOCK_EDIT: builtins.str
+STOCK_EXECUTE: builtins.str
+STOCK_FILE: builtins.str
+STOCK_FIND: builtins.str
+STOCK_FIND_AND_REPLACE: builtins.str
+STOCK_FLOPPY: builtins.str
+STOCK_FULLSCREEN: builtins.str
+STOCK_GOTO_BOTTOM: builtins.str
+STOCK_GOTO_FIRST: builtins.str
+STOCK_GOTO_LAST: builtins.str
+STOCK_GOTO_TOP: builtins.str
+STOCK_GO_BACK: builtins.str
+STOCK_GO_DOWN: builtins.str
+STOCK_GO_FORWARD: builtins.str
+STOCK_GO_UP: builtins.str
+STOCK_HARDDISK: builtins.str
+STOCK_HELP: builtins.str
+STOCK_HOME: builtins.str
+STOCK_INDENT: builtins.str
+STOCK_INDEX: builtins.str
+STOCK_INFO: builtins.str
+STOCK_ITALIC: builtins.str
+STOCK_JUMP_TO: builtins.str
+STOCK_JUSTIFY_CENTER: builtins.str
+STOCK_JUSTIFY_FILL: builtins.str
+STOCK_JUSTIFY_LEFT: builtins.str
+STOCK_JUSTIFY_RIGHT: builtins.str
+STOCK_LEAVE_FULLSCREEN: builtins.str
+STOCK_MEDIA_FORWARD: builtins.str
+STOCK_MEDIA_NEXT: builtins.str
+STOCK_MEDIA_PAUSE: builtins.str
+STOCK_MEDIA_PLAY: builtins.str
+STOCK_MEDIA_PREVIOUS: builtins.str
+STOCK_MEDIA_RECORD: builtins.str
+STOCK_MEDIA_REWIND: builtins.str
+STOCK_MEDIA_STOP: builtins.str
+STOCK_MISSING_IMAGE: builtins.str
+STOCK_NETWORK: builtins.str
+STOCK_NEW: builtins.str
+STOCK_NO: builtins.str
+STOCK_OK: builtins.str
+STOCK_OPEN: builtins.str
+STOCK_ORIENTATION_LANDSCAPE: builtins.str
+STOCK_ORIENTATION_PORTRAIT: builtins.str
+STOCK_ORIENTATION_REVERSE_LANDSCAPE: builtins.str
+STOCK_ORIENTATION_REVERSE_PORTRAIT: builtins.str
+STOCK_PAGE_SETUP: builtins.str
+STOCK_PASTE: builtins.str
+STOCK_PREFERENCES: builtins.str
+STOCK_PRINT: builtins.str
+STOCK_PRINT_ERROR: builtins.str
+STOCK_PRINT_PAUSED: builtins.str
+STOCK_PRINT_PREVIEW: builtins.str
+STOCK_PRINT_REPORT: builtins.str
+STOCK_PRINT_WARNING: builtins.str
+STOCK_PROPERTIES: builtins.str
+STOCK_QUIT: builtins.str
+STOCK_REDO: builtins.str
+STOCK_REFRESH: builtins.str
+STOCK_REMOVE: builtins.str
+STOCK_REVERT_TO_SAVED: builtins.str
+STOCK_SAVE: builtins.str
+STOCK_SAVE_AS: builtins.str
+STOCK_SELECT_ALL: builtins.str
+STOCK_SELECT_COLOR: builtins.str
+STOCK_SELECT_FONT: builtins.str
+STOCK_SORT_ASCENDING: builtins.str
+STOCK_SORT_DESCENDING: builtins.str
+STOCK_SPELL_CHECK: builtins.str
+STOCK_STOP: builtins.str
+STOCK_STRIKETHROUGH: builtins.str
+STOCK_UNDELETE: builtins.str
+STOCK_UNDERLINE: builtins.str
+STOCK_UNDO: builtins.str
+STOCK_UNINDENT: builtins.str
+STOCK_YES: builtins.str
+STOCK_ZOOM_100: builtins.str
+STOCK_ZOOM_FIT: builtins.str
+STOCK_ZOOM_IN: builtins.str
+STOCK_ZOOM_OUT: builtins.str
+STYLE_CLASS_ACCELERATOR: builtins.str
+STYLE_CLASS_ARROW: builtins.str
+STYLE_CLASS_BACKGROUND: builtins.str
+STYLE_CLASS_BOTTOM: builtins.str
+STYLE_CLASS_BUTTON: builtins.str
+STYLE_CLASS_CALENDAR: builtins.str
+STYLE_CLASS_CELL: builtins.str
+STYLE_CLASS_CHECK: builtins.str
+STYLE_CLASS_COMBOBOX_ENTRY: builtins.str
+STYLE_CLASS_CONTEXT_MENU: builtins.str
+STYLE_CLASS_CSD: builtins.str
+STYLE_CLASS_CURSOR_HANDLE: builtins.str
+STYLE_CLASS_DEFAULT: builtins.str
+STYLE_CLASS_DESTRUCTIVE_ACTION: builtins.str
+STYLE_CLASS_DIM_LABEL: builtins.str
+STYLE_CLASS_DND: builtins.str
+STYLE_CLASS_DOCK: builtins.str
+STYLE_CLASS_ENTRY: builtins.str
+STYLE_CLASS_ERROR: builtins.str
+STYLE_CLASS_EXPANDER: builtins.str
+STYLE_CLASS_FLAT: builtins.str
+STYLE_CLASS_FRAME: builtins.str
+STYLE_CLASS_GRIP: builtins.str
+STYLE_CLASS_HEADER: builtins.str
+STYLE_CLASS_HIGHLIGHT: builtins.str
+STYLE_CLASS_HORIZONTAL: builtins.str
+STYLE_CLASS_IMAGE: builtins.str
+STYLE_CLASS_INFO: builtins.str
+STYLE_CLASS_INLINE_TOOLBAR: builtins.str
+STYLE_CLASS_INSERTION_CURSOR: builtins.str
+STYLE_CLASS_LABEL: builtins.str
+STYLE_CLASS_LEFT: builtins.str
+STYLE_CLASS_LEVEL_BAR: builtins.str
+STYLE_CLASS_LINKED: builtins.str
+STYLE_CLASS_LIST: builtins.str
+STYLE_CLASS_LIST_ROW: builtins.str
+STYLE_CLASS_MARK: builtins.str
+STYLE_CLASS_MENU: builtins.str
+STYLE_CLASS_MENUBAR: builtins.str
+STYLE_CLASS_MENUITEM: builtins.str
+STYLE_CLASS_MESSAGE_DIALOG: builtins.str
+STYLE_CLASS_MONOSPACE: builtins.str
+STYLE_CLASS_NEEDS_ATTENTION: builtins.str
+STYLE_CLASS_NOTEBOOK: builtins.str
+STYLE_CLASS_OSD: builtins.str
+STYLE_CLASS_OVERSHOOT: builtins.str
+STYLE_CLASS_PANE_SEPARATOR: builtins.str
+STYLE_CLASS_PAPER: builtins.str
+STYLE_CLASS_POPOVER: builtins.str
+STYLE_CLASS_POPUP: builtins.str
+STYLE_CLASS_PRIMARY_TOOLBAR: builtins.str
+STYLE_CLASS_PROGRESSBAR: builtins.str
+STYLE_CLASS_PULSE: builtins.str
+STYLE_CLASS_QUESTION: builtins.str
+STYLE_CLASS_RADIO: builtins.str
+STYLE_CLASS_RAISED: builtins.str
+STYLE_CLASS_READ_ONLY: builtins.str
+STYLE_CLASS_RIGHT: builtins.str
+STYLE_CLASS_RUBBERBAND: builtins.str
+STYLE_CLASS_SCALE: builtins.str
+STYLE_CLASS_SCALE_HAS_MARKS_ABOVE: builtins.str
+STYLE_CLASS_SCALE_HAS_MARKS_BELOW: builtins.str
+STYLE_CLASS_SCROLLBAR: builtins.str
+STYLE_CLASS_SCROLLBARS_JUNCTION: builtins.str
+STYLE_CLASS_SEPARATOR: builtins.str
+STYLE_CLASS_SIDEBAR: builtins.str
+STYLE_CLASS_SLIDER: builtins.str
+STYLE_CLASS_SPINBUTTON: builtins.str
+STYLE_CLASS_SPINNER: builtins.str
+STYLE_CLASS_STATUSBAR: builtins.str
+STYLE_CLASS_SUBTITLE: builtins.str
+STYLE_CLASS_SUGGESTED_ACTION: builtins.str
+STYLE_CLASS_TITLE: builtins.str
+STYLE_CLASS_TITLEBAR: builtins.str
+STYLE_CLASS_TOOLBAR: builtins.str
+STYLE_CLASS_TOOLTIP: builtins.str
+STYLE_CLASS_TOP: builtins.str
+STYLE_CLASS_TOUCH_SELECTION: builtins.str
+STYLE_CLASS_TROUGH: builtins.str
+STYLE_CLASS_UNDERSHOOT: builtins.str
+STYLE_CLASS_VERTICAL: builtins.str
+STYLE_CLASS_VIEW: builtins.str
+STYLE_CLASS_WARNING: builtins.str
+STYLE_CLASS_WIDE: builtins.str
+STYLE_PROPERTY_BACKGROUND_COLOR: builtins.str
+STYLE_PROPERTY_BACKGROUND_IMAGE: builtins.str
+STYLE_PROPERTY_BORDER_COLOR: builtins.str
+STYLE_PROPERTY_BORDER_RADIUS: builtins.str
+STYLE_PROPERTY_BORDER_STYLE: builtins.str
+STYLE_PROPERTY_BORDER_WIDTH: builtins.str
+STYLE_PROPERTY_COLOR: builtins.str
+STYLE_PROPERTY_FONT: builtins.str
+STYLE_PROPERTY_MARGIN: builtins.str
+STYLE_PROPERTY_PADDING: builtins.str
+STYLE_PROVIDER_PRIORITY_APPLICATION: builtins.int
+STYLE_PROVIDER_PRIORITY_FALLBACK: builtins.int
+STYLE_PROVIDER_PRIORITY_SETTINGS: builtins.int
+STYLE_PROVIDER_PRIORITY_THEME: builtins.int
+STYLE_PROVIDER_PRIORITY_USER: builtins.int
+STYLE_REGION_COLUMN: builtins.str
+STYLE_REGION_COLUMN_HEADER: builtins.str
+STYLE_REGION_ROW: builtins.str
+STYLE_REGION_TAB: builtins.str
+TEXT_VIEW_PRIORITY_VALIDATE: builtins.int
+TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID: builtins.int
+TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID: builtins.int
diff --git a/stubs/gi/repository/HarfBuzz.pyi b/stubs/gi/repository/HarfBuzz.pyi
new file mode 100644
index 000000000..d72bbd87f
--- /dev/null
+++ b/stubs/gi/repository/HarfBuzz.pyi
@@ -0,0 +1,1971 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+from gi.repository import GObject
+
+
+class blob_t():
+ ...
+
+
+class buffer_t():
+ ...
+
+
+class face_t():
+ ...
+
+
+class feature_t():
+ end: builtins.int
+ start: builtins.int
+ tag: builtins.int
+ value: builtins.int
+
+
+class font_extents_t():
+ ascender: builtins.int
+ descender: builtins.int
+ line_gap: builtins.int
+ reserved1: builtins.int
+ reserved2: builtins.int
+ reserved3: builtins.int
+ reserved4: builtins.int
+ reserved5: builtins.int
+ reserved6: builtins.int
+ reserved7: builtins.int
+ reserved8: builtins.int
+ reserved9: builtins.int
+
+
+class font_funcs_t():
+ ...
+
+
+class font_t():
+ ...
+
+
+class glyph_extents_t():
+ height: builtins.int
+ width: builtins.int
+ x_bearing: builtins.int
+ y_bearing: builtins.int
+
+
+class glyph_info_t():
+ cluster: builtins.int
+ codepoint: builtins.int
+ mask: builtins.int
+ var1: var_int_t
+ var2: var_int_t
+
+
+class glyph_position_t():
+ var: var_int_t
+ x_advance: builtins.int
+ x_offset: builtins.int
+ y_advance: builtins.int
+ y_offset: builtins.int
+
+
+class language_t():
+ ...
+
+
+class map_t():
+ ...
+
+
+class ot_color_layer_t():
+ color_index: builtins.int
+ glyph: builtins.int
+
+
+class ot_math_glyph_part_t():
+ end_connector_length: builtins.int
+ flags: ot_math_glyph_part_flags_t
+ full_advance: builtins.int
+ glyph: builtins.int
+ start_connector_length: builtins.int
+
+
+class ot_math_glyph_variant_t():
+ advance: builtins.int
+ glyph: builtins.int
+
+
+class ot_name_entry_t():
+ language: language_t
+ name_id: builtins.int
+ var: var_int_t
+
+
+class ot_var_axis_info_t():
+ axis_index: builtins.int
+ default_value: builtins.float
+ flags: ot_var_axis_flags_t
+ max_value: builtins.float
+ min_value: builtins.float
+ name_id: builtins.int
+ reserved: builtins.int
+ tag: builtins.int
+
+
+class ot_var_axis_t():
+ default_value: builtins.float
+ max_value: builtins.float
+ min_value: builtins.float
+ name_id: builtins.int
+ tag: builtins.int
+
+
+class segment_properties_t():
+ direction: direction_t
+ language: language_t
+ reserved1: builtins.object
+ reserved2: builtins.object
+ script: script_t
+
+
+class set_t():
+ ...
+
+
+class shape_plan_t():
+ ...
+
+
+class unicode_funcs_t():
+ ...
+
+
+class user_data_key_t():
+ unused: builtins.int
+
+
+class variation_t():
+ tag: builtins.int
+ value: builtins.float
+
+
+class var_int_t():
+ i16: typing.Sequence[builtins.int]
+ i32: builtins.int
+ i8: typing.Sequence[builtins.int]
+ u16: typing.Sequence[builtins.int]
+ u32: builtins.int
+ u8: bytes
+
+
+class buffer_diff_flags_t(GObject.GFlags, builtins.int):
+ CLUSTER_MISMATCH = ... # type: buffer_diff_flags_t
+ CODEPOINT_MISMATCH = ... # type: buffer_diff_flags_t
+ CONTENT_TYPE_MISMATCH = ... # type: buffer_diff_flags_t
+ DOTTED_CIRCLE_PRESENT = ... # type: buffer_diff_flags_t
+ EQUAL = ... # type: buffer_diff_flags_t
+ GLYPH_FLAGS_MISMATCH = ... # type: buffer_diff_flags_t
+ LENGTH_MISMATCH = ... # type: buffer_diff_flags_t
+ NOTDEF_PRESENT = ... # type: buffer_diff_flags_t
+ POSITION_MISMATCH = ... # type: buffer_diff_flags_t
+
+
+class buffer_flags_t(GObject.GFlags, builtins.int):
+ BOT = ... # type: buffer_flags_t
+ DEFAULT = ... # type: buffer_flags_t
+ DO_NOT_INSERT_DOTTED_CIRCLE = ... # type: buffer_flags_t
+ EOT = ... # type: buffer_flags_t
+ PRESERVE_DEFAULT_IGNORABLES = ... # type: buffer_flags_t
+ REMOVE_DEFAULT_IGNORABLES = ... # type: buffer_flags_t
+
+
+class buffer_serialize_flags_t(GObject.GFlags, builtins.int):
+ DEFAULT = ... # type: buffer_serialize_flags_t
+ GLYPH_EXTENTS = ... # type: buffer_serialize_flags_t
+ GLYPH_FLAGS = ... # type: buffer_serialize_flags_t
+ NO_ADVANCES = ... # type: buffer_serialize_flags_t
+ NO_CLUSTERS = ... # type: buffer_serialize_flags_t
+ NO_GLYPH_NAMES = ... # type: buffer_serialize_flags_t
+ NO_POSITIONS = ... # type: buffer_serialize_flags_t
+
+
+class glyph_flags_t(GObject.GFlags, builtins.int):
+ DEFINED = ... # type: glyph_flags_t
+ UNSAFE_TO_BREAK = ... # type: glyph_flags_t
+
+
+class ot_color_palette_flags_t(GObject.GFlags, builtins.int):
+ DEFAULT = ... # type: ot_color_palette_flags_t
+ USABLE_WITH_DARK_BACKGROUND = ... # type: ot_color_palette_flags_t
+ USABLE_WITH_LIGHT_BACKGROUND = ... # type: ot_color_palette_flags_t
+
+
+class ot_math_glyph_part_flags_t(GObject.GFlags, builtins.int):
+ EXTENDER = ... # type: ot_math_glyph_part_flags_t
+
+
+class ot_var_axis_flags_t(GObject.GFlags, builtins.int):
+ HIDDEN = ... # type: ot_var_axis_flags_t
+
+
+class aat_layout_feature_selector_t(GObject.GEnum, builtins.int):
+ ABBREV_SQUARED_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ ABBREV_SQUARED_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ ALL_CAPS = ... # type: aat_layout_feature_selector_t
+ ALL_LOWER_CASE = ... # type: aat_layout_feature_selector_t
+ ALL_TYPE_FEATURES_OFF = ... # type: aat_layout_feature_selector_t
+ ALL_TYPE_FEATURES_ON = ... # type: aat_layout_feature_selector_t
+ ALTERNATE_HORIZ_KANA_OFF = ... # type: aat_layout_feature_selector_t
+ ALTERNATE_HORIZ_KANA_ON = ... # type: aat_layout_feature_selector_t
+ ALTERNATE_VERT_KANA_OFF = ... # type: aat_layout_feature_selector_t
+ ALTERNATE_VERT_KANA_ON = ... # type: aat_layout_feature_selector_t
+ ALT_HALF_WIDTH_TEXT = ... # type: aat_layout_feature_selector_t
+ ALT_PROPORTIONAL_TEXT = ... # type: aat_layout_feature_selector_t
+ ASTERISK_TO_MULTIPLY_OFF = ... # type: aat_layout_feature_selector_t
+ ASTERISK_TO_MULTIPLY_ON = ... # type: aat_layout_feature_selector_t
+ BOX_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ CANONICAL_COMPOSITION_OFF = ... # type: aat_layout_feature_selector_t
+ CANONICAL_COMPOSITION_ON = ... # type: aat_layout_feature_selector_t
+ CASE_SENSITIVE_LAYOUT_OFF = ... # type: aat_layout_feature_selector_t
+ CASE_SENSITIVE_LAYOUT_ON = ... # type: aat_layout_feature_selector_t
+ CASE_SENSITIVE_SPACING_OFF = ... # type: aat_layout_feature_selector_t
+ CASE_SENSITIVE_SPACING_ON = ... # type: aat_layout_feature_selector_t
+ CIRCLE_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ CJK_ITALIC_ROMAN = ... # type: aat_layout_feature_selector_t
+ CJK_ITALIC_ROMAN_OFF = ... # type: aat_layout_feature_selector_t
+ CJK_ITALIC_ROMAN_ON = ... # type: aat_layout_feature_selector_t
+ CJK_SYMBOL_ALT_FIVE = ... # type: aat_layout_feature_selector_t
+ CJK_SYMBOL_ALT_FOUR = ... # type: aat_layout_feature_selector_t
+ CJK_SYMBOL_ALT_ONE = ... # type: aat_layout_feature_selector_t
+ CJK_SYMBOL_ALT_THREE = ... # type: aat_layout_feature_selector_t
+ CJK_SYMBOL_ALT_TWO = ... # type: aat_layout_feature_selector_t
+ CJK_VERTICAL_ROMAN_CENTERED = ... # type: aat_layout_feature_selector_t
+ CJK_VERTICAL_ROMAN_HBASELINE = ... # type: aat_layout_feature_selector_t
+ COMMON_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ COMMON_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ COMPATIBILITY_COMPOSITION_OFF = ... # type: aat_layout_feature_selector_t
+ COMPATIBILITY_COMPOSITION_ON = ... # type: aat_layout_feature_selector_t
+ CONTEXTUAL_ALTERNATES_OFF = ... # type: aat_layout_feature_selector_t
+ CONTEXTUAL_ALTERNATES_ON = ... # type: aat_layout_feature_selector_t
+ CONTEXTUAL_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ CONTEXTUAL_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ CONTEXTUAL_SWASH_ALTERNATES_OFF = ... # type: aat_layout_feature_selector_t
+ CONTEXTUAL_SWASH_ALTERNATES_ON = ... # type: aat_layout_feature_selector_t
+ CURSIVE = ... # type: aat_layout_feature_selector_t
+ DECOMPOSE_DIACRITICS = ... # type: aat_layout_feature_selector_t
+ DECORATIVE_BORDERS = ... # type: aat_layout_feature_selector_t
+ DEFAULT_CJK_ROMAN = ... # type: aat_layout_feature_selector_t
+ DEFAULT_LOWER_CASE = ... # type: aat_layout_feature_selector_t
+ DEFAULT_UPPER_CASE = ... # type: aat_layout_feature_selector_t
+ DESIGN_LEVEL1 = ... # type: aat_layout_feature_selector_t
+ DESIGN_LEVEL2 = ... # type: aat_layout_feature_selector_t
+ DESIGN_LEVEL3 = ... # type: aat_layout_feature_selector_t
+ DESIGN_LEVEL4 = ... # type: aat_layout_feature_selector_t
+ DESIGN_LEVEL5 = ... # type: aat_layout_feature_selector_t
+ DIAGONAL_FRACTIONS = ... # type: aat_layout_feature_selector_t
+ DIAMOND_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ DINGBATS = ... # type: aat_layout_feature_selector_t
+ DIPHTHONG_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ DIPHTHONG_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ DISPLAY_TEXT = ... # type: aat_layout_feature_selector_t
+ ENGRAVED_TEXT = ... # type: aat_layout_feature_selector_t
+ EXPERT_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ EXPONENTS_OFF = ... # type: aat_layout_feature_selector_t
+ EXPONENTS_ON = ... # type: aat_layout_feature_selector_t
+ FLEURONS = ... # type: aat_layout_feature_selector_t
+ FORM_INTERROBANG_OFF = ... # type: aat_layout_feature_selector_t
+ FORM_INTERROBANG_ON = ... # type: aat_layout_feature_selector_t
+ FULL_WIDTH_CJK_ROMAN = ... # type: aat_layout_feature_selector_t
+ FULL_WIDTH_IDEOGRAPHS = ... # type: aat_layout_feature_selector_t
+ FULL_WIDTH_KANA = ... # type: aat_layout_feature_selector_t
+ HALF_WIDTH_CJK_ROMAN = ... # type: aat_layout_feature_selector_t
+ HALF_WIDTH_IDEOGRAPHS = ... # type: aat_layout_feature_selector_t
+ HALF_WIDTH_TEXT = ... # type: aat_layout_feature_selector_t
+ HANJA_TO_HANGUL = ... # type: aat_layout_feature_selector_t
+ HANJA_TO_HANGUL_ALT_ONE = ... # type: aat_layout_feature_selector_t
+ HANJA_TO_HANGUL_ALT_THREE = ... # type: aat_layout_feature_selector_t
+ HANJA_TO_HANGUL_ALT_TWO = ... # type: aat_layout_feature_selector_t
+ HIDE_DIACRITICS = ... # type: aat_layout_feature_selector_t
+ HIRAGANA_TO_KATAKANA = ... # type: aat_layout_feature_selector_t
+ HISTORICAL_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ HISTORICAL_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ HOJO_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ HYPHENS_TO_EM_DASH_OFF = ... # type: aat_layout_feature_selector_t
+ HYPHENS_TO_EM_DASH_ON = ... # type: aat_layout_feature_selector_t
+ HYPHEN_TO_EN_DASH_OFF = ... # type: aat_layout_feature_selector_t
+ HYPHEN_TO_EN_DASH_ON = ... # type: aat_layout_feature_selector_t
+ HYPHEN_TO_MINUS_OFF = ... # type: aat_layout_feature_selector_t
+ HYPHEN_TO_MINUS_ON = ... # type: aat_layout_feature_selector_t
+ IDEOGRAPHIC_ALT_FIVE = ... # type: aat_layout_feature_selector_t
+ IDEOGRAPHIC_ALT_FOUR = ... # type: aat_layout_feature_selector_t
+ IDEOGRAPHIC_ALT_ONE = ... # type: aat_layout_feature_selector_t
+ IDEOGRAPHIC_ALT_THREE = ... # type: aat_layout_feature_selector_t
+ IDEOGRAPHIC_ALT_TWO = ... # type: aat_layout_feature_selector_t
+ ILLUMINATED_CAPS = ... # type: aat_layout_feature_selector_t
+ INEQUALITY_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ INEQUALITY_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ INFERIORS = ... # type: aat_layout_feature_selector_t
+ INITIAL_CAPS = ... # type: aat_layout_feature_selector_t
+ INITIAL_CAPS_AND_SMALL_CAPS = ... # type: aat_layout_feature_selector_t
+ INTERNATIONAL_SYMBOLS = ... # type: aat_layout_feature_selector_t
+ INVALID = ... # type: aat_layout_feature_selector_t
+ INVERTED_BOX_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ INVERTED_CIRCLE_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ INVERTED_ROUNDED_BOX_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ JIS1978_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ JIS1983_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ JIS1990_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ JIS2004_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ KANA_TO_ROMANIZATION = ... # type: aat_layout_feature_selector_t
+ KATAKANA_TO_HIRAGANA = ... # type: aat_layout_feature_selector_t
+ LINE_FINAL_SWASHES_OFF = ... # type: aat_layout_feature_selector_t
+ LINE_FINAL_SWASHES_ON = ... # type: aat_layout_feature_selector_t
+ LINE_INITIAL_SWASHES_OFF = ... # type: aat_layout_feature_selector_t
+ LINE_INITIAL_SWASHES_ON = ... # type: aat_layout_feature_selector_t
+ LINGUISTIC_REARRANGEMENT_OFF = ... # type: aat_layout_feature_selector_t
+ LINGUISTIC_REARRANGEMENT_ON = ... # type: aat_layout_feature_selector_t
+ LOGOS_OFF = ... # type: aat_layout_feature_selector_t
+ LOGOS_ON = ... # type: aat_layout_feature_selector_t
+ LOWER_CASE_NUMBERS = ... # type: aat_layout_feature_selector_t
+ LOWER_CASE_PETITE_CAPS = ... # type: aat_layout_feature_selector_t
+ LOWER_CASE_SMALL_CAPS = ... # type: aat_layout_feature_selector_t
+ MATHEMATICAL_GREEK_OFF = ... # type: aat_layout_feature_selector_t
+ MATHEMATICAL_GREEK_ON = ... # type: aat_layout_feature_selector_t
+ MATH_SYMBOLS = ... # type: aat_layout_feature_selector_t
+ MONOSPACED_NUMBERS = ... # type: aat_layout_feature_selector_t
+ MONOSPACED_TEXT = ... # type: aat_layout_feature_selector_t
+ NLCCHARACTERS = ... # type: aat_layout_feature_selector_t
+ NON_FINAL_SWASHES_OFF = ... # type: aat_layout_feature_selector_t
+ NON_FINAL_SWASHES_ON = ... # type: aat_layout_feature_selector_t
+ NORMAL_POSITION = ... # type: aat_layout_feature_selector_t
+ NO_ALTERNATES = ... # type: aat_layout_feature_selector_t
+ NO_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ NO_CJK_ITALIC_ROMAN = ... # type: aat_layout_feature_selector_t
+ NO_CJK_SYMBOL_ALTERNATIVES = ... # type: aat_layout_feature_selector_t
+ NO_FRACTIONS = ... # type: aat_layout_feature_selector_t
+ NO_IDEOGRAPHIC_ALTERNATIVES = ... # type: aat_layout_feature_selector_t
+ NO_ORNAMENTS = ... # type: aat_layout_feature_selector_t
+ NO_RUBY_KANA = ... # type: aat_layout_feature_selector_t
+ NO_STYLE_OPTIONS = ... # type: aat_layout_feature_selector_t
+ NO_STYLISTIC_ALTERNATES = ... # type: aat_layout_feature_selector_t
+ NO_TRANSLITERATION = ... # type: aat_layout_feature_selector_t
+ ORDINALS = ... # type: aat_layout_feature_selector_t
+ PARENTHESIS_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ PARTIALLY_CONNECTED = ... # type: aat_layout_feature_selector_t
+ PERIODS_TO_ELLIPSIS_OFF = ... # type: aat_layout_feature_selector_t
+ PERIODS_TO_ELLIPSIS_ON = ... # type: aat_layout_feature_selector_t
+ PERIOD_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ PI_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ PREVENT_OVERLAP_OFF = ... # type: aat_layout_feature_selector_t
+ PREVENT_OVERLAP_ON = ... # type: aat_layout_feature_selector_t
+ PROPORTIONAL_CJK_ROMAN = ... # type: aat_layout_feature_selector_t
+ PROPORTIONAL_IDEOGRAPHS = ... # type: aat_layout_feature_selector_t
+ PROPORTIONAL_KANA = ... # type: aat_layout_feature_selector_t
+ PROPORTIONAL_NUMBERS = ... # type: aat_layout_feature_selector_t
+ PROPORTIONAL_TEXT = ... # type: aat_layout_feature_selector_t
+ QUARTER_WIDTH_NUMBERS = ... # type: aat_layout_feature_selector_t
+ QUARTER_WIDTH_TEXT = ... # type: aat_layout_feature_selector_t
+ RARE_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ RARE_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ REBUS_PICTURES_OFF = ... # type: aat_layout_feature_selector_t
+ REBUS_PICTURES_ON = ... # type: aat_layout_feature_selector_t
+ REQUIRED_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ REQUIRED_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ ROMANIZATION_TO_HIRAGANA = ... # type: aat_layout_feature_selector_t
+ ROMANIZATION_TO_KATAKANA = ... # type: aat_layout_feature_selector_t
+ ROMAN_NUMERAL_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ ROUNDED_BOX_ANNOTATION = ... # type: aat_layout_feature_selector_t
+ RUBY_KANA = ... # type: aat_layout_feature_selector_t
+ RUBY_KANA_OFF = ... # type: aat_layout_feature_selector_t
+ RUBY_KANA_ON = ... # type: aat_layout_feature_selector_t
+ SCIENTIFIC_INFERIORS = ... # type: aat_layout_feature_selector_t
+ SHOW_DIACRITICS = ... # type: aat_layout_feature_selector_t
+ SIMPLIFIED_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ SLASHED_ZERO_OFF = ... # type: aat_layout_feature_selector_t
+ SLASHED_ZERO_ON = ... # type: aat_layout_feature_selector_t
+ SLASH_TO_DIVIDE_OFF = ... # type: aat_layout_feature_selector_t
+ SLASH_TO_DIVIDE_ON = ... # type: aat_layout_feature_selector_t
+ SMALL_CAPS = ... # type: aat_layout_feature_selector_t
+ SMART_QUOTES_OFF = ... # type: aat_layout_feature_selector_t
+ SMART_QUOTES_ON = ... # type: aat_layout_feature_selector_t
+ SQUARED_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ SQUARED_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_EIGHTEEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_EIGHTEEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_EIGHT_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_EIGHT_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_ELEVEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_ELEVEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FIFTEEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FIFTEEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FIVE_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FIVE_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FOURTEEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FOURTEEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FOUR_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_FOUR_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_NINETEEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_NINETEEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_NINE_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_NINE_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_ONE_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_ONE_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SEVENTEEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SEVENTEEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SEVEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SEVEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SIXTEEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SIXTEEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SIX_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_SIX_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_THIRTEEN_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_THIRTEEN_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_THREE_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_THREE_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TWELVE_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TWELVE_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TWENTY_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TWENTY_ON = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TWO_OFF = ... # type: aat_layout_feature_selector_t
+ STYLISTIC_ALT_TWO_ON = ... # type: aat_layout_feature_selector_t
+ SUBSTITUTE_VERTICAL_FORMS_OFF = ... # type: aat_layout_feature_selector_t
+ SUBSTITUTE_VERTICAL_FORMS_ON = ... # type: aat_layout_feature_selector_t
+ SUPERIORS = ... # type: aat_layout_feature_selector_t
+ SWASH_ALTERNATES_OFF = ... # type: aat_layout_feature_selector_t
+ SWASH_ALTERNATES_ON = ... # type: aat_layout_feature_selector_t
+ SYMBOL_LIGATURES_OFF = ... # type: aat_layout_feature_selector_t
+ SYMBOL_LIGATURES_ON = ... # type: aat_layout_feature_selector_t
+ TALL_CAPS = ... # type: aat_layout_feature_selector_t
+ THIRD_WIDTH_NUMBERS = ... # type: aat_layout_feature_selector_t
+ THIRD_WIDTH_TEXT = ... # type: aat_layout_feature_selector_t
+ TITLING_CAPS = ... # type: aat_layout_feature_selector_t
+ TRADITIONAL_ALT_FIVE = ... # type: aat_layout_feature_selector_t
+ TRADITIONAL_ALT_FOUR = ... # type: aat_layout_feature_selector_t
+ TRADITIONAL_ALT_ONE = ... # type: aat_layout_feature_selector_t
+ TRADITIONAL_ALT_THREE = ... # type: aat_layout_feature_selector_t
+ TRADITIONAL_ALT_TWO = ... # type: aat_layout_feature_selector_t
+ TRADITIONAL_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ TRADITIONAL_NAMES_CHARACTERS = ... # type: aat_layout_feature_selector_t
+ TRANSCODING_COMPOSITION_OFF = ... # type: aat_layout_feature_selector_t
+ TRANSCODING_COMPOSITION_ON = ... # type: aat_layout_feature_selector_t
+ UNCONNECTED = ... # type: aat_layout_feature_selector_t
+ UPPER_AND_LOWER_CASE = ... # type: aat_layout_feature_selector_t
+ UPPER_CASE_NUMBERS = ... # type: aat_layout_feature_selector_t
+ UPPER_CASE_PETITE_CAPS = ... # type: aat_layout_feature_selector_t
+ UPPER_CASE_SMALL_CAPS = ... # type: aat_layout_feature_selector_t
+ VERTICAL_FRACTIONS = ... # type: aat_layout_feature_selector_t
+ WORD_FINAL_SWASHES_OFF = ... # type: aat_layout_feature_selector_t
+ WORD_FINAL_SWASHES_ON = ... # type: aat_layout_feature_selector_t
+ WORD_INITIAL_SWASHES_OFF = ... # type: aat_layout_feature_selector_t
+ WORD_INITIAL_SWASHES_ON = ... # type: aat_layout_feature_selector_t
+
+
+class aat_layout_feature_type_t(GObject.GEnum, builtins.int):
+ ALL_TYPOGRAPHIC = ... # type: aat_layout_feature_type_t
+ ALTERNATE_KANA = ... # type: aat_layout_feature_type_t
+ ANNOTATION_TYPE = ... # type: aat_layout_feature_type_t
+ CASE_SENSITIVE_LAYOUT = ... # type: aat_layout_feature_type_t
+ CHARACTER_ALTERNATIVES = ... # type: aat_layout_feature_type_t
+ CHARACTER_SHAPE = ... # type: aat_layout_feature_type_t
+ CJK_ROMAN_SPACING_TYPE = ... # type: aat_layout_feature_type_t
+ CJK_SYMBOL_ALTERNATIVES_TYPE = ... # type: aat_layout_feature_type_t
+ CJK_VERTICAL_ROMAN_PLACEMENT_TYPE = ... # type: aat_layout_feature_type_t
+ CONTEXTUAL_ALTERNATIVES = ... # type: aat_layout_feature_type_t
+ CURISVE_CONNECTION = ... # type: aat_layout_feature_type_t
+ DESIGN_COMPLEXITY_TYPE = ... # type: aat_layout_feature_type_t
+ DIACRITICS_TYPE = ... # type: aat_layout_feature_type_t
+ FRACTIONS = ... # type: aat_layout_feature_type_t
+ IDEOGRAPHIC_ALTERNATIVES_TYPE = ... # type: aat_layout_feature_type_t
+ IDEOGRAPHIC_SPACING_TYPE = ... # type: aat_layout_feature_type_t
+ INVALID = ... # type: aat_layout_feature_type_t
+ ITALIC_CJK_ROMAN = ... # type: aat_layout_feature_type_t
+ KANA_SPACING_TYPE = ... # type: aat_layout_feature_type_t
+ LANGUAGE_TAG_TYPE = ... # type: aat_layout_feature_type_t
+ LETTER_CASE = ... # type: aat_layout_feature_type_t
+ LIGATURES = ... # type: aat_layout_feature_type_t
+ LINGUISTIC_REARRANGEMENT = ... # type: aat_layout_feature_type_t
+ LOWER_CASE = ... # type: aat_layout_feature_type_t
+ MATHEMATICAL_EXTRAS = ... # type: aat_layout_feature_type_t
+ NUMBER_CASE = ... # type: aat_layout_feature_type_t
+ NUMBER_SPACING = ... # type: aat_layout_feature_type_t
+ ORNAMENT_SETS_TYPE = ... # type: aat_layout_feature_type_t
+ OVERLAPPING_CHARACTERS_TYPE = ... # type: aat_layout_feature_type_t
+ RUBY_KANA = ... # type: aat_layout_feature_type_t
+ SMART_SWASH_TYPE = ... # type: aat_layout_feature_type_t
+ STYLE_OPTIONS = ... # type: aat_layout_feature_type_t
+ STYLISTIC_ALTERNATIVES = ... # type: aat_layout_feature_type_t
+ TEXT_SPACING = ... # type: aat_layout_feature_type_t
+ TRANSLITERATION = ... # type: aat_layout_feature_type_t
+ TYPOGRAPHIC_EXTRAS = ... # type: aat_layout_feature_type_t
+ UNICODE_DECOMPOSITION_TYPE = ... # type: aat_layout_feature_type_t
+ UPPER_CASE = ... # type: aat_layout_feature_type_t
+ VERTICAL_POSITION = ... # type: aat_layout_feature_type_t
+ VERTICAL_SUBSTITUTION = ... # type: aat_layout_feature_type_t
+
+
+class buffer_cluster_level_t(GObject.GEnum, builtins.int):
+ CHARACTERS = ... # type: buffer_cluster_level_t
+ DEFAULT = ... # type: buffer_cluster_level_t
+ MONOTONE_CHARACTERS = ... # type: buffer_cluster_level_t
+ MONOTONE_GRAPHEMES = ... # type: buffer_cluster_level_t
+
+
+class buffer_content_type_t(GObject.GEnum, builtins.int):
+ GLYPHS = ... # type: buffer_content_type_t
+ INVALID = ... # type: buffer_content_type_t
+ UNICODE = ... # type: buffer_content_type_t
+
+
+class buffer_serialize_format_t(GObject.GEnum, builtins.int):
+ INVALID = ... # type: buffer_serialize_format_t
+ JSON = ... # type: buffer_serialize_format_t
+ TEXT = ... # type: buffer_serialize_format_t
+
+
+class direction_t(GObject.GEnum, builtins.int):
+ BTT = ... # type: direction_t
+ INVALID = ... # type: direction_t
+ LTR = ... # type: direction_t
+ RTL = ... # type: direction_t
+ TTB = ... # type: direction_t
+
+
+class memory_mode_t(GObject.GEnum, builtins.int):
+ DUPLICATE = ... # type: memory_mode_t
+ READONLY = ... # type: memory_mode_t
+ READONLY_MAY_MAKE_WRITABLE = ... # type: memory_mode_t
+ WRITABLE = ... # type: memory_mode_t
+
+
+class ot_layout_baseline_tag_t(GObject.GEnum, builtins.int):
+ HANGING = ... # type: ot_layout_baseline_tag_t
+ IDEO_EMBOX_BOTTOM_OR_LEFT = ... # type: ot_layout_baseline_tag_t
+ IDEO_EMBOX_TOP_OR_RIGHT = ... # type: ot_layout_baseline_tag_t
+ IDEO_FACE_BOTTOM_OR_LEFT = ... # type: ot_layout_baseline_tag_t
+ IDEO_FACE_TOP_OR_RIGHT = ... # type: ot_layout_baseline_tag_t
+ MATH = ... # type: ot_layout_baseline_tag_t
+ ROMAN = ... # type: ot_layout_baseline_tag_t
+
+
+class ot_layout_glyph_class_t(GObject.GEnum, builtins.int):
+ BASE_GLYPH = ... # type: ot_layout_glyph_class_t
+ COMPONENT = ... # type: ot_layout_glyph_class_t
+ LIGATURE = ... # type: ot_layout_glyph_class_t
+ MARK = ... # type: ot_layout_glyph_class_t
+ UNCLASSIFIED = ... # type: ot_layout_glyph_class_t
+
+
+class ot_math_constant_t(GObject.GEnum, builtins.int):
+ ACCENT_BASE_HEIGHT = ... # type: ot_math_constant_t
+ AXIS_HEIGHT = ... # type: ot_math_constant_t
+ DELIMITED_SUB_FORMULA_MIN_HEIGHT = ... # type: ot_math_constant_t
+ DISPLAY_OPERATOR_MIN_HEIGHT = ... # type: ot_math_constant_t
+ FLATTENED_ACCENT_BASE_HEIGHT = ... # type: ot_math_constant_t
+ FRACTION_DENOMINATOR_DISPLAY_STYLE_SHIFT_DOWN = ... # type: ot_math_constant_t
+ FRACTION_DENOMINATOR_GAP_MIN = ... # type: ot_math_constant_t
+ FRACTION_DENOMINATOR_SHIFT_DOWN = ... # type: ot_math_constant_t
+ FRACTION_DENOM_DISPLAY_STYLE_GAP_MIN = ... # type: ot_math_constant_t
+ FRACTION_NUMERATOR_DISPLAY_STYLE_SHIFT_UP = ... # type: ot_math_constant_t
+ FRACTION_NUMERATOR_GAP_MIN = ... # type: ot_math_constant_t
+ FRACTION_NUMERATOR_SHIFT_UP = ... # type: ot_math_constant_t
+ FRACTION_NUM_DISPLAY_STYLE_GAP_MIN = ... # type: ot_math_constant_t
+ FRACTION_RULE_THICKNESS = ... # type: ot_math_constant_t
+ LOWER_LIMIT_BASELINE_DROP_MIN = ... # type: ot_math_constant_t
+ LOWER_LIMIT_GAP_MIN = ... # type: ot_math_constant_t
+ MATH_LEADING = ... # type: ot_math_constant_t
+ OVERBAR_EXTRA_ASCENDER = ... # type: ot_math_constant_t
+ OVERBAR_RULE_THICKNESS = ... # type: ot_math_constant_t
+ OVERBAR_VERTICAL_GAP = ... # type: ot_math_constant_t
+ RADICAL_DEGREE_BOTTOM_RAISE_PERCENT = ... # type: ot_math_constant_t
+ RADICAL_DISPLAY_STYLE_VERTICAL_GAP = ... # type: ot_math_constant_t
+ RADICAL_EXTRA_ASCENDER = ... # type: ot_math_constant_t
+ RADICAL_KERN_AFTER_DEGREE = ... # type: ot_math_constant_t
+ RADICAL_KERN_BEFORE_DEGREE = ... # type: ot_math_constant_t
+ RADICAL_RULE_THICKNESS = ... # type: ot_math_constant_t
+ RADICAL_VERTICAL_GAP = ... # type: ot_math_constant_t
+ SCRIPT_PERCENT_SCALE_DOWN = ... # type: ot_math_constant_t
+ SCRIPT_SCRIPT_PERCENT_SCALE_DOWN = ... # type: ot_math_constant_t
+ SKEWED_FRACTION_HORIZONTAL_GAP = ... # type: ot_math_constant_t
+ SKEWED_FRACTION_VERTICAL_GAP = ... # type: ot_math_constant_t
+ SPACE_AFTER_SCRIPT = ... # type: ot_math_constant_t
+ STACK_BOTTOM_DISPLAY_STYLE_SHIFT_DOWN = ... # type: ot_math_constant_t
+ STACK_BOTTOM_SHIFT_DOWN = ... # type: ot_math_constant_t
+ STACK_DISPLAY_STYLE_GAP_MIN = ... # type: ot_math_constant_t
+ STACK_GAP_MIN = ... # type: ot_math_constant_t
+ STACK_TOP_DISPLAY_STYLE_SHIFT_UP = ... # type: ot_math_constant_t
+ STACK_TOP_SHIFT_UP = ... # type: ot_math_constant_t
+ STRETCH_STACK_BOTTOM_SHIFT_DOWN = ... # type: ot_math_constant_t
+ STRETCH_STACK_GAP_ABOVE_MIN = ... # type: ot_math_constant_t
+ STRETCH_STACK_GAP_BELOW_MIN = ... # type: ot_math_constant_t
+ STRETCH_STACK_TOP_SHIFT_UP = ... # type: ot_math_constant_t
+ SUBSCRIPT_BASELINE_DROP_MIN = ... # type: ot_math_constant_t
+ SUBSCRIPT_SHIFT_DOWN = ... # type: ot_math_constant_t
+ SUBSCRIPT_TOP_MAX = ... # type: ot_math_constant_t
+ SUB_SUPERSCRIPT_GAP_MIN = ... # type: ot_math_constant_t
+ SUPERSCRIPT_BASELINE_DROP_MAX = ... # type: ot_math_constant_t
+ SUPERSCRIPT_BOTTOM_MAX_WITH_SUBSCRIPT = ... # type: ot_math_constant_t
+ SUPERSCRIPT_BOTTOM_MIN = ... # type: ot_math_constant_t
+ SUPERSCRIPT_SHIFT_UP = ... # type: ot_math_constant_t
+ SUPERSCRIPT_SHIFT_UP_CRAMPED = ... # type: ot_math_constant_t
+ UNDERBAR_EXTRA_DESCENDER = ... # type: ot_math_constant_t
+ UNDERBAR_RULE_THICKNESS = ... # type: ot_math_constant_t
+ UNDERBAR_VERTICAL_GAP = ... # type: ot_math_constant_t
+ UPPER_LIMIT_BASELINE_RISE_MIN = ... # type: ot_math_constant_t
+ UPPER_LIMIT_GAP_MIN = ... # type: ot_math_constant_t
+
+
+class ot_math_kern_t(GObject.GEnum, builtins.int):
+ BOTTOM_LEFT = ... # type: ot_math_kern_t
+ BOTTOM_RIGHT = ... # type: ot_math_kern_t
+ TOP_LEFT = ... # type: ot_math_kern_t
+ TOP_RIGHT = ... # type: ot_math_kern_t
+
+
+class ot_meta_tag_t(GObject.GEnum, builtins.int):
+ DESIGN_LANGUAGES = ... # type: ot_meta_tag_t
+ SUPPORTED_LANGUAGES = ... # type: ot_meta_tag_t
+
+
+class ot_metrics_tag_t(GObject.GEnum, builtins.int):
+ CAP_HEIGHT = ... # type: ot_metrics_tag_t
+ HORIZONTAL_ASCENDER = ... # type: ot_metrics_tag_t
+ HORIZONTAL_CARET_OFFSET = ... # type: ot_metrics_tag_t
+ HORIZONTAL_CARET_RISE = ... # type: ot_metrics_tag_t
+ HORIZONTAL_CARET_RUN = ... # type: ot_metrics_tag_t
+ HORIZONTAL_CLIPPING_ASCENT = ... # type: ot_metrics_tag_t
+ HORIZONTAL_CLIPPING_DESCENT = ... # type: ot_metrics_tag_t
+ HORIZONTAL_DESCENDER = ... # type: ot_metrics_tag_t
+ HORIZONTAL_LINE_GAP = ... # type: ot_metrics_tag_t
+ STRIKEOUT_OFFSET = ... # type: ot_metrics_tag_t
+ STRIKEOUT_SIZE = ... # type: ot_metrics_tag_t
+ SUBSCRIPT_EM_X_OFFSET = ... # type: ot_metrics_tag_t
+ SUBSCRIPT_EM_X_SIZE = ... # type: ot_metrics_tag_t
+ SUBSCRIPT_EM_Y_OFFSET = ... # type: ot_metrics_tag_t
+ SUBSCRIPT_EM_Y_SIZE = ... # type: ot_metrics_tag_t
+ SUPERSCRIPT_EM_X_OFFSET = ... # type: ot_metrics_tag_t
+ SUPERSCRIPT_EM_X_SIZE = ... # type: ot_metrics_tag_t
+ SUPERSCRIPT_EM_Y_OFFSET = ... # type: ot_metrics_tag_t
+ SUPERSCRIPT_EM_Y_SIZE = ... # type: ot_metrics_tag_t
+ UNDERLINE_OFFSET = ... # type: ot_metrics_tag_t
+ UNDERLINE_SIZE = ... # type: ot_metrics_tag_t
+ VERTICAL_ASCENDER = ... # type: ot_metrics_tag_t
+ VERTICAL_CARET_OFFSET = ... # type: ot_metrics_tag_t
+ VERTICAL_CARET_RISE = ... # type: ot_metrics_tag_t
+ VERTICAL_CARET_RUN = ... # type: ot_metrics_tag_t
+ VERTICAL_DESCENDER = ... # type: ot_metrics_tag_t
+ VERTICAL_LINE_GAP = ... # type: ot_metrics_tag_t
+ X_HEIGHT = ... # type: ot_metrics_tag_t
+
+
+class script_t(GObject.GEnum, builtins.int):
+ ADLAM = ... # type: script_t
+ AHOM = ... # type: script_t
+ ANATOLIAN_HIEROGLYPHS = ... # type: script_t
+ ARABIC = ... # type: script_t
+ ARMENIAN = ... # type: script_t
+ AVESTAN = ... # type: script_t
+ BALINESE = ... # type: script_t
+ BAMUM = ... # type: script_t
+ BASSA_VAH = ... # type: script_t
+ BATAK = ... # type: script_t
+ BENGALI = ... # type: script_t
+ BHAIKSUKI = ... # type: script_t
+ BOPOMOFO = ... # type: script_t
+ BRAHMI = ... # type: script_t
+ BRAILLE = ... # type: script_t
+ BUGINESE = ... # type: script_t
+ BUHID = ... # type: script_t
+ CANADIAN_SYLLABICS = ... # type: script_t
+ CARIAN = ... # type: script_t
+ CAUCASIAN_ALBANIAN = ... # type: script_t
+ CHAKMA = ... # type: script_t
+ CHAM = ... # type: script_t
+ CHEROKEE = ... # type: script_t
+ CHORASMIAN = ... # type: script_t
+ COMMON = ... # type: script_t
+ COPTIC = ... # type: script_t
+ CUNEIFORM = ... # type: script_t
+ CYPRIOT = ... # type: script_t
+ CYRILLIC = ... # type: script_t
+ DESERET = ... # type: script_t
+ DEVANAGARI = ... # type: script_t
+ DIVES_AKURU = ... # type: script_t
+ DOGRA = ... # type: script_t
+ DUPLOYAN = ... # type: script_t
+ EGYPTIAN_HIEROGLYPHS = ... # type: script_t
+ ELBASAN = ... # type: script_t
+ ELYMAIC = ... # type: script_t
+ ETHIOPIC = ... # type: script_t
+ GEORGIAN = ... # type: script_t
+ GLAGOLITIC = ... # type: script_t
+ GOTHIC = ... # type: script_t
+ GRANTHA = ... # type: script_t
+ GREEK = ... # type: script_t
+ GUJARATI = ... # type: script_t
+ GUNJALA_GONDI = ... # type: script_t
+ GURMUKHI = ... # type: script_t
+ HAN = ... # type: script_t
+ HANGUL = ... # type: script_t
+ HANIFI_ROHINGYA = ... # type: script_t
+ HANUNOO = ... # type: script_t
+ HATRAN = ... # type: script_t
+ HEBREW = ... # type: script_t
+ HIRAGANA = ... # type: script_t
+ IMPERIAL_ARAMAIC = ... # type: script_t
+ INHERITED = ... # type: script_t
+ INSCRIPTIONAL_PAHLAVI = ... # type: script_t
+ INSCRIPTIONAL_PARTHIAN = ... # type: script_t
+ INVALID = ... # type: script_t
+ JAVANESE = ... # type: script_t
+ KAITHI = ... # type: script_t
+ KANNADA = ... # type: script_t
+ KATAKANA = ... # type: script_t
+ KAYAH_LI = ... # type: script_t
+ KHAROSHTHI = ... # type: script_t
+ KHITAN_SMALL_SCRIPT = ... # type: script_t
+ KHMER = ... # type: script_t
+ KHOJKI = ... # type: script_t
+ KHUDAWADI = ... # type: script_t
+ LAO = ... # type: script_t
+ LATIN = ... # type: script_t
+ LEPCHA = ... # type: script_t
+ LIMBU = ... # type: script_t
+ LINEAR_A = ... # type: script_t
+ LINEAR_B = ... # type: script_t
+ LISU = ... # type: script_t
+ LYCIAN = ... # type: script_t
+ LYDIAN = ... # type: script_t
+ MAHAJANI = ... # type: script_t
+ MAKASAR = ... # type: script_t
+ MALAYALAM = ... # type: script_t
+ MANDAIC = ... # type: script_t
+ MANICHAEAN = ... # type: script_t
+ MARCHEN = ... # type: script_t
+ MASARAM_GONDI = ... # type: script_t
+ MEDEFAIDRIN = ... # type: script_t
+ MEETEI_MAYEK = ... # type: script_t
+ MENDE_KIKAKUI = ... # type: script_t
+ MEROITIC_CURSIVE = ... # type: script_t
+ MEROITIC_HIEROGLYPHS = ... # type: script_t
+ MIAO = ... # type: script_t
+ MODI = ... # type: script_t
+ MONGOLIAN = ... # type: script_t
+ MRO = ... # type: script_t
+ MULTANI = ... # type: script_t
+ MYANMAR = ... # type: script_t
+ NABATAEAN = ... # type: script_t
+ NANDINAGARI = ... # type: script_t
+ NEWA = ... # type: script_t
+ NEW_TAI_LUE = ... # type: script_t
+ NKO = ... # type: script_t
+ NUSHU = ... # type: script_t
+ NYIAKENG_PUACHUE_HMONG = ... # type: script_t
+ OGHAM = ... # type: script_t
+ OLD_HUNGARIAN = ... # type: script_t
+ OLD_ITALIC = ... # type: script_t
+ OLD_NORTH_ARABIAN = ... # type: script_t
+ OLD_PERMIC = ... # type: script_t
+ OLD_PERSIAN = ... # type: script_t
+ OLD_SOGDIAN = ... # type: script_t
+ OLD_SOUTH_ARABIAN = ... # type: script_t
+ OLD_TURKIC = ... # type: script_t
+ OL_CHIKI = ... # type: script_t
+ ORIYA = ... # type: script_t
+ OSAGE = ... # type: script_t
+ OSMANYA = ... # type: script_t
+ PAHAWH_HMONG = ... # type: script_t
+ PALMYRENE = ... # type: script_t
+ PAU_CIN_HAU = ... # type: script_t
+ PHAGS_PA = ... # type: script_t
+ PHOENICIAN = ... # type: script_t
+ PSALTER_PAHLAVI = ... # type: script_t
+ REJANG = ... # type: script_t
+ RUNIC = ... # type: script_t
+ SAMARITAN = ... # type: script_t
+ SAURASHTRA = ... # type: script_t
+ SHARADA = ... # type: script_t
+ SHAVIAN = ... # type: script_t
+ SIDDHAM = ... # type: script_t
+ SIGNWRITING = ... # type: script_t
+ SINHALA = ... # type: script_t
+ SOGDIAN = ... # type: script_t
+ SORA_SOMPENG = ... # type: script_t
+ SOYOMBO = ... # type: script_t
+ SUNDANESE = ... # type: script_t
+ SYLOTI_NAGRI = ... # type: script_t
+ SYRIAC = ... # type: script_t
+ TAGALOG = ... # type: script_t
+ TAGBANWA = ... # type: script_t
+ TAI_LE = ... # type: script_t
+ TAI_THAM = ... # type: script_t
+ TAI_VIET = ... # type: script_t
+ TAKRI = ... # type: script_t
+ TAMIL = ... # type: script_t
+ TANGUT = ... # type: script_t
+ TELUGU = ... # type: script_t
+ THAANA = ... # type: script_t
+ THAI = ... # type: script_t
+ TIBETAN = ... # type: script_t
+ TIFINAGH = ... # type: script_t
+ TIRHUTA = ... # type: script_t
+ UGARITIC = ... # type: script_t
+ UNKNOWN = ... # type: script_t
+ VAI = ... # type: script_t
+ WANCHO = ... # type: script_t
+ WARANG_CITI = ... # type: script_t
+ YEZIDI = ... # type: script_t
+ YI = ... # type: script_t
+ ZANABAZAR_SQUARE = ... # type: script_t
+
+
+class unicode_combining_class_t(GObject.GEnum, builtins.int):
+ ABOVE = ... # type: unicode_combining_class_t
+ ABOVE_LEFT = ... # type: unicode_combining_class_t
+ ABOVE_RIGHT = ... # type: unicode_combining_class_t
+ ATTACHED_ABOVE = ... # type: unicode_combining_class_t
+ ATTACHED_ABOVE_RIGHT = ... # type: unicode_combining_class_t
+ ATTACHED_BELOW = ... # type: unicode_combining_class_t
+ ATTACHED_BELOW_LEFT = ... # type: unicode_combining_class_t
+ BELOW = ... # type: unicode_combining_class_t
+ BELOW_LEFT = ... # type: unicode_combining_class_t
+ BELOW_RIGHT = ... # type: unicode_combining_class_t
+ CCC10 = ... # type: unicode_combining_class_t
+ CCC103 = ... # type: unicode_combining_class_t
+ CCC107 = ... # type: unicode_combining_class_t
+ CCC11 = ... # type: unicode_combining_class_t
+ CCC118 = ... # type: unicode_combining_class_t
+ CCC12 = ... # type: unicode_combining_class_t
+ CCC122 = ... # type: unicode_combining_class_t
+ CCC129 = ... # type: unicode_combining_class_t
+ CCC13 = ... # type: unicode_combining_class_t
+ CCC130 = ... # type: unicode_combining_class_t
+ CCC133 = ... # type: unicode_combining_class_t
+ CCC14 = ... # type: unicode_combining_class_t
+ CCC15 = ... # type: unicode_combining_class_t
+ CCC16 = ... # type: unicode_combining_class_t
+ CCC17 = ... # type: unicode_combining_class_t
+ CCC18 = ... # type: unicode_combining_class_t
+ CCC19 = ... # type: unicode_combining_class_t
+ CCC20 = ... # type: unicode_combining_class_t
+ CCC21 = ... # type: unicode_combining_class_t
+ CCC22 = ... # type: unicode_combining_class_t
+ CCC23 = ... # type: unicode_combining_class_t
+ CCC24 = ... # type: unicode_combining_class_t
+ CCC25 = ... # type: unicode_combining_class_t
+ CCC26 = ... # type: unicode_combining_class_t
+ CCC27 = ... # type: unicode_combining_class_t
+ CCC28 = ... # type: unicode_combining_class_t
+ CCC29 = ... # type: unicode_combining_class_t
+ CCC30 = ... # type: unicode_combining_class_t
+ CCC31 = ... # type: unicode_combining_class_t
+ CCC32 = ... # type: unicode_combining_class_t
+ CCC33 = ... # type: unicode_combining_class_t
+ CCC34 = ... # type: unicode_combining_class_t
+ CCC35 = ... # type: unicode_combining_class_t
+ CCC36 = ... # type: unicode_combining_class_t
+ CCC84 = ... # type: unicode_combining_class_t
+ CCC91 = ... # type: unicode_combining_class_t
+ DOUBLE_ABOVE = ... # type: unicode_combining_class_t
+ DOUBLE_BELOW = ... # type: unicode_combining_class_t
+ INVALID = ... # type: unicode_combining_class_t
+ IOTA_SUBSCRIPT = ... # type: unicode_combining_class_t
+ KANA_VOICING = ... # type: unicode_combining_class_t
+ LEFT = ... # type: unicode_combining_class_t
+ NOT_REORDERED = ... # type: unicode_combining_class_t
+ NUKTA = ... # type: unicode_combining_class_t
+ OVERLAY = ... # type: unicode_combining_class_t
+ RIGHT = ... # type: unicode_combining_class_t
+ VIRAMA = ... # type: unicode_combining_class_t
+
+
+class unicode_general_category_t(GObject.GEnum, builtins.int):
+ CLOSE_PUNCTUATION = ... # type: unicode_general_category_t
+ CONNECT_PUNCTUATION = ... # type: unicode_general_category_t
+ CONTROL = ... # type: unicode_general_category_t
+ CURRENCY_SYMBOL = ... # type: unicode_general_category_t
+ DASH_PUNCTUATION = ... # type: unicode_general_category_t
+ DECIMAL_NUMBER = ... # type: unicode_general_category_t
+ ENCLOSING_MARK = ... # type: unicode_general_category_t
+ FINAL_PUNCTUATION = ... # type: unicode_general_category_t
+ FORMAT = ... # type: unicode_general_category_t
+ INITIAL_PUNCTUATION = ... # type: unicode_general_category_t
+ LETTER_NUMBER = ... # type: unicode_general_category_t
+ LINE_SEPARATOR = ... # type: unicode_general_category_t
+ LOWERCASE_LETTER = ... # type: unicode_general_category_t
+ MATH_SYMBOL = ... # type: unicode_general_category_t
+ MODIFIER_LETTER = ... # type: unicode_general_category_t
+ MODIFIER_SYMBOL = ... # type: unicode_general_category_t
+ NON_SPACING_MARK = ... # type: unicode_general_category_t
+ OPEN_PUNCTUATION = ... # type: unicode_general_category_t
+ OTHER_LETTER = ... # type: unicode_general_category_t
+ OTHER_NUMBER = ... # type: unicode_general_category_t
+ OTHER_PUNCTUATION = ... # type: unicode_general_category_t
+ OTHER_SYMBOL = ... # type: unicode_general_category_t
+ PARAGRAPH_SEPARATOR = ... # type: unicode_general_category_t
+ PRIVATE_USE = ... # type: unicode_general_category_t
+ SPACE_SEPARATOR = ... # type: unicode_general_category_t
+ SPACING_MARK = ... # type: unicode_general_category_t
+ SURROGATE = ... # type: unicode_general_category_t
+ TITLECASE_LETTER = ... # type: unicode_general_category_t
+ UNASSIGNED = ... # type: unicode_general_category_t
+ UPPERCASE_LETTER = ... # type: unicode_general_category_t
+
+
+buffer_message_func_t = typing.Callable[[buffer_t, font_t, builtins.str, typing.Optional[builtins.object]], builtins.int]
+destroy_func_t = typing.Callable[[typing.Optional[builtins.object]], None]
+font_get_font_extents_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], font_extents_t, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_advance_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_advances_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], None]
+font_get_glyph_contour_point_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_extents_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, glyph_extents_t, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_from_name_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.str, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_kerning_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_name_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.str, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_glyph_origin_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_nominal_glyph_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_nominal_glyphs_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+font_get_variation_glyph_func_t = typing.Callable[[font_t, typing.Optional[builtins.object], builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+reference_table_func_t = typing.Callable[[face_t, builtins.int, typing.Optional[builtins.object]], blob_t]
+unicode_combining_class_func_t = typing.Callable[[unicode_funcs_t, builtins.int, typing.Optional[builtins.object]], unicode_combining_class_t]
+unicode_compose_func_t = typing.Callable[[unicode_funcs_t, builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+unicode_decompose_compatibility_func_t = typing.Callable[[unicode_funcs_t, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+unicode_decompose_func_t = typing.Callable[[unicode_funcs_t, builtins.int, builtins.int, builtins.int, typing.Optional[builtins.object]], builtins.int]
+unicode_eastasian_width_func_t = typing.Callable[[unicode_funcs_t, builtins.int, typing.Optional[builtins.object]], builtins.int]
+unicode_general_category_func_t = typing.Callable[[unicode_funcs_t, builtins.int, typing.Optional[builtins.object]], unicode_general_category_t]
+unicode_mirroring_func_t = typing.Callable[[unicode_funcs_t, builtins.int, typing.Optional[builtins.object]], builtins.int]
+unicode_script_func_t = typing.Callable[[unicode_funcs_t, builtins.int, typing.Optional[builtins.object]], script_t]
+
+
+def blob_copy_writable_or_fail(blob: blob_t) -> blob_t: ...
+
+
+def blob_create_from_file(file_name: builtins.str) -> blob_t: ...
+
+
+def blob_create_sub_blob(parent: blob_t, offset: builtins.int, length: builtins.int) -> blob_t: ...
+
+
+def blob_get_data(blob: blob_t) -> typing.Sequence[builtins.str]: ...
+
+
+def blob_get_data_writable(blob: blob_t) -> typing.Sequence[builtins.str]: ...
+
+
+def blob_get_empty() -> blob_t: ...
+
+
+def blob_get_length(blob: blob_t) -> builtins.int: ...
+
+
+def blob_is_immutable(blob: blob_t) -> builtins.int: ...
+
+
+def blob_make_immutable(blob: blob_t) -> None: ...
+
+
+def buffer_add(buffer: buffer_t, codepoint: builtins.int, cluster: builtins.int) -> None: ...
+
+
+def buffer_add_codepoints(buffer: buffer_t, text: typing.Sequence[builtins.int], item_offset: builtins.int, item_length: builtins.int) -> None: ...
+
+
+def buffer_add_latin1(buffer: buffer_t, text: builtins.bytes, item_offset: builtins.int, item_length: builtins.int) -> None: ...
+
+
+def buffer_add_utf16(buffer: buffer_t, text: typing.Sequence[builtins.int], item_offset: builtins.int, item_length: builtins.int) -> None: ...
+
+
+def buffer_add_utf32(buffer: buffer_t, text: typing.Sequence[builtins.int], item_offset: builtins.int, item_length: builtins.int) -> None: ...
+
+
+def buffer_add_utf8(buffer: buffer_t, text: builtins.bytes, item_offset: builtins.int, item_length: builtins.int) -> None: ...
+
+
+def buffer_allocation_successful(buffer: buffer_t) -> builtins.int: ...
+
+
+def buffer_append(buffer: buffer_t, source: buffer_t, start: builtins.int, end: builtins.int) -> None: ...
+
+
+def buffer_clear_contents(buffer: buffer_t) -> None: ...
+
+
+def buffer_create() -> buffer_t: ...
+
+
+def buffer_deserialize_glyphs(buffer: buffer_t, buf: typing.Sequence[builtins.str], font: font_t, format: buffer_serialize_format_t) -> typing.Tuple[builtins.int, builtins.str]: ...
+
+
+def buffer_diff(buffer: buffer_t, reference: buffer_t, dottedcircle_glyph: builtins.int, position_fuzz: builtins.int) -> buffer_diff_flags_t: ...
+
+
+def buffer_get_cluster_level(buffer: buffer_t) -> buffer_cluster_level_t: ...
+
+
+def buffer_get_content_type(buffer: buffer_t) -> buffer_content_type_t: ...
+
+
+def buffer_get_direction(buffer: buffer_t) -> direction_t: ...
+
+
+def buffer_get_empty() -> buffer_t: ...
+
+
+def buffer_get_flags(buffer: buffer_t) -> buffer_flags_t: ...
+
+
+def buffer_get_glyph_infos(buffer: buffer_t) -> typing.Sequence[glyph_info_t]: ...
+
+
+def buffer_get_glyph_positions(buffer: buffer_t) -> typing.Sequence[glyph_position_t]: ...
+
+
+def buffer_get_invisible_glyph(buffer: buffer_t) -> builtins.int: ...
+
+
+def buffer_get_language(buffer: buffer_t) -> language_t: ...
+
+
+def buffer_get_length(buffer: buffer_t) -> builtins.int: ...
+
+
+def buffer_get_replacement_codepoint(buffer: buffer_t) -> builtins.int: ...
+
+
+def buffer_get_script(buffer: buffer_t) -> script_t: ...
+
+
+def buffer_get_segment_properties(buffer: buffer_t) -> segment_properties_t: ...
+
+
+def buffer_get_unicode_funcs(buffer: buffer_t) -> unicode_funcs_t: ...
+
+
+def buffer_guess_segment_properties(buffer: buffer_t) -> None: ...
+
+
+def buffer_normalize_glyphs(buffer: buffer_t) -> None: ...
+
+
+def buffer_pre_allocate(buffer: buffer_t, size: builtins.int) -> builtins.int: ...
+
+
+def buffer_reset(buffer: buffer_t) -> None: ...
+
+
+def buffer_reverse(buffer: buffer_t) -> None: ...
+
+
+def buffer_reverse_clusters(buffer: buffer_t) -> None: ...
+
+
+def buffer_reverse_range(buffer: buffer_t, start: builtins.int, end: builtins.int) -> None: ...
+
+
+def buffer_serialize_format_from_string(str: builtins.bytes) -> buffer_serialize_format_t: ...
+
+
+def buffer_serialize_format_to_string(format: buffer_serialize_format_t) -> builtins.str: ...
+
+
+def buffer_serialize_glyphs(buffer: buffer_t, start: builtins.int, end: builtins.int, font: typing.Optional[font_t], format: buffer_serialize_format_t, flags: buffer_serialize_flags_t) -> typing.Tuple[builtins.int, builtins.bytes, builtins.int]: ...
+
+
+def buffer_serialize_list_formats() -> typing.Sequence[builtins.str]: ...
+
+
+def buffer_set_cluster_level(buffer: buffer_t, cluster_level: buffer_cluster_level_t) -> None: ...
+
+
+def buffer_set_content_type(buffer: buffer_t, content_type: buffer_content_type_t) -> None: ...
+
+
+def buffer_set_direction(buffer: buffer_t, direction: direction_t) -> None: ...
+
+
+def buffer_set_flags(buffer: buffer_t, flags: buffer_flags_t) -> None: ...
+
+
+def buffer_set_invisible_glyph(buffer: buffer_t, invisible: builtins.int) -> None: ...
+
+
+def buffer_set_language(buffer: buffer_t, language: language_t) -> None: ...
+
+
+def buffer_set_length(buffer: buffer_t, length: builtins.int) -> builtins.int: ...
+
+
+def buffer_set_message_func(buffer: buffer_t, func: buffer_message_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def buffer_set_replacement_codepoint(buffer: buffer_t, replacement: builtins.int) -> None: ...
+
+
+def buffer_set_script(buffer: buffer_t, script: script_t) -> None: ...
+
+
+def buffer_set_segment_properties(buffer: buffer_t, props: segment_properties_t) -> None: ...
+
+
+def buffer_set_unicode_funcs(buffer: buffer_t, unicode_funcs: unicode_funcs_t) -> None: ...
+
+
+def color_get_alpha(color: builtins.int) -> builtins.int: ...
+
+
+def color_get_blue(color: builtins.int) -> builtins.int: ...
+
+
+def color_get_green(color: builtins.int) -> builtins.int: ...
+
+
+def color_get_red(color: builtins.int) -> builtins.int: ...
+
+
+def direction_from_string(str: builtins.bytes) -> direction_t: ...
+
+
+def direction_to_string(direction: direction_t) -> builtins.str: ...
+
+
+def face_builder_add_table(face: face_t, tag: builtins.int, blob: blob_t) -> builtins.int: ...
+
+
+def face_builder_create() -> face_t: ...
+
+
+def face_collect_unicodes(face: face_t, out: set_t) -> None: ...
+
+
+def face_collect_variation_selectors(face: face_t, out: set_t) -> None: ...
+
+
+def face_collect_variation_unicodes(face: face_t, variation_selector: builtins.int, out: set_t) -> None: ...
+
+
+def face_count(blob: blob_t) -> builtins.int: ...
+
+
+def face_create(blob: blob_t, index: builtins.int) -> face_t: ...
+
+
+def face_create_for_tables(reference_table_func: reference_table_func_t, *user_data: typing.Optional[builtins.object]) -> face_t: ...
+
+
+def face_get_empty() -> face_t: ...
+
+
+def face_get_glyph_count(face: face_t) -> builtins.int: ...
+
+
+def face_get_index(face: face_t) -> builtins.int: ...
+
+
+def face_get_table_tags(face: face_t, start_offset: builtins.int, table_count: builtins.int, table_tags: builtins.int) -> builtins.int: ...
+
+
+def face_get_upem(face: face_t) -> builtins.int: ...
+
+
+def face_is_immutable(face: face_t) -> builtins.int: ...
+
+
+def face_make_immutable(face: face_t) -> None: ...
+
+
+def face_reference_blob(face: face_t) -> blob_t: ...
+
+
+def face_reference_table(face: face_t, tag: builtins.int) -> blob_t: ...
+
+
+def face_set_glyph_count(face: face_t, glyph_count: builtins.int) -> None: ...
+
+
+def face_set_index(face: face_t, index: builtins.int) -> None: ...
+
+
+def face_set_upem(face: face_t, upem: builtins.int) -> None: ...
+
+
+def feature_from_string(str: builtins.bytes) -> typing.Tuple[builtins.int, feature_t]: ...
+
+
+def feature_to_string(feature: feature_t) -> typing.Sequence[builtins.str]: ...
+
+
+def font_add_glyph_origin_for_direction(font: font_t, glyph: builtins.int, direction: direction_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_create(face: face_t) -> font_t: ...
+
+
+def font_create_sub_font(parent: font_t) -> font_t: ...
+
+
+def font_funcs_create() -> font_funcs_t: ...
+
+
+def font_funcs_get_empty() -> font_funcs_t: ...
+
+
+def font_funcs_is_immutable(ffuncs: font_funcs_t) -> builtins.int: ...
+
+
+def font_funcs_make_immutable(ffuncs: font_funcs_t) -> None: ...
+
+
+def font_funcs_set_font_h_extents_func(ffuncs: font_funcs_t, func: font_get_font_extents_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_font_v_extents_func(ffuncs: font_funcs_t, func: font_get_font_extents_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_contour_point_func(ffuncs: font_funcs_t, func: font_get_glyph_contour_point_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_extents_func(ffuncs: font_funcs_t, func: font_get_glyph_extents_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_from_name_func(ffuncs: font_funcs_t, func: font_get_glyph_from_name_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_func(ffuncs: font_funcs_t, func: font_get_glyph_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_h_advance_func(ffuncs: font_funcs_t, func: font_get_glyph_advance_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_h_advances_func(ffuncs: font_funcs_t, func: font_get_glyph_advances_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_h_kerning_func(ffuncs: font_funcs_t, func: font_get_glyph_kerning_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_h_origin_func(ffuncs: font_funcs_t, func: font_get_glyph_origin_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_name_func(ffuncs: font_funcs_t, func: font_get_glyph_name_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_v_advance_func(ffuncs: font_funcs_t, func: font_get_glyph_advance_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_v_advances_func(ffuncs: font_funcs_t, func: font_get_glyph_advances_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_v_kerning_func(ffuncs: font_funcs_t, func: font_get_glyph_kerning_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_glyph_v_origin_func(ffuncs: font_funcs_t, func: font_get_glyph_origin_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_nominal_glyph_func(ffuncs: font_funcs_t, func: font_get_nominal_glyph_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_nominal_glyphs_func(ffuncs: font_funcs_t, func: font_get_nominal_glyphs_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_funcs_set_variation_glyph_func(ffuncs: font_funcs_t, func: font_get_variation_glyph_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def font_get_empty() -> font_t: ...
+
+
+def font_get_extents_for_direction(font: font_t, direction: direction_t) -> font_extents_t: ...
+
+
+def font_get_face(font: font_t) -> face_t: ...
+
+
+def font_get_glyph(font: font_t, unicode: builtins.int, variation_selector: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_advance_for_direction(font: font_t, glyph: builtins.int, direction: direction_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_advances_for_direction(font: font_t, direction: direction_t, count: builtins.int, first_glyph: builtins.int, glyph_stride: builtins.int, first_advance: builtins.int, advance_stride: builtins.int) -> None: ...
+
+
+def font_get_glyph_contour_point(font: font_t, glyph: builtins.int, point_index: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_contour_point_for_origin(font: font_t, glyph: builtins.int, point_index: builtins.int, direction: direction_t) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_extents(font: font_t, glyph: builtins.int) -> typing.Tuple[builtins.int, glyph_extents_t]: ...
+
+
+def font_get_glyph_extents_for_origin(font: font_t, glyph: builtins.int, direction: direction_t) -> typing.Tuple[builtins.int, glyph_extents_t]: ...
+
+
+def font_get_glyph_from_name(font: font_t, name: typing.Sequence[builtins.str]) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_h_advance(font: font_t, glyph: builtins.int) -> builtins.int: ...
+
+
+def font_get_glyph_h_advances(font: font_t, count: builtins.int, first_glyph: builtins.int, glyph_stride: builtins.int, first_advance: builtins.int, advance_stride: builtins.int) -> None: ...
+
+
+def font_get_glyph_h_kerning(font: font_t, left_glyph: builtins.int, right_glyph: builtins.int) -> builtins.int: ...
+
+
+def font_get_glyph_h_origin(font: font_t, glyph: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_kerning_for_direction(font: font_t, first_glyph: builtins.int, second_glyph: builtins.int, direction: direction_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_name(font: font_t, glyph: builtins.int, name: typing.Sequence[builtins.str]) -> builtins.int: ...
+
+
+def font_get_glyph_origin_for_direction(font: font_t, glyph: builtins.int, direction: direction_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_glyph_v_advance(font: font_t, glyph: builtins.int) -> builtins.int: ...
+
+
+def font_get_glyph_v_advances(font: font_t, count: builtins.int, first_glyph: builtins.int, glyph_stride: builtins.int, first_advance: builtins.int, advance_stride: builtins.int) -> None: ...
+
+
+def font_get_glyph_v_kerning(font: font_t, top_glyph: builtins.int, bottom_glyph: builtins.int) -> builtins.int: ...
+
+
+def font_get_glyph_v_origin(font: font_t, glyph: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def font_get_h_extents(font: font_t) -> typing.Tuple[builtins.int, font_extents_t]: ...
+
+
+def font_get_nominal_glyph(font: font_t, unicode: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_nominal_glyphs(font: font_t, count: builtins.int, first_unicode: builtins.int, unicode_stride: builtins.int, first_glyph: builtins.int, glyph_stride: builtins.int) -> builtins.int: ...
+
+
+def font_get_parent(font: font_t) -> font_t: ...
+
+
+def font_get_ppem(font: font_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_ptem(font: font_t) -> builtins.float: ...
+
+
+def font_get_scale(font: font_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_get_v_extents(font: font_t) -> typing.Tuple[builtins.int, font_extents_t]: ...
+
+
+def font_get_var_coords_normalized(font: font_t, length: builtins.int) -> builtins.int: ...
+
+
+def font_get_variation_glyph(font: font_t, unicode: builtins.int, variation_selector: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_glyph_from_string(font: font_t, s: builtins.bytes) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_glyph_to_string(font: font_t, glyph: builtins.int, s: typing.Sequence[builtins.str]) -> None: ...
+
+
+def font_is_immutable(font: font_t) -> builtins.int: ...
+
+
+def font_make_immutable(font: font_t) -> None: ...
+
+
+def font_set_face(font: font_t, face: face_t) -> None: ...
+
+
+def font_set_funcs(font: font_t, klass: font_funcs_t, font_data: typing.Optional[builtins.object], destroy: destroy_func_t) -> None: ...
+
+
+def font_set_funcs_data(font: font_t, font_data: typing.Optional[builtins.object], destroy: destroy_func_t) -> None: ...
+
+
+def font_set_parent(font: font_t, parent: font_t) -> None: ...
+
+
+def font_set_ppem(font: font_t, x_ppem: builtins.int, y_ppem: builtins.int) -> None: ...
+
+
+def font_set_ptem(font: font_t, ptem: builtins.float) -> None: ...
+
+
+def font_set_scale(font: font_t, x_scale: builtins.int, y_scale: builtins.int) -> None: ...
+
+
+def font_set_var_coords_design(font: font_t, coords: builtins.float, coords_length: builtins.int) -> None: ...
+
+
+def font_set_var_coords_normalized(font: font_t, coords: builtins.int, coords_length: builtins.int) -> None: ...
+
+
+def font_set_var_named_instance(font: font_t, instance_index: builtins.int) -> None: ...
+
+
+def font_set_variations(font: font_t, variations: variation_t, variations_length: builtins.int) -> None: ...
+
+
+def font_subtract_glyph_origin_for_direction(font: font_t, glyph: builtins.int, direction: direction_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ft_font_changed(font: font_t) -> None: ...
+
+
+def ft_font_get_load_flags(font: font_t) -> builtins.int: ...
+
+
+def ft_font_set_funcs(font: font_t) -> None: ...
+
+
+def ft_font_set_load_flags(font: font_t, load_flags: builtins.int) -> None: ...
+
+
+def ft_font_unlock_face(font: font_t) -> None: ...
+
+
+def glib_blob_create(gbytes: GLib.Bytes) -> blob_t: ...
+
+
+def glib_get_unicode_funcs() -> unicode_funcs_t: ...
+
+
+def glib_script_from_script(script: script_t) -> GLib.UnicodeScript: ...
+
+
+def glib_script_to_script(script: GLib.UnicodeScript) -> script_t: ...
+
+
+def glyph_info_get_glyph_flags(info: glyph_info_t) -> glyph_flags_t: ...
+
+
+def language_from_string(str: builtins.bytes) -> language_t: ...
+
+
+def language_get_default() -> language_t: ...
+
+
+def language_to_string(language: language_t) -> builtins.str: ...
+
+
+def map_allocation_successful(map: map_t) -> builtins.int: ...
+
+
+def map_clear(map: map_t) -> None: ...
+
+
+def map_create() -> map_t: ...
+
+
+def map_del(map: map_t, key: builtins.int) -> None: ...
+
+
+def map_get(map: map_t, key: builtins.int) -> builtins.int: ...
+
+
+def map_get_empty() -> map_t: ...
+
+
+def map_get_population(map: map_t) -> builtins.int: ...
+
+
+def map_has(map: map_t, key: builtins.int) -> builtins.int: ...
+
+
+def map_is_empty(map: map_t) -> builtins.int: ...
+
+
+def map_set(map: map_t, key: builtins.int, value: builtins.int) -> None: ...
+
+
+def ot_color_glyph_get_layers(face: face_t, glyph: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[ot_color_layer_t]]: ...
+
+
+def ot_color_glyph_reference_png(font: font_t, glyph: builtins.int) -> blob_t: ...
+
+
+def ot_color_glyph_reference_svg(face: face_t, glyph: builtins.int) -> blob_t: ...
+
+
+def ot_color_has_layers(face: face_t) -> builtins.int: ...
+
+
+def ot_color_has_palettes(face: face_t) -> builtins.int: ...
+
+
+def ot_color_has_png(face: face_t) -> builtins.int: ...
+
+
+def ot_color_has_svg(face: face_t) -> builtins.int: ...
+
+
+def ot_color_palette_color_get_name_id(face: face_t, color_index: builtins.int) -> builtins.int: ...
+
+
+def ot_color_palette_get_colors(face: face_t, palette_index: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_color_palette_get_count(face: face_t) -> builtins.int: ...
+
+
+def ot_color_palette_get_flags(face: face_t, palette_index: builtins.int) -> ot_color_palette_flags_t: ...
+
+
+def ot_color_palette_get_name_id(face: face_t, palette_index: builtins.int) -> builtins.int: ...
+
+
+def ot_font_set_funcs(font: font_t) -> None: ...
+
+
+def ot_layout_collect_features(face: face_t, table_tag: builtins.int, scripts: builtins.int, languages: builtins.int, features: builtins.int) -> set_t: ...
+
+
+def ot_layout_collect_lookups(face: face_t, table_tag: builtins.int, scripts: builtins.int, languages: builtins.int, features: builtins.int) -> set_t: ...
+
+
+def ot_layout_feature_get_characters(face: face_t, table_tag: builtins.int, feature_index: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_feature_get_lookups(face: face_t, table_tag: builtins.int, feature_index: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_feature_get_name_ids(face: face_t, table_tag: builtins.int, feature_index: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+
+def ot_layout_feature_with_variations_get_lookups(face: face_t, table_tag: builtins.int, feature_index: builtins.int, variations_index: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_get_attach_points(face: face_t, glyph: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_get_baseline(font: font_t, baseline_tag: ot_layout_baseline_tag_t, direction: direction_t, script_tag: builtins.int, language_tag: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_layout_get_glyph_class(face: face_t, glyph: builtins.int) -> ot_layout_glyph_class_t: ...
+
+
+def ot_layout_get_glyphs_in_class(face: face_t, klass: ot_layout_glyph_class_t) -> set_t: ...
+
+
+def ot_layout_get_ligature_carets(font: font_t, direction: direction_t, glyph: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_get_size_params(face: face_t) -> typing.Tuple[builtins.int, builtins.int, builtins.int, builtins.int, builtins.int, builtins.int]: ...
+
+
+def ot_layout_has_glyph_classes(face: face_t) -> builtins.int: ...
+
+
+def ot_layout_has_positioning(face: face_t) -> builtins.int: ...
+
+
+def ot_layout_has_substitution(face: face_t) -> builtins.int: ...
+
+
+def ot_layout_language_find_feature(face: face_t, table_tag: builtins.int, script_index: builtins.int, language_index: builtins.int, feature_tag: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_layout_language_get_feature_indexes(face: face_t, table_tag: builtins.int, script_index: builtins.int, language_index: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_language_get_feature_tags(face: face_t, table_tag: builtins.int, script_index: builtins.int, language_index: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_language_get_required_feature(face: face_t, table_tag: builtins.int, script_index: builtins.int, language_index: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def ot_layout_language_get_required_feature_index(face: face_t, table_tag: builtins.int, script_index: builtins.int, language_index: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_layout_lookup_collect_glyphs(face: face_t, table_tag: builtins.int, lookup_index: builtins.int) -> typing.Tuple[set_t, set_t, set_t, set_t]: ...
+
+
+def ot_layout_lookup_substitute_closure(face: face_t, lookup_index: builtins.int) -> set_t: ...
+
+
+def ot_layout_lookup_would_substitute(face: face_t, lookup_index: builtins.int, glyphs: builtins.int, glyphs_length: builtins.int, zero_context: builtins.int) -> builtins.int: ...
+
+
+def ot_layout_lookups_substitute_closure(face: face_t, lookups: set_t) -> set_t: ...
+
+
+def ot_layout_script_find_language(face: face_t, table_tag: builtins.int, script_index: builtins.int, language_tag: builtins.int, language_index: builtins.int) -> builtins.int: ...
+
+
+def ot_layout_script_get_language_tags(face: face_t, table_tag: builtins.int, script_index: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_script_select_language(face: face_t, table_tag: builtins.int, script_index: builtins.int, language_count: builtins.int, language_tags: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_layout_table_choose_script(face: face_t, table_tag: builtins.int, script_tags: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def ot_layout_table_find_feature_variations(face: face_t, table_tag: builtins.int, coords: builtins.int, num_coords: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_layout_table_find_script(face: face_t, table_tag: builtins.int, script_tag: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_layout_table_get_feature_tags(face: face_t, table_tag: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_table_get_lookup_count(face: face_t, table_tag: builtins.int) -> builtins.int: ...
+
+
+def ot_layout_table_get_script_tags(face: face_t, table_tag: builtins.int, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_layout_table_select_script(face: face_t, table_tag: builtins.int, script_count: builtins.int, script_tags: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def ot_math_get_constant(font: font_t, constant: ot_math_constant_t) -> builtins.int: ...
+
+
+def ot_math_get_glyph_assembly(font: font_t, glyph: builtins.int, direction: direction_t, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[ot_math_glyph_part_t], builtins.int]: ...
+
+
+def ot_math_get_glyph_italics_correction(font: font_t, glyph: builtins.int) -> builtins.int: ...
+
+
+def ot_math_get_glyph_kerning(font: font_t, glyph: builtins.int, kern: ot_math_kern_t, correction_height: builtins.int) -> builtins.int: ...
+
+
+def ot_math_get_glyph_top_accent_attachment(font: font_t, glyph: builtins.int) -> builtins.int: ...
+
+
+def ot_math_get_glyph_variants(font: font_t, glyph: builtins.int, direction: direction_t, start_offset: builtins.int) -> typing.Tuple[builtins.int, typing.Sequence[ot_math_glyph_variant_t]]: ...
+
+
+def ot_math_get_min_connector_overlap(font: font_t, direction: direction_t) -> builtins.int: ...
+
+
+def ot_math_has_data(face: face_t) -> builtins.int: ...
+
+
+def ot_math_is_glyph_extended_shape(face: face_t, glyph: builtins.int) -> builtins.int: ...
+
+
+def ot_meta_get_entry_tags(face: face_t, start_offset: builtins.int, entries_count: builtins.int, entries: ot_meta_tag_t) -> builtins.int: ...
+
+
+def ot_meta_reference_entry(face: face_t, meta_tag: ot_meta_tag_t) -> blob_t: ...
+
+
+def ot_metrics_get_position(font: font_t, metrics_tag: ot_metrics_tag_t) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_metrics_get_variation(font: font_t, metrics_tag: ot_metrics_tag_t) -> builtins.float: ...
+
+
+def ot_metrics_get_x_variation(font: font_t, metrics_tag: ot_metrics_tag_t) -> builtins.int: ...
+
+
+def ot_metrics_get_y_variation(font: font_t, metrics_tag: ot_metrics_tag_t) -> builtins.int: ...
+
+
+def ot_name_get_utf16(face: face_t, name_id: builtins.int, language: language_t) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_name_get_utf32(face: face_t, name_id: builtins.int, language: language_t) -> typing.Tuple[builtins.int, typing.Sequence[builtins.int]]: ...
+
+
+def ot_name_get_utf8(face: face_t, name_id: builtins.int, language: language_t) -> typing.Tuple[builtins.int, typing.Sequence[builtins.str]]: ...
+
+
+def ot_name_list_names(face: face_t) -> typing.Sequence[ot_name_entry_t]: ...
+
+
+def ot_shape_glyphs_closure(font: font_t, buffer: buffer_t, features: feature_t, num_features: builtins.int, glyphs: set_t) -> None: ...
+
+
+def ot_tag_from_language(language: language_t) -> builtins.int: ...
+
+
+def ot_tag_to_language(tag: builtins.int) -> language_t: ...
+
+
+def ot_tag_to_script(tag: builtins.int) -> script_t: ...
+
+
+def ot_tags_from_script(script: script_t, script_tag_1: builtins.int, script_tag_2: builtins.int) -> None: ...
+
+
+def ot_tags_from_script_and_language(script: script_t, language: language_t, script_count: typing.Optional[builtins.int], language_count: typing.Optional[builtins.int]) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def ot_tags_to_script_and_language(script_tag: builtins.int, language_tag: builtins.int, script: typing.Optional[script_t], language: typing.Optional[language_t]) -> None: ...
+
+
+def ot_var_find_axis(face: face_t, axis_tag: builtins.int, axis_index: builtins.int, axis_info: ot_var_axis_t) -> builtins.int: ...
+
+
+def ot_var_find_axis_info(face: face_t, axis_tag: builtins.int, axis_info: ot_var_axis_info_t) -> builtins.int: ...
+
+
+def ot_var_get_axes(face: face_t, start_offset: builtins.int, axes_count: builtins.int, axes_array: ot_var_axis_t) -> builtins.int: ...
+
+
+def ot_var_get_axis_count(face: face_t) -> builtins.int: ...
+
+
+def ot_var_get_axis_infos(face: face_t, start_offset: builtins.int, axes_count: builtins.int, axes_array: ot_var_axis_info_t) -> builtins.int: ...
+
+
+def ot_var_get_named_instance_count(face: face_t) -> builtins.int: ...
+
+
+def ot_var_has_data(face: face_t) -> builtins.int: ...
+
+
+def ot_var_named_instance_get_design_coords(face: face_t, instance_index: builtins.int, coords_length: builtins.int, coords: builtins.float) -> builtins.int: ...
+
+
+def ot_var_named_instance_get_postscript_name_id(face: face_t, instance_index: builtins.int) -> builtins.int: ...
+
+
+def ot_var_named_instance_get_subfamily_name_id(face: face_t, instance_index: builtins.int) -> builtins.int: ...
+
+
+def ot_var_normalize_coords(face: face_t, coords_length: builtins.int, design_coords: builtins.float, normalized_coords: builtins.int) -> None: ...
+
+
+def ot_var_normalize_variations(face: face_t, variations: variation_t, variations_length: builtins.int, coords: builtins.int, coords_length: builtins.int) -> None: ...
+
+
+def script_from_iso15924_tag(tag: builtins.int) -> script_t: ...
+
+
+def script_from_string(str: builtins.bytes) -> script_t: ...
+
+
+def script_get_horizontal_direction(script: script_t) -> direction_t: ...
+
+
+def script_to_iso15924_tag(script: script_t) -> builtins.int: ...
+
+
+def segment_properties_equal(a: segment_properties_t, b: segment_properties_t) -> builtins.int: ...
+
+
+def segment_properties_hash(p: segment_properties_t) -> builtins.int: ...
+
+
+def set_add(set: set_t, codepoint: builtins.int) -> None: ...
+
+
+def set_add_range(set: set_t, first: builtins.int, last: builtins.int) -> None: ...
+
+
+def set_allocation_successful(set: set_t) -> builtins.int: ...
+
+
+def set_clear(set: set_t) -> None: ...
+
+
+def set_create() -> set_t: ...
+
+
+def set_del(set: set_t, codepoint: builtins.int) -> None: ...
+
+
+def set_del_range(set: set_t, first: builtins.int, last: builtins.int) -> None: ...
+
+
+def set_get_empty() -> set_t: ...
+
+
+def set_get_max(set: set_t) -> builtins.int: ...
+
+
+def set_get_min(set: set_t) -> builtins.int: ...
+
+
+def set_get_population(set: set_t) -> builtins.int: ...
+
+
+def set_has(set: set_t, codepoint: builtins.int) -> builtins.int: ...
+
+
+def set_intersect(set: set_t, other: set_t) -> None: ...
+
+
+def set_invert(set: set_t) -> None: ...
+
+
+def set_is_empty(set: set_t) -> builtins.int: ...
+
+
+def set_is_equal(set: set_t, other: set_t) -> builtins.int: ...
+
+
+def set_is_subset(set: set_t, larger_set: set_t) -> builtins.int: ...
+
+
+def set_next(set: set_t, codepoint: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def set_next_range(set: set_t, last: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def set_previous(set: set_t, codepoint: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def set_previous_range(set: set_t, first: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def set_set(set: set_t, other: set_t) -> None: ...
+
+
+def set_subtract(set: set_t, other: set_t) -> None: ...
+
+
+def set_symmetric_difference(set: set_t, other: set_t) -> None: ...
+
+
+def set_union(set: set_t, other: set_t) -> None: ...
+
+
+def shape(font: font_t, buffer: buffer_t, features: typing.Optional[typing.Sequence[feature_t]]) -> None: ...
+
+
+def shape_full(font: font_t, buffer: buffer_t, features: typing.Optional[typing.Sequence[feature_t]], shaper_list: typing.Optional[typing.Sequence[builtins.str]]) -> builtins.int: ...
+
+
+def shape_list_shapers() -> typing.Sequence[builtins.str]: ...
+
+
+def shape_plan_create(face: face_t, props: segment_properties_t, user_features: typing.Sequence[feature_t], shaper_list: typing.Sequence[builtins.str]) -> shape_plan_t: ...
+
+
+def shape_plan_create2(face: face_t, props: segment_properties_t, user_features: feature_t, num_user_features: builtins.int, coords: builtins.int, num_coords: builtins.int, shaper_list: builtins.str) -> shape_plan_t: ...
+
+
+def shape_plan_create_cached(face: face_t, props: segment_properties_t, user_features: typing.Sequence[feature_t], shaper_list: typing.Sequence[builtins.str]) -> shape_plan_t: ...
+
+
+def shape_plan_create_cached2(face: face_t, props: segment_properties_t, user_features: feature_t, num_user_features: builtins.int, coords: builtins.int, num_coords: builtins.int, shaper_list: builtins.str) -> shape_plan_t: ...
+
+
+def shape_plan_execute(shape_plan: shape_plan_t, font: font_t, buffer: buffer_t, features: typing.Sequence[feature_t]) -> builtins.int: ...
+
+
+def shape_plan_get_empty() -> shape_plan_t: ...
+
+
+def shape_plan_get_shaper(shape_plan: shape_plan_t) -> builtins.str: ...
+
+
+def tag_from_string(str: builtins.bytes) -> builtins.int: ...
+
+
+def tag_to_string(tag: builtins.int) -> builtins.bytes: ...
+
+
+def unicode_combining_class(ufuncs: unicode_funcs_t, unicode: builtins.int) -> unicode_combining_class_t: ...
+
+
+def unicode_compose(ufuncs: unicode_funcs_t, a: builtins.int, b: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def unicode_decompose(ufuncs: unicode_funcs_t, ab: builtins.int) -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def unicode_decompose_compatibility(ufuncs: unicode_funcs_t, u: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def unicode_eastasian_width(ufuncs: unicode_funcs_t, unicode: builtins.int) -> builtins.int: ...
+
+
+def unicode_funcs_create(parent: typing.Optional[unicode_funcs_t]) -> unicode_funcs_t: ...
+
+
+def unicode_funcs_get_default() -> unicode_funcs_t: ...
+
+
+def unicode_funcs_get_empty() -> unicode_funcs_t: ...
+
+
+def unicode_funcs_get_parent(ufuncs: unicode_funcs_t) -> unicode_funcs_t: ...
+
+
+def unicode_funcs_is_immutable(ufuncs: unicode_funcs_t) -> builtins.int: ...
+
+
+def unicode_funcs_make_immutable(ufuncs: unicode_funcs_t) -> None: ...
+
+
+def unicode_funcs_set_combining_class_func(ufuncs: unicode_funcs_t, func: unicode_combining_class_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_funcs_set_compose_func(ufuncs: unicode_funcs_t, func: unicode_compose_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_funcs_set_decompose_compatibility_func(ufuncs: unicode_funcs_t, func: unicode_decompose_compatibility_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_funcs_set_decompose_func(ufuncs: unicode_funcs_t, func: unicode_decompose_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_funcs_set_eastasian_width_func(ufuncs: unicode_funcs_t, func: unicode_eastasian_width_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_funcs_set_general_category_func(ufuncs: unicode_funcs_t, func: unicode_general_category_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_funcs_set_mirroring_func(ufuncs: unicode_funcs_t, func: unicode_mirroring_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_funcs_set_script_func(ufuncs: unicode_funcs_t, func: unicode_script_func_t, *user_data: typing.Optional[builtins.object]) -> None: ...
+
+
+def unicode_general_category(ufuncs: unicode_funcs_t, unicode: builtins.int) -> unicode_general_category_t: ...
+
+
+def unicode_mirroring(ufuncs: unicode_funcs_t, unicode: builtins.int) -> builtins.int: ...
+
+
+def unicode_script(ufuncs: unicode_funcs_t, unicode: builtins.int) -> script_t: ...
+
+
+def variation_from_string(str: builtins.str, len: builtins.int, variation: variation_t) -> builtins.int: ...
+
+
+def variation_to_string(variation: variation_t, buf: builtins.str, size: builtins.int) -> None: ...
+
+
+def version() -> typing.Tuple[builtins.int, builtins.int, builtins.int]: ...
+
+
+def version_atleast(major: builtins.int, minor: builtins.int, micro: builtins.int) -> builtins.int: ...
+
+
+def version_string() -> builtins.str: ...
+
+
+AAT_LAYOUT_NO_SELECTOR_INDEX: builtins.int
+BUFFER_REPLACEMENT_CODEPOINT_DEFAULT: builtins.int
+FEATURE_GLOBAL_START: builtins.int
+MAP_VALUE_INVALID: builtins.int
+OT_LAYOUT_DEFAULT_LANGUAGE_INDEX: builtins.int
+OT_LAYOUT_NO_FEATURE_INDEX: builtins.int
+OT_LAYOUT_NO_SCRIPT_INDEX: builtins.int
+OT_LAYOUT_NO_VARIATIONS_INDEX: builtins.int
+OT_MAX_TAGS_PER_LANGUAGE: builtins.int
+OT_MAX_TAGS_PER_SCRIPT: builtins.int
+OT_VAR_NO_AXIS_INDEX: builtins.int
+SET_VALUE_INVALID: builtins.int
+UNICODE_MAX: builtins.int
+UNICODE_MAX_DECOMPOSITION_LEN: builtins.int
+VERSION_MAJOR: builtins.int
+VERSION_MICRO: builtins.int
+VERSION_MINOR: builtins.int
+VERSION_STRING: builtins.str
diff --git a/stubs/gi/repository/Pango.pyi b/stubs/gi/repository/Pango.pyi
new file mode 100644
index 000000000..22dd55db6
--- /dev/null
+++ b/stubs/gi/repository/Pango.pyi
@@ -0,0 +1,1630 @@
+import builtins
+import typing
+
+from gi.repository import GLib
+from gi.repository import GObject
+from gi.repository import HarfBuzz
+from gi.repository import cairo
+
+
+class Context(GObject.Object):
+
+ def changed(self) -> None: ...
+
+ def get_base_dir(self) -> Direction: ...
+
+ def get_base_gravity(self) -> Gravity: ...
+
+ def get_font_description(self) -> FontDescription: ...
+
+ def get_font_map(self) -> FontMap: ...
+
+ def get_gravity(self) -> Gravity: ...
+
+ def get_gravity_hint(self) -> GravityHint: ...
+
+ def get_language(self) -> Language: ...
+
+ def get_matrix(self) -> typing.Optional[Matrix]: ...
+
+ def get_metrics(self, desc: typing.Optional[FontDescription], language: typing.Optional[Language]) -> FontMetrics: ...
+
+ def get_round_glyph_positions(self) -> builtins.bool: ...
+
+ def get_serial(self) -> builtins.int: ...
+
+ def list_families(self) -> typing.Sequence[FontFamily]: ...
+
+ def load_font(self, desc: FontDescription) -> typing.Optional[Font]: ...
+
+ def load_fontset(self, desc: FontDescription, language: Language) -> typing.Optional[Fontset]: ...
+
+ @staticmethod
+ def new(**kwargs) -> Context: ... # type: ignore
+
+ def set_base_dir(self, direction: Direction) -> None: ...
+
+ def set_base_gravity(self, gravity: Gravity) -> None: ...
+
+ def set_font_description(self, desc: FontDescription) -> None: ...
+
+ def set_font_map(self, font_map: FontMap) -> None: ...
+
+ def set_gravity_hint(self, hint: GravityHint) -> None: ...
+
+ def set_language(self, language: Language) -> None: ...
+
+ def set_matrix(self, matrix: typing.Optional[Matrix]) -> None: ...
+
+ def set_round_glyph_positions(self, round_positions: builtins.bool) -> None: ...
+
+
+class Coverage(GObject.Object):
+
+ def copy(self) -> Coverage: ...
+
+ @staticmethod
+ def from_bytes(bytes: builtins.bytes) -> typing.Optional[Coverage]: ...
+
+ def get(self, index_: builtins.int) -> CoverageLevel: ...
+
+ def max(self, other: Coverage) -> None: ...
+
+ @staticmethod
+ def new(**kwargs) -> Coverage: ... # type: ignore
+
+ def ref(self) -> Coverage: ...
+
+ def set(self, index_: builtins.int, level: CoverageLevel) -> None: ...
+
+ def to_bytes(self) -> builtins.bytes: ...
+
+ def unref(self) -> None: ...
+
+
+class Engine(GObject.Object):
+ parent_instance: GObject.Object
+
+
+class Font(GObject.Object):
+ parent_instance: GObject.Object
+
+ def describe(self) -> FontDescription: ...
+
+ def describe_with_absolute_size(self) -> FontDescription: ...
+
+ @staticmethod
+ def descriptions_free(descs: typing.Optional[typing.Sequence[FontDescription]]) -> None: ...
+
+ def find_shaper(self, language: Language, ch: builtins.int) -> EngineShape: ...
+
+ def get_coverage(self, language: Language) -> Coverage: ...
+
+ def get_face(self) -> FontFace: ...
+
+ def get_features(self, num_features: builtins.int) -> typing.Tuple[typing.Sequence[HarfBuzz.feature_t], builtins.int]: ...
+
+ def get_font_map(self) -> typing.Optional[FontMap]: ...
+
+ def get_glyph_extents(self, glyph: builtins.int) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_metrics(self, language: typing.Optional[Language]) -> FontMetrics: ...
+
+ def has_char(self, wc: builtins.str) -> builtins.bool: ...
+
+ def do_create_hb_font(self) -> HarfBuzz.font_t: ...
+
+ def do_describe(self) -> FontDescription: ...
+
+ def do_describe_absolute(self) -> FontDescription: ...
+
+ def do_get_coverage(self, language: Language) -> Coverage: ...
+
+ def do_get_features(self, num_features: builtins.int) -> typing.Tuple[typing.Sequence[HarfBuzz.feature_t], builtins.int]: ...
+
+ def do_get_font_map(self) -> typing.Optional[FontMap]: ...
+
+ def do_get_glyph_extents(self, glyph: builtins.int) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def do_get_metrics(self, language: typing.Optional[Language]) -> FontMetrics: ...
+
+
+class FontFace(GObject.Object):
+ parent_instance: GObject.Object
+
+ def describe(self) -> FontDescription: ...
+
+ def get_face_name(self) -> builtins.str: ...
+
+ def get_family(self) -> FontFamily: ...
+
+ def is_synthesized(self) -> builtins.bool: ...
+
+ def list_sizes(self) -> typing.Sequence[builtins.int]: ...
+
+ def do_describe(self) -> FontDescription: ...
+
+ def do_get_face_name(self) -> builtins.str: ...
+
+ def do_get_family(self) -> FontFamily: ...
+
+ def do_is_synthesized(self) -> builtins.bool: ...
+
+ def do_list_sizes(self) -> typing.Sequence[builtins.int]: ...
+
+
+class FontFamily(GObject.Object):
+ parent_instance: GObject.Object
+
+ def get_face(self, name: typing.Optional[builtins.str]) -> typing.Optional[FontFace]: ...
+
+ def get_name(self) -> builtins.str: ...
+
+ def is_monospace(self) -> builtins.bool: ...
+
+ def is_variable(self) -> builtins.bool: ...
+
+ def list_faces(self) -> typing.Sequence[FontFace]: ...
+
+ def do_get_face(self, name: typing.Optional[builtins.str]) -> typing.Optional[FontFace]: ...
+
+ def do_get_name(self) -> builtins.str: ...
+
+ def do_is_monospace(self) -> builtins.bool: ...
+
+ def do_is_variable(self) -> builtins.bool: ...
+
+ def do_list_faces(self) -> typing.Sequence[FontFace]: ...
+
+
+class FontMap(GObject.Object):
+ parent_instance: GObject.Object
+
+ def changed(self) -> None: ...
+
+ def create_context(self) -> Context: ...
+
+ def get_family(self, name: builtins.str) -> FontFamily: ...
+
+ def get_serial(self) -> builtins.int: ...
+
+ def list_families(self) -> typing.Sequence[FontFamily]: ...
+
+ def load_font(self, context: Context, desc: FontDescription) -> typing.Optional[Font]: ...
+
+ def load_fontset(self, context: Context, desc: FontDescription, language: Language) -> typing.Optional[Fontset]: ...
+
+ def do_changed(self) -> None: ...
+
+ def do_get_family(self, name: builtins.str) -> FontFamily: ...
+
+ def do_get_serial(self) -> builtins.int: ...
+
+ def do_list_families(self) -> typing.Sequence[FontFamily]: ...
+
+ def do_load_font(self, context: Context, desc: FontDescription) -> typing.Optional[Font]: ...
+
+ def do_load_fontset(self, context: Context, desc: FontDescription, language: Language) -> typing.Optional[Fontset]: ...
+
+
+class Fontset(GObject.Object):
+ parent_instance: GObject.Object
+
+ def foreach(self, func: FontsetForeachFunc, *data: typing.Optional[builtins.object]) -> None: ...
+
+ def get_font(self, wc: builtins.int) -> Font: ...
+
+ def get_metrics(self) -> FontMetrics: ...
+
+ def do_foreach(self, func: FontsetForeachFunc, data: typing.Optional[builtins.object]) -> None: ...
+
+ def do_get_font(self, wc: builtins.int) -> Font: ...
+
+ def do_get_language(self) -> Language: ...
+
+ def do_get_metrics(self) -> FontMetrics: ...
+
+
+class Layout(GObject.Object):
+
+ def context_changed(self) -> None: ...
+
+ def copy(self) -> Layout: ...
+
+ def get_alignment(self) -> Alignment: ...
+
+ def get_attributes(self) -> typing.Optional[AttrList]: ...
+
+ def get_auto_dir(self) -> builtins.bool: ...
+
+ def get_baseline(self) -> builtins.int: ...
+
+ def get_character_count(self) -> builtins.int: ...
+
+ def get_context(self) -> Context: ...
+
+ def get_cursor_pos(self, index_: builtins.int) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_direction(self, index: builtins.int) -> Direction: ...
+
+ def get_ellipsize(self) -> EllipsizeMode: ...
+
+ def get_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_font_description(self) -> typing.Optional[FontDescription]: ...
+
+ def get_height(self) -> builtins.int: ...
+
+ def get_indent(self) -> builtins.int: ...
+
+ def get_iter(self) -> LayoutIter: ...
+
+ def get_justify(self) -> builtins.bool: ...
+
+ def get_line(self, line: builtins.int) -> typing.Optional[LayoutLine]: ...
+
+ def get_line_count(self) -> builtins.int: ...
+
+ def get_line_readonly(self, line: builtins.int) -> typing.Optional[LayoutLine]: ...
+
+ def get_line_spacing(self) -> builtins.float: ...
+
+ def get_lines(self) -> typing.Sequence[LayoutLine]: ...
+
+ def get_lines_readonly(self) -> typing.Sequence[LayoutLine]: ...
+
+ def get_log_attrs(self) -> typing.Sequence[LogAttr]: ...
+
+ def get_log_attrs_readonly(self) -> typing.Sequence[LogAttr]: ...
+
+ def get_pixel_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_pixel_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_serial(self) -> builtins.int: ...
+
+ def get_single_paragraph_mode(self) -> builtins.bool: ...
+
+ def get_size(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_spacing(self) -> builtins.int: ...
+
+ def get_tabs(self) -> typing.Optional[TabArray]: ...
+
+ def get_text(self) -> builtins.str: ...
+
+ def get_unknown_glyphs_count(self) -> builtins.int: ...
+
+ def get_width(self) -> builtins.int: ...
+
+ def get_wrap(self) -> WrapMode: ...
+
+ def index_to_line_x(self, index_: builtins.int, trailing: builtins.bool) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def index_to_pos(self, index_: builtins.int) -> Rectangle: ...
+
+ def is_ellipsized(self) -> builtins.bool: ...
+
+ def is_wrapped(self) -> builtins.bool: ...
+
+ def move_cursor_visually(self, strong: builtins.bool, old_index: builtins.int, old_trailing: builtins.int, direction: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ @staticmethod
+ def new(context: Context, **kwargs) -> Layout: ... # type: ignore
+
+ def set_alignment(self, alignment: Alignment) -> None: ...
+
+ def set_attributes(self, attrs: typing.Optional[AttrList]) -> None: ...
+
+ def set_auto_dir(self, auto_dir: builtins.bool) -> None: ...
+
+ def set_ellipsize(self, ellipsize: EllipsizeMode) -> None: ...
+
+ def set_font_description(self, desc: typing.Optional[FontDescription]) -> None: ...
+
+ def set_height(self, height: builtins.int) -> None: ...
+
+ def set_indent(self, indent: builtins.int) -> None: ...
+
+ def set_justify(self, justify: builtins.bool) -> None: ...
+
+ def set_line_spacing(self, factor: builtins.float) -> None: ...
+
+ def set_markup(self, markup: builtins.str, length: builtins.int) -> None: ...
+
+ def set_markup_with_accel(self, markup: builtins.str, length: builtins.int, accel_marker: builtins.str) -> builtins.str: ...
+
+ def set_single_paragraph_mode(self, setting: builtins.bool) -> None: ...
+
+ def set_spacing(self, spacing: builtins.int) -> None: ...
+
+ def set_tabs(self, tabs: typing.Optional[TabArray]) -> None: ...
+
+ def set_text(self, text: builtins.str, length: builtins.int) -> None: ...
+
+ def set_width(self, width: builtins.int) -> None: ...
+
+ def set_wrap(self, wrap: WrapMode) -> None: ...
+
+ def xy_to_index(self, x: builtins.int, y: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+
+class Renderer(GObject.Object):
+ active_count: builtins.int
+ matrix: Matrix
+ parent_instance: GObject.Object
+ strikethrough: builtins.bool
+ underline: Underline
+
+ def activate(self) -> None: ...
+
+ def deactivate(self) -> None: ...
+
+ def draw_error_underline(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def draw_glyph(self, font: Font, glyph: builtins.int, x: builtins.float, y: builtins.float) -> None: ...
+
+ def draw_glyph_item(self, text: typing.Optional[builtins.str], glyph_item: GlyphItem, x: builtins.int, y: builtins.int) -> None: ...
+
+ def draw_glyphs(self, font: Font, glyphs: GlyphString, x: builtins.int, y: builtins.int) -> None: ...
+
+ def draw_layout(self, layout: Layout, x: builtins.int, y: builtins.int) -> None: ...
+
+ def draw_layout_line(self, line: LayoutLine, x: builtins.int, y: builtins.int) -> None: ...
+
+ def draw_rectangle(self, part: RenderPart, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def draw_trapezoid(self, part: RenderPart, y1_: builtins.float, x11: builtins.float, x21: builtins.float, y2: builtins.float, x12: builtins.float, x22: builtins.float) -> None: ...
+
+ def get_alpha(self, part: RenderPart) -> builtins.int: ...
+
+ def get_color(self, part: RenderPart) -> typing.Optional[Color]: ...
+
+ def get_layout(self) -> typing.Optional[Layout]: ...
+
+ def get_layout_line(self) -> typing.Optional[LayoutLine]: ...
+
+ def get_matrix(self) -> typing.Optional[Matrix]: ...
+
+ def part_changed(self, part: RenderPart) -> None: ...
+
+ def set_alpha(self, part: RenderPart, alpha: builtins.int) -> None: ...
+
+ def set_color(self, part: RenderPart, color: typing.Optional[Color]) -> None: ...
+
+ def set_matrix(self, matrix: typing.Optional[Matrix]) -> None: ...
+
+ def do_begin(self) -> None: ...
+
+ def do_draw_error_underline(self, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_glyph(self, font: Font, glyph: builtins.int, x: builtins.float, y: builtins.float) -> None: ...
+
+ def do_draw_glyph_item(self, text: typing.Optional[builtins.str], glyph_item: GlyphItem, x: builtins.int, y: builtins.int) -> None: ...
+
+ def do_draw_glyphs(self, font: Font, glyphs: GlyphString, x: builtins.int, y: builtins.int) -> None: ...
+
+ def do_draw_rectangle(self, part: RenderPart, x: builtins.int, y: builtins.int, width: builtins.int, height: builtins.int) -> None: ...
+
+ def do_draw_shape(self, attr: AttrShape, x: builtins.int, y: builtins.int) -> None: ...
+
+ def do_draw_trapezoid(self, part: RenderPart, y1_: builtins.float, x11: builtins.float, x21: builtins.float, y2: builtins.float, x12: builtins.float, x22: builtins.float) -> None: ...
+
+ def do_end(self) -> None: ...
+
+ def do_part_changed(self, part: RenderPart) -> None: ...
+
+ def do_prepare_run(self, run: GlyphItem) -> None: ...
+
+
+class EngineLang(Engine):
+ parent_instance: Engine
+
+ def do_script_break(self, text: builtins.str, len: builtins.int, analysis: Analysis, attrs: LogAttr, attrs_len: builtins.int) -> None: ...
+
+
+class EngineShape(Engine):
+ parent_instance: Engine
+
+ def do_covers(self, font: Font, language: Language, wc: builtins.str) -> CoverageLevel: ...
+
+ def do_script_shape(self, font: Font, item_text: builtins.str, item_length: builtins.int, analysis: Analysis, glyphs: GlyphString, paragraph_text: builtins.str, paragraph_length: builtins.int) -> None: ...
+
+
+class FontsetSimple(Fontset):
+
+ def append(self, font: Font) -> None: ...
+
+ @staticmethod
+ def new(language: Language) -> FontsetSimple: ...
+
+ def size(self) -> builtins.int: ...
+
+
+class Analysis():
+ extra_attrs: typing.Sequence[builtins.object]
+ flags: builtins.int
+ font: Font
+ gravity: builtins.int
+ lang_engine: EngineLang
+ language: Language
+ level: builtins.int
+ script: builtins.int
+ shape_engine: EngineShape
+
+
+class AttrClass():
+ copy: builtins.object
+ destroy: builtins.object
+ equal: builtins.object
+ type: AttrType
+
+
+class AttrColor():
+ attr: Attribute
+ color: Color
+
+
+class AttrFloat():
+ attr: Attribute
+ value: builtins.float
+
+
+class AttrFontDesc():
+ attr: Attribute
+ desc: FontDescription
+
+ @staticmethod
+ def new(desc: FontDescription) -> Attribute: ...
+
+
+class AttrFontFeatures():
+ attr: Attribute
+ features: builtins.str
+
+ @staticmethod
+ def new(features: builtins.str) -> Attribute: ...
+
+
+class AttrInt():
+ attr: Attribute
+ value: builtins.int
+
+
+class AttrIterator():
+
+ def copy(self) -> AttrIterator: ...
+
+ def destroy(self) -> None: ...
+
+ def get(self, type: AttrType) -> typing.Optional[Attribute]: ...
+
+ def get_attrs(self) -> typing.Sequence[Attribute]: ...
+
+ def get_font(self, desc: FontDescription, language: typing.Optional[Language], extra_attrs: typing.Optional[typing.Sequence[Attribute]]) -> None: ...
+
+ def next(self) -> builtins.bool: ...
+
+ def range(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+class AttrLanguage():
+ attr: Attribute
+ value: Language
+
+ @staticmethod
+ def new(language: Language) -> Attribute: ...
+
+
+class AttrList():
+
+ def change(self, attr: Attribute) -> None: ...
+
+ def copy(self) -> typing.Optional[AttrList]: ...
+
+ def equal(self, other_list: AttrList) -> builtins.bool: ...
+
+ def filter(self, func: AttrFilterFunc, *data: typing.Optional[builtins.object]) -> typing.Optional[AttrList]: ...
+
+ def get_attributes(self) -> typing.Sequence[Attribute]: ...
+
+ def get_iterator(self) -> AttrIterator: ...
+
+ def insert(self, attr: Attribute) -> None: ...
+
+ def insert_before(self, attr: Attribute) -> None: ...
+
+ @staticmethod
+ def new() -> AttrList: ...
+
+ def ref(self) -> AttrList: ...
+
+ def splice(self, other: AttrList, pos: builtins.int, len: builtins.int) -> None: ...
+
+ def unref(self) -> None: ...
+
+ def update(self, pos: builtins.int, remove: builtins.int, add: builtins.int) -> None: ...
+
+
+class AttrShape():
+ attr: Attribute
+ copy_func: AttrDataCopyFunc
+ data: builtins.object
+ destroy_func: GLib.DestroyNotify
+ ink_rect: Rectangle
+ logical_rect: Rectangle
+
+ @staticmethod
+ def new(ink_rect: Rectangle, logical_rect: Rectangle) -> Attribute: ...
+
+ @staticmethod
+ def new_with_data(ink_rect: Rectangle, logical_rect: Rectangle, data: typing.Optional[builtins.object], copy_func: typing.Optional[AttrDataCopyFunc]) -> Attribute: ...
+
+
+class AttrSize():
+ absolute: builtins.int
+ attr: Attribute
+ size: builtins.int
+
+ @staticmethod
+ def new(size: builtins.int) -> Attribute: ...
+
+ @staticmethod
+ def new_absolute(size: builtins.int) -> Attribute: ...
+
+
+class AttrString():
+ attr: Attribute
+ value: builtins.str
+
+
+class Attribute():
+ end_index: builtins.int
+ klass: AttrClass
+ start_index: builtins.int
+
+ def copy(self) -> Attribute: ...
+
+ def destroy(self) -> None: ...
+
+ def equal(self, attr2: Attribute) -> builtins.bool: ...
+
+ def init(self, klass: AttrClass) -> None: ...
+
+
+class Color():
+ blue: builtins.int
+ green: builtins.int
+ red: builtins.int
+
+ def copy(self) -> typing.Optional[Color]: ...
+
+ def free(self) -> None: ...
+
+ def parse(self, spec: builtins.str) -> builtins.bool: ...
+
+ def parse_with_alpha(self, spec: builtins.str) -> typing.Tuple[builtins.bool, builtins.int]: ...
+
+ def to_string(self) -> builtins.str: ...
+
+
+class EngineInfo():
+ engine_type: builtins.str
+ id: builtins.str
+ n_scripts: builtins.int
+ render_type: builtins.str
+ scripts: EngineScriptInfo
+
+
+class EngineScriptInfo():
+ langs: builtins.str
+ script: Script
+
+
+class FontDescription():
+
+ def better_match(self, old_match: typing.Optional[FontDescription], new_match: FontDescription) -> builtins.bool: ...
+
+ def copy(self) -> typing.Optional[FontDescription]: ...
+
+ def copy_static(self) -> typing.Optional[FontDescription]: ...
+
+ def equal(self, desc2: FontDescription) -> builtins.bool: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def from_string(str: builtins.str) -> FontDescription: ...
+
+ def get_family(self) -> typing.Optional[builtins.str]: ...
+
+ def get_gravity(self) -> Gravity: ...
+
+ def get_set_fields(self) -> FontMask: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_size_is_absolute(self) -> builtins.bool: ...
+
+ def get_stretch(self) -> Stretch: ...
+
+ def get_style(self) -> Style: ...
+
+ def get_variant(self) -> Variant: ...
+
+ def get_variations(self) -> typing.Optional[builtins.str]: ...
+
+ def get_weight(self) -> Weight: ...
+
+ def hash(self) -> builtins.int: ...
+
+ def merge(self, desc_to_merge: typing.Optional[FontDescription], replace_existing: builtins.bool) -> None: ...
+
+ def merge_static(self, desc_to_merge: FontDescription, replace_existing: builtins.bool) -> None: ...
+
+ @staticmethod
+ def new() -> FontDescription: ...
+
+ def set_absolute_size(self, size: builtins.float) -> None: ...
+
+ def set_family(self, family: builtins.str) -> None: ...
+
+ def set_family_static(self, family: builtins.str) -> None: ...
+
+ def set_gravity(self, gravity: Gravity) -> None: ...
+
+ def set_size(self, size: builtins.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_variations(self, variations: builtins.str) -> None: ...
+
+ def set_variations_static(self, variations: builtins.str) -> None: ...
+
+ def set_weight(self, weight: Weight) -> None: ...
+
+ def to_filename(self) -> builtins.str: ...
+
+ def to_string(self) -> builtins.str: ...
+
+ def unset_fields(self, to_unset: FontMask) -> None: ...
+
+
+class FontMetrics():
+ approximate_char_width: builtins.int
+ approximate_digit_width: builtins.int
+ ascent: builtins.int
+ descent: builtins.int
+ height: builtins.int
+ ref_count: builtins.int
+ strikethrough_position: builtins.int
+ strikethrough_thickness: builtins.int
+ underline_position: builtins.int
+ underline_thickness: builtins.int
+
+ def get_approximate_char_width(self) -> builtins.int: ...
+
+ def get_approximate_digit_width(self) -> builtins.int: ...
+
+ def get_ascent(self) -> builtins.int: ...
+
+ def get_descent(self) -> builtins.int: ...
+
+ def get_height(self) -> builtins.int: ...
+
+ def get_strikethrough_position(self) -> builtins.int: ...
+
+ def get_strikethrough_thickness(self) -> builtins.int: ...
+
+ def get_underline_position(self) -> builtins.int: ...
+
+ def get_underline_thickness(self) -> builtins.int: ...
+
+ def ref(self) -> typing.Optional[FontMetrics]: ...
+
+ def unref(self) -> None: ...
+
+
+class GlyphGeometry():
+ width: builtins.int
+ x_offset: builtins.int
+ y_offset: builtins.int
+
+
+class GlyphInfo():
+ attr: GlyphVisAttr
+ geometry: GlyphGeometry
+ glyph: builtins.int
+
+
+class GlyphItem():
+ glyphs: GlyphString
+ item: Item
+
+ def apply_attrs(self, text: builtins.str, list: AttrList) -> typing.Sequence[GlyphItem]: ...
+
+ def copy(self) -> typing.Optional[GlyphItem]: ...
+
+ def free(self) -> None: ...
+
+ def get_logical_widths(self, text: builtins.str, logical_widths: typing.Sequence[builtins.int]) -> None: ...
+
+ def letter_space(self, text: builtins.str, log_attrs: typing.Sequence[LogAttr], letter_spacing: builtins.int) -> None: ...
+
+ def split(self, text: builtins.str, split_index: builtins.int) -> GlyphItem: ...
+
+
+class GlyphItemIter():
+ end_char: builtins.int
+ end_glyph: builtins.int
+ end_index: builtins.int
+ glyph_item: GlyphItem
+ start_char: builtins.int
+ start_glyph: builtins.int
+ start_index: builtins.int
+ text: builtins.str
+
+ def copy(self) -> typing.Optional[GlyphItemIter]: ...
+
+ def free(self) -> None: ...
+
+ def init_end(self, glyph_item: GlyphItem, text: builtins.str) -> builtins.bool: ...
+
+ def init_start(self, glyph_item: GlyphItem, text: builtins.str) -> builtins.bool: ...
+
+ def next_cluster(self) -> builtins.bool: ...
+
+ def prev_cluster(self) -> builtins.bool: ...
+
+
+class GlyphString():
+ glyphs: typing.Sequence[GlyphInfo]
+ log_clusters: builtins.int
+ num_glyphs: builtins.int
+ space: builtins.int
+
+ def copy(self) -> typing.Optional[GlyphString]: ...
+
+ def extents(self, font: Font) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def extents_range(self, start: builtins.int, end: builtins.int, font: Font) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def free(self) -> None: ...
+
+ def get_logical_widths(self, text: builtins.str, length: builtins.int, embedding_level: builtins.int, logical_widths: typing.Sequence[builtins.int]) -> None: ...
+
+ def get_width(self) -> builtins.int: ...
+
+ def index_to_x(self, text: builtins.str, length: builtins.int, analysis: Analysis, index_: builtins.int, trailing: builtins.bool) -> builtins.int: ...
+
+ @staticmethod
+ def new() -> GlyphString: ...
+
+ def set_size(self, new_len: builtins.int) -> None: ...
+
+ def x_to_index(self, text: builtins.str, length: builtins.int, analysis: Analysis, x_pos: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+class GlyphVisAttr():
+ is_cluster_start: builtins.int
+
+
+class IncludedModule():
+ create: builtins.object
+ exit: builtins.object
+ init: builtins.object
+ list: builtins.object
+
+
+class Item():
+ analysis: Analysis
+ length: builtins.int
+ num_chars: builtins.int
+ offset: builtins.int
+
+ def apply_attrs(self, iter: AttrIterator) -> None: ...
+
+ def copy(self) -> typing.Optional[Item]: ...
+
+ def free(self) -> None: ...
+
+ @staticmethod
+ def new() -> Item: ...
+
+ def split(self, split_index: builtins.int, split_offset: builtins.int) -> Item: ...
+
+
+class Language():
+
+ @staticmethod
+ def from_string(language: typing.Optional[builtins.str]) -> typing.Optional[Language]: ...
+
+ @staticmethod
+ def get_default() -> Language: ...
+
+ def get_sample_string(self) -> builtins.str: ...
+
+ def get_scripts(self) -> typing.Optional[typing.Sequence[Script]]: ...
+
+ def includes_script(self, script: Script) -> builtins.bool: ...
+
+ def matches(self, range_list: builtins.str) -> builtins.bool: ...
+
+ def to_string(self) -> builtins.str: ...
+
+
+class LayoutIter():
+
+ def at_last_line(self) -> builtins.bool: ...
+
+ def copy(self) -> typing.Optional[LayoutIter]: ...
+
+ def free(self) -> None: ...
+
+ def get_baseline(self) -> builtins.int: ...
+
+ def get_char_extents(self) -> Rectangle: ...
+
+ def get_cluster_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_index(self) -> builtins.int: ...
+
+ def get_layout(self) -> Layout: ...
+
+ def get_layout_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_line(self) -> LayoutLine: ...
+
+ def get_line_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_line_readonly(self) -> LayoutLine: ...
+
+ def get_line_yrange(self) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+ def get_run(self) -> typing.Optional[GlyphItem]: ...
+
+ def get_run_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_run_readonly(self) -> typing.Optional[GlyphItem]: ...
+
+ def next_char(self) -> builtins.bool: ...
+
+ def next_cluster(self) -> builtins.bool: ...
+
+ def next_line(self) -> builtins.bool: ...
+
+ def next_run(self) -> builtins.bool: ...
+
+
+class LayoutLine():
+ is_paragraph_start: builtins.int
+ layout: Layout
+ length: builtins.int
+ resolved_dir: builtins.int
+ runs: typing.Sequence[GlyphItem]
+ start_index: builtins.int
+
+ def get_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_height(self) -> builtins.int: ...
+
+ def get_pixel_extents(self) -> typing.Tuple[Rectangle, Rectangle]: ...
+
+ def get_x_ranges(self, start_index: builtins.int, end_index: builtins.int) -> typing.Sequence[builtins.int]: ...
+
+ def index_to_x(self, index_: builtins.int, trailing: builtins.bool) -> builtins.int: ...
+
+ def ref(self) -> LayoutLine: ...
+
+ def unref(self) -> None: ...
+
+ def x_to_index(self, x_pos: builtins.int) -> typing.Tuple[builtins.bool, builtins.int, builtins.int]: ...
+
+
+class LogAttr():
+ backspace_deletes_character: builtins.int
+ is_char_break: builtins.int
+ is_cursor_position: builtins.int
+ is_expandable_space: builtins.int
+ is_line_break: builtins.int
+ is_mandatory_break: builtins.int
+ is_sentence_boundary: builtins.int
+ is_sentence_end: builtins.int
+ is_sentence_start: builtins.int
+ is_white: builtins.int
+ is_word_boundary: builtins.int
+ is_word_end: builtins.int
+ is_word_start: builtins.int
+
+
+class Map():
+ ...
+
+
+class MapEntry():
+ ...
+
+
+class Matrix():
+ x0: builtins.float
+ xx: builtins.float
+ xy: builtins.float
+ y0: builtins.float
+ yx: builtins.float
+ yy: builtins.float
+
+ def concat(self, new_matrix: Matrix) -> None: ...
+
+ def copy(self) -> typing.Optional[Matrix]: ...
+
+ def free(self) -> None: ...
+
+ def get_font_scale_factor(self) -> builtins.float: ...
+
+ def get_font_scale_factors(self) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def rotate(self, degrees: builtins.float) -> None: ...
+
+ def scale(self, scale_x: builtins.float, scale_y: builtins.float) -> None: ...
+
+ def transform_distance(self, dx: builtins.float, dy: builtins.float) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def transform_pixel_rectangle(self, rect: typing.Optional[Rectangle]) -> typing.Optional[Rectangle]: ...
+
+ def transform_point(self, x: builtins.float, y: builtins.float) -> typing.Tuple[builtins.float, builtins.float]: ...
+
+ def transform_rectangle(self, rect: typing.Optional[Rectangle]) -> typing.Optional[Rectangle]: ...
+
+ def translate(self, tx: builtins.float, ty: builtins.float) -> None: ...
+
+
+class Rectangle():
+ height: builtins.int
+ width: builtins.int
+ x: builtins.int
+ y: builtins.int
+
+
+class ScriptIter():
+
+ def free(self) -> None: ...
+
+ def get_range(self) -> typing.Tuple[builtins.str, builtins.str, Script]: ...
+
+ @staticmethod
+ def new(text: builtins.str, length: builtins.int) -> ScriptIter: ...
+
+ def next(self) -> builtins.bool: ...
+
+
+class TabArray():
+
+ def copy(self) -> TabArray: ...
+
+ def free(self) -> None: ...
+
+ def get_positions_in_pixels(self) -> builtins.bool: ...
+
+ def get_size(self) -> builtins.int: ...
+
+ def get_tab(self, tab_index: builtins.int) -> typing.Tuple[TabAlign, builtins.int]: ...
+
+ def get_tabs(self) -> typing.Tuple[TabAlign, typing.Sequence[builtins.int]]: ...
+
+ @staticmethod
+ def new(initial_size: builtins.int, positions_in_pixels: builtins.bool) -> TabArray: ...
+
+ def resize(self, new_size: builtins.int) -> None: ...
+
+ def set_tab(self, tab_index: builtins.int, alignment: TabAlign, location: builtins.int) -> None: ...
+
+
+class FontMask(GObject.GFlags, builtins.int):
+ FAMILY = ... # type: FontMask
+ GRAVITY = ... # type: FontMask
+ SIZE = ... # type: FontMask
+ STRETCH = ... # type: FontMask
+ STYLE = ... # type: FontMask
+ VARIANT = ... # type: FontMask
+ VARIATIONS = ... # type: FontMask
+ WEIGHT = ... # type: FontMask
+
+
+class ShapeFlags(GObject.GFlags, builtins.int):
+ NONE = ... # type: ShapeFlags
+ ROUND_POSITIONS = ... # type: ShapeFlags
+
+
+class ShowFlags(GObject.GFlags, builtins.int):
+ IGNORABLES = ... # type: ShowFlags
+ LINE_BREAKS = ... # type: ShowFlags
+ NONE = ... # type: ShowFlags
+ SPACES = ... # type: ShowFlags
+
+
+class Alignment(GObject.GEnum, builtins.int):
+ CENTER = ... # type: Alignment
+ LEFT = ... # type: Alignment
+ RIGHT = ... # type: Alignment
+
+
+class AttrType(GObject.GEnum, builtins.int):
+ ABSOLUTE_SIZE = ... # type: AttrType
+ ALLOW_BREAKS = ... # type: AttrType
+ BACKGROUND = ... # type: AttrType
+ BACKGROUND_ALPHA = ... # type: AttrType
+ FALLBACK = ... # type: AttrType
+ FAMILY = ... # type: AttrType
+ FONT_DESC = ... # type: AttrType
+ FONT_FEATURES = ... # type: AttrType
+ FOREGROUND = ... # type: AttrType
+ FOREGROUND_ALPHA = ... # type: AttrType
+ GRAVITY = ... # type: AttrType
+ GRAVITY_HINT = ... # type: AttrType
+ INSERT_HYPHENS = ... # type: AttrType
+ INVALID = ... # type: AttrType
+ LANGUAGE = ... # type: AttrType
+ LETTER_SPACING = ... # type: AttrType
+ OVERLINE = ... # type: AttrType
+ OVERLINE_COLOR = ... # type: AttrType
+ RISE = ... # type: AttrType
+ SCALE = ... # type: AttrType
+ SHAPE = ... # type: AttrType
+ SHOW = ... # type: AttrType
+ SIZE = ... # type: AttrType
+ STRETCH = ... # type: AttrType
+ STRIKETHROUGH = ... # type: AttrType
+ STRIKETHROUGH_COLOR = ... # type: AttrType
+ STYLE = ... # type: AttrType
+ UNDERLINE = ... # type: AttrType
+ UNDERLINE_COLOR = ... # type: AttrType
+ VARIANT = ... # type: AttrType
+ WEIGHT = ... # type: AttrType
+
+ @staticmethod
+ def get_name(type: AttrType) -> typing.Optional[builtins.str]: ...
+
+ @staticmethod
+ def register(name: builtins.str) -> AttrType: ...
+
+
+class BidiType(GObject.GEnum, builtins.int):
+ AL = ... # type: BidiType
+ AN = ... # type: BidiType
+ B = ... # type: BidiType
+ BN = ... # type: BidiType
+ CS = ... # type: BidiType
+ EN = ... # type: BidiType
+ ES = ... # type: BidiType
+ ET = ... # type: BidiType
+ L = ... # type: BidiType
+ LRE = ... # type: BidiType
+ LRO = ... # type: BidiType
+ NSM = ... # type: BidiType
+ ON = ... # type: BidiType
+ PDF = ... # type: BidiType
+ R = ... # type: BidiType
+ RLE = ... # type: BidiType
+ RLO = ... # type: BidiType
+ S = ... # type: BidiType
+ WS = ... # type: BidiType
+
+ @staticmethod
+ def for_unichar(ch: builtins.str) -> BidiType: ...
+
+
+class CoverageLevel(GObject.GEnum, builtins.int):
+ APPROXIMATE = ... # type: CoverageLevel
+ EXACT = ... # type: CoverageLevel
+ FALLBACK = ... # type: CoverageLevel
+ NONE = ... # type: CoverageLevel
+
+
+class Direction(GObject.GEnum, builtins.int):
+ LTR = ... # type: Direction
+ NEUTRAL = ... # type: Direction
+ RTL = ... # type: Direction
+ TTB_LTR = ... # type: Direction
+ TTB_RTL = ... # type: Direction
+ WEAK_LTR = ... # type: Direction
+ WEAK_RTL = ... # type: Direction
+
+
+class EllipsizeMode(GObject.GEnum, builtins.int):
+ END = ... # type: EllipsizeMode
+ MIDDLE = ... # type: EllipsizeMode
+ NONE = ... # type: EllipsizeMode
+ START = ... # type: EllipsizeMode
+
+
+class Gravity(GObject.GEnum, builtins.int):
+ AUTO = ... # type: Gravity
+ EAST = ... # type: Gravity
+ NORTH = ... # type: Gravity
+ SOUTH = ... # type: Gravity
+ WEST = ... # type: Gravity
+
+ @staticmethod
+ def get_for_matrix(matrix: typing.Optional[Matrix]) -> Gravity: ...
+
+ @staticmethod
+ def get_for_script(script: Script, base_gravity: Gravity, hint: GravityHint) -> Gravity: ...
+
+ @staticmethod
+ def get_for_script_and_width(script: Script, wide: builtins.bool, base_gravity: Gravity, hint: GravityHint) -> Gravity: ...
+
+ @staticmethod
+ def to_rotation(gravity: Gravity) -> builtins.float: ...
+
+
+class GravityHint(GObject.GEnum, builtins.int):
+ LINE = ... # type: GravityHint
+ NATURAL = ... # type: GravityHint
+ STRONG = ... # type: GravityHint
+
+
+class Overline(GObject.GEnum, builtins.int):
+ NONE = ... # type: Overline
+ SINGLE = ... # type: Overline
+
+
+class RenderPart(GObject.GEnum, builtins.int):
+ BACKGROUND = ... # type: RenderPart
+ FOREGROUND = ... # type: RenderPart
+ OVERLINE = ... # type: RenderPart
+ STRIKETHROUGH = ... # type: RenderPart
+ UNDERLINE = ... # type: RenderPart
+
+
+class Script(GObject.GEnum, builtins.int):
+ AHOM = ... # type: Script
+ ANATOLIAN_HIEROGLYPHS = ... # type: Script
+ ARABIC = ... # type: Script
+ ARMENIAN = ... # type: Script
+ BALINESE = ... # type: Script
+ BASSA_VAH = ... # type: Script
+ BATAK = ... # type: Script
+ BENGALI = ... # type: Script
+ BOPOMOFO = ... # type: Script
+ BRAHMI = ... # type: Script
+ BRAILLE = ... # type: Script
+ BUGINESE = ... # type: Script
+ BUHID = ... # type: Script
+ CANADIAN_ABORIGINAL = ... # type: Script
+ CARIAN = ... # type: Script
+ CAUCASIAN_ALBANIAN = ... # type: Script
+ CHAKMA = ... # type: Script
+ CHAM = ... # type: Script
+ CHEROKEE = ... # type: Script
+ COMMON = ... # type: Script
+ COPTIC = ... # type: Script
+ CUNEIFORM = ... # type: Script
+ CYPRIOT = ... # type: Script
+ CYRILLIC = ... # type: Script
+ DESERET = ... # type: Script
+ DEVANAGARI = ... # type: Script
+ DUPLOYAN = ... # type: Script
+ ELBASAN = ... # type: Script
+ ETHIOPIC = ... # type: Script
+ GEORGIAN = ... # type: Script
+ GLAGOLITIC = ... # type: Script
+ GOTHIC = ... # type: Script
+ GRANTHA = ... # type: Script
+ GREEK = ... # type: Script
+ GUJARATI = ... # type: Script
+ GURMUKHI = ... # type: Script
+ HAN = ... # type: Script
+ HANGUL = ... # type: Script
+ HANUNOO = ... # type: Script
+ HATRAN = ... # type: Script
+ HEBREW = ... # type: Script
+ HIRAGANA = ... # type: Script
+ INHERITED = ... # type: Script
+ INVALID_CODE = ... # type: Script
+ KANNADA = ... # type: Script
+ KATAKANA = ... # type: Script
+ KAYAH_LI = ... # type: Script
+ KHAROSHTHI = ... # type: Script
+ KHMER = ... # type: Script
+ KHOJKI = ... # type: Script
+ KHUDAWADI = ... # type: Script
+ LAO = ... # type: Script
+ LATIN = ... # type: Script
+ LEPCHA = ... # type: Script
+ LIMBU = ... # type: Script
+ LINEAR_A = ... # type: Script
+ LINEAR_B = ... # type: Script
+ LYCIAN = ... # type: Script
+ LYDIAN = ... # type: Script
+ MAHAJANI = ... # type: Script
+ MALAYALAM = ... # type: Script
+ MANDAIC = ... # type: Script
+ MANICHAEAN = ... # type: Script
+ MENDE_KIKAKUI = ... # type: Script
+ MEROITIC_CURSIVE = ... # type: Script
+ MEROITIC_HIEROGLYPHS = ... # type: Script
+ MIAO = ... # type: Script
+ MODI = ... # type: Script
+ MONGOLIAN = ... # type: Script
+ MRO = ... # type: Script
+ MULTANI = ... # type: Script
+ MYANMAR = ... # type: Script
+ NABATAEAN = ... # type: Script
+ NEW_TAI_LUE = ... # type: Script
+ NKO = ... # type: Script
+ OGHAM = ... # type: Script
+ OLD_HUNGARIAN = ... # type: Script
+ OLD_ITALIC = ... # type: Script
+ OLD_NORTH_ARABIAN = ... # type: Script
+ OLD_PERMIC = ... # type: Script
+ OLD_PERSIAN = ... # type: Script
+ OL_CHIKI = ... # type: Script
+ ORIYA = ... # type: Script
+ OSMANYA = ... # type: Script
+ PAHAWH_HMONG = ... # type: Script
+ PALMYRENE = ... # type: Script
+ PAU_CIN_HAU = ... # type: Script
+ PHAGS_PA = ... # type: Script
+ PHOENICIAN = ... # type: Script
+ PSALTER_PAHLAVI = ... # type: Script
+ REJANG = ... # type: Script
+ RUNIC = ... # type: Script
+ SAURASHTRA = ... # type: Script
+ SHARADA = ... # type: Script
+ SHAVIAN = ... # type: Script
+ SIDDHAM = ... # type: Script
+ SIGNWRITING = ... # type: Script
+ SINHALA = ... # type: Script
+ SORA_SOMPENG = ... # type: Script
+ SUNDANESE = ... # type: Script
+ SYLOTI_NAGRI = ... # type: Script
+ SYRIAC = ... # type: Script
+ TAGALOG = ... # type: Script
+ TAGBANWA = ... # type: Script
+ TAI_LE = ... # type: Script
+ TAKRI = ... # type: Script
+ TAMIL = ... # type: Script
+ TELUGU = ... # type: Script
+ THAANA = ... # type: Script
+ THAI = ... # type: Script
+ TIBETAN = ... # type: Script
+ TIFINAGH = ... # type: Script
+ TIRHUTA = ... # type: Script
+ UGARITIC = ... # type: Script
+ UNKNOWN = ... # type: Script
+ VAI = ... # type: Script
+ WARANG_CITI = ... # type: Script
+ YI = ... # type: Script
+
+ @staticmethod
+ def for_unichar(ch: builtins.str) -> Script: ...
+
+ @staticmethod
+ def get_sample_language(script: Script) -> typing.Optional[Language]: ...
+
+
+class Stretch(GObject.GEnum, builtins.int):
+ CONDENSED = ... # type: Stretch
+ EXPANDED = ... # type: Stretch
+ EXTRA_CONDENSED = ... # type: Stretch
+ EXTRA_EXPANDED = ... # type: Stretch
+ NORMAL = ... # type: Stretch
+ SEMI_CONDENSED = ... # type: Stretch
+ SEMI_EXPANDED = ... # type: Stretch
+ ULTRA_CONDENSED = ... # type: Stretch
+ ULTRA_EXPANDED = ... # type: Stretch
+
+
+class Style(GObject.GEnum, builtins.int):
+ ITALIC = ... # type: Style
+ NORMAL = ... # type: Style
+ OBLIQUE = ... # type: Style
+
+
+class TabAlign(GObject.GEnum, builtins.int):
+ LEFT = ... # type: TabAlign
+
+
+class Underline(GObject.GEnum, builtins.int):
+ DOUBLE = ... # type: Underline
+ DOUBLE_LINE = ... # type: Underline
+ ERROR = ... # type: Underline
+ ERROR_LINE = ... # type: Underline
+ LOW = ... # type: Underline
+ NONE = ... # type: Underline
+ SINGLE = ... # type: Underline
+ SINGLE_LINE = ... # type: Underline
+
+
+class Variant(GObject.GEnum, builtins.int):
+ NORMAL = ... # type: Variant
+ SMALL_CAPS = ... # type: Variant
+
+
+class Weight(GObject.GEnum, builtins.int):
+ BOLD = ... # type: Weight
+ BOOK = ... # type: Weight
+ HEAVY = ... # type: Weight
+ LIGHT = ... # type: Weight
+ MEDIUM = ... # type: Weight
+ NORMAL = ... # type: Weight
+ SEMIBOLD = ... # type: Weight
+ SEMILIGHT = ... # type: Weight
+ THIN = ... # type: Weight
+ ULTRABOLD = ... # type: Weight
+ ULTRAHEAVY = ... # type: Weight
+ ULTRALIGHT = ... # type: Weight
+
+
+class WrapMode(GObject.GEnum, builtins.int):
+ CHAR = ... # type: WrapMode
+ WORD = ... # type: WrapMode
+ WORD_CHAR = ... # type: WrapMode
+
+
+AttrDataCopyFunc = typing.Callable[[typing.Optional[builtins.object]], typing.Optional[builtins.object]]
+AttrFilterFunc = typing.Callable[[Attribute, typing.Optional[builtins.object]], builtins.bool]
+FontsetForeachFunc = typing.Callable[[Fontset, Font, typing.Optional[builtins.object]], builtins.bool]
+
+
+def attr_allow_breaks_new(allow_breaks: builtins.bool) -> Attribute: ...
+
+
+def attr_background_alpha_new(alpha: builtins.int) -> Attribute: ...
+
+
+def attr_background_new(red: builtins.int, green: builtins.int, blue: builtins.int) -> Attribute: ...
+
+
+def attr_fallback_new(enable_fallback: builtins.bool) -> Attribute: ...
+
+
+def attr_family_new(family: builtins.str) -> Attribute: ...
+
+
+def attr_font_desc_new(desc: FontDescription) -> Attribute: ...
+
+
+def attr_font_features_new(features: builtins.str) -> Attribute: ...
+
+
+def attr_foreground_alpha_new(alpha: builtins.int) -> Attribute: ...
+
+
+def attr_foreground_new(red: builtins.int, green: builtins.int, blue: builtins.int) -> Attribute: ...
+
+
+def attr_gravity_hint_new(hint: GravityHint) -> Attribute: ...
+
+
+def attr_gravity_new(gravity: Gravity) -> Attribute: ...
+
+
+def attr_insert_hyphens_new(insert_hyphens: builtins.bool) -> Attribute: ...
+
+
+def attr_language_new(language: Language) -> Attribute: ...
+
+
+def attr_letter_spacing_new(letter_spacing: builtins.int) -> Attribute: ...
+
+
+def attr_overline_color_new(red: builtins.int, green: builtins.int, blue: builtins.int) -> Attribute: ...
+
+
+def attr_overline_new(overline: Overline) -> Attribute: ...
+
+
+def attr_rise_new(rise: builtins.int) -> Attribute: ...
+
+
+def attr_scale_new(scale_factor: builtins.float) -> Attribute: ...
+
+
+def attr_shape_new(ink_rect: Rectangle, logical_rect: Rectangle) -> Attribute: ...
+
+
+def attr_shape_new_with_data(ink_rect: Rectangle, logical_rect: Rectangle, data: typing.Optional[builtins.object], copy_func: typing.Optional[AttrDataCopyFunc]) -> Attribute: ...
+
+
+def attr_show_new(flags: ShowFlags) -> Attribute: ...
+
+
+def attr_size_new(size: builtins.int) -> Attribute: ...
+
+
+def attr_size_new_absolute(size: builtins.int) -> Attribute: ...
+
+
+def attr_stretch_new(stretch: Stretch) -> Attribute: ...
+
+
+def attr_strikethrough_color_new(red: builtins.int, green: builtins.int, blue: builtins.int) -> Attribute: ...
+
+
+def attr_strikethrough_new(strikethrough: builtins.bool) -> Attribute: ...
+
+
+def attr_style_new(style: Style) -> Attribute: ...
+
+
+def attr_type_get_name(type: AttrType) -> typing.Optional[builtins.str]: ...
+
+
+def attr_type_register(name: builtins.str) -> AttrType: ...
+
+
+def attr_underline_color_new(red: builtins.int, green: builtins.int, blue: builtins.int) -> Attribute: ...
+
+
+def attr_underline_new(underline: Underline) -> Attribute: ...
+
+
+def attr_variant_new(variant: Variant) -> Attribute: ...
+
+
+def attr_weight_new(weight: Weight) -> Attribute: ...
+
+
+def bidi_type_for_unichar(ch: builtins.str) -> BidiType: ...
+
+
+def break_(text: builtins.str, length: builtins.int, analysis: Analysis, attrs: typing.Sequence[LogAttr]) -> None: ...
+
+
+def default_break(text: builtins.str, length: builtins.int, analysis: typing.Optional[Analysis], attrs: LogAttr, attrs_len: builtins.int) -> None: ...
+
+
+def extents_to_pixels(inclusive: typing.Optional[Rectangle], nearest: typing.Optional[Rectangle]) -> None: ...
+
+
+def find_base_dir(text: builtins.str, length: builtins.int) -> Direction: ...
+
+
+def find_paragraph_boundary(text: builtins.str, length: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def font_description_from_string(str: builtins.str) -> FontDescription: ...
+
+
+def get_log_attrs(text: builtins.str, length: builtins.int, level: builtins.int, language: Language, log_attrs: typing.Sequence[LogAttr]) -> None: ...
+
+
+def get_mirror_char(ch: builtins.str, mirrored_ch: builtins.str) -> builtins.bool: ...
+
+
+def gravity_get_for_matrix(matrix: typing.Optional[Matrix]) -> Gravity: ...
+
+
+def gravity_get_for_script(script: Script, base_gravity: Gravity, hint: GravityHint) -> Gravity: ...
+
+
+def gravity_get_for_script_and_width(script: Script, wide: builtins.bool, base_gravity: Gravity, hint: GravityHint) -> Gravity: ...
+
+
+def gravity_to_rotation(gravity: Gravity) -> builtins.float: ...
+
+
+def is_zero_width(ch: builtins.str) -> builtins.bool: ...
+
+
+def itemize(context: Context, text: builtins.str, start_index: builtins.int, length: builtins.int, attrs: AttrList, cached_iter: typing.Optional[AttrIterator]) -> typing.Sequence[Item]: ...
+
+
+def itemize_with_base_dir(context: Context, base_dir: Direction, text: builtins.str, start_index: builtins.int, length: builtins.int, attrs: AttrList, cached_iter: typing.Optional[AttrIterator]) -> typing.Sequence[Item]: ...
+
+
+def language_from_string(language: typing.Optional[builtins.str]) -> typing.Optional[Language]: ...
+
+
+def language_get_default() -> Language: ...
+
+
+def log2vis_get_embedding_levels(text: builtins.str, length: builtins.int, pbase_dir: Direction) -> builtins.int: ...
+
+
+def markup_parser_finish(context: GLib.MarkupParseContext) -> typing.Tuple[builtins.bool, AttrList, builtins.str, builtins.str]: ...
+
+
+def markup_parser_new(accel_marker: builtins.str) -> GLib.MarkupParseContext: ...
+
+
+def parse_enum(type: GObject.GType, str: typing.Optional[builtins.str], warn: builtins.bool) -> typing.Tuple[builtins.bool, builtins.int, builtins.str]: ...
+
+
+def parse_markup(markup_text: builtins.str, length: builtins.int, accel_marker: builtins.str) -> typing.Tuple[builtins.bool, AttrList, builtins.str, builtins.str]: ...
+
+
+def parse_stretch(str: builtins.str, warn: builtins.bool) -> typing.Tuple[builtins.bool, Stretch]: ...
+
+
+def parse_style(str: builtins.str, warn: builtins.bool) -> typing.Tuple[builtins.bool, Style]: ...
+
+
+def parse_variant(str: builtins.str, warn: builtins.bool) -> typing.Tuple[builtins.bool, Variant]: ...
+
+
+def parse_weight(str: builtins.str, warn: builtins.bool) -> typing.Tuple[builtins.bool, Weight]: ...
+
+
+def quantize_line_geometry(thickness: builtins.int, position: builtins.int) -> typing.Tuple[builtins.int, builtins.int]: ...
+
+
+def read_line(stream: typing.Optional[builtins.object], str: GLib.String) -> builtins.int: ...
+
+
+def reorder_items(logical_items: typing.Sequence[Item]) -> typing.Sequence[Item]: ...
+
+
+def scan_int(pos: builtins.str) -> typing.Tuple[builtins.bool, builtins.str, builtins.int]: ...
+
+
+def scan_string(pos: builtins.str, out: GLib.String) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def scan_word(pos: builtins.str, out: GLib.String) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def script_for_unichar(ch: builtins.str) -> Script: ...
+
+
+def script_get_sample_language(script: Script) -> typing.Optional[Language]: ...
+
+
+def shape(text: builtins.str, length: builtins.int, analysis: Analysis, glyphs: GlyphString) -> None: ...
+
+
+def shape_full(item_text: builtins.str, item_length: builtins.int, paragraph_text: typing.Optional[builtins.str], paragraph_length: builtins.int, analysis: Analysis, glyphs: GlyphString) -> None: ...
+
+
+def shape_with_flags(item_text: builtins.str, item_length: builtins.int, paragraph_text: typing.Optional[builtins.str], paragraph_length: builtins.int, analysis: Analysis, glyphs: GlyphString, flags: ShapeFlags) -> None: ...
+
+
+def skip_space(pos: builtins.str) -> typing.Tuple[builtins.bool, builtins.str]: ...
+
+
+def split_file_list(str: builtins.str) -> typing.Sequence[builtins.str]: ...
+
+
+def tailor_break(text: builtins.str, length: builtins.int, analysis: Analysis, offset: builtins.int, log_attrs: typing.Sequence[LogAttr]) -> None: ...
+
+
+def trim_string(str: builtins.str) -> builtins.str: ...
+
+
+def unichar_direction(ch: builtins.str) -> Direction: ...
+
+
+def units_from_double(d: builtins.float) -> builtins.int: ...
+
+
+def units_to_double(i: builtins.int) -> builtins.float: ...
+
+
+def version() -> builtins.int: ...
+
+
+def version_check(required_major: builtins.int, required_minor: builtins.int, required_micro: builtins.int) -> typing.Optional[builtins.str]: ...
+
+
+def version_string() -> builtins.str: ...
+
+
+ANALYSIS_FLAG_CENTERED_BASELINE: builtins.int
+ANALYSIS_FLAG_IS_ELLIPSIS: builtins.int
+ANALYSIS_FLAG_NEED_HYPHEN: builtins.int
+ATTR_INDEX_FROM_TEXT_BEGINNING: builtins.int
+ENGINE_TYPE_LANG: builtins.str
+ENGINE_TYPE_SHAPE: builtins.str
+GLYPH_EMPTY: builtins.int
+GLYPH_INVALID_INPUT: builtins.int
+GLYPH_UNKNOWN_FLAG: builtins.int
+RENDER_TYPE_NONE: builtins.str
+SCALE: builtins.int
+UNKNOWN_GLYPH_HEIGHT: builtins.int
+UNKNOWN_GLYPH_WIDTH: builtins.int
+VERSION_MIN_REQUIRED: builtins.int
diff --git a/stubs/gi/repository/__init__.py b/stubs/gi/repository/__init__.py
new file mode 100644
index 000000000..27f14399f
--- /dev/null
+++ b/stubs/gi/repository/__init__.py
@@ -0,0 +1,4 @@
+from typing import Any
+
+AppIndicator3: Any
+NM: Any
diff --git a/stubs/gi/repository/cairo.pyi b/stubs/gi/repository/cairo.pyi
new file mode 100644
index 000000000..ea9b3ba05
--- /dev/null
+++ b/stubs/gi/repository/cairo.pyi
@@ -0,0 +1,303 @@
+import builtins
+import typing
+
+from gi.repository import GObject
+
+
+class Context():
+ ...
+
+
+class Device():
+ ...
+
+
+class FontFace():
+ ...
+
+
+class FontOptions():
+ ...
+
+
+class Matrix():
+ ...
+
+
+class Path():
+ ...
+
+
+class Pattern():
+ ...
+
+
+class Rectangle():
+ height: builtins.float
+ width: builtins.float
+ x: builtins.float
+ y: builtins.float
+
+
+class RectangleInt():
+ height: builtins.int
+ width: builtins.int
+ x: builtins.int
+ y: builtins.int
+
+
+class Region():
+ ...
+
+
+class ScaledFont():
+ ...
+
+
+class Surface():
+ ...
+
+
+class Antialias(GObject.GEnum, builtins.int):
+ BEST = ... # type: Antialias
+ DEFAULT = ... # type: Antialias
+ FAST = ... # type: Antialias
+ GOOD = ... # type: Antialias
+ GRAY = ... # type: Antialias
+ NONE = ... # type: Antialias
+ SUBPIXEL = ... # type: Antialias
+
+
+class Content(GObject.GEnum, builtins.int):
+ ALPHA = ... # type: Content
+ COLOR = ... # type: Content
+ COLOR_ALPHA = ... # type: Content
+
+
+class DeviceType(GObject.GEnum, builtins.int):
+ COGL = ... # type: DeviceType
+ DRM = ... # type: DeviceType
+ GL = ... # type: DeviceType
+ INVALID = ... # type: DeviceType
+ SCRIPT = ... # type: DeviceType
+ WIN32 = ... # type: DeviceType
+ XCB = ... # type: DeviceType
+ XLIB = ... # type: DeviceType
+ XML = ... # type: DeviceType
+
+
+class Extend(GObject.GEnum, builtins.int):
+ NONE = ... # type: Extend
+ PAD = ... # type: Extend
+ REFLECT = ... # type: Extend
+ REPEAT = ... # type: Extend
+
+
+class FillRule(GObject.GEnum, builtins.int):
+ EVEN_ODD = ... # type: FillRule
+ WINDING = ... # type: FillRule
+
+
+class Filter(GObject.GEnum, builtins.int):
+ BEST = ... # type: Filter
+ BILINEAR = ... # type: Filter
+ FAST = ... # type: Filter
+ GAUSSIAN = ... # type: Filter
+ GOOD = ... # type: Filter
+ NEAREST = ... # type: Filter
+
+
+class FontSlant(GObject.GEnum, builtins.int):
+ ITALIC = ... # type: FontSlant
+ NORMAL = ... # type: FontSlant
+ OBLIQUE = ... # type: FontSlant
+
+
+class FontType(GObject.GEnum, builtins.int):
+ FT = ... # type: FontType
+ QUARTZ = ... # type: FontType
+ TOY = ... # type: FontType
+ USER = ... # type: FontType
+ WIN32 = ... # type: FontType
+
+
+class FontWeight(GObject.GEnum, builtins.int):
+ BOLD = ... # type: FontWeight
+ NORMAL = ... # type: FontWeight
+
+
+class Format(GObject.GEnum, builtins.int):
+ A1 = ... # type: Format
+ A8 = ... # type: Format
+ ARGB32 = ... # type: Format
+ INVALID = ... # type: Format
+ RGB16_565 = ... # type: Format
+ RGB24 = ... # type: Format
+ RGB30 = ... # type: Format
+
+
+class HintMetrics(GObject.GEnum, builtins.int):
+ DEFAULT = ... # type: HintMetrics
+ OFF = ... # type: HintMetrics
+ ON = ... # type: HintMetrics
+
+
+class HintStyle(GObject.GEnum, builtins.int):
+ DEFAULT = ... # type: HintStyle
+ FULL = ... # type: HintStyle
+ MEDIUM = ... # type: HintStyle
+ NONE = ... # type: HintStyle
+ SLIGHT = ... # type: HintStyle
+
+
+class LineCap(GObject.GEnum, builtins.int):
+ BUTT = ... # type: LineCap
+ ROUND = ... # type: LineCap
+ SQUARE = ... # type: LineCap
+
+
+class LineJoin(GObject.GEnum, builtins.int):
+ BEVEL = ... # type: LineJoin
+ MITER = ... # type: LineJoin
+ ROUND = ... # type: LineJoin
+
+
+class Operator(GObject.GEnum, builtins.int):
+ ADD = ... # type: Operator
+ ATOP = ... # type: Operator
+ CLEAR = ... # type: Operator
+ COLOR_BURN = ... # type: Operator
+ COLOR_DODGE = ... # type: Operator
+ DARKEN = ... # type: Operator
+ DEST = ... # type: Operator
+ DEST_ATOP = ... # type: Operator
+ DEST_IN = ... # type: Operator
+ DEST_OUT = ... # type: Operator
+ DEST_OVER = ... # type: Operator
+ DIFFERENCE = ... # type: Operator
+ EXCLUSION = ... # type: Operator
+ HARD_LIGHT = ... # type: Operator
+ HSL_COLOR = ... # type: Operator
+ HSL_HUE = ... # type: Operator
+ HSL_LUMINOSITY = ... # type: Operator
+ HSL_SATURATION = ... # type: Operator
+ IN = ... # type: Operator
+ LIGHTEN = ... # type: Operator
+ MULTIPLY = ... # type: Operator
+ OUT = ... # type: Operator
+ OVER = ... # type: Operator
+ OVERLAY = ... # type: Operator
+ SATURATE = ... # type: Operator
+ SCREEN = ... # type: Operator
+ SOFT_LIGHT = ... # type: Operator
+ SOURCE = ... # type: Operator
+ XOR = ... # type: Operator
+
+
+class PathDataType(GObject.GEnum, builtins.int):
+ CLOSE_PATH = ... # type: PathDataType
+ CURVE_TO = ... # type: PathDataType
+ LINE_TO = ... # type: PathDataType
+ MOVE_TO = ... # type: PathDataType
+
+
+class PatternType(GObject.GEnum, builtins.int):
+ LINEAR = ... # type: PatternType
+ MESH = ... # type: PatternType
+ RADIAL = ... # type: PatternType
+ RASTER_SOURCE = ... # type: PatternType
+ SOLID = ... # type: PatternType
+ SURFACE = ... # type: PatternType
+
+
+class RegionOverlap(GObject.GEnum, builtins.int):
+ IN = ... # type: RegionOverlap
+ OUT = ... # type: RegionOverlap
+ PART = ... # type: RegionOverlap
+
+
+class Status(GObject.GEnum, builtins.int):
+ CLIP_NOT_REPRESENTABLE = ... # type: Status
+ DEVICE_ERROR = ... # type: Status
+ DEVICE_FINISHED = ... # type: Status
+ DEVICE_TYPE_MISMATCH = ... # type: Status
+ FILE_NOT_FOUND = ... # type: Status
+ FONT_TYPE_MISMATCH = ... # type: Status
+ INVALID_CLUSTERS = ... # type: Status
+ INVALID_CONTENT = ... # type: Status
+ INVALID_DASH = ... # type: Status
+ INVALID_DSC_COMMENT = ... # type: Status
+ INVALID_FORMAT = ... # type: Status
+ INVALID_INDEX = ... # type: Status
+ INVALID_MATRIX = ... # type: Status
+ INVALID_MESH_CONSTRUCTION = ... # type: Status
+ INVALID_PATH_DATA = ... # type: Status
+ INVALID_POP_GROUP = ... # type: Status
+ INVALID_RESTORE = ... # type: Status
+ INVALID_SIZE = ... # type: Status
+ INVALID_SLANT = ... # type: Status
+ INVALID_STATUS = ... # type: Status
+ INVALID_STRIDE = ... # type: Status
+ INVALID_STRING = ... # type: Status
+ INVALID_VISUAL = ... # type: Status
+ INVALID_WEIGHT = ... # type: Status
+ JBIG2_GLOBAL_MISSING = ... # type: Status
+ NEGATIVE_COUNT = ... # type: Status
+ NO_CURRENT_POINT = ... # type: Status
+ NO_MEMORY = ... # type: Status
+ NULL_POINTER = ... # type: Status
+ PATTERN_TYPE_MISMATCH = ... # type: Status
+ READ_ERROR = ... # type: Status
+ SUCCESS = ... # type: Status
+ SURFACE_FINISHED = ... # type: Status
+ SURFACE_TYPE_MISMATCH = ... # type: Status
+ TEMP_FILE_ERROR = ... # type: Status
+ USER_FONT_ERROR = ... # type: Status
+ USER_FONT_IMMUTABLE = ... # type: Status
+ USER_FONT_NOT_IMPLEMENTED = ... # type: Status
+ WRITE_ERROR = ... # type: Status
+
+
+class SubpixelOrder(GObject.GEnum, builtins.int):
+ BGR = ... # type: SubpixelOrder
+ DEFAULT = ... # type: SubpixelOrder
+ RGB = ... # type: SubpixelOrder
+ VBGR = ... # type: SubpixelOrder
+ VRGB = ... # type: SubpixelOrder
+
+
+class SurfaceType(GObject.GEnum, builtins.int):
+ BEOS = ... # type: SurfaceType
+ COGL = ... # type: SurfaceType
+ DIRECTFB = ... # type: SurfaceType
+ DRM = ... # type: SurfaceType
+ GL = ... # type: SurfaceType
+ GLITZ = ... # type: SurfaceType
+ IMAGE = ... # type: SurfaceType
+ OS2 = ... # type: SurfaceType
+ PDF = ... # type: SurfaceType
+ PS = ... # type: SurfaceType
+ QT = ... # type: SurfaceType
+ QUARTZ = ... # type: SurfaceType
+ QUARTZ_IMAGE = ... # type: SurfaceType
+ RECORDING = ... # type: SurfaceType
+ SCRIPT = ... # type: SurfaceType
+ SKIA = ... # type: SurfaceType
+ SUBSURFACE = ... # type: SurfaceType
+ SVG = ... # type: SurfaceType
+ TEE = ... # type: SurfaceType
+ VG = ... # type: SurfaceType
+ WIN32 = ... # type: SurfaceType
+ WIN32_PRINTING = ... # type: SurfaceType
+ XCB = ... # type: SurfaceType
+ XLIB = ... # type: SurfaceType
+ XML = ... # type: SurfaceType
+
+
+class TextClusterFlags(GObject.GEnum, builtins.int):
+ BACKWARD = ... # type: TextClusterFlags
+
+
+def image_surface_create() -> None: ...
+
+
diff --git a/stubs/gi/repository/xlib.pyi b/stubs/gi/repository/xlib.pyi
new file mode 100644
index 000000000..eb6eb3b8a
--- /dev/null
+++ b/stubs/gi/repository/xlib.pyi
@@ -0,0 +1,49 @@
+import builtins
+import typing
+
+from gi.repository import GObject
+
+
+class Display():
+ ...
+
+
+class Screen():
+ ...
+
+
+class Visual():
+ ...
+
+
+class XConfigureEvent():
+ ...
+
+
+class XFontStruct():
+ ...
+
+
+class XImage():
+ ...
+
+
+class XTrapezoid():
+ ...
+
+
+class XVisualInfo():
+ ...
+
+
+class XWindowAttributes():
+ ...
+
+
+class XEvent():
+ ...
+
+
+def open_display() -> None: ...
+
+
diff --git a/stubs/gi/types.pyi b/stubs/gi/types.pyi
new file mode 100644
index 000000000..07ff0b6f7
--- /dev/null
+++ b/stubs/gi/types.pyi
@@ -0,0 +1,2 @@
+class GObjectMeta(type):
+ pass