[−][src]Struct woab::BuilderFactory
Holds instructions for generating a GTK builder.
let builder_xml = r#" <interface> <requires lib="gtk+" version="3.22"/> <object class="GtkButton" id="my_button"> ... </object> </interface> "#; let builder_factory: BuilderFactory = builder_xml.to_owned().into(); let builder = builder_factory.build(); let my_button: gtk::Button = builder.get_object("my_button").unwrap();
Refer to #[derive(woab::Factories)]
for how to create instances of
this struct.
Implementations
impl BuilderFactory
[src]
pub fn build(&self) -> Builder
[src]
Create a gtk::Builder
from the instructions inside this factory.
Note that "creating a builder" means that the GTK widgets are created (but not yet shown)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BuilderFactory
impl Send for BuilderFactory
impl Sync for BuilderFactory
impl Unpin for BuilderFactory
impl UnwindSafe for BuilderFactory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,