cairo-surface {RGtk2} | R Documentation |
Base class for surfaces
cairoSurfaceCreateSimilar(other, content, width, height)
cairoSurfaceDestroy(surface)
cairoSurfaceStatus(surface)
cairoSurfaceFinish(surface)
cairoSurfaceFlush(surface)
cairoSurfaceGetFontOptions(surface)
cairoSurfaceGetContent(surface)
cairoSurfaceMarkDirty(surface)
cairoSurfaceMarkDirtyRectangle(surface, x, y, width, height)
cairoSurfaceSetDeviceOffset(surface, x.offset, y.offset)
cairoSurfaceGetDeviceOffset(surface)
cairoSurfaceSetFallbackResolution(surface, x.pixels.per.inch, y.pixels.per.inch)
cairoSurfaceGetFallbackResolution(surface)
cairoSurfaceGetType(surface)
cairoSurfaceSetUserData(surface, key, user.data)
cairoSurfaceGetUserData(surface, key)
cairoSurfaceCopyPage(surface)
cairoSurfaceShowPage(surface)
cairoSurfaceHasShowTextGlyphs(surface)
cairoSurface(width, height, format, other, content, data, stride, filename, con)
CairoSurface
is the abstract type representing all different drawing
targets that cairo can render to. The actual drawings are
performed using a cairo context.
A cairo surface is created by using backend-specific
constructors, typically of the form
cairo_backendsurfaceCreate()
.
CairoSurface
A CairoSurface
represents an image, either as the destination
of a drawing operation or as source when drawing onto another
surface. To draw to a CairoSurface
, create a cairo context
with the surface as the target, using cairoCreate
.
There are different subtypes of CairoSurface
for
different drawing backends; for example, cairoImageSurfaceCreate
creates a bitmap image in memory.
The type of a surface can be queried with cairoSurfaceGetType
.
Memory management of CairoSurface
is done with
cairoSurfaceReference()
and cairoSurfaceDestroy
.
cairoSurface
is the result of collapsing the constructors of cairo_surface_t
(cairoSurfaceCreateSimilar
, cairoImageSurfaceCreate
, cairoImageSurfaceCreateForData
, cairoImageSurfaceCreateFromPng
, cairoImageSurfaceCreateFromPngStream
) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.
Derived by RGtkGen from GTK+ documentation
http://www.cairographics.org/manual/cairo-surface.html