{-# LANGUAGE EmptyDataDecls, FlexibleContexts, FlexibleInstances,
  ForeignFunctionInterface, IncoherentInstances,
  MultiParamTypeClasses, OverlappingInstances, TemplateHaskell,
  TypeFamilies, TypeSynonymInstances #-}
module OGDF.DPoint.Implementation where
import Data.Monoid
import Data.Word
import Data.Int
import Foreign.C
import Foreign.Ptr
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import System.IO.Unsafe
import FFICXX.Runtime.Cast
import FFICXX.Runtime.CodeGen.Cxx
import FFICXX.Runtime.TH
import OGDF.DPoint.RawType
import OGDF.DPoint.FFI
import OGDF.DPoint.Interface
import OGDF.DPoint.Cast
import OGDF.DPoint.RawType
import OGDF.DPoint.Cast
import OGDF.DPoint.Interface
import STD.Deletable.RawType
import STD.Deletable.Cast
import STD.Deletable.Interface

instance () => IDPoint (DPoint) where

instance () => IDeletable (DPoint) where
        delete :: DPoint -> IO ()
delete = (Ptr RawDPoint -> IO ()) -> DPoint -> IO ()
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawDPoint -> IO ()
c_dpoint_delete

newDPoint :: () => CDouble -> CDouble -> IO DPoint
newDPoint :: CDouble -> CDouble -> IO DPoint
newDPoint = (CDouble -> CDouble -> IO (Ptr RawDPoint))
-> CDouble -> CDouble -> IO DPoint
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 CDouble -> CDouble -> IO (Ptr RawDPoint)
c_dpoint_newdpoint

dPoint_m_x_get :: () => DPoint -> IO CDouble
dPoint_m_x_get :: DPoint -> IO CDouble
dPoint_m_x_get = (Ptr RawDPoint -> IO CDouble) -> DPoint -> IO CDouble
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawDPoint -> IO CDouble
c_dpoint_m_x_get

dPoint_m_x_set :: () => DPoint -> CDouble -> IO ()
dPoint_m_x_set :: DPoint -> CDouble -> IO ()
dPoint_m_x_set = (Ptr RawDPoint -> CDouble -> IO ()) -> DPoint -> CDouble -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawDPoint -> CDouble -> IO ()
c_dpoint_m_x_set

dPoint_m_y_get :: () => DPoint -> IO CDouble
dPoint_m_y_get :: DPoint -> IO CDouble
dPoint_m_y_get = (Ptr RawDPoint -> IO CDouble) -> DPoint -> IO CDouble
forall a ca y cy.
(Castable a ca, Castable y cy) =>
(ca -> IO cy) -> a -> IO y
xform0 Ptr RawDPoint -> IO CDouble
c_dpoint_m_y_get

dPoint_m_y_set :: () => DPoint -> CDouble -> IO ()
dPoint_m_y_set :: DPoint -> CDouble -> IO ()
dPoint_m_y_set = (Ptr RawDPoint -> CDouble -> IO ()) -> DPoint -> CDouble -> IO ()
forall a ca x1 cx1 y cy.
(Castable a ca, Castable x1 cx1, Castable y cy) =>
(ca -> cx1 -> IO cy) -> a -> x1 -> IO y
xform1 Ptr RawDPoint -> CDouble -> IO ()
c_dpoint_m_y_set