The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Enumerations | Functions
cursor Namespace Reference

Classes

struct  manager
 
struct  setter
 

Enumerations

enum  CURSOR_TYPE {
  NORMAL, WAIT, MOVE, ATTACK,
  HYPERLINK, MOVE_DRAG, ATTACK_DRAG, NO_CURSOR,
  NUM_CURSORS
}
 

Functions

void set (CURSOR_TYPE type=NUM_CURSORS)
 Use the default parameter to reset cursors. More...
 
void set_dragging (bool drag)
 
CURSOR_TYPE get ()
 
void set_focus (bool focus)
 
void draw (surface screen)
 
void undraw (surface screen)
 

Enumeration Type Documentation

Enumerator
NORMAL 
WAIT 
MOVE 
ATTACK 
HYPERLINK 
MOVE_DRAG 
ATTACK_DRAG 
NO_CURSOR 
NUM_CURSORS 

Definition at line 30 of file cursor.hpp.

Function Documentation

void cursor::draw ( surface  screen)
CURSOR_TYPE cursor::get ( )
void cursor::set ( CURSOR_TYPE  type = NUM_CURSORS)
void cursor::set_dragging ( bool  drag)
void cursor::set_focus ( bool  focus)

Definition at line 199 of file cursor.cpp.

References set().

Referenced by events::pump().

void cursor::undraw ( surface  screen)