Re: custom widget + xft drawable




 MG> I'm trying to create custom widget using Xft drawable to render
 MG> data.

Will answer to myself to keep solution in mailing list archives
(thanks to Chong Kai Xiong from #gtk+ channel!).

gdk_window_get_internal_paint_info()

If you bypass the GDK layer and use windowing system primitives to
draw directly onto a GdkWindow, then you need to deal with two
details: there may be an offset between GDK coordinates and windowing
system coordinates, and GDK may have redirected drawing to a offscreen
pixmap as the result of a gdk_window_begin_paint_region() calls. This
function allows retrieving the information you need to compensate for
these effects.

-- 
JID: dottedmag jabber dottedmag net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]