Class GLFWDropCallback

    • Method Detail

      • create

        public static GLFWDropCallback create​(long functionPointer)
        Creates a GLFWDropCallback instance from the specified function pointer.
        Returns:
        the new GLFWDropCallback
      • createSafe

        @Nullable
        public static GLFWDropCallback createSafe​(long functionPointer)
        Like create, but returns null if functionPointer is NULL.
      • create

        public static GLFWDropCallback create​(GLFWDropCallbackI instance)
        Creates a GLFWDropCallback instance that delegates to the specified GLFWDropCallbackI instance.
      • getName

        public static java.lang.String getName​(long names,
                                               int index)
        Decodes the specified GLFWDropCallback arguments to a String.

        This method may only be used inside a GLFWDropCallback invocation.

        Parameters:
        names - pointer to the array of UTF-8 encoded path names of the dropped files
        index - the index to decode
        Returns:
        the name at the specified index as a String