pub fn new(context: &Context, width: i32, height: i32) -> Onscreen {
        unsafe {
            from_glib_full(ffi::cogl_onscreen_new(
                context.to_glib_none().0,
                width,
                height,
            ))
        }
    }
/// Instantiates an "unallocated" `Onscreen` framebuffer that may be
/// configured before later being allocated, either implicitly when
/// it is first used or explicitly via `Framebuffer::allocate`.
/// ## `context`
/// A `Context`
/// ## `width`
/// The desired framebuffer width
/// ## `height`
/// The desired framebuffer height
///
/// # Returns
///
/// A newly instantiated `Onscreen` framebuffer
Instantiates an "unallocated" `Onscreen` framebuffer that may be
configured before later being allocated, either implicitly when
it is first used or explicitly via `Framebuffer::allocate`.
Instantiates an " unallocated " ` Onscreen ` framebuffer that may be configured before later being allocated either implicitly when it is first used or explicitly via ` Framebuffer :: allocate ` .
pub fn new(context: &Context, width: i32, height: i32) -> Onscreen {
        unsafe {
            from_glib_full(ffi::cogl_onscreen_new(
                context.to_glib_none().0,
                width,
                height,
            ))
        }
    }
pub fn new ( context : & Context , width : i32 , height : i32 ) -> Onscreen { unsafe { from_glib_full ( ffi :: cogl_onscreen_new ( context . to_glib_none ( ) . 0 , width , height , ) ) } }
Instantiates an "unallocated" `Onscreen` framebuffer that may be
configured before later being allocated, either implicitly when
it is first used or explicitly via `Framebuffer::allocate`.
Instantiates an " unallocated " ` Onscreen ` framebuffer that may be configured before later being allocated either implicitly when it is first used or explicitly via ` Framebuffer :: allocate ` .
context
&Context
width
i32
height
i32
A newly instantiated `Onscreen` framebuffer
A newly instantiated ` Onscreen ` framebuffer
context
&Context
width
i32
height
i32
`context`
None
`width`
The desired framebuffer width
The desired framebuffer width
`height`
The desired framebuffer height
The desired framebuffer height