packages feed

dear-imgui-impl-glut-1.0.0: src/DearImGui/Raw/Impl/GLUT.hsc

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

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

module DearImGui.Raw.Impl.GLUT
  ( init
  , installFuncs
  , keyboardFunc
  , keyboardUpFunc
  , motionFunc
  , mouseFunc
  , mouseWheelFunc
  , newFrame
  , reshapeFunc
  , shutdown
  , specialFunc
  , specialUpFunc
  ) where

import Foreign.C.Types
import Prelude hiding (init)

#include "dcimgui_impl_glut.h"

-- functions

-- C: bool ImGui_ImplGLUT_Init()
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_Init"
  init :: IO CBool

-- C: void ImGui_ImplGLUT_InstallFuncs()
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_InstallFuncs"
  installFuncs :: IO ()

-- C: void ImGui_ImplGLUT_KeyboardFunc(unsigned char c, int x, int y)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_KeyboardFunc"
  keyboardFunc
    :: CUChar -- ^ c
    -> CInt -- ^ x
    -> CInt -- ^ y
    -> IO ()

-- C: void ImGui_ImplGLUT_KeyboardUpFunc(unsigned char c, int x, int y)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_KeyboardUpFunc"
  keyboardUpFunc
    :: CUChar -- ^ c
    -> CInt -- ^ x
    -> CInt -- ^ y
    -> IO ()

-- C: void ImGui_ImplGLUT_MotionFunc(int x, int y)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_MotionFunc"
  motionFunc
    :: CInt -- ^ x
    -> CInt -- ^ y
    -> IO ()

-- C: void ImGui_ImplGLUT_MouseFunc(int button, int state, int x, int y)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_MouseFunc"
  mouseFunc
    :: CInt -- ^ button
    -> CInt -- ^ state
    -> CInt -- ^ x
    -> CInt -- ^ y
    -> IO ()

-- C: void ImGui_ImplGLUT_MouseWheelFunc(int button, int dir, int x, int y)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_MouseWheelFunc"
  mouseWheelFunc
    :: CInt -- ^ button
    -> CInt -- ^ dir
    -> CInt -- ^ x
    -> CInt -- ^ y
    -> IO ()

-- C: void ImGui_ImplGLUT_NewFrame()
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_NewFrame"
  newFrame :: IO ()

-- C: void ImGui_ImplGLUT_ReshapeFunc(int w, int h)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_ReshapeFunc"
  reshapeFunc
    :: CInt -- ^ w
    -> CInt -- ^ h
    -> IO ()

-- C: void ImGui_ImplGLUT_Shutdown()
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_Shutdown"
  shutdown :: IO ()

-- C: void ImGui_ImplGLUT_SpecialFunc(int key, int x, int y)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_SpecialFunc"
  specialFunc
    :: CInt -- ^ key
    -> CInt -- ^ x
    -> CInt -- ^ y
    -> IO ()

-- C: void ImGui_ImplGLUT_SpecialUpFunc(int key, int x, int y)
foreign import capi safe "dcimgui_impl_glut.h cImGui_ImplGLUT_SpecialUpFunc"
  specialUpFunc
    :: CInt -- ^ key
    -> CInt -- ^ x
    -> CInt -- ^ y
    -> IO ()