{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GES.Objects.TimelineElement
(
#if defined(ENABLE_OVERLOADING)
TimelineElementListChildrenPropertiesMethodInfo,
#endif
TimelineElement(..) ,
IsTimelineElement ,
toTimelineElement ,
#if defined(ENABLE_OVERLOADING)
ResolveTimelineElementMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementAddChildPropertyMethodInfo,
#endif
timelineElementAddChildProperty ,
#if defined(ENABLE_OVERLOADING)
TimelineElementCopyMethodInfo ,
#endif
timelineElementCopy ,
#if defined(ENABLE_OVERLOADING)
TimelineElementEditMethodInfo ,
#endif
timelineElementEdit ,
#if defined(ENABLE_OVERLOADING)
TimelineElementEditFullMethodInfo ,
#endif
timelineElementEditFull ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetChildPropertyMethodInfo,
#endif
timelineElementGetChildProperty ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetChildPropertyByPspecMethodInfo,
#endif
timelineElementGetChildPropertyByPspec ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetDurationMethodInfo ,
#endif
timelineElementGetDuration ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetInpointMethodInfo ,
#endif
timelineElementGetInpoint ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetLayerPriorityMethodInfo,
#endif
timelineElementGetLayerPriority ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetMaxDurationMethodInfo ,
#endif
timelineElementGetMaxDuration ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetNameMethodInfo ,
#endif
timelineElementGetName ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetNaturalFramerateMethodInfo,
#endif
timelineElementGetNaturalFramerate ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetParentMethodInfo ,
#endif
timelineElementGetParent ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetPriorityMethodInfo ,
#endif
timelineElementGetPriority ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetStartMethodInfo ,
#endif
timelineElementGetStart ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetTimelineMethodInfo ,
#endif
timelineElementGetTimeline ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetToplevelParentMethodInfo,
#endif
timelineElementGetToplevelParent ,
#if defined(ENABLE_OVERLOADING)
TimelineElementGetTrackTypesMethodInfo ,
#endif
timelineElementGetTrackTypes ,
#if defined(ENABLE_OVERLOADING)
TimelineElementLookupChildMethodInfo ,
#endif
timelineElementLookupChild ,
#if defined(ENABLE_OVERLOADING)
TimelineElementPasteMethodInfo ,
#endif
timelineElementPaste ,
#if defined(ENABLE_OVERLOADING)
TimelineElementRemoveChildPropertyMethodInfo,
#endif
timelineElementRemoveChildProperty ,
#if defined(ENABLE_OVERLOADING)
TimelineElementRippleMethodInfo ,
#endif
timelineElementRipple ,
#if defined(ENABLE_OVERLOADING)
TimelineElementRippleEndMethodInfo ,
#endif
timelineElementRippleEnd ,
#if defined(ENABLE_OVERLOADING)
TimelineElementRollEndMethodInfo ,
#endif
timelineElementRollEnd ,
#if defined(ENABLE_OVERLOADING)
TimelineElementRollStartMethodInfo ,
#endif
timelineElementRollStart ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetChildPropertyMethodInfo,
#endif
timelineElementSetChildProperty ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetChildPropertyByPspecMethodInfo,
#endif
timelineElementSetChildPropertyByPspec ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetChildPropertyFullMethodInfo,
#endif
timelineElementSetChildPropertyFull ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetDurationMethodInfo ,
#endif
timelineElementSetDuration ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetInpointMethodInfo ,
#endif
timelineElementSetInpoint ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetMaxDurationMethodInfo ,
#endif
timelineElementSetMaxDuration ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetNameMethodInfo ,
#endif
timelineElementSetName ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetParentMethodInfo ,
#endif
timelineElementSetParent ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetPriorityMethodInfo ,
#endif
timelineElementSetPriority ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetStartMethodInfo ,
#endif
timelineElementSetStart ,
#if defined(ENABLE_OVERLOADING)
TimelineElementSetTimelineMethodInfo ,
#endif
timelineElementSetTimeline ,
#if defined(ENABLE_OVERLOADING)
TimelineElementTrimMethodInfo ,
#endif
timelineElementTrim ,
#if defined(ENABLE_OVERLOADING)
TimelineElementDurationPropertyInfo ,
#endif
constructTimelineElementDuration ,
getTimelineElementDuration ,
setTimelineElementDuration ,
#if defined(ENABLE_OVERLOADING)
timelineElementDuration ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementInPointPropertyInfo ,
#endif
constructTimelineElementInPoint ,
getTimelineElementInPoint ,
setTimelineElementInPoint ,
#if defined(ENABLE_OVERLOADING)
timelineElementInPoint ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementMaxDurationPropertyInfo ,
#endif
constructTimelineElementMaxDuration ,
getTimelineElementMaxDuration ,
setTimelineElementMaxDuration ,
#if defined(ENABLE_OVERLOADING)
timelineElementMaxDuration ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementNamePropertyInfo ,
#endif
clearTimelineElementName ,
constructTimelineElementName ,
getTimelineElementName ,
setTimelineElementName ,
#if defined(ENABLE_OVERLOADING)
timelineElementName ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementParentPropertyInfo ,
#endif
clearTimelineElementParent ,
constructTimelineElementParent ,
getTimelineElementParent ,
setTimelineElementParent ,
#if defined(ENABLE_OVERLOADING)
timelineElementParent ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementPriorityPropertyInfo ,
#endif
constructTimelineElementPriority ,
getTimelineElementPriority ,
setTimelineElementPriority ,
#if defined(ENABLE_OVERLOADING)
timelineElementPriority ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementSerializePropertyInfo ,
#endif
constructTimelineElementSerialize ,
getTimelineElementSerialize ,
setTimelineElementSerialize ,
#if defined(ENABLE_OVERLOADING)
timelineElementSerialize ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementStartPropertyInfo ,
#endif
constructTimelineElementStart ,
getTimelineElementStart ,
setTimelineElementStart ,
#if defined(ENABLE_OVERLOADING)
timelineElementStart ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineElementTimelinePropertyInfo ,
#endif
clearTimelineElementTimeline ,
constructTimelineElementTimeline ,
getTimelineElementTimeline ,
setTimelineElementTimeline ,
#if defined(ENABLE_OVERLOADING)
timelineElementTimeline ,
#endif
TimelineElementChildPropertyAddedCallback,
#if defined(ENABLE_OVERLOADING)
TimelineElementChildPropertyAddedSignalInfo,
#endif
afterTimelineElementChildPropertyAdded ,
onTimelineElementChildPropertyAdded ,
TimelineElementChildPropertyRemovedCallback,
#if defined(ENABLE_OVERLOADING)
TimelineElementChildPropertyRemovedSignalInfo,
#endif
afterTimelineElementChildPropertyRemoved,
onTimelineElementChildPropertyRemoved ,
TimelineElementDeepNotifyCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineElementDeepNotifySignalInfo ,
#endif
afterTimelineElementDeepNotify ,
onTimelineElementDeepNotify ,
) 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.GHashTable as B.GHT
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.Kind as DK
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.GES.Enums as GES.Enums
import {-# SOURCE #-} qualified GI.GES.Flags as GES.Flags
import {-# SOURCE #-} qualified GI.GES.Interfaces.Extractable as GES.Extractable
import {-# SOURCE #-} qualified GI.GES.Interfaces.MetaContainer as GES.MetaContainer
import {-# SOURCE #-} qualified GI.GES.Objects.Layer as GES.Layer
import {-# SOURCE #-} qualified GI.GES.Objects.Timeline as GES.Timeline
import qualified GI.GObject.Objects.Object as GObject.Object
newtype TimelineElement = TimelineElement (SP.ManagedPtr TimelineElement)
deriving (TimelineElement -> TimelineElement -> Bool
(TimelineElement -> TimelineElement -> Bool)
-> (TimelineElement -> TimelineElement -> Bool)
-> Eq TimelineElement
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TimelineElement -> TimelineElement -> Bool
== :: TimelineElement -> TimelineElement -> Bool
$c/= :: TimelineElement -> TimelineElement -> Bool
/= :: TimelineElement -> TimelineElement -> Bool
Eq)
instance SP.ManagedPtrNewtype TimelineElement where
toManagedPtr :: TimelineElement -> ManagedPtr TimelineElement
toManagedPtr (TimelineElement ManagedPtr TimelineElement
p) = ManagedPtr TimelineElement
p
foreign import ccall "ges_timeline_element_get_type"
c_ges_timeline_element_get_type :: IO B.Types.GType
instance B.Types.TypedObject TimelineElement where
glibType :: IO GType
glibType = IO GType
c_ges_timeline_element_get_type
instance B.Types.GObject TimelineElement
class (SP.GObject o, O.IsDescendantOf TimelineElement o) => IsTimelineElement o
instance (SP.GObject o, O.IsDescendantOf TimelineElement o) => IsTimelineElement o
instance O.HasParentTypes TimelineElement
type instance O.ParentTypes TimelineElement = '[GObject.Object.Object, GES.Extractable.Extractable, GES.MetaContainer.MetaContainer]
toTimelineElement :: (MIO.MonadIO m, IsTimelineElement o) => o -> m TimelineElement
toTimelineElement :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m TimelineElement
toTimelineElement = IO TimelineElement -> m TimelineElement
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO TimelineElement -> m TimelineElement)
-> (o -> IO TimelineElement) -> o -> m TimelineElement
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr TimelineElement -> TimelineElement)
-> o -> IO TimelineElement
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr TimelineElement -> TimelineElement
TimelineElement
instance B.GValue.IsGValue (Maybe TimelineElement) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_ges_timeline_element_get_type
gvalueSet_ :: Ptr GValue -> Maybe TimelineElement -> IO ()
gvalueSet_ Ptr GValue
gv Maybe TimelineElement
P.Nothing = Ptr GValue -> Ptr TimelineElement -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr TimelineElement
forall a. Ptr a
FP.nullPtr :: FP.Ptr TimelineElement)
gvalueSet_ Ptr GValue
gv (P.Just TimelineElement
obj) = TimelineElement -> (Ptr TimelineElement -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr TimelineElement
obj (Ptr GValue -> Ptr TimelineElement -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe TimelineElement)
gvalueGet_ Ptr GValue
gv = do
Ptr TimelineElement
ptr <- Ptr GValue -> IO (Ptr TimelineElement)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr TimelineElement)
if Ptr TimelineElement
ptr Ptr TimelineElement -> Ptr TimelineElement -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr TimelineElement
forall a. Ptr a
FP.nullPtr
then TimelineElement -> Maybe TimelineElement
forall a. a -> Maybe a
P.Just (TimelineElement -> Maybe TimelineElement)
-> IO TimelineElement -> IO (Maybe TimelineElement)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr TimelineElement -> TimelineElement)
-> Ptr TimelineElement -> IO TimelineElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr TimelineElement -> TimelineElement
TimelineElement Ptr TimelineElement
ptr
else Maybe TimelineElement -> IO (Maybe TimelineElement)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe TimelineElement
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveTimelineElementMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveTimelineElementMethod "addChildProperty" o = TimelineElementAddChildPropertyMethodInfo
ResolveTimelineElementMethod "addMetasFromString" o = GES.MetaContainer.MetaContainerAddMetasFromStringMethodInfo
ResolveTimelineElementMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveTimelineElementMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveTimelineElementMethod "checkMetaRegistered" o = GES.MetaContainer.MetaContainerCheckMetaRegisteredMethodInfo
ResolveTimelineElementMethod "copy" o = TimelineElementCopyMethodInfo
ResolveTimelineElementMethod "edit" o = TimelineElementEditMethodInfo
ResolveTimelineElementMethod "editFull" o = TimelineElementEditFullMethodInfo
ResolveTimelineElementMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveTimelineElementMethod "foreach" o = GES.MetaContainer.MetaContainerForeachMethodInfo
ResolveTimelineElementMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveTimelineElementMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveTimelineElementMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveTimelineElementMethod "listChildrenProperties" o = TimelineElementListChildrenPropertiesMethodInfo
ResolveTimelineElementMethod "lookupChild" o = TimelineElementLookupChildMethodInfo
ResolveTimelineElementMethod "metasToString" o = GES.MetaContainer.MetaContainerMetasToStringMethodInfo
ResolveTimelineElementMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveTimelineElementMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveTimelineElementMethod "paste" o = TimelineElementPasteMethodInfo
ResolveTimelineElementMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveTimelineElementMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveTimelineElementMethod "registerMeta" o = GES.MetaContainer.MetaContainerRegisterMetaMethodInfo
ResolveTimelineElementMethod "registerMetaBoolean" o = GES.MetaContainer.MetaContainerRegisterMetaBooleanMethodInfo
ResolveTimelineElementMethod "registerMetaDate" o = GES.MetaContainer.MetaContainerRegisterMetaDateMethodInfo
ResolveTimelineElementMethod "registerMetaDateTime" o = GES.MetaContainer.MetaContainerRegisterMetaDateTimeMethodInfo
ResolveTimelineElementMethod "registerMetaDouble" o = GES.MetaContainer.MetaContainerRegisterMetaDoubleMethodInfo
ResolveTimelineElementMethod "registerMetaFloat" o = GES.MetaContainer.MetaContainerRegisterMetaFloatMethodInfo
ResolveTimelineElementMethod "registerMetaInt" o = GES.MetaContainer.MetaContainerRegisterMetaIntMethodInfo
ResolveTimelineElementMethod "registerMetaInt64" o = GES.MetaContainer.MetaContainerRegisterMetaInt64MethodInfo
ResolveTimelineElementMethod "registerMetaString" o = GES.MetaContainer.MetaContainerRegisterMetaStringMethodInfo
ResolveTimelineElementMethod "registerMetaUint" o = GES.MetaContainer.MetaContainerRegisterMetaUintMethodInfo
ResolveTimelineElementMethod "registerMetaUint64" o = GES.MetaContainer.MetaContainerRegisterMetaUint64MethodInfo
ResolveTimelineElementMethod "registerStaticMeta" o = GES.MetaContainer.MetaContainerRegisterStaticMetaMethodInfo
ResolveTimelineElementMethod "removeChildProperty" o = TimelineElementRemoveChildPropertyMethodInfo
ResolveTimelineElementMethod "ripple" o = TimelineElementRippleMethodInfo
ResolveTimelineElementMethod "rippleEnd" o = TimelineElementRippleEndMethodInfo
ResolveTimelineElementMethod "rollEnd" o = TimelineElementRollEndMethodInfo
ResolveTimelineElementMethod "rollStart" o = TimelineElementRollStartMethodInfo
ResolveTimelineElementMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveTimelineElementMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveTimelineElementMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveTimelineElementMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveTimelineElementMethod "trim" o = TimelineElementTrimMethodInfo
ResolveTimelineElementMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveTimelineElementMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveTimelineElementMethod "getAsset" o = GES.Extractable.ExtractableGetAssetMethodInfo
ResolveTimelineElementMethod "getBoolean" o = GES.MetaContainer.MetaContainerGetBooleanMethodInfo
ResolveTimelineElementMethod "getChildProperty" o = TimelineElementGetChildPropertyMethodInfo
ResolveTimelineElementMethod "getChildPropertyByPspec" o = TimelineElementGetChildPropertyByPspecMethodInfo
ResolveTimelineElementMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveTimelineElementMethod "getDate" o = GES.MetaContainer.MetaContainerGetDateMethodInfo
ResolveTimelineElementMethod "getDateTime" o = GES.MetaContainer.MetaContainerGetDateTimeMethodInfo
ResolveTimelineElementMethod "getDouble" o = GES.MetaContainer.MetaContainerGetDoubleMethodInfo
ResolveTimelineElementMethod "getDuration" o = TimelineElementGetDurationMethodInfo
ResolveTimelineElementMethod "getFloat" o = GES.MetaContainer.MetaContainerGetFloatMethodInfo
ResolveTimelineElementMethod "getId" o = GES.Extractable.ExtractableGetIdMethodInfo
ResolveTimelineElementMethod "getInpoint" o = TimelineElementGetInpointMethodInfo
ResolveTimelineElementMethod "getInt" o = GES.MetaContainer.MetaContainerGetIntMethodInfo
ResolveTimelineElementMethod "getInt64" o = GES.MetaContainer.MetaContainerGetInt64MethodInfo
ResolveTimelineElementMethod "getLayerPriority" o = TimelineElementGetLayerPriorityMethodInfo
ResolveTimelineElementMethod "getMarkerList" o = GES.MetaContainer.MetaContainerGetMarkerListMethodInfo
ResolveTimelineElementMethod "getMaxDuration" o = TimelineElementGetMaxDurationMethodInfo
ResolveTimelineElementMethod "getMeta" o = GES.MetaContainer.MetaContainerGetMetaMethodInfo
ResolveTimelineElementMethod "getName" o = TimelineElementGetNameMethodInfo
ResolveTimelineElementMethod "getNaturalFramerate" o = TimelineElementGetNaturalFramerateMethodInfo
ResolveTimelineElementMethod "getParent" o = TimelineElementGetParentMethodInfo
ResolveTimelineElementMethod "getPriority" o = TimelineElementGetPriorityMethodInfo
ResolveTimelineElementMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveTimelineElementMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveTimelineElementMethod "getStart" o = TimelineElementGetStartMethodInfo
ResolveTimelineElementMethod "getString" o = GES.MetaContainer.MetaContainerGetStringMethodInfo
ResolveTimelineElementMethod "getTimeline" o = TimelineElementGetTimelineMethodInfo
ResolveTimelineElementMethod "getToplevelParent" o = TimelineElementGetToplevelParentMethodInfo
ResolveTimelineElementMethod "getTrackTypes" o = TimelineElementGetTrackTypesMethodInfo
ResolveTimelineElementMethod "getUint" o = GES.MetaContainer.MetaContainerGetUintMethodInfo
ResolveTimelineElementMethod "getUint64" o = GES.MetaContainer.MetaContainerGetUint64MethodInfo
ResolveTimelineElementMethod "setAsset" o = GES.Extractable.ExtractableSetAssetMethodInfo
ResolveTimelineElementMethod "setBoolean" o = GES.MetaContainer.MetaContainerSetBooleanMethodInfo
ResolveTimelineElementMethod "setChildProperty" o = TimelineElementSetChildPropertyMethodInfo
ResolveTimelineElementMethod "setChildPropertyByPspec" o = TimelineElementSetChildPropertyByPspecMethodInfo
ResolveTimelineElementMethod "setChildPropertyFull" o = TimelineElementSetChildPropertyFullMethodInfo
ResolveTimelineElementMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveTimelineElementMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveTimelineElementMethod "setDate" o = GES.MetaContainer.MetaContainerSetDateMethodInfo
ResolveTimelineElementMethod "setDateTime" o = GES.MetaContainer.MetaContainerSetDateTimeMethodInfo
ResolveTimelineElementMethod "setDouble" o = GES.MetaContainer.MetaContainerSetDoubleMethodInfo
ResolveTimelineElementMethod "setDuration" o = TimelineElementSetDurationMethodInfo
ResolveTimelineElementMethod "setFloat" o = GES.MetaContainer.MetaContainerSetFloatMethodInfo
ResolveTimelineElementMethod "setInpoint" o = TimelineElementSetInpointMethodInfo
ResolveTimelineElementMethod "setInt" o = GES.MetaContainer.MetaContainerSetIntMethodInfo
ResolveTimelineElementMethod "setInt64" o = GES.MetaContainer.MetaContainerSetInt64MethodInfo
ResolveTimelineElementMethod "setMarkerList" o = GES.MetaContainer.MetaContainerSetMarkerListMethodInfo
ResolveTimelineElementMethod "setMaxDuration" o = TimelineElementSetMaxDurationMethodInfo
ResolveTimelineElementMethod "setMeta" o = GES.MetaContainer.MetaContainerSetMetaMethodInfo
ResolveTimelineElementMethod "setName" o = TimelineElementSetNameMethodInfo
ResolveTimelineElementMethod "setParent" o = TimelineElementSetParentMethodInfo
ResolveTimelineElementMethod "setPriority" o = TimelineElementSetPriorityMethodInfo
ResolveTimelineElementMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveTimelineElementMethod "setStart" o = TimelineElementSetStartMethodInfo
ResolveTimelineElementMethod "setString" o = GES.MetaContainer.MetaContainerSetStringMethodInfo
ResolveTimelineElementMethod "setTimeline" o = TimelineElementSetTimelineMethodInfo
ResolveTimelineElementMethod "setUint" o = GES.MetaContainer.MetaContainerSetUintMethodInfo
ResolveTimelineElementMethod "setUint64" o = GES.MetaContainer.MetaContainerSetUint64MethodInfo
ResolveTimelineElementMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveTimelineElementMethod t TimelineElement, O.OverloadedMethod info TimelineElement p) => OL.IsLabel t (TimelineElement -> 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 ~ ResolveTimelineElementMethod t TimelineElement, O.OverloadedMethod info TimelineElement p, R.HasField t TimelineElement p) => R.HasField t TimelineElement p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveTimelineElementMethod t TimelineElement, O.OverloadedMethodInfo info TimelineElement) => OL.IsLabel t (O.MethodProxy info TimelineElement) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type TimelineElementChildPropertyAddedCallback =
GObject.Object.Object
-> GParamSpec
-> IO ()
type C_TimelineElementChildPropertyAddedCallback =
Ptr TimelineElement ->
Ptr GObject.Object.Object ->
Ptr GParamSpec ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineElementChildPropertyAddedCallback :: C_TimelineElementChildPropertyAddedCallback -> IO (FunPtr C_TimelineElementChildPropertyAddedCallback)
wrap_TimelineElementChildPropertyAddedCallback ::
GObject a => (a -> TimelineElementChildPropertyAddedCallback) ->
C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementChildPropertyAddedCallback :: forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementChildPropertyAddedCallback a -> TimelineElementChildPropertyAddedCallback
gi'cb Ptr TimelineElement
gi'selfPtr Ptr Object
propObject Ptr GParamSpec
prop Ptr ()
_ = do
Object
propObject' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Object -> Object
GObject.Object.Object) Ptr Object
propObject
GParamSpec
prop' <- Ptr GParamSpec -> IO GParamSpec
B.GParamSpec.newGParamSpecFromPtr Ptr GParamSpec
prop
Ptr TimelineElement -> (TimelineElement -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr TimelineElement
gi'selfPtr ((TimelineElement -> IO ()) -> IO ())
-> (TimelineElement -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \TimelineElement
gi'self -> a -> TimelineElementChildPropertyAddedCallback
gi'cb (TimelineElement -> a
forall a b. Coercible a b => a -> b
Coerce.coerce TimelineElement
gi'self) Object
propObject' GParamSpec
prop'
onTimelineElementChildPropertyAdded :: (IsTimelineElement a, MonadIO m) => a -> ((?self :: a) => TimelineElementChildPropertyAddedCallback) -> m SignalHandlerId
onTimelineElementChildPropertyAdded :: forall a (m :: * -> *).
(IsTimelineElement a, MonadIO m) =>
a
-> ((?self::a) => TimelineElementChildPropertyAddedCallback)
-> m SignalHandlerId
onTimelineElementChildPropertyAdded a
obj (?self::a) => TimelineElementChildPropertyAddedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> TimelineElementChildPropertyAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineElementChildPropertyAddedCallback
TimelineElementChildPropertyAddedCallback
cb
let wrapped' :: C_TimelineElementChildPropertyAddedCallback
wrapped' = (a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementChildPropertyAddedCallback a -> TimelineElementChildPropertyAddedCallback
wrapped
FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' <- C_TimelineElementChildPropertyAddedCallback
-> IO (FunPtr C_TimelineElementChildPropertyAddedCallback)
mk_TimelineElementChildPropertyAddedCallback C_TimelineElementChildPropertyAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineElementChildPropertyAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"child-property-added" FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineElementChildPropertyAdded :: (IsTimelineElement a, MonadIO m) => a -> ((?self :: a) => TimelineElementChildPropertyAddedCallback) -> m SignalHandlerId
afterTimelineElementChildPropertyAdded :: forall a (m :: * -> *).
(IsTimelineElement a, MonadIO m) =>
a
-> ((?self::a) => TimelineElementChildPropertyAddedCallback)
-> m SignalHandlerId
afterTimelineElementChildPropertyAdded a
obj (?self::a) => TimelineElementChildPropertyAddedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> TimelineElementChildPropertyAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineElementChildPropertyAddedCallback
TimelineElementChildPropertyAddedCallback
cb
let wrapped' :: C_TimelineElementChildPropertyAddedCallback
wrapped' = (a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementChildPropertyAddedCallback a -> TimelineElementChildPropertyAddedCallback
wrapped
FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' <- C_TimelineElementChildPropertyAddedCallback
-> IO (FunPtr C_TimelineElementChildPropertyAddedCallback)
mk_TimelineElementChildPropertyAddedCallback C_TimelineElementChildPropertyAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineElementChildPropertyAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"child-property-added" FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineElementChildPropertyAddedSignalInfo
instance SignalInfo TimelineElementChildPropertyAddedSignalInfo where
type HaskellCallbackType TimelineElementChildPropertyAddedSignalInfo = TimelineElementChildPropertyAddedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineElementChildPropertyAddedCallback cb
cb'' <- mk_TimelineElementChildPropertyAddedCallback cb'
connectSignalFunPtr obj "child-property-added" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement::child-property-added"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:signal:childPropertyAdded"})
#endif
type TimelineElementChildPropertyRemovedCallback =
GObject.Object.Object
-> GParamSpec
-> IO ()
type C_TimelineElementChildPropertyRemovedCallback =
Ptr TimelineElement ->
Ptr GObject.Object.Object ->
Ptr GParamSpec ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineElementChildPropertyRemovedCallback :: C_TimelineElementChildPropertyRemovedCallback -> IO (FunPtr C_TimelineElementChildPropertyRemovedCallback)
wrap_TimelineElementChildPropertyRemovedCallback ::
GObject a => (a -> TimelineElementChildPropertyRemovedCallback) ->
C_TimelineElementChildPropertyRemovedCallback
wrap_TimelineElementChildPropertyRemovedCallback :: forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementChildPropertyRemovedCallback a -> TimelineElementChildPropertyAddedCallback
gi'cb Ptr TimelineElement
gi'selfPtr Ptr Object
propObject Ptr GParamSpec
prop Ptr ()
_ = do
Object
propObject' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Object -> Object
GObject.Object.Object) Ptr Object
propObject
GParamSpec
prop' <- Ptr GParamSpec -> IO GParamSpec
B.GParamSpec.newGParamSpecFromPtr Ptr GParamSpec
prop
Ptr TimelineElement -> (TimelineElement -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr TimelineElement
gi'selfPtr ((TimelineElement -> IO ()) -> IO ())
-> (TimelineElement -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \TimelineElement
gi'self -> a -> TimelineElementChildPropertyAddedCallback
gi'cb (TimelineElement -> a
forall a b. Coercible a b => a -> b
Coerce.coerce TimelineElement
gi'self) Object
propObject' GParamSpec
prop'
onTimelineElementChildPropertyRemoved :: (IsTimelineElement a, MonadIO m) => a -> ((?self :: a) => TimelineElementChildPropertyRemovedCallback) -> m SignalHandlerId
onTimelineElementChildPropertyRemoved :: forall a (m :: * -> *).
(IsTimelineElement a, MonadIO m) =>
a
-> ((?self::a) => TimelineElementChildPropertyAddedCallback)
-> m SignalHandlerId
onTimelineElementChildPropertyRemoved a
obj (?self::a) => TimelineElementChildPropertyAddedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> TimelineElementChildPropertyAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineElementChildPropertyAddedCallback
TimelineElementChildPropertyAddedCallback
cb
let wrapped' :: C_TimelineElementChildPropertyAddedCallback
wrapped' = (a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementChildPropertyRemovedCallback a -> TimelineElementChildPropertyAddedCallback
wrapped
FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' <- C_TimelineElementChildPropertyAddedCallback
-> IO (FunPtr C_TimelineElementChildPropertyAddedCallback)
mk_TimelineElementChildPropertyRemovedCallback C_TimelineElementChildPropertyAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineElementChildPropertyAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"child-property-removed" FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineElementChildPropertyRemoved :: (IsTimelineElement a, MonadIO m) => a -> ((?self :: a) => TimelineElementChildPropertyRemovedCallback) -> m SignalHandlerId
afterTimelineElementChildPropertyRemoved :: forall a (m :: * -> *).
(IsTimelineElement a, MonadIO m) =>
a
-> ((?self::a) => TimelineElementChildPropertyAddedCallback)
-> m SignalHandlerId
afterTimelineElementChildPropertyRemoved a
obj (?self::a) => TimelineElementChildPropertyAddedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> TimelineElementChildPropertyAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineElementChildPropertyAddedCallback
TimelineElementChildPropertyAddedCallback
cb
let wrapped' :: C_TimelineElementChildPropertyAddedCallback
wrapped' = (a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementChildPropertyRemovedCallback a -> TimelineElementChildPropertyAddedCallback
wrapped
FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' <- C_TimelineElementChildPropertyAddedCallback
-> IO (FunPtr C_TimelineElementChildPropertyAddedCallback)
mk_TimelineElementChildPropertyRemovedCallback C_TimelineElementChildPropertyAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineElementChildPropertyAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"child-property-removed" FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineElementChildPropertyRemovedSignalInfo
instance SignalInfo TimelineElementChildPropertyRemovedSignalInfo where
type HaskellCallbackType TimelineElementChildPropertyRemovedSignalInfo = TimelineElementChildPropertyRemovedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineElementChildPropertyRemovedCallback cb
cb'' <- mk_TimelineElementChildPropertyRemovedCallback cb'
connectSignalFunPtr obj "child-property-removed" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement::child-property-removed"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:signal:childPropertyRemoved"})
#endif
type TimelineElementDeepNotifyCallback =
GObject.Object.Object
-> GParamSpec
-> IO ()
type C_TimelineElementDeepNotifyCallback =
Ptr TimelineElement ->
Ptr GObject.Object.Object ->
Ptr GParamSpec ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineElementDeepNotifyCallback :: C_TimelineElementDeepNotifyCallback -> IO (FunPtr C_TimelineElementDeepNotifyCallback)
wrap_TimelineElementDeepNotifyCallback ::
GObject a => (a -> TimelineElementDeepNotifyCallback) ->
C_TimelineElementDeepNotifyCallback
wrap_TimelineElementDeepNotifyCallback :: forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementDeepNotifyCallback a -> TimelineElementChildPropertyAddedCallback
gi'cb Ptr TimelineElement
gi'selfPtr Ptr Object
propObject Ptr GParamSpec
prop Ptr ()
_ = do
Object
propObject' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Object -> Object
GObject.Object.Object) Ptr Object
propObject
GParamSpec
prop' <- Ptr GParamSpec -> IO GParamSpec
B.GParamSpec.newGParamSpecFromPtr Ptr GParamSpec
prop
Ptr TimelineElement -> (TimelineElement -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr TimelineElement
gi'selfPtr ((TimelineElement -> IO ()) -> IO ())
-> (TimelineElement -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \TimelineElement
gi'self -> a -> TimelineElementChildPropertyAddedCallback
gi'cb (TimelineElement -> a
forall a b. Coercible a b => a -> b
Coerce.coerce TimelineElement
gi'self) Object
propObject' GParamSpec
prop'
onTimelineElementDeepNotify :: (IsTimelineElement a, MonadIO m) => a -> P.Maybe T.Text -> ((?self :: a) => TimelineElementDeepNotifyCallback) -> m SignalHandlerId
onTimelineElementDeepNotify :: forall a (m :: * -> *).
(IsTimelineElement a, MonadIO m) =>
a
-> Maybe Text
-> ((?self::a) => TimelineElementChildPropertyAddedCallback)
-> m SignalHandlerId
onTimelineElementDeepNotify a
obj Maybe Text
detail (?self::a) => TimelineElementChildPropertyAddedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> TimelineElementChildPropertyAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineElementChildPropertyAddedCallback
TimelineElementChildPropertyAddedCallback
cb
let wrapped' :: C_TimelineElementChildPropertyAddedCallback
wrapped' = (a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementDeepNotifyCallback a -> TimelineElementChildPropertyAddedCallback
wrapped
FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' <- C_TimelineElementChildPropertyAddedCallback
-> IO (FunPtr C_TimelineElementChildPropertyAddedCallback)
mk_TimelineElementDeepNotifyCallback C_TimelineElementChildPropertyAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineElementChildPropertyAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"deep-notify" FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
detail
afterTimelineElementDeepNotify :: (IsTimelineElement a, MonadIO m) => a -> P.Maybe T.Text -> ((?self :: a) => TimelineElementDeepNotifyCallback) -> m SignalHandlerId
afterTimelineElementDeepNotify :: forall a (m :: * -> *).
(IsTimelineElement a, MonadIO m) =>
a
-> Maybe Text
-> ((?self::a) => TimelineElementChildPropertyAddedCallback)
-> m SignalHandlerId
afterTimelineElementDeepNotify a
obj Maybe Text
detail (?self::a) => TimelineElementChildPropertyAddedCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let wrapped :: a -> TimelineElementChildPropertyAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineElementChildPropertyAddedCallback
TimelineElementChildPropertyAddedCallback
cb
let wrapped' :: C_TimelineElementChildPropertyAddedCallback
wrapped' = (a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
forall a.
GObject a =>
(a -> TimelineElementChildPropertyAddedCallback)
-> C_TimelineElementChildPropertyAddedCallback
wrap_TimelineElementDeepNotifyCallback a -> TimelineElementChildPropertyAddedCallback
wrapped
FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' <- C_TimelineElementChildPropertyAddedCallback
-> IO (FunPtr C_TimelineElementChildPropertyAddedCallback)
mk_TimelineElementDeepNotifyCallback C_TimelineElementChildPropertyAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineElementChildPropertyAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"deep-notify" FunPtr C_TimelineElementChildPropertyAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
detail
#if defined(ENABLE_OVERLOADING)
data TimelineElementDeepNotifySignalInfo
instance SignalInfo TimelineElementDeepNotifySignalInfo where
type HaskellCallbackType TimelineElementDeepNotifySignalInfo = TimelineElementDeepNotifyCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineElementDeepNotifyCallback cb
cb'' <- mk_TimelineElementDeepNotifyCallback cb'
connectSignalFunPtr obj "deep-notify" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement::deep-notify"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:signal:deepNotify"})
#endif
getTimelineElementDuration :: (MonadIO m, IsTimelineElement o) => o -> m Word64
getTimelineElementDuration :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m Word64
getTimelineElementDuration o
obj = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word64
forall a. GObject a => a -> String -> IO Word64
B.Properties.getObjectPropertyUInt64 o
obj String
"duration"
setTimelineElementDuration :: (MonadIO m, IsTimelineElement o) => o -> Word64 -> m ()
setTimelineElementDuration :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> Word64 -> m ()
setTimelineElementDuration o
obj Word64
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word64 -> IO ()
forall a. GObject a => a -> String -> Word64 -> IO ()
B.Properties.setObjectPropertyUInt64 o
obj String
"duration" Word64
val
constructTimelineElementDuration :: (IsTimelineElement o, MIO.MonadIO m) => Word64 -> m (GValueConstruct o)
constructTimelineElementDuration :: forall o (m :: * -> *).
(IsTimelineElement o, MonadIO m) =>
Word64 -> m (GValueConstruct o)
constructTimelineElementDuration Word64
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word64 -> IO (GValueConstruct o)
forall o. String -> Word64 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt64 String
"duration" Word64
val
#if defined(ENABLE_OVERLOADING)
data TimelineElementDurationPropertyInfo
instance AttrInfo TimelineElementDurationPropertyInfo where
type AttrAllowedOps TimelineElementDurationPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineElementDurationPropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementDurationPropertyInfo = (~) Word64
type AttrTransferTypeConstraint TimelineElementDurationPropertyInfo = (~) Word64
type AttrTransferType TimelineElementDurationPropertyInfo = Word64
type AttrGetType TimelineElementDurationPropertyInfo = Word64
type AttrLabel TimelineElementDurationPropertyInfo = "duration"
type AttrOrigin TimelineElementDurationPropertyInfo = TimelineElement
attrGet = getTimelineElementDuration
attrSet = setTimelineElementDuration
attrTransfer _ v = do
return v
attrConstruct = constructTimelineElementDuration
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.duration"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:duration"
})
#endif
getTimelineElementInPoint :: (MonadIO m, IsTimelineElement o) => o -> m Word64
getTimelineElementInPoint :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m Word64
getTimelineElementInPoint o
obj = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word64
forall a. GObject a => a -> String -> IO Word64
B.Properties.getObjectPropertyUInt64 o
obj String
"in-point"
setTimelineElementInPoint :: (MonadIO m, IsTimelineElement o) => o -> Word64 -> m ()
setTimelineElementInPoint :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> Word64 -> m ()
setTimelineElementInPoint o
obj Word64
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word64 -> IO ()
forall a. GObject a => a -> String -> Word64 -> IO ()
B.Properties.setObjectPropertyUInt64 o
obj String
"in-point" Word64
val
constructTimelineElementInPoint :: (IsTimelineElement o, MIO.MonadIO m) => Word64 -> m (GValueConstruct o)
constructTimelineElementInPoint :: forall o (m :: * -> *).
(IsTimelineElement o, MonadIO m) =>
Word64 -> m (GValueConstruct o)
constructTimelineElementInPoint Word64
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word64 -> IO (GValueConstruct o)
forall o. String -> Word64 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt64 String
"in-point" Word64
val
#if defined(ENABLE_OVERLOADING)
data TimelineElementInPointPropertyInfo
instance AttrInfo TimelineElementInPointPropertyInfo where
type AttrAllowedOps TimelineElementInPointPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineElementInPointPropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementInPointPropertyInfo = (~) Word64
type AttrTransferTypeConstraint TimelineElementInPointPropertyInfo = (~) Word64
type AttrTransferType TimelineElementInPointPropertyInfo = Word64
type AttrGetType TimelineElementInPointPropertyInfo = Word64
type AttrLabel TimelineElementInPointPropertyInfo = "in-point"
type AttrOrigin TimelineElementInPointPropertyInfo = TimelineElement
attrGet = getTimelineElementInPoint
attrSet = setTimelineElementInPoint
attrTransfer _ v = do
return v
attrConstruct = constructTimelineElementInPoint
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.inPoint"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:inPoint"
})
#endif
getTimelineElementMaxDuration :: (MonadIO m, IsTimelineElement o) => o -> m Word64
getTimelineElementMaxDuration :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m Word64
getTimelineElementMaxDuration o
obj = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word64
forall a. GObject a => a -> String -> IO Word64
B.Properties.getObjectPropertyUInt64 o
obj String
"max-duration"
setTimelineElementMaxDuration :: (MonadIO m, IsTimelineElement o) => o -> Word64 -> m ()
setTimelineElementMaxDuration :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> Word64 -> m ()
setTimelineElementMaxDuration o
obj Word64
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word64 -> IO ()
forall a. GObject a => a -> String -> Word64 -> IO ()
B.Properties.setObjectPropertyUInt64 o
obj String
"max-duration" Word64
val
constructTimelineElementMaxDuration :: (IsTimelineElement o, MIO.MonadIO m) => Word64 -> m (GValueConstruct o)
constructTimelineElementMaxDuration :: forall o (m :: * -> *).
(IsTimelineElement o, MonadIO m) =>
Word64 -> m (GValueConstruct o)
constructTimelineElementMaxDuration Word64
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word64 -> IO (GValueConstruct o)
forall o. String -> Word64 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt64 String
"max-duration" Word64
val
#if defined(ENABLE_OVERLOADING)
data TimelineElementMaxDurationPropertyInfo
instance AttrInfo TimelineElementMaxDurationPropertyInfo where
type AttrAllowedOps TimelineElementMaxDurationPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineElementMaxDurationPropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementMaxDurationPropertyInfo = (~) Word64
type AttrTransferTypeConstraint TimelineElementMaxDurationPropertyInfo = (~) Word64
type AttrTransferType TimelineElementMaxDurationPropertyInfo = Word64
type AttrGetType TimelineElementMaxDurationPropertyInfo = Word64
type AttrLabel TimelineElementMaxDurationPropertyInfo = "max-duration"
type AttrOrigin TimelineElementMaxDurationPropertyInfo = TimelineElement
attrGet = getTimelineElementMaxDuration
attrSet = setTimelineElementMaxDuration
attrTransfer _ v = do
return v
attrConstruct = constructTimelineElementMaxDuration
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.maxDuration"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:maxDuration"
})
#endif
getTimelineElementName :: (MonadIO m, IsTimelineElement o) => o -> m (Maybe T.Text)
getTimelineElementName :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m (Maybe Text)
getTimelineElementName o
obj = IO (Maybe Text) -> m (Maybe Text)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"name"
setTimelineElementName :: (MonadIO m, IsTimelineElement o) => o -> T.Text -> m ()
setTimelineElementName :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> Text -> m ()
setTimelineElementName o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"name" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructTimelineElementName :: (IsTimelineElement o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructTimelineElementName :: forall o (m :: * -> *).
(IsTimelineElement o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructTimelineElementName Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"name" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearTimelineElementName :: (MonadIO m, IsTimelineElement o) => o -> m ()
clearTimelineElementName :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m ()
clearTimelineElementName o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"name" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data TimelineElementNamePropertyInfo
instance AttrInfo TimelineElementNamePropertyInfo where
type AttrAllowedOps TimelineElementNamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint TimelineElementNamePropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementNamePropertyInfo = (~) T.Text
type AttrTransferTypeConstraint TimelineElementNamePropertyInfo = (~) T.Text
type AttrTransferType TimelineElementNamePropertyInfo = T.Text
type AttrGetType TimelineElementNamePropertyInfo = (Maybe T.Text)
type AttrLabel TimelineElementNamePropertyInfo = "name"
type AttrOrigin TimelineElementNamePropertyInfo = TimelineElement
attrGet = getTimelineElementName
attrSet = setTimelineElementName
attrTransfer _ v = do
return v
attrConstruct = constructTimelineElementName
attrClear = clearTimelineElementName
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.name"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:name"
})
#endif
getTimelineElementParent :: (MonadIO m, IsTimelineElement o) => o -> m (Maybe TimelineElement)
getTimelineElementParent :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m (Maybe TimelineElement)
getTimelineElementParent o
obj = IO (Maybe TimelineElement) -> m (Maybe TimelineElement)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe TimelineElement) -> m (Maybe TimelineElement))
-> IO (Maybe TimelineElement) -> m (Maybe TimelineElement)
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr TimelineElement -> TimelineElement)
-> IO (Maybe TimelineElement)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"parent" ManagedPtr TimelineElement -> TimelineElement
TimelineElement
setTimelineElementParent :: (MonadIO m, IsTimelineElement o, IsTimelineElement a) => o -> a -> m ()
setTimelineElementParent :: forall (m :: * -> *) o a.
(MonadIO m, IsTimelineElement o, IsTimelineElement a) =>
o -> a -> m ()
setTimelineElementParent o
obj a
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"parent" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructTimelineElementParent :: (IsTimelineElement o, MIO.MonadIO m, IsTimelineElement a) => a -> m (GValueConstruct o)
constructTimelineElementParent :: forall o (m :: * -> *) a.
(IsTimelineElement o, MonadIO m, IsTimelineElement a) =>
a -> m (GValueConstruct o)
constructTimelineElementParent a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"parent" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearTimelineElementParent :: (MonadIO m, IsTimelineElement o) => o -> m ()
clearTimelineElementParent :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m ()
clearTimelineElementParent o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe TimelineElement -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"parent" (Maybe TimelineElement
forall a. Maybe a
Nothing :: Maybe TimelineElement)
#if defined(ENABLE_OVERLOADING)
data TimelineElementParentPropertyInfo
instance AttrInfo TimelineElementParentPropertyInfo where
type AttrAllowedOps TimelineElementParentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint TimelineElementParentPropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementParentPropertyInfo = IsTimelineElement
type AttrTransferTypeConstraint TimelineElementParentPropertyInfo = IsTimelineElement
type AttrTransferType TimelineElementParentPropertyInfo = TimelineElement
type AttrGetType TimelineElementParentPropertyInfo = (Maybe TimelineElement)
type AttrLabel TimelineElementParentPropertyInfo = "parent"
type AttrOrigin TimelineElementParentPropertyInfo = TimelineElement
attrGet = getTimelineElementParent
attrSet = setTimelineElementParent
attrTransfer _ v = do
unsafeCastTo TimelineElement v
attrConstruct = constructTimelineElementParent
attrClear = clearTimelineElementParent
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.parent"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:parent"
})
#endif
getTimelineElementPriority :: (MonadIO m, IsTimelineElement o) => o -> m Word32
getTimelineElementPriority :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m Word32
getTimelineElementPriority o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"priority"
setTimelineElementPriority :: (MonadIO m, IsTimelineElement o) => o -> Word32 -> m ()
setTimelineElementPriority :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> Word32 -> m ()
setTimelineElementPriority o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"priority" Word32
val
constructTimelineElementPriority :: (IsTimelineElement o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructTimelineElementPriority :: forall o (m :: * -> *).
(IsTimelineElement o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructTimelineElementPriority Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"priority" Word32
val
#if defined(ENABLE_OVERLOADING)
data TimelineElementPriorityPropertyInfo
instance AttrInfo TimelineElementPriorityPropertyInfo where
type AttrAllowedOps TimelineElementPriorityPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineElementPriorityPropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementPriorityPropertyInfo = (~) Word32
type AttrTransferTypeConstraint TimelineElementPriorityPropertyInfo = (~) Word32
type AttrTransferType TimelineElementPriorityPropertyInfo = Word32
type AttrGetType TimelineElementPriorityPropertyInfo = Word32
type AttrLabel TimelineElementPriorityPropertyInfo = "priority"
type AttrOrigin TimelineElementPriorityPropertyInfo = TimelineElement
attrGet = getTimelineElementPriority
attrSet = setTimelineElementPriority
attrTransfer _ v = do
return v
attrConstruct = constructTimelineElementPriority
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.priority"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:priority"
})
#endif
getTimelineElementSerialize :: (MonadIO m, IsTimelineElement o) => o -> m Bool
getTimelineElementSerialize :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m Bool
getTimelineElementSerialize o
obj = IO Bool -> m Bool
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj String
"serialize"
setTimelineElementSerialize :: (MonadIO m, IsTimelineElement o) => o -> Bool -> m ()
setTimelineElementSerialize :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> Bool -> m ()
setTimelineElementSerialize o
obj Bool
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj String
"serialize" Bool
val
constructTimelineElementSerialize :: (IsTimelineElement o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructTimelineElementSerialize :: forall o (m :: * -> *).
(IsTimelineElement o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructTimelineElementSerialize Bool
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool String
"serialize" Bool
val
#if defined(ENABLE_OVERLOADING)
data TimelineElementSerializePropertyInfo
instance AttrInfo TimelineElementSerializePropertyInfo where
type AttrAllowedOps TimelineElementSerializePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineElementSerializePropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementSerializePropertyInfo = (~) Bool
type AttrTransferTypeConstraint TimelineElementSerializePropertyInfo = (~) Bool
type AttrTransferType TimelineElementSerializePropertyInfo = Bool
type AttrGetType TimelineElementSerializePropertyInfo = Bool
type AttrLabel TimelineElementSerializePropertyInfo = "serialize"
type AttrOrigin TimelineElementSerializePropertyInfo = TimelineElement
attrGet = getTimelineElementSerialize
attrSet = setTimelineElementSerialize
attrTransfer _ v = do
return v
attrConstruct = constructTimelineElementSerialize
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.serialize"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:serialize"
})
#endif
getTimelineElementStart :: (MonadIO m, IsTimelineElement o) => o -> m Word64
getTimelineElementStart :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m Word64
getTimelineElementStart o
obj = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word64
forall a. GObject a => a -> String -> IO Word64
B.Properties.getObjectPropertyUInt64 o
obj String
"start"
setTimelineElementStart :: (MonadIO m, IsTimelineElement o) => o -> Word64 -> m ()
setTimelineElementStart :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> Word64 -> m ()
setTimelineElementStart o
obj Word64
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Word64 -> IO ()
forall a. GObject a => a -> String -> Word64 -> IO ()
B.Properties.setObjectPropertyUInt64 o
obj String
"start" Word64
val
constructTimelineElementStart :: (IsTimelineElement o, MIO.MonadIO m) => Word64 -> m (GValueConstruct o)
constructTimelineElementStart :: forall o (m :: * -> *).
(IsTimelineElement o, MonadIO m) =>
Word64 -> m (GValueConstruct o)
constructTimelineElementStart Word64
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word64 -> IO (GValueConstruct o)
forall o. String -> Word64 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt64 String
"start" Word64
val
#if defined(ENABLE_OVERLOADING)
data TimelineElementStartPropertyInfo
instance AttrInfo TimelineElementStartPropertyInfo where
type AttrAllowedOps TimelineElementStartPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineElementStartPropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementStartPropertyInfo = (~) Word64
type AttrTransferTypeConstraint TimelineElementStartPropertyInfo = (~) Word64
type AttrTransferType TimelineElementStartPropertyInfo = Word64
type AttrGetType TimelineElementStartPropertyInfo = Word64
type AttrLabel TimelineElementStartPropertyInfo = "start"
type AttrOrigin TimelineElementStartPropertyInfo = TimelineElement
attrGet = getTimelineElementStart
attrSet = setTimelineElementStart
attrTransfer _ v = do
return v
attrConstruct = constructTimelineElementStart
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.start"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:start"
})
#endif
getTimelineElementTimeline :: (MonadIO m, IsTimelineElement o) => o -> m (Maybe GES.Timeline.Timeline)
getTimelineElementTimeline :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m (Maybe Timeline)
getTimelineElementTimeline o
obj = IO (Maybe Timeline) -> m (Maybe Timeline)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Timeline) -> m (Maybe Timeline))
-> IO (Maybe Timeline) -> m (Maybe Timeline)
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr Timeline -> Timeline)
-> IO (Maybe Timeline)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"timeline" ManagedPtr Timeline -> Timeline
GES.Timeline.Timeline
setTimelineElementTimeline :: (MonadIO m, IsTimelineElement o, GES.Timeline.IsTimeline a) => o -> a -> m ()
setTimelineElementTimeline :: forall (m :: * -> *) o a.
(MonadIO m, IsTimelineElement o, IsTimeline a) =>
o -> a -> m ()
setTimelineElementTimeline o
obj a
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe a -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"timeline" (a -> Maybe a
forall a. a -> Maybe a
Just a
val)
constructTimelineElementTimeline :: (IsTimelineElement o, MIO.MonadIO m, GES.Timeline.IsTimeline a) => a -> m (GValueConstruct o)
constructTimelineElementTimeline :: forall o (m :: * -> *) a.
(IsTimelineElement o, MonadIO m, IsTimeline a) =>
a -> m (GValueConstruct o)
constructTimelineElementTimeline a
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"timeline" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
clearTimelineElementTimeline :: (MonadIO m, IsTimelineElement o) => o -> m ()
clearTimelineElementTimeline :: forall (m :: * -> *) o.
(MonadIO m, IsTimelineElement o) =>
o -> m ()
clearTimelineElementTimeline o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Timeline -> IO ()
forall a b.
(GObject a, GObject b) =>
a -> String -> Maybe b -> IO ()
B.Properties.setObjectPropertyObject o
obj String
"timeline" (Maybe Timeline
forall a. Maybe a
Nothing :: Maybe GES.Timeline.Timeline)
#if defined(ENABLE_OVERLOADING)
data TimelineElementTimelinePropertyInfo
instance AttrInfo TimelineElementTimelinePropertyInfo where
type AttrAllowedOps TimelineElementTimelinePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint TimelineElementTimelinePropertyInfo = IsTimelineElement
type AttrSetTypeConstraint TimelineElementTimelinePropertyInfo = GES.Timeline.IsTimeline
type AttrTransferTypeConstraint TimelineElementTimelinePropertyInfo = GES.Timeline.IsTimeline
type AttrTransferType TimelineElementTimelinePropertyInfo = GES.Timeline.Timeline
type AttrGetType TimelineElementTimelinePropertyInfo = (Maybe GES.Timeline.Timeline)
type AttrLabel TimelineElementTimelinePropertyInfo = "timeline"
type AttrOrigin TimelineElementTimelinePropertyInfo = TimelineElement
attrGet = getTimelineElementTimeline
attrSet = setTimelineElementTimeline
attrTransfer _ v = do
unsafeCastTo GES.Timeline.Timeline v
attrConstruct = constructTimelineElementTimeline
attrClear = clearTimelineElementTimeline
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timeline"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#g:attr:timeline"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList TimelineElement
type instance O.AttributeList TimelineElement = TimelineElementAttributeList
type TimelineElementAttributeList = ('[ '("duration", TimelineElementDurationPropertyInfo), '("inPoint", TimelineElementInPointPropertyInfo), '("maxDuration", TimelineElementMaxDurationPropertyInfo), '("name", TimelineElementNamePropertyInfo), '("parent", TimelineElementParentPropertyInfo), '("priority", TimelineElementPriorityPropertyInfo), '("serialize", TimelineElementSerializePropertyInfo), '("start", TimelineElementStartPropertyInfo), '("timeline", TimelineElementTimelinePropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
timelineElementDuration :: AttrLabelProxy "duration"
timelineElementDuration = AttrLabelProxy
timelineElementInPoint :: AttrLabelProxy "inPoint"
timelineElementInPoint = AttrLabelProxy
timelineElementMaxDuration :: AttrLabelProxy "maxDuration"
timelineElementMaxDuration = AttrLabelProxy
timelineElementName :: AttrLabelProxy "name"
timelineElementName = AttrLabelProxy
timelineElementParent :: AttrLabelProxy "parent"
timelineElementParent = AttrLabelProxy
timelineElementPriority :: AttrLabelProxy "priority"
timelineElementPriority = AttrLabelProxy
timelineElementSerialize :: AttrLabelProxy "serialize"
timelineElementSerialize = AttrLabelProxy
timelineElementStart :: AttrLabelProxy "start"
timelineElementStart = AttrLabelProxy
timelineElementTimeline :: AttrLabelProxy "timeline"
timelineElementTimeline = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList TimelineElement = TimelineElementSignalList
type TimelineElementSignalList = ('[ '("childPropertyAdded", TimelineElementChildPropertyAddedSignalInfo), '("childPropertyRemoved", TimelineElementChildPropertyRemovedSignalInfo), '("deepNotify", TimelineElementDeepNotifySignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("notifyMeta", GES.MetaContainer.MetaContainerNotifyMetaSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "ges_timeline_element_add_child_property" ges_timeline_element_add_child_property ::
Ptr TimelineElement ->
Ptr GParamSpec ->
Ptr GObject.Object.Object ->
IO CInt
timelineElementAddChildProperty ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a, GObject.Object.IsObject b) =>
a
-> GParamSpec
-> b
-> m Bool
timelineElementAddChildProperty :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimelineElement a, IsObject b) =>
a -> GParamSpec -> b -> m Bool
timelineElementAddChildProperty a
self GParamSpec
pspec b
child = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr GParamSpec
pspec' <- GParamSpec -> IO (Ptr GParamSpec)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GParamSpec
pspec
Ptr Object
child' <- b -> IO (Ptr Object)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
child
CInt
result <- Ptr TimelineElement -> Ptr GParamSpec -> Ptr Object -> IO CInt
ges_timeline_element_add_child_property Ptr TimelineElement
self' Ptr GParamSpec
pspec' Ptr Object
child'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
GParamSpec -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GParamSpec
pspec
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
child
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementAddChildPropertyMethodInfo
instance (signature ~ (GParamSpec -> b -> m Bool), MonadIO m, IsTimelineElement a, GObject.Object.IsObject b) => O.OverloadedMethod TimelineElementAddChildPropertyMethodInfo a signature where
overloadedMethod = timelineElementAddChildProperty
instance O.OverloadedMethodInfo TimelineElementAddChildPropertyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementAddChildProperty",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementAddChildProperty"
})
#endif
foreign import ccall "ges_timeline_element_copy" ges_timeline_element_copy ::
Ptr TimelineElement ->
CInt ->
IO (Ptr TimelineElement)
timelineElementCopy ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Bool
-> m TimelineElement
timelineElementCopy :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Bool -> m TimelineElement
timelineElementCopy a
self Bool
deep = IO TimelineElement -> m TimelineElement
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TimelineElement -> m TimelineElement)
-> IO TimelineElement -> m TimelineElement
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let deep' :: CInt
deep' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
P.fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
P.fromEnum) Bool
deep
Ptr TimelineElement
result <- Ptr TimelineElement -> CInt -> IO (Ptr TimelineElement)
ges_timeline_element_copy Ptr TimelineElement
self' CInt
deep'
Text -> Ptr TimelineElement -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"timelineElementCopy" Ptr TimelineElement
result
TimelineElement
result' <- ((ManagedPtr TimelineElement -> TimelineElement)
-> Ptr TimelineElement -> IO TimelineElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TimelineElement -> TimelineElement
TimelineElement) Ptr TimelineElement
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
TimelineElement -> IO TimelineElement
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TimelineElement
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementCopyMethodInfo
instance (signature ~ (Bool -> m TimelineElement), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementCopyMethodInfo a signature where
overloadedMethod = timelineElementCopy
instance O.OverloadedMethodInfo TimelineElementCopyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementCopy",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementCopy"
})
#endif
foreign import ccall "ges_timeline_element_edit" ges_timeline_element_edit ::
Ptr TimelineElement ->
Ptr (GList (Ptr GES.Layer.Layer)) ->
Int64 ->
CUInt ->
CUInt ->
Word64 ->
IO CInt
timelineElementEdit ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a, GES.Layer.IsLayer b) =>
a
-> [b]
-> Int64
-> GES.Enums.EditMode
-> GES.Enums.Edge
-> Word64
-> m Bool
timelineElementEdit :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimelineElement a, IsLayer b) =>
a -> [b] -> Int64 -> EditMode -> Edge -> Word64 -> m Bool
timelineElementEdit a
self [b]
layers Int64
newLayerPriority EditMode
mode Edge
edge Word64
position = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
[Ptr Layer]
layers' <- (b -> IO (Ptr Layer)) -> [b] -> IO [Ptr Layer]
forall (t :: * -> *) (m :: * -> *) a b.
(Traversable t, Monad m) =>
(a -> m b) -> t a -> m (t b)
forall (m :: * -> *) a b. Monad m => (a -> m b) -> [a] -> m [b]
mapM b -> IO (Ptr Layer)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr [b]
layers
Ptr (GList (Ptr Layer))
layers'' <- [Ptr Layer] -> IO (Ptr (GList (Ptr Layer)))
forall a. [Ptr a] -> IO (Ptr (GList (Ptr a)))
packGList [Ptr Layer]
layers'
let mode' :: CUInt
mode' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (EditMode -> Int) -> EditMode -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. EditMode -> Int
forall a. Enum a => a -> Int
fromEnum) EditMode
mode
let edge' :: CUInt
edge' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (Edge -> Int) -> Edge -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Edge -> Int
forall a. Enum a => a -> Int
fromEnum) Edge
edge
CInt
result <- Ptr TimelineElement
-> Ptr (GList (Ptr Layer))
-> Int64
-> CUInt
-> CUInt
-> Word64
-> IO CInt
ges_timeline_element_edit Ptr TimelineElement
self' Ptr (GList (Ptr Layer))
layers'' Int64
newLayerPriority CUInt
mode' CUInt
edge' Word64
position
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
(b -> IO ()) -> [b] -> IO ()
forall (t :: * -> *) (m :: * -> *) a b.
(Foldable t, Monad m) =>
(a -> m b) -> t a -> m ()
mapM_ b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr [b]
layers
Ptr (GList (Ptr Layer)) -> IO ()
forall a. Ptr (GList a) -> IO ()
g_list_free Ptr (GList (Ptr Layer))
layers''
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementEditMethodInfo
instance (signature ~ ([b] -> Int64 -> GES.Enums.EditMode -> GES.Enums.Edge -> Word64 -> m Bool), MonadIO m, IsTimelineElement a, GES.Layer.IsLayer b) => O.OverloadedMethod TimelineElementEditMethodInfo a signature where
overloadedMethod = timelineElementEdit
instance O.OverloadedMethodInfo TimelineElementEditMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementEdit",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementEdit"
})
#endif
foreign import ccall "ges_timeline_element_edit_full" ges_timeline_element_edit_full ::
Ptr TimelineElement ->
Int64 ->
CUInt ->
CUInt ->
Word64 ->
Ptr (Ptr GError) ->
IO CInt
timelineElementEditFull ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Int64
-> GES.Enums.EditMode
-> GES.Enums.Edge
-> Word64
-> m ()
timelineElementEditFull :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Int64 -> EditMode -> Edge -> Word64 -> m ()
timelineElementEditFull a
self Int64
newLayerPriority EditMode
mode Edge
edge Word64
position = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let mode' :: CUInt
mode' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (EditMode -> Int) -> EditMode -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. EditMode -> Int
forall a. Enum a => a -> Int
fromEnum) EditMode
mode
let edge' :: CUInt
edge' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (Edge -> Int) -> Edge -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Edge -> Int
forall a. Enum a => a -> Int
fromEnum) Edge
edge
IO () -> IO () -> IO ()
forall a b. IO a -> IO b -> IO a
onException (do
CInt
_ <- (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO CInt) -> IO CInt)
-> (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ Ptr TimelineElement
-> Int64 -> CUInt -> CUInt -> Word64 -> Ptr (Ptr GError) -> IO CInt
ges_timeline_element_edit_full Ptr TimelineElement
self' Int64
newLayerPriority CUInt
mode' CUInt
edge' Word64
position
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data TimelineElementEditFullMethodInfo
instance (signature ~ (Int64 -> GES.Enums.EditMode -> GES.Enums.Edge -> Word64 -> m ()), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementEditFullMethodInfo a signature where
overloadedMethod = timelineElementEditFull
instance O.OverloadedMethodInfo TimelineElementEditFullMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementEditFull",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementEditFull"
})
#endif
foreign import ccall "ges_timeline_element_get_child_property" ges_timeline_element_get_child_property ::
Ptr TimelineElement ->
CString ->
Ptr GValue ->
IO CInt
timelineElementGetChildProperty ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> T.Text
-> m ((Bool, GValue))
timelineElementGetChildProperty :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Text -> m (Bool, GValue)
timelineElementGetChildProperty a
self Text
propertyName = IO (Bool, GValue) -> m (Bool, GValue)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Bool, GValue) -> m (Bool, GValue))
-> IO (Bool, GValue) -> m (Bool, GValue)
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
propertyName' <- Text -> IO CString
textToCString Text
propertyName
Ptr GValue
value <- Int -> IO (Ptr GValue)
forall a. Int -> IO (Ptr a)
SP.callocBytes Int
24 :: IO (Ptr GValue)
CInt
result <- Ptr TimelineElement -> CString -> Ptr GValue -> IO CInt
ges_timeline_element_get_child_property Ptr TimelineElement
self' CString
propertyName' Ptr GValue
value
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
GValue
value' <- Ptr GValue -> IO GValue
B.GValue.wrapGValuePtr Ptr GValue
value
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
propertyName'
(Bool, GValue) -> IO (Bool, GValue)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', GValue
value')
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetChildPropertyMethodInfo
instance (signature ~ (T.Text -> m ((Bool, GValue))), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetChildPropertyMethodInfo a signature where
overloadedMethod = timelineElementGetChildProperty
instance O.OverloadedMethodInfo TimelineElementGetChildPropertyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetChildProperty",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetChildProperty"
})
#endif
foreign import ccall "ges_timeline_element_get_child_property_by_pspec" ges_timeline_element_get_child_property_by_pspec ::
Ptr TimelineElement ->
Ptr GParamSpec ->
Ptr GValue ->
IO ()
timelineElementGetChildPropertyByPspec ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> GParamSpec
-> m (GValue)
timelineElementGetChildPropertyByPspec :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> GParamSpec -> m GValue
timelineElementGetChildPropertyByPspec a
self GParamSpec
pspec = IO GValue -> m GValue
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO GValue -> m GValue) -> IO GValue -> m GValue
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr GParamSpec
pspec' <- GParamSpec -> IO (Ptr GParamSpec)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GParamSpec
pspec
Ptr GValue
value <- Int -> IO (Ptr GValue)
forall a. Int -> IO (Ptr a)
SP.callocBytes Int
24 :: IO (Ptr GValue)
Ptr TimelineElement -> Ptr GParamSpec -> Ptr GValue -> IO ()
ges_timeline_element_get_child_property_by_pspec Ptr TimelineElement
self' Ptr GParamSpec
pspec' Ptr GValue
value
GValue
value' <- Ptr GValue -> IO GValue
B.GValue.wrapGValuePtr Ptr GValue
value
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
GParamSpec -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GParamSpec
pspec
GValue -> IO GValue
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return GValue
value'
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetChildPropertyByPspecMethodInfo
instance (signature ~ (GParamSpec -> m (GValue)), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetChildPropertyByPspecMethodInfo a signature where
overloadedMethod = timelineElementGetChildPropertyByPspec
instance O.OverloadedMethodInfo TimelineElementGetChildPropertyByPspecMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetChildPropertyByPspec",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetChildPropertyByPspec"
})
#endif
foreign import ccall "ges_timeline_element_get_duration" ges_timeline_element_get_duration ::
Ptr TimelineElement ->
IO Word64
timelineElementGetDuration ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m Word64
timelineElementGetDuration :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m Word64
timelineElementGetDuration a
self = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word64
result <- Ptr TimelineElement -> IO Word64
ges_timeline_element_get_duration Ptr TimelineElement
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetDurationMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetDurationMethodInfo a signature where
overloadedMethod = timelineElementGetDuration
instance O.OverloadedMethodInfo TimelineElementGetDurationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetDuration",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetDuration"
})
#endif
foreign import ccall "ges_timeline_element_get_inpoint" ges_timeline_element_get_inpoint ::
Ptr TimelineElement ->
IO Word64
timelineElementGetInpoint ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m Word64
timelineElementGetInpoint :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m Word64
timelineElementGetInpoint a
self = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word64
result <- Ptr TimelineElement -> IO Word64
ges_timeline_element_get_inpoint Ptr TimelineElement
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetInpointMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetInpointMethodInfo a signature where
overloadedMethod = timelineElementGetInpoint
instance O.OverloadedMethodInfo TimelineElementGetInpointMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetInpoint",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetInpoint"
})
#endif
foreign import ccall "ges_timeline_element_get_layer_priority" ges_timeline_element_get_layer_priority ::
Ptr TimelineElement ->
IO Word32
timelineElementGetLayerPriority ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m Word32
timelineElementGetLayerPriority :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m Word32
timelineElementGetLayerPriority a
self = IO Word32 -> m Word32
forall a. IO a -> m a
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
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word32
result <- Ptr TimelineElement -> IO Word32
ges_timeline_element_get_layer_priority Ptr TimelineElement
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetLayerPriorityMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetLayerPriorityMethodInfo a signature where
overloadedMethod = timelineElementGetLayerPriority
instance O.OverloadedMethodInfo TimelineElementGetLayerPriorityMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetLayerPriority",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetLayerPriority"
})
#endif
foreign import ccall "ges_timeline_element_get_max_duration" ges_timeline_element_get_max_duration ::
Ptr TimelineElement ->
IO Word64
timelineElementGetMaxDuration ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m Word64
timelineElementGetMaxDuration :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m Word64
timelineElementGetMaxDuration a
self = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word64
result <- Ptr TimelineElement -> IO Word64
ges_timeline_element_get_max_duration Ptr TimelineElement
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetMaxDurationMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetMaxDurationMethodInfo a signature where
overloadedMethod = timelineElementGetMaxDuration
instance O.OverloadedMethodInfo TimelineElementGetMaxDurationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetMaxDuration",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetMaxDuration"
})
#endif
foreign import ccall "ges_timeline_element_get_name" ges_timeline_element_get_name ::
Ptr TimelineElement ->
IO CString
timelineElementGetName ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m (Maybe T.Text)
timelineElementGetName :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m (Maybe Text)
timelineElementGetName a
self = IO (Maybe Text) -> m (Maybe Text)
forall a. IO a -> m a
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
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
result <- Ptr TimelineElement -> IO CString
ges_timeline_element_get_name Ptr TimelineElement
self'
Maybe Text
maybeResult <- CString -> (CString -> IO Text) -> IO (Maybe Text)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull CString
result ((CString -> IO Text) -> IO (Maybe Text))
-> (CString -> IO Text) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \CString
result' -> do
Text
result'' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
result'
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe Text -> IO (Maybe Text)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Text
maybeResult
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetNameMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetNameMethodInfo a signature where
overloadedMethod = timelineElementGetName
instance O.OverloadedMethodInfo TimelineElementGetNameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetName",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetName"
})
#endif
foreign import ccall "ges_timeline_element_get_natural_framerate" ges_timeline_element_get_natural_framerate ::
Ptr TimelineElement ->
Ptr Int32 ->
Ptr Int32 ->
IO CInt
timelineElementGetNaturalFramerate ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m ((Bool, Int32, Int32))
timelineElementGetNaturalFramerate :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m (Bool, Int32, Int32)
timelineElementGetNaturalFramerate a
self = IO (Bool, Int32, Int32) -> m (Bool, Int32, Int32)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Bool, Int32, Int32) -> m (Bool, Int32, Int32))
-> IO (Bool, Int32, Int32) -> m (Bool, Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr Int32
framerateN <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
framerateD <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
CInt
result <- Ptr TimelineElement -> Ptr Int32 -> Ptr Int32 -> IO CInt
ges_timeline_element_get_natural_framerate Ptr TimelineElement
self' Ptr Int32
framerateN Ptr Int32
framerateD
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Int32
framerateN' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
framerateN
Int32
framerateD' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
framerateD
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
framerateN
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
framerateD
(Bool, Int32, Int32) -> IO (Bool, Int32, Int32)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Int32
framerateN', Int32
framerateD')
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetNaturalFramerateMethodInfo
instance (signature ~ (m ((Bool, Int32, Int32))), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetNaturalFramerateMethodInfo a signature where
overloadedMethod = timelineElementGetNaturalFramerate
instance O.OverloadedMethodInfo TimelineElementGetNaturalFramerateMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetNaturalFramerate",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetNaturalFramerate"
})
#endif
foreign import ccall "ges_timeline_element_get_parent" ges_timeline_element_get_parent ::
Ptr TimelineElement ->
IO (Ptr TimelineElement)
timelineElementGetParent ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m (Maybe TimelineElement)
timelineElementGetParent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m (Maybe TimelineElement)
timelineElementGetParent a
self = IO (Maybe TimelineElement) -> m (Maybe TimelineElement)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe TimelineElement) -> m (Maybe TimelineElement))
-> IO (Maybe TimelineElement) -> m (Maybe TimelineElement)
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr TimelineElement
result <- Ptr TimelineElement -> IO (Ptr TimelineElement)
ges_timeline_element_get_parent Ptr TimelineElement
self'
Maybe TimelineElement
maybeResult <- Ptr TimelineElement
-> (Ptr TimelineElement -> IO TimelineElement)
-> IO (Maybe TimelineElement)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr TimelineElement
result ((Ptr TimelineElement -> IO TimelineElement)
-> IO (Maybe TimelineElement))
-> (Ptr TimelineElement -> IO TimelineElement)
-> IO (Maybe TimelineElement)
forall a b. (a -> b) -> a -> b
$ \Ptr TimelineElement
result' -> do
TimelineElement
result'' <- ((ManagedPtr TimelineElement -> TimelineElement)
-> Ptr TimelineElement -> IO TimelineElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr TimelineElement -> TimelineElement
TimelineElement) Ptr TimelineElement
result'
TimelineElement -> IO TimelineElement
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TimelineElement
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe TimelineElement -> IO (Maybe TimelineElement)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe TimelineElement
maybeResult
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetParentMethodInfo
instance (signature ~ (m (Maybe TimelineElement)), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetParentMethodInfo a signature where
overloadedMethod = timelineElementGetParent
instance O.OverloadedMethodInfo TimelineElementGetParentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetParent",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetParent"
})
#endif
foreign import ccall "ges_timeline_element_get_priority" ges_timeline_element_get_priority ::
Ptr TimelineElement ->
IO Word32
timelineElementGetPriority ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m Word32
timelineElementGetPriority :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m Word32
timelineElementGetPriority a
self = IO Word32 -> m Word32
forall a. IO a -> m a
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
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word32
result <- Ptr TimelineElement -> IO Word32
ges_timeline_element_get_priority Ptr TimelineElement
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetPriorityMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetPriorityMethodInfo a signature where
overloadedMethod = timelineElementGetPriority
instance O.OverloadedMethodInfo TimelineElementGetPriorityMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetPriority",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetPriority"
})
#endif
foreign import ccall "ges_timeline_element_get_start" ges_timeline_element_get_start ::
Ptr TimelineElement ->
IO Word64
timelineElementGetStart ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m Word64
timelineElementGetStart :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m Word64
timelineElementGetStart a
self = IO Word64 -> m Word64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word64 -> m Word64) -> IO Word64 -> m Word64
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word64
result <- Ptr TimelineElement -> IO Word64
ges_timeline_element_get_start Ptr TimelineElement
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetStartMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetStartMethodInfo a signature where
overloadedMethod = timelineElementGetStart
instance O.OverloadedMethodInfo TimelineElementGetStartMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetStart",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetStart"
})
#endif
foreign import ccall "ges_timeline_element_get_timeline" ges_timeline_element_get_timeline ::
Ptr TimelineElement ->
IO (Ptr GES.Timeline.Timeline)
timelineElementGetTimeline ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m (Maybe GES.Timeline.Timeline)
timelineElementGetTimeline :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m (Maybe Timeline)
timelineElementGetTimeline a
self = IO (Maybe Timeline) -> m (Maybe Timeline)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Timeline) -> m (Maybe Timeline))
-> IO (Maybe Timeline) -> m (Maybe Timeline)
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr Timeline
result <- Ptr TimelineElement -> IO (Ptr Timeline)
ges_timeline_element_get_timeline Ptr TimelineElement
self'
Maybe Timeline
maybeResult <- Ptr Timeline
-> (Ptr Timeline -> IO Timeline) -> IO (Maybe Timeline)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Timeline
result ((Ptr Timeline -> IO Timeline) -> IO (Maybe Timeline))
-> (Ptr Timeline -> IO Timeline) -> IO (Maybe Timeline)
forall a b. (a -> b) -> a -> b
$ \Ptr Timeline
result' -> do
Timeline
result'' <- ((ManagedPtr Timeline -> Timeline) -> Ptr Timeline -> IO Timeline
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr Timeline -> Timeline
GES.Timeline.Timeline) Ptr Timeline
result'
Timeline -> IO Timeline
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Timeline
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe Timeline -> IO (Maybe Timeline)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Timeline
maybeResult
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetTimelineMethodInfo
instance (signature ~ (m (Maybe GES.Timeline.Timeline)), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetTimelineMethodInfo a signature where
overloadedMethod = timelineElementGetTimeline
instance O.OverloadedMethodInfo TimelineElementGetTimelineMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetTimeline",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetTimeline"
})
#endif
foreign import ccall "ges_timeline_element_get_toplevel_parent" ges_timeline_element_get_toplevel_parent ::
Ptr TimelineElement ->
IO (Ptr TimelineElement)
timelineElementGetToplevelParent ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m TimelineElement
timelineElementGetToplevelParent :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m TimelineElement
timelineElementGetToplevelParent a
self = IO TimelineElement -> m TimelineElement
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TimelineElement -> m TimelineElement)
-> IO TimelineElement -> m TimelineElement
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr TimelineElement
result <- Ptr TimelineElement -> IO (Ptr TimelineElement)
ges_timeline_element_get_toplevel_parent Ptr TimelineElement
self'
Text -> Ptr TimelineElement -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"timelineElementGetToplevelParent" Ptr TimelineElement
result
TimelineElement
result' <- ((ManagedPtr TimelineElement -> TimelineElement)
-> Ptr TimelineElement -> IO TimelineElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr TimelineElement -> TimelineElement
TimelineElement) Ptr TimelineElement
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
TimelineElement -> IO TimelineElement
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TimelineElement
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetToplevelParentMethodInfo
instance (signature ~ (m TimelineElement), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetToplevelParentMethodInfo a signature where
overloadedMethod = timelineElementGetToplevelParent
instance O.OverloadedMethodInfo TimelineElementGetToplevelParentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetToplevelParent",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetToplevelParent"
})
#endif
foreign import ccall "ges_timeline_element_get_track_types" ges_timeline_element_get_track_types ::
Ptr TimelineElement ->
IO CUInt
timelineElementGetTrackTypes ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> m [GES.Flags.TrackType]
timelineElementGetTrackTypes :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> m [TrackType]
timelineElementGetTrackTypes a
self = IO [TrackType] -> m [TrackType]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [TrackType] -> m [TrackType])
-> IO [TrackType] -> m [TrackType]
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CUInt
result <- Ptr TimelineElement -> IO CUInt
ges_timeline_element_get_track_types Ptr TimelineElement
self'
let result' :: [TrackType]
result' = CUInt -> [TrackType]
forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
[TrackType] -> IO [TrackType]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [TrackType]
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementGetTrackTypesMethodInfo
instance (signature ~ (m [GES.Flags.TrackType]), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementGetTrackTypesMethodInfo a signature where
overloadedMethod = timelineElementGetTrackTypes
instance O.OverloadedMethodInfo TimelineElementGetTrackTypesMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementGetTrackTypes",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementGetTrackTypes"
})
#endif
#if defined(ENABLE_OVERLOADING)
data TimelineElementListChildrenPropertiesMethodInfo
instance (p ~ (), o ~ O.UnsupportedMethodError "listChildrenProperties" TimelineElement) => O.OverloadedMethod TimelineElementListChildrenPropertiesMethodInfo o p where
overloadedMethod = undefined
instance (o ~ O.UnsupportedMethodError "listChildrenProperties" TimelineElement) => O.OverloadedMethodInfo TimelineElementListChildrenPropertiesMethodInfo o where
overloadedMethodInfo = undefined
#endif
foreign import ccall "ges_timeline_element_lookup_child" ges_timeline_element_lookup_child ::
Ptr TimelineElement ->
CString ->
Ptr (Ptr GObject.Object.Object) ->
Ptr (Ptr GParamSpec) ->
IO CInt
timelineElementLookupChild ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> T.Text
-> m ((Bool, GObject.Object.Object, GParamSpec))
timelineElementLookupChild :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Text -> m (Bool, Object, GParamSpec)
timelineElementLookupChild a
self Text
propName = IO (Bool, Object, GParamSpec) -> m (Bool, Object, GParamSpec)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Bool, Object, GParamSpec) -> m (Bool, Object, GParamSpec))
-> IO (Bool, Object, GParamSpec) -> m (Bool, Object, GParamSpec)
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
propName' <- Text -> IO CString
textToCString Text
propName
Ptr (Ptr Object)
child <- IO (Ptr (Ptr Object))
forall a. Storable a => IO (Ptr a)
callocMem :: IO (Ptr (Ptr GObject.Object.Object))
Ptr (Ptr GParamSpec)
pspec <- IO (Ptr (Ptr GParamSpec))
forall a. Storable a => IO (Ptr a)
callocMem :: IO (Ptr (Ptr GParamSpec))
CInt
result <- Ptr TimelineElement
-> CString -> Ptr (Ptr Object) -> Ptr (Ptr GParamSpec) -> IO CInt
ges_timeline_element_lookup_child Ptr TimelineElement
self' CString
propName' Ptr (Ptr Object)
child Ptr (Ptr GParamSpec)
pspec
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
Ptr Object
child' <- Ptr (Ptr Object) -> IO (Ptr Object)
forall a. Storable a => Ptr a -> IO a
peek Ptr (Ptr Object)
child
Object
child'' <- ((ManagedPtr Object -> Object) -> Ptr Object -> IO Object
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr Object -> Object
GObject.Object.Object) Ptr Object
child'
Ptr GParamSpec
pspec' <- Ptr (Ptr GParamSpec) -> IO (Ptr GParamSpec)
forall a. Storable a => Ptr a -> IO a
peek Ptr (Ptr GParamSpec)
pspec
GParamSpec
pspec'' <- Ptr GParamSpec -> IO GParamSpec
B.GParamSpec.wrapGParamSpecPtr Ptr GParamSpec
pspec'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
propName'
Ptr (Ptr Object) -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr (Ptr Object)
child
Ptr (Ptr GParamSpec) -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr (Ptr GParamSpec)
pspec
(Bool, Object, GParamSpec) -> IO (Bool, Object, GParamSpec)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Bool
result', Object
child'', GParamSpec
pspec'')
#if defined(ENABLE_OVERLOADING)
data TimelineElementLookupChildMethodInfo
instance (signature ~ (T.Text -> m ((Bool, GObject.Object.Object, GParamSpec))), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementLookupChildMethodInfo a signature where
overloadedMethod = timelineElementLookupChild
instance O.OverloadedMethodInfo TimelineElementLookupChildMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementLookupChild",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementLookupChild"
})
#endif
foreign import ccall "ges_timeline_element_paste" ges_timeline_element_paste ::
Ptr TimelineElement ->
Word64 ->
IO (Ptr TimelineElement)
timelineElementPaste ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m (Maybe TimelineElement)
timelineElementPaste :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m (Maybe TimelineElement)
timelineElementPaste a
self Word64
pastePosition = IO (Maybe TimelineElement) -> m (Maybe TimelineElement)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe TimelineElement) -> m (Maybe TimelineElement))
-> IO (Maybe TimelineElement) -> m (Maybe TimelineElement)
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr TimelineElement
result <- Ptr TimelineElement -> Word64 -> IO (Ptr TimelineElement)
ges_timeline_element_paste Ptr TimelineElement
self' Word64
pastePosition
Maybe TimelineElement
maybeResult <- Ptr TimelineElement
-> (Ptr TimelineElement -> IO TimelineElement)
-> IO (Maybe TimelineElement)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr TimelineElement
result ((Ptr TimelineElement -> IO TimelineElement)
-> IO (Maybe TimelineElement))
-> (Ptr TimelineElement -> IO TimelineElement)
-> IO (Maybe TimelineElement)
forall a b. (a -> b) -> a -> b
$ \Ptr TimelineElement
result' -> do
TimelineElement
result'' <- ((ManagedPtr TimelineElement -> TimelineElement)
-> Ptr TimelineElement -> IO TimelineElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr TimelineElement -> TimelineElement
TimelineElement) Ptr TimelineElement
result'
TimelineElement -> IO TimelineElement
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TimelineElement
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe TimelineElement -> IO (Maybe TimelineElement)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe TimelineElement
maybeResult
#if defined(ENABLE_OVERLOADING)
data TimelineElementPasteMethodInfo
instance (signature ~ (Word64 -> m (Maybe TimelineElement)), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementPasteMethodInfo a signature where
overloadedMethod = timelineElementPaste
instance O.OverloadedMethodInfo TimelineElementPasteMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementPaste",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementPaste"
})
#endif
foreign import ccall "ges_timeline_element_remove_child_property" ges_timeline_element_remove_child_property ::
Ptr TimelineElement ->
Ptr GParamSpec ->
IO CInt
timelineElementRemoveChildProperty ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> GParamSpec
-> m Bool
timelineElementRemoveChildProperty :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> GParamSpec -> m Bool
timelineElementRemoveChildProperty a
self GParamSpec
pspec = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr GParamSpec
pspec' <- GParamSpec -> IO (Ptr GParamSpec)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GParamSpec
pspec
CInt
result <- Ptr TimelineElement -> Ptr GParamSpec -> IO CInt
ges_timeline_element_remove_child_property Ptr TimelineElement
self' Ptr GParamSpec
pspec'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
GParamSpec -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GParamSpec
pspec
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementRemoveChildPropertyMethodInfo
instance (signature ~ (GParamSpec -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementRemoveChildPropertyMethodInfo a signature where
overloadedMethod = timelineElementRemoveChildProperty
instance O.OverloadedMethodInfo TimelineElementRemoveChildPropertyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementRemoveChildProperty",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementRemoveChildProperty"
})
#endif
foreign import ccall "ges_timeline_element_ripple" ges_timeline_element_ripple ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementRipple ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementRipple :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementRipple a
self Word64
start = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_ripple Ptr TimelineElement
self' Word64
start
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementRippleMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementRippleMethodInfo a signature where
overloadedMethod = timelineElementRipple
instance O.OverloadedMethodInfo TimelineElementRippleMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementRipple",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementRipple"
})
#endif
foreign import ccall "ges_timeline_element_ripple_end" ges_timeline_element_ripple_end ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementRippleEnd ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementRippleEnd :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementRippleEnd a
self Word64
end = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_ripple_end Ptr TimelineElement
self' Word64
end
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementRippleEndMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementRippleEndMethodInfo a signature where
overloadedMethod = timelineElementRippleEnd
instance O.OverloadedMethodInfo TimelineElementRippleEndMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementRippleEnd",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementRippleEnd"
})
#endif
foreign import ccall "ges_timeline_element_roll_end" ges_timeline_element_roll_end ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementRollEnd ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementRollEnd :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementRollEnd a
self Word64
end = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_roll_end Ptr TimelineElement
self' Word64
end
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementRollEndMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementRollEndMethodInfo a signature where
overloadedMethod = timelineElementRollEnd
instance O.OverloadedMethodInfo TimelineElementRollEndMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementRollEnd",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementRollEnd"
})
#endif
foreign import ccall "ges_timeline_element_roll_start" ges_timeline_element_roll_start ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementRollStart ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementRollStart :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementRollStart a
self Word64
start = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_roll_start Ptr TimelineElement
self' Word64
start
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementRollStartMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementRollStartMethodInfo a signature where
overloadedMethod = timelineElementRollStart
instance O.OverloadedMethodInfo TimelineElementRollStartMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementRollStart",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementRollStart"
})
#endif
foreign import ccall "ges_timeline_element_set_child_property" ges_timeline_element_set_child_property ::
Ptr TimelineElement ->
CString ->
Ptr GValue ->
IO CInt
timelineElementSetChildProperty ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> T.Text
-> GValue
-> m Bool
timelineElementSetChildProperty :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Text -> GValue -> m Bool
timelineElementSetChildProperty a
self Text
propertyName GValue
value = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
propertyName' <- Text -> IO CString
textToCString Text
propertyName
Ptr GValue
value' <- GValue -> IO (Ptr GValue)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GValue
value
CInt
result <- Ptr TimelineElement -> CString -> Ptr GValue -> IO CInt
ges_timeline_element_set_child_property Ptr TimelineElement
self' CString
propertyName' Ptr GValue
value'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
GValue -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GValue
value
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
propertyName'
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetChildPropertyMethodInfo
instance (signature ~ (T.Text -> GValue -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetChildPropertyMethodInfo a signature where
overloadedMethod = timelineElementSetChildProperty
instance O.OverloadedMethodInfo TimelineElementSetChildPropertyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetChildProperty",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetChildProperty"
})
#endif
foreign import ccall "ges_timeline_element_set_child_property_by_pspec" ges_timeline_element_set_child_property_by_pspec ::
Ptr TimelineElement ->
Ptr GParamSpec ->
Ptr GValue ->
IO ()
timelineElementSetChildPropertyByPspec ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> GParamSpec
-> GValue
-> m ()
timelineElementSetChildPropertyByPspec :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> GParamSpec -> GValue -> m ()
timelineElementSetChildPropertyByPspec a
self GParamSpec
pspec GValue
value = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr GParamSpec
pspec' <- GParamSpec -> IO (Ptr GParamSpec)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GParamSpec
pspec
Ptr GValue
value' <- GValue -> IO (Ptr GValue)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GValue
value
Ptr TimelineElement -> Ptr GParamSpec -> Ptr GValue -> IO ()
ges_timeline_element_set_child_property_by_pspec Ptr TimelineElement
self' Ptr GParamSpec
pspec' Ptr GValue
value'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
GParamSpec -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GParamSpec
pspec
GValue -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GValue
value
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetChildPropertyByPspecMethodInfo
instance (signature ~ (GParamSpec -> GValue -> m ()), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetChildPropertyByPspecMethodInfo a signature where
overloadedMethod = timelineElementSetChildPropertyByPspec
instance O.OverloadedMethodInfo TimelineElementSetChildPropertyByPspecMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetChildPropertyByPspec",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetChildPropertyByPspec"
})
#endif
foreign import ccall "ges_timeline_element_set_child_property_full" ges_timeline_element_set_child_property_full ::
Ptr TimelineElement ->
CString ->
Ptr GValue ->
Ptr (Ptr GError) ->
IO CInt
timelineElementSetChildPropertyFull ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> T.Text
-> GValue
-> m ()
timelineElementSetChildPropertyFull :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Text -> GValue -> m ()
timelineElementSetChildPropertyFull a
self Text
propertyName GValue
value = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
propertyName' <- Text -> IO CString
textToCString Text
propertyName
Ptr GValue
value' <- GValue -> IO (Ptr GValue)
forall a. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr a)
unsafeManagedPtrGetPtr GValue
value
IO () -> IO () -> IO ()
forall a b. IO a -> IO b -> IO a
onException (do
CInt
_ <- (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO CInt) -> IO CInt)
-> (Ptr (Ptr GError) -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ Ptr TimelineElement
-> CString -> Ptr GValue -> Ptr (Ptr GError) -> IO CInt
ges_timeline_element_set_child_property_full Ptr TimelineElement
self' CString
propertyName' Ptr GValue
value'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
GValue -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr GValue
value
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
propertyName'
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
propertyName'
)
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetChildPropertyFullMethodInfo
instance (signature ~ (T.Text -> GValue -> m ()), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetChildPropertyFullMethodInfo a signature where
overloadedMethod = timelineElementSetChildPropertyFull
instance O.OverloadedMethodInfo TimelineElementSetChildPropertyFullMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetChildPropertyFull",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetChildPropertyFull"
})
#endif
foreign import ccall "ges_timeline_element_set_duration" ges_timeline_element_set_duration ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementSetDuration ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementSetDuration :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementSetDuration a
self Word64
duration = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_set_duration Ptr TimelineElement
self' Word64
duration
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetDurationMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetDurationMethodInfo a signature where
overloadedMethod = timelineElementSetDuration
instance O.OverloadedMethodInfo TimelineElementSetDurationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetDuration",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetDuration"
})
#endif
foreign import ccall "ges_timeline_element_set_inpoint" ges_timeline_element_set_inpoint ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementSetInpoint ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementSetInpoint :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementSetInpoint a
self Word64
inpoint = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_set_inpoint Ptr TimelineElement
self' Word64
inpoint
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetInpointMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetInpointMethodInfo a signature where
overloadedMethod = timelineElementSetInpoint
instance O.OverloadedMethodInfo TimelineElementSetInpointMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetInpoint",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetInpoint"
})
#endif
foreign import ccall "ges_timeline_element_set_max_duration" ges_timeline_element_set_max_duration ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementSetMaxDuration ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementSetMaxDuration :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementSetMaxDuration a
self Word64
maxduration = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_set_max_duration Ptr TimelineElement
self' Word64
maxduration
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetMaxDurationMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetMaxDurationMethodInfo a signature where
overloadedMethod = timelineElementSetMaxDuration
instance O.OverloadedMethodInfo TimelineElementSetMaxDurationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetMaxDuration",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetMaxDuration"
})
#endif
foreign import ccall "ges_timeline_element_set_name" ges_timeline_element_set_name ::
Ptr TimelineElement ->
CString ->
IO CInt
timelineElementSetName ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Maybe (T.Text)
-> m Bool
timelineElementSetName :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Maybe Text -> m Bool
timelineElementSetName a
self Maybe Text
name = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
maybeName <- case Maybe Text
name of
Maybe Text
Nothing -> CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
forall a. Ptr a
nullPtr
Just Text
jName -> do
CString
jName' <- Text -> IO CString
textToCString Text
jName
CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
jName'
CInt
result <- Ptr TimelineElement -> CString -> IO CInt
ges_timeline_element_set_name Ptr TimelineElement
self' CString
maybeName
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
maybeName
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetNameMethodInfo
instance (signature ~ (Maybe (T.Text) -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetNameMethodInfo a signature where
overloadedMethod = timelineElementSetName
instance O.OverloadedMethodInfo TimelineElementSetNameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetName",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetName"
})
#endif
foreign import ccall "ges_timeline_element_set_parent" ges_timeline_element_set_parent ::
Ptr TimelineElement ->
Ptr TimelineElement ->
IO CInt
timelineElementSetParent ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a, IsTimelineElement b) =>
a
-> b
-> m Bool
timelineElementSetParent :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimelineElement a,
IsTimelineElement b) =>
a -> b -> m Bool
timelineElementSetParent a
self b
parent = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr TimelineElement
parent' <- b -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
parent
CInt
result <- Ptr TimelineElement -> Ptr TimelineElement -> IO CInt
ges_timeline_element_set_parent Ptr TimelineElement
self' Ptr TimelineElement
parent'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
parent
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetParentMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsTimelineElement a, IsTimelineElement b) => O.OverloadedMethod TimelineElementSetParentMethodInfo a signature where
overloadedMethod = timelineElementSetParent
instance O.OverloadedMethodInfo TimelineElementSetParentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetParent",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetParent"
})
#endif
foreign import ccall "ges_timeline_element_set_priority" ges_timeline_element_set_priority ::
Ptr TimelineElement ->
Word32 ->
IO CInt
{-# DEPRECATED timelineElementSetPriority ["(Since version 1.10)","All priority management is done by GES itself now.","To set t'GI.GES.Objects.Effect.Effect' priorities @/ges_clip_set_top_effect_index/@ should","be used."] #-}
timelineElementSetPriority ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word32
-> m Bool
timelineElementSetPriority :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word32 -> m Bool
timelineElementSetPriority a
self Word32
priority = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word32 -> IO CInt
ges_timeline_element_set_priority Ptr TimelineElement
self' Word32
priority
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetPriorityMethodInfo
instance (signature ~ (Word32 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetPriorityMethodInfo a signature where
overloadedMethod = timelineElementSetPriority
instance O.OverloadedMethodInfo TimelineElementSetPriorityMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetPriority",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetPriority"
})
#endif
foreign import ccall "ges_timeline_element_set_start" ges_timeline_element_set_start ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementSetStart ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementSetStart :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementSetStart a
self Word64
start = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_set_start Ptr TimelineElement
self' Word64
start
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetStartMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementSetStartMethodInfo a signature where
overloadedMethod = timelineElementSetStart
instance O.OverloadedMethodInfo TimelineElementSetStartMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetStart",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetStart"
})
#endif
foreign import ccall "ges_timeline_element_set_timeline" ges_timeline_element_set_timeline ::
Ptr TimelineElement ->
Ptr GES.Timeline.Timeline ->
IO CInt
timelineElementSetTimeline ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a, GES.Timeline.IsTimeline b) =>
a
-> b
-> m Bool
timelineElementSetTimeline :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimelineElement a, IsTimeline b) =>
a -> b -> m Bool
timelineElementSetTimeline a
self b
timeline = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr Timeline
timeline' <- b -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
timeline
CInt
result <- Ptr TimelineElement -> Ptr Timeline -> IO CInt
ges_timeline_element_set_timeline Ptr TimelineElement
self' Ptr Timeline
timeline'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
timeline
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementSetTimelineMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsTimelineElement a, GES.Timeline.IsTimeline b) => O.OverloadedMethod TimelineElementSetTimelineMethodInfo a signature where
overloadedMethod = timelineElementSetTimeline
instance O.OverloadedMethodInfo TimelineElementSetTimelineMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementSetTimeline",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementSetTimeline"
})
#endif
foreign import ccall "ges_timeline_element_trim" ges_timeline_element_trim ::
Ptr TimelineElement ->
Word64 ->
IO CInt
timelineElementTrim ::
(B.CallStack.HasCallStack, MonadIO m, IsTimelineElement a) =>
a
-> Word64
-> m Bool
timelineElementTrim :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimelineElement a) =>
a -> Word64 -> m Bool
timelineElementTrim a
self Word64
start = IO Bool -> m Bool
forall a. IO a -> m a
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 TimelineElement
self' <- a -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr TimelineElement -> Word64 -> IO CInt
ges_timeline_element_trim Ptr TimelineElement
self' Word64
start
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineElementTrimMethodInfo
instance (signature ~ (Word64 -> m Bool), MonadIO m, IsTimelineElement a) => O.OverloadedMethod TimelineElementTrimMethodInfo a signature where
overloadedMethod = timelineElementTrim
instance O.OverloadedMethodInfo TimelineElementTrimMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TimelineElement.timelineElementTrim",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TimelineElement.html#v:timelineElementTrim"
})
#endif