libadwaita::subclass::prelude

Trait WidgetClassExt

Source
pub unsafe trait WidgetClassExt: ClassStruct {
Show 24 methods // Provided methods fn set_template_bytes(&mut self, template: &Bytes) { ... } fn set_template(&mut self, template: &[u8]) { ... } fn set_template_static(&mut self, template: &'static [u8]) { ... } fn set_template_from_resource(&mut self, resource_name: &str) { ... } fn install_action_async<Fut, F>( &mut self, action_name: &str, parameter_type: Option<&VariantTy>, activate: F, ) where F: Fn(<Self::Type as ObjectSubclass>::Type, String, Option<Variant>) -> Fut + 'static + Clone, Fut: Future<Output = ()> { ... } fn install_action<F>( &mut self, action_name: &str, parameter_type: Option<&VariantTy>, activate: F, ) where F: Fn(&<Self::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static { ... } fn query_action(&self) -> WidgetActionIter { ... } fn set_template_scope<S>(&mut self, scope: &S) where S: IsA<BuilderScope> { ... } fn add_binding<F>(&mut self, keyval: Key, mods: ModifierType, callback: F) where F: Fn(&<Self::Type as ObjectSubclass>::Type) -> Propagation + 'static { ... } fn add_binding_action( &mut self, keyval: Key, mods: ModifierType, action_name: &str, ) { ... } fn add_binding_signal( &mut self, keyval: Key, mods: ModifierType, signal_name: &str, ) { ... } fn add_shortcut(&mut self, shortcut: &Shortcut) { ... } fn install_property_action( &mut self, action_name: &str, property_name: &str, ) { ... } fn activate_signal(&self) -> Option<SignalId> { ... } fn set_activate_signal(&mut self, signal_id: SignalId) { ... } fn set_activate_signal_from_name(&mut self, signal_name: &str) { ... } fn set_layout_manager_type<T>(&mut self) where T: IsA<LayoutManager> { ... } fn layout_manager_type(&self) -> Type { ... } fn set_css_name(&mut self, name: &str) { ... } fn css_name(&self) -> GString { ... } fn set_accessible_role(&mut self, role: AccessibleRole) { ... } fn accessible_role(&self) -> AccessibleRole { ... } unsafe fn bind_template_child_with_offset<T>( &mut self, name: &str, internal: bool, offset: FieldOffset<Self::Type, TemplateChild<T>>, ) where T: ObjectType + FromGlibPtrNone<*mut <T as ObjectType>::GlibType> { ... } fn rust_template_scope(&mut self) -> BuilderRustScope { ... }
}

Provided Methods§

Source

fn set_template_bytes(&mut self, template: &Bytes)

Source

fn set_template(&mut self, template: &[u8])

Source

fn set_template_static(&mut self, template: &'static [u8])

Source

fn set_template_from_resource(&mut self, resource_name: &str)

Source

fn install_action_async<Fut, F>( &mut self, action_name: &str, parameter_type: Option<&VariantTy>, activate: F, )
where F: Fn(<Self::Type as ObjectSubclass>::Type, String, Option<Variant>) -> Fut + 'static + Clone, Fut: Future<Output = ()>,

Source

fn install_action<F>( &mut self, action_name: &str, parameter_type: Option<&VariantTy>, activate: F, )
where F: Fn(&<Self::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static,

Source

fn query_action(&self) -> WidgetActionIter

Source

fn set_template_scope<S>(&mut self, scope: &S)
where S: IsA<BuilderScope>,

Source

fn add_binding<F>(&mut self, keyval: Key, mods: ModifierType, callback: F)
where F: Fn(&<Self::Type as ObjectSubclass>::Type) -> Propagation + 'static,

Source

fn add_binding_action( &mut self, keyval: Key, mods: ModifierType, action_name: &str, )

Source

fn add_binding_signal( &mut self, keyval: Key, mods: ModifierType, signal_name: &str, )

Source

fn add_shortcut(&mut self, shortcut: &Shortcut)

Source

fn install_property_action(&mut self, action_name: &str, property_name: &str)

Source

fn activate_signal(&self) -> Option<SignalId>

Source

fn set_activate_signal(&mut self, signal_id: SignalId)

Source

fn set_activate_signal_from_name(&mut self, signal_name: &str)

Source

fn set_layout_manager_type<T>(&mut self)
where T: IsA<LayoutManager>,

Source

fn layout_manager_type(&self) -> Type

Source

fn set_css_name(&mut self, name: &str)

Source

fn css_name(&self) -> GString

Source

fn set_accessible_role(&mut self, role: AccessibleRole)

Source

fn accessible_role(&self) -> AccessibleRole

Source

unsafe fn bind_template_child_with_offset<T>( &mut self, name: &str, internal: bool, offset: FieldOffset<Self::Type, TemplateChild<T>>, )

Source

fn rust_template_scope(&mut self) -> BuilderRustScope

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§