[]Struct gtk::OffscreenWindow

pub struct OffscreenWindow(_, _);

OffscreenWindow is strictly intended to be used for obtaining snapshots of widgets that are not part of a normal widget hierarchy. Since OffscreenWindow is a toplevel widget you cannot obtain snapshots of a full window with it since you cannot pack a toplevel widget in another toplevel.

The idea is to take a widget and manually set the state of it, add it to a OffscreenWindow and then retrieve the snapshot as a cairo::Surface or gdk_pixbuf::Pixbuf.

OffscreenWindow derives from Window only as an implementation detail. Applications should not use any API specific to Window to operate on this object. It should be treated as a Bin that has no parent widget.

When contained offscreen widgets are redrawn, OffscreenWindow will emit a Widget::damage-event signal.

Implements

OffscreenWindowExt, GtkWindowExt, BinExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, GtkWindowExtManual, WidgetExtManual, BuildableExtManual

Implementations

impl OffscreenWindow[src]

pub fn new() -> OffscreenWindow[src]

Creates a toplevel container widget that is used to retrieve snapshots of widgets without showing them on the screen.

Returns

A pointer to a Widget

Trait Implementations

impl Clone for OffscreenWindow

impl Debug for OffscreenWindow

impl Default for OffscreenWindow[src]

impl Display for OffscreenWindow[src]

impl Eq for OffscreenWindow

impl Hash for OffscreenWindow

impl IsA<Bin> for OffscreenWindow

impl IsA<Buildable> for OffscreenWindow

impl IsA<Container> for OffscreenWindow

impl IsA<Widget> for OffscreenWindow

impl IsA<Window> for OffscreenWindow

impl Ord for OffscreenWindow

impl<T: ObjectType> PartialEq<T> for OffscreenWindow

impl<T: ObjectType> PartialOrd<T> for OffscreenWindow

impl StaticType for OffscreenWindow

Auto Trait Implementations

impl RefUnwindSafe for OffscreenWindow

impl !Send for OffscreenWindow

impl !Sync for OffscreenWindow

impl Unpin for OffscreenWindow

impl UnwindSafe for OffscreenWindow

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.