pub unsafe trait WidgetClassSubclassExt: ClassStruct {
Show 24 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<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static>(
&mut self,
action_name: &str,
parameter_type: Option<&str>,
activate: F
) { ... }
fn query_action(&self) -> WidgetActionIterⓘNotable traits for WidgetActionIterimpl Iterator for WidgetActionIter type Item = WidgetAction;
{ ... }
fn set_template_scope<S: IsA<BuilderScope>>(&mut self, scope: &S) { ... }
fn bind_template_child(&mut self, name: &str) { ... }
fn add_binding<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, Option<&Variant>) -> bool + 'static>(
&mut self,
keyval: Key,
mods: ModifierType,
callback: F,
arguments: Option<&Variant>
) { ... }
fn add_binding_action(
&mut self,
keyval: Key,
mods: ModifierType,
action_name: &str,
arguments: Option<&Variant>
) { ... }
fn add_binding_signal(
&mut self,
keyval: Key,
mods: ModifierType,
signal_name: &str,
arguments: Option<&Variant>
) { ... }
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: IsA<LayoutManager>>(&mut self) { ... }
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)
sourcefn install_action<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static>(
fn install_action<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static>(
&mut self,
action_name: &str,
parameter_type: Option<&str>,
activate: F
)
sourcefn query_action(&self) -> WidgetActionIterⓘNotable traits for WidgetActionIter
fn query_action(&self) -> WidgetActionIterⓘNotable traits for WidgetActionIterimpl Iterator for WidgetActionIter type Item = WidgetAction;
source
fn set_template_scope<S: IsA<BuilderScope>>(&mut self, scope: &S)
source
fn bind_template_child(&mut self, name: &str)
sourcefn add_binding<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, Option<&Variant>) -> bool + 'static>(
fn add_binding<F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, Option<&Variant>) -> bool + 'static>(
&mut self,
keyval: Key,
mods: ModifierType,
callback: F,
arguments: Option<&Variant>
)
sourcefn add_binding_action(
fn add_binding_action(
&mut self,
keyval: Key,
mods: ModifierType,
action_name: &str,
arguments: Option<&Variant>
)
sourcefn add_binding_signal(
fn add_binding_signal(
&mut self,
keyval: Key,
mods: ModifierType,
signal_name: &str,
arguments: Option<&Variant>
)
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: IsA<LayoutManager>>(&mut self)
source
fn layout_manager_type(&self) -> Type
source
fn set_css_name(&mut self, name: &str)
source
fn set_accessible_role(&mut self, role: AccessibleRole)
source
fn accessible_role(&self) -> AccessibleRole
sourceunsafe fn bind_template_child_with_offset<T>(
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>,
source