gtk4/auto/nothing_action.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, ShortcutAction};
6use glib::translate::*;
7
8glib::wrapper! {
9 #[doc(alias = "GtkNothingAction")]
10 pub struct NothingAction(Object<ffi::GtkNothingAction, ffi::GtkNothingActionClass>) @extends ShortcutAction;
11
12 match fn {
13 type_ => || ffi::gtk_nothing_action_get_type(),
14 }
15}
16
17impl NothingAction {
18 #[doc(alias = "gtk_nothing_action_get")]
19 pub fn get() -> NothingAction {
20 assert_initialized_main_thread!();
21 unsafe { from_glib_none(ffi::gtk_nothing_action_get()) }
22 }
23}