Skip to main content

clutter/auto/
box_.rs

1use crate::{Actor, Animatable, Container};
2use glib::{object as gobject, translate::*};
3use std::fmt;
4
5// TODO: implements atk::ImplementorIface, Scriptable
6glib_wrapper! {
7    pub struct Box(Object<ffi::ClutterBox, ffi::ClutterBoxClass, BoxClass>) @extends Actor, gobject::InitiallyUnowned, @implements Animatable, Container;
8
9    match fn {
10        get_type => || ffi::clutter_box_get_type(),
11    }
12}
13
14impl Box {}
15
16pub const NONE_BOX: Option<&Box> = None;
17
18impl fmt::Display for Box {
19    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
20        write!(f, "Box")
21    }
22}