:right-sidebar: True AccessibleHyperlink =================================================================== .. currentmodule:: gi.repository.Gtk .. versionadded:: 4.22 .. class:: AccessibleHyperlink(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible` Represents a link (i.e. a uri). A widget that contains one or more links should implement the :obj:`~gi.repository.Gtk.AccessibleHypertext` interface and return ``GtkAccessibleHyperlink`` objects for each of the links. Constructors ------------ .. rst-class:: interim-class .. class:: AccessibleHyperlink :no-index: .. classmethod:: new(parent: ~gi.repository.Gtk.AccessibleHypertext, index: int, uri: str, bounds: ~gi.repository.Gtk.AccessibleTextRange) -> ~gi.repository.Gtk.AccessibleHyperlink Creates an accessible object that represents a hyperlink. This is meant to be used with an implementation of the :obj:`~gi.repository.Gtk.AccessibleHypertext` interface. .. versionadded:: 4.22 :param parent: the parent :param index: the index of this link in the parent :param uri: the uri :param bounds: the text range that the link occupies (or 0, 0) Methods ------- .. rst-class:: interim-class .. class:: AccessibleHyperlink :no-index: .. method:: set_platform_state(state: ~gi.repository.Gtk.AccessiblePlatformState, enabled: bool) -> None Sets a platform state on the accessible. .. versionadded:: 4.22 :param state: the platform state to change :param enabled: the new value for the platform state