MLX42 1.0
MLX42
|
#include "MLX42/MLX42_Int.h"
Go to the source code of this file.
mlx_win_cursor_t * mlx_create_cursor | ( | mlx_texture_t * | texture | ) |
Allows for the creation of custom cursors with a given texture.
Use mlx_set_cursor to select the specific cursor. Cursors are destroyed at mlx_terminate().
[in] | texture | The texture to use as cursor. |
Definition at line 27 of file mlx_cursor.c.
mlx_win_cursor_t * mlx_create_std_cursor | ( | cursor_t | type | ) |
Retrieves the system standard cursor.
[in] | type | The standard cursor type to create. |
Definition at line 17 of file mlx_cursor.c.
void mlx_destroy_cursor | ( | mlx_win_cursor_t * | cursor | ) |
Destroys the given cursor object.
[in] | cursor | The cursor object to destroy. |
Definition at line 43 of file mlx_cursor.c.
void mlx_set_cursor | ( | mlx_t * | mlx, |
mlx_win_cursor_t * | cursor | ||
) |
Sets the current cursor to the given custom cursor.
[in] | mlx | The MLX instance handle. |
[in] | cursor | The cursor object to display, if null default cursor is selected. |
Definition at line 50 of file mlx_cursor.c.
void mlx_set_cursor_mode | ( | mlx_t * | mlx, |
mouse_mode_t | mode | ||
) |
Defines the state for the cursor.
[in] | mlx | The MLX instance handle. |
[in] | mode | A specified mouse mode. |
Definition at line 58 of file mlx_cursor.c.