CL_MouseCursor(3)

CL_MouseCursor3

Mouse cursor management class.

Overview

Use this class to set the mouse cursor icon, or to toggle its visibility.

Class members

static void set_cursor(
 CL_MouseCursorProvider *provider,
int frame=0)
static void show(
bool show_async=true)
static void hide()

Members with descriptions

static void set_cursor(
 CL_MouseCursorProvider *provider,
int frame=0)
Parameters:
provider - Mouse cursor to use.
frame - Subframe in the mouse cursor to use.
Description:

Set the system mouse cursor to 'provider'. If 'frame' is also specified, it will use that subframe in the cursor provider.

static void show(
bool show_async=true)
Parameters:
show_async - True if a secondary thread should be used for
mouse painting.
Description:

Makes the currently selected mouse cursor visible. If 'show_async' is true, it will use a secondary thread to draw the mouse. This ensures that the mouse cursor will keep running smooth despite of the framerate in the game.

static void hide()
Description:

Hides the mouse cursor.

Authors

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.

From clanlib0-common-dev 0.4.4-8 in Debian 3.0 (Woody). Parsed by carta from the page's man source.