Function

Gtkcairo_transform_to_window

Declaration [src]

void
gtk_cairo_transform_to_window (
  cairo_t* cr,
  GtkWidget* widget,
  GdkWindow* window
)

Description [src]

Transforms the given cairo context cr that from widget-relative coordinates to window-relative coordinates. If the widget’s window is not an ancestor of window, no modification will be applied.

This is the inverse to the transformation GTK applies when preparing an expose event to be emitted with the GtkWidget::draw signal. It is intended to help porting multiwindow widgets from GTK+ 2 to the rendering architecture of GTK+ 3.

Available since:3.0

Parameters

cr cairo_t
 

The cairo context to transform.

 The data is owned by the caller of the function.
widget GtkWidget
 

The widget the context is currently centered for.

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

The window to transform the context to.

 The data is owned by the caller of the function.