2024-04-01 23:46:13 +03:00
|
|
|
mod imp;
|
|
|
|
|
|
|
|
use glib::Object;
|
2024-05-24 11:05:40 +03:00
|
|
|
use gtk::{
|
|
|
|
gio,
|
|
|
|
glib::{self, subclass::types::ObjectSubclassIsExt},
|
|
|
|
Application, Button,
|
|
|
|
};
|
2024-04-01 23:46:13 +03:00
|
|
|
|
|
|
|
glib::wrapper! {
|
2024-04-02 01:32:41 +03:00
|
|
|
pub struct GuessingSetupScene(ObjectSubclass<imp::GuessingSetupScene>)
|
2024-04-01 23:46:13 +03:00
|
|
|
@extends gtk::ApplicationWindow, gtk::Window, gtk::Widget,
|
|
|
|
@implements gio::ActionGroup, gio::ActionMap, gtk::Accessible, gtk::Buildable,
|
|
|
|
gtk::ConstraintTarget, gtk::Native, gtk::Root, gtk::ShortcutManager;
|
|
|
|
}
|
|
|
|
|
2024-04-02 01:32:41 +03:00
|
|
|
impl GuessingSetupScene {
|
2024-04-01 23:46:13 +03:00
|
|
|
pub fn new(app: &Application) -> Self {
|
|
|
|
Object::builder().property("application", app).build()
|
|
|
|
}
|
2024-04-10 20:25:02 +03:00
|
|
|
|
|
|
|
pub fn get_start_button(&self) -> &Button {
|
|
|
|
self.imp().start_button.as_ref()
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn get_back_button(&self) -> &Button {
|
|
|
|
self.imp().back_button.as_ref()
|
|
|
|
}
|
2024-04-01 23:46:13 +03:00
|
|
|
}
|