gtk4::accessible

Trait AccessibleExtManual

Source
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<'_>])

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§