Package: gdk

Function gdk-window-background-pattern

Lambda List

gdk-window-background-pattern (window)

Syntax

(gdk-window-background-pattern window) => pattern
(setf (gdk-window-background-pattern window) pattern)

Arguments

window -- a gdk-window object
pattern -- a pattern of type cairo-pattern-t to use, or nil

Details

The pattern to use for the background or nil to use the parent's background.

The function gdk-window-background-pattern gets the pattern used to clear the background on the window. If the window does not have its own background and reuses the parent's, nil is returned and you will have to query it yourself. The function (setf gdk-window-background-pattern) sets the background of the window.

A background of nil means that the window will inherit its background form its parent window.

The windowing system will normally fill a window with its background when the window is obscured then exposed.

Warning

The function gdk-window-background-pattern has been deprecated since version 3.22 and should not be used in newly written code. Do not use this function.
 

See also

2020-9-24