Namespaces | Functions

cursor.cpp File Reference

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>
Include dependency graph for cursor.cpp:

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)

Detailed Description

Support for different cursors-shapes.

Definition in file cursor.cpp.


Function Documentation

static void clear_cache (  )  [static]

Definition at line 119 of file cursor.cpp.

References gui2::cache.

Referenced by cursor::manager::~manager().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

static bool use_color_cursors (  )  [static]

Definition at line 30 of file cursor.cpp.

References game_config::editor, and preferences::use_color_cursors().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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