~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/reference/gdk/html/gdk-GdkRGB.html

  • Committer: Package Import Robot
  • Author(s): Josselin Mouette
  • Date: 2011-09-02 17:17:47 UTC
  • mto: (72.4.15 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20110902171747-i8dr3czswn2sk7tu
Tags: upstream-2.24.6
Import upstream version 2.24.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-draw-rgb-image" title="gdk_draw_rgb_image ()">gdk_draw_rgb_image</a>                  (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
46
46
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
47
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
48
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
49
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
50
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
47
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
48
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
49
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
50
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
51
51
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
52
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb_buf</code></em>,
53
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>);
 
52
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *rgb_buf</code></em>,
 
53
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>);
54
54
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-draw-rgb-image-dithalign" title="gdk_draw_rgb_image_dithalign ()">gdk_draw_rgb_image_dithalign</a>        (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
55
55
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
56
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
57
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
58
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
59
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
56
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
57
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
58
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
59
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
60
60
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
61
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb_buf</code></em>,
62
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>,
63
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xdith</code></em>,
64
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ydith</code></em>);
 
61
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *rgb_buf</code></em>,
 
62
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>,
 
63
                                                         <em class="parameter"><code><span class="type">gint</span> xdith</code></em>,
 
64
                                                         <em class="parameter"><code><span class="type">gint</span> ydith</code></em>);
65
65
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-draw-indexed-image" title="gdk_draw_indexed_image ()">gdk_draw_indexed_image</a>              (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
66
66
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
67
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
68
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
69
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
70
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
67
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
68
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
69
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
70
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
71
71
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
72
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
73
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>,
 
72
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
73
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>,
74
74
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap"><span class="type">GdkRgbCmap</span></a> *cmap</code></em>);
75
75
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-draw-gray-image" title="gdk_draw_gray_image ()">gdk_draw_gray_image</a>                 (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
76
76
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
77
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
78
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
79
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
80
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
77
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
78
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
79
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
80
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
81
81
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
82
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
83
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>);
 
82
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
83
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>);
84
84
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-draw-rgb-32-image" title="gdk_draw_rgb_32_image ()">gdk_draw_rgb_32_image</a>               (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
85
85
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
86
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
87
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
88
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
89
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
86
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
87
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
88
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
89
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
90
90
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
91
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
92
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>);
 
91
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
92
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>);
93
93
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-draw-rgb-32-image-dithalign" title="gdk_draw_rgb_32_image_dithalign ()">gdk_draw_rgb_32_image_dithalign</a>     (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
94
94
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
95
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
96
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
97
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
98
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
95
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
96
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
97
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
98
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
99
99
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
100
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
101
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>,
102
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xdith</code></em>,
103
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ydith</code></em>);
 
100
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
101
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>,
 
102
                                                         <em class="parameter"><code><span class="type">gint</span> xdith</code></em>,
 
103
                                                         <em class="parameter"><code><span class="type">gint</span> ydith</code></em>);
104
104
enum                <a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither">GdkRgbDither</a>;
105
105
 
106
 
<a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap"><span class="returnvalue">GdkRgbCmap</span></a> *        <a class="link" href="gdk-GdkRGB.html#gdk-rgb-cmap-new" title="gdk_rgb_cmap_new ()">gdk_rgb_cmap_new</a>                    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *colors</code></em>,
107
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_colors</code></em>);
 
106
<a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap"><span class="returnvalue">GdkRgbCmap</span></a> *        <a class="link" href="gdk-GdkRGB.html#gdk-rgb-cmap-new" title="gdk_rgb_cmap_new ()">gdk_rgb_cmap_new</a>                    (<em class="parameter"><code><span class="type">guint32</span> *colors</code></em>,
 
107
                                                         <em class="parameter"><code><span class="type">gint</span> n_colors</code></em>);
108
108
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-cmap-free" title="gdk_rgb_cmap_free ()">gdk_rgb_cmap_free</a>                   (<em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap"><span class="type">GdkRgbCmap</span></a> *cmap</code></em>);
109
109
struct              <a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap">GdkRgbCmap</a>;
110
110
 
111
111
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-gc-set-foreground" title="gdk_rgb_gc_set_foreground ()">gdk_rgb_gc_set_foreground</a>           (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
112
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);
 
112
                                                         <em class="parameter"><code><span class="type">guint32</span> rgb</code></em>);
