Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 22e237efd6851989a23adf3360bb53d0 > files > 105

gtkmm2.4-doc-2.20.3-1mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>gtkmm: Gdk::GC Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGdk.html">Gdk</a>::<a class="el" href="classGdk_1_1GC.html">GC</a>
  </div>
</div>
<div class="contents">
<h1>Gdk::GC Class Reference</h1><!-- doxytag: class="Gdk::GC" --><!-- doxytag: inherits="Glib::Object" -->
<p>All drawing operations in GDK take a graphics context (<a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>) argument. <a href="#_details">More...</a></p>

<p>Inherits <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html">Glib::Object</a>.</p>
<div class="dynheader">
Collaboration diagram for Gdk::GC:</div>
<div class="dynsection">
<div class="center"><img src="classGdk_1_1GC__coll__graph.png" border="0" usemap="#Gdk_1_1GC_coll__map" alt="Collaboration graph"/></div>
<map name="Gdk_1_1GC_coll__map" id="Gdk_1_1GC_coll__map">
<area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="20,160,111,189"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,125,112"/><area shape="rect" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="12,5,119,35"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classGdk_1_1GC-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a56dbf2a31cef26e837eccbf2dbb2e1f2">~GC</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkGC*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a8093f885d5735177424a426156b79f3a">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a8093f885d5735177424a426156b79f3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GdkGC*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a390461c9f64f1df71b760325e45790b8">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a390461c9f64f1df71b760325e45790b8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkGC*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a55936486f1a0b55cfa08eb46bb27630e">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. <a href="#a55936486f1a0b55cfa08eb46bb27630e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#ae16759ef3ee9b3696021369f61d62fea">set_foreground</a> (const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the foreground color for a graphics context. <a href="#ae16759ef3ee9b3696021369f61d62fea"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#ada203718d98a1305eb8c93d5cd2b2356">set_background</a> (const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the background color for a graphics context. <a href="#ada203718d98a1305eb8c93d5cd2b2356"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#ade0340da1088f4ecdde89e9180212e0b">set_function</a> (<a class="el" href="group__gdkmmEnums.html#gaf1365a8c559e749927e68d3ae723a47b">Function</a> function)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines how the current pixel values and the pixel values being drawn are combined to produce the final pixel values. <a href="#ade0340da1088f4ecdde89e9180212e0b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#ae95140c1494e4450ca22fccded72337c">set_fill</a> (<a class="el" href="group__gdkmmEnums.html#gaf945088bf264cc01bf858c3468d2a451">Fill</a> <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01161.html#gae3f9c9c748ac8e4b124a39bfd7adec40">fill</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the fill mode for a graphics context. <a href="#ae95140c1494e4450ca22fccded72337c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#aae51d032ddbea405bb177268cab521cc">set_tile</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a> &gt;&amp; tile)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set a tile pixmap for a graphics context. <a href="#aae51d032ddbea405bb177268cab521cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#af6c8c1f159ab300994417aa6d1a2ff4a">set_stipple</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a> &gt;&amp; stipple)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the stipple bitmap for a graphics context. <a href="#af6c8c1f159ab300994417aa6d1a2ff4a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a86994e1325f39ae18278cbd6c298bcac">set_ts_origin</a> (int x, int y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the origin when using tiles or stipples with the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>. <a href="#a86994e1325f39ae18278cbd6c298bcac"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#afa0f2fc8b4c78db4feed66b5806db1bf">set_clip_origin</a> (int x, int y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the origin of the clip mask. <a href="#afa0f2fc8b4c78db4feed66b5806db1bf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#acc35c552632d7eb9a46d02de6be952f8">set_clip_mask</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Bitmap.html">Bitmap</a> &gt;&amp; mask)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the clip mask for a graphics context from a bitmap. <a href="#acc35c552632d7eb9a46d02de6be952f8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a9f83feb6a71dcea826f80f65f778eff8">set_clip_rectangle</a> (<a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>&amp; rectangle)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a8df6e778b7312f3f198842aea3f7bb43">set_clip_rectangle</a> (const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>&amp; rectangle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the clip mask for a graphics context from a rectangle. <a href="#a8df6e778b7312f3f198842aea3f7bb43"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a6109789b4e63e62443fa9433c77525e8">set_clip_region</a> (const <a class="el" href="classGdk_1_1Region.html">Region</a>&amp; region)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the clip mask for a graphics context from a region structure. <a href="#a6109789b4e63e62443fa9433c77525e8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a2d1af56f1e93a7bc88340495e2cb3ffc">set_subwindow</a> (<a class="el" href="group__gdkmmEnums.html#gaae37637a79c9ee9822c925f30748eafd">SubwindowMode</a> mode)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets how drawing with this <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> on a window will affect child windows of that window. <a href="#a2d1af56f1e93a7bc88340495e2cb3ffc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a8d45034c577e55fd350a8556a3c242ff">set_exposures</a> (bool exposures)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets whether copying non-visible portions of a drawable using this graphics context generate exposure events for the corresponding regions of the destination drawable. <a href="#a8d45034c577e55fd350a8556a3c242ff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a6ffd36fdf941a6ee478c15b2d1ec0a10">set_line_attributes</a> (int line_width, <a class="el" href="group__gdkmmEnums.html#gac5dcb29dfe744e4e8b72693b392ac06e">LineStyle</a> line_style, <a class="el" href="group__gdkmmEnums.html#ga8cb10204a21a8576e6977249380ae9a6">CapStyle</a> cap_style, <a class="el" href="group__gdkmmEnums.html#ga91500dd25e90700bb632791263c7d9ec">JoinStyle</a> join_style)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets various attributes of how lines are drawn. <a href="#a6ffd36fdf941a6ee478c15b2d1ec0a10"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#aae81765dc15ad450d56f69219d73ffad">set_dashes</a> (int dash_offset, gint8* dash_list, int n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the way dashed-lines are drawn. <a href="#aae81765dc15ad450d56f69219d73ffad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a212a2bba5970500d0c6a1a9809b734b4">offset</a> (int x_offset, int y_offset)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Offset attributes such as the clip and tile-stipple origins of the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> so that drawing at x - x_offset, y - y_offset with the offset <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> has the same effect as drawing at x, y with the original <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>. <a href="#a212a2bba5970500d0c6a1a9809b734b4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a123478ef0e9046f8ac1d0e1179ef4e04">set_colormap</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&amp; colormap)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the colormap for the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> to the given colormap. <a href="#a123478ef0e9046f8ac1d0e1179ef4e04"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#aa2bed53c761acf6c8bcb80902961b303">get_colormap</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the colormap for a given <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>, if it exists. <a href="#aa2bed53c761acf6c8bcb80902961b303"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#afeebd8928915e5836ed5a2c0d13dcd09">set_rgb_fg_color</a> (const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the foreground color of a <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> using an unallocated color. <a href="#afeebd8928915e5836ed5a2c0d13dcd09"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#acd78b85d14212d71a1af38b8b1524c5d">set_rgb_bg_color</a> (const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp; color)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the background color of a <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> using an unallocated color. <a href="#acd78b85d14212d71a1af38b8b1524c5d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a4f95a093fbc1c0f6c6da4e5d07aa35f4">get_screen</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation...">Gdk::Screen</a> for which <em>gc</em> was created. <a href="#a4f95a093fbc1c0f6c6da4e5d07aa35f4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; const <a class="el" href="classGdk_1_1Screen.html">Screen</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a95a7373f5631650dda36ea5854ffc631">get_screen</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation...">Gdk::Screen</a> for which <em>gc</em> was created. <a href="#a95a7373f5631650dda36ea5854ffc631"></a><br/></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1GC.html">GC</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a64493d4701c3879afee14c44d7f55c60">create</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1GC.html">GC</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a9a9c71d678b9a34bebc851ddf71b1c57">create</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Drawable.html">Drawable</a> &gt;&amp; drawable)</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#ae6cfa690ab8371f66aad8ba8cda66042">GC</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a0f6b3b842762fc7ff949cb3cfe8a21ad">GC</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Drawable.html">Drawable</a> &gt;&amp; drawable)</td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1GC.html">Gdk::GC</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1GC.html#a3f214c3e4eba764b69121a337c862bc1">wrap</a> (GdkGC* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a3f214c3e4eba764b69121a337c862bc1"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>All drawing operations in GDK take a graphics context (<a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>) argument. </p>
<p>A graphics context encapsulates information about the way things are drawn, such as the foreground color or line width. By using graphics contexts, the number of arguments to each drawing call is greatly reduced, and communication overhead is minimized, since identical arguments do not need to be passed repeatedly. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a56dbf2a31cef26e837eccbf2dbb2e1f2"></a><!-- doxytag: member="Gdk::GC::~GC" ref="a56dbf2a31cef26e837eccbf2dbb2e1f2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gdk::GC::~GC </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae6cfa690ab8371f66aad8ba8cda66042"></a><!-- doxytag: member="Gdk::GC::GC" ref="ae6cfa690ab8371f66aad8ba8cda66042" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::GC::GC </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0f6b3b842762fc7ff949cb3cfe8a21ad"></a><!-- doxytag: member="Gdk::GC::GC" ref="a0f6b3b842762fc7ff949cb3cfe8a21ad" args="(const Glib::RefPtr&lt; Drawable &gt; &amp;drawable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::GC::GC </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Drawable.html">Drawable</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>drawable</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [explicit, protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9a9c71d678b9a34bebc851ddf71b1c57"></a><!-- doxytag: member="Gdk::GC::create" ref="a9a9c71d678b9a34bebc851ddf71b1c57" args="(const Glib::RefPtr&lt; Drawable &gt; &amp;drawable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1GC.html">GC</a>&gt; Gdk::GC::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Drawable.html">Drawable</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>drawable</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a64493d4701c3879afee14c44d7f55c60"></a><!-- doxytag: member="Gdk::GC::create" ref="a64493d4701c3879afee14c44d7f55c60" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1GC.html">GC</a>&gt; Gdk::GC::create </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa2bed53c761acf6c8bcb80902961b303"></a><!-- doxytag: member="Gdk::GC::get_colormap" ref="aa2bed53c761acf6c8bcb80902961b303" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Colormap.html">Colormap</a>&gt; Gdk::GC::get_colormap </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the colormap for a given <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>, if it exists. </p>
<p>A <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> will have a colormap if the drawable for which it was created has a colormap, or if a colormap was set explicitely with gdk_gc_set_colormap. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The colormap of <em>gc</em>, or <code>0</code> if <em>gc</em> doesn't have one. </dd></dl>

</div>
</div>
<a class="anchor" id="a95a7373f5631650dda36ea5854ffc631"></a><!-- doxytag: member="Gdk::GC::get_screen" ref="a95a7373f5631650dda36ea5854ffc631" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;const <a class="el" href="classGdk_1_1Screen.html">Screen</a>&gt; Gdk::GC::get_screen </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation...">Gdk::Screen</a> for which <em>gc</em> was created. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000055">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation...">Gdk::Screen</a> for <em>gc</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a4f95a093fbc1c0f6c6da4e5d07aa35f4"></a><!-- doxytag: member="Gdk::GC::get_screen" ref="a4f95a093fbc1c0f6c6da4e5d07aa35f4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt;<a class="el" href="classGdk_1_1Screen.html">Screen</a>&gt; Gdk::GC::get_screen </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation...">Gdk::Screen</a> for which <em>gc</em> was created. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000054">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation...">Gdk::Screen</a> for <em>gc</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a390461c9f64f1df71b760325e45790b8"></a><!-- doxytag: member="Gdk::GC::gobj" ref="a390461c9f64f1df71b760325e45790b8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdkGC* Gdk::GC::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a778a94181132976bbfb0519793f3b32e">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="a8093f885d5735177424a426156b79f3a"></a><!-- doxytag: member="Gdk::GC::gobj" ref="a8093f885d5735177424a426156b79f3a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkGC* Gdk::GC::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C GObject. </p>

<p>Reimplemented from <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html#a4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.</p>

</div>
</div>
<a class="anchor" id="a55936486f1a0b55cfa08eb46bb27630e"></a><!-- doxytag: member="Gdk::GC::gobj_copy" ref="a55936486f1a0b55cfa08eb46bb27630e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkGC* Gdk::GC::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="a212a2bba5970500d0c6a1a9809b734b4"></a><!-- doxytag: member="Gdk::GC::offset" ref="a212a2bba5970500d0c6a1a9809b734b4" args="(int x_offset, int y_offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::offset </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>x_offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>y_offset</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Offset attributes such as the clip and tile-stipple origins of the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> so that drawing at x - x_offset, y - y_offset with the offset <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> has the same effect as drawing at x, y with the original <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x_offset</em>&#160;</td><td>Amount by which to offset the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> in the X direction. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y_offset</em>&#160;</td><td>Amount by which to offset the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> in the Y direction. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ada203718d98a1305eb8c93d5cd2b2356"></a><!-- doxytag: member="Gdk::GC::set_background" ref="ada203718d98a1305eb8c93d5cd2b2356" args="(const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_background </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
          <td class="paramname"> <em>color</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the background color for a graphics context. </p>
<p>Note that this function uses <em>color-&gt;pixel</em>, use <a class="el" href="classGdk_1_1GC.html#acd78b85d14212d71a1af38b8b1524c5d" title="Set the background color of a GC using an unallocated color.">set_rgb_bg_color()</a> to specify the background color as red, green, blue components. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>color</em>&#160;</td><td>The new background color. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acc35c552632d7eb9a46d02de6be952f8"></a><!-- doxytag: member="Gdk::GC::set_clip_mask" ref="acc35c552632d7eb9a46d02de6be952f8" args="(const Glib::RefPtr&lt; Bitmap &gt; &amp;mask)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_clip_mask </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Bitmap.html">Bitmap</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>mask</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the clip mask for a graphics context from a bitmap. </p>
<p>The clip mask is interpreted relative to the clip origin. (See <a class="el" href="classGdk_1_1GC.html#afa0f2fc8b4c78db4feed66b5806db1bf" title="Sets the origin of the clip mask.">set_clip_origin()</a>). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mask</em>&#160;</td><td>A bitmap. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afa0f2fc8b4c78db4feed66b5806db1bf"></a><!-- doxytag: member="Gdk::GC::set_clip_origin" ref="afa0f2fc8b4c78db4feed66b5806db1bf" args="(int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_clip_origin </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>y</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the origin of the clip mask. </p>
<p>The coordinates are interpreted relative to the upper-left corner of the destination drawable of the current operation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&#160;</td><td>The x-coordinate of the origin. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&#160;</td><td>The y-coordinate of the origin. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8df6e778b7312f3f198842aea3f7bb43"></a><!-- doxytag: member="Gdk::GC::set_clip_rectangle" ref="a8df6e778b7312f3f198842aea3f7bb43" args="(const Rectangle &amp;rectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_clip_rectangle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>&amp;&#160;</td>
          <td class="paramname"> <em>rectangle</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the clip mask for a graphics context from a rectangle. </p>
<p>The clip mask is interpreted relative to the clip origin. (See <a class="el" href="classGdk_1_1GC.html#afa0f2fc8b4c78db4feed66b5806db1bf" title="Sets the origin of the clip mask.">set_clip_origin()</a>). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>rectangle</em>&#160;</td><td>The rectangle to clip to. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9f83feb6a71dcea826f80f65f778eff8"></a><!-- doxytag: member="Gdk::GC::set_clip_rectangle" ref="a9f83feb6a71dcea826f80f65f778eff8" args="(Rectangle &amp;rectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_clip_rectangle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classGdk_1_1Rectangle.html">Rectangle</a>&amp;&#160;</td>
          <td class="paramname"> <em>rectangle</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000005">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGdk_1_1GC.html#a8df6e778b7312f3f198842aea3f7bb43" title="Sets the clip mask for a graphics context from a rectangle.">set_clip_rectangle(const Rectangle&amp; rectangle)</a> instead. </dd></dl>

</div>
</div>
<a class="anchor" id="a6109789b4e63e62443fa9433c77525e8"></a><!-- doxytag: member="Gdk::GC::set_clip_region" ref="a6109789b4e63e62443fa9433c77525e8" args="(const Region &amp;region)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_clip_region </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGdk_1_1Region.html">Region</a>&amp;&#160;</td>
          <td class="paramname"> <em>region</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the clip mask for a graphics context from a region structure. </p>
<p>The clip mask is interpreted relative to the clip origin. (See <a class="el" href="classGdk_1_1GC.html#afa0f2fc8b4c78db4feed66b5806db1bf" title="Sets the origin of the clip mask.">set_clip_origin()</a>). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>region</em>&#160;</td><td>The <a class="el" href="classGdk_1_1Region.html" title="This is an opaque data type holding a set of arbitrary pixels, and is usually used...">Gdk::Region</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a123478ef0e9046f8ac1d0e1179ef4e04"></a><!-- doxytag: member="Gdk::GC::set_colormap" ref="a123478ef0e9046f8ac1d0e1179ef4e04" args="(const Glib::RefPtr&lt; Colormap &gt; &amp;colormap)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_colormap </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Colormap.html">Colormap</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>colormap</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the colormap for the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> to the given colormap. </p>
<p>The depth of the colormap's visual must match the depth of the drawable for which the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> was created. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>colormap</em>&#160;</td><td>A <a class="el" href="classGdk_1_1Colormap.html" title="A Colormap is an object that contains the mapping between the color values stored...">Gdk::Colormap</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aae81765dc15ad450d56f69219d73ffad"></a><!-- doxytag: member="Gdk::GC::set_dashes" ref="aae81765dc15ad450d56f69219d73ffad" args="(int dash_offset, gint8 *dash_list, int n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_dashes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>dash_offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">gint8 *&#160;</td>
          <td class="paramname"> <em>dash_list</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>n</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the way dashed-lines are drawn. </p>
<p>Lines will be drawn with alternating on and off segments of the lengths specified in <em>dash_list</em>. The manner in which the on and off segments are drawn is determined by the <em>line_style</em> value of the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>. (This can be changed with <a class="el" href="classGdk_1_1GC.html#a6ffd36fdf941a6ee478c15b2d1ec0a10" title="Sets various attributes of how lines are drawn.">set_line_attributes()</a>.)</p>
<p>The <em>dash_offset</em> defines the phase of the pattern, specifying how many pixels into the dash-list the pattern should actually begin. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>dash_offset</em>&#160;</td><td>The phase of the dash pattern. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>dash_list</em>&#160;</td><td>An array of dash lengths. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>n</em>&#160;</td><td>The number of elements in <em>dash_list</em>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a8d45034c577e55fd350a8556a3c242ff"></a><!-- doxytag: member="Gdk::GC::set_exposures" ref="a8d45034c577e55fd350a8556a3c242ff" args="(bool exposures)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_exposures </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>exposures</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets whether copying non-visible portions of a drawable using this graphics context generate exposure events for the corresponding regions of the destination drawable. </p>
<p>(See gdk_draw_drawable()). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>exposures</em>&#160;</td><td>If <code>true</code>, exposure events will be generated. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae95140c1494e4450ca22fccded72337c"></a><!-- doxytag: member="Gdk::GC::set_fill" ref="ae95140c1494e4450ca22fccded72337c" args="(Fill fill)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_fill </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaf945088bf264cc01bf858c3468d2a451">Fill</a>&#160;</td>
          <td class="paramname"> <em>fill</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the fill mode for a graphics context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>fill</em>&#160;</td><td>The new fill mode. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae16759ef3ee9b3696021369f61d62fea"></a><!-- doxytag: member="Gdk::GC::set_foreground" ref="ae16759ef3ee9b3696021369f61d62fea" args="(const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_foreground </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
          <td class="paramname"> <em>color</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the foreground color for a graphics context. </p>
<p>Note that this function uses <em>color-&gt;pixel</em>, use <a class="el" href="classGdk_1_1GC.html#afeebd8928915e5836ed5a2c0d13dcd09" title="Set the foreground color of a GC using an unallocated color.">set_rgb_fg_color()</a> to specify the foreground color as red, green, blue components. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>color</em>&#160;</td><td>The new foreground color. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ade0340da1088f4ecdde89e9180212e0b"></a><!-- doxytag: member="Gdk::GC::set_function" ref="ade0340da1088f4ecdde89e9180212e0b" args="(Function function)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_function </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaf1365a8c559e749927e68d3ae723a47b">Function</a>&#160;</td>
          <td class="paramname"> <em>function</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Determines how the current pixel values and the pixel values being drawn are combined to produce the final pixel values. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>function</em>&#160;</td><td>The <a class="el" href="group__gdkmmEnums.html#gaf1365a8c559e749927e68d3ae723a47b">Gdk::Function</a> to use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6ffd36fdf941a6ee478c15b2d1ec0a10"></a><!-- doxytag: member="Gdk::GC::set_line_attributes" ref="a6ffd36fdf941a6ee478c15b2d1ec0a10" args="(int line_width, LineStyle line_style, CapStyle cap_style, JoinStyle join_style)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_line_attributes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>line_width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gac5dcb29dfe744e4e8b72693b392ac06e">LineStyle</a>&#160;</td>
          <td class="paramname"> <em>line_style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga8cb10204a21a8576e6977249380ae9a6">CapStyle</a>&#160;</td>
          <td class="paramname"> <em>cap_style</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#ga91500dd25e90700bb632791263c7d9ec">JoinStyle</a>&#160;</td>
          <td class="paramname"> <em>join_style</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets various attributes of how lines are drawn. </p>
<p>See the corresponding members of Gdk::GCValues for full explanations of the arguments. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>line_width</em>&#160;</td><td>The width of lines. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>line_style</em>&#160;</td><td>The dash-style for lines. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>cap_style</em>&#160;</td><td>The manner in which the ends of lines are drawn. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>join_style</em>&#160;</td><td>The in which lines are joined together. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acd78b85d14212d71a1af38b8b1524c5d"></a><!-- doxytag: member="Gdk::GC::set_rgb_bg_color" ref="acd78b85d14212d71a1af38b8b1524c5d" args="(const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_rgb_bg_color </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
          <td class="paramname"> <em>color</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the background color of a <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> using an unallocated color. </p>
<p>The pixel value for the color will be determined using GdkRGB. If the colormap for the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> has not previously been initialized for GdkRGB, then for pseudo-color colormaps (colormaps with a small modifiable number of colors), a colorcube will be allocated in the colormap.</p>
<p>Calling this function for a <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> without a colormap is an error. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>color</em>&#160;</td><td>An unallocated <a class="el" href="classGdk_1_1Color.html" title="Gdk::Color is used to describe an allocated or unallocated color.">Gdk::Color</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afeebd8928915e5836ed5a2c0d13dcd09"></a><!-- doxytag: member="Gdk::GC::set_rgb_fg_color" ref="afeebd8928915e5836ed5a2c0d13dcd09" args="(const Color &amp;color)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_rgb_fg_color </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGdk_1_1Color.html">Color</a>&amp;&#160;</td>
          <td class="paramname"> <em>color</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the foreground color of a <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> using an unallocated color. </p>
<p>The pixel value for the color will be determined using GdkRGB. If the colormap for the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> has not previously been initialized for GdkRGB, then for pseudo-color colormaps (colormaps with a small modifiable number of colors), a colorcube will be allocated in the colormap.</p>
<p>Calling this function for a <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> without a colormap is an error. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>color</em>&#160;</td><td>An unallocated <a class="el" href="classGdk_1_1Color.html" title="Gdk::Color is used to describe an allocated or unallocated color.">Gdk::Color</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af6c8c1f159ab300994417aa6d1a2ff4a"></a><!-- doxytag: member="Gdk::GC::set_stipple" ref="af6c8c1f159ab300994417aa6d1a2ff4a" args="(const Glib::RefPtr&lt; Pixmap &gt; &amp;stipple)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_stipple </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>stipple</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the stipple bitmap for a graphics context. </p>
<p>The stipple will only be used if the fill mode is <a class="el" href="group__gdkmmEnums.html#ggaf945088bf264cc01bf858c3468d2a451a63132d7995c2c73fb2054ec7e83fbbae">Gdk::STIPPLED</a> or <a class="el" href="group__gdkmmEnums.html#ggaf945088bf264cc01bf858c3468d2a451a1fbda420001d70dfd5a66deb2e6b0e68">Gdk::OPAQUE_STIPPLED</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>stipple</em>&#160;</td><td>The new stipple bitmap. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2d1af56f1e93a7bc88340495e2cb3ffc"></a><!-- doxytag: member="Gdk::GC::set_subwindow" ref="a2d1af56f1e93a7bc88340495e2cb3ffc" args="(SubwindowMode mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_subwindow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaae37637a79c9ee9822c925f30748eafd">SubwindowMode</a>&#160;</td>
          <td class="paramname"> <em>mode</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets how drawing with this <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a> on a window will affect child windows of that window. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>mode</em>&#160;</td><td>The subwindow mode. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aae51d032ddbea405bb177268cab521cc"></a><!-- doxytag: member="Gdk::GC::set_tile" ref="aae51d032ddbea405bb177268cab521cc" args="(const Glib::RefPtr&lt; Pixmap &gt; &amp;tile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_tile </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1Pixmap.html">Pixmap</a> &gt;&amp;&#160;</td>
          <td class="paramname"> <em>tile</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set a tile pixmap for a graphics context. </p>
<p>This will only be used if the fill mode is <a class="el" href="group__gdkmmEnums.html#ggaf945088bf264cc01bf858c3468d2a451a460f0dd9d59304ecc0f1e31d7d0cd652">Gdk::TILED</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>tile</em>&#160;</td><td>The new tile pixmap. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a86994e1325f39ae18278cbd6c298bcac"></a><!-- doxytag: member="Gdk::GC::set_ts_origin" ref="a86994e1325f39ae18278cbd6c298bcac" args="(int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Gdk::GC::set_ts_origin </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>y</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the origin when using tiles or stipples with the <a class="el" href="classGdk_1_1GC.html" title="All drawing operations in GDK take a graphics context (GC) argument.">GC</a>. </p>
<p>The tile or stipple will be aligned such that the upper left corner of the tile or stipple will coincide with this point. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>x</em>&#160;</td><td>The x-coordinate of the origin. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>y</em>&#160;</td><td>The y-coordinate of the origin. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a3f214c3e4eba764b69121a337c862bc1"></a><!-- doxytag: member="Gdk::GC::wrap" ref="a3f214c3e4eba764b69121a337c862bc1" args="(GdkGC *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>&lt; <a class="el" href="classGdk_1_1GC.html">Gdk::GC</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdkGC *&#160;</td>
          <td class="paramname"> <em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>take_copy</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>object</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>take_copy</em>&#160;</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>gdkmm/gc.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:21:44 2010 for gtkmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>