// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

enum TXPreviewRenderMode {
  PREVIEW_RENDER_MODE_FILL_SCREEN /* 0 */,
  PREVIEW_RENDER_MODE_FILL_EDGE /* 1 */
}

extension TXPreviewRenderModeToX on TXPreviewRenderMode {
  int toValue() {
    switch (this) {
      case TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_SCREEN: return 0;
      case TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_EDGE: return 1;
      default: return 0;
    }
  }
}

extension TXPreviewRenderModeFromX on int {
  TXPreviewRenderMode toTXPreviewRenderMode() {
    switch (this) {
      case 0: return TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_SCREEN;
      case 1: return TXPreviewRenderMode.PREVIEW_RENDER_MODE_FILL_EDGE;
      default: return TXPreviewRenderMode.values[this + 0];
    }
  }
}