///
/// Returns a pointer to the top-level window associated with this
/// surface.
///
/// Returns the paint device for this surface.
///
/// **Warning**: The device is only valid between calls to beginPaint() and
/// endPaint(). You should not cache the returned value.
///
/// Flushes the given *region* from the specified *window* onto the
/// screen.
///
/// The *window* must either be the top level window represented by
/// this backingstore, or a non-transient child of that window. Passing
/// `nullptr` falls back to using the backingstore's top level window.
///
/// If the *window* is a child window, the *region* should be in child window
/// coordinates, and the *offset* should be the child window's offset in relation
/// to the backingstore's top level window.
///
/// You should call this function after ending painting with endPaint().
///
/// **See also:** [`Window::transient_parent`]
Returns a pointer to the top-level window associated with this
surface.

Returns the paint device for this surface.

Warning**: The device is only valid between calls to beginPaint() and
endPaint(). You should not cache the returned value.

Flushes the given *region* from the specified *window* onto the
screen.

The *window* must either be the top level window represented by
this backingstore, or a non-transient child of that window. Passing
`nullptr` falls back to using the backingstore's top level window.



You should call this function after ending painting with endPaint().


Returns a pointer to the top - level window associated with this surface . Returns the paint device for this surface . Warning ** : The device is only valid between calls to beginPaint () and endPaint () . You should not cache the returned value . Flushes the given * region * from the specified * window * onto the screen . The * window * must either be the top level window represented by this backingstore or a non - transient child of that window . Passing ` nullptr ` falls back to using the backingstore ' s top level window . You should call this function after ending painting with endPaint () .
pub fn flush<P: PointTrait<'a>, R: RegionTrait<'a>, W: WindowTrait<'a>>(
        &self,
        region: &R,
        window: &W,
        offset: &P,
    ) -> &Self {
        let (obj_region_1, _funcs) = region.get_region_obj_funcs();
        let (obj_window_2, _funcs) = window.get_window_obj_funcs();
        let (obj_offset_3, _funcs) = offset.get_point_obj_funcs();
        let (obj_data, funcs) = self.get_backing_store_obj_funcs();
        unsafe {
            ((*funcs).flush)(obj_data, obj_region_1, obj_window_2, obj_offset_3);
        }
        self
    }
pub fn flush < P : PointTrait < ' a > , R : RegionTrait < ' a > , W : WindowTrait < ' a > > ( & self , region : & R , window : & W , offset : & P , ) -> & Self { let ( obj_region_1 , _funcs ) = region . get_region_obj_funcs ( ) ; let ( obj_window_2 , _funcs ) = window . get_window_obj_funcs ( ) ; let ( obj_offset_3 , _funcs ) = offset . get_point_obj_funcs ( ) ; let ( obj_data , funcs ) = self . get_backing_store_obj_funcs ( ) ; unsafe { ( ( * funcs ) . flush ) ( obj_data , obj_region_1 , obj_window_2 , obj_offset_3 ) ; } self }
Returns a pointer to the top-level window associated with this
surface.
Returns a pointer to the top - level window associated with this surface .
&self
region
&R
window
&W
offset
&P