- From: Havoc Pennington <hp pobox com>
- To: Benjamin Otte <otte gnome org>
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: rendering-cleanup-next
- Date: Sat, 11 Sep 2010 13:44:20 -0400
On Sat, Sep 11, 2010 at 1:11 PM, Benjamin Otte <otte gnome org> wrote:
> This is actually a rather ugly situation right now: Everything in the
> widget but the draw function (key press events etc) uses coordinates
> relative to the GdkWindow, only the draw function doesn't. So when
> calling internal get_offsets() style APIs, the draw function always
> has to subtract the allocation again.
Oh I see, got it.
Seems like the same basic issue as size_allocate taking the x,y. The
big picture goal would be to make widgets always use self-relative
If there were a facility to get events without having a GdkWindow, it
ought to be designed to go ahead and translate the stuff in the events
relative to the widget.
I had a proposal for that here btw:
Anyway, certainly ought to land the new rendering branch first. It's
so tantalizingly within reach to have the clipping, scrolling,
event-getting without windows, plus "all coords are widget-relative"
though. Hoping it makes 3.0!
] [Thread Prev