packages feed

dear-imgui-impl-glfw-1.0.0: src/DearImGui/Raw/Impl/GLFW.hsc

{-# LANGUAGE CApiFFI #-}
{-# LANGUAGE PatternSynonyms #-}

-- This file was generated by dear-bindings-ffi. Do not edit by hand.

module DearImGui.Raw.Impl.GLFW
  ( newFrame
  , setCallbacksChainForAllWindows
  , shutdown
  , sleep
  ) where

import Foreign.C.Types

#include "dcimgui_impl_glfw.h"

-- functions

-- C: void ImGui_ImplGlfw_NewFrame()
foreign import capi safe "dcimgui_impl_glfw.h cImGui_ImplGlfw_NewFrame"
  newFrame :: IO ()

-- C: void ImGui_ImplGlfw_SetCallbacksChainForAllWindows(bool chain_for_all_windows)
foreign import capi safe "dcimgui_impl_glfw.h cImGui_ImplGlfw_SetCallbacksChainForAllWindows"
  setCallbacksChainForAllWindows
    :: CBool -- ^ chain_for_all_windows
    -> IO ()

-- C: void ImGui_ImplGlfw_Shutdown()
foreign import capi safe "dcimgui_impl_glfw.h cImGui_ImplGlfw_Shutdown"
  shutdown :: IO ()

-- C: void ImGui_ImplGlfw_Sleep(int milliseconds)
foreign import capi safe "dcimgui_impl_glfw.h cImGui_ImplGlfw_Sleep"
  sleep
    :: CInt -- ^ milliseconds
    -> IO ()