summaryrefslogtreecommitdiff
path: root/gdk/gdkvisual.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-11-15 17:05:05 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-16 16:20:48 +0900
commit4593df1ef5a440577f0add13e86e623b3854eb6e (patch)
treee3d82fe732a4ecc8336de8dd133138ba0d5db64f /gdk/gdkvisual.c
parent2adf42746713f0928931c09292a1bc6257b02261 (diff)
downloadgtk+-4593df1ef5a440577f0add13e86e623b3854eb6e.tar.gz
docs: Move documentation to inline comments: gdkvisual
Diffstat (limited to 'gdk/gdkvisual.c')
-rw-r--r--gdk/gdkvisual.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gdk/gdkvisual.c b/gdk/gdkvisual.c
index ea4c07f268..cba4a7b3d3 100644
--- a/gdk/gdkvisual.c
+++ b/gdk/gdkvisual.c
@@ -29,6 +29,33 @@
/**
+ * SECTION:visuals
+ * @Short_description: Low-level display hardware information
+ * @Title: Visuals
+ *
+ * A #GdkVisual describes a particular video hardware display format. 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.
+ *
+ * There are several standard visuals. The visual returned by
+ * gdk_screen_get_system_visual() is the system's default visual.
+ *
+ * A number of functions 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.
+ */
+
+
+/**
* gdk_list_visuals:
*
* Lists the available visuals for the default screen.