Ardour  9.0-pre0-582-g084a23a80d
_GdkPangoRenderer Struct Reference

#include <gdkpango.h>

Public Attributes

PangoRenderer parent_instance
 
GdkPangoRendererPrivatepriv
 

Detailed Description

GdkPangoRenderer:

GdkPangoRenderer is a subclass of PangoRenderer used for rendering Pango objects into GDK drawables. The default renderer for a particular screen is obtained with gdk_pango_renderer_get_default(); Pango functions like pango_renderer_draw_layout() and pango_renderer_draw_layout_line() are then used to draw objects with the renderer.

In most simple cases, applications can just use gdk_draw_layout(), and don't need to directly use GdkPangoRenderer at all. Using the GdkPangoRenderer directly is most useful when working with a transformation such as a rotation, because the Pango drawing functions take user space coordinates (coordinates before the transformation) instead of device coordinates.

In certain cases it can be useful to subclass GdkPangoRenderer. Examples of reasons to do this are to add handling of custom attributes by overriding 'prepare_run' or to do custom drawing of embedded objects by overriding 'draw_shape'.

Since: 2.6

Definition at line 68 of file gdkpango.h.

Member Data Documentation

◆ parent_instance

PangoRenderer _GdkPangoRenderer::parent_instance

Definition at line 71 of file gdkpango.h.

◆ priv

GdkPangoRendererPrivate* _GdkPangoRenderer::priv

Definition at line 73 of file gdkpango.h.


The documentation for this struct was generated from the following file: