On Thu, 22 Feb 2001, Andreas Beck wrote:
> > > > 3. Question:
> > > > How should I handle the following parameters required by
> > > > XCreatePixmapCursor() ?
> > > > Pixmap /* source */,
> > > > Pixmap /* mask */,
> > >
> > > Generate these from the Area that gets fed to the image setting
> > > call.
OK - I can grab easily the source from the given visual as parameter.
But: How should I handle the "mask"?
"man XCreatePixmapCursor" says:
mask Specifies the cursor's source bits to be dis
played or None.
Using "None" for the mask means pre-defined, which should be
avoided...
> > And what should I do in the allocation-function? Nothing, but saying
> > OK?
>
> Basically - or may be lock using more than one cursor ...
Does X provide something to check, if one more cursor is available or
can I always assume that there is one more cursor available?
> > > What do those do ? Setting hotspot ? If so, then for easy handling
> > > I'd put those to 0/0.
> > I don't know, what those do. In libggi/display/X/visual.c is an
> > inlined-function called "make_cursor", that put those to 1/1.
>
> Very probably the hotspot, given the shape of the standard LibGGI X cursor.
"man XCreatePixmapCursor" says:
x
y Specify the x and y coordinates, which indicate
the hotspot relative to the source's origin.
So I will put them to 0/0, except someone has some reasons...
CU,
Christoph Egger
E-Mail: [EMAIL PROTECTED]