Renderer

open class Renderer(pointer: <Error class: unknown class><<Error class: unknown class>>)

PangoRenderer is a base class for objects that can render text provided as PangoGlyphString or PangoLayout.

By subclassing PangoRenderer and overriding operations such as

Since

1.8

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val pangoRendererPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun activate()

Does initial setup before rendering operations on @renderer.

Link copied to clipboard
open fun deactivate()

Cleans up after rendering operations on @renderer.

Link copied to clipboard
open fun drawErrorUnderline(x: <Error class: unknown class>, y: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>)

Draw a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.

Link copied to clipboard
open fun drawGlyph(font: Font, glyph: <Error class: unknown class>, x: <Error class: unknown class>, y: <Error class: unknown class>)

Draws a single glyph with coordinates in device space.

Link copied to clipboard
open fun drawGlyphItem(text: String? = null, glyphItem: GlyphItem, x: <Error class: unknown class>, y: <Error class: unknown class>)

Draws the glyphs in @glyph_item with the specified PangoRenderer, embedding the text associated with the glyphs in the output if the output format supports it.

Link copied to clipboard
open fun drawGlyphs(font: Font, glyphs: GlyphString, x: <Error class: unknown class>, y: <Error class: unknown class>)

Draws the glyphs in @glyphs with the specified PangoRenderer.

Link copied to clipboard
open fun drawLayout(layout: Layout, x: <Error class: unknown class>, y: <Error class: unknown class>)

Draws @layout with the specified PangoRenderer.

Link copied to clipboard
open fun drawLayoutLine(line: LayoutLine, x: <Error class: unknown class>, y: <Error class: unknown class>)

Draws @line with the specified PangoRenderer.

Link copied to clipboard
open fun drawRectangle(part: RenderPart, x: <Error class: unknown class>, y: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>)

Draws an axis-aligned rectangle in user space coordinates with the specified PangoRenderer.

Link copied to clipboard
open fun drawTrapezoid(part: RenderPart, y1: <Error class: unknown class>, x11: <Error class: unknown class>, x21: <Error class: unknown class>, y2: <Error class: unknown class>, x12: <Error class: unknown class>, x22: <Error class: unknown class>)

Draws a trapezoid with the parallel sides aligned with the X axis using the given PangoRenderer; coordinates are in device space.

Link copied to clipboard
open fun getAlpha(part: RenderPart): <Error class: unknown class>

Gets the current alpha for the specified part.

Link copied to clipboard
open fun getColor(part: RenderPart): Color?

Gets the current rendering color for the specified part.

Link copied to clipboard
open fun getLayout(): Layout?

Gets the layout currently being rendered using @renderer.

Link copied to clipboard

Gets the layout line currently being rendered using @renderer.

Link copied to clipboard
open fun getMatrix(): Matrix?

Gets the transformation matrix that will be applied when rendering.

Link copied to clipboard
open fun partChanged(part: RenderPart)

Informs Pango that the way that the rendering is done for @part has changed.

Link copied to clipboard
open fun setAlpha(part: RenderPart, alpha: <Error class: unknown class>)

Sets the alpha for part of the rendering.

Link copied to clipboard
open fun setColor(part: RenderPart, color: Color? = null)

Sets the color for part of the rendering.

Link copied to clipboard
open fun setMatrix(matrix: Matrix? = null)

Sets the transformation matrix that will be applied when rendering.