gi-gtk4-4.0.12: Gtk 4.x bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.AccessibleHyperlink

Description

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

A widget that contains one or more links should implement the AccessibleHypertext interface and return `GtkAccessibleHyperlink] objects for each of the links.

Since: 4.22

Synopsis

Exported types

class (GObject o, IsDescendantOf AccessibleHyperlink o) => IsAccessibleHyperlink o Source #

Type class for types which can be safely cast to AccessibleHyperlink, for instance with toAccessibleHyperlink.

Instances

toAccessibleHyperlink :: (MonadIO m, IsAccessibleHyperlink o) => o -> m AccessibleHyperlink Source #

Cast to AccessibleHyperlink, for types for which this is known to be safe. For general casts, use castTo.

Methods

new

accessibleHyperlinkNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsAccessibleHypertext a) 
=> a

parent: the parent

-> Word32

index: the index of this link in the parent

-> Text

uri: the uri

-> AccessibleTextRange

bounds: the text range that the link occupies (or 0, 0)

-> m AccessibleHyperlink 

Creates an accessible object that represents a hyperlink.

This is meant to be used with an implementation of the AccessibleHypertext interface.

Since: 4.22

setPlatformState

accessibleHyperlinkSetPlatformState Source #

Arguments

:: (HasCallStack, MonadIO m, IsAccessibleHyperlink a) 
=> a

self: the accessible

-> AccessiblePlatformState

state: the platform state to change

-> Bool

enabled: the new value for the platform state

-> m () 

Sets a platform state on the accessible.

Since: 4.22