pub fn swap_region(&self, rectangles: &[i32], n_rectangles: i32) {
        unsafe {
            ffi::cogl_onscreen_swap_region(
                self.to_glib_none().0,
                rectangles.as_ptr(),
                n_rectangles,
            );
        }
    }
/// Swaps a region of the back buffer being rendered too, to the front for
/// display. `rectangles` represents the region as array of `n_rectangles` each
/// defined by 4 sequential (x, y, width, height) integers.
///
/// This function also implicitly discards the contents of the color, depth and
/// stencil buffers as if `Framebuffer::discard_buffers` were used. The
/// significance of the discard is that you should not expect to be able to
/// start a new frame that incrementally builds on the contents of the previous
/// frame.
/// ## `rectangles`
/// An array of integer 4-tuples representing rectangles as
///  (x, y, width, height) tuples.
/// ## `n_rectangles`
/// The number of 4-tuples to be read from `rectangles`
Swaps a region of the back buffer being rendered too, to the front for
display. `rectangles` represents the region as array of `n_rectangles` each
defined by 4 sequential (x, y, width, height) integers.

This function also implicitly discards the contents of the color, depth and
stencil buffers as if `Framebuffer::discard_buffers` were used. The
significance of the discard is that you should not expect to be able to
start a new frame that incrementally builds on the contents of the previous
frame.
Swaps a region of the back buffer being rendered too to the front for display . ` rectangles ` represents the region as array of ` n_rectangles ` each defined by 4 sequential ( x y width height ) integers . This function also implicitly discards the contents of the color depth and stencil buffers as if ` Framebuffer :: discard_buffers ` were used . The significance of the discard is that you should not expect to be able to start a new frame that incrementally builds on the contents of the previous frame .
pub fn swap_region(&self, rectangles: &[i32], n_rectangles: i32) {
        unsafe {
            ffi::cogl_onscreen_swap_region(
                self.to_glib_none().0,
                rectangles.as_ptr(),
                n_rectangles,
            );
        }
    }
pub fn swap_region ( & self , rectangles : & [ i32 ] , n_rectangles : i32 ) { unsafe { ffi :: cogl_onscreen_swap_region ( self . to_glib_none ( ) . 0 , rectangles . as_ptr ( ) , n_rectangles , ) ; } }
Swaps a region of the back buffer being rendered too, to the front for
display.
Swaps a region of the back buffer being rendered too to the front for display .
&self
rectangles
&[i32]
n_rectangles
i32
&self
rectangles
&[i32]
n_rectangles
i32
`rectangles`
An array of integer 4-tuples representing rectangles as
(x, y, width, height) tuples.
An array of integer 4 - tuples representing rectangles as ( x y width height ) tuples .
`n_rectangles`
The number of 4-tuples to be read from `rectangles`
The number of 4 - tuples to be read from ` rectangles `