create


Description:

[ Version ( deprecated = true , deprecated_since = "1.8" , since = "1.0" ) ]
public Context create ()

Warning: create is deprecated since 1.8.

Creates a new Cairo context for the cairo texture.

Note:

Use the draw signal and the invalidate function to obtain a Cairo context for 2D drawing.

It is similar to using create_region with x_offset and y_offset of 0, width equal to the cairo texture surface width and height equal to the cairo texture surface height.

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

Parameters:

this

a CairoTexture

Returns:

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