Package: gtk

Function gtk-cairo-should-draw-window

Lambda List

gtk-cairo-should-draw-window (cr window)

Arguments

cr -- a cairo-t context
window -- the gdk-window object to check, window may not be an input-only window

Return Value

True if window should be drawn.

Details

This function is supposed to be called in "draw" implementations for widgets that support multiple windows. The cr argument must be untransformed from invoking of the draw function. This function will return true if the contents of the given window are supposed to be drawn and false otherwise. Note that when the drawing was not initiated by the windowing system this function will return true for all windows, so you need to draw the bottommost window first. Also, do not use "else if" statements to check which window should be drawn.
 

See also

2021-9-20