Package org.lwjgl.system
Interface NativeResource
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Subinterfaces:
SharedLibrary
- All Known Implementing Classes:
Callback,DEVMODE,DEVMODE.Buffer,DISPLAY_DEVICE,DISPLAY_DEVICE.Buffer,EnumerationMutationHandler,JNINativeMethod,JNINativeMethod.Buffer,LinuxLibrary,MacOSXLibrary,MacOSXLibraryBundle,MacOSXLibraryDL,MONITORINFOEX,MONITORINFOEX.Buffer,MSG,MSG.Buffer,ObjCMethodDescription,ObjCMethodDescription.Buffer,ObjCPropertyAttribute,ObjCPropertyAttribute.Buffer,PIXELFORMATDESCRIPTOR,PIXELFORMATDESCRIPTOR.Buffer,POINT,POINT.Buffer,POINTL,POINTL.Buffer,RECT,RECT.Buffer,SECURITY_ATTRIBUTES,SECURITY_ATTRIBUTES.Buffer,SharedLibrary.Default,SharedLibrary.Delegate,TOUCHINPUT,TOUCHINPUT.Buffer,Visual,Visual.Buffer,WINDOWPLACEMENT,WINDOWPLACEMENT.Buffer,WindowProc,WindowsLibrary,WNDCLASSEX,WNDCLASSEX.Buffer,XSetWindowAttributes,XSetWindowAttributes.Buffer,XVisualInfo,XVisualInfo.Buffer
public interface NativeResource extends java.lang.AutoCloseableClasses that implement this interface are associated with one or more native resources. These resources must be explicitly freed when a class instance is no longer used, by calling thefree()method.This interface extends
AutoCloseable, which means that implementations may be used as resources in try-with-resources statements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()voidfree()Frees any native resources held by this object.
-