{-# LANGUAGE EmptyDataDecls, ExistentialQuantification, FlexibleContexts, FlexibleInstances, ForeignFunctionInterface, MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies, TypeSynonymInstances #-} module HROOT.Core.TAttBBox.Interface where import Data.Word import Data.Int import Foreign.C import Foreign.Ptr import FFICXX.Runtime.Cast import HROOT.Core.TAttBBox.RawType import STD.Deletable.Interface class (IDeletable a) => ITAttBBox a where upcastTAttBBox :: forall a . (FPtr a, ITAttBBox a) => a -> TAttBBox upcastTAttBBox :: forall a. (FPtr a, ITAttBBox a) => a -> TAttBBox upcastTAttBBox a h = let fh :: Ptr (Raw a) fh = a -> Ptr (Raw a) forall a. FPtr a => a -> Ptr (Raw a) get_fptr a h Ptr RawTAttBBox fh2 :: Ptr RawTAttBBox = Ptr (Raw a) -> Ptr RawTAttBBox forall a b. Ptr a -> Ptr b castPtr Ptr (Raw a) fh in Ptr (Raw TAttBBox) -> TAttBBox forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw TAttBBox) Ptr RawTAttBBox fh2 downcastTAttBBox :: forall a . (FPtr a, ITAttBBox a) => TAttBBox -> a downcastTAttBBox :: forall a. (FPtr a, ITAttBBox a) => TAttBBox -> a downcastTAttBBox TAttBBox h = let fh :: Ptr (Raw TAttBBox) fh = TAttBBox -> Ptr (Raw TAttBBox) forall a. FPtr a => a -> Ptr (Raw a) get_fptr TAttBBox h fh2 :: Ptr (Raw a) fh2 = Ptr RawTAttBBox -> Ptr (Raw a) forall a b. Ptr a -> Ptr b castPtr Ptr (Raw TAttBBox) Ptr RawTAttBBox fh in Ptr (Raw a) -> a forall a. FPtr a => Ptr (Raw a) -> a cast_fptr_to_obj Ptr (Raw a) fh2