Trait gtk4::accessible::AccessibleExtManual
source · pub trait AccessibleExtManual {
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),
]);
Required Methods§
sourcefn update_property(&self, properties: &[Property<'_>])
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
sourcefn update_relation(&self, relations: &[Relation<'_>])
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
sourcefn update_state(&self, states: &[State])
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