diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-05-20 16:55:12 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-06-09 17:45:40 +0100 |
commit | fc569f1ac6ff108afc17f7f439480273826af3a6 (patch) | |
tree | 86cb6e091372e1d9279acef801cf50fdf6841080 /docs | |
parent | d6187c9a028f678287cc2a7f72e1ea9997fd19d0 (diff) | |
download | gtk+-fc569f1ac6ff108afc17f7f439480273826af3a6.tar.gz |
Add frame drawing API to GdkWindow
Existing code drawing on a GDK window has to handle the direct drawing
and the buffered drawing by itself, by checking the window type and
whether or not the window is backed by a native windowing surface. After
that, the calling code has to create a Cairo context from the window and
keep an association between the context and the window itself.
This is completely unnecessary: GDK can determine whether or not it
should use a backing store to draw on a GdkWindow as well as create a
Cairo context, and keep track of it.
This allows to simplify the calling code, and enforce some of the
drawing behavior we want to guarantee to users.
https://bugzilla.gnome.org/show_bug.cgi?id=766675
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gdk/gdk3-sections.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/reference/gdk/gdk3-sections.txt b/docs/reference/gdk/gdk3-sections.txt index 0ca8d48ddd..0b57e93055 100644 --- a/docs/reference/gdk/gdk3-sections.txt +++ b/docs/reference/gdk/gdk3-sections.txt @@ -412,6 +412,9 @@ gdk_window_get_clip_region gdk_window_begin_paint_rect gdk_window_begin_paint_region gdk_window_end_paint +gdk_window_begin_draw_frame +gdk_window_end_draw_fram +gdk_window_should_draw gdk_window_get_visible_region GdkWindowInvalidateHandlerFunc gdk_window_set_invalidate_handler @@ -622,6 +625,7 @@ gdk_window_create_similar_surface gdk_window_create_similar_image_surface gdk_cairo_create gdk_cairo_get_clip_rectangle +gdk_cairo_get_window gdk_cairo_set_source_color gdk_cairo_set_source_rgba gdk_cairo_set_source_pixbuf |