toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case SystemCursor.arrow:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_ARROW;
    case SystemCursor.ibeam:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_IBEAM;
    case SystemCursor.wait:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_WAIT;
    case SystemCursor.crosshair:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_CROSSHAIR;
    case SystemCursor.waitarrow:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_WAITARROW;
    case SystemCursor.sizenwse:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_SIZENWSE;
    case SystemCursor.sizenesw:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_SIZENESW;
    case SystemCursor.sizewe:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_SIZEWE;
    case SystemCursor.sizens:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_SIZENS;
    case SystemCursor.sizeall:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_SIZEALL;
    case SystemCursor.no:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_NO;
    case SystemCursor.hand:
      return SDL_SystemCursor.SDL_SYSTEM_CURSOR_HAND;
    case SystemCursor.numSystemCursors:
      return SDL_SystemCursor.SDL_NUM_SYSTEM_CURSORS;
  }
}