1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GdkRGB
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2002-11-29 20:47:24 +00:00
|
|
|
Renders RGB, grayscale, or indexed image data to a GdkDrawable
|
1999-08-28 20:47:33 +00:00
|
|
|
|
2000-12-12 07:32:32 +00:00
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
2001-02-12 17:50:13 +00:00
|
|
|
|
|
|
|
<para>
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
GdkRGB is a low-level module which renders RGB, grayscale, and indexed
|
2001-02-20 05:31:19 +00:00
|
|
|
colormap images to a #GdkDrawable. It does this as efficiently as
|
|
|
|
possible, handling issues such as colormaps, visuals, dithering,
|
|
|
|
temporary buffers, and so on. Most code should use the higher-level
|
|
|
|
#GdkPixbuf features in place of this module; for example,
|
2007-09-07 03:18:53 +00:00
|
|
|
gdk_draw_pixbuf() uses GdkRGB in its implementation.
|
2001-02-12 17:50:13 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2001-02-20 05:31:19 +00:00
|
|
|
GdkRGB allocates a color cube to use when rendering images. You can
|
|
|
|
set the threshold for installing colormaps with
|
|
|
|
gdk_rgb_set_min_colors(). The default is 5x5x5 (125). If a colorcube
|
2001-02-12 17:50:13 +00:00
|
|
|
of this size or larger can be allocated in the default colormap, then
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
that's done. Otherwise, GdkRGB creates its own private colormap.
|
2001-02-12 17:50:13 +00:00
|
|
|
Setting it to 0 means that it always tries to use the default
|
|
|
|
colormap, and setting it to 216 means that it always creates a private
|
|
|
|
one if it cannot allocate the 6x6x6 colormap in the default. If you
|
|
|
|
always want a private colormap (to avoid consuming too many colormap
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
entries for other apps, say), you can use
|
|
|
|
<literal>gdk_rgb_set_install(TRUE)</literal>.
|
2001-02-12 17:50:13 +00:00
|
|
|
Setting the value greater than 216 exercises a bug in older versions
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
of GdkRGB. Note, however, that setting it to 0 doesn't let you get
|
2001-02-12 17:50:13 +00:00
|
|
|
away with ignoring the colormap and visual - a colormap is always
|
|
|
|
created in grayscale and direct color modes, and the visual is changed
|
|
|
|
in cases where a "better" visual than the default is available.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
Add Sun mediaLib support so that hardware acceleration via mediaLib is
2007-05-16 Brian Cameron <brian.cameron@sun.com>
* acconfig.h, configure.in, gdk/Makefile.am, gdkprivate.h, gdkrgb.c,
gdkdraw.c, gdk-pixbuf/gdk-pixbuf-scale.c,
gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/pixops/pixops.[ch],
gdk-pixbuf/pixops/timescale.c: Add Sun mediaLib support so that
hardware acceleration via mediaLib is enabled if mediaLib is
detected via configure. Enhancement request #344813. I was given
permission to commit in the bug report by Matthias Clasen.
* gdk/medialib.[ch]: New files added for mediaLib support.
* docs/reference/gdk-pixbuf/tmpl/scaling.sgml,
docs/reference/gdk/tmpl/rgb.sgml, gdk/gdkdraw.c: Add docs for
mediaLib support.
svn path=/trunk/; revision=17855
2007-05-16 01:35:51 +00:00
|
|
|
<para>
|
|
|
|
If GDK is built with the Sun mediaLib library, the GdkRGB functions are
|
|
|
|
accelerated using mediaLib, which provides hardware acceleration on Intel,
|
|
|
|
AMD, and Sparc chipsets. If desired, mediaLib support can be turned off
|
|
|
|
by setting the GDK_DISABLE_MEDIALIB environment variable.
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<example>
|
2002-11-29 20:47:24 +00:00
|
|
|
<title>A simple example program using GdkRGB</title>
|
2001-02-12 17:50:13 +00:00
|
|
|
<programlisting>
|
2002-06-03 17:47:31 +00:00
|
|
|
#include <gtk/gtk.h>
|
2001-02-12 17:50:13 +00:00
|
|
|
|
2002-06-03 17:47:31 +00:00
|
|
|
#define IMAGE_WIDTH 256
|
|
|
|
#define IMAGE_HEIGHT 256
|
2001-02-12 17:50:13 +00:00
|
|
|
|
|
|
|
guchar rgbbuf[IMAGE_WIDTH * IMAGE_HEIGHT * 3];
|
|
|
|
|
|
|
|
gboolean on_darea_expose (GtkWidget *widget,
|
|
|
|
GdkEventExpose *event,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
int
|
|
|
|
main (int argc, char *argv[])
|
|
|
|
{
|
|
|
|
GtkWidget *window, *darea;
|
|
|
|
gint x, y;
|
|
|
|
guchar *pos;
|
|
|
|
|
|
|
|
gtk_init (&argc, &argv);
|
2001-02-20 05:31:19 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
2002-04-18 22:04:46 +00:00
|
|
|
darea = gtk_drawing_area_new (<!-- -->);
|
2001-10-03 18:19:48 +00:00
|
|
|
gtk_widget_set_size_request (darea, IMAGE_WIDTH, IMAGE_HEIGHT);
|
2001-02-12 17:50:13 +00:00
|
|
|
gtk_container_add (GTK_CONTAINER (window), darea);
|
|
|
|
gtk_signal_connect (GTK_OBJECT (darea), "expose-event",
|
|
|
|
GTK_SIGNAL_FUNC (on_darea_expose), NULL);
|
|
|
|
gtk_widget_show_all (window);
|
|
|
|
|
|
|
|
/* Set up the RGB buffer. */
|
|
|
|
pos = rgbbuf;
|
2002-05-28 22:23:55 +00:00
|
|
|
for (y = 0; y < IMAGE_HEIGHT; y++)
|
2001-02-12 17:50:13 +00:00
|
|
|
{
|
2002-05-28 22:23:55 +00:00
|
|
|
for (x = 0; x < IMAGE_WIDTH; x++)
|
2001-02-12 17:50:13 +00:00
|
|
|
{
|
|
|
|
*pos++ = x - x % 32; /* Red. */
|
|
|
|
*pos++ = (x / 32) * 4 + y - y % 32; /* Green. */
|
|
|
|
*pos++ = y - y % 32; /* Blue. */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-04-18 22:04:46 +00:00
|
|
|
gtk_main (<!-- -->);
|
2001-02-12 17:50:13 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
on_darea_expose (GtkWidget *widget,
|
|
|
|
GdkEventExpose *event,
|
|
|
|
gpointer user_data)
|
|
|
|
{
|
|
|
|
gdk_draw_rgb_image (widget->window, widget->style->fg_gc[GTK_STATE_NORMAL],
|
|
|
|
0, 0, IMAGE_WIDTH, IMAGE_HEIGHT,
|
|
|
|
GDK_RGB_DITHER_MAX, rgbbuf, IMAGE_WIDTH * 3);
|
2002-07-16 17:21:25 +00:00
|
|
|
|
|
|
|
return TRUE;
|
2001-02-12 17:50:13 +00:00
|
|
|
}
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>#GdkColor</term>
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
<listitem><para>The underlying GDK mechanism for allocating
|
2001-02-12 17:50:13 +00:00
|
|
|
colors.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2001-02-20 05:31:19 +00:00
|
|
|
<varlistentry>
|
2007-09-07 03:18:53 +00:00
|
|
|
<term>#GdkPixbuf and gdk_draw_pixbuf()</term>
|
2001-02-20 05:31:19 +00:00
|
|
|
<listitem><para>Higher-level image handling.</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
</variablelist>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_draw_rgb_image ##### -->
|
|
|
|
<para>
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
Draws an RGB image in the drawable. This is the core GdkRGB
|
2001-02-20 05:31:19 +00:00
|
|
|
function, and likely the only one you will need to use.
|
2001-02-12 17:50:13 +00:00
|
|
|
</para>
|
1999-08-28 20:47:33 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<para>
|
|
|
|
The @rowstride parameter allows for lines to be aligned more flexibly.
|
|
|
|
For example, lines may be allocated to begin on 32-bit boundaries,
|
|
|
|
even if the width of the rectangle is odd. Rowstride is also useful
|
|
|
|
when drawing a subrectangle of a larger image in memory. Finally, to
|
|
|
|
replicate the same line a number of times, the trick of setting
|
|
|
|
@rowstride to 0 is allowed.
|
1999-08-28 20:47:33 +00:00
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<para>
|
|
|
|
In general, for 0 <= i < @width and 0 <= j < height,
|
|
|
|
the pixel (x + i, y + j) is colored with red value @rgb_buf[@j *
|
|
|
|
@rowstride + @i * 3], green value @rgb_buf[@j * @rowstride + @i * 3 +
|
|
|
|
1], and blue value @rgb_buf[@j * @rowstride + @i * 3 + 2].
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@drawable: The #GdkDrawable to draw in (usually a #GdkWindow).
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
@gc: The graphics context (all GDK drawing operations require one; its
|
2001-02-12 17:50:13 +00:00
|
|
|
contents are ignored).
|
|
|
|
@x: The x coordinate of the top-left corner in the drawable.
|
|
|
|
@y: The y coordinate of the top-left corner in the drawable.
|
|
|
|
@width: The width of the rectangle to be drawn.
|
|
|
|
@height: The height of the rectangle to be drawn.
|
|
|
|
@dith: A #GdkRgbDither value, selecting the desired dither mode.
|
|
|
|
@rgb_buf: The pixel data, represented as packed 24-bit data.
|
|
|
|
@rowstride: The number of bytes from the start of one row in @rgb_buf to the
|
|
|
|
start of the next.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-02-01 04:27:56 +00:00
|
|
|
<!-- ##### FUNCTION gdk_draw_rgb_image_dithalign ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Draws an RGB image in the drawable, with an adjustment for dither alignment.
|
|
|
|
</para>
|
2000-02-01 04:27:56 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<para>
|
|
|
|
This function is useful when drawing dithered images into a window
|
|
|
|
that may be scrolled. Pixel (x, y) will be drawn dithered as if its
|
|
|
|
actual location is (x + @xdith, y + @ydith). Thus, if you draw an
|
|
|
|
image into a window using zero dither alignment, then scroll up one
|
|
|
|
pixel, subsequent draws to the window should have @ydith = 1.
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<para>
|
|
|
|
Setting the dither alignment correctly allows updating of small parts
|
|
|
|
of the screen while avoiding visible "seams" between the different
|
|
|
|
dither textures.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@drawable: The #GdkDrawable to draw in (usually a #GdkWindow).
|
|
|
|
@gc: The graphics context.
|
|
|
|
@x: The x coordinate of the top-left corner in the drawable.
|
|
|
|
@y: The y coordinate of the top-left corner in the drawable.
|
|
|
|
@width: The width of the rectangle to be drawn.
|
|
|
|
@height: The height of the rectangle to be drawn.
|
|
|
|
@dith: A #GdkRgbDither value, selecting the desired dither mode.
|
|
|
|
@rgb_buf: The pixel data, represented as packed 24-bit data.
|
|
|
|
@rowstride: The number of bytes from the start of one row in @rgb_buf to the
|
|
|
|
start of the next.
|
|
|
|
@xdith: An x offset for dither alignment.
|
|
|
|
@ydith: A y offset for dither alignment.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_draw_indexed_image ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Draws an indexed image in the drawable, using a #GdkRgbCmap to assign
|
|
|
|
actual colors to the color indices.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@drawable: The #GdkDrawable to draw in (usually a #GdkWindow).
|
|
|
|
@gc: The graphics context.
|
|
|
|
@x: The x coordinate of the top-left corner in the drawable.
|
|
|
|
@y: The y coordinate of the top-left corner in the drawable.
|
|
|
|
@width: The width of the rectangle to be drawn.
|
|
|
|
@height: The height of the rectangle to be drawn.
|
|
|
|
@dith: A #GdkRgbDither value, selecting the desired dither mode.
|
|
|
|
@buf: The pixel data, represented as 8-bit color indices.
|
|
|
|
@rowstride: The number of bytes from the start of one row in @buf to the
|
|
|
|
start of the next.
|
|
|
|
@cmap: The #GdkRgbCmap used to assign colors to the color indices.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_draw_gray_image ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Draws a grayscale image in the drawable.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@drawable: The #GdkDrawable to draw in (usually a #GdkWindow).
|
|
|
|
@gc: The graphics context.
|
|
|
|
@x: The x coordinate of the top-left corner in the drawable.
|
|
|
|
@y: The y coordinate of the top-left corner in the drawable.
|
|
|
|
@width: The width of the rectangle to be drawn.
|
|
|
|
@height: The height of the rectangle to be drawn.
|
|
|
|
@dith: A #GdkRgbDither value, selecting the desired dither mode.
|
|
|
|
@buf: The pixel data, represented as 8-bit gray values.
|
|
|
|
@rowstride: The number of bytes from the start of one row in @buf to the
|
|
|
|
start of the next.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_draw_rgb_32_image ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Draws a padded RGB image in the drawable. The image is stored as one
|
|
|
|
pixel per 32-bit word. It is laid out as a red byte, a green byte, a
|
|
|
|
blue byte, and a padding byte.
|
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<para>
|
|
|
|
It's unlikely that this function will give significant performance
|
|
|
|
gains in practice. In my experience, the performance gain from having
|
|
|
|
pixels aligned to 32-bit boundaries is cancelled out by the increased
|
|
|
|
memory bandwidth.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@drawable: The #GdkDrawable to draw in (usually a #GdkWindow).
|
|
|
|
@gc: The graphics context.
|
|
|
|
@x: The x coordinate of the top-left corner in the drawable.
|
|
|
|
@y: The y coordinate of the top-left corner in the drawable.
|
|
|
|
@width: The width of the rectangle to be drawn.
|
|
|
|
@height: The height of the rectangle to be drawn.
|
|
|
|
@dith: A #GdkRgbDither value, selecting the desired dither mode.
|
|
|
|
@buf: The pixel data, represented as padded 32-bit data.
|
|
|
|
@rowstride: The number of bytes from the start of one row in @buf to the
|
|
|
|
start of the next.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_draw_rgb_32_image_dithalign ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@drawable:
|
|
|
|
@gc:
|
|
|
|
@x:
|
|
|
|
@y:
|
|
|
|
@width:
|
|
|
|
@height:
|
|
|
|
@dith:
|
|
|
|
@buf:
|
|
|
|
@rowstride:
|
|
|
|
@xdith:
|
|
|
|
@ydith:
|
|
|
|
|
|
|
|
|
2000-02-01 04:27:56 +00:00
|
|
|
<!-- ##### ENUM GdkRgbDither ##### -->
|
1999-08-16 18:51:52 +00:00
|
|
|
<para>
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
Selects whether or not GdkRGB applies dithering
|
2005-12-19 21:02:08 +00:00
|
|
|
to the image on display.
|
2001-02-12 17:50:13 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
Since GdkRGB currently only handles images with 8 bits per component,
|
2001-02-12 17:50:13 +00:00
|
|
|
dithering on 24 bit per pixel displays is a moot point.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2005-12-19 21:02:08 +00:00
|
|
|
@GDK_RGB_DITHER_NONE: Never use dithering.
|
|
|
|
@GDK_RGB_DITHER_NORMAL: Use dithering in 8 bits per pixel (and below)
|
|
|
|
only.
|
|
|
|
@GDK_RGB_DITHER_MAX: Use dithering in 16 bits per pixel and below.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rgb_cmap_new ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Creates a new #GdkRgbCmap structure. The cmap maps color indexes to
|
|
|
|
RGB colors. If @n_colors is less than 256, then images containing
|
|
|
|
color values greater than or equal to @n_colors will produce undefined
|
|
|
|
results, including possibly segfaults.
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@colors: The colors, represented as 0xRRGGBB integer values.
|
|
|
|
@n_colors: The number of colors in the cmap.
|
|
|
|
@Returns: The newly created #GdkRgbCmap
|
2000-02-01 04:27:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rgb_cmap_free ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Frees the memory associated with a #GdkRgbCmap created by gdk_rgb_cmap_new().
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@cmap: The #GdkRgbCmap to free.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkRgbCmap ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
A private data structure which maps color indices to actual RGB
|
|
|
|
colors. This is used only for gdk_draw_indexed_image().
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2007-05-27 01:39:28 +00:00
|
|
|
@colors: The colors, represented as 0xRRGGBB integer values.
|
|
|
|
@n_colors: The number of colors in the cmap.
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_rgb_find_color ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@colormap:
|
|
|
|
@color:
|
|
|
|
|
|
|
|
|
1999-08-16 18:51:52 +00:00
|
|
|
<!-- ##### FUNCTION gdk_rgb_set_install ##### -->
|
|
|
|
<para>
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
If @install is %TRUE, directs GdkRGB to always install a new "private"
|
2001-02-12 17:50:13 +00:00
|
|
|
colormap rather than trying to find a best fit with the colors already
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
allocated. Ordinarily, GdkRGB will install a colormap only if a
|
2001-02-12 17:50:13 +00:00
|
|
|
sufficient cube cannot be allocated.
|
|
|
|
</para>
|
1999-08-16 18:51:52 +00:00
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
<para>
|
|
|
|
A private colormap has more colors, leading to better quality display,
|
|
|
|
but also leads to the dreaded "colormap flashing" effect.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
@install: %TRUE to set install mode.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rgb_set_min_colors ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the minimum number of colors for the color cube. Generally,
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
GdkRGB tries to allocate the largest color cube it can. If it can't
|
2001-02-12 17:50:13 +00:00
|
|
|
allocate a color cube at least as large as @min_colors, it installs a
|
|
|
|
private colormap.
|
1999-08-16 18:51:52 +00:00
|
|
|
</para>
|
|
|
|
|
2001-02-12 17:50:13 +00:00
|
|
|
@min_colors: The minimum number of colors accepted.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rgb_get_visual ##### -->
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
@void:
|
2002-04-30 18:07:51 +00:00
|
|
|
@Returns:
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|
2000-09-07 18:17:06 +00:00
|
|
|
<!-- ##### FUNCTION gdk_rgb_get_colormap ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
@void:
|
2000-09-07 18:17:06 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2000-02-01 04:27:56 +00:00
|
|
|
<!-- ##### FUNCTION gdk_rgb_ditherable ##### -->
|
|
|
|
<para>
|
2004-09-14 21:12:22 +00:00
|
|
|
Determines whether the preferred visual is ditherable. This function may be
|
2001-02-12 17:50:13 +00:00
|
|
|
useful for presenting a user interface choice to the user about which
|
|
|
|
dither mode is desired; if the display is not ditherable, it may make
|
|
|
|
sense to gray out or hide the corresponding UI widget.
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
@void:
|
2004-09-14 21:12:22 +00:00
|
|
|
@Returns: %TRUE if the preferred visual is ditherable.
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rgb_colormap_ditherable ##### -->
|
|
|
|
<para>
|
|
|
|
Determines whether the visual associated with @cmap is ditherable. This
|
|
|
|
function may be useful for presenting a user interface choice to the user
|
|
|
|
about which dither mode is desired; if the display is not ditherable, it may
|
|
|
|
make sense to gray out or hide the corresponding UI widget.
|
|
|
|
</para>
|
|
|
|
|
2004-09-16 06:16:38 +00:00
|
|
|
@cmap: a #GdkColormap
|
2004-09-14 21:12:22 +00:00
|
|
|
@Returns: %TRUE if the visual associated with @cmap is ditherable.
|
2000-02-01 04:27:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_rgb_set_verbose ##### -->
|
|
|
|
<para>
|
2001-02-12 17:50:13 +00:00
|
|
|
Sets the "verbose" flag. This is generally only useful for debugging.
|
2000-02-01 04:27:56 +00:00
|
|
|
</para>
|
|
|
|
|
Markup fixes.
* gtk/gtkdialog.c, gtk/gtkrc.c, gtk/gtkwidget.c: Markup fixes.
* gdk-pixbuf-io.c: Markup fixes.
* gdk-pixbuf/tmpl/scaling.sgml, gdk/tmpl/fonts.sgml,
gdk/tmpl/general.sgml, gdk/tmpl/rgb.sgml, gdk/tmpl/visuals.sgml,
gdk/tmpl/windows.sgml, gtk/gtk-docs.sgml, gtk/tmpl/gtkaccellabel.sgml,
gtk/tmpl/gtkcombo.sgml, gtk/tmpl/gtkdialog.sgml,
gtk/tmpl/gtkdrawingarea.sgml, gtk/tmpl/gtkeditable.sgml,
gtk/tmpl/gtkfilesel.sgml, gtk/tmpl/gtkfontseldlg.sgml,
gtk/tmpl/gtkimage.sgml, gtk/tmpl/gtkmain.sgml, gtk/tmpl/gtkmenu.sgml,
gtk/tmpl/gtkmessagedialog.sgml, gtk/tmpl/gtkobject.sgml,
gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkradiobutton.sgml,
gtk/tmpl/gtkrc.sgml, gtk/tmpl/gtkscale.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtksocket.sgml, gtk/tmpl/gtkspinbutton.sgml,
gtk/tmpl/gtktogglebutton.sgml, gtk/tmpl/gtksignal.sgml,
gtk/tmpl/gtktooltips.sgml, gtk/tmpl/gtkwindow.sgml,
gdk/tmpl/regions.sgml, gtk/tmpl/gtkfontsel.sgml,
gtk/tmpl/gtkpixmap.sgml, gtk/tmpl/gtkprogress.sgml,
gtk/tmpl/gtkselection.sgml, gtk/tmpl/gtktable.sgml,
gtk/tmpl/gtktipsquery.sgml: Markup fixes (mainly examples).
2001-12-13 19:51:24 +00:00
|
|
|
@verbose: %TRUE if verbose messages are desired.
|
1999-08-16 18:51:52 +00:00
|
|
|
|
|
|
|
|