Trait BuilderExt

Source
pub trait BuilderExt: 'static {
Show 14 methods // Required methods fn add_from_resource(&self, resource_path: &str) -> Result<(), Error>; fn add_from_string(&self, buffer: &str) -> Result<(), Error>; fn add_objects_from_resource( &self, resource_path: &str, object_ids: &[&str], ) -> Result<(), Error>; fn add_objects_from_string( &self, buffer: &str, object_ids: &[&str], ) -> Result<(), Error>; fn expose_object<P: IsA<Object>>(&self, name: &str, object: &P); fn extend_with_template<P: IsA<Widget>>( &self, widget: &P, template_type: Type, buffer: &str, ) -> Result<(), Error>; fn get_application(&self) -> Option<Application>; fn get_objects(&self) -> Vec<Object>; fn get_translation_domain(&self) -> Option<GString>; fn get_type_from_name(&self, type_name: &str) -> Type; fn set_application<P: IsA<Application>>(&self, application: &P); fn set_translation_domain(&self, domain: Option<&str>); fn value_from_string_type( &self, type_: Type, string: &str, ) -> Result<Value, Error>; fn connect_property_translation_domain_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn add_from_resource(&self, resource_path: &str) -> Result<(), Error>

Source

fn add_from_string(&self, buffer: &str) -> Result<(), Error>

Source

fn add_objects_from_resource( &self, resource_path: &str, object_ids: &[&str], ) -> Result<(), Error>

Source

fn add_objects_from_string( &self, buffer: &str, object_ids: &[&str], ) -> Result<(), Error>

Source

fn expose_object<P: IsA<Object>>(&self, name: &str, object: &P)

Source

fn extend_with_template<P: IsA<Widget>>( &self, widget: &P, template_type: Type, buffer: &str, ) -> Result<(), Error>

Source

fn get_application(&self) -> Option<Application>

Source

fn get_objects(&self) -> Vec<Object>

Source

fn get_translation_domain(&self) -> Option<GString>

Source

fn get_type_from_name(&self, type_name: &str) -> Type

Source

fn set_application<P: IsA<Application>>(&self, application: &P)

Source

fn set_translation_domain(&self, domain: Option<&str>)

Source

fn value_from_string_type( &self, type_: Type, string: &str, ) -> Result<Value, Error>

Source

fn connect_property_translation_domain_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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§