Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions
CursorSize.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  CursorSize {
  CURSOR_SIZE_16, CURSOR_SIZE_32, CURSOR_SIZE_48, CURSOR_SIZE_64,
  NUM_CURSOR_SIZES
}
 Custom cursor sizes supported on all platforms for the most part, according to QCursor documentation. More...
 

Functions

int CursorSizeToPixels (CursorSize cursorSize)
 

Enumeration Type Documentation

enum CursorSize

Custom cursor sizes supported on all platforms for the most part, according to QCursor documentation.

Enumerator
CURSOR_SIZE_16 
CURSOR_SIZE_32 
CURSOR_SIZE_48 
CURSOR_SIZE_64 
NUM_CURSOR_SIZES 

Definition at line 11 of file CursorSize.h.

Function Documentation

int CursorSizeToPixels ( CursorSize  cursorSize)

Definition at line 10 of file CursorSize.cpp.

11 {
12  ENGAUGE_ASSERT (cursorSize < NUM_CURSOR_SIZES);
13 
14  switch (cursorSize) {
15  case CURSOR_SIZE_16:
16  return 16;
17 
18  case CURSOR_SIZE_32:
19  return 32;
20 
21  case CURSOR_SIZE_48:
22  return 48;
23 
24  case CURSOR_SIZE_64:
25  return 64;
26 
27  default:
28  break;
29  }
30 
31  ENGAUGE_ASSERT (false);
32  return 0;
33 }
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT if defined(QT_NO_DEBUG) &amp;&amp; !defined(QT_FORCE_ASSERTS) define ENGAUGE...
Definition: EngaugeAssert.h:20