1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// This file was generated by gir (https://github.com/gtk-rs/gir)
// DO NOT EDIT

use crate::{ObjectFeatures,Transition};
use glib::{translate::*};

glib::wrapper! {
    #[doc(alias = "WpFeatureActivationTransition")]
    pub struct FeatureActivationTransition(Object<ffi::WpFeatureActivationTransition, ffi::WpFeatureActivationTransitionClass>) @extends Transition, @implements gio::AsyncResult;

    match fn {
        type_ => || ffi::wp_feature_activation_transition_get_type(),
    }
}

impl FeatureActivationTransition {
    #[doc(alias = "wp_feature_activation_transition_get_requested_features")]
    #[doc(alias = "get_requested_features")]
    pub fn requested_features(&self) -> ObjectFeatures {
        unsafe {
            from_glib(ffi::wp_feature_activation_transition_get_requested_features(self.to_glib_none().0))
        }
    }
}