[][src]Trait gtk::OffscreenWindowExt

pub trait OffscreenWindowExt: 'static {
    fn get_pixbuf(&self) -> Option<Pixbuf>;
fn get_surface(&self) -> Option<Surface>; }

Trait containing all OffscreenWindow methods.

Implementors

OffscreenWindow

Required methods

fn get_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.

fn get_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.

Loading content...

Implementors

impl<O: IsA<OffscreenWindow>> OffscreenWindowExt for O[src]

Loading content...