1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
use glib::object::IsA;
use glib::translate::*;
#[doc(alias = "hdy_ease_out_cubic")]
pub fn ease_out_cubic(t: f64) -> f64 {
assert_initialized_main_thread!();
unsafe { ffi::hdy_ease_out_cubic(t) }
}
#[doc(alias = "hdy_get_enable_animations")]
pub fn get_enable_animations<P: IsA<gtk::Widget>>(widget: &P) -> bool {
assert_initialized_main_thread!();
unsafe {
from_glib(ffi::hdy_get_enable_animations(
widget.as_ref().to_glib_none().0,
))
}
}
#[doc(alias = "hdy_init")]
pub fn init() {
assert_initialized_main_thread!();
unsafe {
ffi::hdy_init();
}
}