mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 22:20:24 +00:00
a3914aaf10
Fri Sep 7 18:17:47 2001 Owen Taylor <otaylor@redhat.com> * gdk/gdk.h gdk/x11/gdkmain-x11.c: Deprecate gdk_set/get_use_xshm, make gdk_set_use_xshm a noop. Remove --no-xshm command line option. If we aren't autodetecting properly, we need to fix the problem, or at least make it an environment variable setting, to avoid problems with propagating to embedded children, plugins, etc. * gdk/gdkcolor.h: Deprecate gdk_colormap_get_system_size(). * gdk/gdkpixbuf-render.c gdk/gdkpixbuf.h (gdk_pixbuf_render_pixmap_and_mask_for_colormap): New function to render a pixmap and mask for a particular colormap. * gtk/gtkwindow.c (get_pixmap_and_mask): Change to use gdk_pixbuf_render_pixmap_and_mask_for_colormap () instead of internal implementation of the same.
86 lines
2.9 KiB
C
86 lines
2.9 KiB
C
#ifndef __GDK_PIXBUF_H__
|
|
#define __GDK_PIXBUF_H__
|
|
|
|
#include <gdk/gdktypes.h>
|
|
#include <gdk/gdkrgb.h>
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* Rendering to a drawable */
|
|
|
|
void gdk_pixbuf_render_threshold_alpha (GdkPixbuf *pixbuf,
|
|
GdkBitmap *bitmap,
|
|
int src_x,
|
|
int src_y,
|
|
int dest_x,
|
|
int dest_y,
|
|
int width,
|
|
int height,
|
|
int alpha_threshold);
|
|
void gdk_pixbuf_render_to_drawable (GdkPixbuf *pixbuf,
|
|
GdkDrawable *drawable,
|
|
GdkGC *gc,
|
|
int src_x,
|
|
int src_y,
|
|
int dest_x,
|
|
int dest_y,
|
|
int width,
|
|
int height,
|
|
GdkRgbDither dither,
|
|
int x_dither,
|
|
int y_dither);
|
|
void gdk_pixbuf_render_to_drawable_alpha (GdkPixbuf *pixbuf,
|
|
GdkDrawable *drawable,
|
|
int src_x,
|
|
int src_y,
|
|
int dest_x,
|
|
int dest_y,
|
|
int width,
|
|
int height,
|
|
GdkPixbufAlphaMode alpha_mode,
|
|
int alpha_threshold,
|
|
GdkRgbDither dither,
|
|
int x_dither,
|
|
int y_dither);
|
|
|
|
void gdk_pixbuf_render_pixmap_and_mask_for_colormap (GdkPixbuf *pixbuf,
|
|
GdkColormap *colormap,
|
|
GdkPixmap **pixmap_return,
|
|
GdkBitmap **mask_return,
|
|
int alpha_threshold);
|
|
void gdk_pixbuf_render_pixmap_and_mask (GdkPixbuf *pixbuf,
|
|
GdkPixmap **pixmap_return,
|
|
GdkBitmap **mask_return,
|
|
int alpha_threshold);
|
|
|
|
|
|
/* Fetching a region from a drawable */
|
|
GdkPixbuf *gdk_pixbuf_get_from_drawable (GdkPixbuf *dest,
|
|
GdkDrawable *src,
|
|
GdkColormap *cmap,
|
|
int src_x,
|
|
int src_y,
|
|
int dest_x,
|
|
int dest_y,
|
|
int width,
|
|
int height);
|
|
|
|
GdkPixbuf *gdk_pixbuf_get_from_image (GdkPixbuf *dest,
|
|
GdkImage *src,
|
|
GdkColormap *cmap,
|
|
int src_x,
|
|
int src_y,
|
|
int dest_x,
|
|
int dest_y,
|
|
int width,
|
|
int height);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GDK_PIXBUF_H__ */
|