pixelcache: add getter for extra width and height.
This commit is contained in:
parent
0eb8479256
commit
7fabc94d3c
@ -90,6 +90,18 @@ _gtk_pixel_cache_set_extra_size (GtkPixelCache *cache,
|
|||||||
cache->extra_height = extra_height ? extra_height : DEFAULT_EXTRA_SIZE;
|
cache->extra_height = extra_height ? extra_height : DEFAULT_EXTRA_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_gtk_pixel_cache_get_extra_size (GtkPixelCache *cache,
|
||||||
|
guint *extra_width,
|
||||||
|
guint *extra_height)
|
||||||
|
{
|
||||||
|
if (extra_width)
|
||||||
|
*extra_width = cache->extra_width;
|
||||||
|
|
||||||
|
if (extra_height)
|
||||||
|
*extra_height = cache->extra_height;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
_gtk_pixel_cache_set_content (GtkPixelCache *cache,
|
_gtk_pixel_cache_set_content (GtkPixelCache *cache,
|
||||||
cairo_content_t content)
|
cairo_content_t content)
|
||||||
|
@ -41,6 +41,9 @@ void _gtk_pixel_cache_draw (GtkPixelCache *cache,
|
|||||||
cairo_rectangle_int_t *canvas_rect,
|
cairo_rectangle_int_t *canvas_rect,
|
||||||
GtkPixelCacheDrawFunc draw,
|
GtkPixelCacheDrawFunc draw,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
void _gtk_pixel_cache_get_extra_size (GtkPixelCache *cache,
|
||||||
|
guint *extra_width,
|
||||||
|
guint *extra_height);
|
||||||
void _gtk_pixel_cache_set_extra_size (GtkPixelCache *cache,
|
void _gtk_pixel_cache_set_extra_size (GtkPixelCache *cache,
|
||||||
guint extra_width,
|
guint extra_width,
|
||||||
guint extra_height);
|
guint extra_height);
|
||||||
|
Loading…
Reference in New Issue
Block a user