module Gtk::Accessible

Overview

Gtk::Accessible is an interface for describing UI elements for Assistive Technologies.

Every accessible implementation has:

The role cannot be changed after instantiating a Gtk::Accessible implementation.

The attributes are updated every time a UI element's state changes in a way that should be reflected by assistive technologies. For instance, if a Gtk::Widget visibility changes, the %GTK_ACCESSIBLE_STATE_HIDDEN state will also change to reflect the Gtk::Widget#visible property.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/accessible.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.cast(obj : GObject::Object) : self #

Cast a GObject::Object to self, throws a TypeCastError if the cast can't be made.


[View source]

Class Method Detail

def self.cast?(obj : GObject::Object) : self | Nil #

[View source]
def self.g_type : UInt64 #

[View source]

Instance Method Detail

def accessible_role : Gtk::AccessibleRole #

[View source]
def accessible_role=(value : Gtk::AccessibleRole) : Gtk::AccessibleRole #

[View source]
def reset_property(property : Gtk::AccessibleProperty) : Nil #

[View source]
def reset_relation(relation : Gtk::AccessibleRelation) : Nil #

[View source]
def reset_state(state : Gtk::AccessibleState) : Nil #

[View source]
abstract def to_unsafe #

[View source]
def update_property(properties : Enumerable(Gtk::AccessibleProperty), values : Enumerable(_)) : Nil #

[View source]
def update_relation(relations : Enumerable(Gtk::AccessibleRelation), values : Enumerable(_)) : Nil #

[View source]
def update_state(states : Enumerable(Gtk::AccessibleState), values : Enumerable(_)) : Nil #

[View source]