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: Int, y: Int, width: Int, height: Int)

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 drawGlyphItem(text: String? = null, glyphItem: GlyphItem, x: Int, y: Int)

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: Int, y: Int)

Draws the glyphs in @glyphs with the specified PangoRenderer.

Link copied to clipboard
open fun drawLayout(layout: Layout, x: Int, y: Int)

Draws @layout with the specified PangoRenderer.

Link copied to clipboard
open fun drawLayoutLine(line: LayoutLine, x: Int, y: Int)

Draws @line with the specified PangoRenderer.

Link copied to clipboard
open fun drawRectangle(part: RenderPart, x: Int, y: Int, width: Int, height: Int)

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

Link copied to clipboard
open fun drawTrapezoid(part: RenderPart, y1: Double, x11: Double, x21: Double, y2: Double, x12: Double, x22: Double)

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.