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

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

-- new

foreign import capi unsafe "hs_TopoDS_Wire.h hs_new_TopoDS_Wire" rawNew :: IO (Ptr Wire)

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