ManaPlus
Data Structures | Functions | Variables
Cursors Namespace Reference

Data Structures

struct  StrToCursor
 

Functions

CursorT stringToCursor (const std::string &name)
 

Variables

static const StrToCursor hoverCursors []
 

Function Documentation

◆ stringToCursor()

CursorT Cursors::stringToCursor ( const std::string &  name)

Definition at line 60 of file cursors.cpp.

61  {
62  for (size_t f = 0; f < sizeof(hoverCursors) / sizeof(StrToCursor);
63  f ++)
64  {
65  if (hoverCursors[f].str == name)
66  return hoverCursors[f].cursor;
67  }
69  }
@ CURSOR_POINTER
Definition: cursor.h:29
static const StrToCursor hoverCursors[]
Definition: cursors.cpp:28

References Cursors::StrToCursor::cursor, Cursor::CURSOR_POINTER, and hoverCursors.

Referenced by BeingInfo::setHoverCursor(), and ItemInfo::setPickupCursor().

Variable Documentation

◆ hoverCursors

const StrToCursor Cursors::hoverCursors[]
static

Definition at line 28 of file cursors.cpp.

Referenced by stringToCursor().