gtk::prelude

Trait BuilderExt

Source
pub trait BuilderExt:
    IsA<Builder>
    + Sealed
    + 'static {
    // Provided methods
    fn expose_object(&self, name: &str, object: &impl IsA<Object>) { ... }
    fn application(&self) -> Option<Application> { ... }
    fn objects(&self) -> Vec<Object> { ... }
    fn translation_domain(&self) -> Option<GString> { ... }
    fn type_from_name(&self, type_name: &str) -> Type { ... }
    fn set_application(&self, application: &impl IsA<Application>) { ... }
    fn set_translation_domain(&self, domain: Option<&str>) { ... }
    fn value_from_string(
        &self,
        pspec: impl AsRef<ParamSpec>,
        string: &str,
    ) -> Result<Value, Error> { ... }
    fn value_from_string_type(
        &self,
        type_: Type,
        string: &str,
    ) -> Result<Value, Error> { ... }
    fn connect_translation_domain_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn value_from_string( &self, pspec: impl AsRef<ParamSpec>, string: &str, ) -> Result<Value, Error>

Source

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

Source

fn connect_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§