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

📄 gdk-pango-interaction.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<a name="id3295422"></a><h3><a name="gdk-pango-renderer-set-override-color"></a>gdk_pango_renderer_set_override_color ()</h3><a class="indexterm" name="id3295439"></a><pre class="programlisting">void                gdk_pango_renderer_set_override_color                                                        (<a class="link" href="gdk-Pango-Interaction.html#GdkPangoRenderer">GdkPangoRenderer</a> *gdk_renderer,                                                         <ahref="/usr/share/gtk-doc/html/pango/PangoRenderer.html#PangoRenderPart">PangoRenderPart</a> part,                                                         const <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *color);</pre><p>Sets the color for a particular render part (foreground,background, underline, etc.), overriding any attributes on the layoutsrenderered with this renderer.</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>gdk_renderer</code></em>&#160;:</span></p></td><td> a <a class="link" href="gdk-Pango-Interaction.html#GdkPangoRenderer"><span class="type">GdkPangoRenderer</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>part</code></em>&#160;:</span></p></td><td> the part to render to set the color of</td></tr><tr><td><p><span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></p></td><td> the color to use, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to unset a previously        set override color.</td></tr></tbody></table></div><p class="since">Since  2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3295563"></a><h3><a name="gdk-pango-context-get"></a>gdk_pango_context_get ()</h3><a class="indexterm" name="id3295576"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext">PangoContext</a>*       gdk_pango_context_get               (void);</pre><p>Creates a <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the default GDK screen.</p><p>The context must be freed when you're finished with it.</p><p>When using GTK+, normally you should use <ahref="/usr/share/gtk-doc/html/gtk/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>instead of this function, to get the appropriate context forthe widget you intend to render text onto.</p><p>The newly created context will have the default font options (see<ahref="/usr/share/gtk-doc/html/cairo/cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>) for the default screen; if these optionschange it will not be updated. Using <ahref="/usr/share/gtk-doc/html/gtk/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>is more convenient if you want to keep a context around and trackchanges to the screen's font rendering settings.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for the default display</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3295683"></a><h3><a name="gdk-pango-context-get-for-screen"></a>gdk_pango_context_get_for_screen ()</h3><a class="indexterm" name="id3295699"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext">PangoContext</a>*       gdk_pango_context_get_for_screen    (<a class="link" href="GdkScreen.html" title="GdkScreen">GdkScreen</a> *screen);</pre><p>Creates a <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for <em class="parameter"><code>screen</code></em>.</p><p>The context must be freed when you're finished with it.</p><p>When using GTK+, normally you should use <ahref="/usr/share/gtk-doc/html/gtk/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>instead of this function, to get the appropriate context forthe widget you intend to render text onto.</p><p>The newly created context will have the default font options(see <ahref="/usr/share/gtk-doc/html/cairo/cairo-Font-Options.html#cairo-font-options-t"><span class="type">cairo_font_options_t</span></a>) for the screen; if these optionschange it will not be updated. Using <ahref="/usr/share/gtk-doc/html/gtk/GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>is more convenient if you want to keep a context around and trackchanges to the screen's font rendering settings.</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>screen</code></em>&#160;:</span></p></td><td> the <a class="link" href="GdkScreen.html" title="GdkScreen"><span class="type">GdkScreen</span></a> for which the context is to be created.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a> for <em class="parameter"><code>screen</code></em></td></tr></tbody></table></div><p class="since">Since  2.2</p></div><hr><div class="refsect2" lang="en"><a name="id3295852"></a><h3><a name="gdk-pango-context-set-colormap"></a>gdk_pango_context_set_colormap ()</h3><a class="indexterm" name="id3295868"></a><pre class="programlisting">void                gdk_pango_context_set_colormap      (<ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext">PangoContext</a> *context,                                                         <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap">GdkColormap</a> *colormap);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gdk_pango_context_set_colormap</code> is deprecated and should not be used in newly-written code.</p></div><p>This function used to set the colormap to be used for drawing with<em class="parameter"><code>context</code></em>. The colormap is now always derived from the graphicscontext used for drawing, so calling this function is no longernecessary.</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>context</code></em>&#160;:</span></p></td><td> a <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#PangoContext"><span class="type">PangoContext</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>colormap</code></em>&#160;:</span></p></td><td> a <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap"><span class="type">GdkColormap</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3295977"></a><h3><a name="GdkPangoAttrEmbossed"></a>GdkPangoAttrEmbossed</h3><a class="indexterm" name="id3295991"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  gboolean embossed;} GdkPangoAttrEmbossed;</pre><p>A Pango text attribute containing a embossed bitmap to be used whenrendering the text.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></p></td><td>the <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>.</td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>&#160;<em class="structfield"><code>embossed</code></em>;</span></p></td><td>the embossed bitmap.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3296062"></a><h3><a name="GdkPangoAttrEmbossColor"></a>GdkPangoAttrEmbossColor</h3><a class="indexterm" name="id3296076"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  PangoColor color;} GdkPangoAttrEmbossColor;</pre><p>A Pango text attribute specifying the color to emboss text with.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></p></td><td>the <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoColor">PangoColor</a>&#160;<em class="structfield"><code>color</code></em>;</span></p></td><td>the color</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3296148"></a><h3><a name="GdkPangoAttrStipple"></a>GdkPangoAttrStipple</h3><a class="indexterm" name="id3296161"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  GdkBitmap *stipple;} GdkPangoAttrStipple;</pre><p>A Pango text attribute containing a stipple bitmap to be used whenrendering the text.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></p></td><td>the <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>.</td>

⌨️ 快捷键说明

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