use crate::render::Render;
use glib::subclass::InitializingObject;
use gtk::subclass::prelude::*;
use gtk::CompositeTemplate;
use gtk::{glib, prelude::WidgetExtManual};
use std::cell::{Cell, RefCell};

#[derive(Default)]
pub struct Monitor {
    pub(super) renderer: RefCell<Render>,
}

#[glib::object_subclass]
impl ObjectSubclass for Monitor {
    const NAME: &'static str = "Monitor";
    type Type = super::Monitor;
    type ParentType = gtk::Box;
}

impl ObjectImpl for Monitor {}

impl WidgetImpl for Monitor {}

impl BoxImpl for Monitor {}
