Re: In GTK, how are screen coordinates mapped to GUI objects?

2015-05-11 Thread Jasper St. Pierre
Right. If you were building a scalable UI with a flat hierarchy of objects that do not move often (scrolling is OK, since scrolling is just an offset across the whole set of objects), then one solution is known as a quadtree. The idea here is that you recursively subdivide the scene into quadrants

Re: In GTK, how are screen coordinates mapped to GUI objects?

2015-05-11 Thread Paul Davis
On Mon, May 11, 2015 at 5:30 PM, Jasper St. Pierre > wrote: > >> >> https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.c#n7247 >> > > > notice the assumption that there's no Z-axis ordering. > that will teach me to write first and read second. GDK in GTK3 now does have z-axis ordering even thou

Re: In GTK, how are screen coordinates mapped to GUI objects?

2015-05-11 Thread Paul Davis
On Mon, May 11, 2015 at 5:30 PM, Jasper St. Pierre wrote: > Computers are *fast*. It turns out that simply recursively walking > down all children is fast enough for most cases. It's a complicated > walk, but it's entirely doable. You can see the code for the walk > here: > > https://git.gnome.or

Re: In GTK, how are screen coordinates mapped to GUI objects?

2015-05-11 Thread Jasper St. Pierre
Computers are *fast*. It turns out that simply recursively walking down all children is fast enough for most cases. It's a complicated walk, but it's entirely doable. You can see the code for the walk here: https://git.gnome.org/browse/gtk+/tree/gdk/gdkwindow.c#n7247 More complex data structures,

In GTK, how are screen coordinates mapped to GUI objects?

2015-05-11 Thread George Nychis
I am trying to gain a very technical understanding of how operating systems and GUI systems (like GTK) scalably map coordinates on the 2d screen to objects. For example, there are many applications running with graphical interfaces to them active on the screen, and each application interface has d

Re: API-MS-WIN-CORE

2015-05-11 Thread Mihamina Rakotomandimby
On 05/11/2015 05:16 PM, Bernard CANTALOUBE wrote: I have a problem with window VISTA: All the libraries API-MS-WIN-CORE. are missing. A stand alone application made with GTK can't work withou them. Is there a solution ? More details needed: What did you install, how did you install? Wh

[no subject]

2015-05-11 Thread Bernard CANTALOUBE
I have a problem with window VISTA:   All the libraries API-MS-WIN-CORE. are missing.   A stand alone application made with GTK can't work withou them.   Is there a solution ?   Thanks.  ___ gtk-list mailing list gtk-list@gnome.org https://mai

Native OS Gtk theme ?

2015-05-11 Thread Maxime Doyen
Hi everyone, Since 3.14.x, Adwaita is the default theme, as Mathias explained here: https://blogs.gnome.org/mclasen/2014/06/13/a-new-default-theme-for-gtk/ I quote: "(No need to panic though. Even if it is no longer the default, the ms-windows theme will still be available.)" I successfully bu