Esempio n. 1
0
 public static GLFWdropfun setDropCallback(GLFWwindow window, GLFWdropfun cbfun)
 {
     return(Glfwint.setDropCallback(window.handle, cbfun));
 }
Esempio n. 2
0
 public static extern GLFWdropfun setDropCallback(IntPtr window, GLFWdropfun cbfun);
Esempio n. 3
0
 /*! @brief Sets the file drop callback.
  *
  *  This function sets the file drop callback of the specified window, which is
  *  called when one or more dragged files are dropped on the window.
  *
  *  Because the path array and its strings may have been generated specifically
  *  for that event, they are not guaranteed to be valid after the callback has
  *  returned.  If you wish to use them after the callback returns, you need to
  *  make a deep copy.
  *
  *  @param[in] window The window whose callback to set.
  *  @param[in] cbfun The new file drop callback, or `NULL` to remove the
  *  currently set callback.
  *  @return The previously set callback, or `NULL` if no callback was set or the
  *  library had not been [initialized](@ref intro_init).
  *
  *  @par Thread Safety
  *  This function may only be called from the main thread.
  *
  *  @sa @ref path_drop
  *
  *  @since Added in GLFW 3.1.
  *
  *  @ingroup input
  */
 internal static extern GLFWdropfun glfwSetDropCallback(GLFWwindow* window, GLFWdropfun cbfun);