{-# LANGUAGE CApiFFI #-}
module OpenCascade.TopoDS.Compound
( Compound
, new
) where 

import OpenCascade.TopoDS.Types
import OpenCascade.TopoDS.Internal.Destructors
import Foreign.Ptr
import Data.Acquire 

-- new

foreign import capi unsafe "hs_TopoDS_Compound.h hs_new_TopoDS_Compound" rawNew :: IO (Ptr Compound)

new :: Acquire (Ptr Compound)
new :: Acquire (Ptr Compound)
new = IO (Ptr Compound)
-> (Ptr Compound -> IO ()) -> Acquire (Ptr Compound)
forall a. IO a -> (a -> IO ()) -> Acquire a
mkAcquire IO (Ptr Compound)
rawNew (Ptr Shape -> IO ()
deleteShape (Ptr Shape -> IO ())
-> (Ptr Compound -> Ptr Shape) -> Ptr Compound -> IO ()
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Ptr Compound -> Ptr Shape
forall a b. Ptr a -> Ptr b
castPtr)