Index: [thread] [date] [subject] [author]
  From: Andreas Beck <becka@rz.uni-duesseldorf.de>
  To  : ggi-develop@eskimo.com
  Date: Thu, 3 Jun 1999 16:50:36 +0200

Re: GGI Cursor API proposal.

> 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.

> 	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.

> 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.

CU, ANdy

-- 
= Andreas Beck                    |  Email :  <andreas.beck@ggi-project.org> =

Index: [thread] [date] [subject] [author]