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

📄 gtkpreview.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 3 页
字号:
  gushort s[2];  guchar c[4];};</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">GtkDitherInfo</code> is deprecated and should not be used in newly-written code.</p></div><p>This union not used in GTK+.</p></div><hr><div class="refsect2" lang="en"><a name="id4571487"></a><h3><a name="gtk-preview-uninit"></a>gtk_preview_uninit ()</h3><a class="indexterm" name="id4571503"></a><pre class="programlisting">void                gtk_preview_uninit                  (void);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_preview_uninit</code> is deprecated and should not be used in newly-written code.</p></div><p>This function is deprecated and does nothing.</p></div><hr><div class="refsect2" lang="en"><a name="id4571537"></a><h3><a name="gtk-preview-new"></a>gtk_preview_new ()</h3><a class="indexterm" name="id4571552"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_preview_new                     (<a class="link" href="gtk-Standard-Enumerations.html#GtkPreviewType">GtkPreviewType</a> type);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_preview_new</code> is deprecated and should not be used in newly-written code.</p></div><p>Create a new preview widget.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></p></td><td>the type data contained by the widget. (Grayscale or RGB)</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td>a new <a class="link" href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4571631"></a><h3><a name="gtk-preview-size"></a>gtk_preview_size ()</h3><a class="indexterm" name="id4571646"></a><pre class="programlisting">void                gtk_preview_size                    (<a class="link" href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> width,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> height);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_preview_size</code> is deprecated and should not be used in newly-written code.</p></div><p>Set the size that the preview widget will requestin response to a "size_request" signal. The drawing area may actually be allocated a sizelarger than this depending on how it is packedwithin the enclosing containers. The effectof this is determined by whether the previewis set to expand or not (see <code class="function">gtk_preview_expand()</code>)</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></p></td><td>the new width.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></p></td><td>the new height.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4571774"></a><h3><a name="gtk-preview-put"></a>gtk_preview_put ()</h3><a class="indexterm" name="id4571789"></a><pre class="programlisting">void                gtk_preview_put                     (<a class="link" href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkWindow">GdkWindow</a> *window,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> srcx,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> srcy,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> destx,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> desty,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> width,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> height);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_preview_put</code> is deprecated and should not be used in newly-written code.</p></div><p>Takes a portion of the contents of a preview widgetand draws it onto the given drawable, <em class="parameter"><code>window</code></em>.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>window</code></em>&#160;:</span></p></td><td>a window or pixmap.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>gc</code></em>&#160;:</span></p></td><td>The graphics context for the operation. Only the     clip mask for this GC matters.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>srcx</code></em>&#160;:</span></p></td><td>the x coordinate of the upper left corner in the source image.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>srcy</code></em>&#160;:</span></p></td><td>the y coordinate of the upper left corner in the source image.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>destx</code></em>&#160;:</span></p></td><td>the x coordinate of the upper left corner in the destination image.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>desty</code></em>&#160;:</span></p></td><td>the y coordinate of the upper left corner in the destination image.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></p></td><td>the width of the rectangular portion to draw.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></p></td><td>the height of the rectangular portion to draw.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4572042"></a><h3><a name="gtk-preview-draw-row"></a>gtk_preview_draw_row ()</h3><a class="indexterm" name="id4572058"></a><pre class="programlisting">void                gtk_preview_draw_row                (<a class="link" href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar">guchar</a> *data,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> x,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> y,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> w);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_preview_draw_row</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the data for a portion of a row.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></p></td><td>the new data for the portion. It should contain       <em class="parameter"><code>w</code></em> bytes of data if the preview is of type       GTK_TYPE_GRAYSCALE, and 3*<em class="parameter"><code>w</code></em> bytes of data       if the preview is of type GTK_TYPE_COLOR.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td><td>the starting value on the row to set.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td><td>the row to change.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>w</code></em>&#160;:</span></p></td><td>the number of pixels in the row to change.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4572225"></a><h3><a name="gtk-preview-set-expand"></a>gtk_preview_set_expand ()</h3><a class="indexterm" name="id4572241"></a><pre class="programlisting">void                gtk_preview_set_expand              (<a class="link" href="GtkPreview.html" title="GtkPreview">GtkPreview</a> *preview,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> expand);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_preview_set_expand</code> is deprecated and should not be used in newly-written code.</p></div><p>Determines the way that the the preview widget behaveswhen the size it is allocated is larger than the requestedsize. If <em class="parameter"><code>expand</code></em> is <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, then the preview's windowand buffer will be no larger than the size set with <a class="link" href="GtkPreview.html#gtk-preview-size"><code class="function">gtk_preview_size()</code></a>, and the data set will be centeredin the allocation if it is larger. If <em class="parameter"><code>expand</code></em> is <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>then the window and buffer will expand with the allocation;the application is responsible for catchingthe "size_allocate" signal and providing the data appropriate for this size.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>preview</code></em>&#160;:</span></p></td><td>a <a class="link" href="GtkPreview.html" title="GtkPreview"><span class="type">GtkPreview</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>expand</code></em>&#160;:</span></p></td><td>whether the preview's window should expand or not.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4572380"></a><h3>

⌨️ 快捷键说明

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