pixelcache: allow specifying content type and extra size.
Allow forcing the cairo_content_t of the surface as well as the amount of extra size to render. https://bugzilla.gnome.org/show_bug.cgi?id=706728
This commit is contained in:
committed by
Alexander Larsson
parent
576ae1e3c9
commit
b1745d68cd
@ -30,17 +30,22 @@ typedef struct _GtkPixelCache GtkPixelCache;
|
||||
typedef void (*GtkPixelCacheDrawFunc) (cairo_t *cr,
|
||||
gpointer user_data);
|
||||
|
||||
GtkPixelCache *_gtk_pixel_cache_new (void);
|
||||
void _gtk_pixel_cache_free (GtkPixelCache *cache);
|
||||
void _gtk_pixel_cache_invalidate (GtkPixelCache *cache,
|
||||
cairo_region_t *region);
|
||||
void _gtk_pixel_cache_draw (GtkPixelCache *cache,
|
||||
cairo_t *cr,
|
||||
GdkWindow *window,
|
||||
cairo_rectangle_int_t *view_rect,
|
||||
cairo_rectangle_int_t *canvas_rect,
|
||||
GtkPixelCacheDrawFunc draw,
|
||||
gpointer user_data);
|
||||
GtkPixelCache *_gtk_pixel_cache_new (void);
|
||||
void _gtk_pixel_cache_free (GtkPixelCache *cache);
|
||||
void _gtk_pixel_cache_invalidate (GtkPixelCache *cache,
|
||||
cairo_region_t *region);
|
||||
void _gtk_pixel_cache_draw (GtkPixelCache *cache,
|
||||
cairo_t *cr,
|
||||
GdkWindow *window,
|
||||
cairo_rectangle_int_t *view_rect,
|
||||
cairo_rectangle_int_t *canvas_rect,
|
||||
GtkPixelCacheDrawFunc draw,
|
||||
gpointer user_data);
|
||||
void _gtk_pixel_cache_set_extra_size (GtkPixelCache *cache,
|
||||
guint extra_width,
|
||||
guint extra_height);
|
||||
void _gtk_pixel_cache_set_content (GtkPixelCache *cache,
|
||||
cairo_content_t content);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user