mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-17 18:18:34 +02:00
21 lines
512 B
Rust
21 lines
512 B
Rust
use crate::components::base::settingBoxImpl;
|
|
use adw::glib;
|
|
use adw::glib::{IsA, Object};
|
|
use gtk::prelude::BoxExt;
|
|
use gtk::Widget;
|
|
|
|
glib::wrapper! {
|
|
pub struct SettingBox(ObjectSubclass<settingBoxImpl::SettingBox>)
|
|
@extends gtk::Box, gtk::Widget,
|
|
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget;
|
|
}
|
|
|
|
impl SettingBox {
|
|
pub fn new(child: &impl IsA<Widget>) -> Self {
|
|
let entry: SettingBox = Object::builder().build();
|
|
entry.append(child);
|
|
entry
|
|
}
|
|
}
|
|
|