Table of Contents

Class Surface

Namespace
Cairo.Internal
Assembly
cairo-1.0.dll
public class Surface
Inheritance
Surface
Inherited Members

Methods

CreateForRectangle(SurfaceHandle, double, double, double, double)

public static extern SurfaceOwnedHandle CreateForRectangle(SurfaceHandle handle, double x, double y, double width, double height)

Parameters

handle SurfaceHandle
x double
y double
width double
height double

Returns

SurfaceOwnedHandle

CreateSimilar(SurfaceHandle, Content, int, int)

public static extern SurfaceOwnedHandle CreateSimilar(SurfaceHandle handle, Content content, int width, int height)

Parameters

handle SurfaceHandle
content Content
width int
height int

Returns

SurfaceOwnedHandle

CreateSimilarImage(SurfaceHandle, Format, int, int)

public static extern SurfaceOwnedHandle CreateSimilarImage(SurfaceHandle handle, Format format, int width, int height)

Parameters

handle SurfaceHandle
format Format
width int
height int

Returns

SurfaceOwnedHandle

Destroy(IntPtr)

public static extern void Destroy(IntPtr handle)

Parameters

handle IntPtr

Finish(SurfaceHandle)

public static extern void Finish(SurfaceHandle handle)

Parameters

handle SurfaceHandle

Flush(SurfaceHandle)

public static extern void Flush(SurfaceHandle handle)

Parameters

handle SurfaceHandle

GetContent(SurfaceHandle)

public static extern Content GetContent(SurfaceHandle handle)

Parameters

handle SurfaceHandle

Returns

Content

GetDevice(SurfaceHandle)

public static extern DeviceUnownedHandle GetDevice(SurfaceHandle handle)

Parameters

handle SurfaceHandle

Returns

DeviceUnownedHandle

GetDeviceOffset(SurfaceHandle, out double, out double)

public static extern void GetDeviceOffset(SurfaceHandle handle, out double xOffset, out double yOffset)

Parameters

handle SurfaceHandle
xOffset double
yOffset double

GetDeviceScale(SurfaceHandle, out double, out double)

public static extern void GetDeviceScale(SurfaceHandle handle, out double xScale, out double yScale)

Parameters

handle SurfaceHandle
xScale double
yScale double

GetFallbackResolution(SurfaceHandle, out double, out double)

public static extern void GetFallbackResolution(SurfaceHandle handle, out double xPixelsPerInch, out double yPixelsPerInch)

Parameters

handle SurfaceHandle
xPixelsPerInch double
yPixelsPerInch double

GetFontOptions(SurfaceHandle, FontOptionsHandle)

public static extern void GetFontOptions(SurfaceHandle handle, FontOptionsHandle options)

Parameters

handle SurfaceHandle
options FontOptionsHandle

GetGType()

Calls native function cairo_gobject_surface_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetType(SurfaceHandle)

public static extern SurfaceType GetType(SurfaceHandle handle)

Parameters

handle SurfaceHandle

Returns

SurfaceType

MarkDirty(SurfaceHandle)

public static extern void MarkDirty(SurfaceHandle handle)

Parameters

handle SurfaceHandle

MarkDirtyRectangle(SurfaceHandle, int, int, int, int)

public static extern void MarkDirtyRectangle(SurfaceHandle handle, int x, int y, int width, int height)

Parameters

handle SurfaceHandle
x int
y int
width int
height int

SetDeviceOffset(SurfaceHandle, double, double)

public static extern void SetDeviceOffset(SurfaceHandle handle, double xOffset, double yOffset)

Parameters

handle SurfaceHandle
xOffset double
yOffset double

SetDeviceScale(SurfaceHandle, double, double)

public static extern void SetDeviceScale(SurfaceHandle handle, double xScale, double yScale)

Parameters

handle SurfaceHandle
xScale double
yScale double

SetFallbackResolution(SurfaceHandle, double, double)

public static extern void SetFallbackResolution(SurfaceHandle handle, double xPixelsPerInch, double yPixelsPerInch)

Parameters

handle SurfaceHandle
xPixelsPerInch double
yPixelsPerInch double

Status(SurfaceHandle)

public static extern Status Status(SurfaceHandle handle)

Parameters

handle SurfaceHandle

Returns

Status