{-# LINE 1 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
{-# LANGUAGE CPP, ExistentialQuantification, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables, UndecidableInstances #-}
module Graphics.UI.FLTK.LowLevel.Base.SimpleTerminal
(
simpleTerminalNew,
simpleTerminalCustom
, drawSimpleTerminalBase
, handleSimpleTerminalBase
, resizeSimpleTerminalBase
, hideSimpleTerminalBase
, showWidgetSimpleTerminalBase
)
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_Types
import Graphics.UI.FLTK.LowLevel.Fl_Enumerations
import Graphics.UI.FLTK.LowLevel.Utils
import Graphics.UI.FLTK.LowLevel.Base.Widget
import Graphics.UI.FLTK.LowLevel.Base.TextDisplay
import Graphics.UI.FLTK.LowLevel.Hierarchy
import Graphics.UI.FLTK.LowLevel.Dispatch
import qualified Data.Text as T
import qualified Foreign.ForeignPtr.Unsafe as Unsafe
simpleTerminalNew' :: (Int) -> (Int) -> (Int) -> (Int) -> IO ((Ptr ()))
simpleTerminalNew' a1 a2 a3 a4 =
let {a1' = fromIntegral a1} in
let {a2' = fromIntegral a2} in
let {a3' = fromIntegral a3} in
let {a4' = fromIntegral a4} in
simpleTerminalNew''_ a1' a2' a3' a4' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 34 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
simpleTerminalNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> IO ((Ptr ()))
simpleTerminalNewWithLabel' 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
(flip ($)) a5 $ \a5' ->
simpleTerminalNewWithLabel''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 35 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
simpleTerminalNew :: Rectangle -> Maybe T.Text -> IO (Ref SimpleTerminal)
simpleTerminalNew rectangle l' =
widgetMaker
rectangle
l'
Nothing
Nothing
overriddenWidgetNew'
overriddenWidgetNewWithLabel'
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 46 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.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 47 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
simpleTerminalCustom ::
Rectangle
-> Maybe T.Text
-> Maybe (Ref SimpleTerminal -> IO ())
-> IO (Ref SimpleTerminal)
simpleTerminalCustom rectangle l' draw' =
widgetMaker
rectangle
l'
draw'
Nothing
overriddenWidgetNew'
overriddenWidgetNewWithLabel'
setStayAtBottom' :: (Ptr ()) -> (Bool) -> IO ()
setStayAtBottom' :: Ptr () -> Bool -> IO ()
setStayAtBottom' a1 :: Ptr ()
a1 a2 :: Bool
a2 =
let {a1' = id a1} in
let {a2' :: CInt
a2' = Bool -> CInt
forall a. (Eq a, Num a) => Bool -> a
cFromBool Bool
a2} in
Ptr () -> CInt -> IO ()
setStayAtBottom''_ Ptr ()
a1' CInt
a2' 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 62 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (Bool -> IO ())) => Op (SetStayAtBottom ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal b = withRef simple_terminal $ \simple_terminalPtr -> setStayAtBottom' simple_terminalPtr b
getStayAtBottom' :: (Ptr ()) -> IO ((Bool))
getStayAtBottom' a1 =
let {a1' = id a1} in
getStayAtBottom''_ a1' >>= \res ->
let {res' = cToBool res} in
return (res')
{-# LINE 65 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (IO Bool)) => Op (GetStayAtBottom ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal = withRef simple_terminal $ \simple_terminalPtr -> getStayAtBottom' simple_terminalPtr
setAnsi' :: (Ptr ()) -> (Bool) -> IO ()
setAnsi' a1 a2 =
let {a1' = id a1} in
let {a2' = cFromBool a2} in
setAnsi''_ a1' a2' >>
return ()
{-# LINE 68 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (Bool -> IO ())) => Op (SetAnsi ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal b = withRef simple_terminal $ \simple_terminalPtr -> setAnsi' simple_terminalPtr b
getAnsi' :: (Ptr ()) -> IO ((Bool))
getAnsi' a1 =
let {a1' = id a1} in
getAnsi''_ a1' >>= \res ->
let {res' = cToBool res} in
return (res')
{-# LINE 71 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (IO Bool)) => Op (GetAnsi ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal = withRef simple_terminal $ \simple_terminalPtr -> getAnsi' simple_terminalPtr
setHistoryLines' :: (Ptr ()) -> (Int) -> IO ()
setHistoryLines' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
setHistoryLines''_ a1' a2' >>
return ()
{-# LINE 74 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (Lines -> IO ())) => Op (SetHistoryLines ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal (Lines b) = withRef simple_terminal $ \simple_terminalPtr -> setHistoryLines' simple_terminalPtr b
getHistoryLines' :: (Ptr ()) -> IO ((Int))
getHistoryLines' a1 =
let {a1' = id a1} in
getHistoryLines''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 77 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (IO Lines)) => Op (GetHistoryLines ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal = withRef simple_terminal $ \simple_terminalPtr -> getHistoryLines' simple_terminalPtr >>= return . Lines
setNormalStyleIndex' :: (Ptr ()) -> (Int) -> IO ()
setNormalStyleIndex' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
setNormalStyleIndex''_ a1' a2' >>
return ()
{-# LINE 80 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (AtIndex -> IO ())) => Op (SetNormalStyleIndex ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal (AtIndex b) = withRef simple_terminal $ \simple_terminalPtr -> setNormalStyleIndex' simple_terminalPtr b
getNormalStyleIndex' :: (Ptr ()) -> IO ((Int))
getNormalStyleIndex' a1 =
let {a1' = id a1} in
getNormalStyleIndex''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 83 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (IO AtIndex)) => Op (GetNormalStyleIndex ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal = withRef simple_terminal $ \simple_terminalPtr -> getNormalStyleIndex' simple_terminalPtr >>= return . AtIndex
setCurrentStyleIndex' :: (Ptr ()) -> (Int) -> IO ()
setCurrentStyleIndex' a1 a2 =
let {a1' = id a1} in
let {a2' = fromIntegral a2} in
setCurrentStyleIndex''_ a1' a2' >>
return ()
{-# LINE 86 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (AtIndex -> IO ())) => Op (SetCurrentStyleIndex ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal (AtIndex b) = withRef simple_terminal $ \simple_terminalPtr -> setCurrentStyleIndex' simple_terminalPtr b
getCurrentStyleIndex' :: (Ptr ()) -> IO ((Int))
getCurrentStyleIndex' a1 =
let {a1' = id a1} in
getCurrentStyleIndex''_ a1' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 89 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (IO AtIndex)) => Op (GetCurrentStyleIndex ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal = withRef simple_terminal $ \simple_terminalPtr -> getCurrentStyleIndex' simple_terminalPtr >>= return . AtIndex
setText' :: (Ptr ()) -> (CString) -> IO ()
setText' :: Ptr () -> CString -> IO ()
setText' a1 a2 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
(((CString -> IO ()) -> CString -> IO ())
-> CString -> (CString -> IO ()) -> IO ()
forall a b c. (a -> b -> c) -> b -> a -> c
flip (CString -> IO ()) -> CString -> IO ()
forall a b. (a -> b) -> a -> b
($)) CString
a2 ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \a2' :: CString
a2' ->
Ptr () -> CString -> IO ()
setText''_ Ptr ()
a1' CString
a2' 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 92 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (T.Text -> IO ())) => Op (SetText ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal val = withRef simple_terminal $ \simple_terminalPtr -> copyTextToCString val >>= setText' simple_terminalPtr
getText' :: (Ptr ()) -> IO ((CString))
getText' :: Ptr () -> IO CString
getText' a1 :: Ptr ()
a1 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
Ptr () -> IO CString
getText''_ Ptr ()
a1' IO CString -> (CString -> IO CString) -> IO CString
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \res :: CString
res ->
CString -> IO CString
forall (m :: * -> *) a. Monad m => a -> m a
return CString
res IO CString -> (CString -> IO CString) -> IO CString
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \res' :: CString
res' ->
CString -> IO CString
forall (m :: * -> *) a. Monad m => a -> m a
return (CString
res')
{-# LINE 95 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ ( IO T.Text)) => Op (GetText ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal = withRef simple_terminal $ \simple_terminalPtr -> getText' simple_terminalPtr >>= cStringToText
clear'' :: (Ptr ()) -> IO ()
clear'' :: Ptr () -> IO ()
clear'' a1 :: Ptr ()
a1 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
Ptr () -> IO ()
clear'''_ 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 98 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ ( IO ())) => Op (Clear ()) SimpleTerminalBase orig impl where
runOp _ _ simpleTerminal = withRef simpleTerminal $ \simpleTerminalPtr -> clear'' simpleTerminalPtr
removeLines' :: (Ptr ()) -> (Int) -> (Int) -> IO ()
removeLines' :: Ptr () -> Int -> Int -> IO ()
removeLines' a1 :: Ptr ()
a1 a2 :: Int
a2 a3 :: Int
a3 =
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
Ptr () -> CInt -> CInt -> IO ()
removeLines''_ Ptr ()
a1' CInt
a2' CInt
a3' 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 101 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (LineNumber -> LineNumber -> IO ())) => Op (RemoveLines ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal (LineNumber start) (LineNumber count) = withRef simple_terminal $ \simple_terminalPtr -> removeLines' simple_terminalPtr start count
setStyleTable' :: (Ptr ()) -> (Ptr ()) -> (Int) -> (Int) -> IO ()
setStyleTable' a1 a2 a3 a4 =
let {a1' = id a1} in
let {a2' = id a2} in
let {a3' = fromIntegral a3} in
let {a4' = fromIntegral a4} in
setStyleTable''_ a1' a2' a3' a4' >>
return ()
{-# LINE 104 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ ([StyleTableEntry] -> Maybe Int -> IO ())) => Op (SetStyleTable ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal styleTable normal_style_index =
withRef simple_terminal $ \simple_terminalPtr -> do
stesPtr <- mkStyleTableEntriesPtr simple_terminal styleTable
setStyleTable'
simple_terminalPtr
(castPtr (Unsafe.unsafeForeignPtrToPtr stesPtr))
(length styleTable)
(maybe 0 id normal_style_index)
getStyleTableSize' :: (Ptr ()) -> IO ((Int))
getStyleTableSize' :: Ptr () -> IO Int
getStyleTableSize' a1 =
let {a1' = id a1} in
Ptr () -> IO CInt
getStyleTableSize''_ Ptr ()
a1' IO CInt -> (CInt -> IO Int) -> IO Int
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \res :: CInt
res ->
let {res' :: Int
res' = CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CInt
res} in
Int -> IO Int
forall (m :: * -> *) a. Monad m => a -> m a
return (Int
res')
{-# LINE 114 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (IO Int)) => Op (GetStyleTableSize ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal = withRef simple_terminal $ \simple_terminalPtr -> getStyleTableSize' simple_terminalPtr
getStyleTable' :: (Ptr ()) -> IO ((Ptr ()))
getStyleTable' a1 =
let {a1' = id a1} in
getStyleTable''_ a1' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 117 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (IO (Maybe [StyleTableEntry]))) => Op (GetStyleTable ()) SimpleTerminalBase orig impl where
runOp _ _ simple_terminal =
withRef simple_terminal $ \simple_terminalPtr -> do
size <- getStyleTableSize simple_terminal
ptr <- getStyleTable' simple_terminalPtr
toStyleTableEntries size ptr
drawSuper' :: (Ptr ()) -> IO ((()))
drawSuper' :: Ptr () -> IO ()
drawSuper' a1 :: Ptr ()
a1 =
let {a1' :: Ptr ()
a1' = id a1} in
Ptr () -> IO ()
drawSuper''_ Ptr ()
a1' 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 125 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
drawSimpleTerminalBase :: Ref SimpleTerminalBase -> IO ()
drawSimpleTerminalBase simpleTerminal = withRef simpleTerminal $ \simpleTerminalPtr -> drawSuper' simpleTerminalPtr
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 128 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
handleSimpleTerminalBase :: Ref SimpleTerminalBase -> Event -> IO (Either UnknownEvent ())
handleSimpleTerminalBase simpleTerminal event = withRef simpleTerminal $ \simpleTerminalPtr -> handleSuper' simpleTerminalPtr (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 131 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
resizeSimpleTerminalBase :: Ref SimpleTerminalBase -> Rectangle -> IO ()
resizeSimpleTerminalBase simpleTerminal rectangle =
let (x_pos, y_pos, width, height) = fromRectangle rectangle
in withRef simpleTerminal $ \simpleTerminalPtr -> resizeSuper' simpleTerminalPtr 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 136 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
hideSimpleTerminalBase :: Ref SimpleTerminalBase -> IO ()
hideSimpleTerminalBase simpleTerminal = withRef simpleTerminal $ \simpleTerminalPtr -> hideSuper' simpleTerminalPtr
showSuper' :: (Ptr ()) -> IO ((()))
showSuper' a1 =
let {a1' = id a1} in
showSuper''_ a1' >>= \res ->
let {res' = supressWarningAboutRes res} in
return (res')
{-# LINE 139 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
showWidgetSimpleTerminalBase :: Ref SimpleTerminalBase -> IO ()
showWidgetSimpleTerminalBase simpleTerminal = withRef simpleTerminal $ \simpleTerminalPtr -> showSuper' simpleTerminalPtr
draw'' :: (Ptr ()) -> IO ()
draw'' a1 =
let {a1' = id a1} in
draw'''_ a1' >>
return ()
{-# LINE 143 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ ( IO ())) => Op (Draw ()) SimpleTerminalBase orig impl where
runOp _ _ simpleTerminal = withRef simpleTerminal $ \simpleTerminalPtr -> draw'' simpleTerminalPtr
simpleTerminalHandle' :: (Ptr ()) -> (CInt) -> IO ((Int))
simpleTerminalHandle' a1 a2 =
let {a1' = id a1} in
let {a2' = id a2} in
simpleTerminalHandle''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 146 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (Event -> IO (Either UnknownEvent ()))) => Op (Handle ()) SimpleTerminalBase orig impl where
runOp _ _ simpleTerminal event = withRef simpleTerminal (\p -> simpleTerminalHandle' p (fromIntegral . fromEnum $ event)) >>= return . successOrUnknownEvent
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 149 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ (Rectangle -> IO ())) => Op (Resize ()) SimpleTerminalBase orig impl where
runOp _ _ simpleTerminal rectangle = withRef simpleTerminal $ \simpleTerminalPtr -> do
let (x_pos,y_pos,w_pos,h_pos) = fromRectangle rectangle
resize' simpleTerminalPtr x_pos y_pos w_pos h_pos
hide' :: (Ptr ()) -> IO ()
hide' a1 =
let {a1' = id a1} in
hide''_ a1' >>
return ()
{-# LINE 154 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ ( IO ())) => Op (Hide ()) SimpleTerminalBase orig impl where
runOp _ _ simpleTerminal = withRef simpleTerminal $ \simpleTerminalPtr -> hide' simpleTerminalPtr
show' :: (Ptr ()) -> IO ()
show' a1 =
let {a1' = id a1} in
show''_ a1' >>
return ()
{-# LINE 157 "src/Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs" #-}
instance (impl ~ ( IO ())) => Op (ShowWidget ()) SimpleTerminalBase orig impl where
runOp _ _ simpleTerminal = withRef simpleTerminal $ \simpleTerminalPtr -> show' simpleTerminalPtr
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_New"
simpleTerminalNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO (C2HSImp.Ptr ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_New_WithLabel"
simpleTerminalNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_OverriddenSimple_Terminal_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/SimpleTerminal.chs.h Fl_OverriddenSimple_Terminal_New"
overriddenWidgetNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_set_stay_at_bottom"
setStayAtBottom''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_stay_at_bottom"
getStayAtBottom''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_set_ansi"
setAnsi''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_ansi"
getAnsi''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_set_history_lines"
setHistoryLines''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_history_lines"
getHistoryLines''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_set_normal_style_index"
setNormalStyleIndex''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_normal_style_index"
getNormalStyleIndex''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_set_current_style_index"
setCurrentStyleIndex''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_current_style_index"
getCurrentStyleIndex''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_set_text"
setText''_ :: ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_text"
getText''_ :: ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr C2HSImp.CChar)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_clear"
clear'''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_remove_lines"
removeLines''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_set_style_table"
setStyleTable''_ :: ((C2HSImp.Ptr ()) -> ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ())))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_style_table_size"
getStyleTableSize''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CInt))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_get_style_table"
getStyleTable''_ :: ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_draw_super"
drawSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_handle_super"
handleSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_resize_super"
resizeSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_hide_super"
hideSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_show_super"
showSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_draw"
draw'''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_handle"
simpleTerminalHandle''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_resize"
resize''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_hide"
hide''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/SimpleTerminal.chs.h Fl_Simple_Terminal_show"
show''_ :: ((C2HSImp.Ptr ()) -> (IO ()))