Trait gtk::prelude::OffscreenWindowExt  
source · [−]pub trait OffscreenWindowExt: 'static {
    fn pixbuf(&self) -> Option<Pixbuf>;
    fn surface(&self) -> Option<Surface>;
}Expand description
Required Methods
sourcefn pixbuf(&self) -> Option<Pixbuf>
 
fn pixbuf(&self) -> Option<Pixbuf>
Retrieves a snapshot of the contained widget in the form of
a gdk_pixbuf::Pixbuf. This is a new pixbuf with a reference count of 1,
and the application should unreference it once it is no longer
needed.
Returns
A gdk_pixbuf::Pixbuf pointer, or None.
sourcefn surface(&self) -> Option<Surface>
 
fn surface(&self) -> Option<Surface>
Retrieves a snapshot of the contained widget in the form of
a cairo::Surface. If you need to keep this around over window
resizes then you should add a reference to it.
Returns
A cairo::Surface pointer to the offscreen
surface, or None.