All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.util.yoga.Yoga Maven / Gradle / Ivy

There is a newer version: 3.3.5
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.util.yoga;

import javax.annotation.*;

import java.nio.*;

import org.lwjgl.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.MemoryStack.*;
import static org.lwjgl.system.MemoryUtil.*;

/**
 * Native bindings to Yoga.
 * 
 * 

Yoga is an open-source, cross-platform layout library that implements Flexbox. Yoga’s focus is on creating an expressive layout library, not * implementing all of CSS. Therefore, there are no plans to include support for tables, floats, or similar CSS concepts. Yoga also does not support * styling properties that have no impact on layout, such as color or background properties.

* *

Yoga vs Flexbox

* *

Yoga aims to be compatible with Flexbox according to the w3 specification. However, Yoga was not developed to strictly adhere to the specification; * thus, there are aspects where Yoga differs.

* *

Default values

* *

Yoga has chosen to change the default values of some properties to better fit mobile layout use cases. The following CSS block describes the * differences in default values from the Flexbox w3 specification:

* *

 * div {
 *   box-sizing: border-box;
 *   position: relative;
 * 
 *   display: flex;
 *   flex-direction: column;
 *   align-items: stretch;
 *   flex-shrink: 0;
 *   align-content: flex-start;
 * 
 *   border-width: 0px;
 *   margin: 0px;
 *   padding: 0px;
 *   min-width: 0px;
 * }
* *

Right-to-Left

* *

We believe that Right-to-Left (RTL) should be a first class citizen when it comes to layout. Therefore, Yoga implements non-standard RTL support for * margin, padding, border, and position properties. This enables specifying these properties as start instead of left and end instead of right.

* *

Yoga-specific properties

* *

The goal of Yoga is to be a library which makes layout easy. Of course, implementing Flexbox, a common and well-liked system, helps meet this goal. * However, there are areas where we think Yoga can evolve beyond Flexbox and provide developers with tools not included in the Flexbox w3 specification. * Currently Yoga has added one such property, AspectRatio, to solve a common problem we saw in many UIs.

*/ public class Yoga { public static final float YGUndefined = 10e20f; /** * YGAlign * *
Enum values:
* *
    *
  • {@link #YGAlignAuto AlignAuto}
  • *
  • {@link #YGAlignFlexStart AlignFlexStart}
  • *
  • {@link #YGAlignCenter AlignCenter}
  • *
  • {@link #YGAlignFlexEnd AlignFlexEnd}
  • *
  • {@link #YGAlignStretch AlignStretch}
  • *
  • {@link #YGAlignBaseline AlignBaseline}
  • *
  • {@link #YGAlignSpaceBetween AlignSpaceBetween}
  • *
  • {@link #YGAlignSpaceAround AlignSpaceAround}
  • *
*/ public static final int YGAlignAuto = 0, YGAlignFlexStart = 1, YGAlignCenter = 2, YGAlignFlexEnd = 3, YGAlignStretch = 4, YGAlignBaseline = 5, YGAlignSpaceBetween = 6, YGAlignSpaceAround = 7; /** * YGDimension * *
Enum values:
* *
    *
  • {@link #YGDimensionWidth DimensionWidth}
  • *
  • {@link #YGDimensionHeight DimensionHeight}
  • *
*/ public static final int YGDimensionWidth = 0, YGDimensionHeight = 1; /** * YGDirection * *
Enum values:
* *
    *
  • {@link #YGDirectionInherit DirectionInherit}
  • *
  • {@link #YGDirectionLTR DirectionLTR}
  • *
  • {@link #YGDirectionRTL DirectionRTL}
  • *
*/ public static final int YGDirectionInherit = 0, YGDirectionLTR = 1, YGDirectionRTL = 2; /** * YGDisplay * *
Enum values:
* *
    *
  • {@link #YGDisplayFlex DisplayFlex}
  • *
  • {@link #YGDisplayNone DisplayNone}
  • *
*/ public static final int YGDisplayFlex = 0, YGDisplayNone = 1; /** * YGEdge * *
Enum values:
* *
    *
  • {@link #YGEdgeLeft EdgeLeft}
  • *
  • {@link #YGEdgeTop EdgeTop}
  • *
  • {@link #YGEdgeRight EdgeRight}
  • *
  • {@link #YGEdgeBottom EdgeBottom}
  • *
  • {@link #YGEdgeStart EdgeStart}
  • *
  • {@link #YGEdgeEnd EdgeEnd}
  • *
  • {@link #YGEdgeHorizontal EdgeHorizontal}
  • *
  • {@link #YGEdgeVertical EdgeVertical}
  • *
  • {@link #YGEdgeAll EdgeAll}
  • *
*/ public static final int YGEdgeLeft = 0, YGEdgeTop = 1, YGEdgeRight = 2, YGEdgeBottom = 3, YGEdgeStart = 4, YGEdgeEnd = 5, YGEdgeHorizontal = 6, YGEdgeVertical = 7, YGEdgeAll = 8; /** YGExperimentalFeature */ public static final int YGExperimentalFeatureWebFlexBasis = 0; /** * YGFlexDirection * *
Enum values:
* *
    *
  • {@link #YGFlexDirectionColumn FlexDirectionColumn}
  • *
  • {@link #YGFlexDirectionColumnReverse FlexDirectionColumnReverse}
  • *
  • {@link #YGFlexDirectionRow FlexDirectionRow}
  • *
  • {@link #YGFlexDirectionRowReverse FlexDirectionRowReverse}
  • *
*/ public static final int YGFlexDirectionColumn = 0, YGFlexDirectionColumnReverse = 1, YGFlexDirectionRow = 2, YGFlexDirectionRowReverse = 3; /** * YGJustify * *
Enum values:
* *
    *
  • {@link #YGJustifyFlexStart JustifyFlexStart}
  • *
  • {@link #YGJustifyCenter JustifyCenter}
  • *
  • {@link #YGJustifyFlexEnd JustifyFlexEnd}
  • *
  • {@link #YGJustifySpaceBetween JustifySpaceBetween}
  • *
  • {@link #YGJustifySpaceAround JustifySpaceAround}
  • *
  • {@link #YGJustifySpaceEvenly JustifySpaceEvenly}
  • *
*/ public static final int YGJustifyFlexStart = 0, YGJustifyCenter = 1, YGJustifyFlexEnd = 2, YGJustifySpaceBetween = 3, YGJustifySpaceAround = 4, YGJustifySpaceEvenly = 5; /** * YGLogLevel * *
Enum values:
* *
    *
  • {@link #YGLogLevelError LogLevelError}
  • *
  • {@link #YGLogLevelWarn LogLevelWarn}
  • *
  • {@link #YGLogLevelInfo LogLevelInfo}
  • *
  • {@link #YGLogLevelDebug LogLevelDebug}
  • *
  • {@link #YGLogLevelVerbose LogLevelVerbose}
  • *
  • {@link #YGLogLevelFatal LogLevelFatal}
  • *
*/ public static final int YGLogLevelError = 0, YGLogLevelWarn = 1, YGLogLevelInfo = 2, YGLogLevelDebug = 3, YGLogLevelVerbose = 4, YGLogLevelFatal = 5; /** * YGMeasureMode * *
Enum values:
* *
    *
  • {@link #YGMeasureModeUndefined MeasureModeUndefined}
  • *
  • {@link #YGMeasureModeExactly MeasureModeExactly}
  • *
  • {@link #YGMeasureModeAtMost MeasureModeAtMost}
  • *
*/ public static final int YGMeasureModeUndefined = 0, YGMeasureModeExactly = 1, YGMeasureModeAtMost = 2; /** * YGNodeType * *
Enum values:
* *
    *
  • {@link #YGNodeTypeDefault NodeTypeDefault}
  • *
  • {@link #YGNodeTypeText NodeTypeText}
  • *
*/ public static final int YGNodeTypeDefault = 0, YGNodeTypeText = 1; /** * YGOverflow * *
Enum values:
* *
    *
  • {@link #YGOverflowVisible OverflowVisible}
  • *
  • {@link #YGOverflowHidden OverflowHidden}
  • *
  • {@link #YGOverflowScroll OverflowScroll}
  • *
*/ public static final int YGOverflowVisible = 0, YGOverflowHidden = 1, YGOverflowScroll = 2; /** * YGPositionType * *
Enum values:
* *
    *
  • {@link #YGPositionTypeRelative PositionTypeRelative}
  • *
  • {@link #YGPositionTypeAbsolute PositionTypeAbsolute}
  • *
*/ public static final int YGPositionTypeRelative = 0, YGPositionTypeAbsolute = 1; /** * YGPrintOptions * *
Enum values:
* *
    *
  • {@link #YGPrintOptionsLayout PrintOptionsLayout}
  • *
  • {@link #YGPrintOptionsStyle PrintOptionsStyle}
  • *
  • {@link #YGPrintOptionsChildren PrintOptionsChildren}
  • *
*/ public static final int YGPrintOptionsLayout = 1, YGPrintOptionsStyle = 2, YGPrintOptionsChildren = 4; /** * YGUnit * *
Enum values:
* *
    *
  • {@link #YGUnitUndefined UnitUndefined}
  • *
  • {@link #YGUnitPoint UnitPoint}
  • *
  • {@link #YGUnitPercent UnitPercent}
  • *
  • {@link #YGUnitAuto UnitAuto}
  • *
*/ public static final int YGUnitUndefined = 0, YGUnitPoint = 1, YGUnitPercent = 2, YGUnitAuto = 3; /** * YGWrap * *
Enum values:
* *
    *
  • {@link #YGWrapNoWrap WrapNoWrap}
  • *
  • {@link #YGWrapWrap WrapWrap}
  • *
  • {@link #YGWrapReverse WrapReverse}
  • *
*/ public static final int YGWrapNoWrap = 0, YGWrapWrap = 1, YGWrapReverse = 2; static { Library.loadSystem(System::load, System::loadLibrary, Yoga.class, Platform.mapLibraryNameBundled("lwjgl_yoga")); } protected Yoga() { throw new UnsupportedOperationException(); } // --- [ YGNodeNew ] --- @NativeType("YGNodeRef") public static native long YGNodeNew(); // --- [ YGNodeNewWithConfig ] --- public static native long nYGNodeNewWithConfig(long config); @NativeType("YGNodeRef") public static long YGNodeNewWithConfig(@NativeType("YGConfigRef const") long config) { if (CHECKS) { check(config); } return nYGNodeNewWithConfig(config); } // --- [ YGNodeClone ] --- public static native long nYGNodeClone(long node); @NativeType("YGNodeRef") public static long YGNodeClone(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeClone(node); } // --- [ YGNodeFree ] --- public static native void nYGNodeFree(long node); public static void YGNodeFree(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeFree(node); } // --- [ YGNodeFreeRecursive ] --- public static native void nYGNodeFreeRecursive(long node); public static void YGNodeFreeRecursive(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeFreeRecursive(node); } // --- [ YGNodeReset ] --- public static native void nYGNodeReset(long node); public static void YGNodeReset(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeReset(node); } // --- [ YGNodeGetInstanceCount ] --- @NativeType("int32_t") public static native int YGNodeGetInstanceCount(); // --- [ YGNodeInsertChild ] --- public static native void nYGNodeInsertChild(long node, long child, int index); public static void YGNodeInsertChild(@NativeType("YGNodeRef const") long node, @NativeType("YGNodeRef const") long child, @NativeType("uint32_t") int index) { if (CHECKS) { check(node); check(child); } nYGNodeInsertChild(node, child, index); } // --- [ YGNodeInsertSharedChild ] --- /** Unsafe version of: {@link #YGNodeInsertSharedChild NodeInsertSharedChild} */ public static native void nYGNodeInsertSharedChild(long node, long child, int index); /** * This function inserts the child {@code YGNodeRef} as a children of the node received by parameter and set the Owner of the child object to null. This * function is expected to be called when using Yoga in persistent mode in order to share a {@code YGNodeRef} object as a child of two different Yoga * trees. The child {@code YGNodeRef} is expected to be referenced from its original owner and from a clone of its original owner. */ public static void YGNodeInsertSharedChild(@NativeType("YGNodeRef const") long node, @NativeType("YGNodeRef const") long child, @NativeType("uint32_t") int index) { if (CHECKS) { check(node); check(child); } nYGNodeInsertSharedChild(node, child, index); } // --- [ YGNodeRemoveChild ] --- public static native void nYGNodeRemoveChild(long node, long child); public static void YGNodeRemoveChild(@NativeType("YGNodeRef const") long node, @NativeType("YGNodeRef const") long child) { if (CHECKS) { check(node); check(child); } nYGNodeRemoveChild(node, child); } // --- [ YGNodeRemoveAllChildren ] --- public static native void nYGNodeRemoveAllChildren(long node); public static void YGNodeRemoveAllChildren(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeRemoveAllChildren(node); } // --- [ YGNodeGetChild ] --- public static native long nYGNodeGetChild(long node, int index); @NativeType("YGNodeRef") public static long YGNodeGetChild(@NativeType("YGNodeRef const") long node, @NativeType("uint32_t") int index) { if (CHECKS) { check(node); } return nYGNodeGetChild(node, index); } // --- [ YGNodeGetOwner ] --- public static native long nYGNodeGetOwner(long node); @NativeType("YGNodeRef") public static long YGNodeGetOwner(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeGetOwner(node); } // --- [ YGNodeGetParent ] --- public static native long nYGNodeGetParent(long node); @NativeType("YGNodeRef") public static long YGNodeGetParent(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeGetParent(node); } // --- [ YGNodeGetChildCount ] --- public static native int nYGNodeGetChildCount(long node); @NativeType("uint32_t") public static int YGNodeGetChildCount(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeGetChildCount(node); } // --- [ YGNodeSetChildren ] --- public static native void nYGNodeSetChildren(long owner, long children, int count); public static void YGNodeSetChildren(@NativeType("YGNodeRef const") long owner, @NativeType("YGNodeRef const *") PointerBuffer children) { if (CHECKS) { check(owner); } nYGNodeSetChildren(owner, memAddress(children), children.remaining()); } // --- [ YGNodeCalculateLayout ] --- /** Unsafe version of: {@link #YGNodeCalculateLayout NodeCalculateLayout} */ public static native void nYGNodeCalculateLayout(long node, float availableWidth, float availableHeight, int ownerDirection); /** @param ownerDirection one of:
{@link #YGDirectionInherit DirectionInherit}{@link #YGDirectionLTR DirectionLTR}{@link #YGDirectionRTL DirectionRTL}
*/ public static void YGNodeCalculateLayout(@NativeType("YGNodeRef const") long node, float availableWidth, float availableHeight, @NativeType("YGDirection") int ownerDirection) { if (CHECKS) { check(node); } nYGNodeCalculateLayout(node, availableWidth, availableHeight, ownerDirection); } // --- [ YGNodeMarkDirty ] --- /** Unsafe version of: {@link #YGNodeMarkDirty NodeMarkDirty} */ public static native void nYGNodeMarkDirty(long node); /** * Marks a node as dirty. * *

Only valid for nodes with a custom measure function set. YG knows when to mark all other nodes as dirty but because nodes with measure functions * depends on information not known to YG they must perform this dirty marking manually.

*/ public static void YGNodeMarkDirty(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeMarkDirty(node); } // --- [ YGNodeMarkDirtyAndPropogateToDescendants ] --- /** Unsafe version of: {@link #YGNodeMarkDirtyAndPropogateToDescendants NodeMarkDirtyAndPropogateToDescendants} */ public static native void nYGNodeMarkDirtyAndPropogateToDescendants(long node); /** * Marks the current node and all its descendants as dirty. * *

This function is added to test yoga benchmarks. It is not expected to be used in production as calling {@link #YGNodeCalculateLayout NodeCalculateLayout} will cause the * recalculation of each and every node.

*/ public static void YGNodeMarkDirtyAndPropogateToDescendants(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeMarkDirtyAndPropogateToDescendants(node); } // --- [ YGNodePrint ] --- /** Unsafe version of: {@link #YGNodePrint NodePrint} */ public static native void nYGNodePrint(long node, int options); /** @param options one of:
{@link #YGPrintOptionsLayout PrintOptionsLayout}{@link #YGPrintOptionsStyle PrintOptionsStyle}{@link #YGPrintOptionsChildren PrintOptionsChildren}
*/ public static void YGNodePrint(@NativeType("YGNodeRef const") long node, @NativeType("YGPrintOptions") int options) { if (CHECKS) { check(node); } nYGNodePrint(node, options); } // --- [ YGFloatIsUndefined ] --- @NativeType("bool") public static native boolean YGFloatIsUndefined(float value); // --- [ YGNodeCanUseCachedMeasurement ] --- /** Unsafe version of: {@link #YGNodeCanUseCachedMeasurement NodeCanUseCachedMeasurement} */ public static native boolean nYGNodeCanUseCachedMeasurement(int widthMode, float width, int heightMode, float height, int lastWidthMode, float lastWidth, int lastHeightMode, float lastHeight, float lastComputedWidth, float lastComputedHeight, float marginRow, float marginColumn, long config); /** @param widthMode one of:
{@link #YGMeasureModeUndefined MeasureModeUndefined}{@link #YGMeasureModeExactly MeasureModeExactly}{@link #YGMeasureModeAtMost MeasureModeAtMost}
*/ @NativeType("bool") public static boolean YGNodeCanUseCachedMeasurement(@NativeType("YGMeasureMode") int widthMode, float width, @NativeType("YGMeasureMode") int heightMode, float height, @NativeType("YGMeasureMode") int lastWidthMode, float lastWidth, @NativeType("YGMeasureMode") int lastHeightMode, float lastHeight, float lastComputedWidth, float lastComputedHeight, float marginRow, float marginColumn, @NativeType("YGConfigRef const") long config) { if (CHECKS) { check(config); } return nYGNodeCanUseCachedMeasurement(widthMode, width, heightMode, height, lastWidthMode, lastWidth, lastHeightMode, lastHeight, lastComputedWidth, lastComputedHeight, marginRow, marginColumn, config); } // --- [ YGNodeCopyStyle ] --- public static native void nYGNodeCopyStyle(long dstNode, long srcNode); public static void YGNodeCopyStyle(@NativeType("YGNodeRef const") long dstNode, @NativeType("YGNodeRef const") long srcNode) { if (CHECKS) { check(dstNode); check(srcNode); } nYGNodeCopyStyle(dstNode, srcNode); } // --- [ YGNodeGetContext ] --- public static native long nYGNodeGetContext(long node); @NativeType("void *") public static long YGNodeGetContext(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeGetContext(node); } // --- [ YGNodeSetContext ] --- public static native void nYGNodeSetContext(long node, long context); public static void YGNodeSetContext(@NativeType("YGNodeRef const") long node, @NativeType("void *") long context) { if (CHECKS) { check(node); check(context); } nYGNodeSetContext(node, context); } // --- [ YGConfigSetPrintTreeFlag ] --- public static native void nYGConfigSetPrintTreeFlag(long config, boolean enabled); public static void YGConfigSetPrintTreeFlag(@NativeType("YGConfigRef") long config, @NativeType("bool") boolean enabled) { if (CHECKS) { check(config); } nYGConfigSetPrintTreeFlag(config, enabled); } // --- [ YGNodeGetMeasureFunc ] --- public static native long nYGNodeGetMeasureFunc(long node); @Nullable public static YGMeasureFunc YGNodeGetMeasureFunc(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return YGMeasureFunc.createSafe(nYGNodeGetMeasureFunc(node)); } // --- [ YGNodeSetMeasureFunc ] --- public static native void nYGNodeSetMeasureFunc(long node, long measureFunc); public static void YGNodeSetMeasureFunc(@NativeType("YGNodeRef const") long node, @Nullable @NativeType("YGMeasureFunc") YGMeasureFuncI measureFunc) { if (CHECKS) { check(node); } nYGNodeSetMeasureFunc(node, memAddressSafe(measureFunc)); } // --- [ YGNodeGetBaselineFunc ] --- public static native long nYGNodeGetBaselineFunc(long node); @Nullable public static YGBaselineFunc YGNodeGetBaselineFunc(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return YGBaselineFunc.createSafe(nYGNodeGetBaselineFunc(node)); } // --- [ YGNodeSetBaselineFunc ] --- public static native void nYGNodeSetBaselineFunc(long node, long baselineFunc); public static void YGNodeSetBaselineFunc(@NativeType("YGNodeRef const") long node, @Nullable @NativeType("YGBaselineFunc") YGBaselineFuncI baselineFunc) { if (CHECKS) { check(node); } nYGNodeSetBaselineFunc(node, memAddressSafe(baselineFunc)); } // --- [ YGNodeGetDirtiedFunc ] --- public static native long nYGNodeGetDirtiedFunc(long node); @Nullable public static YGDirtiedFunc YGNodeGetDirtiedFunc(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return YGDirtiedFunc.createSafe(nYGNodeGetDirtiedFunc(node)); } // --- [ YGNodeSetDirtiedFunc ] --- public static native void nYGNodeSetDirtiedFunc(long node, long dirtiedFunc); public static void YGNodeSetDirtiedFunc(@NativeType("YGNodeRef const") long node, @Nullable @NativeType("YGDirtiedFunc") YGDirtiedFuncI dirtiedFunc) { if (CHECKS) { check(node); } nYGNodeSetDirtiedFunc(node, memAddressSafe(dirtiedFunc)); } // --- [ YGNodeGetPrintFunc ] --- public static native long nYGNodeGetPrintFunc(long node); @Nullable public static YGPrintFunc YGNodeGetPrintFunc(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return YGPrintFunc.createSafe(nYGNodeGetPrintFunc(node)); } // --- [ YGNodeSetPrintFunc ] --- public static native void nYGNodeSetPrintFunc(long node, long printFunc); public static void YGNodeSetPrintFunc(@NativeType("YGNodeRef const") long node, @Nullable @NativeType("YGPrintFunc") YGPrintFuncI printFunc) { if (CHECKS) { check(node); } nYGNodeSetPrintFunc(node, memAddressSafe(printFunc)); } // --- [ YGNodeGetHasNewLayout ] --- public static native boolean nYGNodeGetHasNewLayout(long node); @NativeType("bool") public static boolean YGNodeGetHasNewLayout(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeGetHasNewLayout(node); } // --- [ YGNodeSetHasNewLayout ] --- public static native void nYGNodeSetHasNewLayout(long node, boolean hasNewLayout); public static void YGNodeSetHasNewLayout(@NativeType("YGNodeRef const") long node, @NativeType("bool") boolean hasNewLayout) { if (CHECKS) { check(node); } nYGNodeSetHasNewLayout(node, hasNewLayout); } // --- [ YGNodeGetNodeType ] --- public static native int nYGNodeGetNodeType(long node); @NativeType("YGNodeType") public static int YGNodeGetNodeType(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeGetNodeType(node); } // --- [ YGNodeSetNodeType ] --- public static native void nYGNodeSetNodeType(long node, int nodeType); public static void YGNodeSetNodeType(@NativeType("YGNodeRef const") long node, @NativeType("YGNodeType") int nodeType) { if (CHECKS) { check(node); } nYGNodeSetNodeType(node, nodeType); } // --- [ YGNodeIsDirty ] --- public static native boolean nYGNodeIsDirty(long node); @NativeType("bool") public static boolean YGNodeIsDirty(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeIsDirty(node); } // --- [ YGNodeLayoutGetDidUseLegacyFlag ] --- public static native boolean nYGNodeLayoutGetDidUseLegacyFlag(long node); @NativeType("bool") public static boolean YGNodeLayoutGetDidUseLegacyFlag(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetDidUseLegacyFlag(node); } // --- [ YGNodeStyleSetDirection ] --- /** Unsafe version of: {@link #YGNodeStyleSetDirection NodeStyleSetDirection} */ public static native void nYGNodeStyleSetDirection(long node, int direction); /** @param direction one of:
{@link #YGDirectionInherit DirectionInherit}{@link #YGDirectionLTR DirectionLTR}{@link #YGDirectionRTL DirectionRTL}
*/ public static void YGNodeStyleSetDirection(@NativeType("YGNodeRef const") long node, @NativeType("YGDirection") int direction) { if (CHECKS) { check(node); } nYGNodeStyleSetDirection(node, direction); } // --- [ YGNodeStyleGetDirection ] --- public static native int nYGNodeStyleGetDirection(long node); @NativeType("YGDirection") public static int YGNodeStyleGetDirection(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetDirection(node); } // --- [ YGNodeStyleSetFlexDirection ] --- /** Unsafe version of: {@link #YGNodeStyleSetFlexDirection NodeStyleSetFlexDirection} */ public static native void nYGNodeStyleSetFlexDirection(long node, int flexDirection); /** @param flexDirection one of:
{@link #YGFlexDirectionColumn FlexDirectionColumn}{@link #YGFlexDirectionColumnReverse FlexDirectionColumnReverse}{@link #YGFlexDirectionRow FlexDirectionRow}
{@link #YGFlexDirectionRowReverse FlexDirectionRowReverse}
*/ public static void YGNodeStyleSetFlexDirection(@NativeType("YGNodeRef const") long node, @NativeType("YGFlexDirection") int flexDirection) { if (CHECKS) { check(node); } nYGNodeStyleSetFlexDirection(node, flexDirection); } // --- [ YGNodeStyleGetFlexDirection ] --- public static native int nYGNodeStyleGetFlexDirection(long node); @NativeType("YGFlexDirection") public static int YGNodeStyleGetFlexDirection(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetFlexDirection(node); } // --- [ YGNodeStyleSetJustifyContent ] --- /** Unsafe version of: {@link #YGNodeStyleSetJustifyContent NodeStyleSetJustifyContent} */ public static native void nYGNodeStyleSetJustifyContent(long node, int justifyContent); /** @param justifyContent one of:
{@link #YGJustifyFlexStart JustifyFlexStart}{@link #YGJustifyCenter JustifyCenter}{@link #YGJustifyFlexEnd JustifyFlexEnd}{@link #YGJustifySpaceBetween JustifySpaceBetween}{@link #YGJustifySpaceAround JustifySpaceAround}
{@link #YGJustifySpaceEvenly JustifySpaceEvenly}
*/ public static void YGNodeStyleSetJustifyContent(@NativeType("YGNodeRef const") long node, @NativeType("YGJustify") int justifyContent) { if (CHECKS) { check(node); } nYGNodeStyleSetJustifyContent(node, justifyContent); } // --- [ YGNodeStyleGetJustifyContent ] --- public static native int nYGNodeStyleGetJustifyContent(long node); @NativeType("YGJustify") public static int YGNodeStyleGetJustifyContent(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetJustifyContent(node); } // --- [ YGNodeStyleSetAlignContent ] --- /** Unsafe version of: {@link #YGNodeStyleSetAlignContent NodeStyleSetAlignContent} */ public static native void nYGNodeStyleSetAlignContent(long node, int alignContent); /** @param alignContent one of:
{@link #YGAlignAuto AlignAuto}{@link #YGAlignFlexStart AlignFlexStart}{@link #YGAlignCenter AlignCenter}{@link #YGAlignFlexEnd AlignFlexEnd}{@link #YGAlignStretch AlignStretch}{@link #YGAlignBaseline AlignBaseline}
{@link #YGAlignSpaceBetween AlignSpaceBetween}{@link #YGAlignSpaceAround AlignSpaceAround}
*/ public static void YGNodeStyleSetAlignContent(@NativeType("YGNodeRef const") long node, @NativeType("YGAlign") int alignContent) { if (CHECKS) { check(node); } nYGNodeStyleSetAlignContent(node, alignContent); } // --- [ YGNodeStyleGetAlignContent ] --- public static native int nYGNodeStyleGetAlignContent(long node); @NativeType("YGAlign") public static int YGNodeStyleGetAlignContent(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetAlignContent(node); } // --- [ YGNodeStyleSetAlignItems ] --- /** Unsafe version of: {@link #YGNodeStyleSetAlignItems NodeStyleSetAlignItems} */ public static native void nYGNodeStyleSetAlignItems(long node, int alignItems); /** @param alignItems one of:
{@link #YGAlignAuto AlignAuto}{@link #YGAlignFlexStart AlignFlexStart}{@link #YGAlignCenter AlignCenter}{@link #YGAlignFlexEnd AlignFlexEnd}{@link #YGAlignStretch AlignStretch}{@link #YGAlignBaseline AlignBaseline}
{@link #YGAlignSpaceBetween AlignSpaceBetween}{@link #YGAlignSpaceAround AlignSpaceAround}
*/ public static void YGNodeStyleSetAlignItems(@NativeType("YGNodeRef const") long node, @NativeType("YGAlign") int alignItems) { if (CHECKS) { check(node); } nYGNodeStyleSetAlignItems(node, alignItems); } // --- [ YGNodeStyleGetAlignItems ] --- public static native int nYGNodeStyleGetAlignItems(long node); @NativeType("YGAlign") public static int YGNodeStyleGetAlignItems(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetAlignItems(node); } // --- [ YGNodeStyleSetAlignSelf ] --- /** Unsafe version of: {@link #YGNodeStyleSetAlignSelf NodeStyleSetAlignSelf} */ public static native void nYGNodeStyleSetAlignSelf(long node, int alignSelf); /** @param alignSelf one of:
{@link #YGAlignAuto AlignAuto}{@link #YGAlignFlexStart AlignFlexStart}{@link #YGAlignCenter AlignCenter}{@link #YGAlignFlexEnd AlignFlexEnd}{@link #YGAlignStretch AlignStretch}{@link #YGAlignBaseline AlignBaseline}
{@link #YGAlignSpaceBetween AlignSpaceBetween}{@link #YGAlignSpaceAround AlignSpaceAround}
*/ public static void YGNodeStyleSetAlignSelf(@NativeType("YGNodeRef const") long node, @NativeType("YGAlign") int alignSelf) { if (CHECKS) { check(node); } nYGNodeStyleSetAlignSelf(node, alignSelf); } // --- [ YGNodeStyleGetAlignSelf ] --- public static native int nYGNodeStyleGetAlignSelf(long node); @NativeType("YGAlign") public static int YGNodeStyleGetAlignSelf(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetAlignSelf(node); } // --- [ YGNodeStyleSetPositionType ] --- /** Unsafe version of: {@link #YGNodeStyleSetPositionType NodeStyleSetPositionType} */ public static native void nYGNodeStyleSetPositionType(long node, int positionType); /** @param positionType one of:
{@link #YGPositionTypeRelative PositionTypeRelative}{@link #YGPositionTypeAbsolute PositionTypeAbsolute}
*/ public static void YGNodeStyleSetPositionType(@NativeType("YGNodeRef const") long node, @NativeType("YGPositionType") int positionType) { if (CHECKS) { check(node); } nYGNodeStyleSetPositionType(node, positionType); } // --- [ YGNodeStyleGetPositionType ] --- public static native int nYGNodeStyleGetPositionType(long node); @NativeType("YGPositionType") public static int YGNodeStyleGetPositionType(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetPositionType(node); } // --- [ YGNodeStyleSetFlexWrap ] --- /** Unsafe version of: {@link #YGNodeStyleSetFlexWrap NodeStyleSetFlexWrap} */ public static native void nYGNodeStyleSetFlexWrap(long node, int flexWrap); /** @param flexWrap one of:
{@link #YGWrapNoWrap WrapNoWrap}{@link #YGWrapWrap WrapWrap}{@link #YGWrapReverse WrapReverse}
*/ public static void YGNodeStyleSetFlexWrap(@NativeType("YGNodeRef const") long node, @NativeType("YGWrap") int flexWrap) { if (CHECKS) { check(node); } nYGNodeStyleSetFlexWrap(node, flexWrap); } // --- [ YGNodeStyleGetFlexWrap ] --- public static native int nYGNodeStyleGetFlexWrap(long node); @NativeType("YGWrap") public static int YGNodeStyleGetFlexWrap(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetFlexWrap(node); } // --- [ YGNodeStyleSetOverflow ] --- /** Unsafe version of: {@link #YGNodeStyleSetOverflow NodeStyleSetOverflow} */ public static native void nYGNodeStyleSetOverflow(long node, int overflow); /** @param overflow one of:
{@link #YGOverflowVisible OverflowVisible}{@link #YGOverflowHidden OverflowHidden}{@link #YGOverflowScroll OverflowScroll}
*/ public static void YGNodeStyleSetOverflow(@NativeType("YGNodeRef const") long node, @NativeType("YGOverflow") int overflow) { if (CHECKS) { check(node); } nYGNodeStyleSetOverflow(node, overflow); } // --- [ YGNodeStyleGetOverflow ] --- public static native int nYGNodeStyleGetOverflow(long node); @NativeType("YGOverflow") public static int YGNodeStyleGetOverflow(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetOverflow(node); } // --- [ YGNodeStyleSetDisplay ] --- /** Unsafe version of: {@link #YGNodeStyleSetDisplay NodeStyleSetDisplay} */ public static native void nYGNodeStyleSetDisplay(long node, int display); /** @param display one of:
{@link #YGDisplayFlex DisplayFlex}{@link #YGDisplayNone DisplayNone}
*/ public static void YGNodeStyleSetDisplay(@NativeType("YGNodeRef const") long node, @NativeType("YGDisplay") int display) { if (CHECKS) { check(node); } nYGNodeStyleSetDisplay(node, display); } // --- [ YGNodeStyleGetDisplay ] --- public static native int nYGNodeStyleGetDisplay(long node); @NativeType("YGDisplay") public static int YGNodeStyleGetDisplay(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetDisplay(node); } // --- [ YGNodeStyleSetFlex ] --- public static native void nYGNodeStyleSetFlex(long node, float flex); public static void YGNodeStyleSetFlex(@NativeType("YGNodeRef const") long node, float flex) { if (CHECKS) { check(node); } nYGNodeStyleSetFlex(node, flex); } // --- [ YGNodeStyleGetFlex ] --- public static native float nYGNodeStyleGetFlex(long node); public static float YGNodeStyleGetFlex(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetFlex(node); } // --- [ YGNodeStyleSetFlexGrow ] --- public static native void nYGNodeStyleSetFlexGrow(long node, float flexGrow); public static void YGNodeStyleSetFlexGrow(@NativeType("YGNodeRef const") long node, float flexGrow) { if (CHECKS) { check(node); } nYGNodeStyleSetFlexGrow(node, flexGrow); } // --- [ YGNodeStyleGetFlexGrow ] --- public static native float nYGNodeStyleGetFlexGrow(long node); public static float YGNodeStyleGetFlexGrow(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetFlexGrow(node); } // --- [ YGNodeStyleSetFlexShrink ] --- public static native void nYGNodeStyleSetFlexShrink(long node, float flexShrink); public static void YGNodeStyleSetFlexShrink(@NativeType("YGNodeRef const") long node, float flexShrink) { if (CHECKS) { check(node); } nYGNodeStyleSetFlexShrink(node, flexShrink); } // --- [ YGNodeStyleGetFlexShrink ] --- public static native float nYGNodeStyleGetFlexShrink(long node); public static float YGNodeStyleGetFlexShrink(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetFlexShrink(node); } // --- [ YGNodeStyleSetFlexBasis ] --- public static native void nYGNodeStyleSetFlexBasis(long node, float flexBasis); public static void YGNodeStyleSetFlexBasis(@NativeType("YGNodeRef const") long node, float flexBasis) { if (CHECKS) { check(node); } nYGNodeStyleSetFlexBasis(node, flexBasis); } // --- [ YGNodeStyleSetFlexBasisPercent ] --- public static native void nYGNodeStyleSetFlexBasisPercent(long node, float flexBasis); public static void YGNodeStyleSetFlexBasisPercent(@NativeType("YGNodeRef const") long node, float flexBasis) { if (CHECKS) { check(node); } nYGNodeStyleSetFlexBasisPercent(node, flexBasis); } // --- [ YGNodeStyleSetFlexBasisAuto ] --- public static native void nYGNodeStyleSetFlexBasisAuto(long node); public static void YGNodeStyleSetFlexBasisAuto(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeStyleSetFlexBasisAuto(node); } // --- [ YGNodeStyleGetFlexBasis ] --- public static native void nYGNodeStyleGetFlexBasis(long node, long __result); public static YGValue YGNodeStyleGetFlexBasis(@NativeType("YGNodeRef const") long node, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetFlexBasis(node, __result.address()); return __result; } // --- [ YGNodeStyleSetPosition ] --- /** Unsafe version of: {@link #YGNodeStyleSetPosition NodeStyleSetPosition} */ public static native void nYGNodeStyleSetPosition(long node, int edge, float position); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetPosition(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, float position) { if (CHECKS) { check(node); } nYGNodeStyleSetPosition(node, edge, position); } // --- [ YGNodeStyleSetPositionPercent ] --- /** Unsafe version of: {@link #YGNodeStyleSetPositionPercent NodeStyleSetPositionPercent} */ public static native void nYGNodeStyleSetPositionPercent(long node, int edge, float position); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetPositionPercent(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, float position) { if (CHECKS) { check(node); } nYGNodeStyleSetPositionPercent(node, edge, position); } // --- [ YGNodeStyleGetPosition ] --- /** Unsafe version of: {@link #YGNodeStyleGetPosition NodeStyleGetPosition} */ public static native void nYGNodeStyleGetPosition(long node, int edge, long __result); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static YGValue YGNodeStyleGetPosition(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetPosition(node, edge, __result.address()); return __result; } // --- [ YGNodeStyleSetMargin ] --- /** Unsafe version of: {@link #YGNodeStyleSetMargin NodeStyleSetMargin} */ public static native void nYGNodeStyleSetMargin(long node, int edge, float margin); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetMargin(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, float margin) { if (CHECKS) { check(node); } nYGNodeStyleSetMargin(node, edge, margin); } // --- [ YGNodeStyleSetMarginPercent ] --- /** Unsafe version of: {@link #YGNodeStyleSetMarginPercent NodeStyleSetMarginPercent} */ public static native void nYGNodeStyleSetMarginPercent(long node, int edge, float margin); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetMarginPercent(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, float margin) { if (CHECKS) { check(node); } nYGNodeStyleSetMarginPercent(node, edge, margin); } // --- [ YGNodeStyleSetMarginAuto ] --- /** Unsafe version of: {@link #YGNodeStyleSetMarginAuto NodeStyleSetMarginAuto} */ public static native void nYGNodeStyleSetMarginAuto(long node, int edge); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetMarginAuto(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge) { if (CHECKS) { check(node); } nYGNodeStyleSetMarginAuto(node, edge); } // --- [ YGNodeStyleGetMargin ] --- /** Unsafe version of: {@link #YGNodeStyleGetMargin NodeStyleGetMargin} */ public static native void nYGNodeStyleGetMargin(long node, int edge, long __result); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static YGValue YGNodeStyleGetMargin(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetMargin(node, edge, __result.address()); return __result; } // --- [ YGNodeStyleSetPadding ] --- /** Unsafe version of: {@link #YGNodeStyleSetPadding NodeStyleSetPadding} */ public static native void nYGNodeStyleSetPadding(long node, int edge, float padding); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetPadding(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, float padding) { if (CHECKS) { check(node); } nYGNodeStyleSetPadding(node, edge, padding); } // --- [ YGNodeStyleSetPaddingPercent ] --- /** Unsafe version of: {@link #YGNodeStyleSetPaddingPercent NodeStyleSetPaddingPercent} */ public static native void nYGNodeStyleSetPaddingPercent(long node, int edge, float padding); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetPaddingPercent(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, float padding) { if (CHECKS) { check(node); } nYGNodeStyleSetPaddingPercent(node, edge, padding); } // --- [ YGNodeStyleGetPadding ] --- /** Unsafe version of: {@link #YGNodeStyleGetPadding NodeStyleGetPadding} */ public static native void nYGNodeStyleGetPadding(long node, int edge, long __result); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static YGValue YGNodeStyleGetPadding(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetPadding(node, edge, __result.address()); return __result; } // --- [ YGNodeStyleSetBorder ] --- /** Unsafe version of: {@link #YGNodeStyleSetBorder NodeStyleSetBorder} */ public static native void nYGNodeStyleSetBorder(long node, int edge, float border); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static void YGNodeStyleSetBorder(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge, float border) { if (CHECKS) { check(node); } nYGNodeStyleSetBorder(node, edge, border); } // --- [ YGNodeStyleGetBorder ] --- /** Unsafe version of: {@link #YGNodeStyleGetBorder NodeStyleGetBorder} */ public static native float nYGNodeStyleGetBorder(long node, int edge); /** @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static float YGNodeStyleGetBorder(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge) { if (CHECKS) { check(node); } return nYGNodeStyleGetBorder(node, edge); } // --- [ YGNodeStyleSetWidth ] --- public static native void nYGNodeStyleSetWidth(long node, float width); public static void YGNodeStyleSetWidth(@NativeType("YGNodeRef const") long node, float width) { if (CHECKS) { check(node); } nYGNodeStyleSetWidth(node, width); } // --- [ YGNodeStyleSetWidthPercent ] --- public static native void nYGNodeStyleSetWidthPercent(long node, float width); public static void YGNodeStyleSetWidthPercent(@NativeType("YGNodeRef const") long node, float width) { if (CHECKS) { check(node); } nYGNodeStyleSetWidthPercent(node, width); } // --- [ YGNodeStyleSetWidthAuto ] --- public static native void nYGNodeStyleSetWidthAuto(long node); public static void YGNodeStyleSetWidthAuto(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeStyleSetWidthAuto(node); } // --- [ YGNodeStyleGetWidth ] --- public static native void nYGNodeStyleGetWidth(long node, long __result); public static YGValue YGNodeStyleGetWidth(@NativeType("YGNodeRef const") long node, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetWidth(node, __result.address()); return __result; } // --- [ YGNodeStyleSetHeight ] --- public static native void nYGNodeStyleSetHeight(long node, float height); public static void YGNodeStyleSetHeight(@NativeType("YGNodeRef const") long node, float height) { if (CHECKS) { check(node); } nYGNodeStyleSetHeight(node, height); } // --- [ YGNodeStyleSetHeightPercent ] --- public static native void nYGNodeStyleSetHeightPercent(long node, float height); public static void YGNodeStyleSetHeightPercent(@NativeType("YGNodeRef const") long node, float height) { if (CHECKS) { check(node); } nYGNodeStyleSetHeightPercent(node, height); } // --- [ YGNodeStyleSetHeightAuto ] --- public static native void nYGNodeStyleSetHeightAuto(long node); public static void YGNodeStyleSetHeightAuto(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } nYGNodeStyleSetHeightAuto(node); } // --- [ YGNodeStyleGetHeight ] --- public static native void nYGNodeStyleGetHeight(long node, long __result); public static YGValue YGNodeStyleGetHeight(@NativeType("YGNodeRef const") long node, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetHeight(node, __result.address()); return __result; } // --- [ YGNodeStyleSetMinWidth ] --- public static native void nYGNodeStyleSetMinWidth(long node, float minWidth); public static void YGNodeStyleSetMinWidth(@NativeType("YGNodeRef const") long node, float minWidth) { if (CHECKS) { check(node); } nYGNodeStyleSetMinWidth(node, minWidth); } // --- [ YGNodeStyleSetMinWidthPercent ] --- public static native void nYGNodeStyleSetMinWidthPercent(long node, float minWidth); public static void YGNodeStyleSetMinWidthPercent(@NativeType("YGNodeRef const") long node, float minWidth) { if (CHECKS) { check(node); } nYGNodeStyleSetMinWidthPercent(node, minWidth); } // --- [ YGNodeStyleGetMinWidth ] --- public static native void nYGNodeStyleGetMinWidth(long node, long __result); public static YGValue YGNodeStyleGetMinWidth(@NativeType("YGNodeRef const") long node, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetMinWidth(node, __result.address()); return __result; } // --- [ YGNodeStyleSetMinHeight ] --- public static native void nYGNodeStyleSetMinHeight(long node, float minHeight); public static void YGNodeStyleSetMinHeight(@NativeType("YGNodeRef const") long node, float minHeight) { if (CHECKS) { check(node); } nYGNodeStyleSetMinHeight(node, minHeight); } // --- [ YGNodeStyleSetMinHeightPercent ] --- public static native void nYGNodeStyleSetMinHeightPercent(long node, float minHeight); public static void YGNodeStyleSetMinHeightPercent(@NativeType("YGNodeRef const") long node, float minHeight) { if (CHECKS) { check(node); } nYGNodeStyleSetMinHeightPercent(node, minHeight); } // --- [ YGNodeStyleGetMinHeight ] --- public static native void nYGNodeStyleGetMinHeight(long node, long __result); public static YGValue YGNodeStyleGetMinHeight(@NativeType("YGNodeRef const") long node, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetMinHeight(node, __result.address()); return __result; } // --- [ YGNodeStyleSetMaxWidth ] --- public static native void nYGNodeStyleSetMaxWidth(long node, float maxWidth); public static void YGNodeStyleSetMaxWidth(@NativeType("YGNodeRef const") long node, float maxWidth) { if (CHECKS) { check(node); } nYGNodeStyleSetMaxWidth(node, maxWidth); } // --- [ YGNodeStyleSetMaxWidthPercent ] --- public static native void nYGNodeStyleSetMaxWidthPercent(long node, float maxWidth); public static void YGNodeStyleSetMaxWidthPercent(@NativeType("YGNodeRef const") long node, float maxWidth) { if (CHECKS) { check(node); } nYGNodeStyleSetMaxWidthPercent(node, maxWidth); } // --- [ YGNodeStyleGetMaxWidth ] --- public static native void nYGNodeStyleGetMaxWidth(long node, long __result); public static YGValue YGNodeStyleGetMaxWidth(@NativeType("YGNodeRef const") long node, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetMaxWidth(node, __result.address()); return __result; } // --- [ YGNodeStyleSetMaxHeight ] --- public static native void nYGNodeStyleSetMaxHeight(long node, float maxHeight); public static void YGNodeStyleSetMaxHeight(@NativeType("YGNodeRef const") long node, float maxHeight) { if (CHECKS) { check(node); } nYGNodeStyleSetMaxHeight(node, maxHeight); } // --- [ YGNodeStyleSetMaxHeightPercent ] --- public static native void nYGNodeStyleSetMaxHeightPercent(long node, float maxHeight); public static void YGNodeStyleSetMaxHeightPercent(@NativeType("YGNodeRef const") long node, float maxHeight) { if (CHECKS) { check(node); } nYGNodeStyleSetMaxHeightPercent(node, maxHeight); } // --- [ YGNodeStyleGetMaxHeight ] --- public static native void nYGNodeStyleGetMaxHeight(long node, long __result); public static YGValue YGNodeStyleGetMaxHeight(@NativeType("YGNodeRef const") long node, YGValue __result) { if (CHECKS) { check(node); } nYGNodeStyleGetMaxHeight(node, __result.address()); return __result; } // --- [ YGNodeStyleSetAspectRatio ] --- /** Unsafe version of: {@link #YGNodeStyleSetAspectRatio NodeStyleSetAspectRatio} */ public static native void nYGNodeStyleSetAspectRatio(long node, float aspectRatio); /** * Aspect ratio controls the size of the undefined dimension of a node. * *

Aspect ratio is encoded as a floating point value width/height. e.g. A value of 2 leads to a node with a width twice the size of its height while a * value of 0.5 gives the opposite effect.

* *
    *
  • On a node with a set width/height aspect ratio controls the size of the unset dimension
  • *
  • On a node with a set flex basis aspect ratio controls the size of the node in the cross axis if unset
  • *
  • On a node with a measure function aspect ratio works as though the measure function measures the flex basis
  • *
  • On a node with flex grow/shrink aspect ratio controls the size of the node in the cross axis if unset
  • *
  • Aspect ratio takes min/max dimensions into account
  • *
*/ public static void YGNodeStyleSetAspectRatio(@NativeType("YGNodeRef const") long node, float aspectRatio) { if (CHECKS) { check(node); } nYGNodeStyleSetAspectRatio(node, aspectRatio); } // --- [ YGNodeStyleGetAspectRatio ] --- public static native float nYGNodeStyleGetAspectRatio(long node); public static float YGNodeStyleGetAspectRatio(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeStyleGetAspectRatio(node); } // --- [ YGNodeLayoutGetLeft ] --- public static native float nYGNodeLayoutGetLeft(long node); public static float YGNodeLayoutGetLeft(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetLeft(node); } // --- [ YGNodeLayoutGetTop ] --- public static native float nYGNodeLayoutGetTop(long node); public static float YGNodeLayoutGetTop(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetTop(node); } // --- [ YGNodeLayoutGetRight ] --- public static native float nYGNodeLayoutGetRight(long node); public static float YGNodeLayoutGetRight(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetRight(node); } // --- [ YGNodeLayoutGetBottom ] --- public static native float nYGNodeLayoutGetBottom(long node); public static float YGNodeLayoutGetBottom(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetBottom(node); } // --- [ YGNodeLayoutGetWidth ] --- public static native float nYGNodeLayoutGetWidth(long node); public static float YGNodeLayoutGetWidth(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetWidth(node); } // --- [ YGNodeLayoutGetHeight ] --- public static native float nYGNodeLayoutGetHeight(long node); public static float YGNodeLayoutGetHeight(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetHeight(node); } // --- [ YGNodeLayoutGetDirection ] --- public static native int nYGNodeLayoutGetDirection(long node); @NativeType("YGDirection") public static int YGNodeLayoutGetDirection(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetDirection(node); } // --- [ YGNodeLayoutGetHadOverflow ] --- public static native boolean nYGNodeLayoutGetHadOverflow(long node); @NativeType("bool") public static boolean YGNodeLayoutGetHadOverflow(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetHadOverflow(node); } // --- [ YGNodeLayoutGetDidLegacyStretchFlagAffectLayout ] --- public static native boolean nYGNodeLayoutGetDidLegacyStretchFlagAffectLayout(long node); @NativeType("bool") public static boolean YGNodeLayoutGetDidLegacyStretchFlagAffectLayout(@NativeType("YGNodeRef const") long node) { if (CHECKS) { check(node); } return nYGNodeLayoutGetDidLegacyStretchFlagAffectLayout(node); } // --- [ YGNodeLayoutGetMargin ] --- /** Unsafe version of: {@link #YGNodeLayoutGetMargin NodeLayoutGetMargin} */ public static native float nYGNodeLayoutGetMargin(long node, int edge); /** * Gets the computed value for this nodes after performing layout. If they were set using point values then the returned value will be the same as * {@code YGNodeStyleGetMargin}. However if they were set using a percentage value then the returned value is the computed value used during layout. * * @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static float YGNodeLayoutGetMargin(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge) { if (CHECKS) { check(node); } return nYGNodeLayoutGetMargin(node, edge); } // --- [ YGNodeLayoutGetBorder ] --- /** Unsafe version of: {@link #YGNodeLayoutGetBorder NodeLayoutGetBorder} */ public static native float nYGNodeLayoutGetBorder(long node, int edge); /** * Gets the computed value for this nodes after performing layout. If they were set using point values then the returned value will be the same as * {@code YGNodeStyleGetBorder}. However if they were set using a percentage value then the returned value is the computed value used during layout. * * @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static float YGNodeLayoutGetBorder(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge) { if (CHECKS) { check(node); } return nYGNodeLayoutGetBorder(node, edge); } // --- [ YGNodeLayoutGetPadding ] --- /** Unsafe version of: {@link #YGNodeLayoutGetPadding NodeLayoutGetPadding} */ public static native float nYGNodeLayoutGetPadding(long node, int edge); /** * Gets the computed value for this nodes after performing layout. If they were set using point values then the returned value will be the same as * {@code YGNodeStyleGetPadding}. However if they were set using a percentage value then the returned value is the computed value used during layout. * * @param edge one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ public static float YGNodeLayoutGetPadding(@NativeType("YGNodeRef const") long node, @NativeType("YGEdge") int edge) { if (CHECKS) { check(node); } return nYGNodeLayoutGetPadding(node, edge); } // --- [ YGConfigSetLogger ] --- public static native void nYGConfigSetLogger(long config, long logger); public static void YGConfigSetLogger(@NativeType("YGConfigRef const") long config, @Nullable @NativeType("YGLogger") YGLoggerI logger) { if (CHECKS) { check(config); } nYGConfigSetLogger(config, memAddressSafe(logger)); } // --- [ YGLog ] --- /** Unsafe version of: {@link #YGLog Log} */ public static native void nYGLog(long node, int level, long message); /** @param level one of:
{@link #YGLogLevelError LogLevelError}{@link #YGLogLevelWarn LogLevelWarn}{@link #YGLogLevelInfo LogLevelInfo}{@link #YGLogLevelDebug LogLevelDebug}{@link #YGLogLevelVerbose LogLevelVerbose}{@link #YGLogLevelFatal LogLevelFatal}
*/ public static void YGLog(@NativeType("YGNodeRef const") long node, @NativeType("YGLogLevel") int level, @NativeType("char const *") ByteBuffer message) { if (CHECKS) { check(node); checkNT1(message); } nYGLog(node, level, memAddress(message)); } /** @param level one of:
{@link #YGLogLevelError LogLevelError}{@link #YGLogLevelWarn LogLevelWarn}{@link #YGLogLevelInfo LogLevelInfo}{@link #YGLogLevelDebug LogLevelDebug}{@link #YGLogLevelVerbose LogLevelVerbose}{@link #YGLogLevelFatal LogLevelFatal}
*/ public static void YGLog(@NativeType("YGNodeRef const") long node, @NativeType("YGLogLevel") int level, @NativeType("char const *") CharSequence message) { if (CHECKS) { check(node); } MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nUTF8(message, true); long messageEncoded = stack.getPointerAddress(); nYGLog(node, level, messageEncoded); } finally { stack.setPointer(stackPointer); } } // --- [ YGLogWithConfig ] --- public static native void nYGLogWithConfig(long config, int level, long message); public static void YGLogWithConfig(@NativeType("YGConfigRef const") long config, @NativeType("YGLogLevel") int level, @NativeType("char const *") ByteBuffer message) { if (CHECKS) { check(config); checkNT1(message); } nYGLogWithConfig(config, level, memAddress(message)); } public static void YGLogWithConfig(@NativeType("YGConfigRef const") long config, @NativeType("YGLogLevel") int level, @NativeType("char const *") CharSequence message) { if (CHECKS) { check(config); } MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nUTF8(message, true); long messageEncoded = stack.getPointerAddress(); nYGLogWithConfig(config, level, messageEncoded); } finally { stack.setPointer(stackPointer); } } // --- [ YGAssert ] --- public static native void nYGAssert(boolean condition, long message); public static void YGAssert(@NativeType("bool") boolean condition, @NativeType("char const *") ByteBuffer message) { if (CHECKS) { checkNT1(message); } nYGAssert(condition, memAddress(message)); } public static void YGAssert(@NativeType("bool") boolean condition, @NativeType("char const *") CharSequence message) { MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nUTF8(message, true); long messageEncoded = stack.getPointerAddress(); nYGAssert(condition, messageEncoded); } finally { stack.setPointer(stackPointer); } } // --- [ YGAssertWithNode ] --- public static native void nYGAssertWithNode(long node, boolean condition, long message); public static void YGAssertWithNode(@NativeType("YGNodeRef const") long node, @NativeType("bool") boolean condition, @NativeType("char const *") ByteBuffer message) { if (CHECKS) { check(node); checkNT1(message); } nYGAssertWithNode(node, condition, memAddress(message)); } public static void YGAssertWithNode(@NativeType("YGNodeRef const") long node, @NativeType("bool") boolean condition, @NativeType("char const *") CharSequence message) { if (CHECKS) { check(node); } MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nUTF8(message, true); long messageEncoded = stack.getPointerAddress(); nYGAssertWithNode(node, condition, messageEncoded); } finally { stack.setPointer(stackPointer); } } // --- [ YGAssertWithConfig ] --- public static native void nYGAssertWithConfig(long config, boolean condition, long message); public static void YGAssertWithConfig(@NativeType("YGConfigRef const") long config, @NativeType("bool") boolean condition, @NativeType("char const *") ByteBuffer message) { if (CHECKS) { check(config); checkNT1(message); } nYGAssertWithConfig(config, condition, memAddress(message)); } public static void YGAssertWithConfig(@NativeType("YGConfigRef const") long config, @NativeType("bool") boolean condition, @NativeType("char const *") CharSequence message) { if (CHECKS) { check(config); } MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { stack.nUTF8(message, true); long messageEncoded = stack.getPointerAddress(); nYGAssertWithConfig(config, condition, messageEncoded); } finally { stack.setPointer(stackPointer); } } // --- [ YGConfigSetPointScaleFactor ] --- /** Unsafe version of: {@link #YGConfigSetPointScaleFactor ConfigSetPointScaleFactor} */ public static native void nYGConfigSetPointScaleFactor(long config, float pixelsInPoint); /** Set this to number of pixels in 1 point to round calculation results. If you want to avoid rounding set {@code PointScaleFactor} to 0. */ public static void YGConfigSetPointScaleFactor(@NativeType("YGConfigRef const") long config, float pixelsInPoint) { if (CHECKS) { check(config); } nYGConfigSetPointScaleFactor(config, pixelsInPoint); } // --- [ YGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour ] --- public static native void nYGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour(long config, boolean shouldDiffLayout); public static void YGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour(@NativeType("YGConfigRef const") long config, @NativeType("bool") boolean shouldDiffLayout) { if (CHECKS) { check(config); } nYGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour(config, shouldDiffLayout); } // --- [ YGConfigSetUseLegacyStretchBehaviour ] --- /** Unsafe version of: {@link #YGConfigSetUseLegacyStretchBehaviour ConfigSetUseLegacyStretchBehaviour} */ public static native void nYGConfigSetUseLegacyStretchBehaviour(long config, boolean useLegacyStretchBehaviour); /** * Yoga previously had an error where containers would take the maximum space possible instead of the minimum like they are supposed to. In practice this * resulted in implicit behaviour similar to align-self: stretch; Because this was such a long-standing bug we must allow legacy users to switch back to * this behaviour. */ public static void YGConfigSetUseLegacyStretchBehaviour(@NativeType("YGConfigRef const") long config, @NativeType("bool") boolean useLegacyStretchBehaviour) { if (CHECKS) { check(config); } nYGConfigSetUseLegacyStretchBehaviour(config, useLegacyStretchBehaviour); } // --- [ YGConfigNew ] --- @NativeType("YGConfigRef") public static native long YGConfigNew(); // --- [ YGConfigFree ] --- public static native void nYGConfigFree(long config); public static void YGConfigFree(@NativeType("YGConfigRef const") long config) { if (CHECKS) { check(config); } nYGConfigFree(config); } // --- [ YGConfigCopy ] --- public static native void nYGConfigCopy(long dest, long src); public static void YGConfigCopy(@NativeType("YGConfigRef const") long dest, @NativeType("YGConfigRef const") long src) { if (CHECKS) { check(dest); check(src); } nYGConfigCopy(dest, src); } // --- [ YGConfigGetInstanceCount ] --- @NativeType("int32_t") public static native int YGConfigGetInstanceCount(); // --- [ YGConfigSetExperimentalFeatureEnabled ] --- /** Unsafe version of: {@link #YGConfigSetExperimentalFeatureEnabled ConfigSetExperimentalFeatureEnabled} */ public static native void nYGConfigSetExperimentalFeatureEnabled(long config, int feature, boolean enabled); /** @param feature must be:
{@link #YGExperimentalFeatureWebFlexBasis ExperimentalFeatureWebFlexBasis}
*/ public static void YGConfigSetExperimentalFeatureEnabled(@NativeType("YGConfigRef const") long config, @NativeType("YGExperimentalFeature") int feature, @NativeType("bool") boolean enabled) { if (CHECKS) { check(config); } nYGConfigSetExperimentalFeatureEnabled(config, feature, enabled); } // --- [ YGConfigIsExperimentalFeatureEnabled ] --- /** Unsafe version of: {@link #YGConfigIsExperimentalFeatureEnabled ConfigIsExperimentalFeatureEnabled} */ public static native boolean nYGConfigIsExperimentalFeatureEnabled(long config, int feature); /** @param feature must be:
{@link #YGExperimentalFeatureWebFlexBasis ExperimentalFeatureWebFlexBasis}
*/ @NativeType("bool") public static boolean YGConfigIsExperimentalFeatureEnabled(@NativeType("YGConfigRef const") long config, @NativeType("YGExperimentalFeature") int feature) { if (CHECKS) { check(config); } return nYGConfigIsExperimentalFeatureEnabled(config, feature); } // --- [ YGConfigSetUseWebDefaults ] --- /** Unsafe version of: {@link #YGConfigSetUseWebDefaults ConfigSetUseWebDefaults} */ public static native void nYGConfigSetUseWebDefaults(long config, boolean enabled); /** Using the web defaults is the prefered configuration for new projects. Usage of non web defaults should be considered as legacy. */ public static void YGConfigSetUseWebDefaults(@NativeType("YGConfigRef const") long config, @NativeType("bool") boolean enabled) { if (CHECKS) { check(config); } nYGConfigSetUseWebDefaults(config, enabled); } // --- [ YGConfigGetUseWebDefaults ] --- public static native boolean nYGConfigGetUseWebDefaults(long config); @NativeType("bool") public static boolean YGConfigGetUseWebDefaults(@NativeType("YGConfigRef const") long config) { if (CHECKS) { check(config); } return nYGConfigGetUseWebDefaults(config); } // --- [ YGConfigSetCloneNodeFunc ] --- public static native void nYGConfigSetCloneNodeFunc(long config, long callback); public static void YGConfigSetCloneNodeFunc(@NativeType("YGConfigRef const") long config, @Nullable @NativeType("YGCloneNodeFunc") YGCloneNodeFuncI callback) { if (CHECKS) { check(config); } nYGConfigSetCloneNodeFunc(config, memAddressSafe(callback)); } // --- [ YGConfigGetDefault ] --- @NativeType("YGConfigRef") public static native long YGConfigGetDefault(); // --- [ YGConfigSetContext ] --- public static native void nYGConfigSetContext(long config, long context); public static void YGConfigSetContext(@NativeType("YGConfigRef const") long config, @NativeType("void *") long context) { if (CHECKS) { check(config); check(context); } nYGConfigSetContext(config, context); } // --- [ YGConfigGetContext ] --- public static native long nYGConfigGetContext(long config); @NativeType("void *") public static long YGConfigGetContext(@NativeType("YGConfigRef const") long config) { if (CHECKS) { check(config); } return nYGConfigGetContext(config); } // --- [ YGRoundValueToPixelGrid ] --- public static native float YGRoundValueToPixelGrid(float value, float pointScaleFactor, @NativeType("bool") boolean forceCeil, @NativeType("bool") boolean forceFloor); // --- [ YGAlignToString ] --- /** Unsafe version of: {@link #YGAlignToString AlignToString} */ public static native long nYGAlignToString(int value); /** @param value one of:
{@link #YGAlignAuto AlignAuto}{@link #YGAlignFlexStart AlignFlexStart}{@link #YGAlignCenter AlignCenter}{@link #YGAlignFlexEnd AlignFlexEnd}{@link #YGAlignStretch AlignStretch}{@link #YGAlignBaseline AlignBaseline}
{@link #YGAlignSpaceBetween AlignSpaceBetween}{@link #YGAlignSpaceAround AlignSpaceAround}
*/ @NativeType("char const *") public static String YGAlignToString(@NativeType("YGAlign") int value) { long __result = nYGAlignToString(value); return memASCII(__result); } // --- [ YGDimensionToString ] --- /** Unsafe version of: {@link #YGDimensionToString DimensionToString} */ public static native long nYGDimensionToString(int value); /** @param value one of:
{@link #YGDimensionWidth DimensionWidth}{@link #YGDimensionHeight DimensionHeight}
*/ @NativeType("char const *") public static String YGDimensionToString(@NativeType("YGDimension") int value) { long __result = nYGDimensionToString(value); return memASCII(__result); } // --- [ YGDirectionToString ] --- /** Unsafe version of: {@link #YGDirectionToString DirectionToString} */ public static native long nYGDirectionToString(int value); /** @param value one of:
{@link #YGDirectionInherit DirectionInherit}{@link #YGDirectionLTR DirectionLTR}{@link #YGDirectionRTL DirectionRTL}
*/ @NativeType("char const *") public static String YGDirectionToString(@NativeType("YGDirection") int value) { long __result = nYGDirectionToString(value); return memASCII(__result); } // --- [ YGDisplayToString ] --- /** Unsafe version of: {@link #YGDisplayToString DisplayToString} */ public static native long nYGDisplayToString(int value); /** @param value one of:
{@link #YGDisplayFlex DisplayFlex}{@link #YGDisplayNone DisplayNone}
*/ @NativeType("char const *") public static String YGDisplayToString(@NativeType("YGDisplay") int value) { long __result = nYGDisplayToString(value); return memASCII(__result); } // --- [ YGEdgeToString ] --- /** Unsafe version of: {@link #YGEdgeToString EdgeToString} */ public static native long nYGEdgeToString(int value); /** @param value one of:
{@link #YGEdgeLeft EdgeLeft}{@link #YGEdgeTop EdgeTop}{@link #YGEdgeRight EdgeRight}{@link #YGEdgeBottom EdgeBottom}{@link #YGEdgeStart EdgeStart}{@link #YGEdgeEnd EdgeEnd}{@link #YGEdgeHorizontal EdgeHorizontal}{@link #YGEdgeVertical EdgeVertical}
{@link #YGEdgeAll EdgeAll}
*/ @NativeType("char const *") public static String YGEdgeToString(@NativeType("YGEdge") int value) { long __result = nYGEdgeToString(value); return memASCII(__result); } // --- [ YGExperimentalFeatureToString ] --- /** Unsafe version of: {@link #YGExperimentalFeatureToString ExperimentalFeatureToString} */ public static native long nYGExperimentalFeatureToString(int value); /** @param value must be:
{@link #YGExperimentalFeatureWebFlexBasis ExperimentalFeatureWebFlexBasis}
*/ @NativeType("char const *") public static String YGExperimentalFeatureToString(@NativeType("YGExperimentalFeature") int value) { long __result = nYGExperimentalFeatureToString(value); return memASCII(__result); } // --- [ YGFlexDirectionToString ] --- /** Unsafe version of: {@link #YGFlexDirectionToString FlexDirectionToString} */ public static native long nYGFlexDirectionToString(int value); /** @param value one of:
{@link #YGFlexDirectionColumn FlexDirectionColumn}{@link #YGFlexDirectionColumnReverse FlexDirectionColumnReverse}{@link #YGFlexDirectionRow FlexDirectionRow}
{@link #YGFlexDirectionRowReverse FlexDirectionRowReverse}
*/ @NativeType("char const *") public static String YGFlexDirectionToString(@NativeType("YGFlexDirection") int value) { long __result = nYGFlexDirectionToString(value); return memASCII(__result); } // --- [ YGJustifyToString ] --- /** Unsafe version of: {@link #YGJustifyToString JustifyToString} */ public static native long nYGJustifyToString(int value); /** @param value one of:
{@link #YGJustifyFlexStart JustifyFlexStart}{@link #YGJustifyCenter JustifyCenter}{@link #YGJustifyFlexEnd JustifyFlexEnd}{@link #YGJustifySpaceBetween JustifySpaceBetween}{@link #YGJustifySpaceAround JustifySpaceAround}
{@link #YGJustifySpaceEvenly JustifySpaceEvenly}
*/ @NativeType("char const *") public static String YGJustifyToString(@NativeType("YGJustify") int value) { long __result = nYGJustifyToString(value); return memASCII(__result); } // --- [ YGLogLevelToString ] --- /** Unsafe version of: {@link #YGLogLevelToString LogLevelToString} */ public static native long nYGLogLevelToString(int value); /** @param value one of:
{@link #YGLogLevelError LogLevelError}{@link #YGLogLevelWarn LogLevelWarn}{@link #YGLogLevelInfo LogLevelInfo}{@link #YGLogLevelDebug LogLevelDebug}{@link #YGLogLevelVerbose LogLevelVerbose}{@link #YGLogLevelFatal LogLevelFatal}
*/ @NativeType("char const *") public static String YGLogLevelToString(@NativeType("YGLogLevel") int value) { long __result = nYGLogLevelToString(value); return memASCII(__result); } // --- [ YGMeasureModeToString ] --- /** Unsafe version of: {@link #YGMeasureModeToString MeasureModeToString} */ public static native long nYGMeasureModeToString(int value); /** @param value one of:
{@link #YGMeasureModeUndefined MeasureModeUndefined}{@link #YGMeasureModeExactly MeasureModeExactly}{@link #YGMeasureModeAtMost MeasureModeAtMost}
*/ @NativeType("char const *") public static String YGMeasureModeToString(@NativeType("YGMeasureMode") int value) { long __result = nYGMeasureModeToString(value); return memASCII(__result); } // --- [ YGNodeTypeToString ] --- /** Unsafe version of: {@link #YGNodeTypeToString NodeTypeToString} */ public static native long nYGNodeTypeToString(int value); /** @param value one of:
{@link #YGNodeTypeDefault NodeTypeDefault}{@link #YGNodeTypeText NodeTypeText}
*/ @NativeType("char const *") public static String YGNodeTypeToString(@NativeType("YGNodeType") int value) { long __result = nYGNodeTypeToString(value); return memASCII(__result); } // --- [ YGOverflowToString ] --- /** Unsafe version of: {@link #YGOverflowToString OverflowToString} */ public static native long nYGOverflowToString(int value); /** @param value one of:
{@link #YGOverflowVisible OverflowVisible}{@link #YGOverflowHidden OverflowHidden}{@link #YGOverflowScroll OverflowScroll}
*/ @NativeType("char const *") public static String YGOverflowToString(@NativeType("YGOverflow") int value) { long __result = nYGOverflowToString(value); return memASCII(__result); } // --- [ YGPositionTypeToString ] --- /** Unsafe version of: {@link #YGPositionTypeToString PositionTypeToString} */ public static native long nYGPositionTypeToString(int value); /** @param value one of:
{@link #YGPositionTypeRelative PositionTypeRelative}{@link #YGPositionTypeAbsolute PositionTypeAbsolute}
*/ @NativeType("char const *") public static String YGPositionTypeToString(@NativeType("YGPositionType") int value) { long __result = nYGPositionTypeToString(value); return memASCII(__result); } // --- [ YGPrintOptionsToString ] --- /** Unsafe version of: {@link #YGPrintOptionsToString PrintOptionsToString} */ public static native long nYGPrintOptionsToString(int value); /** @param value one of:
{@link #YGPrintOptionsLayout PrintOptionsLayout}{@link #YGPrintOptionsStyle PrintOptionsStyle}{@link #YGPrintOptionsChildren PrintOptionsChildren}
*/ @NativeType("char const *") public static String YGPrintOptionsToString(@NativeType("YGPrintOptions") int value) { long __result = nYGPrintOptionsToString(value); return memASCII(__result); } // --- [ YGUnitToString ] --- /** Unsafe version of: {@link #YGUnitToString UnitToString} */ public static native long nYGUnitToString(int value); /** @param value one of:
{@link #YGUnitUndefined UnitUndefined}{@link #YGUnitPoint UnitPoint}{@link #YGUnitPercent UnitPercent}{@link #YGUnitAuto UnitAuto}
*/ @NativeType("char const *") public static String YGUnitToString(@NativeType("YGUnit") int value) { long __result = nYGUnitToString(value); return memASCII(__result); } // --- [ YGWrapToString ] --- /** Unsafe version of: {@link #YGWrapToString WrapToString} */ public static native long nYGWrapToString(int value); /** @param value one of:
{@link #YGWrapNoWrap WrapNoWrap}{@link #YGWrapWrap WrapWrap}{@link #YGWrapReverse WrapReverse}
*/ @NativeType("char const *") public static String YGWrapToString(@NativeType("YGWrap") int value) { long __result = nYGWrapToString(value); return memASCII(__result); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy