Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > e8cbfa9673da18966abee0a6d7051b87 > files > 110

glibmm2.4-doc-2.16.1-1mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>glibmm 2.4: Gio::Seekable Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
    <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
    <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
  <a class="qindex" href="../../../../gtkmm-2.4/docs/index.html">Main Page</a> &nbsp;
  <a href="../../../../gtkmm-2.4/docs/reference/html/group__Widgets.html">Widgets</a> &nbsp;
  <a class="qindex" href="namespaces.html">glibmm Namespaces</a> &nbsp;
  <a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a> &nbsp;
</center>
<hr width="100%"/>

<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="nav">
<a class="el" href="namespaceGio.html">Gio</a>::<a class="el" href="classGio_1_1Seekable.html">Seekable</a></div>
<h1>Gio::Seekable Class Reference<br>
<small>
[<a class="el" href="group__Streams.html">Stream Classes</a>]</small>
</h1><!-- doxytag: class="Gio::Seekable" --><!-- doxytag: inherits="Glib::Interface" -->Stream seeking interface.  
<a href="#_details">More...</a>
<p>
<div class="dynheader">
Inheritance diagram for Gio::Seekable:</div>
<div class="dynsection">
<p><center><img src="classGio_1_1Seekable__inherit__graph.png" border="0" usemap="#Gio_1_1Seekable__inherit__map" alt="Inheritance graph"></center>
<map name="Gio_1_1Seekable__inherit__map">
<area shape="rect" href="classGio_1_1FileInputStream.html" title="FileInputStream provides input streams that take their content from a file." alt="" coords="5,316,160,343"><area shape="rect" href="classGio_1_1FileOutputStream.html" title="FileOutputStream provides output streams that write their content to a file." alt="" coords="184,316,349,343"><area shape="rect" href="classGio_1_1MemoryInputStream.html" title="MemoryInputStream implements InputStream for arbitrary memory chunks." alt="" coords="373,316,560,343"><area shape="rect" href="classGlib_1_1Interface.html" title="Glib::Interface" alt="" coords="211,161,323,188"><area shape="rect" href="classGlib_1_1ObjectBase.html" title="Glib::ObjectBase is a common base class for Objects and Interfaces." alt="" coords="204,84,329,111"><area shape="rect" href="classsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="211,7,323,33"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classGio_1_1Seekable-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#9b3fcb7df7b3e63b737e5bc5c7e74271">~Seekable</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">GSeekable*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#96176a5c51102b9a2d02f4555f2e048f">gobj</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#96176a5c51102b9a2d02f4555f2e048f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GSeekable*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#c60caf803ddd50d08115da50ccb149dd">gobj</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Provides access to the underlying C GObject.  <a href="#c60caf803ddd50d08115da50ccb149dd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">goffset&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#3f270a74f487712bb0a89d86a8313987">tell</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Tells the current position within the stream.  <a href="#3f270a74f487712bb0a89d86a8313987"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#5dd0a134172ea72595a9c7b2072e0350">can_seek</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Tests if the stream supports the SeekableIface.  <a href="#5dd0a134172ea72595a9c7b2072e0350"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#a717d10e2322df67b488657add79c70b">seek</a> (goffset offset, <a class="el" href="group__glibmmEnums.html#ga3767731311bdba4ef42dc99215e5cda">Glib::SeekType</a> type, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp; cancellable)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Seeks in the stream by the given <em>offset</em>, modified by <em>type</em>.  <a href="#a717d10e2322df67b488657add79c70b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#3404742af5d7855f6017578091f432cc">seek</a> (goffset offset, <a class="el" href="group__glibmmEnums.html#ga3767731311bdba4ef42dc99215e5cda">Glib::SeekType</a> type)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Seeks in the stream by the given <em>offset</em>, modified by <em>type</em> .  <a href="#3404742af5d7855f6017578091f432cc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#961a029a8498e9223ed9c136cfe14597">can_truncate</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Tests if the stream can be truncated.  <a href="#961a029a8498e9223ed9c136cfe14597"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#af0792e6281670ea411cd7c3ef981998">truncate</a> (goffset offset, const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp; cancellable)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Truncates a stream with a given offset.  <a href="#af0792e6281670ea411cd7c3ef981998"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#4458c08f1486ce89f8a7f9b49f10eb13">truncate</a> (goffset offset)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Truncates a stream with a given offset.  <a href="#4458c08f1486ce89f8a7f9b49f10eb13"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#e8a94d31313527ff431cf49ba5af2bd8">add_interface</a> (GType gtype_implementer)</td></tr>

<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a><br>
&lt;<a class="el" href="classGio_1_1Seekable.html">Gio::Seekable</a>&gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGio_1_1Seekable.html#0756ddeb91dc62f76d8a380716ecd228">wrap</a> (GSeekable* object, bool take_copy=false)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#0756ddeb91dc62f76d8a380716ecd228"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Stream seeking interface. 
<p>
<a class="el" href="classGio_1_1Seekable.html" title="Stream seeking interface.">Seekable</a> is implemented by streams (implementations of <a class="el" href="classGio_1_1InputStream.html" title="Base class for implementing streaming input.">InputStream</a> or <a class="el" href="classGio_1_1OutputStream.html" title="Base class for implementing streaming output.">OutputStream</a>) that support seeking. To find the position of a stream, use <a class="el" href="classGio_1_1Seekable.html#3f270a74f487712bb0a89d86a8313987" title="Tells the current position within the stream.">tell()</a>. To find out if a stream supports seeking, use <a class="el" href="classGio_1_1Seekable.html#5dd0a134172ea72595a9c7b2072e0350" title="Tests if the stream supports the SeekableIface.">can_seek()</a>. To position a stream, use <a class="el" href="classGio_1_1Seekable.html#a717d10e2322df67b488657add79c70b" title="Seeks in the stream by the given offset, modified by type.">seek()</a>. To find out if a stream supports truncating, use <a class="el" href="classGio_1_1Seekable.html#961a029a8498e9223ed9c136cfe14597" title="Tests if the stream can be truncated.">can_truncate()</a>. To truncate a stream, use <a class="el" href="classGio_1_1Seekable.html#af0792e6281670ea411cd7c3ef981998" title="Truncates a stream with a given offset.">truncate()</a>.<p>
<dl compact><dt><b><a class="el" href="newin2p16s.html#_newin2p16s000041">Since glibmm 2.16:</a></b></dt><dd></dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="9b3fcb7df7b3e63b737e5bc5c7e74271"></a><!-- doxytag: member="Gio::Seekable::~Seekable" ref="9b3fcb7df7b3e63b737e5bc5c7e74271" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gio::Seekable::~Seekable           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e8a94d31313527ff431cf49ba5af2bd8"></a><!-- doxytag: member="Gio::Seekable::add_interface" ref="e8a94d31313527ff431cf49ba5af2bd8" args="(GType gtype_implementer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void Gio::Seekable::add_interface           </td>
          <td>(</td>
          <td class="paramtype">GType&nbsp;</td>
          <td class="paramname"> <em>gtype_implementer</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="96176a5c51102b9a2d02f4555f2e048f"></a><!-- doxytag: member="Gio::Seekable::gobj" ref="96176a5c51102b9a2d02f4555f2e048f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GSeekable* Gio::Seekable::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>Reimplemented from <a class="el" href="classGlib_1_1Interface.html#969e9396f75132a9577428f4fa932d42">Glib::Interface</a>.</p>

<p>Reimplemented in <a class="el" href="classGio_1_1FileInputStream.html#5411e06810e06ad339d7a21257772219">Gio::FileInputStream</a>, <a class="el" href="classGio_1_1FileOutputStream.html#a69b1c94c5a3a2e0002fc6cf5127fc70">Gio::FileOutputStream</a>, and <a class="el" href="classGio_1_1MemoryInputStream.html#076380153e01599446bd991e0985db69">Gio::MemoryInputStream</a>.</p>

</div>
</div><p>
<a class="anchor" name="c60caf803ddd50d08115da50ccb149dd"></a><!-- doxytag: member="Gio::Seekable::gobj" ref="c60caf803ddd50d08115da50ccb149dd" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GSeekable* Gio::Seekable::gobj           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Provides access to the underlying C GObject. 
<p>

<p>Reimplemented from <a class="el" href="classGlib_1_1Interface.html#70a443071a69d3372c2cdd7128a91ed1">Glib::Interface</a>.</p>

<p>Reimplemented in <a class="el" href="classGio_1_1FileInputStream.html#b1afea7b758100ca02a6aa5b89d57662">Gio::FileInputStream</a>, <a class="el" href="classGio_1_1FileOutputStream.html#2bf847a5064b01e671731ecd56f88968">Gio::FileOutputStream</a>, and <a class="el" href="classGio_1_1MemoryInputStream.html#f9ea44af840fc0d29d460498c8ce7d0e">Gio::MemoryInputStream</a>.</p>

</div>
</div><p>
<a class="anchor" name="3f270a74f487712bb0a89d86a8313987"></a><!-- doxytag: member="Gio::Seekable::tell" ref="3f270a74f487712bb0a89d86a8313987" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">goffset Gio::Seekable::tell           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tells the current position within the stream. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The offset from the beginning of the buffer. </dd></dl>

</div>
</div><p>
<a class="anchor" name="5dd0a134172ea72595a9c7b2072e0350"></a><!-- doxytag: member="Gio::Seekable::can_seek" ref="5dd0a134172ea72595a9c7b2072e0350" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gio::Seekable::can_seek           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the stream supports the SeekableIface. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if <em>seekable</em> can be seeked. <code>false</code> otherwise. </dd></dl>

</div>
</div><p>
<a class="anchor" name="a717d10e2322df67b488657add79c70b"></a><!-- doxytag: member="Gio::Seekable::seek" ref="a717d10e2322df67b488657add79c70b" args="(goffset offset, Glib::SeekType type, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gio::Seekable::seek           </td>
          <td>(</td>
          <td class="paramtype">goffset&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__glibmmEnums.html#ga3767731311bdba4ef42dc99215e5cda">Glib::SeekType</a>&nbsp;</td>
          <td class="paramname"> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
          <td class="paramname"> <em>cancellable</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Seeks in the stream by the given <em>offset</em>, modified by <em>type</em>. 
<p>
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>A goffset. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>A SeekType. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if successful. If an error has occurred, this function will return <code>false</code> and set <em>error</em> appropriately if present. </dd></dl>

</div>
</div><p>
<a class="anchor" name="3404742af5d7855f6017578091f432cc"></a><!-- doxytag: member="Gio::Seekable::seek" ref="3404742af5d7855f6017578091f432cc" args="(goffset offset, Glib::SeekType type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gio::Seekable::seek           </td>
          <td>(</td>
          <td class="paramtype">goffset&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__glibmmEnums.html#ga3767731311bdba4ef42dc99215e5cda">Glib::SeekType</a>&nbsp;</td>
          <td class="paramname"> <em>type</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Seeks in the stream by the given <em>offset</em>, modified by <em>type</em> . 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>A goffset. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>A <a class="el" href="group__glibmmEnums.html#ga3767731311bdba4ef42dc99215e5cda">Glib::SeekType</a>. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if successful. If an error has occurred, this function will return <code>false</code>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="961a029a8498e9223ed9c136cfe14597"></a><!-- doxytag: member="Gio::Seekable::can_truncate" ref="961a029a8498e9223ed9c136cfe14597" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gio::Seekable::can_truncate           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Tests if the stream can be truncated. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if the stream can be truncated, <code>false</code> otherwise. </dd></dl>

</div>
</div><p>
<a class="anchor" name="af0792e6281670ea411cd7c3ef981998"></a><!-- doxytag: member="Gio::Seekable::truncate" ref="af0792e6281670ea411cd7c3ef981998" args="(goffset offset, const Glib::RefPtr&lt; Cancellable &gt; &amp;cancellable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gio::Seekable::truncate           </td>
          <td>(</td>
          <td class="paramtype">goffset&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Cancellable.html">Cancellable</a>&gt;&amp;&nbsp;</td>
          <td class="paramname"> <em>cancellable</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Truncates a stream with a given offset. 
<p>
The operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, a <a class="el" href="classGio_1_1Error.html" title="Exception class for giomm errors.">Gio::Error</a> will be thrown with CANCELLED. If an operation was partially finished when the operation was cancelled the partial result will be returned, without an error. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>A goffset. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cancellable</em>&nbsp;</td><td><a class="el" href="classGio_1_1Cancellable.html" title="Allows actions to be cancelled.">Cancellable</a> object. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if successful. If an error has occurred, this function will return <code>false</code> and set <em>error</em> appropriately if present. </dd></dl>

</div>
</div><p>
<a class="anchor" name="4458c08f1486ce89f8a7f9b49f10eb13"></a><!-- doxytag: member="Gio::Seekable::truncate" ref="4458c08f1486ce89f8a7f9b49f10eb13" args="(goffset offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Gio::Seekable::truncate           </td>
          <td>(</td>
          <td class="paramtype">goffset&nbsp;</td>
          <td class="paramname"> <em>offset</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Truncates a stream with a given offset. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>offset</em>&nbsp;</td><td>A goffset. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><code>true</code> if successful. If an error has occured, this function will return <code>false</code>. </dd></dl>

</div>
</div><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="0756ddeb91dc62f76d8a380716ecd228"></a><!-- doxytag: member="Gio::Seekable::wrap" ref="0756ddeb91dc62f76d8a380716ecd228" args="(GSeekable *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGio_1_1Seekable.html">Gio::Seekable</a>&gt; wrap           </td>
          <td>(</td>
          <td class="paramtype">GSeekable *&nbsp;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
A <a class="el" href="namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&nbsp;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&nbsp;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="seekable_8h.html">seekable.h</a></ul>
</div> <!-- end main content -->

<hr><address><small>
Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.3 &copy;&nbsp;1997-2001</small></address>
</body>
</html>