|
Freeciv-3.4
|
#include <SDL3/SDL.h>#include "log.h"#include "tilespec.h"#include "graphics.h"#include "mapview.h"#include "sprite.h"#include "gui_mouse.h"Go to the source code of this file.
Data Structures | |
| struct | color_cursor |
Functions | |
| static SDL_Cursor * | SurfaceToCursor (SDL_Surface *image, int hx, int hy) |
| void | draw_mouse_cursor (void) |
| void | load_cursors (void) |
| void | unload_cursors (void) |
| void | animate_mouse_cursor (void) |
| void | update_mouse_cursor (enum cursor_type new_cursor_type) |
This function is used to animate the mouse cursor.
Definition at line 180 of file gui_mouse.c.
Draw current cursor.
Definition at line 98 of file gui_mouse.c.
Load the cursors (mouse substitute sprites), including a goto cursor, an airdrop cursor, a nuke cursor, and a patrol cursor.
Definition at line 134 of file gui_mouse.c.
|
static |
Convert SDL surface to SDL cursor format (code from SDL-dev mailing list)
Definition at line 53 of file gui_mouse.c.
Free all cursors
Definition at line 162 of file gui_mouse.c.
| void update_mouse_cursor | ( | enum cursor_type | new_cursor_type | ) |
This function will change the current mouse cursor.
Definition at line 212 of file gui_mouse.c.
| struct color_cursor current_color_cursor |
Definition at line 48 of file gui_mouse.c.
| SDL_Cursor* disabled_cursor = NULL |
Definition at line 46 of file gui_mouse.c.
| SDL_Cursor* fc_cursors[CURSOR_LAST][NUM_CURSOR_FRAMES] |
Definition at line 40 of file gui_mouse.c.
Definition at line 43 of file gui_mouse.c.
| enum cursor_type mouse_cursor_type = CURSOR_DEFAULT |
Definition at line 42 of file gui_mouse.c.
| SDL_Cursor* std_cursor = NULL |
Definition at line 45 of file gui_mouse.c.