Package: gtk

Class gtk:offscreen-window

Superclasses

gtk:window, gtk:bin, gtk:container, gtk:widget, gtk:buildable, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

None

Details

The gtk:offscreen-window widget is strictly intended to be used for obtaining snapshots of widgets that are not part of a normal widget hierarchy. Since the offscreen window 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 offscreen window and then retrieve the snapshot as a cairo:surface-t instance or gdk-pixbuf:pixbuf object.

The gtk:offscreen-window widget derives from the gtk:window class only as an implementation detail. Applications should not use any API specific to the gtk:window class to operate on this object. It should be treated as a gtk:bin widget that has no parent widget.

When contained offscreen widgets are redrawn, the gtk:offscreen-window widget will emit a "damage-event" signal.
 

Returned by

Inherited Slot Access Functions

gtk:widget-app-paintable
gtk:widget-can-default
gtk:widget-can-focus
gtk:widget-composite-child
gtk:widget-double-buffered
gtk:widget-events
gtk:widget-expand
gtk:widget-focus-on-click
gtk:widget-halign
gtk:widget-has-default
gtk:widget-has-focus
gtk:widget-has-tooltip
gtk:widget-height-request
gtk:widget-hexpand
gtk:widget-hexpand-set
gtk:widget-is-focus
gtk:widget-margin
gtk:widget-margin-bottom
gtk:widget-margin-end
gtk:widget-margin-left
gtk:widget-margin-right
gtk:widget-margin-start
gtk:widget-margin-top
gtk:widget-name
gtk:widget-no-show-all
gtk:widget-opacity
gtk:widget-parent
gtk:widget-receives-default
gtk:widget-scale-factor
gtk:widget-sensitive
gtk:widget-style
gtk:widget-tooltip-markup
gtk:widget-tooltip-text
gtk:widget-valign
gtk:widget-vexpand
gtk:widget-vexpand-set
gtk:widget-visible
gtk:widget-width-request
gtk:widget-window
gtk:window-accept-focus
gtk:window-application
gtk:window-attached-to
gtk:window-decorated
gtk:window-default-height
gtk:window-default-width
gtk:window-deletable
gtk:window-destroy-with-parent
gtk:window-focus-on-map
gtk:window-focus-visible
gtk:window-gravity
gtk:window-has-resize-grip
gtk:window-has-toplevel-focus
gtk:window-hide-titlebar-when-maximized
gtk:window-icon
gtk:window-icon-name
gtk:window-is-active
gtk:window-mnemonics-visible
gtk:window-modal
gtk:window-opacity
gtk:window-resizable
gtk:window-resize-grip-visible
gtk:window-role
gtk:window-screen
gtk:window-skip-pager-hint
gtk:window-skip-taskbar-hint
gtk:window-startup-id
gtk:window-title
gtk:window-transient-for
gtk:window-type
gtk:window-type-hint
gtk:window-urgency-hint
gtk:window-window-position
gtk:container-border-width
gtk:container-child
gtk:container-resize-mode
g:object-has-reference
g:object-pointer

See also

2024-3-17