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
source
fn update_property(&self, properties: &[Property<'_>])
source
fn update_relation(&self, relations: &[Relation<'_>])
source