[][src]Function fermium::mouse::SDL_CreateCursor

pub unsafe extern "C" fn SDL_CreateCursor(
    data: *const u8,
    mask: *const u8,
    w: c_int,
    h: c_int,
    hot_x: c_int,
    hot_y: c_int
) -> *mut SDL_Cursor

Create a cursor, using the specified bitmap data and mask (in MSB format).

The cursor width must be a multiple of 8 bits.

The cursor is created in black and white according to the following:

datamaskresulting pixel on screen
01White
11Black
00Transparent
10Inverted color if possible, black if not.

See Also: SDL_FreeCursor