org.lwjgl.nuklear.NkValueGetterI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-nuklear Show documentation
Show all versions of lwjgl-nuklear Show documentation
A minimal state immediate mode graphical user interface toolkit.
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.nuklear;
import org.lwjgl.system.*;
import static org.lwjgl.system.dyncall.DynCallback.*;
/**
* Instances of this interface may be passed to the {@link Nuklear#nk_plot_function plot_function} function.
*
* Type
*
*
* float (*) (
* void *userdata,
* int index
* )
*/
@FunctionalInterface
@NativeType("nk_value_getter")
public interface NkValueGetterI extends CallbackI.F {
String SIGNATURE = "(pi)f";
@Override
default String getSignature() { return SIGNATURE; }
@Override
default float callback(long args) {
return invoke(
dcbArgPointer(args),
dcbArgInt(args)
);
}
float invoke(@NativeType("void *") long userdata, int index);
}