@@ -1593,19 +1593,22 @@ typedef void (* GLFWscrollfun)(GLFWwindow*,double,double,int);
15931593 */
15941594typedef void (* GLFWkeyboardfun )(GLFWwindow * , GLFWkeyevent * );
15951595
1596- /*! @brief The function pointer type for path drop callbacks.
1596+ /*! @brief The function pointer type for drag and drop callbacks.
15971597 *
1598- * This is the function pointer type for path drop callbacks. A path drop
1598+ * This is the function pointer type for drop callbacks. A drop
15991599 * callback function has the following signature:
16001600 * @code
1601- * void function_name(GLFWwindow* window, int path_count , const char* paths[] )
1601+ * int function_name(GLFWwindow* window, const char* mime , const char* text )
16021602 * @endcode
16031603 *
16041604 * @param[in] window The window that received the event.
1605- * @param[in] path_count The number of dropped paths.
1606- * @param[in] paths The UTF-8 encoded file and/or directory path names.
1605+ * @param[in] mime The UTF-8 encoded drop mime-type
1606+ * @param[in] data The dropped data or NULL for drag enter events
1607+ * @param[in] sz The size of the dropped data
1608+ * @return For drag events should return the priority for the specified mime type. A priority of zero
1609+ * or lower means the mime type is not accepted. Highest priority will be the finally accepted mime-type.
16071610 *
1608- * @pointer_lifetime The path array and its strings are valid until the
1611+ * @pointer_lifetime The text is valid until the
16091612 * callback function returns.
16101613 *
16111614 * @sa @ref path_drop
@@ -1615,7 +1618,7 @@ typedef void (* GLFWkeyboardfun)(GLFWwindow*, GLFWkeyevent*);
16151618 *
16161619 * @ingroup input
16171620 */
1618- typedef void (* GLFWdropfun )(GLFWwindow * ,int , const char * [] );
1621+ typedef int (* GLFWdropfun )(GLFWwindow * , const char * , const char * , size_t );
16191622
16201623typedef void (* GLFWliveresizefun )(GLFWwindow * , bool );
16211624
0 commit comments