Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
CursorSize.cpp File Reference
#include "CursorSize.h"
#include "EngaugeAssert.h"
Include dependency graph for CursorSize.cpp:

Go to the source code of this file.

Functions

int CursorSizeToPixels (CursorSize cursorSize)
 

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