?? gdk-graphics-contexts.html
字號:
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>gc</code></em> :</span></p></td><td> a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>stipple</code></em> :</span></p></td><td> the new stipple bitmap.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092105"></a><h3><a name="gdk-gc-set-ts-origin"></a>gdk_gc_set_ts_origin ()</h3><a class="indexterm" name="id3092118"></a><pre class="programlisting">void gdk_gc_set_ts_origin (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <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);</pre><p>Set the origin when using tiles or stipples withthe GC. The tile or stipple will be aligned suchthat the upper left corner of the tile or stipplewill coincide with this point.</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>gc</code></em> :</span></p></td><td> a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td><td> the x-coordinate of the origin.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td><td> the y-coordinate of the origin.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092221"></a><h3><a name="gdk-gc-set-clip-origin"></a>gdk_gc_set_clip_origin ()</h3><a class="indexterm" name="id3092234"></a><pre class="programlisting">void gdk_gc_set_clip_origin (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <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);</pre><p>Sets the origin of the clip mask. The coordinates areinterpreted relative to the upper-left corner ofthe destination drawable of the current operation.</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>gc</code></em> :</span></p></td><td> a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td><td> the x-coordinate of the origin.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td><td> the y-coordinate of the origin.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092337"></a><h3><a name="gdk-gc-set-clip-mask"></a>gdk_gc_set_clip_mask ()</h3><a class="indexterm" name="id3092350"></a><pre class="programlisting">void gdk_gc_set_clip_mask (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkBitmap">GdkBitmap</a> *mask);</pre><p>Sets the clip mask for a graphics context from a bitmap.The clip mask is interpreted relative to the cliporigin. (See <a class="link" href="gdk-Graphics-Contexts.html#gdk-gc-set-clip-origin"><code class="function">gdk_gc_set_clip_origin()</code></a>).</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>gc</code></em> :</span></p></td><td> the <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td><td> a bitmap.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092442"></a><h3><a name="gdk-gc-set-clip-rectangle"></a>gdk_gc_set_clip_rectangle ()</h3><a class="indexterm" name="id3092455"></a><pre class="programlisting">void gdk_gc_set_clip_rectangle (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <a class="link" href="gdk-Points-Rectangles-and-Regions.html#GdkRectangle">GdkRectangle</a> *rectangle);</pre><p>Sets the clip mask for a graphics context from arectangle. The clip mask is interpreted relative to the cliporigin. (See <a class="link" href="gdk-Graphics-Contexts.html#gdk-gc-set-clip-origin"><code class="function">gdk_gc_set_clip_origin()</code></a>).</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>gc</code></em> :</span></p></td><td> a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td><td> the rectangle to clip to.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092547"></a><h3><a name="gdk-gc-set-clip-region"></a>gdk_gc_set_clip_region ()</h3><a class="indexterm" name="id3092560"></a><pre class="programlisting">void gdk_gc_set_clip_region (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <a class="link" href="gdk-Points-Rectangles-and-Regions.html#GdkRegion">GdkRegion</a> *region);</pre><p>Sets the clip mask for a graphics context from a region structure.The clip mask is interpreted relative to the clip origin. (See<a class="link" href="gdk-Graphics-Contexts.html#gdk-gc-set-clip-origin"><code class="function">gdk_gc_set_clip_origin()</code></a>).</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>gc</code></em> :</span></p></td><td> a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td><td> the <a class="link" href="gdk-Points-Rectangles-and-Regions.html#GdkRegion"><span class="type">GdkRegion</span></a>. </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092659"></a><h3><a name="gdk-gc-set-subwindow"></a>gdk_gc_set_subwindow ()</h3><a class="indexterm" name="id3092672"></a><pre class="programlisting">void gdk_gc_set_subwindow (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <a class="link" href="gdk-Graphics-Contexts.html#GdkSubwindowMode">GdkSubwindowMode</a> mode);</pre><p>Sets how drawing with this GC on a window will affect childwindows of that window.</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>gc</code></em> :</span></p></td><td> a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>mode</code></em> :</span></p></td><td> the subwindow mode.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092753"></a><h3><a name="GdkSubwindowMode"></a>enum GdkSubwindowMode</h3><a class="indexterm" name="id3092766"></a><pre class="programlisting">typedef enum{ GDK_CLIP_BY_CHILDREN = 0, GDK_INCLUDE_INFERIORS = 1} GdkSubwindowMode;</pre><p>Determines how drawing onto a window will affect childwindows of that window. </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a name="GDK-CLIP-BY-CHILDREN:CAPS"></a><code class="literal">GDK_CLIP_BY_CHILDREN</code></span></p></td><td>only draw onto the window itself.</td></tr><tr><td><p><span class="term"><a name="GDK-INCLUDE-INFERIORS:CAPS"></a><code class="literal">GDK_INCLUDE_INFERIORS</code></span></p></td><td>draw onto the window and child windows.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092834"></a><h3><a name="gdk-gc-set-exposures"></a>gdk_gc_set_exposures ()</h3><a class="indexterm" name="id3092847"></a><pre class="programlisting">void gdk_gc_set_exposures (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> exposures);</pre><p>Sets whether copying non-visible portions of a drawableusing this graphics context generate exposure eventsfor the corresponding regions of the destinationdrawable. (See <a class="link" href="gdk-Drawing-Primitives.html#gdk-draw-drawable"><code class="function">gdk_draw_drawable()</code></a>).</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>gc</code></em> :</span></p></td><td> a <a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a>.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>exposures</code></em> :</span></p></td><td> if <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, exposure events will be generated.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3092952"></a><h3><a name="gdk-gc-set-line-attributes"></a>gdk_gc_set_line_attributes ()</h3><a class="indexterm" name="id3092965"></a><pre class="programlisting">void gdk_gc_set_line_attributes (<a class="link" href="gdk-Graphics-Contexts.html#GdkGC">GdkGC</a> *gc, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> line_width, <a class="link" href="gdk-Graphics-Contexts.html#GdkLineStyle">GdkLineStyle</a> line_style, <a class="link" href="gdk-Graphics-Contexts.html#GdkCapStyle">GdkCapStyle</a
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -