Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > ca81b57b553ae75608ba0fc5e7925e4e > files > 231

libgtkmm1.2-devel-1.2.10-1mdk.ppc.rpm

<html>
<head><title>Gtk-- Reference: Gdk_GC</title></head>

<body bgcolor="#F0F0F0" text="#000000" link="#0000FF"
vlink="#000077" alink="#FF0000">
<table align=center border=0 cellspacing=10> <tr>
<td><a href="class_index.html">Class Index</a></td>
<td><a href="cross_index.html">Cross Index</a></td>
<td><a href="name_index.html">Namespace Index</a></td>
</table>
<h1 align=center>Class Gdk_GC</h1><p>
<b>  Gdk GC (Graphics Context) Handle </b><br>
Contained in: <a href="global.html">global</a><br>
Derived from:
Gdk_Handle
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/gc.h&gt;
<p>
<hr noshade>
<table border=0>
<tr><td colspan=3><h3>public function member index:</h3></td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gdk_GC.html#158"><tt><font color=blue><b>Gdk_GC</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gdk_GC.html#159"><tt><font color=blue><b>Gdk_GC</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkGC</font></tt>* <tt><font color=blue>gc</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gdk_GC.html#160"><tt><font color=blue><b>Gdk_GC</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a>& <tt><font color=blue>gc</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a></td><td><tt>(<a href="Gdk_Drawable.html"><tt><font color=navy><b>Gdk_Drawable</b></font></tt></a>& <tt><font color=blue>drawable</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#167"><tt><font color=blue><b>copy</b></font></tt></a></td><td><tt>(<a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a>& <tt><font color=blue>src</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#163"><tt><font color=blue><b>create</b></font></tt></a></td><td><tt>(<a href="Gdk_Drawable.html"><tt><font color=navy><b>Gdk_Drawable</b></font></tt></a> <tt>const</tt>& <tt><font color=blue>drawable</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gdk_Font.html"><tt><font color=navy><b>Gdk_Font</b></font></tt></a></tt> </td><td align=right><a href="Gdk_GC.html#172"><tt><font color=blue><b>get_font</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#168"><tt><font color=blue><b>get_values</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkGCValues</font></tt>& <tt><font color=blue>values</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a>&</tt> </td><td align=right><a href="Gdk_GC.html#165"><tt><font color=black><b>operator</b></font></tt><tt> = </tt></a></td><td><tt>(<tt>const</tt> <a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a>&)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#164"><tt><font color=blue><b>release</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#170"><tt><font color=blue><b>set_background</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gdk_Color.html"><tt><font color=navy><b>Gdk_Color</b></font></tt></a>& <tt><font color=blue>c</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#190"><tt><font color=blue><b>set_cap_style</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkCapStyle</font></tt> <tt><font color=blue>cap_style</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#179"><tt><font color=blue><b>set_clip_mask</b></font></tt></a></td><td><tt>(<a href="Gdk_Bitmap.html"><tt><font color=navy><b>Gdk_Bitmap</b></font></tt></a>& <tt><font color=blue>mask</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#180"><tt><font color=blue><b>set_clip_mask</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#178"><tt><font color=blue><b>set_clip_origin</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#182"><tt><font color=blue><b>set_clip_rectangle</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gdk_Rectangle.html"><tt><font color=navy><b>Gdk_Rectangle</b></font></tt></a>& <tt><font color=blue>rect</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#183"><tt><font color=blue><b>set_clip_rectangle</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>w</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>h</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#184"><tt><font color=blue><b>set_clip_region</b></font></tt></a></td><td><tt>(<a href="Gdk_Region.html"><tt><font color=navy><b>Gdk_Region</b></font></tt></a>& <tt><font color=blue>region</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#192"><tt><font color=blue><b>set_dashes</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>size</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#193"><tt><font color=blue><b>set_dashes</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>on</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>off</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#194"><tt><font color=blue><b>set_dashes</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>dash_offset</font></tt>, <tt><font color=navy>gint8</font></tt> <tt><font color=blue>dash_list[]</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>dash_list_length</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#186"><tt><font color=blue><b>set_exposures</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>exp</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#174"><tt><font color=blue><b>set_fill</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkFill</font></tt> <tt><font color=blue>fill</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#171"><tt><font color=blue><b>set_font</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gdk_Font.html"><tt><font color=navy><b>Gdk_Font</b></font></tt></a>& <tt><font color=blue>font</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#169"><tt><font color=blue><b>set_foreground</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gdk_Color.html"><tt><font color=navy><b>Gdk_Color</b></font></tt></a>& <tt><font color=blue>c</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#173"><tt><font color=blue><b>set_function</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkFunction</font></tt> <tt><font color=blue>func</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#191"><tt><font color=blue><b>set_join_style</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkJoinStyle</font></tt> <tt><font color=blue>join_style</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#187"><tt><font color=blue><b>set_line_attributes</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>line_width</font></tt>, <tt><font color=navy>GdkLineStyle</font></tt> <tt><font color=blue>line_style</font></tt>=GDK_LINE_SOLID, <tt><font color=navy>GdkCapStyle</font></tt> <tt><font color=blue>cap_style</font></tt>=GDK_CAP_BUTT, <tt><font color=navy>GdkJoinStyle</font></tt> <tt><font color=blue>join_style</font></tt>=GDK_JOIN_MITER)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#189"><tt><font color=blue><b>set_line_style</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkLineStyle</font></tt> <tt><font color=blue>line_style</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#188"><tt><font color=blue><b>set_line_width</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>line_width</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#181"><tt><font color=blue><b>set_noclip</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#176"><tt><font color=blue><b>set_stipple</b></font></tt></a></td><td><tt>(<a href="Gdk_Pixmap.html"><tt><font color=navy><b>Gdk_Pixmap</b></font></tt></a>& <tt><font color=blue>stip</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#185"><tt><font color=blue><b>set_subwindow</b></font></tt></a></td><td><tt>(<tt><font color=navy>GdkSubwindowMode</font></tt> <tt><font color=blue>mode</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#175"><tt><font color=blue><b>set_tile</b></font></tt></a></td><td><tt>(<a href="Gdk_Pixmap.html"><tt><font color=navy><b>Gdk_Pixmap</b></font></tt></a>& <tt><font color=blue>tile</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#177"><tt><font color=blue><b>set_ts_origin</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gdk_GC.html#162"><tt><font color=blue><b>~Gdk_GC</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td><tr><td colspan=3><h3>protected function member index:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#156"><tt><font color=blue><b>ref</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#157"><tt><font color=blue><b>unref</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td><tr><td colspan=3><h3>private function member index:</h3></td>
<tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gdk_GC.html#166"><tt><font color=blue><b>destroy</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  The Graphics Context specifies a number of server side resources
  that are used by several drawing commands.
<P>
  For understanding Graphics Contexts you should read chapter 10 of
  <a href="http://developer.gnome.org/doc/GGAD/GGAD.tar.gz">Gtk+/Gnome Application Development 
 </a>
  (&gt;500K) by Havoc Pennington
  or chapter 7 of "Xlib -- C Language X Interface" from the X Consortium.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="158"><font size=+1><b>Gdk_GC::Gdk_GC</b></font></a> -   Create an unconnect GC Handle.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gdk_GC.html#158"><tt><font color=blue><b>Gdk_GC</b></font></tt></a><tt>()</tt>;<br><br>
<a name="159"><font size=+1><b>Gdk_GC::Gdk_GC</b></font></a> -   Wrap an existing GdkGC.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gdk_GC.html#159"><tt><font color=blue><b>Gdk_GC</b></font></tt></a><tt>(<tt><font color=navy>GdkGC</font></tt>* <tt><font color=blue>gc</font></tt>)</tt>;<br><br>
<a name="160"><font size=+1><b>Gdk_GC::Gdk_GC</b></font></a> -   Initialize a GC reference from a existing one.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gdk_GC.html#160"><tt><font color=blue><b>Gdk_GC</b></font></tt></a><tt>(<tt>const</tt> <a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a>& <tt><font color=blue>gc</font></tt>)</tt>;<br><blockquote>  The new GC refers to the same Graphics Context on the server side.</blockquote>
<br><br>
<a name="161"><font size=+1><b>Gdk_GC::Gdk_GC</b></font></a> -   Create a new GC for this drawable.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a><tt>(<a href="Gdk_Drawable.html"><tt><font color=navy><b>Gdk_Drawable</b></font></tt></a>& <tt><font color=blue>drawable</font></tt>)</tt>;<br><blockquote>  Allocate a remote gc object based on this drawable.</blockquote>
<br><br>
<a name="167"><font size=+1><b>Gdk_GC::copy</b></font></a> -   Copy server GC.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#167"><tt><font color=blue><b>copy</b></font></tt></a><tt>(<a href="Gdk_GC.html#161"><tt><font color=blue><b>Gdk_GC</b></font></tt></a>& <tt><font color=blue>src</font></tt>)</tt>;<br><blockquote>  This copies all properties of one remote GC to another
  GC on the server.
<P>
  Both, source handle and destination (this) handle,
  have to be connected to remote Graphics Contexts when calling
  this method.</blockquote>
<br><br>
<a name="163"><font size=+1><b>Gdk_GC::create</b></font></a> -   Create a GC on server<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#163"><tt><font color=blue><b>create</b></font></tt></a><tt>(<a href="Gdk_Drawable.html"><tt><font color=navy><b>Gdk_Drawable</b></font></tt></a> <tt>const</tt>& <tt><font color=blue>drawable</font></tt>)</tt>;<br><blockquote>  Allocate a remote gc object based on this drawable.
<P>
  If the GC Handle is already connected to a remote Graphics Context,
  then this connection will be released.
<P>
  If the drawable handle is not connected to a remote drawable,
  then the GC handle is unconnected after this call.</blockquote>
<br><br>
<a name="166"><font size=+1><b>Gdk_GC::destroy</b></font></a> -   Destroy a remote gc. <br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#166"><tt><font color=blue><b>destroy</b></font></tt></a><tt>()</tt>;<br><blockquote>  This is very dangerous and should probably be removed.
  Nuke the GC and make this copy invalid. </blockquote>
<br><br>
<a name="172"><font size=+1><b>Gdk_GC::get_font</b></font></a> -   Return the current font. <br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><a href="Gdk_Font.html"><tt><font color=navy><b>Gdk_Font</b></font></tt></a></tt> <a href="Gdk_GC.html#172"><tt><font color=blue><b>get_font</b></font></tt></a><tt>()</tt>;<br><blockquote>  Font will not be initialized if there is no current font.  </blockquote>
<br><br>
<a name="168"><font size=+1><b>Gdk_GC::get_values</b></font></a> -   Get GC properites.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#168"><tt><font color=blue><b>get_values</b></font></tt></a><tt>(<tt><font color=navy>GdkGCValues</font></tt>& <tt><font color=blue>values</font></tt>)</tt>;<br><blockquote>  GdkGCValues is defined as struct _GdkGCValues in gdk/gdktypes.h</blockquote>
<br><br>
<a name="156"><font size=+1><b>Gdk_GC::ref</b></font></a> -   <i>(internal function)</i> increment gdk reference counter<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#156"><tt><font color=blue><b>ref</b></font></tt></a><tt>()</tt>;<br><br>
<a name="170"><font size=+1><b>Gdk_GC::set_background</b></font></a> -   Set background color.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#170"><tt><font color=blue><b>set_background</b></font></tt></a><tt>(<tt>const</tt> <a href="Gdk_Color.html"><tt><font color=navy><b>Gdk_Color</b></font></tt></a>& <tt><font color=blue>c</font></tt>)</tt>;<br><br>
<a name="190"><font size=+1><b>Gdk_GC::set_cap_style</b></font></a> -   Set the cap style.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#190"><tt><font color=blue><b>set_cap_style</b></font></tt></a><tt>(<tt><font color=navy>GdkCapStyle</font></tt> <tt><font color=blue>cap_style</font></tt>)</tt>;<br><blockquote>  Caps are the ends of lines. GdkCapStyle is an enum.
<P>
  Valid values for <tt><font color=blue>cap_style</font></tt> are: <tt><font color=green>  GDK_CAP_NOT_LAST, GDK_CAP_BUTT, GDK_CAP_ROUND, GDK_CAP_PROJECTING.</font></tt>
<P>
  <tt><font color=green>GDK_CAP_NOT_LAST</font></tt> is equal to <tt><font color=green>GDK_CAP_BUTT</font></tt>,
  except for lines with width 0,
  in which case the Pixel at the end point given is not drawn.
<P>
  <tt><font color=green>GDK_CAP_BUTT</font></tt> is for lines with suare ends.
<P>
  <tt><font color=green>GDK_CAP_ROUND</font></tt> causes lines to have filled half circles
  attached to their end points.
<P>
  Lines drawn with <tt><font color=green>GDK_CAP_PROJECTING</font></tt> continue 
  beyond their end points
  for a distance equal to their half width.
  Line ends are square.</blockquote>
<br><br>
<a name="179"><font size=+1><b>Gdk_GC::set_clip_mask</b></font></a> -   Set the clipping mask.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#179"><tt><font color=blue><b>set_clip_mask</b></font></tt></a><tt>(<a href="Gdk_Bitmap.html"><tt><font color=navy><b>Gdk_Bitmap</b></font></tt></a>& <tt><font color=blue>mask</font></tt>)</tt>;<br><blockquote>  Only bits set to 1 in this mask will be drawn.</blockquote>
<br><br>
<a name="180"><font size=+1><b>Gdk_GC::set_clip_mask</b></font></a> -   Deactive the clipping mask.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#180"><tt><font color=blue><b>set_clip_mask</b></font></tt></a><tt>()</tt>;<br><br>
<a name="178"><font size=+1><b>Gdk_GC::set_clip_origin</b></font></a> -   Set the origin of the clipping mask.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#178"><tt><font color=blue><b>set_clip_origin</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>)</tt>;<br><br>
<a name="182"><font size=+1><b>Gdk_GC::set_clip_rectangle</b></font></a> -   Set the clipping rectangle.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#182"><tt><font color=blue><b>set_clip_rectangle</b></font></tt></a><tt>(<tt>const</tt> <a href="Gdk_Rectangle.html"><tt><font color=navy><b>Gdk_Rectangle</b></font></tt></a>& <tt><font color=blue>rect</font></tt>)</tt>;<br><blockquote>  This method sets the clipping mask and the clipping origin for you
  so that only pixels inside this rectangle are drawn.</blockquote>
<br><br>
<a name="183"><font size=+1><b>Gdk_GC::set_clip_rectangle</b></font></a> -   Set the clipping rectangle.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#183"><tt><font color=blue><b>set_clip_rectangle</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>w</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>h</font></tt>)</tt>;<br><blockquote>  This method calls the rectangle constructor for you before calling
  void <a href="Gdk_GC.html#183"><tt><font color=blue><b>set_clip_rectangle</b></font></tt></a> (const Gdk_Rectangle &amp;rect).</blockquote>
<br><br>
<a name="184"><font size=+1><b>Gdk_GC::set_clip_region</b></font></a> -   Set the clip region. (needs work)<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#184"><tt><font color=blue><b>set_clip_region</b></font></tt></a><tt>(<a href="Gdk_Region.html"><tt><font color=navy><b>Gdk_Region</b></font></tt></a>& <tt><font color=blue>region</font></tt>)</tt>;<br><br>
<a name="192"><font size=+1><b>Gdk_GC::set_dashes</b></font></a> -   Set the length of dashes.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#192"><tt><font color=blue><b>set_dashes</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>size</font></tt>)</tt>;<br><blockquote>  On and off will have the same size. <tt><font color=blue>size</font></tt> is given in Pixels.</blockquote>
<br><br>
<a name="193"><font size=+1><b>Gdk_GC::set_dashes</b></font></a> -   Set the length of dashes.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#193"><tt><font color=blue><b>set_dashes</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>on</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>off</font></tt>)</tt>;<br><blockquote>  Use this method if you want dotted lines
  (choose a smaller value for an than for off).
  <tt><font color=blue>on</font></tt> and <tt><font color=blue>off</font></tt> are given in Pixels.</blockquote>
<br><br>
<a name="194"><font size=+1><b>Gdk_GC::set_dashes</b></font></a> -   Set the length of dashes.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#194"><tt><font color=blue><b>set_dashes</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>dash_offset</font></tt>, <tt><font color=navy>gint8</font></tt> <tt><font color=blue>dash_list[]</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>dash_list_length</font></tt>)</tt>;<br><blockquote>  The ons and offs of a dashed line do not have to be the same all the
  time. With this method you can produce dash-dot lines
  (or dash-dot-dot or dash-dash-dot-longdash-dash-dot or whatever you
  like).
<P>
  The dash_list is a vector of length dash_list_length.
  The elements of dash_list specify the length of the on/off
  dashes in pixels. dash_list[0], dash_list[2] ... specify
  the on dashes, the other values are for the off dashes.
  After dash_list[dash_list_length-1],
  dash_list[0] is again used.
<P>
  dash_offset sets the pixel number with which lines are supposed
  to start.
  Usually you will set this to 0.
<P>
  Constraints: dash_list_length&gt;0, dash_list[i]&gt;0 for all i.</blockquote>
<br><br>
<a name="186"><font size=+1><b>Gdk_GC::set_exposures</b></font></a> -   Determines wether Gdk_Window::copy_area can generate expose events.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#186"><tt><font color=blue><b>set_exposures</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>exp</font></tt>)</tt>;<br><blockquote>  exp is a boolean value.
<P>
  If it is set to true, and <a href="Gdk_Window.html#348"><tt><font color=blue><b>copy_area</b></font></tt></a> is told to copy
  an area from a window that is currently obscured, then the XServer
  sends expose events to the obscured window so that the
  obscured contents is redrawn by the application.
  This contents is then used in the copy.</blockquote>
<br><br>
<a name="174"><font size=+1><b>Gdk_GC::set_fill</b></font></a> -   Set the fill style.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#174"><tt><font color=blue><b>set_fill</b></font></tt></a><tt>(<tt><font color=navy>GdkFill</font></tt> <tt><font color=blue>fill</font></tt>)</tt>;<br><blockquote>  GdkFill is an enum defined in gdk/gdktypes.h.
<P>
  The default fill style is <tt><font color=green>GDK_SOLID.</font></tt>
  When it is set, the drawing commands do what you expect.
<P>
  If you want to learn about the
  other fill styles (<tt><font color=green>GDK_SOLID, GDK_TILED, GDK_STIPPLED,
  GDK_OPAQUE_STIPPLED</font></tt>), you should read chapter 10 of
  <a href="http://developer.gnome.org/doc/GGAD/GGAD.tar.gz">Gtk+/Gnome Application Development 
 </a>
  (&gt;500K) by Havoc Pennington
  or chapter 7 of "Xlib -- C Language X Interface" from the
  X Consortium.</blockquote>
<br><br>
<a name="171"><font size=+1><b>Gdk_GC::set_font</b></font></a> -   Set the font associated with this GC.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#171"><tt><font color=blue><b>set_font</b></font></tt></a><tt>(<tt>const</tt> <a href="Gdk_Font.html"><tt><font color=navy><b>Gdk_Font</b></font></tt></a>& <tt><font color=blue>font</font></tt>)</tt>;<br><br>
<a name="169"><font size=+1><b>Gdk_GC::set_foreground</b></font></a> -   Set foreground color.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#169"><tt><font color=blue><b>set_foreground</b></font></tt></a><tt>(<tt>const</tt> <a href="Gdk_Color.html"><tt><font color=navy><b>Gdk_Color</b></font></tt></a>& <tt><font color=blue>c</font></tt>)</tt>;<br><br>
<a name="173"><font size=+1><b>Gdk_GC::set_function</b></font></a> -   Set the drawing function.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#173"><tt><font color=blue><b>set_function</b></font></tt></a><tt>(<tt><font color=navy>GdkFunction</font></tt> <tt><font color=blue>func</font></tt>)</tt>;<br><blockquote>  GdkFunction is an enum defined in gdk/gdktypes.h. It specifies how
  Pixels are set in a drawable.
<P>
  Common values: <tt><font color=green>GDK_COPY, GDK_INVERT, GDK_XOR. </font></tt></blockquote>
