Re: custom widget + xft drawable
- From: Mikhail Gusarov <dottedmag dottedmag net>
- To: gtk-app-devel-list gnome org
- Subject: Re: custom widget + xft drawable
- Date: Mon, 21 Aug 2006 00:00:27 +0700
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]