cairo-cairo-surface-t {RGtk2}R Documentation

cairo_surface_t

Description

Base class for surfaces

Methods and Functions

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)

Structures

CairoSurface
A 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.

Convenient Construction

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.

Enums and Flags

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
The surface will hold color content only.
alpha
The surface will hold alpha content only.
color-alpha
The surface will hold color and alpha content.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://www.cairographics.org/manual/cairo-cairo-surface-t.html


[Package RGtk2 version 2.8.6 Index]