<br><br>
<a name="191"><font size=+1><b>Gdk_GC::set_join_style</b></font></a> -   Set the joint style. <br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#191"><tt><font color=blue><b>set_join_style</b></font></tt></a><tt>(<tt><font color=navy>GdkJoinStyle</font></tt> <tt><font color=blue>join_style</font></tt>)</tt>;<br><blockquote>  Join styles describe how lines sharing a common end point
  and drawn in the same drawing request connect with each other.
<P>
  GdkJoinStyle is an enum. valid values for join_style are:
  <tt><font color=green>GDK_JOIN_MITER, GDK_JOIN_ROUND, GDK_JOIN_BEVEL.</font></tt>
<P>
  <tt><font color=green>GDK_JOIN_MITER</font></tt>: Lines which form an angle of more 
  than 11 degrees
  are continued beyond the endpoint until their outer edges meet.
  Only the intersection set of the two continued lines is drawn.
  Lines with a smaller angle are joint as with <tt><font color=green>GDK_JOIN_BEVEL</font></tt>.
<P>
  <tt><font color=green>GDK_JOIN_ROUND</font></tt>: The lines join in a circle with 
  diameter line_width.
<P>
  <tt><font color=green>GDK_JOIN_BEVEL</font></tt>: The lines end as with CapButt and then
  the triangle left on the outer edge is filled.</blockquote>
<br><br>
<a name="187"><font size=+1><b>Gdk_GC::set_line_attributes</b></font></a> -   Set the line attributes<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#187"><tt><font color=blue><b>set_line_attributes</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>line_width</font></tt>, <tt><font color=navy>GdkLineStyle</font></tt> <tt><font color=blue>line_style</font></tt>=GDK_LINE_SOLID, <tt><font color=navy>GdkCapStyle</font></tt> <tt><font color=blue>cap_style</font></tt>=GDK_CAP_BUTT, <tt><font color=navy>GdkJoinStyle</font></tt> <tt><font color=blue>join_style</font></tt>=GDK_JOIN_MITER)</tt>;<br><blockquote>  See <a href="Gdk_GC.html#188"><tt><font color=blue><b>set_line_width</b></font></tt></a>, <a href="Gdk_GC.html#189"><tt><font color=blue><b>set_line_style</b></font></tt></a>, 
  <a href="Gdk_GC.html#190"><tt><font color=blue><b>set_cap_style</b></font></tt></a>, <a href="Gdk_GC.html#191"><tt><font color=blue><b>set_join_style</b></font></tt></a>
  for an explanation of  the arguments.</blockquote>
<br><br>
<a name="189"><font size=+1><b>Gdk_GC::set_line_style</b></font></a> -   Set the line style. <br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#189"><tt><font color=blue><b>set_line_style</b></font></tt></a><tt>(<tt><font color=navy>GdkLineStyle</font></tt> <tt><font color=blue>line_style</font></tt>)</tt>;<br><blockquote>  Lines can be drawn in a number of diffent fashions.
<P>
  GdkLineStyle is an enum.
  Valid values for <tt><font color=blue>line_style</font></tt> are: <tt><font color=green>
  GDK_LINE_SOLID, GDK_LINE_ON_OFF_DASH, GDK_LINE_DOUBLE_DASH.</font></tt>
<P>
  Lines with line_style <tt><font color=green>GDK_LINE_SOLID</font></tt> are just a plain lines.
<P>
  <tt><font color=green>GDK_LINE_ON_OFF_DASH</font></tt> produces dashed lines.
  The Pixels inside the dashes are drawn in the foreground color,
  while the Pixels between the dashes are left untouched.
  The cap style applies to all ends of all dashes.
<P>
  <tt><font color=green>GDK_LINE_DOUBLE_DASH</font></tt> produces dashed lines
  where the Pixels inside the dashes are drawn in the foreground color
  while the Pixels between the dashes are drawn in the background color.</blockquote>
