The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 "sdl/rect.hpp"
#include <iostream>
#include <boost/logic/tribool.hpp>
Include dependency graph for cursor.cpp:

Go to the source code of this file.

Namespaces

 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. More...
 
void cursor::set_dragging (bool drag)
 
CURSOR_TYPE cursor::get ()
 
void cursor::set_focus (bool focus)
 

Detailed Description

Support for different cursors-shapes.

Definition in file cursor.cpp.

Function Documentation

static void clear_cache ( )
static

Definition at line 129 of file cursor.cpp.

References gui2::cache, and cursor::NUM_CURSORS.

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

static SDL_Cursor* create_cursor ( surface  surf)
static

Definition at line 37 of file cursor.cpp.

References g, make_neutral_surface(), and mask.

Referenced by get_cursor().

static SDL_Cursor* get_cursor ( cursor::CURSOR_TYPE  type)
static

Definition at line 112 of file cursor.cpp.

References gui2::cache, create_cursor(), surface::get(), image::get_image(), surf, and use_color_cursors().

Referenced by cursor::set().

static bool use_color_cursors ( )
static

Definition at line 32 of file cursor.cpp.

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

Referenced by get_cursor().