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

📄 gdk-pango-interaction.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</tr><tr><td><p><span class="term"><a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkBitmap">GdkBitmap</a>&#160;*<em class="structfield"><code>stipple</code></em>;</span></p></td><td>the stipple bitmap.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3296233"></a><h3><a name="gdk-pango-attr-emboss-color-new"></a>gdk_pango_attr_emboss_color_new ()</h3><a class="indexterm" name="id3296249"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     gdk_pango_attr_emboss_color_new     (const <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *color);</pre><p>Creates a new attribute specifying the color to emboss text with.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></p></td><td> a GdkColor representing the color to emboss with</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> new <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a></td></tr></tbody></table></div><p class="since">Since  2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3296326"></a><h3><a name="gdk-pango-attr-embossed-new"></a>gdk_pango_attr_embossed_new ()</h3><a class="indexterm" name="id3296340"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     gdk_pango_attr_embossed_new         (<ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> embossed);</pre><p>Creates a new attribute flagging a region as embossed or not.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>embossed</code></em>&#160;:</span></p></td><td> if the region should be embossed</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> new <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3296410"></a><h3><a name="gdk-pango-attr-stipple-new"></a>gdk_pango_attr_stipple_new ()</h3><a class="indexterm" name="id3296424"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>*     gdk_pango_attr_stipple_new          (<a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkBitmap">GdkBitmap</a> *stipple);</pre><p>Creates a new attribute containing a stipple bitmap to be used whenrendering the text.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>stipple</code></em>&#160;:</span></p></td><td> a bitmap to be set as stipple</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> new <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3296494"></a><h3><a name="gdk-pango-layout-get-clip-region"></a>gdk_pango_layout_get_clip_region ()</h3><a class="indexterm" name="id3296508"></a><pre class="programlisting"><a class="link" href="gdk-Points-Rectangles-and-Regions.html#GdkRegion">GdkRegion</a>*          gdk_pango_layout_get_clip_region    (<ahref="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout">PangoLayout</a> *layout,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> x_origin,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> y_origin,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *index_ranges,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> n_ranges);</pre><p>Obtains a clip region which contains the areas where the given rangesof text would be drawn. <em class="parameter"><code>x_origin</code></em> and <em class="parameter"><code>y_origin</code></em> are the same positionyou would pass to <a class="link" href="gdk-Drawing-Primitives.html#gdk-draw-layout-line"><code class="function">gdk_draw_layout_line()</code></a>. <em class="parameter"><code>index_ranges</code></em> should containranges of bytes in the layout's text.</p><p>Note that the regions returned correspond to logical extents of the textranges, not ink extents. So the drawn layout may in fact touch areas out ofthe clip region.  The clip region is mainly useful for highlightling partsof text, such as when text is selected.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>layout</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>x_origin</code></em>&#160;:</span></p></td><td> X pixel where you intend to draw the layout with this clip</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y_origin</code></em>&#160;:</span></p></td><td> Y pixel where you intend to draw the layout with this clip</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index_ranges</code></em>&#160;:</span></p></td><td> array of byte indexes into the layout, where even members of array are start indexes and odd elements are end indexes</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_ranges</code></em>&#160;:</span></p></td><td> number of ranges in <em class="parameter"><code>index_ranges</code></em>, i.e. half the size of <em class="parameter"><code>index_ranges</code></em></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a clip region containing the given ranges</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3296719"></a><h3><a name="gdk-pango-layout-line-get-clip-region"></a>gdk_pango_layout_line_get_clip_region ()</h3><a class="indexterm" name="id3296733"></a><pre class="programlisting"><a class="link" href="gdk-Points-Rectangles-and-Regions.html#GdkRegion">GdkRegion</a>*          gdk_pango_layout_line_get_clip_region                                                        (<ahref="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayoutLine">PangoLayoutLine</a> *line,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> x_origin,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> y_origin,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> *index_ranges,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> n_ranges);</pre><p>Obtains a clip region which contains the areas where the givenranges of text would be drawn. <em class="parameter"><code>x_origin</code></em> and <em class="parameter"><code>y_origin</code></em> are the sameposition you would pass to <a class="link" href="gdk-Drawing-Primitives.html#gdk-draw-layout-line"><code class="function">gdk_draw_layout_line()</code></a>. <em class="parameter"><code>index_ranges</code></em>should contain ranges of bytes in the layout's text. The clipregion will include space to the left or right of the line (to thelayout bounding box) if you have indexes above or below the indexescontained inside the line. This is to draw the selection all the wayto the side of the layout. However, the clip region is in line coordinates,not layout coordinates.</p><p>Note that the regions returned correspond to logical extents of the textranges, not ink extents. So the drawn line may in fact touch areas out ofthe clip region.  The clip region is mainly useful for highlightling partsof text, such as when text is selected.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>line</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> </td></tr><tr><td><p><span class="term"><em class="parameter"><code>x_origin</code></em>&#160;:</span></p></td><td> X pixel where you intend to draw the layout line with this clip</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y_origin</code></em>&#160;:</span></p></td><td> baseline pixel where you intend to draw the layout line with this clip</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index_ranges</code></em>&#160;:</span></p></td><td> array of byte indexes into the layout, where even members of array are start indexes and odd elements are end indexes</td></tr><tr><td><p><span class="term"><em class="parameter"><code>n_ranges</code></em>&#160;:</span></p></td><td> number of ranges in <em class="parameter"><code>index_ranges</code></em>, i.e. half the size of <em class="parameter"><code>index_ranges</code></em></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a clip region containing the given ranges</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3296952"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id3296963"></a><h3><a name="GdkPangoRenderer--screen"></a>The <code class="literal">"screen"</code> property</h3><a class="indexterm" name="id3296979"></a><pre class="programlisting">  "screen"                   <a class="link" href="GdkScreen.html" title="GdkScreen">GdkScreen</a>             : Read / Write / Construct Only</pre><p>the GdkScreen for the renderer.</p></div></div><div class="refsect1" lang="en"><a name="id3297004"></a><div class="refsect2" lang="en"><a name="id3297006"></a></div><hr><div class="refsect2" lang="en"><a name="id3297007"></a></div></div></div></body></html>

⌨️ 快捷键说明

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