113
113
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-gc-set-background" title="gdk_rgb_gc_set_background ()">gdk_rgb_gc_set_background</a>           (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
114
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);
115
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>              <a class="link" href="gdk-GdkRGB.html#gdk-rgb-xpixel-from-rgb" title="gdk_rgb_xpixel_from_rgb ()">gdk_rgb_xpixel_from_rgb</a>             (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);
 
114
                                                         <em class="parameter"><code><span class="type">guint32</span> rgb</code></em>);
 
115
<span class="returnvalue">gulong</span>              <a class="link" href="gdk-GdkRGB.html#gdk-rgb-xpixel-from-rgb" title="gdk_rgb_xpixel_from_rgb ()">gdk_rgb_xpixel_from_rgb</a>             (<em class="parameter"><code><span class="type">guint32</span> rgb</code></em>);
116
116
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-find-color" title="gdk_rgb_find_color ()">gdk_rgb_find_color</a>                  (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *colormap</code></em>,
117
117
                                                         <em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor" title="GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);
118
118
 
119
 
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-set-install" title="gdk_rgb_set_install ()">gdk_rgb_set_install</a>                 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> install</code></em>);
120
 
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-set-min-colors" title="gdk_rgb_set_min_colors ()">gdk_rgb_set_min_colors</a>              (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> min_colors</code></em>);
 
119
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-set-install" title="gdk_rgb_set_install ()">gdk_rgb_set_install</a>                 (<em class="parameter"><code><span class="type">gboolean</span> install</code></em>);
 
120
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-set-min-colors" title="gdk_rgb_set_min_colors ()">gdk_rgb_set_min_colors</a>              (<em class="parameter"><code><span class="type">gint</span> min_colors</code></em>);
121
121
<a class="link" href="gdk-Visuals.html#GdkVisual" title="GdkVisual"><span class="returnvalue">GdkVisual</span></a> *         <a class="link" href="gdk-GdkRGB.html#gdk-rgb-get-visual" title="gdk_rgb_get_visual ()">gdk_rgb_get_visual</a>                  (<em class="parameter"><code><span class="type">void</span></code></em>);
122
122
<a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="returnvalue">GdkColormap</span></a> *       <a class="link" href="gdk-GdkRGB.html#gdk-rgb-get-colormap" title="gdk_rgb_get_colormap ()">gdk_rgb_get_colormap</a>                (<em class="parameter"><code><span class="type">void</span></code></em>);
123
123
#define             <a class="link" href="gdk-GdkRGB.html#gdk-rgb-get-cmap" title="gdk_rgb_get_cmap">gdk_rgb_get_cmap</a>
124
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gdk-GdkRGB.html#gdk-rgb-ditherable" title="gdk_rgb_ditherable ()">gdk_rgb_ditherable</a>                  (<em class="parameter"><code><span class="type">void</span></code></em>);
125
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gdk-GdkRGB.html#gdk-rgb-colormap-ditherable" title="gdk_rgb_colormap_ditherable ()">gdk_rgb_colormap_ditherable</a>         (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *cmap</code></em>);
126
 
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-set-verbose" title="gdk_rgb_set_verbose ()">gdk_rgb_set_verbose</a>                 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> verbose</code></em>);
 
124
<span class="returnvalue">gboolean</span>            <a class="link" href="gdk-GdkRGB.html#gdk-rgb-ditherable" title="gdk_rgb_ditherable ()">gdk_rgb_ditherable</a>                  (<em class="parameter"><code><span class="type">void</span></code></em>);
 
125
<span class="returnvalue">gboolean</span>            <a class="link" href="gdk-GdkRGB.html#gdk-rgb-colormap-ditherable" title="gdk_rgb_colormap_ditherable ()">gdk_rgb_colormap_ditherable</a>         (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *cmap</code></em>);
 
126
<span class="returnvalue">void</span>                <a class="link" href="gdk-GdkRGB.html#gdk-rgb-set-verbose" title="gdk_rgb_set_verbose ()">gdk_rgb_set_verbose</a>                 (<em class="parameter"><code><span class="type">gboolean</span> verbose</code></em>);
127
127
</pre>
128
128
</div>
129
129
<div class="refsect1">
161
161
by setting the GDK_DISABLE_MEDIALIB environment variable.
162
162
</p>
163
163
<div class="example">
164
 
