Josh Posted February 12, 2014 Share Posted February 12, 2014 Is there any way to get what widget or window exists at a certain point onscreen? It's no good to go through the top window and try to figure it out by dimensions, because you don't know the order any child windows are drawn in. The command would be something like this: GTKWidget* gtk_get_widget_at_coordinates(int x, int y); Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
beo6 Posted February 12, 2014 Share Posted February 12, 2014 i wonder how why you would need that? isn't the main purpose of a UI toolkit to don't have to worry about every widget position? Quote Link to comment Share on other sites More sharing options...
Rick Posted February 12, 2014 Share Posted February 12, 2014 I know in .NET you use something like this for the treeview. http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.getnodeat(v=vs.110).aspx Quote Link to comment Share on other sites More sharing options...
Guppy Posted February 13, 2014 Share Posted February 13, 2014 This http://chipx86.github.io/gtkparasite/ styles it self as 'firebug for gtk' so it stands to reason that they found a way of doing it. Sourcecode: https://github.com/chipx86/gtkparasite/ (MIT license) Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.