Renderer

Added in version 1.8.

class Renderer(**properties: Any)

Superclasses: Renderer, Object

Constructors:

Renderer(**properties)
new(display:xlib.Display, screen:int) -> Pango.Renderer

Constructors

class Renderer
classmethod new(display: Display, screen: int) Renderer

Create a new PangoXftRenderer to allow rendering Pango objects with the Xft library.

You must call set_draw() before using the renderer.

Added in version 1.8.

Parameters:
  • display – an X display

  • screen – the index of the screen for display to which rendering will be done

Methods

class Renderer
set_default_color(default_color: Color) None

Sets the default foreground color for a XftRenderer.

Added in version 1.8.

Parameters:

default_color – the default foreground color

set_draw(draw: Draw) None

Sets the XftDraw object that the renderer is drawing to. The renderer must not be currently active.

Added in version 1.8.

Parameters:

draw – a XftDraw

Properties

class Renderer
props.display: None
props.screen: int

Virtual Methods

class Renderer
do_composite_glyphs(xft_font: Font, glyphs: GlyphSpec, n_glyphs: int) None

draw the specified glyphs using the current foreground color and other foreground attributes

Parameters:
  • xft_font

  • glyphs

  • n_glyphs

do_composite_trapezoids(part: RenderPart, trapezoids: XTrapezoid, n_trapezoids: int) None

draw the specified trapezoids using the current color and other attributes for part

Parameters:
  • part

  • trapezoids

  • n_trapezoids

Fields

class Renderer
display
draw
parent_instance
priv
screen