{-# LINE 1 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
{-# LANGUAGE CPP, ExistentialQuantification, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.Base.Input
(
FlInputType(..),
inputNew,
inputCustom
, drawInputBase
, handleInputBase
, resizeInputBase
, hideInputBase
, showWidgetInputBase
)
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.Base.Widget
data FlInputType = FlNormalInput
| FlFloatInput
| FlIntInput
| FlHiddenInput
| FlMultilineInput
| FlSecretInput
instance Enum FlInputType where
succ FlNormalInput = FlFloatInput
succ FlFloatInput = FlIntInput
succ FlIntInput = FlHiddenInput
succ FlHiddenInput = FlMultilineInput
succ FlMultilineInput = FlSecretInput
succ FlSecretInput = error "FlInputType.succ: FlSecretInput has no successor"
pred FlFloatInput = FlNormalInput
pred FlIntInput = FlFloatInput
pred FlHiddenInput = FlIntInput
pred FlMultilineInput = FlHiddenInput
pred FlSecretInput = FlMultilineInput
pred FlNormalInput = error "FlInputType.pred: FlNormalInput has no predecessor"
enumFromTo :: FlInputType -> FlInputType -> [FlInputType]
enumFromTo from :: FlInputType
from to :: FlInputType
to = FlInputType -> [FlInputType]
go FlInputType
from
where
end :: Int
end = FlInputType -> Int
forall a. Enum a => a -> Int
fromEnum FlInputType
to
go :: FlInputType -> [FlInputType]
go v :: FlInputType
v = case Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
compare (FlInputType -> Int
forall a. Enum a => a -> Int
fromEnum FlInputType
v) Int
end of
LT -> FlInputType
v FlInputType -> [FlInputType] -> [FlInputType]
forall a. a -> [a] -> [a]
: FlInputType -> [FlInputType]
go (FlInputType -> FlInputType
forall a. Enum a => a -> a
succ FlInputType
v)
EQ -> [FlInputType
v]
GT -> []
enumFrom from = enumFromTo from FlSecretInput
fromEnum FlNormalInput = 0
fromEnum FlFloatInput = 1
fromEnum FlIntInput = 2
fromEnum FlHiddenInput = 3
fromEnum FlMultilineInput = 4
fromEnum FlSecretInput = 5
Ref Input -> IO (Ref Input)
forall (m :: * -> *) a. Monad m => a -> m a
return :: forall (m :: * -> *) a. Monad m => a -> m a
toEnum :: Int -> FlInputType
toEnum Ref Input
0 = FlInputType
FlNormalInput
toEnum 1 = FlInputType
FlFloatInput
toEnum 2 = FlIntInput
toEnum 3 = FlInputType
FlHiddenInput
toEnum 4 = FlInputType
FlMultilineInput
toEnum 5 = FlInputType
FlSecretInput
toEnum unmatched :: Int
unmatched = [Char] -> FlInputType
forall a. HasCallStack => [Char] -> a
error ("FlInputType.toEnum: Cannot match " [Char] -> [Char] -> [Char]
forall a. [a] -> [a] -> [a]
++ Int -> [Char]
forall a. Show a => a -> [Char]
show Int
unmatched)
{-# LINE 52 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
overriddenWidgetNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> (Ptr ()) -> IO ((Ptr ()))
overriddenWidgetNewWithLabel' 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
(flip ($)) a5 $ \a5' ->
let {a6' = id a6} in
overriddenWidgetNewWithLabel''_ a1' a2' a3' a4' a5' a6' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 53 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
overriddenWidgetNew' :: (Int) -> (Int) -> (Int) -> (Int) -> (Ptr ()) -> IO ((Ptr ()))
overriddenWidgetNew' 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
overriddenWidgetNew''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 54 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
inputCustom ::
Rectangle
-> Maybe T.Text
-> Maybe FlInputType
-> Maybe (Ref Input -> IO ())
-> Maybe (CustomWidgetFuncs Input)
-> IO (Ref Input)
inputCustom rectangle l' itMaybe draw' funcs' = do
i <- widgetMaker
rectangle
l'
draw'
funcs'
overriddenWidgetNew'
overriddenWidgetNewWithLabel'
maybe
(return ())
(\it -> do
setInputType i it
case it of
FlNormalInput -> return ()
FlFloatInput -> clearFlag i WidgetFlagMacUseAccentsMenu
FlIntInput -> clearFlag i WidgetFlagMacUseAccentsMenu
FlMultilineInput -> return ()
FlSecretInput -> clearFlag i WidgetFlagMacUseAccentsMenu
FlHiddenInput -> return ()
)
itMaybe
setFlag i WidgetFlagCopiedLabel
setFlag i WidgetFlagCopiedTooltip
return i
multilineInputNew' :: (Int) -> (Int) -> (Int) -> (Int) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
multilineInputNew' 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
multilineInputNew''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 87 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
multilineInputNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
multilineInputNewWithLabel' 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
(flip ($)) a5 $ \a5' ->
let {a6' = id a6} in
multilineInputNewWithLabel''_ a1' a2' a3' a4' a5' a6' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 88 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
floatInputNew' :: (Int) -> (Int) -> (Int) -> (Int) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
floatInputNew' 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
floatInputNew''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 89 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
floatInputNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
floatInputNewWithLabel' 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
(flip ($)) a5 $ \a5' ->
let {a6' = id a6} in
floatInputNewWithLabel''_ a1' a2' a3' a4' a5' a6' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 90 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
intInputNew' :: (Int) -> (Int) -> (Int) -> (Int) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
intInputNew' 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
intInputNew''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 91 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
intInputNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
intInputNewWithLabel' 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
(flip ($)) a5 $ \a5' ->
let {a6' = id a6} in
intInputNewWithLabel''_ a1' a2' a3' a4' a5' a6' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 92 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
secretInputNew' :: (Int) -> (Int) -> (Int) -> (Int) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
secretInputNew' 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
secretInputNew''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 93 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
secretInputNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> (FunPtr DestroyCallbacksPrim) -> IO ((Ptr ()))
secretInputNewWithLabel' 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
(flip ($)) a5 $ \a5' ->
let {a6' = id a6} in
secretInputNewWithLabel''_ a1' a2' a3' a4' a5' a6' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 94 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
inputNew :: Rectangle -> Maybe T.Text -> Maybe FlInputType -> IO (Ref Input)
inputNew rectangle l' flInputType =
let (x_pos, y_pos, width, height) = fromRectangle rectangle
construct =
let normalInput = inputCustom rectangle l' (Just FlNormalInput) Nothing Nothing
specialInput f = do
lPtr <- maybe (return nullPtr) copyTextToCString l'
destroyCallbacksFptr <- toDestroyCallbacksPrim defaultDestroyCallbacks
f x_pos y_pos width height lPtr destroyCallbacksFptr >>= toRef
in
case flInputType of
Just FlNormalInput -> normalInput
Just FlHiddenInput -> normalInput
Just FlFloatInput -> specialInput floatInputNewWithLabel'
Just FlIntInput -> specialInput intInputNewWithLabel'
Just FlMultilineInput -> specialInput multilineInputNewWithLabel'
Just FlSecretInput -> specialInput secretInputNewWithLabel'
Nothing -> inputCustom rectangle l' Nothing Nothing Nothing
in do
i <- construct
case flInputType of { Just FlHiddenInput -> setInputType i FlHiddenInput; _ -> return () }
setFlag i WidgetFlagCopiedLabel
setFlag i WidgetFlagCopiedTooltip
return i
inputDestroy' :: (Ptr ()) -> IO ((()))
inputDestroy' :: Ptr () -> IO ()
inputDestroy' a1 :: Ptr ()
a1 =
let {a1' = id a1} in
inputDestroy''_ a1' >>= \res ->
let {res' = () -> ()
forall a. a -> ()
supressWarningAboutRes ()
res} in
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return (()
res')
{-# LINE 120 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (IO ())) => Op (Destroy ()) InputBase orig impl where
runOp _ _ win = swapRef win $ \winPtr -> do
inputDestroy' winPtr
return nullPtr
setValue' :: (Ptr ()) -> (CString) -> IO ((Int))
setValue' a1 a2 =
let {a1' = id a1} in
(flip ($)) a2 $ \a2' ->
setValue''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 126 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (T.Text -> IO (Either NoChange ()))) => Op (SetValue ()) InputBase orig impl where
runOp _ _ input text = withRef input $ \inputPtr -> copyTextToCString text >>= \t -> setValue' inputPtr t >>= return . successOrNoChange
staticValue' :: (Ptr ()) -> (CString) -> IO ((Int))
staticValue' a1 a2 =
let {a1' = id a1} in
(flip ($)) a2 $ \a2' ->
staticValue''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 130 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (T.Text -> IO (Either NoChange ()))) => Op (StaticValue ()) InputBase orig impl where
runOp _ _ input text = do
status' <- withRef input $ \inputPtr -> copyTextToCString text >>= staticValue' inputPtr
return $ successOrNoChange status'
value' :: (Ptr ()) -> IO ((CString))
value' a1 =
let {a1' = id a1} in
value''_ a1' >>= \res ->
return res >>= \res' ->
return (res')
{-# LINE 135 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO T.Text)) => Op (GetValue ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> value' inputPtr >>= cStringToText
index' :: (Ptr ()) -> (Int) -> IO ((Int))
index' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
index''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 138 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (AtIndex -> IO (Char))) => Op (Index ()) InputBase orig impl where
runOp _ _ input (AtIndex i) = withRef input $ \inputPtr -> index' inputPtr i >>= return . toEnum
setSize' :: (Ptr ()) -> (Int) -> (Int) -> IO ()
setSize' a1 a2 a3 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
let {a3' = fromIntegral a3} in
setSize''_ a1' a2' a3' >>
return ()
{-# LINE 141 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Size -> IO ())) => Op (SetSize ()) InputBase orig impl where
runOp _ _ input (Size (Width w') (Height h')) = withRef input $ \inputPtr -> setSize' inputPtr w' h'
maximumSize' :: (Ptr ()) -> IO ((Int))
maximumSize' a1 =
let {a1' = id a1} in
maximumSize''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 144 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Int))) => Op (GetMaximumSize ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> maximumSize' inputPtr
size' :: (Ptr ()) -> IO ((Int))
size' a1 =
let {a1' = id a1} in
size''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 147 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Int))) => Op (GetSize ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> size' inputPtr
setMaximumSize' :: (Ptr ()) -> (Int) -> IO ()
setMaximumSize' a1 a2 =
let {a1' = id a1m :: Int
} in
let {a2' = fromIntegral a2} in
setMaximumSize''_ a1' a2' >>
return ()
{-# LINE 150 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Int -> IO ())) => Op (SetMaximumSize ()) InputBase orig impl where
runOp _ _ input m = withRef input $ \inputPtr -> setMaximumSize' inputPtr m
position' :: (Ptr ()) -> IO ((Int))
position' a1 =
let {a1' = id a1} in
position''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 153 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Int))) => Op (GetPosition ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> position' inputPtr
mark' :: (Ptr ()) -> IO ((Int))
mark' a1 =
let {a1' = id a1} in
mark''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 156 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Int))) => Op (GetMark ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> mark' inputPtr
setPositionWithCursorMark' :: (Ptr ()) -> (Int) -> (Int) -> IO ((Int))
setPositionWithCursorMark' a1 a2 a3 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
let {a3' = fromIntegral a3} in
setPositionWithCursorMark''_ a1' a2' a3' >>= \res ->
let {res' = fromIntegral res} in
return (res')
setMark' :: Ptr () -> Int -> IO Int
{-# LINE 159 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
setPositionNN' :: (Ptr ()) -> (Int) -> IO ((Int))
setPositionNN' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
setPositionNN''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 160 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Int -> Maybe Int -> IO (Either NoChange ()))) => Op (SetPosition ()) InputBase orig impl where
runOp _ _ input point mark = do
status' <- case mark of
Just m -> withRef input $ \inputPtr -> setPositionWithCursorMark' inputPtr point m
Nothing -> withRef input $ \inputPtr -> setPositionNN' inputPtr point
return $ successOrNoChange status'
setMark' :: (Ptr ()) -> (Int) -> IO ((Int))
setMark' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
setMark''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 167 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Int -> IO (Either NoChange ()))) => Op (SetMark ()) InputBase orig impl where
runOp _ _ input m = withRef input $ \inputPtr -> setMark' inputPtr m >>= return . successOrNoChange
replace' :: (Ptr ()) -> (Int) -> (Int) -> (CString) -> IO ((Int))
replace' a1 a2 a3 a4 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
let {a3' = fromIntegral a3} in
(flip ($)) a4 $ \a4' ->
replace''_ a1' a2' a3' a4' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 170 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (IndexRange -> T.Text -> IO (Either NoChange ()))) => Op (Replace ()) InputBase orig impl where
runOp _ _ input (IndexRange (AtIndex b) (AtIndex e)) text = withRef input $ \inputPtr -> copyTextToCString text >>= \t -> replace' inputPtr b e t >>= return . successOrNoChange
cut' :: (Ptr ()) -> IO ((Int))
cut' a1 =
let {a1' = id a1} in
cut''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 173 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Either NoChange ()))) => Op (Cut ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> cut' inputPtr >>= return . successOrNoChange
cutBytes' :: (Ptr ()) -> (Int) -> IO ((Int))
cutBytes' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
cutBytes''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 176 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Int -> IO (Either NoChange ()))) => Op (CutFromCursor ()) InputBase orig impl where
runOp _ _ input n = withRef input $ \inputPtr -> cutBytes' inputPtr n >>= return . successOrNoChange
cutRange' :: (Ptr ()) -> (Int) -> (Int) -> IO ((Int))
cutRange' a1 a2 a3 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
let {a3' = fromIntegral a3} in
cutRange''_ a1' a2' a3' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 179 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (IndexRange -> IO (Either NoChange ()))) => Op (CutRange ()) InputBase orig impl where
runOp _ _ input (IndexRange (AtIndex a) (AtIndex b)) = withRef input $ \inputPtr -> cutRange' inputPtr a b >>= return . successOrNoChange
insert' :: (Ptr ()) -> (CString) -> IO ((Int))
insert' a1 a2 =
let {a1' = id a1} in
(flip ($)) a2 $ \a2' ->
insert''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 182 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (T.Text -> IO (Either NoChange ()))) => Op (Insert ()) InputBase orig impl where
runOp _ _ input t = withRef input $ \inputPtr -> copyTextToCString t >>= \t' -> insert' inputPtr t' >>= return . successOrNoChange
insertWithLength' :: (Ptr ()) -> (CString) -> (Int) -> IO ((Int))
insertWithLength' a1 a2 a3 =
let {a1' = id a1} in
(flip ($)) a2 $ \a2' ->
let {a3' = fromIntegral a3} in
insertWithLength''_ a1' a2' a3' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 185 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (T.Text -> Int -> IO (Either NoChange ()))) => Op (InsertWithLength ()) InputBase orig impl where
runOp _ _ input t l = withRef input $ \inputPtr -> copyTextToCString t >>= \t' -> insertWithLength' inputPtr t' l >>= return . successOrNoChange
copy' :: (Ptr ()) -> (Int) -> IO ((Int))
copy' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
copy''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 188 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Clipboard -> IO (Either NoChange ()))) => Op (Copy ()) InputBase orig impl where
runOp _ _ input clipboard = do
status' <- case clipboard of
InternalClipboard -> withRef input $ \inputPtr -> copy' inputPtr 1
SharedClipboard -> withRef input $ \inputPtr -> copy' inputPtr 0
return $ successOrNoChange status'
undo' :: (Ptr ()) -> IO ((Int))
undo' a1 =
let {a1' = id a1} in
undo''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 195 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Either NoChange ()))) => Op (Undo ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> undo' inputPtr >>= return . successOrNoChange
copyCuts' :: (Ptr ()) -> IO ((Int))
copyCuts' a1 =
let {a1' = id a1} in
copyCuts''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 198 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Either NoChange ()))) => Op (CopyCuts ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> copyCuts' inputPtr >>= return . successOrNoChange
shortcut' :: (Ptr ()) -> IO ((CInt))
shortcut' a1 =
let {a1' = id a1} in
shortcut''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 201 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Maybe ShortcutKeySequence))) => Op (GetShortcut ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> shortcut' inputPtr >>= return . cIntToKeySequence
setShortcut' :: (Ptr ()) -> (CInt) -> IO ()
setShortcut' a1 a2 =
let {a1' = id a1} in
let {a2' = id a2} in
setShortcut''_ a1' a2' >>
return ()
{-# LINE 204 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (ShortcutKeySequence -> IO ())) => Op (SetShortcut ()) InputBase orig impl where
runOp _ _ input (ShortcutKeySequence modifiers char) =
withRef input $ \inputPtr -> setShortcut' inputPtr (keySequenceToCInt modifiers char)
textfont' :: (Ptr ()) -> IO ((Font))
textfont' a1 =
let {a1' = id a1} in
textfont''_ a1' >>= \res ->
let {res' = cToFont res} in
return (res')
{-# LINE 208 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Font))) => Op (GetTextfont ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> textfont' inputPtr
setTextfont' :: (Ptr ()) -> (Font) -> IO ()
setTextfont' a1 a2 =
let {a1' = id a1s :: Font
} in
let {a2' = cFromFont a2} in
setTextfont''_ a1' a2' >>
return ()
{-# LINE 211 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Font -> IO ())) => Op (SetTextfont ()) InputBase orig impl where
runOp _ _ input s = withRef input $ \inputPtr -> setTextfont' inputPtr s
textsize' :: (Ptr ()) -> IO ((CInt))
textsize' a1 =
let {a1' = id a1} in
textsize''_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 214 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (FontSize))) => Op (GetTextsize ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> textsize' inputPtr >>= return . FontSize
setTextsize' :: (Ptr ()) -> (CInt) -> IO ()
setTextsize' a1 a2 =
let {a1' = id a1} in
let {a2' = id a2} in
setTextsize''_ a1' a2' >>
return ()
{-# LINE 217 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (FontSize -> IO ())) => Op (SetTextsize ()) InputBase orig impl where
runOp _ _ input (FontSize s) = withRef input $ \inputPtr -> setTextsize' inputPtr s
textcolor' :: (Ptr ()) -> IO ((Color))
textcolor' a1 =
let {a1' = id a1} in
textcolor''_ a1' >>= \res ->
let {res' = cToColor res} in
return (res')
{-# LINE 220 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Color))) => Op (GetTextcolor ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> textcolor' inputPtr
setTextcolor' :: (Ptr ()) -> (Color) -> IO ()
setTextcolor' a1 a2 =
let {a1' = id a1n :: Color
} in
let {a2' = cFromColor a2} in
setTextcolor''_ a1' a2' >>
return ()
{-# LINE 223 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Color -> IO ())) => Op (SetTextcolor ()) InputBase orig impl where
runOp _ _ input n = withRef input $ \inputPtr -> setTextcolor' inputPtr n
cursorColor' :: (Ptr ()) -> IO ((Color))
cursorColor' a1 =
let {a1' = id a1} in
cursorColor''_ a1' >>= \res ->
let {res' = cToColor res} in
return (res')
{-# LINE 226 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Color))) => Op (GetCursorColor ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> cursorColor' inputPtr
setCursorColor' :: (Ptr ()) -> (Color) -> IO ()
setCursorColor' a1 a2 =
let {a1' = id a1n :: Color
} in
let {a2' = cFromColor a2} in
setCursorColor''_ a1' a2' >>
return ()
{-# LINE 229 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Color -> IO ())) => Op (SetCursorColor ()) InputBase orig impl where
runOp _ _ input n = withRef input $ \inputPtr -> setCursorColor' inputPtr n
inputType' :: (Ptr ()) -> IO ((Int))
inputType' a1 =
let {a1' = id a1} in
inputType''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 232 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (FlInputType))) => Op (GetInputType ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> inputType' inputPtr >>= return . toEnum . fromIntegral
setInputType' :: (Ptr ()) -> (Int) -> IO ()
setInputType' a1 a2 =
let {a1' = id a1t :: FlInputType
} in
let {a2' = fromIntegral a2} in
setInputType''_ a1' a2' >>
return ()
{-# LINE 235 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (FlInputType -> IO ())) => Op (SetInputType ()) InputBase orig impl where
runOp _ _ input t = withRef input $ \inputPtr -> setInputType' inputPtr (fromIntegral (fromEnum t))
readonly' :: (Ptr ()) -> IO ((Bool))
readonly' a1 =
let {a1' = id a1} in
readonly''_ a1' >>= \res ->
let {res' = cToBool res} in
return (res')
{-# LINE 238 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Bool))) => Op (GetReadonly ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> readonly' inputPtr
setReadonly' :: (Ptr ()) -> (Bool) -> IO ()
setReadonly' a1 a2 =
let {a1' = id a1b :: Bool
} in
let {a2' = cFromBool a2} in
setReadonly''_ a1' a2' >>
return ()
{-# LINE 241 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Bool -> IO ())) => Op (SetReadonly ()) InputBase orig impl where
runOp _ _ input b = withRef input $ \inputPtr -> setReadonly' inputPtr b
wrap' :: (Ptr ()) -> IO ((Int))
wrap' a1 =
let {a1' = id a1} in
wrap''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 244 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Bool))) => Op (GetWrap ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> wrap' inputPtr >>= return . cToBool
setWrap' :: (Ptr ()) -> (Int) -> IO ()
setWrap' a1 a2 =
let {a1' = id a1b :: Bool
} in
let {a2' = fromIntegral a2} in
setWrap''_ a1' a2' >>
return ()
{-# LINE 247 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Bool -> IO ())) => Op (SetWrap ()) InputBase orig impl where
runOp _ _ input b = withRef input $ \inputPtr -> setWrap' inputPtr (cFromBool b)
setTabNav' :: (Ptr ()) -> (Int) -> IO ()
setTabNav' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
setTabNav''_ a1' a2' >>
return ()
{-# LINE 250 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Bool -> IO ())) => Op (SetTabNav ()) InputBase orig impl where
runOp _ _ input val = withRef input $ \inputPtr -> setTabNav' inputPtr (cFromBool val)
tabNav' :: (Ptr ()) -> IO ((Int))
tabNav' a1 =
let {a1' = id a1} in
tabNav''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 253 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO (Bool))) => Op (GetTabNav ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> tabNav' inputPtr >>= return . cToBool
drawSuper' :: (Ptr ()) -> IO ((()))
drawSuper' a1 =
let {a1' = id a1} in
drawSuper''_ a1' >>= \res ->
let {res' = supressWarningAboutRes res} in
return (res')
{-# LINE 257 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
drawInputBase :: Ref InputBase -> IO ()
drawInputBase input = withRef input $ \inputPtr -> drawSuper' inputPtr
handleSuper' :: (Ptr ()) -> (Int) -> IO ((Int))
handleSuper' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
handleSuper''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 260 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
handleInputBase :: Ref InputBase -> Event -> IO (Either UnknownEvent ())
handleInputBase input event =
withRef
input
(\p -> do
t <- getInputType input
case t of
FlSecretInput -> secretInputHandle' p (fromIntegral . fromEnum $ event)
_ -> inputHandle' p (fromIntegral . fromEnum $ event)
)
>>= return . successOrUnknownEvent
resizeSuper' :: (Ptr ()) -> (Int) -> (Int) -> (Int) -> (Int) -> IO ((()))
resizeSuper' :: Ptr () -> Int -> Int -> Int -> Int -> IO ()
resizeSuper' a1 :: Ptr ()
a1 a2 :: Int
a2 a3 :: Int
a3 a4 :: Int
a4 a5 :: Int
a5 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
let {a2' :: CInt
a2' = Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
a2} in
let {a3' :: CInt
a3' = Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
a3} in
let {a4' :: CInt
a4' = Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
a4} in
let {a5' :: CInt
a5' = Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
a5} in
Ptr () -> CInt -> CInt -> CInt -> CInt -> IO ()
resizeSuper''_ Ptr ()
a1' CInt
a2' CInt
a3' CInt
a4' CInt
a5' IO () -> (() -> IO ()) -> IO ()
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \res :: ()
res ->
let {res' :: ()
res' = () -> ()
forall a. a -> ()
supressWarningAboutRes ()
res} in
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return (()
res')
{-# LINE 272 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
resizeInputBase :: Ref InputBase -> Rectangle -> IO ()
resizeInputBase input rectangle =
let (x_pos, y_pos, width, height) = fromRectangle rectangle
in withRef input $ \inputPtr -> resizeSuper' inputPtr x_pos y_pos width height
hideSuper' :: (Ptr ()) -> IO ((()))
hideSuper' a1 =
let {a1' = id a1} in
hideSuper''_ a1' >>= \res ->
let {res' = supressWarningAboutRes res} in
return (res')
{-# LINE 277 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
hideInputBase :: Ref InputBase -> IO ()
hideInputBase input = withRef input $ \inputPtr -> hideSuper' inputPtr
showSuper' :: (Ptr ()) -> IO ((()))
showSuper' a1 =
let {a1' = id a1} in
showSuper''_ a1' >>= \res ->
let {res' = supressWarningAboutRes res} in
return (res')
{-# LINE 280 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
showWidgetInputBase :: Ref InputBase -> IO ()
showWidgetInputBase input = withRef input $ \inputPtr -> showSuper' inputPtr
inputHandle' :: (Ptr ()) -> (CInt) -> IO ((Int))
inputHandle' a1 a2 =
let {a1' = id a1} in
let {a2' = id a2} in
inputHandle''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 285 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
secretInputHandle' :: (Ptr ()) -> (CInt) -> IO ((Int))
secretInputHandle' a1 a2 =
let {a1' = id a1} in
let {a2' = id a2} in
secretInputHandle''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 286 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Event -> IO (Either UnknownEvent ()))) => Op (Handle ()) InputBase orig impl where
runOp _ _ input event =
withRef
input
(\p -> do
t <- getInputType input
case t of
FlSecretInput -> secretInputHandle' p (fromIntegral . fromEnum $ event)
_ -> inputHandle' p (fromIntegral . fromEnum $ event)
)
>>= return . successOrUnknownEvent
draw'' :: (Ptr ()) -> IO ()
draw'' :: Ptr () -> IO ()
draw'' a1 :: Ptr ()
a1 =
let {a1' = id a1} in
Ptr () -> IO ()
draw'''_ Ptr ()
a1' IO () -> IO () -> IO ()
forall (m :: * -> *) a b. Monad m => m a -> m b -> m b
>>
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
{-# LINE 298 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO ())) => Op (Draw ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> draw'' inputPtr
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 301 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Rectangle -> IO ())) => Op (Resize ()) InputBase orig impl where
runOp _ _ input rectangle = withRef input $ \inputPtr -> do
let (x_pos,y_pos,w_pos,h_pos) = fromRectangle rectangle
resize' inputPtr x_pos y_pos w_pos h_pos
hide' :: (Ptr ()) -> IO ()
hide' a1 =
let {a1' = id a1} in
hide''_ a1' >>
return ()
{-# LINE 306 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO ())) => Op (Hide ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> hide' inputPtr
show' :: (Ptr ()) -> IO ()
show' a1 =
let {a1' = id a1} in
show''_ a1' >>
return ()
{-# LINE 309 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ ( IO ())) => Op (ShowWidget ()) InputBase orig impl where
runOp _ _ input = withRef input $ \inputPtr -> show' inputPtr
drawtext' :: (Ptr ()) -> (Int) -> (Int) -> (Int) -> (Int) -> IO ((()))
drawtext' 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
drawtext''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = supressWarningAboutRes res} in
return (res')
{-# LINE 314 "src/Graphics/UI/FLTK/LowLevel/Base/Input.chs" #-}
instance (impl ~ (Rectangle -> IO ())) => Op (DrawText ()) InputBase orig impl where
runOp _ _ input rectangle = withRef input (\inputPtr -> do
let (x_pos,y_pos,w_pos,h_pos) = fromRectangle rectangle
drawtext' inputPtr x_pos y_pos w_pos h_pos)
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_OverriddenInput_New_WithLabel"
overriddenWidgetNewWithLabel''_ :: (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/Base/Input.chs.h Fl_OverriddenInput_New"
overriddenWidgetNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Multiline_Input_New"
multilineInputNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Multiline_Input_New_WithLabel"
multilineInputNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ()))))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Float_Input_New"
floatInputNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Float_Input_New_WithLabel"
floatInputNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ()))))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Int_Input_New"
intInputNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Int_Input_New_WithLabel"
intInputNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ()))))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Secret_Input_New"
secretInputNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Secret_Input_New_WithLabel"
secretInputNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> ((C2HSImp.FunPtr ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (IO ())))) -> (IO (C2HSImp.Ptr ()))))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_Destroy"
inputDestroy''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_value"
setValue''_ :: ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_static_value"
staticValue''_ :: ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_value"
value''_ :: ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr C2HSImp.CChar)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_index"
index''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CUInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_size"
setSize''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_maximum_size"
maximumSize''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_size"
size''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_maximum_size"
setMaximumSize''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_position"
position''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_mark"
mark''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_position_with_cursor_mark"
setPositionWithCursorMark''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO C2HSImp.CInt))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_position_n_n"
setPositionNN''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_mark"
setMark''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_replace"
replace''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO C2HSImp.CInt)))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_cut"
cut''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_cut_bytes"
cutBytes''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_cut_range"
cutRange''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO C2HSImp.CInt))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_insert"
insert''_ :: ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_insert_with_length"
insertWithLength''_ :: ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr C2HSImp.CChar) -> (C2HSImp.CInt -> (IO C2HSImp.CInt))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_copy"
copy''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_undo"
undo''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_copy_cuts"
copyCuts''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_shortcut"
shortcut''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_shortcut"
setShortcut''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_textfont"
textfont''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_textfont"
setTextfont''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_textsize"
textsize''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_textsize"
setTextsize''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_textcolor"
textcolor''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CUInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_textcolor"
setTextcolor''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CUInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_cursor_color"
cursorColor''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CUInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_cursor_color"
setCursorColor''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CUInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_input_type"
inputType''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_input_type"
setInputType''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_readonly"
readonly''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_readonly"
setReadonly''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_wrap"
wrap''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_wrap"
setWrap''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_set_tab_nav"
setTabNav''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_tab_nav"
tabNav''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_draw_super"
drawSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_handle_super"
handleSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_resize_super"
resizeSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_hide_super"
hideSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_show_super"
showSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_handle"
inputHandle''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Secret_Input_handle"
secretInputHandle''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_draw"
draw'''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_resize"
resize''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_hide"
hide''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_show"
show''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Input.chs.h Fl_Input_drawtext"
drawtext''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))