-- GENERATED by C->Haskell Compiler, version 0.28.6 Switcheroo, 25 November 2017 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}
{-# LANGUAGE CPP, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.Valuator
    (
     -- * Constructor
     valuatorNew,
     valuatorCustom,
     ValuatorType(..),
     -- * Hierarchy
     --
     -- $hierarchy

     -- * Functions
     --
     -- $functions
    )
where
import qualified Foreign.C.Types as C2HSImp
import qualified Foreign.Ptr as C2HSImp






import C2HS hiding (cFromEnum, cFromBool, cToBool,cToEnum)

import Graphics.UI.FLTK.LowLevel.Fl_Enumerations
import Graphics.UI.FLTK.LowLevel.Fl_Types
import Graphics.UI.FLTK.LowLevel.Utils
import Graphics.UI.FLTK.LowLevel.Hierarchy
import Graphics.UI.FLTK.LowLevel.Dispatch
import qualified Data.Text as T
import Graphics.UI.FLTK.LowLevel.Widget
import Data.Ratio
data ValuatorType = VerticalValuatorType
                  | HorizontalValuatorType
  deriving (Show,Eq)
instance Enum ValuatorType where
  succ VerticalValuatorType = HorizontalValuatorType
  succ HorizontalValuatorType = error "ValuatorType.succ: HorizontalValuatorType has no successor"

  pred HorizontalValuatorType = VerticalValuatorType
  pred VerticalValuatorType = error "ValuatorType.pred: VerticalValuatorType has no predecessor"

  enumFromTo from to = go from
    where
      end = fromEnum to
      go v = case compare (fromEnum v) end of
                 LT -> v : go (succ v)
                 EQ -> [v]
                 GT -> []

  enumFrom from = enumFromTo from HorizontalValuatorType

  fromEnum VerticalValuatorType = 0
  fromEnum HorizontalValuatorType = 1

  toEnum 0 = VerticalValuatorType
  toEnum 1 = HorizontalValuatorType
  toEnum unmatched = error ("ValuatorType.toEnum: Cannot match " ++ show unmatched)

{-# LINE 37 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

valuatorNew' :: (Int) -> (Int) -> (Int) -> (Int) -> IO ((Ptr ()))
valuatorNew' a1 a2 a3 a4 =
  let {a1' = fromIntegral a1} in
  let {a2' = fromIntegral a2} in
  let {a3' = fromIntegral a3} in
  let {a4' = fromIntegral a4} in
  valuatorNew''_ a1' a2' a3' a4' >>= \res ->
  let {res' = id res} in
  return (res')

{-# LINE 38 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

valuatorNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (T.Text) -> IO ((Ptr ()))
valuatorNewWithLabel' a1 a2 a3 a4 a5 =
  let {a1' = fromIntegral a1} in
  let {a2' = fromIntegral a2} in
  let {a3' = fromIntegral a3} in
  let {a4' = fromIntegral a4} in
  let {a5' = unsafeToCString a5} in
  valuatorNewWithLabel''_ a1' a2' a3' a4' a5' >>= \res ->
  let {res' = id res} in
  return (res')

{-# LINE 39 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

overriddenValuatorNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (T.Text) -> (Ptr ()) -> IO ((Ptr ()))
overriddenValuatorNewWithLabel' a1 a2 a3 a4 a5 a6 =
  let {a1' = fromIntegral a1} in
  let {a2' = fromIntegral a2} in
  let {a3' = fromIntegral a3} in
  let {a4' = fromIntegral a4} in
  let {a5' = unsafeToCString a5} in
  let {a6' = id a6} in
  overriddenValuatorNewWithLabel''_ a1' a2' a3' a4' a5' a6' >>= \res ->
  let {res' = id res} in
  return (res')

{-# LINE 40 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

overriddenValuatorNew' :: (Int) -> (Int) -> (Int) -> (Int) -> (Ptr ()) -> IO ((Ptr ()))
overriddenValuatorNew' a1 a2 a3 a4 a5 =
  let {a1' = fromIntegral a1} in
  let {a2' = fromIntegral a2} in
  let {a3' = fromIntegral a3} in
  let {a4' = fromIntegral a4} in
  let {a5' = id a5} in
  overriddenValuatorNew''_ a1' a2' a3' a4' a5' >>= \res ->
  let {res' = id res} in
  return (res')

{-# LINE 41 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

valuatorCustom :: Rectangle -> Maybe T.Text -> Maybe (Ref Valuator -> IO ()) -> Maybe (CustomWidgetFuncs Valuator) -> IO (Ref Valuator)
valuatorCustom rectangle l' draw' funcs' =
  widgetMaker
    rectangle
    l'
    draw'
    funcs'
    overriddenValuatorNew'
    overriddenValuatorNewWithLabel'

valuatorNew :: Rectangle -> Maybe T.Text -> IO (Ref Valuator)
valuatorNew rectangle l' =
  widgetMaker
    rectangle
    l'
    Nothing
    Nothing
    overriddenValuatorNew'
    overriddenValuatorNewWithLabel'

valuatorDestroy' :: (Ptr ()) -> IO ((()))
valuatorDestroy' a1 =
  let {a1' = id a1} in
  valuatorDestroy''_ a1' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 62 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (IO ())) => Op (Destroy ()) Valuator orig impl where
  runOp _ _ win = swapRef win $ \winPtr -> do
                                        valuatorDestroy' winPtr
                                        return nullPtr
hide' :: (Ptr ()) -> IO ((()))
hide' a1 =
  let {a1' = id a1} in
  hide''_ a1' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 67 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (( IO ()))) => Op (Hide ()) Valuator orig impl where
  runOp _ _ button = withRef button $ \buttonPtr -> hide' buttonPtr
hideSuper' :: (Ptr ()) -> IO ((()))
hideSuper' a1 =
  let {a1' = id a1} in
  hideSuper''_ a1' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 70 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (( IO ()))) => Op (HideSuper ()) Valuator orig impl where
  runOp _ _ button = withRef button $ \buttonPtr -> hideSuper' buttonPtr
valuatorHandle' :: (Ptr ()) -> (CInt) -> IO ((Int))
valuatorHandle' a1 a2 =
  let {a1' = id a1} in
  let {a2' = id a2} in
  valuatorHandle''_ a1' a2' >>= \res ->
  let {res' = fromIntegral res} in
  return (res')

{-# LINE 73 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Event -> IO (Either UnknownEvent ()))) => Op (Handle ()) Valuator orig impl where
  runOp _ _ valuator event = withRef valuator (\p -> valuatorHandle' p (fromIntegral . fromEnum $ event)) >>= return  . successOrUnknownEvent
valuatorHandleSuper' :: (Ptr ()) -> (CInt) -> IO ((Int))
valuatorHandleSuper' a1 a2 =
  let {a1' = id a1} in
  let {a2' = id a2} in
  valuatorHandleSuper''_ a1' a2' >>= \res ->
  let {res' = fromIntegral res} in
  return (res')

{-# LINE 76 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Event -> IO (Either UnknownEvent ()))) => Op (HandleSuper ()) Valuator orig impl where
  runOp _ _ valuator event = withRef valuator (\p -> valuatorHandleSuper' p (fromIntegral . fromEnum $ event)) >>= return . successOrUnknownEvent
resizeSuper' :: (Ptr ()) -> (Int) -> (Int) -> (Int) -> (Int) -> IO ((()))
resizeSuper' a1 a2 a3 a4 a5 =
  let {a1' = id a1} in
  let {a2' = fromIntegral a2} in
  let {a3' = fromIntegral a3} in
  let {a4' = fromIntegral a4} in
  let {a5' = fromIntegral a5} in
  resizeSuper''_ a1' a2' a3' a4' a5' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 79 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Rectangle ->  IO ())) => Op (ResizeSuper ()) Valuator orig impl where
  runOp _ _ valuator rectangle = withRef valuator $ \valuatorPtr -> do
                                 let (x_pos,y_pos,w_pos,h_pos) = fromRectangle rectangle
                                 resizeSuper' valuatorPtr x_pos y_pos w_pos h_pos
resize' :: (Ptr ()) -> (Int) -> (Int) -> (Int) -> (Int) -> IO ((()))
resize' a1 a2 a3 a4 a5 =
  let {a1' = id a1} in
  let {a2' = fromIntegral a2} in
  let {a3' = fromIntegral a3} in
  let {a4' = fromIntegral a4} in
  let {a5' = fromIntegral a5} in
  resize''_ a1' a2' a3' a4' a5' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 84 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Rectangle -> IO ())) => Op (Resize ()) Valuator orig impl where
  runOp _ _ valuator rectangle = withRef valuator $ \valuatorPtr -> do
                                 let (x_pos,y_pos,w_pos,h_pos) = fromRectangle rectangle
                                 resize' valuatorPtr x_pos y_pos w_pos h_pos
bounds' :: (Ptr ()) -> (Double) -> (Double) -> IO ((()))
bounds' a1 a2 a3 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  let {a3' = realToFrac a3} in
  bounds''_ a1' a2' a3' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 89 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double -> Double ->  IO ())) => Op (Bounds ()) Valuator orig impl where
  runOp _ _ valuator a b = withRef valuator $ \valuatorPtr -> bounds' valuatorPtr a b
minimum' :: (Ptr ()) -> IO ((Double))
minimum' a1 =
  let {a1' = id a1} in
  minimum''_ a1' >>= \res ->
  let {res' = realToFrac res} in
  return (res')

{-# LINE 92 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ ( IO (Double))) => Op (GetMinimum ()) Valuator orig impl where
  runOp _ _ valuator = withRef valuator $ \valuatorPtr -> minimum' valuatorPtr
setMinimum' :: (Ptr ()) -> (Double) -> IO ((()))
setMinimum' a1 a2 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  setMinimum''_ a1' a2' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 95 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double ->  IO ())) => Op (SetMinimum ()) Valuator orig impl where
  runOp _ _ valuator a = withRef valuator $ \valuatorPtr -> setMinimum' valuatorPtr a
maximum' :: (Ptr ()) -> IO ((Double))
maximum' a1 =
  let {a1' = id a1} in
  maximum''_ a1' >>= \res ->
  let {res' = realToFrac res} in
  return (res')

{-# LINE 98 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ ( IO (Double))) => Op (GetMaximum ()) Valuator orig impl where
  runOp _ _ valuator = withRef valuator $ \valuatorPtr -> maximum' valuatorPtr
setMaximum' :: (Ptr ()) -> (Double) -> IO ((()))
setMaximum' a1 a2 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  setMaximum''_ a1' a2' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 101 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double ->  IO ())) => Op (SetMaximum ()) Valuator orig impl where
  runOp _ _ valuator a = withRef valuator $ \valuatorPtr -> setMaximum' valuatorPtr a
range' :: (Ptr ()) -> (Double) -> (Double) -> IO ((()))
range' a1 a2 a3 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  let {a3' = realToFrac a3} in
  range''_ a1' a2' a3' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 104 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double -> Double ->  IO ())) => Op (Range ()) Valuator orig impl where
  runOp _ _ valuator a b = withRef valuator $ \valuatorPtr -> range' valuatorPtr a b
setStepWithAB' :: (Ptr ()) -> (Double) -> (Int) -> IO ((()))
setStepWithAB' a1 a2 a3 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  let {a3' = fromIntegral a3} in
  setStepWithAB''_ a1' a2' a3' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 107 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Rational -> IO ())) => Op (SetStep ()) Valuator orig impl where
  runOp _ _ valuator r = withRef valuator $ \valuatorPtr -> setStepWithAB' valuatorPtr (fromIntegral (numerator r)) (fromIntegral (denominator r))
step' :: (Ptr ()) -> IO ((Double))
step' a1 =
  let {a1' = id a1} in
  step''_ a1' >>= \res ->
  let {res' = realToFrac res} in
  return (res')

{-# LINE 110 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ ( IO (Rational))) => Op (GetStep ()) Valuator orig impl where
  runOp _ _ valuator = withRef valuator $ \valuatorPtr -> step' valuatorPtr >>= \r -> return $ approxRational r 0
precision' :: (Ptr ()) -> (Int) -> IO ((()))
precision' a1 a2 =
  let {a1' = id a1} in
  let {a2' = fromIntegral a2} in
  precision''_ a1' a2' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 113 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Int ->  IO ())) => Op (Precision ()) Valuator orig impl where
  runOp _ _ valuator p' = withRef valuator $ \valuatorPtr -> precision' valuatorPtr p'
value' :: (Ptr ()) -> IO ((Double))
value' a1 =
  let {a1' = id a1} in
  value''_ a1' >>= \res ->
  let {res' = realToFrac res} in
  return (res')

{-# LINE 116 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ ( IO (Double))) => Op (GetValue ()) Valuator orig impl where
  runOp _ _ valuator = withRef valuator $ \valuatorPtr -> value' valuatorPtr
setValue' :: (Ptr ()) -> (Double) -> IO ((Int))
setValue' a1 a2 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  setValue''_ a1' a2' >>= \res ->
  let {res' = fromIntegral res} in
  return (res')

{-# LINE 119 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double ->  IO (Either NoChange ()))) => Op (SetValue ()) Valuator orig impl where
  runOp _ _ valuator v = withRef valuator $ \valuatorPtr -> do
    ret <- setValue' valuatorPtr v
    return (if (ret == 0) then Left NoChange else Right ())
format' :: (Ptr ()) -> (Ptr CChar) -> IO ((Int))
format' a1 a2 =
  let {a1' = id a1} in
  let {a2' = id a2} in
  format''_ a1' a2' >>= \res ->
  let {res' = fromIntegral res} in
  return (res')

{-# LINE 124 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (IO (Either UnknownError T.Text))) => Op (Format ()) Valuator orig impl where
  runOp _ _ valuator =
    let bufSize = 128
    in
    withRef valuator
      (\valuatorPtr ->
          allocaBytes 128
            (\bufPtr -> do
               res <- format' valuatorPtr bufPtr
               if (res < 0 || res > bufSize)
                 then return (Left UnknownError)
                 else fmap Right (cStringToText (castPtr bufPtr))
            )
      )
round' :: (Ptr ()) -> (Double) -> IO ((Double))
round' a1 a2 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  round''_ a1' a2' >>= \res ->
  let {res' = realToFrac res} in
  return (res')

{-# LINE 139 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double ->  IO (Double))) => Op (Round ()) Valuator orig impl where
  runOp _ _ valuator v = withRef valuator $ \valuatorPtr -> round' valuatorPtr v
clamp' :: (Ptr ()) -> (Double) -> IO ((Double))
clamp' a1 a2 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  clamp''_ a1' a2' >>= \res ->
  let {res' = realToFrac res} in
  return (res')

{-# LINE 142 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double ->  IO (Double))) => Op (Clamp ()) Valuator orig impl where
  runOp _ _ valuator v = withRef valuator $ \valuatorPtr -> clamp' valuatorPtr v
increment' :: (Ptr ()) -> (Double) -> (Int) -> IO ((Double))
increment' a1 a2 a3 =
  let {a1' = id a1} in
  let {a2' = realToFrac a2} in
  let {a3' = fromIntegral a3} in
  increment''_ a1' a2' a3' >>= \res ->
  let {res' = realToFrac res} in
  return (res')

{-# LINE 145 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (Double -> Int ->  IO (Double))) => Op (Increment ()) Valuator orig impl where
  runOp _ _ valuator v n = withRef valuator $ \valuatorPtr -> increment' valuatorPtr v n
setType' :: (Ptr ()) -> (Word8) -> IO ((()))
setType' a1 a2 =
  let {a1' = id a1} in
  let {a2' = fromIntegral a2} in
  setType''_ a1' a2' >>= \res ->
  let {res' = supressWarningAboutRes res} in
  return (res')

{-# LINE 148 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ (ValuatorType ->  IO ())) => Op (SetType ()) Valuator orig impl where
  runOp _ _ widget t = withRef widget $ \widgetPtr -> setType' widgetPtr (fromInteger $ toInteger $ fromEnum t)
type' :: (Ptr ()) -> IO ((Word8))
type' a1 =
  let {a1' = id a1} in
  type''_ a1' >>= \res ->
  let {res' = fromIntegral res} in
  return (res')

{-# LINE 151 "src/Graphics/UI/FLTK/LowLevel/Valuator.chs" #-}

instance (impl ~ IO (ValuatorType)) => Op (GetType_ ()) Valuator orig impl where
  runOp _ _ widget = withRef widget $ \widgetPtr -> type' widgetPtr >>= return . toEnum . fromInteger . toInteger

-- $functions
-- @
-- bounds :: 'Ref' 'Valuator' -> 'Double' -> 'Double' -> 'IO' ()
--
-- clamp :: 'Ref' 'Valuator' -> 'Double' -> 'IO' ('Double')
--
-- destroy :: 'Ref' 'Valuator' -> 'IO' ()
--
-- format :: 'Ref' 'Valuator' -> 'IO' ('Either' 'UnknownError' 'T.Text')
--
-- getMaximum :: 'Ref' 'Valuator' -> 'IO' ('Double')
--
-- getMinimum :: 'Ref' 'Valuator' -> 'IO' ('Double')
--
-- getStep :: 'Ref' 'Valuator' -> 'IO' ('Rational')
--
-- getType_ :: 'Ref' 'Valuator' -> 'IO' ('ValuatorType')
--
-- getValue :: 'Ref' 'Valuator' -> 'IO' ('Double')
--
-- handle :: 'Ref' 'Valuator' -> 'Event' -> 'IO' ('Either' 'UnknownEvent' ())
--
-- handleSuper :: 'Ref' 'Valuator' -> 'Event' -> 'IO' ('Either' 'UnknownEvent' ())
--
-- hide :: 'Ref' 'Valuator' -> ( 'IO' ())
--
-- hideSuper :: 'Ref' 'Valuator' -> ( 'IO' ())
--
-- increment :: 'Ref' 'Valuator' -> 'Double' -> 'Int' -> 'IO' ('Double')
--
-- precision :: 'Ref' 'Valuator' -> 'Int' -> 'IO' ()
--
-- range :: 'Ref' 'Valuator' -> 'Double' -> 'Double' -> 'IO' ()
--
-- resize :: 'Ref' 'Valuator' -> 'Rectangle' -> 'IO' ()
--
-- resizeSuper :: 'Ref' 'Valuator' -> 'Rectangle' -> 'IO' ()
--
-- round :: 'Ref' 'Valuator' -> 'Double' -> 'IO' ('Double')
--
-- setMaximum :: 'Ref' 'Valuator' -> 'Double' -> 'IO' ()
--
-- setMinimum :: 'Ref' 'Valuator' -> 'Double' -> 'IO' ()
--
-- setStep :: 'Ref' 'Valuator' -> 'Rational' -> 'IO' ()
--
-- setType :: 'Ref' 'Valuator' -> 'ValuatorType' -> 'IO' ()
--
-- setValue :: 'Ref' 'Valuator' -> 'Double' -> 'IO' ('Either' 'NoChange' ())
-- @

-- $hierarchy
-- @
-- "Graphics.UI.FLTK.LowLevel.Widget"
--  |
--  v
-- "Graphics.UI.FLTK.LowLevel.Valuator"
-- @

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_New"
  valuatorNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO (C2HSImp.Ptr ()))))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_New_WithLabel"
  valuatorNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO (C2HSImp.Ptr ())))))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_OverriddenValuator_New_WithLabel"
  overriddenValuatorNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr ()))))))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_OverriddenValuator_New"
  overriddenValuatorNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr ())))))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_Destroy"
  valuatorDestroy''_ :: ((C2HSImp.Ptr ()) -> (IO ()))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_hide"
  hide''_ :: ((C2HSImp.Ptr ()) -> (IO ()))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_hide_super"
  hideSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_handle"
  valuatorHandle''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_handle_super"
  valuatorHandleSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_resize_super"
  resizeSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_resize"
  resize''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_bounds"
  bounds''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (C2HSImp.CDouble -> (IO ()))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_minimum"
  minimum''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_set_minimum"
  setMinimum''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_maximum"
  maximum''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_set_maximum"
  setMaximum''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_range"
  range''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (C2HSImp.CDouble -> (IO ()))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_set_step_with_a_b"
  setStepWithAB''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (C2HSImp.CInt -> (IO ()))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_step"
  step''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_precision"
  precision''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_value"
  value''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_set_value"
  setValue''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO C2HSImp.CInt)))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_format"
  format''_ :: ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO C2HSImp.CInt)))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_round"
  round''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO C2HSImp.CDouble)))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_clamp"
  clamp''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO C2HSImp.CDouble)))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Valuator_increment"
  increment''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (C2HSImp.CInt -> (IO C2HSImp.CDouble))))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Widget_set_type"
  setType''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CUChar -> (IO ())))

foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Valuator.chs.h Fl_Widget_type"
  type''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CUChar))