Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pangoCairoCreateLayout

pangoCairoCreateLayout


Description

Creates a layout object set up to match the current transformation and target surface of the Cairo context. This layout can then be used for text measurement with functions like pangoLayoutGetSize or drawing with functions like pangoCairoShowLayout. If you change the transformation or target surface for cr, you need to call pangoCairoUpdateLayout

Usage

pangoCairoCreateLayout(cr)

Arguments

cr

[Cairo] a Cairo context

Details

This function is the most convenient way to use Cairo with Pango, however it is slightly inefficient since it creates a separate PangoContext object for each layout. This might matter in an application that was laying out large amounts of text. Since 1.10

Value

[PangoLayout] the newly created PangoLayout.

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.