<br><br>
<a name="188"><font size=+1><b>Gdk_GC::set_line_width</b></font></a> -   Set the line width.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#188"><tt><font color=blue><b>set_line_width</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>line_width</font></tt>)</tt>;<br><blockquote>  <tt><font color=blue>line_width</font></tt> is given in Pixels.
<P>
  0 is a special value for a line width of one Pixel.
  Lines with line_width set to 0 are usually drawn with hardware
  acceleration, and the exact pixels set can be different depending
  on the hardware in use and the direction in that the line is drawn.
<P>
  This cannot happen for lines with <tt><font color=blue>line_width</font></tt>&gt;0.
  For further info, see chapter 7 of
  "Xlib -- C Language X Interface" from the X Consortium.</blockquote>
<br><br>
<a name="181"><font size=+1><b>Gdk_GC::set_noclip</b></font></a> -   Deactive the clipping mask (non-standard) <br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#181"><tt><font color=blue><b>set_noclip</b></font></tt></a><tt>()</tt>;<br><br>
<a name="176"><font size=+1><b>Gdk_GC::set_stipple</b></font></a> -   Set the fill stipple.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#176"><tt><font color=blue><b>set_stipple</b></font></tt></a><tt>(<a href="Gdk_Pixmap.html"><tt><font color=navy><b>Gdk_Pixmap</b></font></tt></a>& <tt><font color=blue>stip</font></tt>)</tt>;<br><blockquote>  This has an effect only for the <tt><font color=green>GDK_STIPPLED</font></tt> and
  <tt><font color=green>GDK_OPAQUE_STIPPLED</font></tt> fill styles (set with <a href="Gdk_GC.html#174"><tt><font color=blue><b>set_fill</b></font></tt></a>).
  stip must have a depth of 1, it is a bitmap.</blockquote>
<br><br>
<a name="185"><font size=+1><b>Gdk_GC::set_subwindow</b></font></a> -   Set the subwindow clipping mode.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#185"><tt><font color=blue><b>set_subwindow</b></font></tt></a><tt>(<tt><font color=navy>GdkSubwindowMode</font></tt> <tt><font color=blue>mode</font></tt>)</tt>;<br><blockquote>  GdkSubwindowMode is an enum.
  Subwindow modes: <tt><font color=green>GDK_CLIP_BY_CHILDREN, GDK_INCLUDE_INFERIORS.</font></tt></blockquote>
<br><br>
<a name="175"><font size=+1><b>Gdk_GC::set_tile</b></font></a> -   Set the background tile for the <tt><font color=green>GDK_TILED</font></tt> fill style.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#175"><tt><font color=blue><b>set_tile</b></font></tt></a><tt>(<a href="Gdk_Pixmap.html"><tt><font color=navy><b>Gdk_Pixmap</b></font></tt></a>& <tt><font color=blue>tile</font></tt>)</tt>;<br><blockquote>  This has an effect only if the fill style of this GC is set to
  <tt><font color=green>GDK_TILED</font></tt> with <a href="Gdk_GC.html#174"><tt><font color=blue><b>set_fill</b></font></tt></a>.</blockquote>
<br><br>
<a name="177"><font size=+1><b>Gdk_GC::set_ts_origin</b></font></a> -   Set the origin of the first tile or stipple.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#177"><tt><font color=blue><b>set_ts_origin</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>x</font></tt>, <tt><font color=purple>gint</font></tt> <tt><font color=blue>y</font></tt>)</tt>;<br><blockquote>  This has an effect for fill styles (see <a href="Gdk_GC.html#174"><tt><font color=blue><b>set_fill</b></font></tt></a>) different
  from <tt><font color=green>GDK_SOLID</font></tt>. It sets the origin of the first tile or stiple.
  Tiles and stiples are copied everywhere so that they cover
  every Pixel.</blockquote>
<br><br>
<a name="157"><font size=+1><b>Gdk_GC::unref</b></font></a> -   <i>(internal function)</i> decrement gdk reference counter <br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gdk_GC.html#157"><tt><font color=blue><b>unref</b></font></tt></a><tt>()</tt>;<br><br>
<a name="162"><font size=+1><b>Gdk_GC::~Gdk_GC</b></font></a> -   Delete this handle.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt></tt> <a href="Gdk_GC.html#162"><tt><font color=blue><b>~Gdk_GC</b></font></tt></a><tt>()</tt>;<br><br>
<hr noshade>
</html>