Re: Re: gdk_draw_layout seems that it doesn't make damage event for offscreens.
- From: Alexander Larsson <alexl redhat com>
- To: boram1288 park samsung com
- Cc: "gtk-devel-list gnome org" <gtk-devel-list gnome org>
- Subject: Re: Re: gdk_draw_layout seems that it doesn't make damage event for offscreens.
- Date: Wed, 09 Dec 2009 09:19:37 +0100
On Tue, 2009-12-08 at 18:31 +0000, 박보람 wrote:
> Yes, the double buffering handling does generate damage events.
>
> Then, nomally widgets maybe doesn't have this kind of problem.
>
>
>
> But "gtkperf" app draws layout to window directly in
> on_idle_gtkdrawingarea_text_test ( ).
>
> (I attached "test.c" of "gtkperf" which includes
> "on_idle_gtkdrawingarea_text_test ( )")
>
> So, this problem happens.
Yes, any kind of direct drawing to the window via cairo or
gdk_draw_layout() will cause this problem. However, such operations are
not that common.
> To resolve this problem, isn't it good approach to add draw_layout,
> draw_layout_line_with_colors
>
> and draw_layout_with_colors to "struct _GdkDrawableClass" ?
Thats not really required. All these drawing operations will pass
through GdkPangoRenderer which could be modified to create damage events
when drawing directly to a window. I.E:
gdk_pango_renderer_draw_glyphs
gdk_pango_renderer_draw_rectangle
gdk_pango_renderer_draw_error_underline
gdk_pango_renderer_draw_shape
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alexander larsson gmail com
He's an uncontrollable crooked sorceror haunted by an iconic dead American
confidante She's a vivacious hypochondriac single mother with the power to
bend men's minds. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]