pub trait AccessibleExtManual: Sealed + IsA<Accessible> {
    // Provided methods
    fn update_property(&self, properties: &[Property<'_>]) { ... }
    fn update_relation(&self, relations: &[Relation<'_>]) { ... }
    fn update_state(&self, states: &[State]) { ... }
}
Expand description

Trait containing manually implemented methods of Accessible.

let entry = gtk::Entry::new();
let label = gtk::Label::new(Some("Entry"));
entry.update_property(&[
    gtk::accessible::Property::Description("Test"),
    gtk::accessible::Property::Orientation(gtk::Orientation::Horizontal),
]);
entry.update_relation(&[
    gtk::accessible::Relation::LabelledBy(&[label.upcast_ref()]),
]);
entry.update_state(&[
    gtk::accessible::State::Invalid(gtk::AccessibleInvalidState::Grammar),
]);

Provided Methods§

source

fn update_property(&self, properties: &[Property<'_>])

Updates an array of accessible properties.

This function should be called by Widget types whenever an accessible property change must be communicated to assistive technologies.

This function is meant to be used by language bindings.

properties

an array of AccessibleProperty

values

an array of GValues, one for each property

source

fn update_relation(&self, relations: &[Relation<'_>])

Updates an array of accessible relations.

This function should be called by Widget types whenever an accessible relation change must be communicated to assistive technologies.

This function is meant to be used by language bindings.

relations

an array of AccessibleRelation

values

an array of GValues, one for each relation

source

fn update_state(&self, states: &[State])

Updates an array of accessible states.

This function should be called by Widget types whenever an accessible state change must be communicated to assistive technologies.

This function is meant to be used by language bindings.

states

an array of AccessibleState

values

an array of GValues, one for each state

Implementors§