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
constructArgumentsConstructArgument[]
Renderer(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Renderer(CreationData data)
Parameters
dataCreationData
Renderer(RendererHandle)
protected Renderer(RendererHandle handle)
Parameters
handleRendererHandle
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
DrawGlyph(Font, Glyph, double, double)
[Version("1.8")]
public void DrawGlyph(Font font, Glyph glyph, double x, double y)
Parameters
DrawGlyphItem(string?, GlyphItem, int, int)
[Version("1.22")]
public void DrawGlyphItem(string? text, GlyphItem glyphItem, int x, int y)
Parameters
DrawGlyphs(Font, GlyphString, int, int)
[Version("1.8")]
public void DrawGlyphs(Font font, GlyphString glyphs, int x, int y)
Parameters
fontFontglyphsGlyphStringxintyint
DrawLayout(Layout, int, int)
[Version("1.8")]
public void DrawLayout(Layout layout, int x, int y)
Parameters
DrawLayoutLine(LayoutLine, int, int)
[Version("1.8")]
public void DrawLayoutLine(LayoutLine line, int x, int y)
Parameters
lineLayoutLinexintyint
DrawRectangle(RenderPart, int, int, int, int)
[Version("1.8")]
public void DrawRectangle(RenderPart part, int x, int y, int width, int height)
Parameters
partRenderPartxintyintwidthintheightint
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
GetAlpha(RenderPart)
[Version("1.38")]
public ushort GetAlpha(RenderPart part)
Parameters
partRenderPart
Returns
GetColor(RenderPart)
[Version("1.8")]
public Color? GetColor(RenderPart part)
Parameters
partRenderPart
Returns
GetGType()
public static Type GetGType()
Returns
GetLayout()
[Version("1.20")]
public Layout? GetLayout()
Returns
GetLayoutLine()
[Version("1.20")]
public LayoutLine? GetLayoutLine()
Returns
GetMatrix()
[Version("1.8")]
public Matrix? GetMatrix()
Returns
NewFromPointer(nint, bool)
Creates a new managed Renderer instance for a given pointer.
public static Renderer NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Renderer and sets the properties specified by the construct arguments.
public static Renderer NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PartChanged(RenderPart)
[Version("1.8")]
public void PartChanged(RenderPart part)
Parameters
partRenderPart
SetAlpha(RenderPart, ushort)
[Version("1.38")]
public void SetAlpha(RenderPart part, ushort alpha)
Parameters
partRenderPartalphaushort
SetColor(RenderPart, Color?)
[Version("1.8")]
public void SetColor(RenderPart part, Color? color)
Parameters
partRenderPartcolorColor
SetMatrix(Matrix?)
[Version("1.8")]
public void SetMatrix(Matrix? matrix)
Parameters
matrixMatrix