/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // @generated by enums.py package com.facebook.yoga public enum class YogaUnit(public val intValue: Int) { UNDEFINED(0), POINT(1), PERCENT(2), AUTO(3), MAX_CONTENT(4), FIT_CONTENT(5), STRETCH(6); public fun intValue(): Int = intValue public companion object { @JvmStatic public fun fromInt(value: Int): YogaUnit = when (value) { 0 -> UNDEFINED 1 -> POINT 2 -> PERCENT 3 -> AUTO 4 -> MAX_CONTENT 5 -> FIT_CONTENT 6 -> STRETCH else -> throw IllegalArgumentException("Unknown enum value: $value") } } }