Index:
[thread]
[date]
[subject]
[author]
From: Kien Pham <xengren@yahoo.com>
To : ggi-develop@eskimo.com
Date: Thu, 3 Jun 1999 22:45:50 -0700 (PDT)
Re: GGI Cursor API proposal.
--- Andreas Beck <becka@rz.uni-duesseldorf.de> wrote:
> > typedef struct ggi_cursor_t
> > {
> > ggi_visual_t vis; // Visual that the cursor is bound
> to.
> > void* image; // Must be of the same depth and color
> format as the corresponding ggi_visual_t;
>
> This is _not_ the usual case. Most HW cursor are of a
> really different
> format.
O.k. If so we can accept plain RGB or YUV bitmaps and do
the actual conversion and scaling in ggiCreateCursor().
> > int width, height;
> > int hotx, hoty; // hotspot
> > } ggi_cursor_t;
>
> > ggi_cursor_id_t ggiCreateCursor(ggi_cursor_t cursor);
> > int ggiMoveCursor(ggi_cursor_id_t cursor, int x, int
> y);
> > int ggiHideCursor(ggi_cursor_id_t cursor);
> > int ggiShowCursor(ggi_cursor_id_t cursor);
> > int ggiDeleteCursor(ggi_cursor_id_t cursor);
>
> This lacks cursor image setup.
What kind of setup do you need? I wasn't aiming for a
perfect API. Just one that is simple, useable, and can be
implemented now.
> > This API allows each visual to have multiple cursors
> and it
> > allows the cursors to move independently. What else can
> you
> > want?
>
> The most interesting part is setting up the bitmap.
>
> > Systems that do not support hardware cursors can use
> > software emulation.
>
> No. They can't. This has been discussed here several
> times. Please read up
> the ML archives on that topic.
If you have a better idea and want to implement it, great.
:) I'm just selfishly trying to add features to GGI so I
can make my stuff work. :) Software implementation is not a
problem even in DirectBuffer when the proper hooks are
added to GGI. It will probably be ugly and slow, but it'll
work. Or we can add:
boolean ggiCursorAvailable() and avoid all that extra code.
Whatever the case, help me improve the API or replace it
totally with your genious. Something is better than
nothing.
> CU, ANdy
>
> --
> = Andreas Beck | Email :
> <andreas.beck@ggi-project.org> =
~K.P.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Index:
[thread]
[date]
[subject]
[author]