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.Interfaces.AccessibleText

Description

An interface for accessible objects containing formatted text.

The GtkAccessibleText interfaces is meant to be implemented by accessible objects that have text formatted with attributes, or non-trivial text contents.

You should use the AccessiblePropertyLabel or the AccessiblePropertyDescription properties for accessible objects containing simple, unformatted text.

Since: 4.14

Synopsis

Exported types

class (GObject o, IsDescendantOf AccessibleText o) => IsAccessibleText o Source #

Type class for types which can be safely cast to AccessibleText, for instance with toAccessibleText.

Instances

Instances details
(GObject o, IsDescendantOf AccessibleText o) => IsAccessibleText o Source # 
Instance details

Defined in GI.Gtk.Interfaces.AccessibleText

toAccessibleText :: (MonadIO m, IsAccessibleText o) => o -> m AccessibleText Source #

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

Methods

updateCaretPosition

accessibleTextUpdateCaretPosition Source #

Arguments

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

self: the accessible object

-> m () 

Updates the position of the caret.

Implementations of the GtkAccessibleText interface should call this function every time the caret has moved, in order to notify assistive technologies.

Since: 4.14

updateContents

accessibleTextUpdateContents Source #

Arguments

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

self: the accessible object

-> AccessibleTextContentChange

change: the type of change in the contents

-> Word32

start: the starting offset of the change, in characters

-> Word32

end: the end offset of the change, in characters

-> m () 

Notifies assistive technologies of a change in contents.

Implementations of the GtkAccessibleText interface should call this function every time their contents change as the result of an operation, like an insertion or a removal.

Note: If the change is a deletion, this function must be called *before* removing the contents, if it is an insertion, it must be called *after* inserting the new contents.

Since: 4.14

updateSelectionBound

accessibleTextUpdateSelectionBound Source #

Arguments

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

self: the accessible object

-> m () 

Updates the boundary of the selection.

Implementations of the GtkAccessibleText interface should call this function every time the selection has moved, in order to notify assistive technologies.

Since: 4.14