module HROOT.Class.TShape.Interface where
import Data.Word
import Foreign.ForeignPtr
import HROOT.TypeCast
import HROOT.Class.TShape.RawType
import HROOT.Class.TNamed.Interface
import HROOT.Class.TAttLine.Interface
import HROOT.Class.TAttFill.Interface
import HROOT.Class.TAtt3D.Interface
class (ITNamed a,ITAttLine a,ITAttFill a,ITAtt3D a) => ITShape a where
instance Existable TShape where
data Exist TShape = forall a. (FPtr a, ITShape a) => ETShape a
upcastTShape :: (FPtr a, ITShape a) => a -> TShape
upcastTShape h = let fh = get_fptr h
fh2 :: ForeignPtr RawTShape = castForeignPtr fh
in cast_fptr_to_obj fh2