gtk4/auto/
closure_expression.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// DO NOT EDIT
4
5use crate::ffi;
6use glib::{prelude::*, translate::*};
7
8glib::wrapper! {
9    /// An expression using a custom `GClosure` to compute the value from
10    /// its parameters.
11    #[doc(alias = "GtkClosureExpression")]
12    pub struct ClosureExpression(Shared<ffi::GtkClosureExpression>);
13
14    match fn {
15        ref => |ptr| ffi::gtk_expression_ref(ptr as *mut ffi::GtkExpression),
16        unref => |ptr| ffi::gtk_expression_unref(ptr as *mut ffi::GtkExpression),
17    }
18}
19
20impl StaticType for ClosureExpression {
21    fn static_type() -> glib::Type {
22        unsafe { from_glib(ffi::gtk_closure_expression_get_type()) }
23    }
24}
25
26impl ClosureExpression {}