Class Surface
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
SurfaceHandlex
doubley
doublewidth
doubleheight
double
Returns
CreateSimilar(SurfaceHandle, Content, int, int)
public static extern SurfaceOwnedHandle CreateSimilar(SurfaceHandle handle, Content content, int width, int height)
Parameters
handle
SurfaceHandlecontent
Contentwidth
intheight
int
Returns
CreateSimilarImage(SurfaceHandle, Format, int, int)
public static extern SurfaceOwnedHandle CreateSimilarImage(SurfaceHandle handle, Format format, int width, int height)
Parameters
handle
SurfaceHandleformat
Formatwidth
intheight
int
Returns
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
GetDevice(SurfaceHandle)
public static extern DeviceUnownedHandle GetDevice(SurfaceHandle handle)
Parameters
handle
SurfaceHandle
Returns
GetDeviceOffset(SurfaceHandle, out double, out double)
public static extern void GetDeviceOffset(SurfaceHandle handle, out double xOffset, out double yOffset)
Parameters
handle
SurfaceHandlexOffset
doubleyOffset
double
GetDeviceScale(SurfaceHandle, out double, out double)
public static extern void GetDeviceScale(SurfaceHandle handle, out double xScale, out double yScale)
Parameters
handle
SurfaceHandlexScale
doubleyScale
double
GetFallbackResolution(SurfaceHandle, out double, out double)
public static extern void GetFallbackResolution(SurfaceHandle handle, out double xPixelsPerInch, out double yPixelsPerInch)
Parameters
handle
SurfaceHandlexPixelsPerInch
doubleyPixelsPerInch
double
GetFontOptions(SurfaceHandle, FontOptionsHandle)
public static extern void GetFontOptions(SurfaceHandle handle, FontOptionsHandle options)
Parameters
handle
SurfaceHandleoptions
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
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
SurfaceHandlex
inty
intwidth
intheight
int
SetDeviceOffset(SurfaceHandle, double, double)
public static extern void SetDeviceOffset(SurfaceHandle handle, double xOffset, double yOffset)
Parameters
handle
SurfaceHandlexOffset
doubleyOffset
double
SetDeviceScale(SurfaceHandle, double, double)
public static extern void SetDeviceScale(SurfaceHandle handle, double xScale, double yScale)
Parameters
handle
SurfaceHandlexScale
doubleyScale
double
SetFallbackResolution(SurfaceHandle, double, double)
public static extern void SetFallbackResolution(SurfaceHandle handle, double xPixelsPerInch, double yPixelsPerInch)
Parameters
handle
SurfaceHandlexPixelsPerInch
doubleyPixelsPerInch
double
Status(SurfaceHandle)
public static extern Status Status(SurfaceHandle handle)
Parameters
handle
SurfaceHandle