<a name="id660849"></a><p class="title"><b>Example 4. A simple example program using GdkRGB</b></p>
 
164
<a name="id525529"></a><p class="title"><b>Example 4. A simple example program using GdkRGB</b></p>
165
165
<div class="example-contents">
166
166
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
167
167
    <tbody>
224
224
<span class="normal">  </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">darea</span><span class="symbol">;</span>
225
225
<span class="normal">  </span><span class="usertype">gint</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">;</span>
226
226
<span class="normal">  </span><span class="usertype">guchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pos</span><span class="symbol">;</span>
227
 
<span class="normal">  </span><span class="function"><a href="http://library.gnome.org/devel/gtk/gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
228
 
<span class="normal">  window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gtk/GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="http://library.gnome.org/devel/gtk/gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
229
 
<span class="normal">  darea </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gtk/GtkDrawingArea.html#gtk-drawing-area-new">gtk_drawing_area_new</a></span><span class="normal"> </span><span class="symbol">();</span>
230
 
<span class="normal">  </span><span class="function"><a href="http://library.gnome.org/devel/gtk/GtkWidget.html#gtk-widget-set-size-request">gtk_widget_set_size_request</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">darea</span><span class="symbol">,</span><span class="normal"> IMAGE_WIDTH</span><span class="symbol">,</span><span class="normal"> IMAGE_HEIGHT</span><span class="symbol">);</span>
231
 
<span class="normal">  </span><span class="function"><a href="http://library.gnome.org/devel/gtk/GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> darea</span><span class="symbol">);</span>
232
 
<span class="normal">  </span><span class="function"><a href="http://library.gnome.org/devel/gtk3/gtk-Signals.html#gtk-signal-connect">gtk_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_OBJECT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">darea</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"expose-event"</span><span class="symbol">,</span>
233
 
<span class="normal">                      </span><span class="function"><a href="http://library.gnome.org/devel/gtk3/gtk-Types.html#GTK-SIGNAL-FUNC:CAPS">GTK_SIGNAL_FUNC</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_darea_expose</span><span class="symbol">),</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
234
 
<span class="normal">  </span><span class="function"><a href="http://library.gnome.org/devel/gtk/GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
 
227
<span class="normal">  </span><span class="function">gtk_init</span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
 
228
<span class="normal">  window </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gtk_window_new</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GTK_WINDOW_TOPLEVEL</span><span class="symbol">);</span>
 
229
<span class="normal">  darea </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gtk_drawing_area_new</span><span class="normal"> </span><span class="symbol">();</span>
 
230
<span class="normal">  </span><span class="function">gtk_widget_set_size_request</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">darea</span><span class="symbol">,</span><span class="normal"> IMAGE_WIDTH</span><span class="symbol">,</span><span class="normal"> IMAGE_HEIGHT</span><span class="symbol">);</span>
 
231
<span class="normal">  </span><span class="function">gtk_container_add</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> darea</span><span class="symbol">);</span>
 
232
<span class="normal">  </span><span class="function">gtk_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_OBJECT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">darea</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"expose-event"</span><span class="symbol">,</span>
 
233
<span class="normal">                      </span><span class="function">GTK_SIGNAL_FUNC</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_darea_expose</span><span class="symbol">),</span><span class="normal"> <a href="/home/mclasen/gnome/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL--CAPS">NULL</a></span><span class="symbol">);</span>
 
234
<span class="normal">  </span><span class="function">gtk_widget_show_all</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
235
235
<span class="normal">  </span><span class="comment">/* Set up the RGB buffer. */</span>
236
236
<span class="normal">  pos </span><span class="symbol">=</span><span class="normal"> rgbbuf</span><span class="symbol">;</span>
237
237
<span class="normal">  </span><span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">y </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span><span class="normal"> y </span><span class="symbol">&lt;</span><span class="normal"> IMAGE_HEIGHT</span><span class="symbol">;</span><span class="normal"> y</span><span class="symbol">++)</span>
243
243
<span class="normal">      </span><span class="symbol">*</span><span class="normal">pos</span><span class="symbol">++</span><span class="normal"> </span><span class="symbol">=</span><span class="normal"> y </span><span class="symbol">-</span><span class="normal"> y </span><span class="symbol">%</span><span class="normal"> </span><span class="number">32</span><span class="symbol">;</span><span class="normal">          </span><span class="comment">/* Blue. */</span>
244
244
<span class="normal">    </span><span class="cbracket">}</span>
245
245
<span class="normal">    </span><span class="cbracket">}</span>
246
 
