parameters: (window, cbfun)
docstring: Sets the framebuffer resize callback for the specified window.
  
      Wrapper for:
          GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun cbfun);
docstring_summary: Sets the framebuffer resize callback for the specified window.
docstring_tokens: Sets the framebuffer resize callback for the specified window .
function: def set_framebuffer_size_callback(window, cbfun):
      """
      Sets the framebuffer resize callback for the specified window.
  
      Wrapper for:
          GLFWframebuffersizefun glfwSetFramebufferSizeCallback(GLFWwindow* window, GLFWframebuffersizefun cbfun);
      """
      window_addr = ctypes.cast(ctypes.pointer(window),
                                ctypes.POINTER(ctypes.c_long)).contents.value
      if window_addr in _framebuffer_size_callback_repository:
          previous_callback = _framebuffer_size_callback_repository[window_addr]
      else:
          previous_callback = None
      if cbfun is None:
          cbfun = 0
      c_cbfun = _GLFWframebuffersizefun(cbfun)
      _framebuffer_size_callback_repository[window_addr] = (cbfun, c_cbfun)
      cbfun = c_cbfun
      _glfw.glfwSetFramebufferSizeCallback(window, cbfun)
      if previous_callback is not None and previous_callback[0] != 0:
          return previous_callback[0]
function_tokens: def set_framebuffer_size_callback ( window , cbfun ) : window_addr = ctypes . cast ( ctypes . pointer ( window ) , ctypes . POINTER ( ctypes . c_long ) ) . contents . value if window_addr in _framebuffer_size_callback_repository : previous_callback = _framebuffer_size_callback_repository [ window_addr ] else : previous_callback = None if cbfun is None : cbfun = 0 c_cbfun = _GLFWframebuffersizefun ( cbfun ) _framebuffer_size_callback_repository [ window_addr ] = ( cbfun , c_cbfun ) cbfun = c_cbfun _glfw . glfwSetFramebufferSizeCallback ( window , cbfun ) if previous_callback is not None and previous_callback [ 0 ] != 0 : return previous_callback [ 0 ]