{-# LINE 1 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
{-# LANGUAGE CPP, ExistentialQuantification, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Graphics.UI.FLTK.LowLevel.Base.Positioner
(
positionerNew,
positionerCustom
, drawPositionerBase
, handlePositionerBase
, resizePositionerBase
, hidePositionerBase
, showWidgetPositionerBase
)
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.Base.Widget
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 a3 :: Int
as T
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 34 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.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 35 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
positionerCustom ::
Rectangle
-> Maybe T.Text
-> Maybe (Ref Positioner -> IO ())
-> Maybe (CustomWidgetFuncs Positioner)
-> IO (Ref Positioner)
positionerCustom rectangle l' draw' funcs' =
widgetMaker
rectangle
l'
draw'
funcs'
overriddenWidgetNew'
overriddenWidgetNewWithLabel'
positionerNew' :: (Int) -> (Int) -> (Int) -> (Int) -> IO ((Ptr ()))
positionerNew' :: Int -> Int -> Int -> Int -> IO (Ptr ())
positionerNew' a1 :: Int
a1 a2 :: Int
a2 a3 :: Int
a3 a4 :: Int
a4 =
let {a1' :: CInt
a1' = Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
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
CInt -> CInt -> CInt -> CInt -> IO (Ptr ())
positionerNew''_ CInt
a1' CInt
a2' CInt
a3' CInt
a4' IO (Ptr ()) -> (Ptr () -> IO (Ptr ())) -> IO (Ptr ())
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \res :: Ptr ()
res ->
let {res' :: Ptr ()
res' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
res} in
Ptr () -> IO (Ptr ())
return (res')
{-# LINE 52 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
positionerNewWithLabel' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> IO ((Ptr ()))
positionerNewWithLabel' 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' ->
positionerNewWithLabel''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = id res} in
return (res')
{-# LINE 53 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
positionerNew :: Rectangle -> Maybe T.Text -> IO (Ref Positioner)
positionerNew rectangle l'=
widgetMaker
rectangle
l'
Nothing
Nothing
overriddenWidgetNew'
overriddenWidgetNewWithLabel'
positionerDestroy' :: (Ptr ()) -> IO ((()))
positionerDestroy' :: Ptr () -> IO ()
positionerDestroy' a1 =
let {a1' = id a1} in
positionerDestroy''_ a1' >>= \res ->
let {res' = () -> ()
forall a. a -> ()
supressWarningAboutRes ()
res} in
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return (()
res')
{-# LINE 64 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (IO ())) => Op (Destroy ()) PositionerBase orig impl where
runOp _ _ win = swapRef win $ \winPtr -> do
positionerDestroy' winPtr
return nullPtr
setXvalue' :: (Ptr ()) -> (Double) -> IO ()
setXvalue' a1 a2 =
let {a1' = id a1} in
let {a2' = realToFrac a2} in
setXvalue''_ a1' a2' >>
return ()
{-# LINE 70 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseX -> IO ())) => Op (SetXvalue ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseX xvalue) = withRef positioner $ \positionerPtr -> setXvalue' positionerPtr xvalue
xvalue' :: (Ptr ()) -> IO ((Double))
xvalue' a1 =
let {a1' = id a1} in
xvalue''_ a1' >>= \res ->
let {res' = realToFrac res} in
return (res')
{-# LINE 73 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO (PreciseX))) => Op (GetXvalue ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> xvalue' positionerPtr >>= return . PreciseX
setYvalue' :: (Ptr ()) -> (Double) -> IO ()
setYvalue' a1 a2 =
let {a1' = id a1} in
let {a2' = realToFrac a2} in
setYvalue''_ a1' a2' >>
return ()
{-# LINE 76 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseY -> IO ())) => Op (SetYvalue ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseY yvalue) = withRef positioner $ \positionerPtr -> setYvalue' positionerPtr yvalue
yvalue' :: (Ptr ()) -> IO ((Double))
yvalue' a1 =
let {a1' = id a1} in
yvalue''_ a1' >>= \res ->
let {res' = realToFrac res} in
return (res')
{-# LINE 79 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO (PreciseY))) => Op (GetYvalue ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> yvalue' positionerPtr >>= return . PreciseY
setXminimum' :: (Ptr ()) -> (Double) -> IO ()
setXminimum' a1 a2 =
let {a1' = id a1} in
let {a2' = realToFrac a2} in
setXminimum''_ a1' a2' >>
return ()
{-# LINE 82 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseX -> IO ())) => Op (SetXminimum ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseX xminimum) = withRef positioner $ \positionerPtr -> setXminimum' positionerPtr xminimum
xminimum' :: (Ptr ()) -> IO ((Double))
xminimum' a1 =
let {a1' = id a1} in
xminimum''_ a1' >>= \res ->
let {res' = realToFrac res} in
return (res')
{-# LINE 85 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO (PreciseX))) => Op (GetXminimum ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> xminimum' positionerPtr >>= return . PreciseX
setYminimum' :: (Ptr ()) -> (Double) -> IO ()
setYminimum' a1 a2 =
let {a1' = id a1} in
let {a2' = realToFrac a2} in
setYminimum''_ a1' a2' >>
return ()
{-# LINE 88 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseY -> IO ())) => Op (SetYminimum ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseY yminimum) = withRef positioner $ \positionerPtr -> setYminimum' positionerPtr yminimum
yminimum' :: (Ptr ()) -> IO ((Double))
yminimum' a1 =
let {a1' = id a1} in
yminimum''_ a1' >>= \res ->
let {res' = realToFrac res} in
return (res')
{-# LINE 91 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO (PreciseY))) => Op (GetYminimum ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> yminimum' positionerPtr >>= return . PreciseY
setXmaximum' :: (Ptr ()) -> (Double) -> IO ()
setXmaximum' a1 a2 =
let {a1' = id a1} in
let {a2' = realToFrac a2} in
setXmaximum''_ a1' a2' >>
return ()
{-# LINE 94 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseX -> IO ())) => Op (SetXmaximum ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseX xmaximum) = withRef positioner $ \positionerPtr -> setXmaximum' positionerPtr xmaximum
xmaximum' :: (Ptr ()) -> IO ((Double))
xmaximum' a1 =
let {a1' = id a1} in
xmaximum''_ a1' >>= \res ->
let {res' = realToFrac res} in
return (res')
{-# LINE 97 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO (PreciseX))) => Op (GetXmaximum ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> xmaximum' positionerPtr >>= return . PreciseX
setYmaximum' :: (Ptr ()) -> (Double) -> IO ()
setYmaximum' :: Ptr () -> Double -> IO ()
setYmaximum' a1 :: Ptr ()
a1 a2 :: Double
a2 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
let {a2' :: CDouble
a2' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
a2} in
Ptr () -> CDouble -> IO ()
setYmaximum''_ Ptr ()
a1' CDouble
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 100 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseY -> IO ())) => Op (SetYmaximum ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseY ymaximum) = withRef positioner $ \positionerPtr -> setYmaximum' positionerPtr ymaximum
ymaximum' :: (Ptr ()) -> IO ((Double))
ymaximum' :: Ptr () -> IO Double
ymaximum' a1 :: Ptr ()
a1 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
Ptr () -> IO CDouble
ymaximum''_ Ptr ()
a1' IO CDouble -> (CDouble -> IO Double) -> IO Double
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \res :: CDouble
res ->
let {res' :: Double
res' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
res} in
Double -> IO Double
forall (m :: * -> *) a. Monad m => a -> m a
return (Double
res')
{-# LINE 103 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO (PreciseY))) => Op (GetYmaximum ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> ymaximum' positionerPtr >>= return . PreciseY
xbounds' :: (Ptr ()) -> (Double) -> (Double) -> IO ()
xbounds' :: Ptr () -> Double -> Double -> IO ()
xbounds' a1 :: Ptr ()
a1 a2 :: Double
a2 a3 :: Double
a3 =
let {a1' :: Ptr ()
a1' = id Ptr ()
a1} in
let {a2' :: CDouble
a2' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
a2} in
let {a3' :: CDouble
a3' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
a3} in
Ptr () -> CDouble -> CDouble -> IO ()
xbounds''_ Ptr ()
a1' CDouble
a2' CDouble
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 106 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseX -> PreciseX -> IO ())) => Op (SetXbounds ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseX xstart) (PreciseX xend) = withRef positioner $ \positionerPtr -> xbounds' positionerPtr xstart xend
ybounds' :: (Ptr ()) -> (Double) -> (Double) -> IO ()
ybounds' :: Ptr () -> Double -> Double -> IO ()
ybounds' a1 :: Ptr ()
a1 a2 :: Double
a2 a3 :: Double
a3 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
let {a2' :: CDouble
a2' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
a2} in
let {a3' :: CDouble
a3' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
a3} in
Ptr () -> CDouble -> CDouble -> IO ()
ybounds''_ Ptr ()
a1' CDouble
a2' CDouble
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 109 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (PreciseY -> PreciseY -> IO ())) => Op (SetYbounds ()) PositionerBase orig impl where
runOp _ _ positioner (PreciseY ystart) (PreciseY yend) = withRef positioner $ \positionerPtr -> ybounds' positionerPtr ystart yend
xstep' :: (Ptr ()) -> (Double) -> IO ()
xstep' :: Ptr () -> Double -> IO ()
xstep' a1 :: Ptr ()
a1 a2 :: Double
a2 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
id a1} in
let {a2' :: CDouble
a2' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
a2} in
Ptr () -> CDouble -> IO ()
xstep''_ Ptr ()
a1' CDouble
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 112 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (Double -> IO ())) => Op (SetXstep ()) PositionerBase orig impl where
runOp _ _ positioner xstep = withRef positioner $ \positionerPtr -> xstep' positionerPtr xstep
ystep' :: (Ptr ()) -> (Double) -> IO ()
ystep' :: Ptr () -> Double -> IO ()
ystep' a1 :: Ptr ()
a1 a2 :: Double
a2 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
a1} in
let {a2' :: CDouble
a2' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
a2} in
Ptr () -> CDouble -> IO ()
ystep''_ Ptr ()
a1' CDouble
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 115 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (Double -> IO ())) => Op (SetYstep ()) PositionerBase orig impl where
runOp _ _ positioner ystep = withRef positioner $ \positionerPtr -> ystep' positionerPtr ystep
drawSuper' :: (Ptr ()) -> IO ((()))
drawSuper' :: Ptr () -> IO ()
drawSuper' a1 :: Ptr ()
a1 =
let {a1' :: Ptr ()
a1' = Ptr () -> Ptr ()
forall a. a -> a
id Ptr ()
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 119 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
drawPositionerBase :: Ref PositionerBase -> IO ()
drawPositionerBase positioner = withRef positioner $ \positionerPtr -> drawSuper' positionerPtr
handleSuper' :: (Ptr ()) -> (Int) -> IO ((Int))
handleSuper' :: Ptr () -> Int -> IO Int
handleSuper' a1 :: Ptr ()
a1 a2 :: Int
a2 =
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
Ptr () -> CInt -> IO CInt
handleSuper''_ Ptr ()
a1' CInt
a2' 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 122 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
handlePositionerBase :: Ref PositionerBase -> Event -> IO (Either UnknownEvent ())
handlePositionerBase positioner event = withRef positioner $ \positionerPtr -> handleSuper' positionerPtr (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''_ a1' a2' a3' a4' a5' >>= \res ->
let {res' = supressWarningAboutRes res} in
return (res')
{-# LINE 125 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
resizePositionerBase :: Ref PositionerBase -> Rectangle -> IO ()
resizePositionerBase positioner rectangle =
let (x_pos, y_pos, width, height) = fromRectangle rectangle
in withRef positioner $ \positionerPtr -> resizeSuper' positionerPtr 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 130 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
hidePositionerBase :: Ref PositionerBase -> IO ()
hidePositionerBase positioner = withRef positioner $ \positionerPtr -> hideSuper' positionerPtr
showSuper' :: (Ptr ()) -> IO ((()))
showSuper' a1 =
let {a1' = id a1} in
showSuper''_ a1' >>= \res ->
let {res' = supressWarningAboutRes res} in
return (res')
{-# LINE 133 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
showWidgetPositionerBase :: Ref PositionerBase -> IO ()
showWidgetPositionerBase positioner = withRef positioner $ \positionerPtr -> showSuper' positionerPtr
draw'' :: (Ptr ()) -> IO ()
draw'' a1 =
let {a1' = id a1} in
draw'''_ a1' >>
return ()
{-# LINE 137 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO ())) => Op (Draw ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> draw'' positionerPtr
positionerHandle' :: (Ptr ()) -> (CInt) -> IO ((Int))
positionerHandle' a1 a2 =
let {a1' = id a1} in
let {a2' = id a2} in
positionerHandle''_ a1' a2' >>= \res ->
let {res' = fromIntegral res} in
return (res')
{-# LINE 140 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (Event -> IO (Either UnknownEvent ()))) => Op (Handle ()) PositionerBase orig impl where
runOp _ _ positioner event = withRef positioner (\p -> positionerHandle' 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 143 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ (Rectangle -> IO ())) => Op (Resize ()) PositionerBase orig impl where
runOp _ _ positioner rectangle = withRef positioner $ \positionerPtr -> do
let (x_pos,y_pos,w_pos,h_pos) = fromRectangle rectangle
resize' positionerPtr x_pos y_pos w_pos h_pos
hide' :: (Ptr ()) -> IO ()
hide' a1 =
let {a1' = id a1} in
hide''_ a1' >>
return ()
{-# LINE 148 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO ())) => Op (Hide ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> hide' positionerPtr
show' :: (Ptr ()) -> IO ()
show' a1 =
let {a1' = id a1} in
show''_ a1' >>
return ()
{-# LINE 151 "src/Graphics/UI/FLTK/LowLevel/Base/Positioner.chs" #-}
instance (impl ~ ( IO ())) => Op (ShowWidget ()) PositionerBase orig impl where
runOp _ _ positioner = withRef positioner $ \positionerPtr -> show' positionerPtr
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_OverriddenPositioner_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/Positioner.chs.h Fl_OverriddenPositioner_New"
overriddenWidgetNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr ()) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_New"
positionerNew''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO (C2HSImp.Ptr ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_New_WithLabel"
positionerNewWithLabel''_ :: (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> ((C2HSImp.Ptr C2HSImp.CChar) -> (IO (C2HSImp.Ptr ())))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_Destroy"
positionerDestroy''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_set_xvalue"
setXvalue''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_xvalue"
xvalue''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_set_yvalue"
setYvalue''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_yvalue"
yvalue''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_set_xminimum"
setXminimum''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_xminimum"
xminimum''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_set_yminimum"
setYminimum''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_yminimum"
yminimum''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_set_xmaximum"
setXmaximum''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_xmaximum"
xmaximum''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_set_ymaximum"
setYmaximum''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_ymaximum"
ymaximum''_ :: ((C2HSImp.Ptr ()) -> (IO C2HSImp.CDouble))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_xbounds"
xbounds''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (C2HSImp.CDouble -> (IO ()))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_ybounds"
ybounds''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (C2HSImp.CDouble -> (IO ()))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_xstep"
xstep''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_ystep"
ystep''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CDouble -> (IO ())))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_draw_super"
drawSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_handle_super"
handleSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_resize_super"
resizeSuper''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_hide_super"
hideSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_show_super"
showSuper''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_draw"
draw'''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_handle"
positionerHandle''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (IO C2HSImp.CInt)))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_resize"
resize''_ :: ((C2HSImp.Ptr ()) -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (C2HSImp.CInt -> (IO ()))))))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_hide"
hide''_ :: ((C2HSImp.Ptr ()) -> (IO ()))
foreign import ccall safe "Graphics/UI/FLTK/LowLevel/Base/Positioner.chs.h Fl_Positioner_show"
show''_ :: ((C2HSImp.Ptr ()) -> (IO ()))