oops tabs

This commit is contained in:
John Cupitt 2014-11-03 12:03:33 +00:00
parent bbf49be063
commit f1a3b866f7

View File

@ -287,23 +287,23 @@ main( int argc, char **argv )
<title>Extending the C++ interface</title> <title>Extending the C++ interface</title>
<para> <para>
The C++ interface comes in two parts. First, VImage8.h defines a simple The C++ interface comes in two parts. First, VImage8.h defines a simple
layer over #GObject for automatic reference counting, then a generic way layer over #GObject for automatic reference counting, then a generic way
to call any vips8 operation with VImage::call(), then a few convenience to call any vips8 operation with VImage::call(), then a few convenience
functions, then a set of overloads. functions, then a set of overloads.
</para> </para>
<para> <para>
The member function for each operation, for example VImage::add(), is The member function for each operation, for example VImage::add(), is
generated by a small Python program called <code>gen-operators.py</code>, generated by a small Python program called <code>gen-operators.py</code>,
and its companion, <code>gen-operators-h.py</code> to generate the and its companion, <code>gen-operators-h.py</code> to generate the
headers. If you write a new VIPS operator, you'll need to rerun these headers. If you write a new VIPS operator, you'll need to rerun these
programs to make the new member function. programs to make the new member function.
</para> </para>
<para> <para>
You can write the wrapper yourself, of course, they are very simple. You can write the wrapper yourself, of course, they are very simple.
The one for VImage::add() looks like this: The one for VImage::add() looks like this:
<programlisting language="C++"> <programlisting language="C++">
VImage VImage::add(VImage right, VOption *options) VImage VImage::add(VImage right, VOption *options)
@ -317,11 +317,11 @@ VImage VImage::add(VImage right, VOption *options)
set("left", *this) -> set("left", *this) ->
set("right", right)); set("right", right));
return out; return out;
} }
</programlisting> </programlisting>
Where VImage::call() is the generic call-a-vips8-operation function. Where VImage::call() is the generic call-a-vips8-operation function.
</para> </para>
</refsect1> </refsect1>
</refentry> </refentry>