Table of Contents

Class Renderer

Namespace
Pango
Assembly
Pango-1.0.dll
public class Renderer : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
Renderer
Implements
Inherited Members

Constructors

Renderer(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Renderer(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Renderer(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Renderer(CreationData data)

Parameters

data CreationData

Renderer(RendererHandle)

protected Renderer(RendererHandle handle)

Parameters

handle RendererHandle

Methods

Activate()

[Version("1.8")]
public void Activate()

Deactivate()

[Version("1.8")]
public void Deactivate()

DrawErrorUnderline(int, int, int, int)

[Version("1.8")]
public void DrawErrorUnderline(int x, int y, int width, int height)

Parameters

x int
y int
width int
height int

DrawGlyph(Font, Glyph, double, double)

[Version("1.8")]
public void DrawGlyph(Font font, Glyph glyph, double x, double y)

Parameters

font Font
glyph Glyph
x double
y double

DrawGlyphItem(string?, GlyphItem, int, int)

[Version("1.22")]
public void DrawGlyphItem(string? text, GlyphItem glyphItem, int x, int y)

Parameters

text string
glyphItem GlyphItem
x int
y int

DrawGlyphs(Font, GlyphString, int, int)

[Version("1.8")]
public void DrawGlyphs(Font font, GlyphString glyphs, int x, int y)

Parameters

font Font
glyphs GlyphString
x int
y int

DrawLayout(Layout, int, int)

[Version("1.8")]
public void DrawLayout(Layout layout, int x, int y)

Parameters

layout Layout
x int
y int

DrawLayoutLine(LayoutLine, int, int)

[Version("1.8")]
public void DrawLayoutLine(LayoutLine line, int x, int y)

Parameters

line LayoutLine
x int
y int

DrawRectangle(RenderPart, int, int, int, int)

[Version("1.8")]
public void DrawRectangle(RenderPart part, int x, int y, int width, int height)

Parameters

part RenderPart
x int
y int
width int
height int

DrawTrapezoid(RenderPart, double, double, double, double, double, double)

[Version("1.8")]
public void DrawTrapezoid(RenderPart part, double y1, double x11, double x21, double y2, double x12, double x22)

Parameters

part RenderPart
y1 double
x11 double
x21 double
y2 double
x12 double
x22 double

GetAlpha(RenderPart)

[Version("1.38")]
public ushort GetAlpha(RenderPart part)

Parameters

part RenderPart

Returns

ushort

GetColor(RenderPart)

[Version("1.8")]
public Color? GetColor(RenderPart part)

Parameters

part RenderPart

Returns

Color

GetGType()

public static Type GetGType()

Returns

Type

GetLayout()

[Version("1.20")]
public Layout? GetLayout()

Returns

Layout

GetLayoutLine()

[Version("1.20")]
public LayoutLine? GetLayoutLine()

Returns

LayoutLine

GetMatrix()

[Version("1.8")]
public Matrix? GetMatrix()

Returns

Matrix

NewFromPointer(nint, bool)

Creates a new managed Renderer instance for a given pointer.

public static Renderer NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Renderer

NewWithProperties(ConstructArgument[])

Creates a new Renderer and sets the properties specified by the construct arguments.

public static Renderer NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Renderer

PartChanged(RenderPart)

[Version("1.8")]
public void PartChanged(RenderPart part)

Parameters

part RenderPart

SetAlpha(RenderPart, ushort)

[Version("1.38")]
public void SetAlpha(RenderPart part, ushort alpha)

Parameters

part RenderPart
alpha ushort

SetColor(RenderPart, Color?)

[Version("1.8")]
public void SetColor(RenderPart part, Color? color)

Parameters

part RenderPart
color Color

SetMatrix(Matrix?)

[Version("1.8")]
public void SetMatrix(Matrix? matrix)

Parameters

matrix Matrix