echidna/src/components/window/imp.rs

38 lines
860 B
Rust

use gtk::prelude::*;
use gtk::subclass::prelude::*;
use gtk::CompositeTemplate;
#[derive(Debug, Default, CompositeTemplate)]
#[template(file = "./window.ui")]
pub struct EchidnaWindow {
#[template_child]
pub notebook: TemplateChild<gtk::Notebook>,
}
#[glib::object_subclass]
impl ObjectSubclass for EchidnaWindow {
const NAME: &'static str = "EchidnaWindow";
type Type = super::EchidnaWindow;
type ParentType = gtk::ApplicationWindow;
fn class_init(class: &mut Self::Class) {
Self::bind_template(class);
}
fn instance_init(obj: &glib::subclass::InitializingObject<Self>) {
obj.init_template();
}
}
impl ObjectImpl for EchidnaWindow {}
impl WidgetImpl for EchidnaWindow {}
impl WindowImpl for EchidnaWindow {}
impl ApplicationWindowImpl for EchidnaWindow {}
impl BuildableImpl for EchidnaWindow {}