gi-gdk-0.3.16.12: GI/Gdk/Structs/TimeCoord.hs
{- |
Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte
License : LGPL-2.1
Maintainer : Iñaki García Etxebarria (garetxe@gmail.com)
A #GdkTimeCoord stores a single event in a motion history.
-}
module GI.Gdk.Structs.TimeCoord
(
-- * Exported types
TimeCoord(..) ,
noTimeCoord ,
-- * Properties
-- ** Time
timeCoordReadTime ,
) where
import Prelude ()
import Data.GI.Base.ShortPrelude
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import GI.Gdk.Types
import GI.Gdk.Callbacks
newtype TimeCoord = TimeCoord (ForeignPtr TimeCoord)
noTimeCoord :: Maybe TimeCoord
noTimeCoord = Nothing
timeCoordReadTime :: TimeCoord -> IO Word32
timeCoordReadTime s = withManagedPtr s $ \ptr -> do
val <- peek (ptr `plusPtr` 0) :: IO Word32
return val
-- XXX Skipped getter for "TimeCoord:axes" :: Not implemented: "Don't know how to unpack C array of type TCArray False 128 (-1) (TBasicType TDouble)"