Trait gtk4::subclass::widget::CompositeTemplateCallbacks   
source · pub trait CompositeTemplateCallbacks {
    const CALLBACKS: &'static [TemplateCallback];
    // Provided methods
    fn bind_template_callbacks<T: WidgetClassExt>(klass: &mut T) { ... }
    fn bind_template_callbacks_prefixed<T: WidgetClassExt>(
        klass: &mut T,
        prefix: &str
    ) { ... }
    fn add_callbacks_to_scope(scope: &BuilderRustScope) { ... }
    fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str) { ... }
}Expand description
A trait for setting up template callbacks inside
class_init. This trait is implemented
automatically by the template_callbacks macro.
Required Associated Constants§
const CALLBACKS: &'static [TemplateCallback]
Provided Methods§
sourcefn bind_template_callbacks<T: WidgetClassExt>(klass: &mut T)
 
fn bind_template_callbacks<T: WidgetClassExt>(klass: &mut T)
Binds the template callbacks from this type into the default template scope for klass.
sourcefn bind_template_callbacks_prefixed<T: WidgetClassExt>(
    klass: &mut T,
    prefix: &str
)
 
fn bind_template_callbacks_prefixed<T: WidgetClassExt>( klass: &mut T, prefix: &str )
Binds the template callbacks from this type into the default template scope for klass,
prepending prefix to each callback name.
sourcefn add_callbacks_to_scope(scope: &BuilderRustScope)
 
fn add_callbacks_to_scope(scope: &BuilderRustScope)
Binds the template callbacks from this type into scope.
sourcefn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)
 
fn add_callbacks_to_scope_prefixed(scope: &BuilderRustScope, prefix: &str)
Binds the template callbacks from this type into scope, prepending prefix to each
callback name.