Package org.lwjgl.system
Class Callback
java.lang.Object
org.lwjgl.system.Callback
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
AIFileCloseProc,AIFileFlushProc,AIFileOpenProc,AIFileReadProc,AIFileSeek,AIFileTellProc,AIFileWriteProc,AILogStreamCallback,BGFXCacheReadCallback,BGFXCacheReadSizeCallback,BGFXCacheWriteCallback,BGFXCaptureBeginCallback,BGFXCaptureEndCallback,BGFXCaptureFrameCallback,BGFXFatalCallback,BGFXProfilerBegin,BGFXProfilerBeginLiteral,BGFXProfilerEnd,BGFXReallocCallback,BGFXReleaseFunctionCallback,BGFXScreenShotCallback,BGFXTraceVarArgsCallback,CGEventTapCallBack,CLContextCallback,CLContextDestructorCallback,CLEventCallback,CLMemObjectDestructorCallback,CLNativeKernel,CLProgramCallback,CLProgramReleaseCallback,CLReportLiveObjectsAlteraCallback,CLSVMFreeCallback,CXCursorAndRangeVisit,CXCursorVisitor,CXExecuteOnThread,CXFieldVisitor,CXInclusionVisitor,EGLDebugMessageKHRCallback,EGLGetBlobFuncANDROID,EGLSetBlobFuncANDROID,EnumerationMutationHandler,EXTDebugProc,ExtentAlloc,ExtentCommit,ExtentDalloc,ExtentDecommit,ExtentDestroy,ExtentMerge,ExtentPurge,ExtentSplit,FMOD_3D_ROLLOFF_CALLBACK,FMOD_CHANNELCONTROL_CALLBACK,FMOD_CODEC_ALLOC_FUNC,FMOD_CODEC_CLOSE_CALLBACK,FMOD_CODEC_FILE_READ_FUNC,FMOD_CODEC_FILE_SEEK_FUNC,FMOD_CODEC_FILE_SIZE_FUNC,FMOD_CODEC_FILE_TELL_FUNC,FMOD_CODEC_FREE_FUNC,FMOD_CODEC_GETLENGTH_CALLBACK,FMOD_CODEC_GETPOSITION_CALLBACK,FMOD_CODEC_GETWAVEFORMAT_CALLBACK,FMOD_CODEC_LOG_FUNC,FMOD_CODEC_METADATA_FUNC,FMOD_CODEC_OPEN_CALLBACK,FMOD_CODEC_READ_CALLBACK,FMOD_CODEC_SETPOSITION_CALLBACK,FMOD_CODEC_SOUNDCREATE_CALLBACK,FMOD_DEBUG_CALLBACK,FMOD_DSP_ALLOC_FUNC,FMOD_DSP_CALLBACK,FMOD_DSP_CREATE_CALLBACK,FMOD_DSP_DFT_FFTREAL_FUNC,FMOD_DSP_DFT_IFFTREAL_FUNC,FMOD_DSP_FREE_FUNC,FMOD_DSP_GETBLOCKSIZE_FUNC,FMOD_DSP_GETCLOCK_FUNC,FMOD_DSP_GETLISTENERATTRIBUTES_FUNC,FMOD_DSP_GETPARAM_BOOL_CALLBACK,FMOD_DSP_GETPARAM_DATA_CALLBACK,FMOD_DSP_GETPARAM_FLOAT_CALLBACK,FMOD_DSP_GETPARAM_INT_CALLBACK,FMOD_DSP_GETSAMPLERATE_FUNC,FMOD_DSP_GETSPEAKERMODE_FUNC,FMOD_DSP_GETUSERDATA_FUNC,FMOD_DSP_LOG_FUNC,FMOD_DSP_PAN_GETROLLOFFGAIN_FUNC,FMOD_DSP_PAN_SUMMONOMATRIX_FUNC,FMOD_DSP_PAN_SUMMONOTOSURROUNDMATRIX_FUNC,FMOD_DSP_PAN_SUMSTEREOMATRIX_FUNC,FMOD_DSP_PAN_SUMSTEREOTOSURROUNDMATRIX_FUNC,FMOD_DSP_PAN_SUMSURROUNDMATRIX_FUNC,FMOD_DSP_PROCESS_CALLBACK,FMOD_DSP_READ_CALLBACK,FMOD_DSP_REALLOC_FUNC,FMOD_DSP_RELEASE_CALLBACK,FMOD_DSP_RESET_CALLBACK,FMOD_DSP_SETPARAM_BOOL_CALLBACK,FMOD_DSP_SETPARAM_DATA_CALLBACK,FMOD_DSP_SETPARAM_FLOAT_CALLBACK,FMOD_DSP_SETPARAM_INT_CALLBACK,FMOD_DSP_SETPOSITION_CALLBACK,FMOD_DSP_SHOULDIPROCESS_CALLBACK,FMOD_DSP_SYSTEM_DEREGISTER_CALLBACK,FMOD_DSP_SYSTEM_MIX_CALLBACK,FMOD_DSP_SYSTEM_REGISTER_CALLBACK,FMOD_FILE_ASYNCCANCEL_CALLBACK,FMOD_FILE_ASYNCDONE_FUNC,FMOD_FILE_ASYNCREAD_CALLBACK,FMOD_FILE_CLOSE_CALLBACK,FMOD_FILE_OPEN_CALLBACK,FMOD_FILE_READ_CALLBACK,FMOD_FILE_SEEK_CALLBACK,FMOD_MEMORY_ALLOC_CALLBACK,FMOD_MEMORY_FREE_CALLBACK,FMOD_MEMORY_REALLOC_CALLBACK,FMOD_OUTPUT_ALLOC_FUNC,FMOD_OUTPUT_CLOSE_CALLBACK,FMOD_OUTPUT_CLOSEPORT_CALLBACK,FMOD_OUTPUT_COPYPORT_FUNC,FMOD_OUTPUT_DEVICELISTCHANGED_CALLBACK,FMOD_OUTPUT_FREE_FUNC,FMOD_OUTPUT_GETDRIVERINFO_CALLBACK,FMOD_OUTPUT_GETHANDLE_CALLBACK,FMOD_OUTPUT_GETNUMDRIVERS_CALLBACK,FMOD_OUTPUT_INIT_CALLBACK,FMOD_OUTPUT_LOG_FUNC,FMOD_OUTPUT_MIXER_CALLBACK,FMOD_OUTPUT_OBJECT3DALLOC_CALLBACK,FMOD_OUTPUT_OBJECT3DFREE_CALLBACK,FMOD_OUTPUT_OBJECT3DGETINFO_CALLBACK,FMOD_OUTPUT_OBJECT3DUPDATE_CALLBACK,FMOD_OUTPUT_OPENPORT_CALLBACK,FMOD_OUTPUT_READFROMMIXER_FUNC,FMOD_OUTPUT_REQUESTRESET_FUNC,FMOD_OUTPUT_START_CALLBACK,FMOD_OUTPUT_STOP_CALLBACK,FMOD_OUTPUT_UPDATE_CALLBACK,FMOD_SOUND_NONBLOCK_CALLBACK,FMOD_SOUND_PCMREAD_CALLBACK,FMOD_SOUND_PCMSETPOS_CALLBACK,FMOD_STUDIO_COMMANDREPLAY_CREATE_INSTANCE_CALLBACK,FMOD_STUDIO_COMMANDREPLAY_FRAME_CALLBACK,FMOD_STUDIO_COMMANDREPLAY_LOAD_BANK_CALLBACK,FMOD_STUDIO_EVENT_CALLBACK,FMOD_STUDIO_SYSTEM_CALLBACK,FMOD_SYSTEM_CALLBACK,FSBANK_MEMORY_ALLOC_CALLBACK,FSBANK_MEMORY_FREE_CALLBACK,FSBANK_MEMORY_REALLOC_CALLBACK,FT_Alloc_Func,FT_DebugHook_Func,FT_Free_Func,FT_Generic_Finalizer,FT_Incremental_FreeGlyphDataFunc,FT_Incremental_GetGlyphDataFunc,FT_Incremental_GetGlyphMetricsFunc,FT_List_Destructor,FT_List_Iterator,FT_Module_Constructor,FT_Module_Destructor,FT_Module_Requester,FT_Outline_ConicToFunc,FT_Outline_CubicToFunc,FT_Outline_LineToFunc,FT_Outline_MoveToFunc,FT_Raster_DoneFunc,FT_Raster_NewFunc,FT_Raster_RenderFunc,FT_Raster_ResetFunc,FT_Raster_SetModeFunc,FT_Realloc_Func,FT_SpanFunc,FT_Stream_CloseFunc,FT_Stream_IoFunc,FTC_Face_Requester,GLDebugMessageAMDCallback,GLDebugMessageARBCallback,GLDebugMessageCallback,GLDebugMessageCallback,GLDebugMessageKHRCallback,GLFWAllocateCallback,GLFWCharCallback,GLFWCharModsCallback,GLFWCursorEnterCallback,GLFWCursorPosCallback,GLFWDeallocateCallback,GLFWDropCallback,GLFWErrorCallback,GLFWFramebufferSizeCallback,GLFWIMEStatusCallback,GLFWJoystickCallback,GLFWKeyCallback,GLFWMonitorCallback,GLFWMouseButtonCallback,GLFWPreeditCallback,GLFWPreeditCandidateCallback,GLFWReallocateCallback,GLFWScrollCallback,GLFWWindowCloseCallback,GLFWWindowContentScaleCallback,GLFWWindowFocusCallback,GLFWWindowIconifyCallback,GLFWWindowMaximizeCallback,GLFWWindowPosCallback,GLFWWindowRefreshCallback,GLFWWindowSizeCallback,hb_buffer_message_func_t,hb_color_line_get_color_stops_func_t,hb_color_line_get_extend_func_t,hb_destroy_func_t,hb_draw_close_path_func_t,hb_draw_cubic_to_func_t,hb_draw_line_to_func_t,hb_draw_move_to_func_t,hb_draw_quadratic_to_func_t,hb_font_draw_glyph_func_t,hb_font_draw_glyph_or_fail_func_t,hb_font_get_font_extents_func_t,hb_font_get_glyph_advance_func_t,hb_font_get_glyph_advances_func_t,hb_font_get_glyph_contour_point_func_t,hb_font_get_glyph_extents_func_t,hb_font_get_glyph_from_name_func_t,hb_font_get_glyph_kerning_func_t,hb_font_get_glyph_name_func_t,hb_font_get_glyph_origin_func_t,hb_font_get_nominal_glyph_func_t,hb_font_get_nominal_glyphs_func_t,hb_font_get_variation_glyph_func_t,hb_font_paint_glyph_func_t,hb_font_paint_glyph_or_fail_func_t,hb_get_table_tags_func_t,hb_paint_color_func_t,hb_paint_color_glyph_func_t,hb_paint_custom_palette_color_func_t,hb_paint_image_func_t,hb_paint_linear_gradient_func_t,hb_paint_pop_clip_func_t,hb_paint_pop_group_func_t,hb_paint_pop_transform_func_t,hb_paint_push_clip_glyph_func_t,hb_paint_push_clip_rectangle_func_t,hb_paint_push_group_func_t,hb_paint_push_transform_func_t,hb_paint_radial_gradient_func_t,hb_paint_sweep_gradient_func_t,hb_reference_table_func_t,hb_unicode_combining_class_func_t,hb_unicode_compose_func_t,hb_unicode_decompose_func_t,hb_unicode_general_category_func_t,hb_unicode_mirroring_func_t,hb_unicode_script_func_t,IndexerAbortQuery,IndexerDiagnostic,IndexerEnteredMainFile,IndexerImportedASTFile,IndexerIncludedFile,IndexerIndexDeclaration,IndexerIndexEntityReference,IndexerStartedTranslationUnit,ktxStream_destruct,ktxStream_getpos,ktxStream_getsize,ktxStream_read,ktxStream_setpos,ktxStream_skip,ktxStream_write,ktxVulkanTexture_subAllocatorAllocMemFuncPtr,ktxVulkanTexture_subAllocatorBindBufferFuncPtr,ktxVulkanTexture_subAllocatorBindImageFuncPtr,ktxVulkanTexture_subAllocatorFreeMemFuncPtr,ktxVulkanTexture_subAllocatorMemoryMapFuncPtr,ktxVulkanTexture_subAllocatorMemoryUnmapFuncPtr,LLVMDiagnosticHandler,LLVMFatalErrorHandler,LLVMMemoryManagerAllocateCodeSectionCallback,LLVMMemoryManagerAllocateDataSectionCallback,LLVMMemoryManagerCreateContextCallback,LLVMMemoryManagerDestroyCallback,LLVMMemoryManagerFinalizeMemoryCallback,LLVMMemoryManagerNotifyTerminatingCallback,LLVMMustPreserve,LLVMOpInfoCallback,LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction,LLVMOrcDisposeCAPIDefinitionGeneratorFunction,LLVMOrcErrorReporterFunction,LLVMOrcExecutionSessionLookupHandleResultFunction,LLVMOrcGenericIRModuleOperationFunction,LLVMOrcIRTransformLayerTransformFunction,LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction,LLVMOrcMaterializationUnitDestroyFunction,LLVMOrcMaterializationUnitDiscardFunction,LLVMOrcMaterializationUnitMaterializeFunction,LLVMOrcObjectTransformLayerTransformFunction,LLVMOrcSymbolPredicate,LLVMSymbolLookupCallback,LLVMYieldCallback,LTODiagnosticHandler,LZ4FAllocFunction,LZ4FCallocFunction,LZ4FFreeFunction,MallocMessageCallback,MDBCmpFunc,MDBMsgFunc,MDBRelFunc,MeshoptAllocate,MeshoptDeallocate,MSDFGenFTLoadCallback,NkCommandCustomCallback,NkDrawBeginCallback,NkDrawEndCallback,NkItemGetter,NkPluginAlloc,NkPluginCopy,NkPluginFilter,NkPluginFree,NkPluginPaste,NkQueryFontGlyphCallback,NkTextWidthCallback,NkValueGetter,OPCloseFunc,OPDecodeCBFunc,OPECloseFunc,OPEPacketFunc,OPEWriteFunc,OPReadFunc,OPSeekFunc,OPTellFunc,ParShapesRandFn,ParSLAdvectionCallback,PFNKTXITERCB,RMTFree,RMTInputHandler,RMTMalloc,RMTPropertyHandler,RMTRealloc,RMTSampleTreeHandler,RPErrorCallback,RPMapFailCallback,RPMemoryMapCallback,RPMemoryUnmapCallback,SDL_AudioPostmixCallback,SDL_AudioStreamCallback,SDL_calloc_func,SDL_CleanupPropertyCallback,SDL_ClipboardCleanupCallback,SDL_ClipboardDataCallback,SDL_CompareCallback,SDL_CompareCallback_r,SDL_DialogFileCallback,SDL_EGLAttribArrayCallback,SDL_EGLIntArrayCallback,SDL_EnumerateDirectoryCallback,SDL_EnumeratePropertiesCallback,SDL_EventFilter,SDL_free_func,SDL_HintCallback,SDL_HitTest,SDL_IOStreamInterfaceCloseCallback,SDL_IOStreamInterfaceFlushCallback,SDL_IOStreamInterfaceReadCallback,SDL_IOStreamInterfaceSeekCallback,SDL_IOStreamInterfaceSizeCallback,SDL_IOStreamInterfaceWriteCallback,SDL_LogOutputFunction,SDL_MainThreadCallback,SDL_malloc_func,SDL_NSTimerCallback,SDL_realloc_func,SDL_StorageInterfaceCloseCallback,SDL_StorageInterfaceCopyCallback,SDL_StorageInterfaceEnumerateCallback,SDL_StorageInterfaceInfoCallback,SDL_StorageInterfaceMkdirCallback,SDL_StorageInterfaceReadFileCallback,SDL_StorageInterfaceReadyCallback,SDL_StorageInterfaceRemoveCallback,SDL_StorageInterfaceRenameCallback,SDL_StorageInterfaceSpaceRemainingCallback,SDL_StorageInterfaceWriteFileCallback,SDL_TimerCallback,SDL_TLSDestructorCallback,SDL_TrayCallback,SDL_VirtualJoystickDescCleanupCallback,SDL_VirtualJoystickDescRumbleCallback,SDL_VirtualJoystickDescRumbleTriggersCallback,SDL_VirtualJoystickDescSendEffectCallback,SDL_VirtualJoystickDescSetLEDCallback,SDL_VirtualJoystickDescSetPlayerIndexCallback,SDL_VirtualJoystickDescSetSensorsEnabledCallback,SDL_VirtualJoystickDescUpdateCallback,SDL_WindowsMessageHook,SDL_X11EventHook,ShadercIncludeResolve,ShadercIncludeResultRelease,SOFTCallbackBufferType,SOFTEventProc,SOFTSystemEventProc,spng_calloc_fn,spng_free_fn,spng_malloc_fn,spng_realloc_fn,spng_rw_fn,SpvcErrorCallback,STBIEOFCallback,STBIReadCallback,STBIRInputCallback,STBIRKernelCallback,STBIROutputCallback,STBIRSupportCallback,STBISkipCallback,STBIWriteCallback,STBIZlibCompress,SVG_Lib_Free_Func,SVG_Lib_Init_Func,SVG_Lib_Preset_Slot_Func,SVG_Lib_Render_Func,topology_set_userdata_export_callback,topology_set_userdata_import_callback,VkAllocationFunction,VkDebugReportCallbackEXT,VkDebugUtilsMessengerCallbackEXT,VkDeviceMemoryReportCallbackEXT,VkFreeFunction,VkInternalAllocationNotification,VkInternalFreeNotification,VkReallocationFunction,VmaAllocateDeviceMemoryFunction,VmaCheckDefragmentationBreakFunction,VmaFreeDeviceMemoryFunction,WindowProc,XrDebugUtilsMessengerCallbackEXT,YGBaselineFunc,YGCloneNodeFunc,YGDirtiedFunc,YGLogger,YGMeasureFunc,ZSTDAllocFunction,ZSTDFreeFunction,ZSTDSequenceProducer
Base class for dynamically created native functions that call into Java code.
Callback instances use native resources and must be explicitly freed when no longer used by calling the free() method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Method Summary
Modifier and TypeMethodDescriptionlongaddress()Returns the raw pointer address as alongvalue.booleanvoidfree()Frees any native resources held by this object.static voidfree(long functionPointer) Frees any resources held by the specified function pointer.static <T extends CallbackI>
Tget(long functionPointer) Converts the specified function pointer to theCallbackIinstance associated with it.static <T extends CallbackI>
@Nullable TgetSafe(long functionPointer) inthashCode()toString()Methods inherited from interface org.lwjgl.system.NativeResource
close
-
Method Details
-
address
public long address()Description copied from interface:PointerReturns the raw pointer address as alongvalue. -
free
public void free()Description copied from interface:NativeResourceFrees any native resources held by this object.- Specified by:
freein interfaceNativeResource
-
get
Converts the specified function pointer to theCallbackIinstance associated with it.- Type Parameters:
T- theCallbackIinstance type- Parameters:
functionPointer- a function pointer- Returns:
- the
CallbackIinstance
-
getSafe
-
free
public static void free(long functionPointer) Frees any resources held by the specified function pointer.- Parameters:
functionPointer- the function pointer
-
equals
-
hashCode
public int hashCode() -
toString
-