group__nanox__font.html
来自「Nano-x的设计架及相关文档----这是网上下载的中文翻译版本, E文的可以在」· HTML 代码 · 共 633 行 · 第 1/2 页
HTML
633 行
</tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Calculates the dimensions of a specified text string.<p>Uses the current font and flags in the specified graphics context. The count argument can be -1 if the string is null terminated.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>gc</em> </td><td>The graphics context. </td></tr> <tr><td valign=top><em>str</em> </td><td>Pointer to a text string. </td></tr> <tr><td valign=top><em>count</em> </td><td>The length of the string. </td></tr> <tr><td valign=top><em>flags</em> </td><td>Text rendering flags. (GR_TF*). </td></tr> <tr><td valign=top><em>retwidth</em> </td><td>Pointer to the variable the width will be returned in. </td></tr> <tr><td valign=top><em>retheight</em> </td><td>Pointer to the variable the height will be returned in. </td></tr> <tr><td valign=top><em>retbase</em> </td><td>Pointer to the variable the baseline height will be returned in. </td></tr> </table></dl> </td> </tr></table><a name="a7" doxytag="nano-X.h::GrSetFontAttr"></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 GrSetFontAttr </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_FONT_ID </td> <td class="mdname" nowrap> <em>fontid</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>setflags</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>clrflags</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Changes the attributes (GR_TFKERNING, GR_TFANTIALIAS, GR_TFUNDERLINE, etc.) of the specified font according to the set and clear mask arguments.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>fontid</em> </td><td>the ID of the font to set the attributes of </td></tr> <tr><td valign=top><em>setflags</em> </td><td>mask specifying attribute flags to set </td></tr> <tr><td valign=top><em>clrflags</em> </td><td>mask specifying attribute flags to clear </td></tr> </table></dl> </td> </tr></table><a name="a6" doxytag="nano-X.h::GrSetFontRotation"></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 GrSetFontRotation </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_FONT_ID </td> <td class="mdname" nowrap> <em>fontid</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>tenthdegrees</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Changes the rotation of the specified font to the specified angle.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>fontid</em> </td><td>the ID number of the font to rotate </td></tr> <tr><td valign=top><em>tenthdegrees</em> </td><td>the angle to set the rotation to in tenths of a degree </td></tr> </table></dl> </td> </tr></table><a name="a5" doxytag="nano-X.h::GrSetFontSize"></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 GrSetFontSize </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_FONT_ID </td> <td class="mdname" nowrap> <em>fontid</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>size</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Changes the size of the specified font to the specified size.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>fontid</em> </td><td>the ID number of the font to change the size of </td></tr> <tr><td valign=top><em>size</em> </td><td>the size to change the font to </td></tr> </table></dl> </td> </tr></table><a name="a9" doxytag="nano-X.h::GrSetGCFont"></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 GrSetGCFont </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_FONT_ID </td> <td class="mdname" nowrap> <em>font</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Sets the font to be used for text drawing in the specified graphics context to the specified font ID.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to set the font of </td></tr> <tr><td valign=top><em>font</em> </td><td>the ID of the font </td></tr> </table></dl> </td> </tr></table><a name="a10" doxytag="nano-X.h::GrText"></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 GrText </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">GR_DRAW_ID </td> <td class="mdname" nowrap> <em>id</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_GC_ID </td> <td class="mdname" nowrap> <em>gc</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>x</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COORD </td> <td class="mdname" nowrap> <em>y</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>str</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_COUNT </td> <td class="mdname" nowrap> <em>count</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>GR_TEXTFLAGS </td> <td class="mdname" nowrap> <em>flags</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Draws the specified text string at the specified position on the specified drawable using the specified graphics context and flags.<p>The default flags specify ASCII encoding and baseline alignment.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>id</em> </td><td>the ID of the drawable to draw the text string onto </td></tr> <tr><td valign=top><em>gc</em> </td><td>the ID of the graphics context to use when drawing the text string </td></tr> <tr><td valign=top><em>x</em> </td><td>the X coordinate to draw the string at relative to the drawable </td></tr> <tr><td valign=top><em>y</em> </td><td>the Y coordinate to draw the string at relative to the drawable </td></tr> <tr><td valign=top><em>str</em> </td><td>the text string to draw </td></tr> <tr><td valign=top><em>count</em> </td><td>the number of characters (not bytes) in the string </td></tr> <tr><td valign=top><em>flags</em> </td><td>flags specifying text encoding, alignment, etc. </td></tr> </table></dl> </td> </tr></table><hr><address style="align: right;"><small>Generated on Sun May 18 21:03:07 2003 for Microwindows Nano-X API 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.3 </small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?