gtk 0.19.0

Rust bindings for the GTK+ 3 library
Documentation
// Take a look at the license at the top of the repository in the LICENSE file.

use crate::{Invisible, ffi};
use glib::object::IsA;
use glib::translate::{ToGlibPtr, from_glib_none};

// For some reasons, it's not generated...
pub trait InvisibleExtManual: IsA<Invisible> + 'static {
    #[doc(alias = "gtk_invisible_get_screen")]
    #[doc(alias = "get_screen")]
    fn screen(&self) -> Option<gdk::Screen> {
        unsafe {
            from_glib_none(ffi::gtk_invisible_get_screen(
                self.as_ref().to_glib_none().0,
            ))
        }
    }
}

impl<T: IsA<Invisible>> InvisibleExtManual for T {}