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


{-# LINE 1 "src/Graphics/UI/FLTK/LowLevel/FillDial.chs" #-}
module Graphics.UI.FLTK.LowLevel.FillDial
    (
     -- * Constructor
     fillDialNew
     -- * Hierarchy
     --
     -- $hierarchy
    )
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.Utils
import Graphics.UI.FLTK.LowLevel.Hierarchy
import qualified Data.Text as T
import Graphics.UI.FLTK.LowLevel.Base.Widget
fillDialNew' :: (Int) -> (Int) -> (Int) -> (Int) -> (CString) -> IO ((Ptr ()))
fillDialNew' a1 a2 a3 a4 a5 =
  let {a1' = fromIntegral a1} in 
  let {a2' = fromIntegral a2} in 
  let {a3' = fromIntegral Int
a3} in 
  let {a4' :: CInt
a4' = Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
a4} in 
  (((CString -> IO (Ptr ())) -> CString -> IO (Ptr ()))
-> CString -> (CString -> IO (Ptr ())) -> IO (Ptr ())
forall a b c. (a -> b -> c) -> b -> a -> c
flip (CString -> IO (Ptr ())) -> CString -> IO (Ptr ())
forall a b. (a -> b) -> a -> b
($)) CString
a5 ((CString -> IO (Ptr ())) -> IO (Ptr ()))
-> (CString -> IO (Ptr ())) -> IO (Ptr ())
forall a b. (a -> b) -> a -> b
$ \a5' :: CString
a5' -> 
  CInt -> CInt -> CInt -> CInt -> CString -> IO (Ptr ())
fillDialNew''_ CInt
a1' CInt
a2' CInt
a3' CInt
a4' CString
a5' 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 ())
forall (m :: * -> *) a. Monad m => a -> m a
return (Ptr ()
res')

{-# LINE 19 "src/Graphics/UI/FLTK/LowLevel/FillDial.chs" #-}

fillDialNew :: Rectangle -> T.Text -> IO (Ref FillDial)
fillDialNew rectangle l'=
    let (x_pos, y_pos, width, height) = fromRectangle rectangle
    in do
    ref <- copyTextToCString l' >>= \l'' -> fillDialNew' x_pos y_pos width height l'' >>= toRef
    setFlag ref WidgetFlagCopiedLabel
    setFlag ref WidgetFlagCopiedTooltip
    return ref


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

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