<!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>_wmfStream struct Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.18 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> <hr><h1>_wmfStream Struct Reference</h1><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Data Fields</h2></td></tr> <tr><td nowrap align=right valign=top>void * </td><td valign=bottom><a class="el" href="struct__wmfStream.html#m0">context</a></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="types_8h.html#a11">wmfSPutS</a> </td><td valign=bottom><a class="el" href="struct__wmfStream.html#m1">sputs</a></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="types_8h.html#a12">wmfReset</a> </td><td valign=bottom><a class="el" href="struct__wmfStream.html#m2">reset</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Structure describing user-definable character-based output stream. <p> <b><a class="el" href="api_8h.html#a37">wmf_stream_create()</a></b> and <b><a class="el" href="api_8h.html#a36">wmf_ztream_create()</a></b> both return pointers to <b><a class="el" href="types_8h.html#a23">wmfStream</a></b> objects, but an application can create its own implementation if preferred. <p> <div class="fragment"><pre> typedef int (*wmfSPutS) (char* str,void* context); typedef int (*wmfReset) (void* context); </pre></div> <p> <b><a class="el" href="types_8h.html#a11">wmfSPutS</a></b>: writes string <code>str</code>; returns EOF on error, else 0. <p> <b><a class="el" href="types_8h.html#a12">wmfReset</a></b>: resets stream to start; returns non-zero on failure. <p> <code><a class="el" href="struct__wmfStream.html#m0">context</a></code> is a handle for user data <p> <hr><h2>Field Documentation</h2> <a name="m0" doxytag="_wmfStream::context"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void* _wmfStream::context </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="m2" doxytag="_wmfStream::reset"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="types_8h.html#a12">wmfReset</a> _wmfStream::reset </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="m1" doxytag="_wmfStream::sputs"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="types_8h.html#a11">wmfSPutS</a> _wmfStream::sputs </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this struct was generated from the following file:<ul> <li><a class="el" href="types_8h.html">types.h</a></ul> <hr><address style="align: right;"><small>Generated on Tue Dec 10 19:53:54 2002 for libwmf by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address> </body> </html>