<span class="normal">  </span><span class="function"><a href="http://library.gnome.org/devel/gtk/gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
 
246
<span class="normal">  </span><span class="function">gtk_main</span><span class="normal"> </span><span class="symbol">();</span>
247
247
<span class="normal">  </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
248
248
<span class="cbracket">}</span>
249
 
<span class="normal"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span>
 
249
<span class="normal">gboolean</span>
250
250
<span class="function">on_darea_expose</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
251
251
<span class="normal">         </span><span class="usertype">GdkEventExpose</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
252
252
<span class="normal">         </span><span class="usertype">gpointer</span><span class="normal"> user_data</span><span class="symbol">)</span>
253
253
<span class="cbracket">{</span>
254
 
<span class="normal">  </span><span class="function"><a href="gdk-GdkRGB.html#gdk-draw-rgb-image">gdk_draw_rgb_image</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">-&gt;</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> widget</span><span class="symbol">-&gt;</span><span class="normal">style</span><span class="symbol">-&gt;</span><span class="normal">fg_gc</span><span class="symbol">[</span><span class="normal"><a href="http://library.gnome.org/devel/gtk/gtk3-Standard-Enumerations.html#GTK-STATE-NORMAL:CAPS">GTK_STATE_NORMAL</a></span><span class="symbol">],</span>
 
254
<span class="normal">  </span><span class="function"><a href="gdk-GdkRGB.html#gdk-draw-rgb-image">gdk_draw_rgb_image</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">-&gt;</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> widget</span><span class="symbol">-&gt;</span><span class="normal">style</span><span class="symbol">-&gt;</span><span class="normal">fg_gc</span><span class="symbol">[</span><span class="normal">GTK_STATE_NORMAL</span><span class="symbol">],</span>
255
255
<span class="normal">              </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> IMAGE_WIDTH</span><span class="symbol">,</span><span class="normal"> IMAGE_HEIGHT</span><span class="symbol">,</span>
256
256
<span class="normal">              <a href="gdk-GdkRGB.html#GDK-RGB-DITHER-MAX:CAPS">GDK_RGB_DITHER_MAX</a></span><span class="symbol">,</span><span class="normal"> rgbbuf</span><span class="symbol">,</span><span class="normal"> IMAGE_WIDTH </span><span class="symbol">*</span><span class="normal"> </span><span class="number">3</span><span class="symbol">);</span>
257
 
<span class="normal">  </span><span class="keyword">return</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
 
257
<span class="normal">  </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
258
258
<span class="cbracket">}</span></pre></td>
259
259
      </tr>
260
260
    </tbody>
283
283
<a name="gdk-draw-rgb-image"></a><h3>gdk_draw_rgb_image ()</h3>
284
284
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_draw_rgb_image                  (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
285
285
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
286
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
287
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
288
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
289
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
286
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
287
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
288
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
289
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
290
290
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
291
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb_buf</code></em>,
292
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>);</pre>
 
291
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *rgb_buf</code></em>,
 
292
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>);</pre>
293
293
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
294
294
<h3 class="title">Warning</h3>
295
295
<p><code class="literal">gdk_draw_rgb_image</code> is deprecated and should not be used in newly-written code.</p>
361
361
<a name="gdk-draw-rgb-image-dithalign"></a><h3>gdk_draw_rgb_image_dithalign ()</h3>
362
362
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_draw_rgb_image_dithalign        (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
363
363
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
364
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
365
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
366
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
367
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
364
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
365
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
366
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
367
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
368
368
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
369
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *rgb_buf</code></em>,
370
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>,
371
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xdith</code></em>,
372
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ydith</code></em>);</pre>
 
369
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *rgb_buf</code></em>,
 
370
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>,
 
371
                                                         <em class="parameter"><code><span class="type">gint</span> xdith</code></em>,
 
372
                                                         <em class="parameter"><code><span class="type">gint</span> ydith</code></em>);</pre>
