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

org.lwjgl.nanovg.UIHandlerI Maven / Gradle / Ivy

/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.nanovg;

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.*;

/**
 * Instances of this interface may be passed to the {@link OUI#uiSetHandler SetHandler} method.
 * 
 * 

Type

* *

 * void (*{@link #invoke}) (
 *     int item,
 *     UIevent event
 * )
*/ @FunctionalInterface @NativeType("UIhandler") public interface UIHandlerI extends CallbackI { FFICIF CIF = apiCreateCIF( FFI_DEFAULT_ABI, ffi_type_void, ffi_type_sint32, ffi_type_uint32 ); @Override default FFICIF getCallInterface() { return CIF; } @Override default void callback(long ret, long args) { invoke( memGetInt(memGetAddress(args)), memGetInt(memGetAddress(args + POINTER_SIZE)) ); } /** handler callback; event is one of UI_EVENT_* */ void invoke(int item, @NativeType("UIevent") int event); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy