create_region


Description:

[ Version ( deprecated = true , deprecated_since = "1.8" , since = "1.0" ) ]
public Context create_region (int x_offset, int y_offset, int width, int height)

Warning: create_region is deprecated since 1.8.

Creates a new Cairo context that will updat the region defined by x_offset, y_offset, width and height.

Note:

Use the draw signal and invalidate_rectangle to obtain a clipped Cairo context for 2D drawing.

Do not call this function within the paint virtual function or from a callback to the paint signal.

Parameters:

this

a CairoTexture

x_offset

offset of the region on the X axis

y_offset

offset of the region on the Y axis

width

width of the region, or -1 for the full surface width

height

height of the region, or -1 for the full surface height

Returns:

a newly created Cairo context. Use cairo_destroy to upload the contents of the context when done drawing