<?xml version="1.0"?>
<page id="GimpUi.Preview-draw_buffer"
      type="topic"
      style="vfunc"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="GimpUi.Preview" group="vfunc" type="guide"/>
  </info>
  <title>GimpUi.Preview::draw_buffer</title>
  <synopsis><code mime="text/x-python">
@accepts(GimpUi.Preview, [guint8], int)
@returns(none)
def do_draw_buffer(preview, buffer, rowstride):
  </code></synopsis>
  <p>Calls the GimpPreview::draw_buffer method. GimpPreview itself
doesn't implement this method so the behavior is determined by the
derived class implementing this method.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>preview</code></title>
  <p>a <link xref="GimpUi.Preview"/> widget</p>
</item>
<item>
<title><code>buffer</code></title>
  <p>a pixel buffer the size of the preview</p>
</item>
<item>
<title><code>rowstride</code></title>
  <p>the <code>buffer</code>'s rowstride</p>
</item>
</terms>

</page>
