gf_cursor_enable()

Enable a hardware cursor

Synopsis:

#include <gf/gf.h>

int gf_cursor_enable( gf_display_t display
                      unsigned     cursor_index );

Arguments:

display
The display you want to enable the hardware cursor for.
cursor_index
Currently ignored. Set to 0.

Library:

gf

Description:

This function enables the hardware cursor for a display. You need to set the cursor first, using gf_cursor_set(). You can disable the cursor using gf_cursor_disable().


WARNING: Threads should not call this function between calls to gf_draw_begin() and gf_draw_end(), or a deadlock will occur.

Returns:

GF_ERR_OK
Success.
GF_ERR_IODISPLAY
Error communicating with io-display. Check to ensure that io-display is still running. The sloginfo utility may provide more information.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_cursor_disable(), gf_cursor_set(), gf_cursor_set_pos()