mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-16 09:48:34 +02:00
38 lines
841 B
Rust
38 lines
841 B
Rust
use adw::subclass::prelude::AdwApplicationWindowImpl;
|
|
use glib::subclass::InitializingObject;
|
|
use gtk::subclass::prelude::*;
|
|
use gtk::{glib, CompositeTemplate};
|
|
|
|
#[derive(CompositeTemplate, Default)]
|
|
#[template(resource = "/org/xetibo/reset/resetMainWindow.ui")]
|
|
pub struct Window {
|
|
// todo i guess
|
|
}
|
|
|
|
#[glib::object_subclass]
|
|
impl ObjectSubclass for Window {
|
|
const NAME: &'static str = "resetUI";
|
|
type Type = super::Window;
|
|
type ParentType = adw::ApplicationWindow;
|
|
|
|
fn class_init(klass: &mut Self::Class) {
|
|
klass.bind_template();
|
|
}
|
|
|
|
fn instance_init(obj: &InitializingObject<Self>) {
|
|
obj.init_template();
|
|
}
|
|
}
|
|
|
|
impl ObjectImpl for Window {}
|
|
|
|
impl WidgetImpl for Window {}
|
|
|
|
impl WindowImpl for Window {}
|
|
|
|
impl ApplicationWindowImpl for Window {}
|
|
|
|
impl AdwApplicationWindowImpl for Window {}
|
|
|
|
|