///
/// width, int height)
///
/// Creates and returns a pixmap constructed by grabbing the contents
/// of the given *window* restricted by QRect( *x,* *y,* *width,*
/// *height).*
///
/// The arguments ( *x* , *y* ) specify the offset in the window,
/// whereas ( *width* , *height* ) specify the area to be copied. If
/// *width* is negative, the function copies everything to the right
/// border of the window. If *height* is negative, the function
/// copies everything to the bottom of the window.
///
/// The window system identifier ( `WId)` can be retrieved using the
/// QWidget::winId() function. The rationale for using a window
/// identifier and not a QWidget, is to enable grabbing of windows
/// that are not part of the application, window system frames, and so
/// on.
///
/// The grabWindow() function grabs pixels from the screen, not from
/// the window, i.e. if there is another window partially or entirely
/// over the one you grab, you get pixels from the overlying window,
/// too. The mouse cursor is generally not grabbed.
///
/// Note on X11 that if the given *window* doesn't have the same depth
/// as the root window, and another window partially or entirely
/// obscures the one you grab, you will *not* get pixels from the
/// overlying window. The contents of the obscured areas in the
/// pixmap will be undefined and uninitialized.
///
/// On Windows Vista and above grabbing a layered window, which is
/// created by setting the Qt::WA_TranslucentBackground attribute, will
/// not work. Instead grabbing the desktop widget should work.
///
/// **Warning**: In general, grabbing an area outside the screen is not
/// safe. This depends on the underlying window system.
///
/// **Warning**: The function is deprecated in Qt 5.0 since there might be
/// platform plugins in which window system identifiers ( `WId)`
/// are local to a screen. Use QScreen::grabWindow() instead.
///
/// **See also:** [`grab_widget()`]
/// {Screenshot Example}
/// **See also:** [`Screen`]




The window system identifier ( `WId)` can be retrieved using the
QWidget::winId() function. The rationale for using a window
identifier and not a QWidget, is to enable grabbing of windows
that are not part of the application, window system frames, and so
on.

The grabWindow() function grabs pixels from the screen, not from
the window, i.e. if there is another window partially or entirely
over the one you grab, you get pixels from the overlying window,
too. The mouse cursor is generally not grabbed.

Note on X11 that if the given *window* doesn't have the same depth
as the root window, and another window partially or entirely
obscures the one you grab, you will *not* get pixels from the
overlying window. The contents of the obscured areas in the
pixmap will be undefined and uninitialized.

On Windows Vista and above grabbing a layered window, which is
created by setting the Qt::WA_TranslucentBackground attribute, will
not work. Instead grabbing the desktop widget should work.

Warning**: In general, grabbing an area outside the screen is not
safe. This depends on the underlying window system.

Warning**: The function is deprecated in Qt 5.0 since there might be
platform plugins in which window system identifiers ( `WId)`
are local to a screen.

See also:** [`grab_widget()`]
{Screenshot Example}
See also:** [`Screen`]
The window system identifier ( ` WId ) ` can be retrieved using the QWidget :: winId () function . The rationale for using a window identifier and not a QWidget is to enable grabbing of windows that are not part of the application window system frames and so on . The grabWindow () function grabs pixels from the screen not from the window i . e . if there is another window partially or entirely over the one you grab you get pixels from the overlying window too . The mouse cursor is generally not grabbed . Note on X11 that if the given * window * doesn ' t have the same depth as the root window and another window partially or entirely obscures the one you grab you will * not * get pixels from the overlying window . The contents of the obscured areas in the pixmap will be undefined and uninitialized . On Windows Vista and above grabbing a layered window which is created by setting the Qt :: WA_TranslucentBackground attribute will not work . Instead grabbing the desktop widget should work . Warning ** : In general grabbing an area outside the screen is not safe . This depends on the underlying window system . Warning ** : The function is deprecated in Qt 5 . 0 since there might be platform plugins in which window system identifiers ( ` WId ) ` are local to a screen . See also : ** [ ` grab_widget () ` ] { Screenshot Example } See also : ** [ ` Screen ` ]
pub fn grab_window(arg0: u64, x: i32, y: i32, w: i32, h: i32) -> Pixmap<'a> {
        let (obj_data, funcs) = unsafe {
            (
                ::std::ptr::null(),
                (*((*rute_ffi_get()).get_pixmap)(::std::ptr::null()).all_funcs).pixmap_funcs,
            )
        };
        unsafe {
            let ret_val = ((*funcs).grab_window)(obj_data, arg0, x, y, w, h);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Pixmap::new_from_rc(t);
            } else {
                ret_val = Pixmap::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn grab_window ( arg0 : u64 , x : i32 , y : i32 , w : i32 , h : i32 ) -> Pixmap < ' a > { let ( obj_data , funcs ) = unsafe { ( :: std :: ptr :: null ( ) , ( * ( ( * rute_ffi_get ( ) ) . get_pixmap ) ( :: std :: ptr :: null ( ) ) . all_funcs ) . pixmap_funcs , ) } ; unsafe { let ret_val = ( ( * funcs ) . grab_window ) ( obj_data , arg0 , x , y , w , h ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Pixmap :: new_from_rc ( t ) ; } else { ret_val = Pixmap :: new_from_owned ( t ) ; } ret_val } }
width, int height)
Creates and returns a pixmap constructed by grabbing the contents
of the given *window* restricted by QRect( *x,* *y,* *width,
height).
width int height ) Creates and returns a pixmap constructed by grabbing the contents of the given * window * restricted by QRect ( * x * * y * * width height ) .
arg0
u64
x
i32
y
i32
w
i32
h
i32