gio/auto/
remote_action_group.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, ActionGroup};
6use glib::{prelude::*, translate::*};
7
8glib::wrapper! {
9    #[doc(alias = "GRemoteActionGroup")]
10    pub struct RemoteActionGroup(Interface<ffi::GRemoteActionGroup, ffi::GRemoteActionGroupInterface>) @requires ActionGroup;
11
12    match fn {
13        type_ => || ffi::g_remote_action_group_get_type(),
14    }
15}
16
17impl RemoteActionGroup {
18    pub const NONE: Option<&'static RemoteActionGroup> = None;
19}
20
21pub trait RemoteActionGroupExt: IsA<RemoteActionGroup> + 'static {
22    #[doc(alias = "g_remote_action_group_activate_action_full")]
23    fn activate_action_full(
24        &self,
25        action_name: &str,
26        parameter: Option<&glib::Variant>,
27        platform_data: &glib::Variant,
28    ) {
29        unsafe {
30            ffi::g_remote_action_group_activate_action_full(
31                self.as_ref().to_glib_none().0,
32                action_name.to_glib_none().0,
33                parameter.to_glib_none().0,
34                platform_data.to_glib_none().0,
35            );
36        }
37    }
38
39    #[doc(alias = "g_remote_action_group_change_action_state_full")]
40    fn change_action_state_full(
41        &self,
42        action_name: &str,
43        value: &glib::Variant,
44        platform_data: &glib::Variant,
45    ) {
46        unsafe {
47            ffi::g_remote_action_group_change_action_state_full(
48                self.as_ref().to_glib_none().0,
49                action_name.to_glib_none().0,
50                value.to_glib_none().0,
51                platform_data.to_glib_none().0,
52            );
53        }
54    }
55}
56
57impl<O: IsA<RemoteActionGroup>> RemoteActionGroupExt for O {}