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

org.lwjgl.util.yoga.YGMeasureFuncI 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 org.lwjgl.system.*;

import static org.lwjgl.system.dyncall.DynCallback.*;


@FunctionalInterface
@NativeType("YGMeasureFunc")
public interface YGMeasureFuncI extends CallbackI.J {

    String SIGNATURE = "(pfifi)l";

    @Override
    default String getSignature() { return SIGNATURE; }

    @Override
    default long callback(long args) {
        return invoke(
            dcbArgPointer(args),
            dcbArgFloat(args),
            dcbArgInt(args),
            dcbArgFloat(args),
            dcbArgInt(args)
        );
    }

    /**
     * Use {@link YGMeasureFunc#toLong toLong} to create the return value.
     *
     * @param node       
     * @param width      
     * @param widthMode  
     * @param height     
     * @param heightMode 
     */
    @NativeType("uint64_t") long invoke(@NativeType("YGNodeRef") long node, float width, @NativeType("YGMeasureMode") int widthMode, float height, @NativeType("YGMeasureMode") int heightMode);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy