1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>gtkmm 2.4: Gdk::Visual Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<table border="0" width="100%">
<tr>
<td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td>
<td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td>
</tr>
</table>
<center>
<a class="qindex" href="../../index.html">Main Page</a>
<a href="group__Widgets.html">Widgets</a>
<a class="qindex" href="namespaces.html"> Namespaces</a>
<a href="../../tutorial/html/index.html"> Book</a>
</center>
<hr width="100%"/>
<!-- begin main content -->
<div id="content">
<!-- Generated by Doxygen 1.5.1 -->
<div class="nav">
<a class="el" href="namespaceGdk.html">Gdk</a>::<a class="el" href="classGdk_1_1Visual.html">Visual</a></div>
<h1>Gdk::Visual Class Reference</h1><!-- doxytag: class="Gdk::Visual" --><!-- doxytag: inherits="Glib::Object" -->Inheritance diagram for Gdk::Visual:<p><center><img src="classGdk_1_1Visual__inherit__graph.png" border="0" usemap="#Gdk_1_1Visual__inherit__map" alt="Inheritance graph"></center>
<map name="Gdk_1_1Visual__inherit__map">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1Object.html" shape="rect" coords="21,161,115,188" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html" shape="rect" coords="5,84,131,111" alt="">
<area doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classsigc_1_1trackable.html" shape="rect" coords="12,7,124,33" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGdk_1_1Visual-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classGdk_1_1Visual.html">Gdk::Visual</a> describes a particular video hardware display format.
<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>
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">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">Gdk::Colormap</a>, the visual is implied as part of the colormap (<a class="el" href="classGdk_1_1Colormap.html#90d5e438d78992e2030832a196ac222b">Gdk::Colormap::get_visual()</a>), so you won't have to provide a visual in addition.<p>
There are several standard visuals. The visual returned by <a class="el" href="classGdk_1_1Visual.html#4724a117dabcb795c406fea0172e3d08">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>
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>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Screen.html">Screen</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#7aae4ebbb49de2e3bb5f4d36cdeb7259">get_screen</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the screen to which this visual belongs. <a href="#7aae4ebbb49de2e3bb5f4d36cdeb7259"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#7e10f47bbec94749bf683969e52927a5">get_screen</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the screen to which this visual belongs. <a href="#7e10f47bbec94749bf683969e52927a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const GdkVisual* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#5a87c6999237ccdccca903955d45acb8">gobj</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#5a87c6999237ccdccca903955d45acb8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdkVisual* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#23e5a76ba206f65d763186a9161b1f00">gobj</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GObject. <a href="#23e5a76ba206f65d763186a9161b1f00"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">GdkVisual* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#ac860c63e6f3740145653aef122bdf11">gobj_copy</a> ()</td></tr>
<tr><td class="mdescLeft"> </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="#ac860c63e6f3740145653aef122bdf11"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#3e1b56ed29c8c6b4a9b54a4bc14a64a8">~Visual</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#a58e64d37a98afc31f4a09412b558863">get_best</a> (int depth, <a class="el" href="group__gdkmmEnums.html#gf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> visual_type)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type(). <a href="#a58e64d37a98afc31f4a09412b558863"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#23a87ca05f0ff38962c341fad1698239">get_best</a> (<a class="el" href="group__gdkmmEnums.html#gf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> visual_type)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the best visual of the given <em>visual_type</em> for the default GDK screen. <a href="#23a87ca05f0ff38962c341fad1698239"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#2f44b4029c4b3091f567903f6991e88a">get_best</a> (int depth)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the best visual with depth <em>depth</em> for the default GDK screen. <a href="#2f44b4029c4b3091f567903f6991e88a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#8d67541c7ac1cca24b20f1e04a654c9e">get_best</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the visual with the most available colors for the default GDK screen. <a href="#8d67541c7ac1cca24b20f1e04a654c9e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#4033654c987ba7208b7f1ab8e53c04a2">get_best_depth</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the best available depth for the default GDK screen. <a href="#4033654c987ba7208b7f1ab8e53c04a2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="group__gdkmmEnums.html#gf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#9653abce581c94fca4dca322ffb4e16d">get_best_type</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the best available visual type for the default GDK screen. <a href="#9653abce581c94fca4dca322ffb4e16d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#4724a117dabcb795c406fea0172e3d08">get_system</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the system'sdefault visual for the default GDK screen. <a href="#4724a117dabcb795c406fea0172e3d08"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#04412275c902225a6bd103d0a5f3ad2e">Visual</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Gdk::Visual</a>> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGdk_1_1Visual.html#151170bd9f613ba53f811871166a6f55">wrap</a> (GdkVisual* object, bool take_copy=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#151170bd9f613ba53f811871166a6f55"></a><br></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="3e1b56ed29c8c6b4a9b54a4bc14a64a8"></a><!-- doxytag: member="Gdk::Visual::~Visual" ref="3e1b56ed29c8c6b4a9b54a4bc14a64a8" 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> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="04412275c902225a6bd103d0a5f3ad2e"></a><!-- doxytag: member="Gdk::Visual::Visual" ref="04412275c902225a6bd103d0a5f3ad2e" 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> ) </td>
<td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a58e64d37a98afc31f4a09412b558863"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="a58e64d37a98afc31f4a09412b558863" args="(int depth, VisualType visual_type)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> Gdk::Visual::get_best </td>
<td>(</td>
<td class="paramtype">int </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#gf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> </td>
<td class="paramname"> <em>visual_type</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><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 compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>depth</em> </td><td>A bit depth. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>visual_type</em> </td><td>A visual type. </td></tr>
</table>
</dl>
<dl class="return" compact><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><p>
<a class="anchor" name="23a87ca05f0ff38962c341fad1698239"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="23a87ca05f0ff38962c341fad1698239" args="(VisualType visual_type)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> Gdk::Visual::get_best </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__gdkmmEnums.html#gf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> </td>
<td class="paramname"> <em>visual_type</em> </td>
<td> ) </td>
<td width="100%"><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>
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> . <dl compact><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> </td><td>A visual type. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Best visual of the given type. </dd></dl>
</div>
</div><p>
<a class="anchor" name="2f44b4029c4b3091f567903f6991e88a"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="2f44b4029c4b3091f567903f6991e88a" args="(int depth)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> Gdk::Visual::get_best </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>depth</em> </td>
<td> ) </td>
<td width="100%"><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>
<a class="el" href="classGdk_1_1Color.html">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> . <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>depth</em> </td><td>A bit depth. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Best visual for the given depth. </dd></dl>
</div>
</div><p>
<a class="anchor" name="8d67541c7ac1cca24b20f1e04a654c9e"></a><!-- doxytag: member="Gdk::Visual::get_best" ref="8d67541c7ac1cca24b20f1e04a654c9e" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> Gdk::Visual::get_best </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><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>
The return value should not be freed. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Best visual. </dd></dl>
</div>
</div><p>
<a class="anchor" name="4033654c987ba7208b7f1ab8e53c04a2"></a><!-- doxytag: member="Gdk::Visual::get_best_depth" ref="4033654c987ba7208b7f1ab8e53c04a2" 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> ) </td>
<td width="100%"><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the best available depth for the default GDK screen.
<p>
"Best" means "largest," i.e. 32 preferred over 24 preferred over 8 bits per pixel. <dl class="return" compact><dt><b>Returns:</b></dt><dd>Best available depth. </dd></dl>
</div>
</div><p>
<a class="anchor" name="9653abce581c94fca4dca322ffb4e16d"></a><!-- doxytag: member="Gdk::Visual::get_best_type" ref="9653abce581c94fca4dca322ffb4e16d" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="group__gdkmmEnums.html#gf51d8a92358be17e8bdcbe2a229d1620">VisualType</a> Gdk::Visual::get_best_type </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><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" compact><dt><b>Returns:</b></dt><dd>Best visual type. </dd></dl>
</div>
</div><p>
<a class="anchor" name="7aae4ebbb49de2e3bb5f4d36cdeb7259"></a><!-- doxytag: member="Gdk::Visual::get_screen" ref="7aae4ebbb49de2e3bb5f4d36cdeb7259" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGdk_1_1Screen.html">Screen</a>> Gdk::Visual::get_screen </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the screen to which this visual belongs.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The screen to which this visual belongs.</dd></dl>
<dl compact><dt><b><a class="el" href="newin2p2s.html#_newin2p2s000087">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
</div>
</div><p>
<a class="anchor" name="7e10f47bbec94749bf683969e52927a5"></a><!-- doxytag: member="Gdk::Visual::get_screen" ref="7e10f47bbec94749bf683969e52927a5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Screen.html">Screen</a>> Gdk::Visual::get_screen </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Gets the screen to which this visual belongs.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The screen to which this visual belongs.</dd></dl>
<dl compact><dt><b><a class="el" href="newin2p2s.html#_newin2p2s000086">Since gtkmm 2.2:</a></b></dt><dd></dd></dl>
</div>
</div><p>
<a class="anchor" name="4724a117dabcb795c406fea0172e3d08"></a><!-- doxytag: member="Gdk::Visual::get_system" ref="4724a117dabcb795c406fea0172e3d08" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Visual</a>> Gdk::Visual::get_system </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the system'sdefault visual for the default GDK screen.
<p>
This is the visual for the root window of the display. The return value should not be freed. <dl class="return" compact><dt><b>Returns:</b></dt><dd>System visual. </dd></dl>
</div>
</div><p>
<a class="anchor" name="5a87c6999237ccdccca903955d45acb8"></a><!-- doxytag: member="Gdk::Visual::gobj" ref="5a87c6999237ccdccca903955d45acb8" 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> ) </td>
<td width="100%"> 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" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#2b7010748d60e770e9e0b3d65c100cf2">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="23e5a76ba206f65d763186a9161b1f00"></a><!-- doxytag: member="Gdk::Visual::gobj" ref="23e5a76ba206f65d763186a9161b1f00" 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> ) </td>
<td width="100%"><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" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1ObjectBase.html#4c6efc18be8cb9c56e58fc0bd20fafbe">Glib::ObjectBase</a>.
</div>
</div><p>
<a class="anchor" name="ac860c63e6f3740145653aef122bdf11"></a><!-- doxytag: member="Gdk::Visual::gobj_copy" ref="ac860c63e6f3740145653aef122bdf11" 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> ) </td>
<td width="100%"></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><p>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="151170bd9f613ba53f811871166a6f55"></a><!-- doxytag: member="Gdk::Visual::wrap" ref="151170bd9f613ba53f811871166a6f55" args="(GdkVisual *object, bool take_copy=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGdk_1_1Visual.html">Gdk::Visual</a>> wrap </td>
<td>(</td>
<td class="paramtype">GdkVisual * </td>
<td class="paramname"> <em>object</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>take_copy</em> = <code>false</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [related]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
A <a class="elRef" doxygen="glibmm_doxygen_tags:../../../../glibmm-2.4/docs/reference/html/" href="../../../../glibmm-2.4/docs/reference/html/namespaceGlib.html#671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>object</em> </td><td>The C instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>take_copy</em> </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>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="visual_8h.html">visual.h</a></ul>
</div>
<!-- end main content -->
<hr><address><small>
Generated for gtkmm 2.4 by <a href="http://www.doxygen.org/index.html">
Doxygen</a> 1.5.1 © 1997-2001</small></address>
</body>
</html>
|