parse static method

WindowsOrientation parse(
  1. int value
)

Parse dmDisplayOrientation value to WindowsOrientation.

Implementation

static WindowsOrientation parse(int value) {
  switch (value) {
    case 3:
      return DMDO_270;
    case 2:
      return DMDO_180;
    case 1:
      return DMDO_90;
    default:
      return DMDO_DEFAULT;
  }
}