Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
GLFW specific functions backend for Dear ImGui.
Modules for initialising a backend with GLFW can be found under the corresponding backend, e.g. DearImGui.GLFW.OpenGL.
Synopsis
- glfwNewFrame :: MonadIO m => m ()
- glfwShutdown :: MonadIO m => m ()
- glfwWindowFocusCallback :: MonadIO m => Window -> CInt -> m ()
- glfwCursorEnterCallback :: MonadIO m => Window -> CInt -> m ()
- glfwCursorPosCallback :: MonadIO m => Window -> CDouble -> CDouble -> m ()
- glfwMouseButtonCallback :: MonadIO m => Window -> CInt -> CInt -> CInt -> m ()
- glfwScrollCallback :: MonadIO m => Window -> CDouble -> CDouble -> m ()
- glfwKeyCallback :: MonadIO m => Window -> CInt -> CInt -> CInt -> CInt -> m ()
- glfwCharCallback :: MonadIO m => Window -> CUInt -> m ()
- glfwMonitorCallback :: MonadIO m => Monitor -> CInt -> m ()
GLFW
glfwNewFrame :: MonadIO m => m () Source #
Wraps ImGui_ImplGlfw_NewFrame
.
glfwShutdown :: MonadIO m => m () Source #
Wraps ImGui_ImplGlfw_Shutdown
.
GLFW callbacks
- When calling Init with
install_callbacks=true
: GLFW callbacks will be installed for you. They will call user's previously installed callbacks, if any. - When calling Init with
install_callbacks=false
: GLFW callbacks won't be installed. You will need to call those function yourself from your own GLFW callbacks.