gtk4/subclass/layout_child.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3// rustdoc-stripper-ignore-next
4//! Traits intended for subclassing [`LayoutChild`](crate::LayoutChild).
5
6use crate::{subclass::prelude::*, LayoutChild};
7
8pub trait LayoutChildImpl: ObjectImpl {}
9
10unsafe impl<T: LayoutChildImpl> IsSubclassable<T> for LayoutChild {
11 fn class_init(class: &mut glib::Class<Self>) {
12 Self::parent_class_init::<T>(class);
13
14 assert_initialized_main_thread!();
15 }
16}