Function

Gtkcairo_should_draw_window

since: 3.0

Declaration [src]

gboolean
gtk_cairo_should_draw_window (
  cairo_t* cr,
  GdkWindow* window
)

Description [src]

This function is supposed to be called in GtkWidget::draw implementations for widgets that support multiple windows. cr 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.

Available since: 3.0

Parameters

cr

Type: cairo_t

A cairo context.

The data is owned by the caller of the function.
window

Type: GdkWindow

The window to check. window may not be an input-only window.

The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE if window should be drawn.