373
373
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
374
374
<h3 class="title">Warning</h3>
375
375
<p><code class="literal">gdk_draw_rgb_image_dithalign</code> is deprecated and should not be used in newly-written code.</p>
445
445
<a name="gdk-draw-indexed-image"></a><h3>gdk_draw_indexed_image ()</h3>
446
446
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_draw_indexed_image              (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
447
447
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
448
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
449
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
450
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
451
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
448
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
449
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
450
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
451
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
452
452
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
453
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
454
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>,
 
453
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
454
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>,
455
455
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap"><span class="type">GdkRgbCmap</span></a> *cmap</code></em>);</pre>
456
456
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
457
457
<h3 class="title">Warning</h3>
513
513
<a name="gdk-draw-gray-image"></a><h3>gdk_draw_gray_image ()</h3>
514
514
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_draw_gray_image                 (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
515
515
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
516
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
517
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
518
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
519
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
516
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
517
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
518
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
519
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
520
520
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
521
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
522
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>);</pre>
 
521
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
522
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>);</pre>
523
523
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
524
524
<h3 class="title">Warning</h3>
525
525
<p><code class="literal">gdk_draw_gray_image</code> is deprecated and should not be used in newly-written code.</p>
575
575
<a name="gdk-draw-rgb-32-image"></a><h3>gdk_draw_rgb_32_image ()</h3>
576
576
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_draw_rgb_32_image               (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
577
577
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
578
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
579
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
580
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
581
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
578
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
579
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
580
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
581
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
582
582
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
583
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
584
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>);</pre>
 
583
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
584
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>);</pre>
585
585
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
586
586
<h3 class="title">Warning</h3>
587
587
<p><code class="literal">gdk_draw_rgb_32_image</code> is deprecated and should not be used in newly-written code.</p>
645
645
<a name="gdk-draw-rgb-32-image-dithalign"></a><h3>gdk_draw_rgb_32_image_dithalign ()</h3>
646
646
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_draw_rgb_32_image_dithalign     (<em class="parameter"><code><a class="link" href="gdk-Drawing-Primitives.html#GdkDrawable"><span class="type">GdkDrawable</span></a> *drawable</code></em>,
647
647
                                                         <em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
648
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
649
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
650
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>,
651
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> height</code></em>,
 
648
                                                         <em class="parameter"><code><span class="type">gint</span> x</code></em>,
 
649
                                                         <em class="parameter"><code><span class="type">gint</span> y</code></em>,
 
650
                                                         <em class="parameter"><code><span class="type">gint</span> width</code></em>,
 
651
                                                         <em class="parameter"><code><span class="type">gint</span> height</code></em>,
652
652
                                                         <em class="parameter"><code><a class="link" href="gdk-GdkRGB.html#GdkRgbDither" title="enum GdkRgbDither"><span class="type">GdkRgbDither</span></a> dith</code></em>,
653
 
                                                         <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *buf</code></em>,
654
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> rowstride</code></em>,
655
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xdith</code></em>,
656
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ydith</code></em>);</pre>
 
653
                                                         <em class="parameter"><code>const <span class="type">guchar</span> *buf</code></em>,
 
654
                                                         <em class="parameter"><code><span class="type">gint</span> rowstride</code></em>,
 
655
                                                         <em class="parameter"><code><span class="type">gint</span> xdith</code></em>,
 
656
                                                         <em class="parameter"><code><span class="type">gint</span> ydith</code></em>);</pre>
657
657
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
658
658
<h3 class="title">Warning</h3>
659
659
<p><code class="literal">gdk_draw_rgb_32_image_dithalign</code> has been deprecated since version 2.22 and should not be used in newly-written code. Cairo handles colors automatically.</p>
757
757
<hr>
758
758
<div class="refsect2">
759
759
<a name="gdk-rgb-cmap-new"></a><h3>gdk_rgb_cmap_new ()</h3>
760
 
<pre class="programlisting"><a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap"><span class="returnvalue">GdkRgbCmap</span></a> *        gdk_rgb_cmap_new                    (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *colors</code></em>,
761
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> n_colors</code></em>);</pre>
 
760
<pre class="programlisting"><a class="link" href="gdk-GdkRGB.html#GdkRgbCmap" title="struct GdkRgbCmap"><span class="returnvalue">GdkRgbCmap</span></a> *        gdk_rgb_cmap_new                    (<em class="parameter"><code><span class="type">guint32</span> *colors</code></em>,
 
761
                                                         <em class="parameter"><code><span class="type">gint</span> n_colors</code></em>);</pre>
