{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Structs.TargetEntry
(
TargetEntry(..) ,
newZeroTargetEntry ,
noTargetEntry ,
#if defined(ENABLE_OVERLOADING)
ResolveTargetEntryMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
TargetEntryCopyMethodInfo ,
#endif
targetEntryCopy ,
#if defined(ENABLE_OVERLOADING)
TargetEntryFreeMethodInfo ,
#endif
targetEntryFree ,
targetEntryNew ,
getTargetEntryFlags ,
setTargetEntryFlags ,
#if defined(ENABLE_OVERLOADING)
targetEntry_flags ,
#endif
getTargetEntryInfo ,
setTargetEntryInfo ,
#if defined(ENABLE_OVERLOADING)
targetEntry_info ,
#endif
clearTargetEntryTarget ,
getTargetEntryTarget ,
setTargetEntryTarget ,
#if defined(ENABLE_OVERLOADING)
targetEntry_target ,
#endif
) 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.ManagedPtr as B.ManagedPtr
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 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
newtype TargetEntry = TargetEntry (ManagedPtr TargetEntry)
deriving (TargetEntry -> TargetEntry -> Bool
(TargetEntry -> TargetEntry -> Bool)
-> (TargetEntry -> TargetEntry -> Bool) -> Eq TargetEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TargetEntry -> TargetEntry -> Bool
$c/= :: TargetEntry -> TargetEntry -> Bool
== :: TargetEntry -> TargetEntry -> Bool
$c== :: TargetEntry -> TargetEntry -> Bool
Eq)
foreign import ccall "gtk_target_entry_get_type" c_gtk_target_entry_get_type ::
IO GType
instance BoxedObject TargetEntry where
boxedType :: TargetEntry -> IO GType
boxedType _ = IO GType
c_gtk_target_entry_get_type
instance B.GValue.IsGValue TargetEntry where
toGValue :: TargetEntry -> IO GValue
toGValue o :: TargetEntry
o = do
GType
gtype <- IO GType
c_gtk_target_entry_get_type
TargetEntry -> (Ptr TargetEntry -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr TargetEntry
o (GType
-> (GValue -> Ptr TargetEntry -> IO ())
-> Ptr TargetEntry
-> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr TargetEntry -> IO ()
forall a. GValue -> Ptr a -> IO ()
B.GValue.set_boxed)
fromGValue :: GValue -> IO TargetEntry
fromGValue gv :: GValue
gv = do
Ptr TargetEntry
ptr <- GValue -> IO (Ptr TargetEntry)
forall b. GValue -> IO (Ptr b)
B.GValue.get_boxed GValue
gv :: IO (Ptr TargetEntry)
(ManagedPtr TargetEntry -> TargetEntry)
-> Ptr TargetEntry -> IO TargetEntry
forall a.
(HasCallStack, BoxedObject a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
B.ManagedPtr.newBoxed ManagedPtr TargetEntry -> TargetEntry
TargetEntry Ptr TargetEntry
ptr
newZeroTargetEntry :: MonadIO m => m TargetEntry
newZeroTargetEntry :: m TargetEntry
newZeroTargetEntry = IO TargetEntry -> m TargetEntry
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TargetEntry -> m TargetEntry)
-> IO TargetEntry -> m TargetEntry
forall a b. (a -> b) -> a -> b
$ Int -> IO (Ptr TargetEntry)
forall a. BoxedObject a => Int -> IO (Ptr a)
callocBoxedBytes 16 IO (Ptr TargetEntry)
-> (Ptr TargetEntry -> IO TargetEntry) -> IO TargetEntry
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (ManagedPtr TargetEntry -> TargetEntry)
-> Ptr TargetEntry -> IO TargetEntry
forall a.
(HasCallStack, BoxedObject a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr TargetEntry -> TargetEntry
TargetEntry
instance tag ~ 'AttrSet => Constructible TargetEntry tag where
new :: (ManagedPtr TargetEntry -> TargetEntry)
-> [AttrOp TargetEntry tag] -> m TargetEntry
new _ attrs :: [AttrOp TargetEntry tag]
attrs = do
TargetEntry
o <- m TargetEntry
forall (m :: * -> *). MonadIO m => m TargetEntry
newZeroTargetEntry
TargetEntry -> [AttrOp TargetEntry 'AttrSet] -> m ()
forall o (m :: * -> *).
MonadIO m =>
o -> [AttrOp o 'AttrSet] -> m ()
GI.Attributes.set TargetEntry
o [AttrOp TargetEntry tag]
[AttrOp TargetEntry 'AttrSet]
attrs
TargetEntry -> m TargetEntry
forall (m :: * -> *) a. Monad m => a -> m a
return TargetEntry
o
noTargetEntry :: Maybe TargetEntry
noTargetEntry :: Maybe TargetEntry
noTargetEntry = Maybe TargetEntry
forall a. Maybe a
Nothing
getTargetEntryTarget :: MonadIO m => TargetEntry -> m (Maybe T.Text)
getTargetEntryTarget :: TargetEntry -> m (Maybe Text)
getTargetEntryTarget s :: TargetEntry
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
$ TargetEntry
-> (Ptr TargetEntry -> IO (Maybe Text)) -> IO (Maybe Text)
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr TargetEntry
s ((Ptr TargetEntry -> IO (Maybe Text)) -> IO (Maybe Text))
-> (Ptr TargetEntry -> IO (Maybe Text)) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr TargetEntry
ptr -> do
CString
val <- Ptr CString -> IO CString
forall a. Storable a => Ptr a -> IO a
peek (Ptr TargetEntry
ptr Ptr TargetEntry -> Int -> Ptr CString
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0) :: 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
$ \val' :: 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
setTargetEntryTarget :: MonadIO m => TargetEntry -> CString -> m ()
setTargetEntryTarget :: TargetEntry -> CString -> m ()
setTargetEntryTarget s :: TargetEntry
s val :: 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
$ TargetEntry -> (Ptr TargetEntry -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr TargetEntry
s ((Ptr TargetEntry -> IO ()) -> IO ())
-> (Ptr TargetEntry -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr TargetEntry
ptr -> do
Ptr CString -> CString -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr TargetEntry
ptr Ptr TargetEntry -> Int -> Ptr CString
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0) (CString
val :: CString)
clearTargetEntryTarget :: MonadIO m => TargetEntry -> m ()
clearTargetEntryTarget :: TargetEntry -> m ()
clearTargetEntryTarget s :: TargetEntry
s = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ TargetEntry -> (Ptr TargetEntry -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr TargetEntry
s ((Ptr TargetEntry -> IO ()) -> IO ())
-> (Ptr TargetEntry -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr TargetEntry
ptr -> do
Ptr CString -> CString -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr TargetEntry
ptr Ptr TargetEntry -> Int -> Ptr CString
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 0) (CString
forall a. Ptr a
FP.nullPtr :: CString)
#if defined(ENABLE_OVERLOADING)
data TargetEntryTargetFieldInfo
instance AttrInfo TargetEntryTargetFieldInfo where
type AttrBaseTypeConstraint TargetEntryTargetFieldInfo = (~) TargetEntry
type AttrAllowedOps TargetEntryTargetFieldInfo = '[ 'AttrSet, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint TargetEntryTargetFieldInfo = (~) CString
type AttrTransferTypeConstraint TargetEntryTargetFieldInfo = (~)CString
type AttrTransferType TargetEntryTargetFieldInfo = CString
type AttrGetType TargetEntryTargetFieldInfo = Maybe T.Text
type AttrLabel TargetEntryTargetFieldInfo = "target"
type AttrOrigin TargetEntryTargetFieldInfo = TargetEntry
attrGet = getTargetEntryTarget
attrSet = setTargetEntryTarget
attrConstruct = undefined
attrClear = clearTargetEntryTarget
attrTransfer _ v = do
return v
targetEntry_target :: AttrLabelProxy "target"
targetEntry_target = AttrLabelProxy
#endif
getTargetEntryFlags :: MonadIO m => TargetEntry -> m Word32
getTargetEntryFlags :: TargetEntry -> m Word32
getTargetEntryFlags s :: TargetEntry
s = IO Word32 -> m Word32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ TargetEntry -> (Ptr TargetEntry -> IO Word32) -> IO Word32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr TargetEntry
s ((Ptr TargetEntry -> IO Word32) -> IO Word32)
-> (Ptr TargetEntry -> IO Word32) -> IO Word32
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr TargetEntry
ptr -> do
Word32
val <- Ptr Word32 -> IO Word32
forall a. Storable a => Ptr a -> IO a
peek (Ptr TargetEntry
ptr Ptr TargetEntry -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8) :: IO Word32
Word32 -> IO Word32
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
val
setTargetEntryFlags :: MonadIO m => TargetEntry -> Word32 -> m ()
setTargetEntryFlags :: TargetEntry -> Word32 -> m ()
setTargetEntryFlags s :: TargetEntry
s val :: Word32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ TargetEntry -> (Ptr TargetEntry -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr TargetEntry
s ((Ptr TargetEntry -> IO ()) -> IO ())
-> (Ptr TargetEntry -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr TargetEntry
ptr -> do
Ptr Word32 -> Word32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr TargetEntry
ptr Ptr TargetEntry -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 8) (Word32
val :: Word32)
#if defined(ENABLE_OVERLOADING)
data TargetEntryFlagsFieldInfo
instance AttrInfo TargetEntryFlagsFieldInfo where
type AttrBaseTypeConstraint TargetEntryFlagsFieldInfo = (~) TargetEntry
type AttrAllowedOps TargetEntryFlagsFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint TargetEntryFlagsFieldInfo = (~) Word32
type AttrTransferTypeConstraint TargetEntryFlagsFieldInfo = (~)Word32
type AttrTransferType TargetEntryFlagsFieldInfo = Word32
type AttrGetType TargetEntryFlagsFieldInfo = Word32
type AttrLabel TargetEntryFlagsFieldInfo = "flags"
type AttrOrigin TargetEntryFlagsFieldInfo = TargetEntry
attrGet = getTargetEntryFlags
attrSet = setTargetEntryFlags
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
targetEntry_flags :: AttrLabelProxy "flags"
targetEntry_flags = AttrLabelProxy
#endif
getTargetEntryInfo :: MonadIO m => TargetEntry -> m Word32
getTargetEntryInfo :: TargetEntry -> m Word32
getTargetEntryInfo s :: TargetEntry
s = IO Word32 -> m Word32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ TargetEntry -> (Ptr TargetEntry -> IO Word32) -> IO Word32
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr TargetEntry
s ((Ptr TargetEntry -> IO Word32) -> IO Word32)
-> (Ptr TargetEntry -> IO Word32) -> IO Word32
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr TargetEntry
ptr -> do
Word32
val <- Ptr Word32 -> IO Word32
forall a. Storable a => Ptr a -> IO a
peek (Ptr TargetEntry
ptr Ptr TargetEntry -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 12) :: IO Word32
Word32 -> IO Word32
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
val
setTargetEntryInfo :: MonadIO m => TargetEntry -> Word32 -> m ()
setTargetEntryInfo :: TargetEntry -> Word32 -> m ()
setTargetEntryInfo s :: TargetEntry
s val :: Word32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ TargetEntry -> (Ptr TargetEntry -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
withManagedPtr TargetEntry
s ((Ptr TargetEntry -> IO ()) -> IO ())
-> (Ptr TargetEntry -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ptr :: Ptr TargetEntry
ptr -> do
Ptr Word32 -> Word32 -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke (Ptr TargetEntry
ptr Ptr TargetEntry -> Int -> Ptr Word32
forall a b. Ptr a -> Int -> Ptr b
`plusPtr` 12) (Word32
val :: Word32)
#if defined(ENABLE_OVERLOADING)
data TargetEntryInfoFieldInfo
instance AttrInfo TargetEntryInfoFieldInfo where
type AttrBaseTypeConstraint TargetEntryInfoFieldInfo = (~) TargetEntry
type AttrAllowedOps TargetEntryInfoFieldInfo = '[ 'AttrSet, 'AttrGet]
type AttrSetTypeConstraint TargetEntryInfoFieldInfo = (~) Word32
type AttrTransferTypeConstraint TargetEntryInfoFieldInfo = (~)Word32
type AttrTransferType TargetEntryInfoFieldInfo = Word32
type AttrGetType TargetEntryInfoFieldInfo = Word32
type AttrLabel TargetEntryInfoFieldInfo = "info"
type AttrOrigin TargetEntryInfoFieldInfo = TargetEntry
attrGet = getTargetEntryInfo
attrSet = setTargetEntryInfo
attrConstruct = undefined
attrClear = undefined
attrTransfer _ v = do
return v
targetEntry_info :: AttrLabelProxy "info"
targetEntry_info = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList TargetEntry
type instance O.AttributeList TargetEntry = TargetEntryAttributeList
type TargetEntryAttributeList = ('[ '("target", TargetEntryTargetFieldInfo), '("flags", TargetEntryFlagsFieldInfo), '("info", TargetEntryInfoFieldInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_target_entry_new" gtk_target_entry_new ::
CString ->
Word32 ->
Word32 ->
IO (Ptr TargetEntry)
targetEntryNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> Word32
-> Word32
-> m TargetEntry
targetEntryNew :: Text -> Word32 -> Word32 -> m TargetEntry
targetEntryNew target :: Text
target flags :: Word32
flags info :: Word32
info = IO TargetEntry -> m TargetEntry
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TargetEntry -> m TargetEntry)
-> IO TargetEntry -> m TargetEntry
forall a b. (a -> b) -> a -> b
$ do
CString
target' <- Text -> IO CString
textToCString Text
target
Ptr TargetEntry
result <- CString -> Word32 -> Word32 -> IO (Ptr TargetEntry)
gtk_target_entry_new CString
target' Word32
flags Word32
info
Text -> Ptr TargetEntry -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL "targetEntryNew" Ptr TargetEntry
result
TargetEntry
result' <- ((ManagedPtr TargetEntry -> TargetEntry)
-> Ptr TargetEntry -> IO TargetEntry
forall a.
(HasCallStack, BoxedObject a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr TargetEntry -> TargetEntry
TargetEntry) Ptr TargetEntry
result
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
target'
TargetEntry -> IO TargetEntry
forall (m :: * -> *) a. Monad m => a -> m a
return TargetEntry
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_target_entry_copy" gtk_target_entry_copy ::
Ptr TargetEntry ->
IO (Ptr TargetEntry)
targetEntryCopy ::
(B.CallStack.HasCallStack, MonadIO m) =>
TargetEntry
-> m TargetEntry
targetEntryCopy :: TargetEntry -> m TargetEntry
targetEntryCopy data_ :: TargetEntry
data_ = IO TargetEntry -> m TargetEntry
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TargetEntry -> m TargetEntry)
-> IO TargetEntry -> m TargetEntry
forall a b. (a -> b) -> a -> b
$ do
Ptr TargetEntry
data_' <- TargetEntry -> IO (Ptr TargetEntry)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr TargetEntry
data_
Ptr TargetEntry
result <- Ptr TargetEntry -> IO (Ptr TargetEntry)
gtk_target_entry_copy Ptr TargetEntry
data_'
Text -> Ptr TargetEntry -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL "targetEntryCopy" Ptr TargetEntry
result
TargetEntry
result' <- ((ManagedPtr TargetEntry -> TargetEntry)
-> Ptr TargetEntry -> IO TargetEntry
forall a.
(HasCallStack, BoxedObject a) =>
(ManagedPtr a -> a) -> Ptr a -> IO a
wrapBoxed ManagedPtr TargetEntry -> TargetEntry
TargetEntry) Ptr TargetEntry
result
TargetEntry -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr TargetEntry
data_
TargetEntry -> IO TargetEntry
forall (m :: * -> *) a. Monad m => a -> m a
return TargetEntry
result'
#if defined(ENABLE_OVERLOADING)
data TargetEntryCopyMethodInfo
instance (signature ~ (m TargetEntry), MonadIO m) => O.MethodInfo TargetEntryCopyMethodInfo TargetEntry signature where
overloadedMethod = targetEntryCopy
#endif
foreign import ccall "gtk_target_entry_free" gtk_target_entry_free ::
Ptr TargetEntry ->
IO ()
targetEntryFree ::
(B.CallStack.HasCallStack, MonadIO m) =>
TargetEntry
-> m ()
targetEntryFree :: TargetEntry -> m ()
targetEntryFree data_ :: TargetEntry
data_ = 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 TargetEntry
data_' <- TargetEntry -> IO (Ptr TargetEntry)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr TargetEntry
data_
Ptr TargetEntry -> IO ()
gtk_target_entry_free Ptr TargetEntry
data_'
TargetEntry -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr TargetEntry
data_
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TargetEntryFreeMethodInfo
instance (signature ~ (m ()), MonadIO m) => O.MethodInfo TargetEntryFreeMethodInfo TargetEntry signature where
overloadedMethod = targetEntryFree
#endif
#if defined(ENABLE_OVERLOADING)
type family ResolveTargetEntryMethod (t :: Symbol) (o :: *) :: * where
ResolveTargetEntryMethod "copy" o = TargetEntryCopyMethodInfo
ResolveTargetEntryMethod "free" o = TargetEntryFreeMethodInfo
ResolveTargetEntryMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveTargetEntryMethod t TargetEntry, O.MethodInfo info TargetEntry p) => OL.IsLabel t (TargetEntry -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif