Support for different cursors-shapes. More...
#include "cursor.hpp"#include "game_preferences.hpp"#include "image.hpp"#include "preferences_display.hpp"#include "video.hpp"#include <iostream>
Go to the source code of this file.
Namespaces | |
| namespace | cursor |
Functions | |
| static bool | use_color_cursors () |
| static SDL_Cursor * | create_cursor (surface surf) |
| static SDL_Cursor * | get_cursor (cursor::CURSOR_TYPE type) |
| static void | clear_cache () |
| void | cursor::set (CURSOR_TYPE type=NUM_CURSORS) |
| Use the default parameter to reset cursors. | |
| void | cursor::set_dragging (bool drag) |
| CURSOR_TYPE | cursor::get () |
| void | cursor::set_focus (bool focus) |
| void | cursor::draw (surface screen) |
| void | cursor::undraw (surface screen) |
Support for different cursors-shapes.
Definition in file cursor.cpp.
| static void clear_cache | ( | ) | [static] |
Definition at line 119 of file cursor.cpp.
References gui2::cache.
Referenced by cursor::manager::~manager().

| static SDL_Cursor* create_cursor | ( | surface | surf | ) | [static] |
Definition at line 35 of file cursor.cpp.
References make_neutral_surface(), and mask.
Referenced by get_cursor().


| static SDL_Cursor* get_cursor | ( | cursor::CURSOR_TYPE | type | ) | [static] |
Definition at line 108 of file cursor.cpp.
References gui2::cache, create_cursor(), and image::get_image().

| static bool use_color_cursors | ( | ) | [static] |
Definition at line 30 of file cursor.cpp.
References game_config::editor, and preferences::use_color_cursors().

| Generated by doxygen 1.7.1 on Thu May 24 2012 01:03:46 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |