1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use crate::DrawContext;
use glib::translate::*;
use glib::IsA;
pub trait DrawContextExtManual: 'static {
#[doc(alias = "gdk_draw_context_get_frame_region")]
#[doc(alias = "get_frame_region")]
fn frame_region(&self) -> Option<cairo::Region>;
}
impl<O: IsA<DrawContext>> DrawContextExtManual for O {
fn frame_region(&self) -> Option<cairo::Region> {
unsafe {
from_glib_none(
ffi::gdk_draw_context_get_frame_region(self.as_ref().to_glib_none().0)
as *mut cairo::ffi::cairo_region_t,
)
}
}
}