Freeciv-3.3
|
#include <SDL2/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 182 of file gui_mouse.c.
Referenced by gui_event_loop(), and gui_event_loop().
Draw current cursor.
Definition at line 100 of file gui_mouse.c.
Referenced by flush_dirty(), gui_event_loop(), gui_event_loop(), and main_mouse_motion_handler().
Load the cursors (mouse substitute sprites), including a goto cursor, an airdrop cursor, a nuke cursor, and a patrol cursor.
Definition at line 136 of file gui_mouse.c.
|
static |
Convert SDL surface to SDL cursor format (code from SDL-dev mailing list)
Definition at line 57 of file gui_mouse.c.
Referenced by load_cursors().
void update_mouse_cursor | ( | enum cursor_type | new_cursor_type | ) |
This function will change the current mouse cursor.
Definition at line 214 of file gui_mouse.c.
struct color_cursor current_color_cursor |
Definition at line 52 of file gui_mouse.c.
Referenced by animate_mouse_cursor(), draw_mouse_cursor(), and update_mouse_cursor().
SDL_Cursor* disabled_cursor = NULL |
Definition at line 50 of file gui_mouse.c.
Referenced by load_cursors(), unload_cursors(), and update_mouse_cursor().
SDL_Cursor* fc_cursors[CURSOR_LAST][NUM_CURSOR_FRAMES] |
Definition at line 44 of file gui_mouse.c.
Referenced by animate_mouse_cursor(), load_cursors(), and unload_cursors().
Definition at line 47 of file gui_mouse.c.
Referenced by animate_mouse_cursor(), and update_mouse_cursor().
enum cursor_type mouse_cursor_type = CURSOR_DEFAULT |
Definition at line 46 of file gui_mouse.c.
Referenced by animate_mouse_cursor(), control_mouse_cursor(), and update_mouse_cursor().
SDL_Cursor* std_cursor = NULL |
Definition at line 49 of file gui_mouse.c.
Referenced by load_cursors(), unload_cursors(), and update_mouse_cursor().