getMode method

int getMode()

Implementation

int getMode() {
  switch (this) {
    case Mode.normal:
      return 0;
    case Mode.horizontal:
      return 1;
  }
}