762
762
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
763
763
<h3 class="title">Warning</h3>
764
764
<p><code class="literal">gdk_rgb_cmap_new</code> is deprecated and should not be used in newly-written code.</p>
827
827
<col align="left" valign="top">
828
828
<tbody>
829
829
<tr>
830
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkRgbCmap.colors"></a>colors</code></em>[256];</span></p></td>
 
830
<td><p><span class="term"><span class="type">guint32</span> <em class="structfield"><code><a name="GdkRgbCmap.colors"></a>colors</code></em>[256];</span></p></td>
831
831
<td>The colors, represented as 0xRRGGBB integer values.</td>
832
832
</tr>
833
833
<tr>
834
 
<td><p><span class="term"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> <em class="structfield"><code><a name="GdkRgbCmap.n-colors"></a>n_colors</code></em>;</span></p></td>
 
834
<td><p><span class="term"><span class="type">gint</span> <em class="structfield"><code><a name="GdkRgbCmap.n-colors"></a>n_colors</code></em>;</span></p></td>
835
835
<td>The number of colors in the cmap.</td>
836
836
</tr>
837
837
</tbody>
841
841
<div class="refsect2">
842
842
<a name="gdk-rgb-gc-set-foreground"></a><h3>gdk_rgb_gc_set_foreground ()</h3>
843
843
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_gc_set_foreground           (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
844
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
 
844
                                                         <em class="parameter"><code><span class="type">guint32</span> rgb</code></em>);</pre>
845
845
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
846
846
<h3 class="title">Warning</h3>
847
847
<p><code class="literal">gdk_rgb_gc_set_foreground</code> is deprecated and should not be used in newly-written code.</p>
868
868
<div class="refsect2">
869
869
<a name="gdk-rgb-gc-set-background"></a><h3>gdk_rgb_gc_set_background ()</h3>
870
870
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_gc_set_background           (<em class="parameter"><code><a class="link" href="gdk-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> *gc</code></em>,
871
 
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
 
871
                                                         <em class="parameter"><code><span class="type">guint32</span> rgb</code></em>);</pre>
872
872
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
873
873
<h3 class="title">Warning</h3>
874
874
<p><code class="literal">gdk_rgb_gc_set_background</code> is deprecated and should not be used in newly-written code.</p>
894
894
<hr>
895
895
<div class="refsect2">
896
896
<a name="gdk-rgb-xpixel-from-rgb"></a><h3>gdk_rgb_xpixel_from_rgb ()</h3>
897
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="returnvalue">gulong</span></a>              gdk_rgb_xpixel_from_rgb             (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> rgb</code></em>);</pre>
 
897
<pre class="programlisting"><span class="returnvalue">gulong</span>              gdk_rgb_xpixel_from_rgb             (<em class="parameter"><code><span class="type">guint32</span> rgb</code></em>);</pre>
898
898
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
899
899
<h3 class="title">Warning</h3>
900
900
<p><code class="literal">gdk_rgb_xpixel_from_rgb</code> is deprecated and should not be used in newly-written code.</p>
929
929
</div>
930
930
<p>
931
931
<em class="parameter"><code>colormap</code></em> should be the colormap for the graphics context and
932
 
drawable you're using to draw. If you're drawing to a <a href="http://library.gnome.org/devel/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a>,
933
 
call <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#gtk-widget-get-colormap"><code class="function">gtk_widget_get_colormap()</code></a>.
 
932
drawable you're using to draw. If you're drawing to a <span class="type">GtkWidget</span>,
 
933
call <code class="function">gtk_widget_get_colormap()</code>.
934
934
</p>
935
935
<p>
936
936
<em class="parameter"><code>color</code></em> should have its <code class="literal">red</code>, <code class="literal">green</code>, and <code class="literal">blue</code> fields initialized;
964
964
<hr>
965
965
<div class="refsect2">
966
966
<a name="gdk-rgb-set-install"></a><h3>gdk_rgb_set_install ()</h3>
967
 
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_set_install                 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> install</code></em>);</pre>
 
967
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_set_install                 (<em class="parameter"><code><span class="type">gboolean</span> install</code></em>);</pre>
968
968
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
969
969
<h3 class="title">Warning</h3>
970
970
<p><code class="literal">gdk_rgb_set_install</code> is deprecated and should not be used in newly-written code.</p>
971
971
</div>
972
972
<p>
973
 
If <em class="parameter"><code>install</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, directs GdkRGB to always install a new "private"
 
