• Gtk 4.0 »
  • Classes »
  • Gtk.AccessibleHyperlink
  • Gtk.AccessibleHyperlink
    • Methods
    • Virtual Methods
    • Properties
    • Signals
    • Fields
    • Class Details
      • Gtk.AccessibleHyperlink
        • Gtk.AccessibleHyperlink.new()
        • Gtk.AccessibleHyperlink.set_platform_state()
  • Gtk 4.0 »
  • Classes »
  • Gtk.AccessibleHyperlink
  • Gtk.AccessibleHyperlink
    • Methods
    • Virtual Methods
    • Properties
    • Signals
    • Fields
    • Class Details
      • Gtk.AccessibleHyperlink
        • Gtk.AccessibleHyperlink.new()
        • Gtk.AccessibleHyperlink.set_platform_state()

Gtk.AccessibleHyperlink¶

g GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible GObject.Object GObject.Object Gtk.AccessibleHyperlink Gtk.AccessibleHyperlink GObject.Object->Gtk.AccessibleHyperlink Gtk.Accessible->Gtk.AccessibleHyperlink

Subclasses:

None

Methods¶

Inherited:

GObject.Object (37), Gtk.Accessible (18)

Structs:

GObject.ObjectClass (5)

class

new (parent, index, uri, bounds)

set_platform_state (state, enabled)

Virtual Methods¶

Inherited:

GObject.Object (7), Gtk.Accessible (7)

Properties¶

Inherited:

Gtk.Accessible (1)

Signals¶

Inherited:

GObject.Object (1)

Fields¶

Inherited:

GObject.Object (1)

Class Details¶

class Gtk.AccessibleHyperlink(**kwargs)¶
Bases:

GObject.Object, Gtk.Accessible

Abstract:

No

Structure:

Gtk.AccessibleHyperlinkClass

Represents a link (i.e. a uri).

A widget that contains one or more links should implement the [iface`Gtk`.AccessibleHypertext] interface and return `:obj:Gtk.AccessibleHyperlink] objects for each of the links.

New in version 4.22.

classmethod new(parent, index, uri, bounds)[source]¶
Parameters:
  • parent (Gtk.AccessibleHypertext) – the parent

  • index (int) – the index of this link in the parent

  • uri (str) – the uri

  • bounds (Gtk.AccessibleTextRange) – the text range that the link occupies (or 0, 0)

Return type:

Gtk.AccessibleHyperlink

Creates an accessible object that represents a hyperlink.

This is meant to be used with an implementation of the [iface`Gtk`.AccessibleHypertext] interface.

New in version 4.22.

set_platform_state(state, enabled)[source]¶
Parameters:
  • state (Gtk.AccessiblePlatformState) – the platform state to change

  • enabled (bool) – the new value for the platform state

Sets a platform state on the accessible.

New in version 4.22.