[Openicc] _ICC_PROFILE in reality

Hal V. Engel hvengel at gmail.com
Thu May 26 13:01:22 PDT 2011

On Thursday, May 26, 2011 12:12:32 PM Jon Cruz wrote:
> On May 26, 2011, at 3:35 AM, Richard Hughes wrote:
> > Right, but how is an application supposed to know what "xinerama
> > screen" it's on?
> http://developer.gnome.org/gdk/stable/GdkScreen.html#gdk-screen-get-monitor
> -at-window
> http://developer.gnome.org/gdk/stable/GdkScreen.html#gdk-screen-get-monito
> r-at-point
> http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/src/ege
> -color-prof-tracker.cpp

For Qt apps this is a very simple thing since there are high level calls to 
ask for a screen number (handle) for a particular widget or part of a widget 
(IE. get the screen that each corner of the widget is on and then get the 
local coordinates to know where the screen bounderies are located).  So the 
APIs for apps to figure this out exist in most widget sets and are not hard to 
use for the most part.  Actually on X11 it is easier than on Windows or OS/X 
since these are all simple API calls and on Windows and OS/X it requires 
writing a function to interate over the screens to find this out.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/openicc/attachments/20110526/83c5e8f9/attachment.htm>

More information about the openicc mailing list