gdk4/popup_layout.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::translate::*;
4
5use crate::PopupLayout;
6
7impl PopupLayout {
8 #[doc(alias = "gdk_popup_layout_get_offset")]
9 #[doc(alias = "get_offset")]
10 pub fn offset(&self) -> (i32, i32) {
11 let mut dx = 0;
12 let mut dy = 0;
13 unsafe {
14 crate::ffi::gdk_popup_layout_get_offset(self.to_glib_none().0, &mut dx, &mut dy);
15 }
16 (dx, dy)
17 }
18}