{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-} -- module HROOT.Class.Interface where module HROOT.Class.TAttBBox.Interface where import Data.Word import Foreign.ForeignPtr import HROOT.TypeCast import HROOT.Class.TAttBBox.RawType import HROOT.Class.Deletable.Interface class (IDeletable a) => ITAttBBox a where instance Existable TAttBBox where data Exist TAttBBox = forall a. (FPtr a, ITAttBBox a) => ETAttBBox a upcastTAttBBox :: (FPtr a, ITAttBBox a) => a -> TAttBBox upcastTAttBBox h = let fh = get_fptr h fh2 :: ForeignPtr RawTAttBBox = castForeignPtr fh in cast_fptr_to_obj fh2