gdkrgb.h File Reference

#include <gdk/gdktypes.h>

Go to the source code of this file.

Classes

struct  _GdkRgbCmap

Typedefs

typedef _GdkRgbCmap GdkRgbCmap

Enumerations

enum  GdkRgbDither

Functions

void gdk_rgb_init (void)
gulong gdk_rgb_xpixel_from_rgb (guint32 rgb)
void gdk_rgb_gc_set_foreground (GdkGC *gc, guint32 rgb)
void gdk_rgb_gc_set_background (GdkGC *gc, guint32 rgb)
void gdk_draw_rgb_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *rgb_buf, gint rowstride)
void gdk_draw_rgb_image_dithalign (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *rgb_buf, gint rowstride, gint xdith, gint ydith)
void gdk_draw_rgb_32_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *buf, gint rowstride)
void gdk_draw_gray_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *buf, gint rowstride)
GdkRgbCmapgdk_rgb_cmap_new (guint32 *colors, gint n_colors)
void gdk_rgb_cmap_free (GdkRgbCmap *cmap)
void gdk_draw_indexed_image (GdkDrawable *drawable, GdkGC *gc, gint x, gint y, gint width, gint height, GdkRgbDither dith, guchar *buf, gint rowstride, GdkRgbCmap *cmap)
gboolean gdk_rgb_ditherable (void)
void gdk_rgb_set_verbose (gboolean verbose)
void gdk_rgb_set_install (gboolean install)
void gdk_rgb_set_min_colors (gint min_colors)
GdkColormapgdk_rgb_get_cmap (void)
GdkVisualgdk_rgb_get_visual (void)


Typedef Documentation

typedef struct _GdkRgbCmap GdkRgbCmap

Definition at line 36 of file gdkrgb.h.


Enumeration Type Documentation

enum GdkRgbDither

Definition at line 54 of file gdkrgb.h.


Function Documentation

void gdk_draw_gray_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar buf,
gint  rowstride 
)

Definition at line 3698 of file gdkrgb.c.

References _GdkRgbInfo::bpp, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, gdk_rgb_make_gray_cmap(), GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, _GdkRgbInfo::gray_cmap, image_info, NULL, _GdkVisual::type, and _GdkRgbInfo::visual.

void gdk_draw_indexed_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar buf,
gint  rowstride,
GdkRgbCmap cmap 
)

Definition at line 3754 of file gdkrgb.c.

References _GdkRgbInfo::conv_indexed, _GdkRgbInfo::conv_indexed_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, and image_info.

void gdk_draw_rgb_32_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar buf,
gint  rowstride 
)

Definition at line 3668 of file gdkrgb.c.

References _GdkRgbInfo::conv_32, _GdkRgbInfo::conv_32_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.

void gdk_draw_rgb_image ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar rgb_buf,
gint  rowstride 
)

Definition at line 3626 of file gdkrgb.c.

References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.

void gdk_draw_rgb_image_dithalign ( GdkDrawable drawable,
GdkGC gc,
gint  x,
gint  y,
gint  width,
gint  height,
GdkRgbDither  dith,
guchar rgb_buf,
gint  rowstride,
gint  xdith,
gint  ydith 
)

Definition at line 3646 of file gdkrgb.c.

References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, _GdkRgbInfo::dith_default, gdk_draw_rgb_image_core(), GDK_RGB_DITHER_NONE, GDK_RGB_DITHER_NORMAL, image_info, and NULL.

void gdk_rgb_cmap_free ( GdkRgbCmap cmap  ) 

Definition at line 3748 of file gdkrgb.c.

References g_free().

GdkRgbCmap* gdk_rgb_cmap_new ( guint32 colors,
gint  n_colors 
)

Definition at line 3723 of file gdkrgb.c.

References _GdkRgbInfo::bpp, colorcube, _GdkRgbCmap::colors, g_new, g_print(), g_return_val_if_fail, GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, i, image_info, j, _GdkRgbCmap::lut, NULL, _GdkVisual::type, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_make_gray_cmap().

gboolean gdk_rgb_ditherable ( void   ) 

Definition at line 3774 of file gdkrgb.c.

References _GdkRgbInfo::conv, _GdkRgbInfo::conv_d, and image_info.

void gdk_rgb_gc_set_background ( GdkGC gc,
guint32  rgb 
)

Definition at line 687 of file gdkrgb.c.

References gdk_gc_set_background(), and gdk_rgb_xpixel_from_rgb().

void gdk_rgb_gc_set_foreground ( GdkGC gc,
guint32  rgb 
)

Definition at line 679 of file gdkrgb.c.

References gdk_gc_set_foreground(), and gdk_rgb_xpixel_from_rgb().

GdkColormap* gdk_rgb_get_cmap ( void   ) 

Definition at line 3779 of file gdkrgb.c.

References _GdkRgbInfo::cmap, gdk_rgb_init(), and image_info.

GdkVisual* gdk_rgb_get_visual ( void   ) 

Definition at line 3785 of file gdkrgb.c.

References gdk_rgb_init(), image_info, and _GdkRgbInfo::visual.

void gdk_rgb_init ( void   ) 

Definition at line 524 of file gdkrgb.c.

References _GdkRgbInfo::bitmap, _GdkRgbInfo::bpp, _GdkImage::bpp, _GdkRgbInfo::cmap, _GdkRgbInfo::cmap_alloced, _GdkRgbInfo::color_pixels, _GdkVisual::depth, FALSE, g_error(), g_new0, g_print(), _GdkRgbInfo::gamma, gdk_colormap_get_system(), gdk_colormap_new(), GDK_IMAGE_FASTEST, gdk_image_new(), gdk_image_new_bitmap(), gdk_rgb_choose_visual(), gdk_rgb_colorcube_222(), gdk_rgb_do_colormaps(), gdk_rgb_install_cmap, gdk_rgb_select_conv(), gdk_rgb_set_gray_cmap(), gdk_rgb_verbose, GDK_VISUAL_DIRECT_COLOR, gdk_visual_get_system(), GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, _GdkRgbInfo::gray_pixels, i, IMAGE_HEIGHT, image_info, IMAGE_WIDTH, malloc(), N_IMAGES, _GdkRgbInfo::nblue_shades, _GdkRgbInfo::ngray_shades, _GdkRgbInfo::ngreen_shades, _GdkRgbInfo::nred_shades, _GdkRgbInfo::nreserved, NULL, _GdkRgbInfo::own_gc, _GdkRgbInfo::reserved_pixels, _GdkRgbInfo::stage_buf, static_image, TRUE, _GdkVisual::type, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_get_cmap(), and gdk_rgb_get_visual().

void gdk_rgb_set_install ( gboolean  install  ) 

Definition at line 372 of file gdkrgb.c.

References gdk_rgb_install_cmap.

void gdk_rgb_set_min_colors ( gint  min_colors  ) 

Definition at line 377 of file gdkrgb.c.

References gdk_rgb_min_colors.

void gdk_rgb_set_verbose ( gboolean  verbose  ) 

Definition at line 367 of file gdkrgb.c.

References gdk_rgb_verbose.

gulong gdk_rgb_xpixel_from_rgb ( guint32  rgb  ) 

Definition at line 633 of file gdkrgb.c.

References _GdkRgbInfo::bitmap, _GdkVisual::blue_prec, _GdkVisual::blue_shift, colorcube, colorcube_d, _GdkVisual::depth, g_print(), GDK_VISUAL_DIRECT_COLOR, GDK_VISUAL_GRAYSCALE, GDK_VISUAL_PSEUDO_COLOR, GDK_VISUAL_STATIC_COLOR, GDK_VISUAL_STATIC_GRAY, GDK_VISUAL_TRUE_COLOR, _GdkVisual::green_prec, _GdkVisual::green_shift, image_info, _GdkVisual::red_prec, _GdkVisual::red_shift, _GdkVisual::type, and _GdkRgbInfo::visual.

Referenced by gdk_rgb_gc_set_background(), and gdk_rgb_gc_set_foreground().


Generated on Tue Jul 5 15:58:41 2011 for ROOT_528-00b_version by  doxygen 1.5.1