toInt method

int toInt()

Return an integer.

Implementation

int toInt() {
  switch (this) {
    case BitmapOrder.none:
      return SDL_BitmapOrder.SDL_BITMAPORDER_NONE;
    case BitmapOrder.bitmapOrder4321:
      return SDL_BitmapOrder.SDL_BITMAPORDER_4321;
    case BitmapOrder.bitmapOrder1234:
      return SDL_BitmapOrder.SDL_BITMAPORDER_1234;
  }
}