gtk4/auto/builder_scope.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use crate::ffi;
use glib::prelude::*;
glib::wrapper! {
/// [`BuilderScope`][crate::BuilderScope] is an interface to provide language binding support
/// to [`Builder`][crate::Builder].
///
/// The goal of [`BuilderScope`][crate::BuilderScope] is to look up programming-language-specific
/// values for strings that are given in a [`Builder`][crate::Builder] UI file.
///
/// The primary intended audience is bindings that want to provide deeper
/// integration of [`Builder`][crate::Builder] into the language.
///
/// A [`BuilderScope`][crate::BuilderScope] instance may be used with multiple [`Builder`][crate::Builder] objects,
/// even at once.
///
/// By default, GTK will use its own implementation of [`BuilderScope`][crate::BuilderScope]
/// for the C language which can be created via `Gtk::BuilderCScope::new()`.
///
/// If you implement [`BuilderScope`][crate::BuilderScope] for a language binding, you
/// may want to (partially) derive from or fall back to a `Gtk::BuilderCScope`,
/// as that class implements support for automatic lookups from C symbols.
///
/// # Implements
///
/// [`BuilderScopeExt`][trait@crate::prelude::BuilderScopeExt]
#[doc(alias = "GtkBuilderScope")]
pub struct BuilderScope(Interface<ffi::GtkBuilderScope, ffi::GtkBuilderScopeInterface>);
match fn {
type_ => || ffi::gtk_builder_scope_get_type(),
}
}
impl BuilderScope {
pub const NONE: Option<&'static BuilderScope> = None;
}
/// Trait containing all [`struct@BuilderScope`] methods.
///
/// # Implementors
///
/// [`BuilderScope`][struct@crate::BuilderScope]
pub trait BuilderScopeExt: IsA<BuilderScope> + 'static {}
impl<O: IsA<BuilderScope>> BuilderScopeExt for O {}