cairo-cairo-surface-t {RGtk2} | R Documentation |
Base class for surfaces
cairoSurfaceCreateSimilar(other, content, width, height)
cairoSurfaceDestroy(surface)
cairoSurfaceFinish(surface)
cairoSurfaceFlush(surface)
cairoSurfaceGetFontOptions(surface)
cairoSurfaceSetUserData(surface, key, user.data)
cairoSurfaceGetUserData(surface, key)
cairoSurfaceMarkDirty(surface)
cairoSurfaceMarkDirtyRectangle(surface, x, y, width, height)
cairoSurfaceReference(surface)
cairoSurfaceSetDeviceOffset(surface, x.offset, y.offset)
cairoSurfaceStatus(surface)
cairoSurface(width, height, format, other, content, data, stride, filename, con)
CairoSurface
CairoSurface
represents an image, either as the destination
of a drawing operation or as source when drawing onto another
surface. There are different subtypes of cairo_surface_t for
different drawing backends; for example, cairoImageSurfaceCreate
creates a bitmap image in memory.
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.
CairoContent
cairo.content.t
is used to describe the content that a surface will
contain, whether color information, alpha information (translucence
vs. opacity), or both.
Note: The large values here are designed to keep cairo_content_t values distinct from cairo_format_t values so that the implementation can detect the error if users confuse the two types.
color
alpha
color-alpha
Derived by RGtkGen from GTK+ documentation
http://www.cairographics.org/manual/cairo-cairo-surface-t.html