Path: utzoo!attcan!uunet!bloom-beacon!EXPO.LCS.MIT.EDU!rws
From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler)
Newsgroups: comp.windows.x
Subject: Re: Finding allocated colormap entries (was: Re: Pixmap depths)
Message-ID: <8909262250.AA00337@expire.lcs.mit.edu>
Date: 26 Sep 89 22:50:46 GMT
References: <38900@bu-cs.BU.EDU>
Sender: daemon@bloom-beacon.MIT.EDU
Organization: The Internet
Lines: 16


    On a related issue, is there any way of finding which colormap entries
    are defined on a particular colormap?

Nope.  If I understand you, this would require a protocol extension to do right.

    Another feature that I would really appreciate is to be able to find
    out just how many colors are available in a colormap (at least
    approximately, given asynchronicity) without having to call
    XAllocColorCells() multiple times or having the call fail until my
    request fits.  Am I missing something here, too?

This has also been asked about before.  There is no support for this.  The only
thing you are missing is that, unless you grab the server, the answer you get
back could be useless (either too large or too small) by the time you get
around to allocating.