Sophie

Sophie

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

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::Visual 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_1Visual.html">Visual</a>
  </div>
</div>
<div class="contents">
<h1>Gdk::Visual Class Reference</h1><!-- doxytag: class="Gdk::Visual" --><!-- doxytag: inherits="Glib::Object" -->
<p>A <a class="el" href="classGdk_1_1Visual.html" title="A Gdk::Visual describes a particular video hardware display format.">Gdk::Visual</a> describes a particular video hardware display format. <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::Visual:</div>
<div class="dynsection">
<div class="center"><img src="classGdk_1_1Visual__coll__graph.png" border="0" usemap="#Gdk_1_1Visual_coll__map" alt="Collaboration graph"/></div>
<map name="Gdk_1_1Visual_coll__map" id="Gdk_1_1Visual_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_1Visual-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_1Visual.html#a3e1b56ed29c8c6b4a9b54a4bc14a64a8">~Visual</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkVisual*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a23e5a76ba206f65d763186a9161b1f00">gobj</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a23e5a76ba206f65d763186a9161b1f00"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const GdkVisual*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a3452bcc88c3ef7b9d9d1489ac84e3629">gobj</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#a3452bcc88c3ef7b9d9d1489ac84e3629"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GdkVisual*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#aac860c63e6f3740145653aef122bdf11">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="#aac860c63e6f3740145653aef122bdf11"></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_1Visual.html#a7e10f47bbec94749bf683969e52927a5">get_screen</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the screen to which this visual belongs. <a href="#a7e10f47bbec94749bf683969e52927a5"></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_1Visual.html#a194d4df865f1a72171bae1de27571ca4">get_screen</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the screen to which this visual belongs. <a href="#a194d4df865f1a72171bae1de27571ca4"></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_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a4724a117dabcb795c406fea0172e3d08">get_system</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the system's default visual for the default GDK screen. <a href="#a4724a117dabcb795c406fea0172e3d08"></a><br/></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_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a8d67541c7ac1cca24b20f1e04a654c9e">get_best</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the visual with the most available colors for the default GDK screen. <a href="#a8d67541c7ac1cca24b20f1e04a654c9e"></a><br/></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_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a2f44b4029c4b3091f567903f6991e88a">get_best</a> (int depth)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the best visual with depth <em>depth</em> for the default GDK screen. <a href="#a2f44b4029c4b3091f567903f6991e88a"></a><br/></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_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a23a87ca05f0ff38962c341fad1698239">get_best</a> (<a class="el" href="group__gdkmmEnums.html#gaf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> visual_type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the best visual of the given <em>visual_type</em> for the default GDK screen. <a href="#a23a87ca05f0ff38962c341fad1698239"></a><br/></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_1Visual.html">Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#aa58e64d37a98afc31f4a09412b558863">get_best</a> (int depth, <a class="el" href="group__gdkmmEnums.html#gaf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> visual_type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type(). <a href="#aa58e64d37a98afc31f4a09412b558863"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a4033654c987ba7208b7f1ab8e53c04a2">get_best_depth</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the best available depth for the default GDK screen. <a href="#a4033654c987ba7208b7f1ab8e53c04a2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="group__gdkmmEnums.html#gaf51d8a92358be17e8bdcbe2a229d1620">VisualType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a9653abce581c94fca4dca322ffb4e16d">get_best_type</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the best available visual type for the default GDK screen. <a href="#a9653abce581c94fca4dca322ffb4e16d"></a><br/></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_1Visual.html#a04412275c902225a6bd103d0a5f3ad2e">Visual</a> ()</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_1Visual.html">Gdk::Visual</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a151170bd9f613ba53f811871166a6f55">wrap</a> (GdkVisual* 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="#a151170bd9f613ba53f811871166a6f55"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A <a class="el" href="classGdk_1_1Visual.html" title="A Gdk::Visual describes a particular video hardware display format.">Gdk::Visual</a> describes a particular video hardware display format. </p>
<p>It includes information about the number of bits used for each color, the way the bits are translated into an RGB value for display, and the way the bits are stored in memory. For example, a piece of display hardware might support 24-bit color, 16-bit color, or 8-bit color; meaning 24/16/8-bit pixel sizes. For a given pixel size, pixels can be in different formats; for example the "red" element of an RGB pixel may be in the top 8 bits of the pixel, or may be in the lower 4 bits.</p>
<p>Usually you can avoid thinking about visuals in GTK+. Visuals are useful to interpret the contents of a GdkImage, but you should avoid <a class="el" href="classGdk_1_1Image.html" title="This represents an area for drawing graphics.">Gdk::Image</a> precisely because its contents depend on the display hardware; use <a class="el" href="classGdk_1_1Pixbuf.html">Gdk::Pixbuf</a> instead, for all but the most low-level purposes. Also, anytime you provide 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>, the visual is implied as part of the colormap (<a class="el" href="classGdk_1_1Colormap.html#a90d5e438d78992e2030832a196ac222b" title="Returns the visual for which a given colormap was created.">Gdk::Colormap::get_visual()</a>), so you won't have to provide a visual in addition.</p>
<p>There are several standard visuals. The visual returned by <a class="el" href="classGdk_1_1Visual.html#a4724a117dabcb795c406fea0172e3d08" title="Get the system&#39;s default visual for the default GDK screen.">get_system()</a> is the system's default visual. get_visual() returns the visual most suited to displaying full-color image data. If you use the calls in Gdk::RGB, you should create your windows using this visual (and the colormap returned by Gdk::Rgb::get_colormap()).</p>
<p>A number of methods are provided for determining the "best" available visual. For the purposes of making this determination, higher bit depths are considered better, and for visuals of the same bit depth, GDK_VISUAL_PSEUDO_COLOR is preferred at 8bpp, otherwise, the visual types are ranked in the order of (highest to lowest) GDK_VISUAL_DIRECT_COLOR, GDK_VISUAL_TRUE_COLOR, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, GDK_VISUAL_GRAYSCALE, then GDK_VISUAL_STATIC_GRAY. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a3e1b56ed29c8c6b4a9b54a4bc14a64a8"></a><!-- doxytag: member="Gdk::Visual::~Visual" ref="a3e1b56ed29c8c6b4a9b54a4bc14a64a8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Gdk::Visual::~Visual </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="a04412275c902225a6bd103d0a5f3ad2e"></a><!-- doxytag: member="Gdk::Visual::Visual" ref="a04412275c902225a6bd103d0a5f3ad2e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Gdk::Visual::Visual </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa58e64d37a98afc31f4a09412b558863"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="aa58e64d37a98afc31f4a09412b558863" args="(int depth, VisualType visual_type)" -->
<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_1Visual.html">Visual</a>&gt; Gdk::Visual::get_best </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>depth</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaf51d8a92358be17e8bdcbe2a229d1620">VisualType</a>&#160;</td>
          <td class="paramname"> <em>visual_type</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type(). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>depth</em>&#160;</td><td>A bit depth. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>visual_type</em>&#160;</td><td>A visual type. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Best visual with both <em>depth</em> and <em>visual_type</em>, or <code>0</code> if none. </dd></dl>

</div>
</div>
<a class="anchor" id="a23a87ca05f0ff38962c341fad1698239"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="a23a87ca05f0ff38962c341fad1698239" args="(VisualType visual_type)" -->
<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_1Visual.html">Visual</a>&gt; Gdk::Visual::get_best </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gaf51d8a92358be17e8bdcbe2a229d1620">VisualType</a>&#160;</td>
          <td class="paramname"> <em>visual_type</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the best visual of the given <em>visual_type</em> for the default GDK screen. </p>
<p>Visuals with higher color depths are considered better. The return value should not be freed. <code>0</code> may be returned if no visual has type <em>visual_type</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>visual_type</em>&#160;</td><td>A visual type. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Best visual of the given type. </dd></dl>

</div>
</div>
<a class="anchor" id="a2f44b4029c4b3091f567903f6991e88a"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="a2f44b4029c4b3091f567903f6991e88a" args="(int depth)" -->
<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_1Visual.html">Visual</a>&gt; Gdk::Visual::get_best </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"> <em>depth</em></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the best visual with depth <em>depth</em> for the default GDK screen. </p>
<p><a class="el" href="classGdk_1_1Color.html" title="Gdk::Color is used to describe an allocated or unallocated color.">Color</a> visuals and visuals with mutable colormaps are preferred over grayscale or fixed-colormap visuals. The return value should not be freed. <code>0</code> may be returned if no visual supports <em>depth</em>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>depth</em>&#160;</td><td>A bit depth. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Best visual for the given depth. </dd></dl>

