{-# 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 = xform0 c_dpoint_delete

newDPoint :: () => CDouble -> CDouble -> IO DPoint
newDPoint = xform1 c_dpoint_newdpoint

dPoint_m_x_get :: () => DPoint -> IO CDouble
dPoint_m_x_get = xform0 c_dpoint_m_x_get

dPoint_m_x_set :: () => DPoint -> CDouble -> IO ()
dPoint_m_x_set = xform1 c_dpoint_m_x_set

dPoint_m_y_get :: () => DPoint -> IO CDouble
dPoint_m_y_get = xform0 c_dpoint_m_y_get

dPoint_m_y_set :: () => DPoint -> CDouble -> IO ()
dPoint_m_y_set = xform1 c_dpoint_m_y_set
