{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Pango.Structs.GlyphItemIter
(
GlyphItemIter(..) ,
newZeroGlyphItemIter ,
#if defined(ENABLE_OVERLOADING)
ResolveGlyphItemIterMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
GlyphItemIterCopyMethodInfo ,
#endif
glyphItemIterCopy ,
#if defined(ENABLE_OVERLOADING)
GlyphItemIterFreeMethodInfo ,
#endif
glyphItemIterFree ,
#if defined(ENABLE_OVERLOADING)
GlyphItemIterInitEndMethodInfo ,
#endif
glyphItemIterInitEnd ,
#if defined(ENABLE_OVERLOADING)
GlyphItemIterInitStartMethodInfo ,
#endif
glyphItemIterInitStart ,
#if defined(ENABLE_OVERLOADING)
GlyphItemIterNextClusterMethodInfo ,
#endif
glyphItemIterNextCluster ,
#if defined(ENABLE_OVERLOADING)
GlyphItemIterPrevClusterMethodInfo ,
#endif
glyphItemIterPrevCluster ,
getGlyphItemIterEndChar ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_endChar ,
#endif
setGlyphItemIterEndChar ,
getGlyphItemIterEndGlyph ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_endGlyph ,
#endif
setGlyphItemIterEndGlyph ,
getGlyphItemIterEndIndex ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_endIndex ,
#endif
setGlyphItemIterEndIndex ,
clearGlyphItemIterGlyphItem ,
getGlyphItemIterGlyphItem ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_glyphItem ,
#endif
setGlyphItemIterGlyphItem ,
getGlyphItemIterStartChar ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_startChar ,
#endif
setGlyphItemIterStartChar ,
getGlyphItemIterStartGlyph ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_startGlyph ,
#endif
setGlyphItemIterStartGlyph ,
getGlyphItemIterStartIndex ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_startIndex ,
#endif
setGlyphItemIterStartIndex ,
clearGlyphItemIterText ,
getGlyphItemIterText ,
#if defined(ENABLE_OVERLOADING)
glyphItemIter_text ,
#endif
setGlyphItemIterText ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import {-# SOURCE #-} qualified GI.Pango.Structs.GlyphItem as Pango.GlyphItem
newtype GlyphItemIter = GlyphItemIter (SP.ManagedPtr GlyphItemIter)
deriving (GlyphItemIter -> GlyphItemIter -> Bool
(GlyphItemIter -> GlyphItemIter -> Bool)
-> (GlyphItemIter -> GlyphItemIter -> Bool) -> Eq GlyphItemIter
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GlyphItemIter -> GlyphItemIter -> Bool
$c/= :: GlyphItemIter -> GlyphItemIter -> Bool
== :: GlyphItemIter -> GlyphItemIter -> Bool
$c== :: GlyphItemIter -> GlyphItemIter -> Bool
Eq)
instance SP.ManagedPtrNewtype GlyphItemIter where
toManagedPtr :: GlyphItemIter -> ManagedPtr GlyphItemIter
toManagedPtr (GlyphItemIter ManagedPtr GlyphItemIter
p) = ManagedPtr GlyphItemIter
p
foreign import ccall "pango_glyph_item_iter_get_type" c_pango_glyph_item_iter_get_type ::
IO GType
type instance O.ParentTypes GlyphItemIter = '[]
instance O.HasParentTypes GlyphItemIter
instance B.Types.TypedObject GlyphItemIter where
glibType :: IO GType
glibType = IO GType
c_pango_glyph_item_iter_get_type
instance B.Types.GBoxed GlyphItemIter
instance B.GValue.IsGValue (Maybe GlyphItemIter) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_pango_glyph_item_iter_get_type
gvalueSet_ :: Ptr GValue -> Maybe GlyphItemIter -> IO ()
gvalueSet_ Ptr GValue
gv Maybe GlyphItemIter
P.Nothing = Ptr GValue -> Ptr GlyphItemIter -> IO ()
forall a. Ptr GValue -> Ptr a -> IO ()
B.GValue.set_boxed Ptr GValue
gv (Ptr GlyphItemIter
forall a. Ptr a
FP.nullPtr :: FP.Ptr GlyphItemIter)
gvalueSet_ Ptr GValue
gv (P.Just GlyphItemIter
obj) = GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr GlyphItemIter
obj (Ptr GValue -> Ptr GlyphItemIter -> IO ()
forall a. Ptr GValue -> Ptr a -> IO ()
B.GValue.set_boxed Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe GlyphItemIter)
gvalueGet_ Ptr GValue
gv = do
Ptr GlyphItemIter
ptr <- Ptr GValue -> IO (Ptr GlyphItemIter)
forall b. Ptr GValue -> IO (Ptr b)
B.GValue.get_boxed Ptr GValue
gv :: IO (Ptr GlyphItemIter)
if Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Ptr GlyphItemIter -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr GlyphItemIter
forall a. Ptr a
FP.nullPtr
then GlyphItemIter -> Maybe GlyphItemIter
forall a. a -> Maybe a
P.Just (GlyphItemIter -> Maybe GlyphItemIter)
-> IO GlyphItemIter -> IO (Maybe GlyphItemIter)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr GlyphItemIter -> GlyphItemIter)
-> Ptr GlyphItemIter -> IO GlyphItemIter
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
B.ManagedPtr.newBoxed ManagedPtr GlyphItemIter -> GlyphItemIter
GlyphItemIter Ptr GlyphItemIter
ptr
else Maybe GlyphItemIter -> IO (Maybe GlyphItemIter)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe GlyphItemIter
forall a. Maybe a
P.Nothing
newZeroGlyphItemIter :: MonadIO m => m GlyphItemIter
newZeroGlyphItemIter :: forall (m :: * -> *). MonadIO m => m GlyphItemIter
newZeroGlyphItemIter = IO GlyphItemIter -> m GlyphItemIter
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO GlyphItemIter -> m GlyphItemIter)
-> IO GlyphItemIter -> m GlyphItemIter
forall a b. (a -> b) -> a -> b
$ Int -> IO (Ptr GlyphItemIter)
forall a. GBoxed a => Int -> IO (Ptr a)
callocBoxedBytes Int
40 IO (Ptr GlyphItemIter)
-> (Ptr GlyphItemIter -> IO GlyphItemIter) -> IO GlyphItemIter
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (ManagedPtr GlyphItemIter -> GlyphItemIter)
-> Ptr GlyphItemIter -> IO GlyphItemIter
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr GlyphItemIter -> GlyphItemIter
GlyphItemIter
instance tag ~ 'AttrSet => Constructible GlyphItemIter tag where
new :: forall (m :: * -> *).
MonadIO m =>
(ManagedPtr GlyphItemIter -> GlyphItemIter)
-> [AttrOp GlyphItemIter tag] -> m GlyphItemIter
new ManagedPtr GlyphItemIter -> GlyphItemIter
_ [AttrOp GlyphItemIter tag]
attrs = do
GlyphItemIter
o <- m GlyphItemIter
forall (m :: * -> *). MonadIO m => m GlyphItemIter
newZeroGlyphItemIter
GlyphItemIter -> [AttrOp GlyphItemIter 'AttrSet] -> m ()
forall o (m :: * -> *).
MonadIO m =>
o -> [AttrOp o 'AttrSet] -> m ()
GI.Attributes.set GlyphItemIter
o [AttrOp GlyphItemIter tag]
[AttrOp GlyphItemIter 'AttrSet]
attrs
GlyphItemIter -> m GlyphItemIter
forall (m :: * -> *) a. Monad m => a -> m a
return GlyphItemIter
o
getGlyphItemIterGlyphItem :: MonadIO m => GlyphItemIter -> m (Maybe Pango.GlyphItem.GlyphItem)
getGlyphItemIterGlyphItem :: forall (m :: * -> *).
MonadIO m =>
GlyphItemIter -> m (Maybe GlyphItem)
getGlyphItemIterGlyphItem GlyphItemIter
s = IO (Maybe GlyphItem) -> m (Maybe GlyphItem)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe GlyphItem) -> m (Maybe GlyphItem))
-> IO (Maybe GlyphItem) -> m (Maybe GlyphItem)
forall a b. (a -> b) -> a -> b
$ GlyphItemIter
-> (Ptr GlyphItemIter -> IO (Maybe GlyphItem))
-> IO (Maybe GlyphItem)
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO (Maybe GlyphItem))
-> IO (Maybe GlyphItem))
-> (Ptr GlyphItemIter -> IO (Maybe GlyphItem))
-> IO (Maybe GlyphItem)
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr GlyphItem
val <- Ptr (Ptr GlyphItem) -> IO (Ptr GlyphItem)
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr (Ptr GlyphItem)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0) :: IO (Ptr Pango.GlyphItem.GlyphItem)
Maybe GlyphItem
result <- Ptr GlyphItem
-> (Ptr GlyphItem -> IO GlyphItem) -> IO (Maybe GlyphItem)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
SP.convertIfNonNull Ptr GlyphItem
val ((Ptr GlyphItem -> IO GlyphItem) -> IO (Maybe GlyphItem))
-> (Ptr GlyphItem -> IO GlyphItem) -> IO (Maybe GlyphItem)
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItem
val' -> do
GlyphItem
val'' <- ((ManagedPtr GlyphItem -> GlyphItem)
-> Ptr GlyphItem -> IO GlyphItem
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
newBoxed ManagedPtr GlyphItem -> GlyphItem
Pango.GlyphItem.GlyphItem) Ptr GlyphItem
val'
GlyphItem -> IO GlyphItem
forall (m :: * -> *) a. Monad m => a -> m a
return GlyphItem
val''
Maybe GlyphItem -> IO (Maybe GlyphItem)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe GlyphItem
result
setGlyphItemIterGlyphItem :: MonadIO m => GlyphItemIter -> Ptr Pango.GlyphItem.GlyphItem -> m ()
setGlyphItemIterGlyphItem :: forall (m :: * -> *).
MonadIO m =>
GlyphItemIter -> Ptr GlyphItem -> m ()
setGlyphItemIterGlyphItem GlyphItemIter
s Ptr GlyphItem
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr (Ptr GlyphItem) -> Ptr GlyphItem -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr (Ptr GlyphItem)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0) (Ptr GlyphItem
val :: Ptr Pango.GlyphItem.GlyphItem)
clearGlyphItemIterGlyphItem :: MonadIO m => GlyphItemIter -> m ()
clearGlyphItemIterGlyphItem :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m ()
clearGlyphItemIterGlyphItem GlyphItemIter
s = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr (Ptr GlyphItem) -> Ptr GlyphItem -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr (Ptr GlyphItem)
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
0) (Ptr GlyphItem
forall a. Ptr a
FP.nullPtr :: Ptr Pango.GlyphItem.GlyphItem)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterGlyphItemFieldInfo
instance AttrInfo GlyphItemIterGlyphItemFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterGlyphItemFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterGlyphItemFieldInfo = '[ 'AttrSet, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint GlyphItemIterGlyphItemFieldInfo = (~) (Ptr Pango.GlyphItem.GlyphItem)
type AttrTransferTypeConstraint GlyphItemIterGlyphItemFieldInfo = (~)(Ptr Pango.GlyphItem.GlyphItem)
type AttrTransferType GlyphItemIterGlyphItemFieldInfo = (Ptr Pango.GlyphItem.GlyphItem)
type AttrGetType GlyphItemIterGlyphItemFieldInfo = Maybe Pango.GlyphItem.GlyphItem
type AttrLabel GlyphItemIterGlyphItemFieldInfo = "glyph_item"
type AttrOrigin GlyphItemIterGlyphItemFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterGlyphItem
attrSet = setGlyphItemIterGlyphItem
attrConstruct = undefined
attrClear = clearGlyphItemIterGlyphItem
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.glyphItem"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:glyphItem"
})
glyphItemIter_glyphItem :: AttrLabelProxy "glyphItem"
glyphItemIter_glyphItem = AttrLabelProxy
#endif
getGlyphItemIterText :: MonadIO m => GlyphItemIter -> m (Maybe T.Text)
getGlyphItemIterText :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m (Maybe Text)
getGlyphItemIterText GlyphItemIter
s = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ GlyphItemIter
-> (Ptr GlyphItemIter -> IO (Maybe Text)) -> IO (Maybe Text)
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO (Maybe Text)) -> IO (Maybe Text))
-> (Ptr GlyphItemIter -> IO (Maybe Text)) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
CString
val <- Ptr CString -> IO CString
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr CString
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8) :: IO CString
Maybe Text
result <- CString -> (CString -> IO Text) -> IO (Maybe Text)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
SP.convertIfNonNull CString
val ((CString -> IO Text) -> IO (Maybe Text))
-> (CString -> IO Text) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \CString
val' -> do
Text
val'' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
val'
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
val''
Maybe Text -> IO (Maybe Text)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Text
result
setGlyphItemIterText :: MonadIO m => GlyphItemIter -> CString -> m ()
setGlyphItemIterText :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> CString -> m ()
setGlyphItemIterText GlyphItemIter
s CString
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr CString -> CString -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr CString
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8) (CString
val :: CString)
clearGlyphItemIterText :: MonadIO m => GlyphItemIter -> m ()
clearGlyphItemIterText :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m ()
clearGlyphItemIterText GlyphItemIter
s = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr CString -> CString -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr CString
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
8) (CString
forall a. Ptr a
FP.nullPtr :: CString)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterTextFieldInfo
instance AttrInfo GlyphItemIterTextFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterTextFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterTextFieldInfo = '[ 'AttrSet, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint GlyphItemIterTextFieldInfo = (~) CString
type AttrTransferTypeConstraint GlyphItemIterTextFieldInfo = (~)CString
type AttrTransferType GlyphItemIterTextFieldInfo = CString
type AttrGetType GlyphItemIterTextFieldInfo = Maybe T.Text
type AttrLabel GlyphItemIterTextFieldInfo = "text"
type AttrOrigin GlyphItemIterTextFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterText
attrSet = setGlyphItemIterText
attrConstruct = undefined
attrClear = clearGlyphItemIterText
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.text"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:text"
})
glyphItemIter_text :: AttrLabelProxy "text"
glyphItemIter_text = AttrLabelProxy
#endif
getGlyphItemIterStartGlyph :: MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterStartGlyph :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterStartGlyph GlyphItemIter
s = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO Int32) -> IO Int32)
-> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Int32
val <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16) :: IO Int32
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
val
setGlyphItemIterStartGlyph :: MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterStartGlyph :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterStartGlyph GlyphItemIter
s Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr Int32 -> Int32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
16) (Int32
val :: Int32)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterStartGlyphFieldInfo
instance AttrInfo GlyphItemIterStartGlyphFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterStartGlyphFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterStartGlyphFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint GlyphItemIterStartGlyphFieldInfo = (~) Int32
type AttrTransferTypeConstraint GlyphItemIterStartGlyphFieldInfo = (~)Int32
type AttrTransferType GlyphItemIterStartGlyphFieldInfo = Int32
type AttrGetType GlyphItemIterStartGlyphFieldInfo = Int32
type AttrLabel GlyphItemIterStartGlyphFieldInfo = "start_glyph"
type AttrOrigin GlyphItemIterStartGlyphFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterStartGlyph
attrSet = setGlyphItemIterStartGlyph
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.startGlyph"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:startGlyph"
})
glyphItemIter_startGlyph :: AttrLabelProxy "startGlyph"
glyphItemIter_startGlyph = AttrLabelProxy
#endif
getGlyphItemIterStartIndex :: MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterStartIndex :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterStartIndex GlyphItemIter
s = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO Int32) -> IO Int32)
-> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Int32
val <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20) :: IO Int32
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
val
setGlyphItemIterStartIndex :: MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterStartIndex :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterStartIndex GlyphItemIter
s Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr Int32 -> Int32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
20) (Int32
val :: Int32)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterStartIndexFieldInfo
instance AttrInfo GlyphItemIterStartIndexFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterStartIndexFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterStartIndexFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint GlyphItemIterStartIndexFieldInfo = (~) Int32
type AttrTransferTypeConstraint GlyphItemIterStartIndexFieldInfo = (~)Int32
type AttrTransferType GlyphItemIterStartIndexFieldInfo = Int32
type AttrGetType GlyphItemIterStartIndexFieldInfo = Int32
type AttrLabel GlyphItemIterStartIndexFieldInfo = "start_index"
type AttrOrigin GlyphItemIterStartIndexFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterStartIndex
attrSet = setGlyphItemIterStartIndex
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.startIndex"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:startIndex"
})
glyphItemIter_startIndex :: AttrLabelProxy "startIndex"
glyphItemIter_startIndex = AttrLabelProxy
#endif
getGlyphItemIterStartChar :: MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterStartChar :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterStartChar GlyphItemIter
s = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO Int32) -> IO Int32)
-> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Int32
val <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
24) :: IO Int32
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
val
setGlyphItemIterStartChar :: MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterStartChar :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterStartChar GlyphItemIter
s Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr Int32 -> Int32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
24) (Int32
val :: Int32)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterStartCharFieldInfo
instance AttrInfo GlyphItemIterStartCharFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterStartCharFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterStartCharFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint GlyphItemIterStartCharFieldInfo = (~) Int32
type AttrTransferTypeConstraint GlyphItemIterStartCharFieldInfo = (~)Int32
type AttrTransferType GlyphItemIterStartCharFieldInfo = Int32
type AttrGetType GlyphItemIterStartCharFieldInfo = Int32
type AttrLabel GlyphItemIterStartCharFieldInfo = "start_char"
type AttrOrigin GlyphItemIterStartCharFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterStartChar
attrSet = setGlyphItemIterStartChar
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.startChar"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:startChar"
})
glyphItemIter_startChar :: AttrLabelProxy "startChar"
glyphItemIter_startChar = AttrLabelProxy
#endif
getGlyphItemIterEndGlyph :: MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterEndGlyph :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterEndGlyph GlyphItemIter
s = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO Int32) -> IO Int32)
-> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Int32
val <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
28) :: IO Int32
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
val
setGlyphItemIterEndGlyph :: MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterEndGlyph :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterEndGlyph GlyphItemIter
s Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr Int32 -> Int32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
28) (Int32
val :: Int32)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterEndGlyphFieldInfo
instance AttrInfo GlyphItemIterEndGlyphFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterEndGlyphFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterEndGlyphFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint GlyphItemIterEndGlyphFieldInfo = (~) Int32
type AttrTransferTypeConstraint GlyphItemIterEndGlyphFieldInfo = (~)Int32
type AttrTransferType GlyphItemIterEndGlyphFieldInfo = Int32
type AttrGetType GlyphItemIterEndGlyphFieldInfo = Int32
type AttrLabel GlyphItemIterEndGlyphFieldInfo = "end_glyph"
type AttrOrigin GlyphItemIterEndGlyphFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterEndGlyph
attrSet = setGlyphItemIterEndGlyph
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.endGlyph"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:endGlyph"
})
glyphItemIter_endGlyph :: AttrLabelProxy "endGlyph"
glyphItemIter_endGlyph = AttrLabelProxy
#endif
getGlyphItemIterEndIndex :: MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterEndIndex :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterEndIndex GlyphItemIter
s = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO Int32) -> IO Int32)
-> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Int32
val <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
32) :: IO Int32
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
val
setGlyphItemIterEndIndex :: MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterEndIndex :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterEndIndex GlyphItemIter
s Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr Int32 -> Int32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
32) (Int32
val :: Int32)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterEndIndexFieldInfo
instance AttrInfo GlyphItemIterEndIndexFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterEndIndexFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterEndIndexFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint GlyphItemIterEndIndexFieldInfo = (~) Int32
type AttrTransferTypeConstraint GlyphItemIterEndIndexFieldInfo = (~)Int32
type AttrTransferType GlyphItemIterEndIndexFieldInfo = Int32
type AttrGetType GlyphItemIterEndIndexFieldInfo = Int32
type AttrLabel GlyphItemIterEndIndexFieldInfo = "end_index"
type AttrOrigin GlyphItemIterEndIndexFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterEndIndex
attrSet = setGlyphItemIterEndIndex
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.endIndex"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:endIndex"
})
glyphItemIter_endIndex :: AttrLabelProxy "endIndex"
glyphItemIter_endIndex = AttrLabelProxy
#endif
getGlyphItemIterEndChar :: MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterEndChar :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> m Int32
getGlyphItemIterEndChar GlyphItemIter
s = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO Int32) -> IO Int32)
-> (Ptr GlyphItemIter -> IO Int32) -> IO Int32
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Int32
val <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
36) :: IO Int32
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
val
setGlyphItemIterEndChar :: MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterEndChar :: forall (m :: * -> *). MonadIO m => GlyphItemIter -> Int32 -> m ()
setGlyphItemIterEndChar GlyphItemIter
s Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ GlyphItemIter -> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr GlyphItemIter
s ((Ptr GlyphItemIter -> IO ()) -> IO ())
-> (Ptr GlyphItemIter -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
ptr -> do
Ptr Int32 -> Int32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr GlyphItemIter
ptr Ptr GlyphItemIter -> Int -> Ptr Int32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` Int
36) (Int32
val :: Int32)
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterEndCharFieldInfo
instance AttrInfo GlyphItemIterEndCharFieldInfo where
type AttrBaseTypeConstraint GlyphItemIterEndCharFieldInfo = (~) GlyphItemIter
type AttrAllowedOps GlyphItemIterEndCharFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint GlyphItemIterEndCharFieldInfo = (~) Int32
type AttrTransferTypeConstraint GlyphItemIterEndCharFieldInfo = (~)Int32
type AttrTransferType GlyphItemIterEndCharFieldInfo = Int32
type AttrGetType GlyphItemIterEndCharFieldInfo = Int32
type AttrLabel GlyphItemIterEndCharFieldInfo = "end_char"
type AttrOrigin GlyphItemIterEndCharFieldInfo = GlyphItemIter
attrGet = getGlyphItemIterEndChar
attrSet = setGlyphItemIterEndChar
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.endChar"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#g:attr:endChar"
})
glyphItemIter_endChar :: AttrLabelProxy "endChar"
glyphItemIter_endChar = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList GlyphItemIter
type instance O.AttributeList GlyphItemIter = GlyphItemIterAttributeList
type GlyphItemIterAttributeList = ('[ '("glyphItem", GlyphItemIterGlyphItemFieldInfo), '("text", GlyphItemIterTextFieldInfo), '("startGlyph", GlyphItemIterStartGlyphFieldInfo), '("startIndex", GlyphItemIterStartIndexFieldInfo), '("startChar", GlyphItemIterStartCharFieldInfo), '("endGlyph", GlyphItemIterEndGlyphFieldInfo), '("endIndex", GlyphItemIterEndIndexFieldInfo), '("endChar", GlyphItemIterEndCharFieldInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "pango_glyph_item_iter_copy" pango_glyph_item_iter_copy ::
Ptr GlyphItemIter ->
IO (Ptr GlyphItemIter)
glyphItemIterCopy ::
(B.CallStack.HasCallStack, MonadIO m) =>
GlyphItemIter
-> m (Maybe GlyphItemIter)
glyphItemIterCopy :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
GlyphItemIter -> m (Maybe GlyphItemIter)
glyphItemIterCopy GlyphItemIter
orig = IO (Maybe GlyphItemIter) -> m (Maybe GlyphItemIter)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe GlyphItemIter) -> m (Maybe GlyphItemIter))
-> IO (Maybe GlyphItemIter) -> m (Maybe GlyphItemIter)
forall a b. (a -> b) -> a -> b
$ do
Ptr GlyphItemIter
orig' <- GlyphItemIter -> IO (Ptr GlyphItemIter)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItemIter
orig
Ptr GlyphItemIter
result <- Ptr GlyphItemIter -> IO (Ptr GlyphItemIter)
pango_glyph_item_iter_copy Ptr GlyphItemIter
orig'
Maybe GlyphItemIter
maybeResult <- Ptr GlyphItemIter
-> (Ptr GlyphItemIter -> IO GlyphItemIter)
-> IO (Maybe GlyphItemIter)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr GlyphItemIter
result ((Ptr GlyphItemIter -> IO GlyphItemIter)
-> IO (Maybe GlyphItemIter))
-> (Ptr GlyphItemIter -> IO GlyphItemIter)
-> IO (Maybe GlyphItemIter)
forall a b. (a -> b) -> a -> b
$ \Ptr GlyphItemIter
result' -> do
GlyphItemIter
result'' <- ((ManagedPtr GlyphItemIter -> GlyphItemIter)
-> Ptr GlyphItemIter -> IO GlyphItemIter
forall a.
(HasCallStack, GBoxed a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr GlyphItemIter -> GlyphItemIter
GlyphItemIter) Ptr GlyphItemIter
result'
GlyphItemIter -> IO GlyphItemIter
forall (m :: * -> *) a. Monad m => a -> m a
return GlyphItemIter
result''
GlyphItemIter -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItemIter
orig
Maybe GlyphItemIter -> IO (Maybe GlyphItemIter)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe GlyphItemIter
maybeResult
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterCopyMethodInfo
instance (signature ~ (m (Maybe GlyphItemIter)), MonadIO m) => O.OverloadedMethod GlyphItemIterCopyMethodInfo GlyphItemIter signature where
overloadedMethod = glyphItemIterCopy
instance O.OverloadedMethodInfo GlyphItemIterCopyMethodInfo GlyphItemIter where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.glyphItemIterCopy",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#v:glyphItemIterCopy"
})
#endif
foreign import ccall "pango_glyph_item_iter_free" pango_glyph_item_iter_free ::
Ptr GlyphItemIter ->
IO ()
glyphItemIterFree ::
(B.CallStack.HasCallStack, MonadIO m) =>
GlyphItemIter
-> m ()
glyphItemIterFree :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
GlyphItemIter -> m ()
glyphItemIterFree GlyphItemIter
iter = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr GlyphItemIter
iter' <- GlyphItemIter -> IO (Ptr GlyphItemIter)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItemIter
iter
Ptr GlyphItemIter -> IO ()
pango_glyph_item_iter_free Ptr GlyphItemIter
iter'
GlyphItemIter -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItemIter
iter
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterFreeMethodInfo
instance (signature ~ (m ()), MonadIO m) => O.OverloadedMethod GlyphItemIterFreeMethodInfo GlyphItemIter signature where
overloadedMethod = glyphItemIterFree
instance O.OverloadedMethodInfo GlyphItemIterFreeMethodInfo GlyphItemIter where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.glyphItemIterFree",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#v:glyphItemIterFree"
})
#endif
foreign import ccall "pango_glyph_item_iter_init_end" pango_glyph_item_iter_init_end ::
Ptr GlyphItemIter ->
Ptr Pango.GlyphItem.GlyphItem ->
CString ->
IO CInt
glyphItemIterInitEnd ::
(B.CallStack.HasCallStack, MonadIO m) =>
GlyphItemIter
-> Pango.GlyphItem.GlyphItem
-> T.Text
-> m Bool
glyphItemIterInitEnd :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
GlyphItemIter -> GlyphItem -> Text -> m Bool
glyphItemIterInitEnd GlyphItemIter
iter GlyphItem
glyphItem Text
text = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr GlyphItemIter
iter' <- GlyphItemIter -> IO (Ptr GlyphItemIter)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItemIter
iter
Ptr GlyphItem
glyphItem' <- GlyphItem -> IO (Ptr GlyphItem)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItem
glyphItem
CString
text' <- Text -> IO CString
textToCString Text
text
CInt
result <- Ptr GlyphItemIter -> Ptr GlyphItem -> CString -> IO CInt
pango_glyph_item_iter_init_end Ptr GlyphItemIter
iter' Ptr GlyphItem
glyphItem' CString
text'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
GlyphItemIter -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItemIter
iter
GlyphItem -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItem
glyphItem
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
text'
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterInitEndMethodInfo
instance (signature ~ (Pango.GlyphItem.GlyphItem -> T.Text -> m Bool), MonadIO m) => O.OverloadedMethod GlyphItemIterInitEndMethodInfo GlyphItemIter signature where
overloadedMethod = glyphItemIterInitEnd
instance O.OverloadedMethodInfo GlyphItemIterInitEndMethodInfo GlyphItemIter where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.glyphItemIterInitEnd",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#v:glyphItemIterInitEnd"
})
#endif
foreign import ccall "pango_glyph_item_iter_init_start" pango_glyph_item_iter_init_start ::
Ptr GlyphItemIter ->
Ptr Pango.GlyphItem.GlyphItem ->
CString ->
IO CInt
glyphItemIterInitStart ::
(B.CallStack.HasCallStack, MonadIO m) =>
GlyphItemIter
-> Pango.GlyphItem.GlyphItem
-> T.Text
-> m Bool
glyphItemIterInitStart :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
GlyphItemIter -> GlyphItem -> Text -> m Bool
glyphItemIterInitStart GlyphItemIter
iter GlyphItem
glyphItem Text
text = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr GlyphItemIter
iter' <- GlyphItemIter -> IO (Ptr GlyphItemIter)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItemIter
iter
Ptr GlyphItem
glyphItem' <- GlyphItem -> IO (Ptr GlyphItem)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItem
glyphItem
CString
text' <- Text -> IO CString
textToCString Text
text
CInt
result <- Ptr GlyphItemIter -> Ptr GlyphItem -> CString -> IO CInt
pango_glyph_item_iter_init_start Ptr GlyphItemIter
iter' Ptr GlyphItem
glyphItem' CString
text'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
GlyphItemIter -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItemIter
iter
GlyphItem -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItem
glyphItem
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
text'
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterInitStartMethodInfo
instance (signature ~ (Pango.GlyphItem.GlyphItem -> T.Text -> m Bool), MonadIO m) => O.OverloadedMethod GlyphItemIterInitStartMethodInfo GlyphItemIter signature where
overloadedMethod = glyphItemIterInitStart
instance O.OverloadedMethodInfo GlyphItemIterInitStartMethodInfo GlyphItemIter where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.glyphItemIterInitStart",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#v:glyphItemIterInitStart"
})
#endif
foreign import ccall "pango_glyph_item_iter_next_cluster" pango_glyph_item_iter_next_cluster ::
Ptr GlyphItemIter ->
IO CInt
glyphItemIterNextCluster ::
(B.CallStack.HasCallStack, MonadIO m) =>
GlyphItemIter
-> m Bool
glyphItemIterNextCluster :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
GlyphItemIter -> m Bool
glyphItemIterNextCluster GlyphItemIter
iter = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr GlyphItemIter
iter' <- GlyphItemIter -> IO (Ptr GlyphItemIter)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItemIter
iter
CInt
result <- Ptr GlyphItemIter -> IO CInt
pango_glyph_item_iter_next_cluster Ptr GlyphItemIter
iter'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
GlyphItemIter -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItemIter
iter
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterNextClusterMethodInfo
instance (signature ~ (m Bool), MonadIO m) => O.OverloadedMethod GlyphItemIterNextClusterMethodInfo GlyphItemIter signature where
overloadedMethod = glyphItemIterNextCluster
instance O.OverloadedMethodInfo GlyphItemIterNextClusterMethodInfo GlyphItemIter where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.glyphItemIterNextCluster",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#v:glyphItemIterNextCluster"
})
#endif
foreign import ccall "pango_glyph_item_iter_prev_cluster" pango_glyph_item_iter_prev_cluster ::
Ptr GlyphItemIter ->
IO CInt
glyphItemIterPrevCluster ::
(B.CallStack.HasCallStack, MonadIO m) =>
GlyphItemIter
-> m Bool
glyphItemIterPrevCluster :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
GlyphItemIter -> m Bool
glyphItemIterPrevCluster GlyphItemIter
iter = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr GlyphItemIter
iter' <- GlyphItemIter -> IO (Ptr GlyphItemIter)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GlyphItemIter
iter
CInt
result <- Ptr GlyphItemIter -> IO CInt
pango_glyph_item_iter_prev_cluster Ptr GlyphItemIter
iter'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
GlyphItemIter -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GlyphItemIter
iter
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data GlyphItemIterPrevClusterMethodInfo
instance (signature ~ (m Bool), MonadIO m) => O.OverloadedMethod GlyphItemIterPrevClusterMethodInfo GlyphItemIter signature where
overloadedMethod = glyphItemIterPrevCluster
instance O.OverloadedMethodInfo GlyphItemIterPrevClusterMethodInfo GlyphItemIter where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Pango.Structs.GlyphItemIter.glyphItemIterPrevCluster",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-pango-1.0.25/docs/GI-Pango-Structs-GlyphItemIter.html#v:glyphItemIterPrevCluster"
})
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveGlyphItemIterMethod (t :: Symbol) (o :: *) :: * where
ResolveGlyphItemIterMethod "copy" o = GlyphItemIterCopyMethodInfo
ResolveGlyphItemIterMethod "free" o = GlyphItemIterFreeMethodInfo
ResolveGlyphItemIterMethod "initEnd" o = GlyphItemIterInitEndMethodInfo
ResolveGlyphItemIterMethod "initStart" o = GlyphItemIterInitStartMethodInfo
ResolveGlyphItemIterMethod "nextCluster" o = GlyphItemIterNextClusterMethodInfo
ResolveGlyphItemIterMethod "prevCluster" o = GlyphItemIterPrevClusterMethodInfo
ResolveGlyphItemIterMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveGlyphItemIterMethod t GlyphItemIter, O.OverloadedMethod info GlyphItemIter p) => OL.IsLabel t (GlyphItemIter -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveGlyphItemIterMethod t GlyphItemIter, O.OverloadedMethod info GlyphItemIter p, R.HasField t GlyphItemIter p) => R.HasField t GlyphItemIter p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveGlyphItemIterMethod t GlyphItemIter, O.OverloadedMethodInfo info GlyphItemIter) => OL.IsLabel t (O.MethodProxy info GlyphItemIter) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif