⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idirectfbfont_getstringextents.html

📁 DirectFB的使用手册 DirectFB——建立在framebuffer基础之上的图形加速引擎
💻 HTML
字号:
<HTML><STYLE>  <!--    A{textdecoration:none}  --></STYLE><STYLE type="text/css">  A:link, A:visited, A:active { text-decoration: none; }</STYLE><HEAD>  <TITLE>IDirectFBFont - GetStringExtents [DirectFB Reference Manual]</TITLE></HEAD><BODY bgcolor=#FFFFFF link=#0070FF vlink=#0070FF text=#404040><TABLE width=100% bgcolor=black border=0 cellspacing=1 cellpadding=3>  <TR><TD width=30%>    <A href="http://www.directfb.org"><IMG border=0 src="directfb.png"></A>  </TD><TD align=right>    &nbsp;&nbsp;    <A href="index.html"><FONT size=+3 color=white>Reference Manual - 0.9.25</FONT></A>  </TD></TR>  <TR><TD colspan=2 align=center bgcolor=#303030>    <TABLE border=0 cellspacing=0 cellpadding=0>      <TR><TD nowrap align=right width=50%>        <BIG><A href="IDirectFBFont.html"><FONT color=#DDDDDD>IDirectFBFont</FONT></A>&nbsp;</BIG>      </TD><TD nowrap align=left width=50%>        <BIG><FONT color=orange>&nbsp;GetStringExtents</FONT></BIG>      </TD></TR>    </TABLE>  </TD></TR></TABLE><P> Get the logical and real extents of the specified UTF-8 string as if it were drawn with this font.</P><P>  <TABLE border=0 cellspacing=0 cellpadding=2 bgcolor=#C0C0C0>    <TR><TD colspan=5><I><FONT color=black>GetStringExtents (</FONT></I></TD></TR>    <TR><TD width=50>&nbsp;</TD><TD valign=top>      <A href="IDirectFBFont.html">IDirectFBFont</A>    </TD><TD width=20>&nbsp;</TD><TD align=right>      <FONT color=black><B>*</B></FONT>    </TD><TD valign=top>      <FONT color=black><B>thiz,</B></FONT>    </TD></TR>    <TR><TD width=50>&nbsp;</TD><TD valign=top>      const char    </TD><TD width=20>&nbsp;</TD><TD align=right>      <FONT color=black><B>*</B></FONT>    </TD><TD valign=top>      <FONT color=black><B>text,</B></FONT>    </TD></TR>    <TR><TD width=50>&nbsp;</TD><TD valign=top>      int    </TD><TD width=20>&nbsp;</TD><TD align=right>      <FONT color=black><B></B></FONT>    </TD><TD valign=top>      <FONT color=black><B>bytes,</B></FONT>    </TD></TR>    <TR><TD width=50>&nbsp;</TD><TD valign=top>      <A href="types.html#DFBRectangle">DFBRectangle</A>    </TD><TD width=20>&nbsp;</TD><TD align=right>      <FONT color=black><B>*</B></FONT>    </TD><TD valign=top>      <FONT color=black><B>ret_logical_rect,</B></FONT>    </TD></TR>    <TR><TD width=50>&nbsp;</TD><TD valign=top>      <A href="types.html#DFBRectangle">DFBRectangle</A>    </TD><TD width=20>&nbsp;</TD><TD align=right>      <FONT color=black><B>*</B></FONT>    </TD><TD valign=top>      <FONT color=black><B>ret_ink_rect</B></FONT>    </TD></TR>    <TR><TD colspan=3><I><FONT color=black>);</FONT></I></TD></TR>  </TABLE></P><P> Bytes specifies the number of bytes to take from the string or -1 for the complete NULL-terminated string. </P><P> The logical rectangle describes the typographic extents and should be used to layout text. The ink rectangle describes the smallest rectangle containing all pixels that are touched when drawing the string. If you only need one of the rectangles, pass NULL for the other one. </P><P> The ink rectangle is guaranteed to be a valid rectangle with positive width and height, while the logical rectangle may have negative width indicating right-to-left layout. </P><P> The rectangle offsets are reported relative to the baseline and refer to the text being drawn using DSTF_LEFT.</P></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -