gf_cursor_set_pos()

Set the hardware cursor position

Synopsis:

#include <gf/gf.h>

int gf_cursor_set_pos( gf_display_t display,
                       unsigned     cursor_index,
                       int          x,
                       int          y );

Arguments:

display
The display you want to set the hardware cursor position for.
cursor_index
Currently ignored. Set to 0.
x, y
Coordinates that describe the new hardware cursor position.

Library:

gf

Description:

This function sets the position of the hardware cursor for a display.


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_enable(), gf_cursor_set()