Trait gtk4::accessible::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])

Object Safety§

This trait is not object safe.

Implementors§