On 19 Feb 2001, Marcus Sundberg wrote:
> [EMAIL PROTECTED] (Christoph Egger) writes:
>
> > Hi!
> >
> >
> > 1. Question:
> >
> > To create a text-cursor, should I use XCreateFontCursor() or
> > XCreateGlyphCursor() ?
>
> "text-cursor" ?
> You should use neither - XCreatePixmapCursor() is what you'll want
> to use. Having pre-defined cursors doesn't really belong in LibOVL.
>
> > 2. Question:
> >
> > The X-target from libggi already creates a mouse-cursor. Should I
> > close and reopen it at allocating time to change e.g. the
> > image of the mouse-cursor?
>
> Don't do anything to the cursor created by LibGGI, simply make a new
> one and use XDefineCursor(). That is much less intrusive on LibGGI.
TNX.
3. Question:
How should I handle the following parameters required by
XCreatePixmapCursor() ?
Pixmap /* source */,
Pixmap /* mask */,
XColor* /* foreground_color */,
XColor* /* background_color */,
unsigned int /* x */,
unsigned int /* y */
As Marcus said above, they shouldn't be pre-defined. On the other
side, I won't put them into the properties, because the they don't
have to be dependent on X! They have to fit with other possible
targets as well!
CU,
Christoph Egger
E-Mail: [EMAIL PROTECTED]