The Battle for Wesnoth  1.19.7+dev
Classes | Enumerations | Functions
cursor Namespace Reference

Classes

struct  manager
 
struct  setter
 

Enumerations

enum  CURSOR_TYPE {
  NORMAL , WAIT , IBEAM , 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)
 

Enumeration Type Documentation

◆ CURSOR_TYPE

Enumerator
NORMAL 
WAIT 
IBEAM 
MOVE 
ATTACK 
HYPERLINK 
MOVE_DRAG 
ATTACK_DRAG 
NO_CURSOR 
NUM_CURSORS 

Definition at line 28 of file cursor.hpp.

Function Documentation

◆ get()

CURSOR_TYPE cursor::get ( )

◆ set()

void cursor::set ( CURSOR_TYPE  type = NUM_CURSORS)

◆ set_dragging()

void cursor::set_dragging ( bool  drag)

◆ set_focus()

void cursor::set_focus ( bool  focus)

Definition at line 221 of file cursor.cpp.

References set().

Referenced by events::pump().