{-# LANGUAGE EmptyDataDecls, FlexibleContexts, FlexibleInstances,
  ForeignFunctionInterface, IncoherentInstances,
  MultiParamTypeClasses, OverlappingInstances, TemplateHaskell,
  TypeFamilies, TypeSynonymInstances #-}
module HROOT.Core.TColor.Implementation where
import Data.Monoid
import Data.Word
import Data.Int
import Foreign.C
import Foreign.Ptr
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import System.IO.Unsafe
import FFICXX.Runtime.Cast
import FFICXX.Runtime.CodeGen.Cxx
import FFICXX.Runtime.TH
import HROOT.Core.TColor.RawType
import HROOT.Core.TColor.FFI
import HROOT.Core.TColor.Interface
import HROOT.Core.TColor.Cast
import HROOT.Core.TColor.RawType
import HROOT.Core.TColor.Cast
import HROOT.Core.TColor.Interface
import HROOT.Core.TClass.RawType
import HROOT.Core.TClass.Cast
import HROOT.Core.TClass.Interface
import HROOT.Core.TArrayI.RawType
import HROOT.Core.TArrayI.Cast
import HROOT.Core.TArrayI.Interface
import HROOT.Core.TNamed.RawType
import HROOT.Core.TNamed.Cast
import HROOT.Core.TNamed.Interface
import HROOT.Core.TObject.RawType
import HROOT.Core.TObject.Cast
import HROOT.Core.TObject.Interface
import STD.Deletable.RawType
import STD.Deletable.Cast
import STD.Deletable.Interface

instance () => ITColor (TColor) where

instance () => ITNamed (TColor) where
        setName :: forall c0. Castable c0 CString => TColor -> c0 -> IO ()
setName = (Ptr RawTColor -> CString -> IO ()) -> TColor -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTColor -> CString -> IO ()
c_tcolor_setname
        setNameTitle :: forall c1 c0.
(Castable c1 CString, Castable c0 CString) =>
TColor -> c0 -> c1 -> IO ()
setNameTitle = (Ptr RawTColor -> CString -> CString -> IO ())
-> TColor -> c0 -> c1 -> IO ()
forall a ca x1 cx1 x2 cx2 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) =>
(ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y
xform2 Ptr RawTColor -> CString -> CString -> IO ()
c_tcolor_setnametitle
        setTitle :: forall c0. Castable c0 CString => TColor -> c0 -> IO ()
setTitle = (Ptr RawTColor -> CString -> IO ()) -> TColor -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTColor -> CString -> IO ()
c_tcolor_settitle

instance () => ITObject (TColor) where
        clear :: forall c0. Castable c0 CString => TColor -> c0 -> IO ()
clear = (Ptr RawTColor -> CString -> IO ()) -> TColor -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTColor -> CString -> IO ()
c_tcolor_clear
        draw :: forall c0. Castable c0 CString => TColor -> c0 -> IO ()
draw = (Ptr RawTColor -> CString -> IO ()) -> TColor -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTColor -> CString -> IO ()
c_tcolor_draw
        findObject :: forall c0. Castable c0 CString => TColor -> c0 -> IO TObject
findObject = (Ptr RawTColor -> CString -> IO (Ptr RawTObject))
-> TColor -> c0 -> IO TObject
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTColor -> CString -> IO (Ptr RawTObject)
c_tcolor_findobject
        getName :: TColor -> IO CString
getName = (Ptr RawTColor -> IO CString) -> TColor -> IO CString
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTColor -> IO CString
c_tcolor_getname
        isA :: TColor -> IO TClass
isA = (Ptr RawTColor -> IO (Ptr RawTClass)) -> TColor -> IO TClass
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTColor -> IO (Ptr RawTClass)
c_tcolor_isa
        paint :: forall c0. Castable c0 CString => TColor -> c0 -> IO ()
paint = (Ptr RawTColor -> CString -> IO ()) -> TColor -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTColor -> CString -> IO ()
c_tcolor_paint
        printObj :: forall c0. Castable c0 CString => TColor -> c0 -> IO ()
printObj = (Ptr RawTColor -> CString -> IO ()) -> TColor -> c0 -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawTColor -> CString -> IO ()
c_tcolor_printobj
        saveAs :: forall c1 c0.
(Castable c1 CString, Castable c0 CString) =>
TColor -> c0 -> c1 -> IO ()
saveAs = (Ptr RawTColor -> CString -> CString -> IO ())
-> TColor -> c0 -> c1 -> IO ()
forall a ca x1 cx1 x2 cx2 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) =>
(ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y
xform2 Ptr RawTColor -> CString -> CString -> IO ()
c_tcolor_saveas
        write :: forall c0.
Castable c0 CString =>
TColor -> c0 -> CInt -> CInt -> IO CInt
write = (Ptr RawTColor -> CString -> CInt -> CInt -> IO CInt)
-> TColor -> c0 -> CInt -> CInt -> IO CInt
forall a ca x1 cx1 x2 cx2 x3 cx3 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3,
 Castable y cy) =>
(ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y
xform3 Ptr RawTColor -> CString -> CInt -> CInt -> IO CInt
c_tcolor_write
        write_ :: TColor -> IO CInt
write_ = (Ptr RawTColor -> IO CInt) -> TColor -> IO CInt
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTColor -> IO CInt
c_tcolor_write_

instance () => IDeletable (TColor) where
        delete :: TColor -> IO ()
delete = (Ptr RawTColor -> IO ()) -> TColor -> IO ()
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawTColor -> IO ()
c_tcolor_delete

newTColor_ :: () => IO TColor
newTColor_ :: IO TColor
newTColor_ = IO (Ptr RawTColor) -> IO TColor
forall a ca. Castable a ca => IO ca -> IO a
xformnull IO (Ptr RawTColor)
c_tcolor_newtcolor_

newTColor ::
            () => CFloat -> CFloat -> CFloat -> CFloat -> IO TColor
newTColor :: CFloat -> CFloat -> CFloat -> CFloat -> IO TColor
newTColor = (CFloat -> CFloat -> CFloat -> CFloat -> IO (Ptr RawTColor))
-> CFloat -> CFloat -> CFloat -> CFloat -> IO TColor
forall a ca x1 cx1 x2 cx2 x3 cx3 y cy.
(Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3,
 Castable y cy) =>
(ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y
xform3 CFloat -> CFloat -> CFloat -> CFloat -> IO (Ptr RawTColor)
c_tcolor_newtcolor

tColor_GetPalette :: () => IO TArrayI
tColor_GetPalette :: IO TArrayI
tColor_GetPalette = IO (Ptr RawTArrayI) -> IO TArrayI
forall a ca. Castable a ca => IO ca -> IO a
xformnull IO (Ptr RawTArrayI)
c_tcolor_tcolor_getpalette