Skip to content

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* 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 YogaAlign(public val intValue: Int) {
AUTO(0),
FLEX_START(1),
CENTER(2),
FLEX_END(3),
STRETCH(4),
BASELINE(5),
SPACE_BETWEEN(6),
SPACE_AROUND(7),
SPACE_EVENLY(8),
START(9),
END(10);

public fun intValue(): Int = intValue

public companion object {
@JvmStatic
public fun fromInt(value: Int): YogaAlign =
when (value) {
0 -> AUTO
1 -> FLEX_START
2 -> CENTER
3 -> FLEX_END
4 -> STRETCH
5 -> BASELINE
6 -> SPACE_BETWEEN
7 -> SPACE_AROUND
8 -> SPACE_EVENLY
9 -> START
10 -> END
else -> throw IllegalArgumentException("Unknown enum value: $value")
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* 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 YogaBoxSizing(public val intValue: Int) {
BORDER_BOX(0),
CONTENT_BOX(1);

public fun intValue(): Int = intValue

public companion object {
@JvmStatic
public fun fromInt(value: Int): YogaBoxSizing =
when (value) {
0 -> BORDER_BOX
1 -> CONTENT_BOX
else -> throw IllegalArgumentException("Unknown enum value: $value")
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* 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 YogaDimension(public val intValue: Int) {
WIDTH(0),
HEIGHT(1);

public fun intValue(): Int = intValue

public companion object {
@JvmStatic
public fun fromInt(value: Int): YogaDimension =
when (value) {
0 -> WIDTH
1 -> HEIGHT
else -> throw IllegalArgumentException("Unknown enum value: $value")
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* 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 YogaDisplay(public val intValue: Int) {
FLEX(0),
NONE(1),
CONTENTS(2),
GRID(3);

public fun intValue(): Int = intValue

public companion object {
@JvmStatic
public fun fromInt(value: Int): YogaDisplay =
when (value) {
0 -> FLEX
1 -> NONE
2 -> CONTENTS
3 -> GRID
else -> throw IllegalArgumentException("Unknown enum value: $value")
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* 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 YogaEdge(public val intValue: Int) {
LEFT(0),
TOP(1),
RIGHT(2),
BOTTOM(3),
START(4),
END(5),
HORIZONTAL(6),
VERTICAL(7),
ALL(8);

public fun intValue(): Int = intValue

public companion object {
@JvmStatic
public fun fromInt(value: Int): YogaEdge =
when (value) {
0 -> LEFT
1 -> TOP
2 -> RIGHT
3 -> BOTTOM
4 -> START
5 -> END
6 -> HORIZONTAL
7 -> VERTICAL
8 -> ALL
else -> throw IllegalArgumentException("Unknown enum value: $value")
}
}
}
Loading
Loading