Description Usage Arguments Details Author(s)
Sets an offset that is added to the device coordinates determined
by the CTM when drawing to surface. One use case for this function
is when we want to create a CairoSurface that redirects drawing
for a portion of an onscreen surface to an offscreen surface in a
way that is completely invisible to the user of the cairo
API. Setting a transformation via cairoTranslate isn't
sufficient to do this, since functions like
cairoDeviceToUser will expose the hidden offset.
1 | cairoSurfaceSetDeviceOffset(surface, x.offset, y.offset)
|
|
[ |
|
[numeric] the offset in the X direction, in device units |
|
[numeric] the offset in the Y direction, in device units |
Note that the offset affects drawing to the surface as well as using the surface in a source pattern.
Derived by RGtkGen from GTK+ documentation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.