libcosmic/examples/dock/dock_item/imp.rs
2021-12-30 17:53:06 -05:00

23 lines
489 B
Rust

use gtk4::glib;
use gtk4::subclass::prelude::*;
use std::cell::RefCell;
use std::rc::Rc;
#[derive(Debug, Default)]
pub struct DockItem {
pub image: Rc<RefCell<gtk4::Image>>,
pub dots: Rc<RefCell<gtk4::Label>>,
}
#[glib::object_subclass]
impl ObjectSubclass for DockItem {
const NAME: &'static str = "DockItem";
type Type = super::DockItem;
type ParentType = gtk4::Box;
}
impl ObjectImpl for DockItem {}
impl WidgetImpl for DockItem {}
impl BoxImpl for DockItem {}