</div>
</div>
<a class="anchor" id="a8d67541c7ac1cca24b20f1e04a654c9e"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="a8d67541c7ac1cca24b20f1e04a654c9e" 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_1Visual.html">Visual</a>&gt; Gdk::Visual::get_best </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the visual with the most available colors for the default GDK screen. </p>
<p>The return value should not be freed. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Best visual. </dd></dl>

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

<p>Get the best available depth for the default GDK screen. </p>
<p>"Best" means "largest," i.e. 32 preferred over 24 preferred over 8 bits per pixel. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Best available depth. </dd></dl>

</div>
</div>
<a class="anchor" id="a9653abce581c94fca4dca322ffb4e16d"></a><!-- doxytag: member="Gdk::Visual::get_best_type" ref="a9653abce581c94fca4dca322ffb4e16d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="group__gdkmmEnums.html#gaf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> Gdk::Visual::get_best_type </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the best available visual type for the default GDK screen. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Best visual type. </dd></dl>

</div>
</div>
<a class="anchor" id="a194d4df865f1a72171bae1de27571ca4"></a><!-- doxytag: member="Gdk::Visual::get_screen" ref="a194d4df865f1a72171bae1de27571ca4" 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::Visual::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 screen to which this visual belongs. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000086">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The screen to which this visual belongs. </dd></dl>

</div>
</div>
<a class="anchor" id="a7e10f47bbec94749bf683969e52927a5"></a><!-- doxytag: member="Gdk::Visual::get_screen" ref="a7e10f47bbec94749bf683969e52927a5" 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::Visual::get_screen </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the screen to which this visual belongs. </p>
<dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000085">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The screen to which this visual belongs. </dd></dl>

</div>
</div>
<a class="anchor" id="a4724a117dabcb795c406fea0172e3d08"></a><!-- doxytag: member="Gdk::Visual::get_system" ref="a4724a117dabcb795c406fea0172e3d08" 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_1Visual.html">Visual</a>&gt; Gdk::Visual::get_system </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the system's default visual for the default GDK screen. </p>
<p>This is the visual for the root window of the display. The return value should not be freed. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>System visual. </dd></dl>

</div>
</div>
<a class="anchor" id="a3452bcc88c3ef7b9d9d1489ac84e3629"></a><!-- doxytag: member="Gdk::Visual::gobj" ref="a3452bcc88c3ef7b9d9d1489ac84e3629" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const GdkVisual* Gdk::Visual::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="a23e5a76ba206f65d763186a9161b1f00"></a><!-- doxytag: member="Gdk::Visual::gobj" ref="a23e5a76ba206f65d763186a9161b1f00" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkVisual* Gdk::Visual::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="aac860c63e6f3740145653aef122bdf11"></a><!-- doxytag: member="Gdk::Visual::gobj_copy" ref="aac860c63e6f3740145653aef122bdf11" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GdkVisual* Gdk::Visual::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>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a151170bd9f613ba53f811871166a6f55"></a><!-- doxytag: member="Gdk::Visual::wrap" ref="a151170bd9f613ba53f811871166a6f55" args="(GdkVisual *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_1Visual.html">Gdk::Visual</a> &gt; wrap </td>
          <td>(</td>
          <td class="paramtype">GdkVisual *&#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/visual.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>