summaryrefslogtreecommitdiff
path: root/gdk/gdkdrawable.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2000-12-15 01:46:41 +0000
committerOwen Taylor <otaylor@src.gnome.org>2000-12-15 01:46:41 +0000
commit6e5a269f38ad682e116e94efac287fa4ddc46b7f (patch)
tree25b336984ac15be84beb85ff71b3d99c11b861ed /gdk/gdkdrawable.h
parent2142a98c9e8826323941ec3da2c75325ca00eb52 (diff)
downloadgtk+-6e5a269f38ad682e116e94efac287fa4ddc46b7f.tar.gz
Add two virtualized functions gdk_drawable_get_clip_region - to get the
Thu Dec 14 20:22:31 2000 Owen Taylor <otaylor@redhat.com> * gdk/{gdkdrawable.[ch],gdkpixmap.c,gdkwindow.c,x11/gdkwindow.c}: Add two virtualized functions gdk_drawable_get_clip_region - to get the clip region when drawing. * gdk/gdkwindow.c (gdk_window_invalidate_rect): Rewrite to simple use invalidate_region. * gdk/gdkwindow.c (gdk_window_invalidate_region): Clip to visible region. * acconfig.h configure.in: Check for Xft. For now, assume that if Xft is found, Pango was compiled with Xft support as well. * gdk/gdkcolor.h gdk/x11/gdkcolor-x11.c: Add gdk_colormap_query_color(). * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_glyphs): Draw with Xft if appropriate. * gdk/x11/gdkpango-x11.c (gdk_pango_context_get): Create a pangoxft context if we have XFT and the environment variable GD_USE_XFT is set. * gdk/x11/gdkx.h (struct _GdkGCX11): Cache the fg_pixel and also possibly an XftDraw structure. * gtk/gtkfontsel.c: Handle the case where the font from the style doesn't match any of the fonts a bit better. * gtk/testgtk.c: Add tabs between directional segments for hebrew/arabic test. (Not really necessary, just a little prettier.)
Diffstat (limited to 'gdk/gdkdrawable.h')
-rw-r--r--gdk/gdkdrawable.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdk/gdkdrawable.h b/gdk/gdkdrawable.h
index e177ca81a1..a35830d233 100644
--- a/gdk/gdkdrawable.h
+++ b/gdk/gdkdrawable.h
@@ -120,6 +120,9 @@ struct _GdkDrawableClass
gint width,
gint height);
+ GdkRegion* (*get_clip_region) (GdkDrawable *drawable);
+ GdkRegion* (*get_visible_region) (GdkDrawable *drawable);
+
GdkDrawable* (*get_composite_drawable) (GdkDrawable *drawable,
gint x,
gint y,
@@ -260,6 +263,9 @@ GdkImage* gdk_drawable_get_image (GdkDrawable *drawable,
gint width,
gint height);
+GdkRegion *gdk_drawable_get_clip_region (GdkDrawable *drawable);
+GdkRegion *gdk_drawable_get_visible_region (GdkDrawable *drawable);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */