Skip to content

Commit

Permalink
Pango example: This pointer doesn’t need to be cast at all.
Browse files Browse the repository at this point in the history
This comment might be from an earlier version of the example program.
  • Loading branch information
SimonSapin committed Dec 16, 2014
1 parent fab9601 commit fcf9a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/cffi_api.rst
Expand Up @@ -132,8 +132,8 @@ Example: using Pango through CFFI with cairocffi

The program below shows a fairly standard usage of CFFI
to access Pango’s C API.
The :attr:`Context._pointer` pointer needs to be cast
in order to be recognized by the new :obj:`~pango_example.ffi` object.
The :attr:`Context._pointer` pointer can be used directly as an argument
to CFFI functions that expect ``cairo_t *``.
The C definitions are copied from `Pango’s`_ and `GLib’s`_ documentation.

.. _Pango’s: http://developer.gnome.org/pango/stable/
Expand Down

0 comments on commit fcf9a4b

Please sign in to comment.