PangoXft.Renderer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
The display being rendered to |
||
w/co |
The screen being rendered to |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
display |
r |
||
draw |
r |
||
parent_instance |
r |
||
screen |
r |
Class Details¶
- class PangoXft.Renderer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
PangoXftRenderer
is a subclass ofPangoRenderer
used for rendering with Pango’s Xft backend. It can be used directly, or it can be further subclassed to modify exactly how drawing of individual elements occurs.New in version 1.8.
- classmethod new(display, screen)[source]¶
- Parameters:
display (
xlib.Display
) – an X displayscreen (
int
) – the index of the screen for display to which rendering will be done
- Returns:
the newly created
PangoXftRenderer
- Return type:
Create a new
PangoXftRenderer
to allow rendering Pango objects with the Xft library.You must call
PangoXft.Renderer.set_draw
() before using the renderer.New in version 1.8.
- set_default_color(default_color)[source]¶
- Parameters:
default_color (
Pango.Color
) – the default foreground color
Sets the default foreground color for a XftRenderer.
New in version 1.8.
- set_draw(draw)[source]¶
-
Sets the
xft.Draw
object that the renderer is drawing to. The renderer must not be currently active.New in version 1.8.
- do_composite_glyphs(xft_font, glyphs, n_glyphs) virtual¶
- Parameters:
xft_font (
xft.Font
) –glyphs (
xft.GlyphSpec
) –n_glyphs (
int
) –
draw the specified glyphs using the current foreground color and other foreground attributes
- do_composite_trapezoids(part, trapezoids, n_trapezoids) virtual¶
- Parameters:
part (
Pango.RenderPart
) –trapezoids (
xlib.XTrapezoid
) –n_trapezoids (
int
) –
draw the specified trapezoids using the current color and other attributes for part
Property Details¶
- PangoXft.Renderer.props.display¶
- Name:
display
- Type:
- Default Value:
- Flags:
The display being rendered to
- PangoXft.Renderer.props.screen¶
- Name:
screen
- Type:
- Default Value:
0
- Flags:
The screen being rendered to