973
If <em class="parameter"><code>install</code></em> is <code class="literal">TRUE</code>, directs GdkRGB to always install a new "private"
974
974
colormap rather than trying to find a best fit with the colors already
975
975
allocated. Ordinarily, GdkRGB will install a colormap only if a
976
976
sufficient cube cannot be allocated.
984
984
<tbody><tr>
985
985
<td><p><span class="term"><em class="parameter"><code>install</code></em> :</span></p></td>
986
986
<td>
987
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to set install mode.</td>
 
987
<code class="literal">TRUE</code> to set install mode.</td>
988
988
</tr></tbody>
989
989
</table></div>
990
990
</div>
991
991
<hr>
992
992
<div class="refsect2">
993
993
<a name="gdk-rgb-set-min-colors"></a><h3>gdk_rgb_set_min_colors ()</h3>
994
 
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_set_min_colors              (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> min_colors</code></em>);</pre>
 
994
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_set_min_colors              (<em class="parameter"><code><span class="type">gint</span> min_colors</code></em>);</pre>
995
995
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
996
996
<h3 class="title">Warning</h3>
997
997
<p><code class="literal">gdk_rgb_set_min_colors</code> is deprecated and should not be used in newly-written code.</p>
1083
1083
<hr>
1084
1084
<div class="refsect2">
1085
1085
<a name="gdk-rgb-ditherable"></a><h3>gdk_rgb_ditherable ()</h3>
1086
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gdk_rgb_ditherable                  (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
 
1086
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gdk_rgb_ditherable                  (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1087
1087
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1088
1088
<h3 class="title">Warning</h3>
1089
1089
<p><code class="literal">gdk_rgb_ditherable</code> is deprecated and should not be used in newly-written code.</p>
1099
1099
<tbody><tr>
1100
1100
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1101
1101
<td>
1102
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the preferred visual is ditherable.</td>
 
1102
<code class="literal">TRUE</code> if the preferred visual is ditherable.</td>
1103
1103
</tr></tbody>
1104
1104
</table></div>
1105
1105
</div>
1106
1106
<hr>
1107
1107
<div class="refsect2">
1108
1108
<a name="gdk-rgb-colormap-ditherable"></a><h3>gdk_rgb_colormap_ditherable ()</h3>
1109
 
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gdk_rgb_colormap_ditherable         (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *cmap</code></em>);</pre>
 
1109
<pre class="programlisting"><span class="returnvalue">gboolean</span>            gdk_rgb_colormap_ditherable         (<em class="parameter"><code><a class="link" href="gdk-Colormaps-and-Colors.html#GdkColormap" title="GdkColormap"><span class="type">GdkColormap</span></a> *cmap</code></em>);</pre>
1110
1110
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1111
1111
<h3 class="title">Warning</h3>
1112
1112
<p><code class="literal">gdk_rgb_colormap_ditherable</code> is deprecated and should not be used in newly-written code.</p>
1128
1128
<tr>
1129
1129
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1130
1130
<td>
1131
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the visual associated with <em class="parameter"><code>cmap</code></em> is ditherable.</td>
 
1131
<code class="literal">TRUE</code> if the visual associated with <em class="parameter"><code>cmap</code></em> is ditherable.</td>
1132
1132
</tr>
1133
1133
</tbody>
1134
1134
</table></div>
1136
1136
<hr>
1137
1137
<div class="refsect2">
1138
1138
<a name="gdk-rgb-set-verbose"></a><h3>gdk_rgb_set_verbose ()</h3>
1139
 
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_set_verbose                 (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> verbose</code></em>);</pre>
 
1139
<pre class="programlisting"><span class="returnvalue">void</span>                gdk_rgb_set_verbose                 (<em class="parameter"><code><span class="type">gboolean</span> verbose</code></em>);</pre>
1140
1140
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
1141
1141
<h3 class="title">Warning</h3>
1142
1142
<p><code class="literal">gdk_rgb_set_verbose</code> is deprecated and should not be used in newly-written code.</p>
1149
1149
<tbody><tr>
1150
1150
<td><p><span class="term"><em class="parameter"><code>verbose</code></em> :</span></p></td>
1151
1151
<td>
1152
 
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if verbose messages are desired.</td>
 
1152
<code class="literal">TRUE</code> if verbose messages are desired.</td>
1153
1153
</tr></tbody>
1154
1154
</table></div>
1155
1155
</div>