org.lwjgl.util.yoga.YGBaselineFuncI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-yoga Show documentation
Show all versions of lwjgl-yoga Show documentation
An open-source, cross-platform layout library that implements Flexbox.
The 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 org.lwjgl.system.*;
import org.lwjgl.system.libffi.*;
import static org.lwjgl.system.APIUtil.*;
import static org.lwjgl.system.MemoryUtil.*;
import static org.lwjgl.system.libffi.LibFFI.*;
/**
* Type
*
*
* float (*{@link #invoke}) (
* YGNodeConstRef node,
* float width,
* float height
* )
*/
@FunctionalInterface
@NativeType("YGBaselineFunc")
public interface YGBaselineFuncI extends CallbackI {
FFICIF CIF = apiCreateCIF(
FFI_DEFAULT_ABI,
ffi_type_float,
ffi_type_pointer, ffi_type_float, ffi_type_float
);
@Override
default FFICIF getCallInterface() { return CIF; }
@Override
default void callback(long ret, long args) {
float __result = invoke(
memGetAddress(memGetAddress(args)),
memGetFloat(memGetAddress(args + POINTER_SIZE)),
memGetFloat(memGetAddress(args + 2 * POINTER_SIZE))
);
apiClosureRet(ret, __result);
}
/** Returns a defined offset to baseline (ascent). */
float invoke(@NativeType("YGNodeConstRef") long node, float width, float height);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy