{- | 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 structure that provides information to the type system which is used specifically for managing fundamental types. -} module GI.GObject.Structs.TypeFundamentalInfo ( -- * Exported types TypeFundamentalInfo(..) , noTypeFundamentalInfo , -- * Properties -- ** TypeFlags typeFundamentalInfoReadTypeFlags , ) 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.GObject.Types import GI.GObject.Callbacks newtype TypeFundamentalInfo = TypeFundamentalInfo (ForeignPtr TypeFundamentalInfo) noTypeFundamentalInfo :: Maybe TypeFundamentalInfo noTypeFundamentalInfo = Nothing typeFundamentalInfoReadTypeFlags :: TypeFundamentalInfo -> IO [TypeFundamentalFlags] typeFundamentalInfoReadTypeFlags s = withManagedPtr s $ \ptr -> do val <- peek (ptr `plusPtr` 0) :: IO CUInt let val' = wordToGFlags val return val'