{-# LANGUAGE ImplicitParams, RankNTypes, TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GES.Objects.Timeline
(
Timeline(..) ,
IsTimeline ,
toTimeline ,
#if defined(ENABLE_OVERLOADING)
ResolveTimelineMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineAddLayerMethodInfo ,
#endif
timelineAddLayer ,
#if defined(ENABLE_OVERLOADING)
TimelineAddTrackMethodInfo ,
#endif
timelineAddTrack ,
#if defined(ENABLE_OVERLOADING)
TimelineAppendLayerMethodInfo ,
#endif
timelineAppendLayer ,
#if defined(ENABLE_OVERLOADING)
TimelineCommitMethodInfo ,
#endif
timelineCommit ,
#if defined(ENABLE_OVERLOADING)
TimelineCommitSyncMethodInfo ,
#endif
timelineCommitSync ,
#if defined(ENABLE_OVERLOADING)
TimelineDisableEditApisMethodInfo ,
#endif
timelineDisableEditApis ,
#if defined(ENABLE_OVERLOADING)
TimelineFreezeCommitMethodInfo ,
#endif
timelineFreezeCommit ,
#if defined(ENABLE_OVERLOADING)
TimelineGetAutoTransitionMethodInfo ,
#endif
timelineGetAutoTransition ,
#if defined(ENABLE_OVERLOADING)
TimelineGetDurationMethodInfo ,
#endif
timelineGetDuration ,
#if defined(ENABLE_OVERLOADING)
TimelineGetEditApisDisabledMethodInfo ,
#endif
timelineGetEditApisDisabled ,
#if defined(ENABLE_OVERLOADING)
TimelineGetElementMethodInfo ,
#endif
timelineGetElement ,
#if defined(ENABLE_OVERLOADING)
TimelineGetFrameAtMethodInfo ,
#endif
timelineGetFrameAt ,
#if defined(ENABLE_OVERLOADING)
TimelineGetFrameTimeMethodInfo ,
#endif
timelineGetFrameTime ,
#if defined(ENABLE_OVERLOADING)
TimelineGetGroupsMethodInfo ,
#endif
timelineGetGroups ,
#if defined(ENABLE_OVERLOADING)
TimelineGetLayerMethodInfo ,
#endif
timelineGetLayer ,
#if defined(ENABLE_OVERLOADING)
TimelineGetLayersMethodInfo ,
#endif
timelineGetLayers ,
#if defined(ENABLE_OVERLOADING)
TimelineGetPadForTrackMethodInfo ,
#endif
timelineGetPadForTrack ,
#if defined(ENABLE_OVERLOADING)
TimelineGetSnappingDistanceMethodInfo ,
#endif
timelineGetSnappingDistance ,
#if defined(ENABLE_OVERLOADING)
TimelineGetTrackForPadMethodInfo ,
#endif
timelineGetTrackForPad ,
#if defined(ENABLE_OVERLOADING)
TimelineGetTracksMethodInfo ,
#endif
timelineGetTracks ,
#if defined(ENABLE_OVERLOADING)
TimelineIsEmptyMethodInfo ,
#endif
timelineIsEmpty ,
#if defined(ENABLE_OVERLOADING)
TimelineLoadFromUriMethodInfo ,
#endif
timelineLoadFromUri ,
#if defined(ENABLE_OVERLOADING)
TimelineMoveLayerMethodInfo ,
#endif
timelineMoveLayer ,
timelineNew ,
timelineNewAudioVideo ,
timelineNewFromUri ,
#if defined(ENABLE_OVERLOADING)
TimelinePasteElementMethodInfo ,
#endif
timelinePasteElement ,
#if defined(ENABLE_OVERLOADING)
TimelineRemoveLayerMethodInfo ,
#endif
timelineRemoveLayer ,
#if defined(ENABLE_OVERLOADING)
TimelineRemoveTrackMethodInfo ,
#endif
timelineRemoveTrack ,
#if defined(ENABLE_OVERLOADING)
TimelineSaveToUriMethodInfo ,
#endif
timelineSaveToUri ,
#if defined(ENABLE_OVERLOADING)
TimelineSetAutoTransitionMethodInfo ,
#endif
timelineSetAutoTransition ,
#if defined(ENABLE_OVERLOADING)
TimelineSetSnappingDistanceMethodInfo ,
#endif
timelineSetSnappingDistance ,
#if defined(ENABLE_OVERLOADING)
TimelineThawCommitMethodInfo ,
#endif
timelineThawCommit ,
#if defined(ENABLE_OVERLOADING)
TimelineAutoTransitionPropertyInfo ,
#endif
constructTimelineAutoTransition ,
getTimelineAutoTransition ,
setTimelineAutoTransition ,
#if defined(ENABLE_OVERLOADING)
timelineAutoTransition ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineDurationPropertyInfo ,
#endif
getTimelineDuration ,
#if defined(ENABLE_OVERLOADING)
timelineDuration ,
#endif
#if defined(ENABLE_OVERLOADING)
TimelineSnappingDistancePropertyInfo ,
#endif
constructTimelineSnappingDistance ,
getTimelineSnappingDistance ,
setTimelineSnappingDistance ,
#if defined(ENABLE_OVERLOADING)
timelineSnappingDistance ,
#endif
TimelineCommitedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineCommitedSignalInfo ,
#endif
afterTimelineCommited ,
onTimelineCommited ,
TimelineGroupAddedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineGroupAddedSignalInfo ,
#endif
afterTimelineGroupAdded ,
onTimelineGroupAdded ,
TimelineGroupRemovedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineGroupRemovedSignalInfo ,
#endif
afterTimelineGroupRemoved ,
onTimelineGroupRemoved ,
TimelineLayerAddedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineLayerAddedSignalInfo ,
#endif
afterTimelineLayerAdded ,
onTimelineLayerAdded ,
TimelineLayerRemovedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineLayerRemovedSignalInfo ,
#endif
afterTimelineLayerRemoved ,
onTimelineLayerRemoved ,
TimelineSelectElementTrackCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineSelectElementTrackSignalInfo ,
#endif
afterTimelineSelectElementTrack ,
onTimelineSelectElementTrack ,
TimelineSelectTracksForObjectCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineSelectTracksForObjectSignalInfo ,
#endif
afterTimelineSelectTracksForObject ,
onTimelineSelectTracksForObject ,
TimelineSnappingEndedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineSnappingEndedSignalInfo ,
#endif
afterTimelineSnappingEnded ,
onTimelineSnappingEnded ,
TimelineSnappingStartedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineSnappingStartedSignalInfo ,
#endif
afterTimelineSnappingStarted ,
onTimelineSnappingStarted ,
TimelineTrackAddedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineTrackAddedSignalInfo ,
#endif
afterTimelineTrackAdded ,
onTimelineTrackAdded ,
TimelineTrackRemovedCallback ,
#if defined(ENABLE_OVERLOADING)
TimelineTrackRemovedSignalInfo ,
#endif
afterTimelineTrackRemoved ,
onTimelineTrackRemoved ,
) 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.Interfaces.Extractable as GES.Extractable
import {-# SOURCE #-} qualified GI.GES.Interfaces.MetaContainer as GES.MetaContainer
import {-# SOURCE #-} qualified GI.GES.Objects.Asset as GES.Asset
import {-# SOURCE #-} qualified GI.GES.Objects.Clip as GES.Clip
import {-# SOURCE #-} qualified GI.GES.Objects.Container as GES.Container
import {-# SOURCE #-} qualified GI.GES.Objects.Group as GES.Group
import {-# SOURCE #-} qualified GI.GES.Objects.Layer as GES.Layer
import {-# SOURCE #-} qualified GI.GES.Objects.TimelineElement as GES.TimelineElement
import {-# SOURCE #-} qualified GI.GES.Objects.Track as GES.Track
import {-# SOURCE #-} qualified GI.GES.Objects.TrackElement as GES.TrackElement
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gst.Interfaces.ChildProxy as Gst.ChildProxy
import qualified GI.Gst.Objects.Bin as Gst.Bin
import qualified GI.Gst.Objects.Element as Gst.Element
import qualified GI.Gst.Objects.Object as Gst.Object
import qualified GI.Gst.Objects.Pad as Gst.Pad
newtype Timeline = Timeline (SP.ManagedPtr Timeline)
deriving (Timeline -> Timeline -> Bool
(Timeline -> Timeline -> Bool)
-> (Timeline -> Timeline -> Bool) -> Eq Timeline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Timeline -> Timeline -> Bool
== :: Timeline -> Timeline -> Bool
$c/= :: Timeline -> Timeline -> Bool
/= :: Timeline -> Timeline -> Bool
Eq)
instance SP.ManagedPtrNewtype Timeline where
toManagedPtr :: Timeline -> ManagedPtr Timeline
toManagedPtr (Timeline ManagedPtr Timeline
p) = ManagedPtr Timeline
p
foreign import ccall "ges_timeline_get_type"
c_ges_timeline_get_type :: IO B.Types.GType
instance B.Types.TypedObject Timeline where
glibType :: IO GType
glibType = IO GType
c_ges_timeline_get_type
instance B.Types.GObject Timeline
class (SP.GObject o, O.IsDescendantOf Timeline o) => IsTimeline o
instance (SP.GObject o, O.IsDescendantOf Timeline o) => IsTimeline o
instance O.HasParentTypes Timeline
type instance O.ParentTypes Timeline = '[Gst.Bin.Bin, Gst.Element.Element, Gst.Object.Object, GObject.Object.Object, GES.Extractable.Extractable, GES.MetaContainer.MetaContainer, Gst.ChildProxy.ChildProxy]
toTimeline :: (MIO.MonadIO m, IsTimeline o) => o -> m Timeline
toTimeline :: forall (m :: * -> *) o.
(MonadIO m, IsTimeline o) =>
o -> m Timeline
toTimeline = IO Timeline -> m Timeline
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Timeline -> m Timeline)
-> (o -> IO Timeline) -> o -> m Timeline
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr Timeline -> Timeline) -> o -> IO Timeline
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr Timeline -> Timeline
Timeline
instance B.GValue.IsGValue (Maybe Timeline) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_ges_timeline_get_type
gvalueSet_ :: Ptr GValue -> Maybe Timeline -> IO ()
gvalueSet_ Ptr GValue
gv Maybe Timeline
P.Nothing = Ptr GValue -> Ptr Timeline -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr Timeline
forall a. Ptr a
FP.nullPtr :: FP.Ptr Timeline)
gvalueSet_ Ptr GValue
gv (P.Just Timeline
obj) = Timeline -> (Ptr Timeline -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Timeline
obj (Ptr GValue -> Ptr Timeline -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe Timeline)
gvalueGet_ Ptr GValue
gv = do
Ptr Timeline
ptr <- Ptr GValue -> IO (Ptr Timeline)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr Timeline)
if Ptr Timeline
ptr Ptr Timeline -> Ptr Timeline -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr Timeline
forall a. Ptr a
FP.nullPtr
then Timeline -> Maybe Timeline
forall a. a -> Maybe a
P.Just (Timeline -> Maybe Timeline) -> IO Timeline -> IO (Maybe Timeline)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr Timeline -> Timeline) -> Ptr Timeline -> IO Timeline
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr Timeline -> Timeline
Timeline Ptr Timeline
ptr
else Maybe Timeline -> IO (Maybe Timeline)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Timeline
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveTimelineMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveTimelineMethod "abortState" o = Gst.Element.ElementAbortStateMethodInfo
ResolveTimelineMethod "add" o = Gst.Bin.BinAddMethodInfo
ResolveTimelineMethod "addControlBinding" o = Gst.Object.ObjectAddControlBindingMethodInfo
ResolveTimelineMethod "addLayer" o = TimelineAddLayerMethodInfo
ResolveTimelineMethod "addMetasFromString" o = GES.MetaContainer.MetaContainerAddMetasFromStringMethodInfo
ResolveTimelineMethod "addPad" o = Gst.Element.ElementAddPadMethodInfo
ResolveTimelineMethod "addPropertyDeepNotifyWatch" o = Gst.Element.ElementAddPropertyDeepNotifyWatchMethodInfo
ResolveTimelineMethod "addPropertyNotifyWatch" o = Gst.Element.ElementAddPropertyNotifyWatchMethodInfo
ResolveTimelineMethod "addTrack" o = TimelineAddTrackMethodInfo
ResolveTimelineMethod "appendLayer" o = TimelineAppendLayerMethodInfo
ResolveTimelineMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveTimelineMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveTimelineMethod "callAsync" o = Gst.Element.ElementCallAsyncMethodInfo
ResolveTimelineMethod "changeState" o = Gst.Element.ElementChangeStateMethodInfo
ResolveTimelineMethod "checkMetaRegistered" o = GES.MetaContainer.MetaContainerCheckMetaRegisteredMethodInfo
ResolveTimelineMethod "childAdded" o = Gst.ChildProxy.ChildProxyChildAddedMethodInfo
ResolveTimelineMethod "childRemoved" o = Gst.ChildProxy.ChildProxyChildRemovedMethodInfo
ResolveTimelineMethod "commit" o = TimelineCommitMethodInfo
ResolveTimelineMethod "commitSync" o = TimelineCommitSyncMethodInfo
ResolveTimelineMethod "continueState" o = Gst.Element.ElementContinueStateMethodInfo
ResolveTimelineMethod "createAllPads" o = Gst.Element.ElementCreateAllPadsMethodInfo
ResolveTimelineMethod "defaultError" o = Gst.Object.ObjectDefaultErrorMethodInfo
ResolveTimelineMethod "disableEditApis" o = TimelineDisableEditApisMethodInfo
ResolveTimelineMethod "findUnlinkedPad" o = Gst.Bin.BinFindUnlinkedPadMethodInfo
ResolveTimelineMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveTimelineMethod "foreach" o = GES.MetaContainer.MetaContainerForeachMethodInfo
ResolveTimelineMethod "foreachPad" o = Gst.Element.ElementForeachPadMethodInfo
ResolveTimelineMethod "foreachSinkPad" o = Gst.Element.ElementForeachSinkPadMethodInfo
ResolveTimelineMethod "foreachSrcPad" o = Gst.Element.ElementForeachSrcPadMethodInfo
ResolveTimelineMethod "freezeCommit" o = TimelineFreezeCommitMethodInfo
ResolveTimelineMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveTimelineMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveTimelineMethod "hasActiveControlBindings" o = Gst.Object.ObjectHasActiveControlBindingsMethodInfo
ResolveTimelineMethod "hasAncestor" o = Gst.Object.ObjectHasAncestorMethodInfo
ResolveTimelineMethod "hasAsAncestor" o = Gst.Object.ObjectHasAsAncestorMethodInfo
ResolveTimelineMethod "hasAsParent" o = Gst.Object.ObjectHasAsParentMethodInfo
ResolveTimelineMethod "isEmpty" o = TimelineIsEmptyMethodInfo
ResolveTimelineMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveTimelineMethod "isLockedState" o = Gst.Element.ElementIsLockedStateMethodInfo
ResolveTimelineMethod "iterateAllByElementFactoryName" o = Gst.Bin.BinIterateAllByElementFactoryNameMethodInfo
ResolveTimelineMethod "iterateAllByInterface" o = Gst.Bin.BinIterateAllByInterfaceMethodInfo
ResolveTimelineMethod "iterateElements" o = Gst.Bin.BinIterateElementsMethodInfo
ResolveTimelineMethod "iteratePads" o = Gst.Element.ElementIteratePadsMethodInfo
ResolveTimelineMethod "iterateRecurse" o = Gst.Bin.BinIterateRecurseMethodInfo
ResolveTimelineMethod "iterateSinkPads" o = Gst.Element.ElementIterateSinkPadsMethodInfo
ResolveTimelineMethod "iterateSinks" o = Gst.Bin.BinIterateSinksMethodInfo
ResolveTimelineMethod "iterateSorted" o = Gst.Bin.BinIterateSortedMethodInfo
ResolveTimelineMethod "iterateSources" o = Gst.Bin.BinIterateSourcesMethodInfo
ResolveTimelineMethod "iterateSrcPads" o = Gst.Element.ElementIterateSrcPadsMethodInfo
ResolveTimelineMethod "link" o = Gst.Element.ElementLinkMethodInfo
ResolveTimelineMethod "linkFiltered" o = Gst.Element.ElementLinkFilteredMethodInfo
ResolveTimelineMethod "linkPads" o = Gst.Element.ElementLinkPadsMethodInfo
ResolveTimelineMethod "linkPadsFiltered" o = Gst.Element.ElementLinkPadsFilteredMethodInfo
ResolveTimelineMethod "linkPadsFull" o = Gst.Element.ElementLinkPadsFullMethodInfo
ResolveTimelineMethod "loadFromUri" o = TimelineLoadFromUriMethodInfo
ResolveTimelineMethod "lookup" o = Gst.ChildProxy.ChildProxyLookupMethodInfo
ResolveTimelineMethod "lostState" o = Gst.Element.ElementLostStateMethodInfo
ResolveTimelineMethod "messageFull" o = Gst.Element.ElementMessageFullMethodInfo
ResolveTimelineMethod "messageFullWithDetails" o = Gst.Element.ElementMessageFullWithDetailsMethodInfo
ResolveTimelineMethod "metasToString" o = GES.MetaContainer.MetaContainerMetasToStringMethodInfo
ResolveTimelineMethod "moveLayer" o = TimelineMoveLayerMethodInfo
ResolveTimelineMethod "noMorePads" o = Gst.Element.ElementNoMorePadsMethodInfo
ResolveTimelineMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveTimelineMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveTimelineMethod "pasteElement" o = TimelinePasteElementMethodInfo
ResolveTimelineMethod "postMessage" o = Gst.Element.ElementPostMessageMethodInfo
ResolveTimelineMethod "provideClock" o = Gst.Element.ElementProvideClockMethodInfo
ResolveTimelineMethod "query" o = Gst.Element.ElementQueryMethodInfo
ResolveTimelineMethod "queryConvert" o = Gst.Element.ElementQueryConvertMethodInfo
ResolveTimelineMethod "queryDuration" o = Gst.Element.ElementQueryDurationMethodInfo
ResolveTimelineMethod "queryPosition" o = Gst.Element.ElementQueryPositionMethodInfo
ResolveTimelineMethod "recalculateLatency" o = Gst.Bin.BinRecalculateLatencyMethodInfo
ResolveTimelineMethod "ref" o = Gst.Object.ObjectRefMethodInfo
ResolveTimelineMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveTimelineMethod "registerMeta" o = GES.MetaContainer.MetaContainerRegisterMetaMethodInfo
ResolveTimelineMethod "registerMetaBoolean" o = GES.MetaContainer.MetaContainerRegisterMetaBooleanMethodInfo
ResolveTimelineMethod "registerMetaDate" o = GES.MetaContainer.MetaContainerRegisterMetaDateMethodInfo
ResolveTimelineMethod "registerMetaDateTime" o = GES.MetaContainer.MetaContainerRegisterMetaDateTimeMethodInfo
ResolveTimelineMethod "registerMetaDouble" o = GES.MetaContainer.MetaContainerRegisterMetaDoubleMethodInfo
ResolveTimelineMethod "registerMetaFloat" o = GES.MetaContainer.MetaContainerRegisterMetaFloatMethodInfo
ResolveTimelineMethod "registerMetaInt" o = GES.MetaContainer.MetaContainerRegisterMetaIntMethodInfo
ResolveTimelineMethod "registerMetaInt64" o = GES.MetaContainer.MetaContainerRegisterMetaInt64MethodInfo
ResolveTimelineMethod "registerMetaString" o = GES.MetaContainer.MetaContainerRegisterMetaStringMethodInfo
ResolveTimelineMethod "registerMetaUint" o = GES.MetaContainer.MetaContainerRegisterMetaUintMethodInfo
ResolveTimelineMethod "registerMetaUint64" o = GES.MetaContainer.MetaContainerRegisterMetaUint64MethodInfo
ResolveTimelineMethod "registerStaticMeta" o = GES.MetaContainer.MetaContainerRegisterStaticMetaMethodInfo
ResolveTimelineMethod "releaseRequestPad" o = Gst.Element.ElementReleaseRequestPadMethodInfo
ResolveTimelineMethod "remove" o = Gst.Bin.BinRemoveMethodInfo
ResolveTimelineMethod "removeControlBinding" o = Gst.Object.ObjectRemoveControlBindingMethodInfo
ResolveTimelineMethod "removeLayer" o = TimelineRemoveLayerMethodInfo
ResolveTimelineMethod "removePad" o = Gst.Element.ElementRemovePadMethodInfo
ResolveTimelineMethod "removePropertyNotifyWatch" o = Gst.Element.ElementRemovePropertyNotifyWatchMethodInfo
ResolveTimelineMethod "removeTrack" o = TimelineRemoveTrackMethodInfo
ResolveTimelineMethod "requestPad" o = Gst.Element.ElementRequestPadMethodInfo
ResolveTimelineMethod "requestPadSimple" o = Gst.Element.ElementRequestPadSimpleMethodInfo
ResolveTimelineMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveTimelineMethod "saveToUri" o = TimelineSaveToUriMethodInfo
ResolveTimelineMethod "seek" o = Gst.Element.ElementSeekMethodInfo
ResolveTimelineMethod "seekSimple" o = Gst.Element.ElementSeekSimpleMethodInfo
ResolveTimelineMethod "sendEvent" o = Gst.Element.ElementSendEventMethodInfo
ResolveTimelineMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveTimelineMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveTimelineMethod "suggestNextSync" o = Gst.Object.ObjectSuggestNextSyncMethodInfo
ResolveTimelineMethod "syncChildrenStates" o = Gst.Bin.BinSyncChildrenStatesMethodInfo
ResolveTimelineMethod "syncStateWithParent" o = Gst.Element.ElementSyncStateWithParentMethodInfo
ResolveTimelineMethod "syncValues" o = Gst.Object.ObjectSyncValuesMethodInfo
ResolveTimelineMethod "thawCommit" o = TimelineThawCommitMethodInfo
ResolveTimelineMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveTimelineMethod "unlink" o = Gst.Element.ElementUnlinkMethodInfo
ResolveTimelineMethod "unlinkPads" o = Gst.Element.ElementUnlinkPadsMethodInfo
ResolveTimelineMethod "unparent" o = Gst.Object.ObjectUnparentMethodInfo
ResolveTimelineMethod "unref" o = Gst.Object.ObjectUnrefMethodInfo
ResolveTimelineMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveTimelineMethod "getAsset" o = GES.Extractable.ExtractableGetAssetMethodInfo
ResolveTimelineMethod "getAutoTransition" o = TimelineGetAutoTransitionMethodInfo
ResolveTimelineMethod "getBaseTime" o = Gst.Element.ElementGetBaseTimeMethodInfo
ResolveTimelineMethod "getBoolean" o = GES.MetaContainer.MetaContainerGetBooleanMethodInfo
ResolveTimelineMethod "getBus" o = Gst.Element.ElementGetBusMethodInfo
ResolveTimelineMethod "getByInterface" o = Gst.Bin.BinGetByInterfaceMethodInfo
ResolveTimelineMethod "getByName" o = Gst.Bin.BinGetByNameMethodInfo
ResolveTimelineMethod "getByNameRecurseUp" o = Gst.Bin.BinGetByNameRecurseUpMethodInfo
ResolveTimelineMethod "getChildByIndex" o = Gst.ChildProxy.ChildProxyGetChildByIndexMethodInfo
ResolveTimelineMethod "getChildByName" o = Gst.ChildProxy.ChildProxyGetChildByNameMethodInfo
ResolveTimelineMethod "getChildByNameRecurse" o = Gst.ChildProxy.ChildProxyGetChildByNameRecurseMethodInfo
ResolveTimelineMethod "getChildrenCount" o = Gst.ChildProxy.ChildProxyGetChildrenCountMethodInfo
ResolveTimelineMethod "getClock" o = Gst.Element.ElementGetClockMethodInfo
ResolveTimelineMethod "getCompatiblePad" o = Gst.Element.ElementGetCompatiblePadMethodInfo
ResolveTimelineMethod "getCompatiblePadTemplate" o = Gst.Element.ElementGetCompatiblePadTemplateMethodInfo
ResolveTimelineMethod "getContext" o = Gst.Element.ElementGetContextMethodInfo
ResolveTimelineMethod "getContextUnlocked" o = Gst.Element.ElementGetContextUnlockedMethodInfo
ResolveTimelineMethod "getContexts" o = Gst.Element.ElementGetContextsMethodInfo
ResolveTimelineMethod "getControlBinding" o = Gst.Object.ObjectGetControlBindingMethodInfo
ResolveTimelineMethod "getControlRate" o = Gst.Object.ObjectGetControlRateMethodInfo
ResolveTimelineMethod "getCurrentClockTime" o = Gst.Element.ElementGetCurrentClockTimeMethodInfo
ResolveTimelineMethod "getCurrentRunningTime" o = Gst.Element.ElementGetCurrentRunningTimeMethodInfo
ResolveTimelineMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveTimelineMethod "getDate" o = GES.MetaContainer.MetaContainerGetDateMethodInfo
ResolveTimelineMethod "getDateTime" o = GES.MetaContainer.MetaContainerGetDateTimeMethodInfo
ResolveTimelineMethod "getDouble" o = GES.MetaContainer.MetaContainerGetDoubleMethodInfo
ResolveTimelineMethod "getDuration" o = TimelineGetDurationMethodInfo
ResolveTimelineMethod "getEditApisDisabled" o = TimelineGetEditApisDisabledMethodInfo
ResolveTimelineMethod "getElement" o = TimelineGetElementMethodInfo
ResolveTimelineMethod "getFactory" o = Gst.Element.ElementGetFactoryMethodInfo
ResolveTimelineMethod "getFloat" o = GES.MetaContainer.MetaContainerGetFloatMethodInfo
ResolveTimelineMethod "getFrameAt" o = TimelineGetFrameAtMethodInfo
ResolveTimelineMethod "getFrameTime" o = TimelineGetFrameTimeMethodInfo
ResolveTimelineMethod "getGValueArray" o = Gst.Object.ObjectGetGValueArrayMethodInfo
ResolveTimelineMethod "getGroups" o = TimelineGetGroupsMethodInfo
ResolveTimelineMethod "getId" o = GES.Extractable.ExtractableGetIdMethodInfo
ResolveTimelineMethod "getInt" o = GES.MetaContainer.MetaContainerGetIntMethodInfo
ResolveTimelineMethod "getInt64" o = GES.MetaContainer.MetaContainerGetInt64MethodInfo
ResolveTimelineMethod "getLayer" o = TimelineGetLayerMethodInfo
ResolveTimelineMethod "getLayers" o = TimelineGetLayersMethodInfo
ResolveTimelineMethod "getMarkerList" o = GES.MetaContainer.MetaContainerGetMarkerListMethodInfo
ResolveTimelineMethod "getMeta" o = GES.MetaContainer.MetaContainerGetMetaMethodInfo
ResolveTimelineMethod "getMetadata" o = Gst.Element.ElementGetMetadataMethodInfo
ResolveTimelineMethod "getName" o = Gst.Object.ObjectGetNameMethodInfo
ResolveTimelineMethod "getPadForTrack" o = TimelineGetPadForTrackMethodInfo
ResolveTimelineMethod "getPadTemplate" o = Gst.Element.ElementGetPadTemplateMethodInfo
ResolveTimelineMethod "getPadTemplateList" o = Gst.Element.ElementGetPadTemplateListMethodInfo
ResolveTimelineMethod "getParent" o = Gst.Object.ObjectGetParentMethodInfo
ResolveTimelineMethod "getPathString" o = Gst.Object.ObjectGetPathStringMethodInfo
ResolveTimelineMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveTimelineMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveTimelineMethod "getRequestPad" o = Gst.Element.ElementGetRequestPadMethodInfo
ResolveTimelineMethod "getSnappingDistance" o = TimelineGetSnappingDistanceMethodInfo
ResolveTimelineMethod "getStartTime" o = Gst.Element.ElementGetStartTimeMethodInfo
ResolveTimelineMethod "getState" o = Gst.Element.ElementGetStateMethodInfo
ResolveTimelineMethod "getStaticPad" o = Gst.Element.ElementGetStaticPadMethodInfo
ResolveTimelineMethod "getString" o = GES.MetaContainer.MetaContainerGetStringMethodInfo
ResolveTimelineMethod "getSuppressedFlags" o = Gst.Bin.BinGetSuppressedFlagsMethodInfo
ResolveTimelineMethod "getTrackForPad" o = TimelineGetTrackForPadMethodInfo
ResolveTimelineMethod "getTracks" o = TimelineGetTracksMethodInfo
ResolveTimelineMethod "getUint" o = GES.MetaContainer.MetaContainerGetUintMethodInfo
ResolveTimelineMethod "getUint64" o = GES.MetaContainer.MetaContainerGetUint64MethodInfo
ResolveTimelineMethod "getValue" o = Gst.Object.ObjectGetValueMethodInfo
ResolveTimelineMethod "setAsset" o = GES.Extractable.ExtractableSetAssetMethodInfo
ResolveTimelineMethod "setAutoTransition" o = TimelineSetAutoTransitionMethodInfo
ResolveTimelineMethod "setBaseTime" o = Gst.Element.ElementSetBaseTimeMethodInfo
ResolveTimelineMethod "setBoolean" o = GES.MetaContainer.MetaContainerSetBooleanMethodInfo
ResolveTimelineMethod "setBus" o = Gst.Element.ElementSetBusMethodInfo
ResolveTimelineMethod "setClock" o = Gst.Element.ElementSetClockMethodInfo
ResolveTimelineMethod "setContext" o = Gst.Element.ElementSetContextMethodInfo
ResolveTimelineMethod "setControlBindingDisabled" o = Gst.Object.ObjectSetControlBindingDisabledMethodInfo
ResolveTimelineMethod "setControlBindingsDisabled" o = Gst.Object.ObjectSetControlBindingsDisabledMethodInfo
ResolveTimelineMethod "setControlRate" o = Gst.Object.ObjectSetControlRateMethodInfo
ResolveTimelineMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveTimelineMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveTimelineMethod "setDate" o = GES.MetaContainer.MetaContainerSetDateMethodInfo
ResolveTimelineMethod "setDateTime" o = GES.MetaContainer.MetaContainerSetDateTimeMethodInfo
ResolveTimelineMethod "setDouble" o = GES.MetaContainer.MetaContainerSetDoubleMethodInfo
ResolveTimelineMethod "setFloat" o = GES.MetaContainer.MetaContainerSetFloatMethodInfo
ResolveTimelineMethod "setInt" o = GES.MetaContainer.MetaContainerSetIntMethodInfo
ResolveTimelineMethod "setInt64" o = GES.MetaContainer.MetaContainerSetInt64MethodInfo
ResolveTimelineMethod "setLockedState" o = Gst.Element.ElementSetLockedStateMethodInfo
ResolveTimelineMethod "setMarkerList" o = GES.MetaContainer.MetaContainerSetMarkerListMethodInfo
ResolveTimelineMethod "setMeta" o = GES.MetaContainer.MetaContainerSetMetaMethodInfo
ResolveTimelineMethod "setName" o = Gst.Object.ObjectSetNameMethodInfo
ResolveTimelineMethod "setParent" o = Gst.Object.ObjectSetParentMethodInfo
ResolveTimelineMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveTimelineMethod "setSnappingDistance" o = TimelineSetSnappingDistanceMethodInfo
ResolveTimelineMethod "setStartTime" o = Gst.Element.ElementSetStartTimeMethodInfo
ResolveTimelineMethod "setState" o = Gst.Element.ElementSetStateMethodInfo
ResolveTimelineMethod "setString" o = GES.MetaContainer.MetaContainerSetStringMethodInfo
ResolveTimelineMethod "setSuppressedFlags" o = Gst.Bin.BinSetSuppressedFlagsMethodInfo
ResolveTimelineMethod "setUint" o = GES.MetaContainer.MetaContainerSetUintMethodInfo
ResolveTimelineMethod "setUint64" o = GES.MetaContainer.MetaContainerSetUint64MethodInfo
ResolveTimelineMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveTimelineMethod t Timeline, O.OverloadedMethod info Timeline p) => OL.IsLabel t (Timeline -> 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 ~ ResolveTimelineMethod t Timeline, O.OverloadedMethod info Timeline p, R.HasField t Timeline p) => R.HasField t Timeline p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveTimelineMethod t Timeline, O.OverloadedMethodInfo info Timeline) => OL.IsLabel t (O.MethodProxy info Timeline) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
type TimelineCommitedCallback =
IO ()
type C_TimelineCommitedCallback =
Ptr Timeline ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineCommitedCallback :: C_TimelineCommitedCallback -> IO (FunPtr C_TimelineCommitedCallback)
wrap_TimelineCommitedCallback ::
GObject a => (a -> TimelineCommitedCallback) ->
C_TimelineCommitedCallback
wrap_TimelineCommitedCallback :: forall a. GObject a => (a -> IO ()) -> C_TimelineCommitedCallback
wrap_TimelineCommitedCallback a -> IO ()
gi'cb Ptr Timeline
gi'selfPtr Ptr ()
_ = do
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> IO ()
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self)
onTimelineCommited :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineCommitedCallback) -> m SignalHandlerId
onTimelineCommited :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
onTimelineCommited a
obj (?self::a) => IO ()
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 -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_TimelineCommitedCallback
wrapped' = (a -> IO ()) -> C_TimelineCommitedCallback
forall a. GObject a => (a -> IO ()) -> C_TimelineCommitedCallback
wrap_TimelineCommitedCallback a -> IO ()
wrapped
FunPtr C_TimelineCommitedCallback
wrapped'' <- C_TimelineCommitedCallback
-> IO (FunPtr C_TimelineCommitedCallback)
mk_TimelineCommitedCallback C_TimelineCommitedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineCommitedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"commited" FunPtr C_TimelineCommitedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineCommited :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineCommitedCallback) -> m SignalHandlerId
afterTimelineCommited :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a -> ((?self::a) => IO ()) -> m SignalHandlerId
afterTimelineCommited a
obj (?self::a) => IO ()
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 -> IO ()
wrapped a
self = let ?self = a
?self::a
self in IO ()
(?self::a) => IO ()
cb
let wrapped' :: C_TimelineCommitedCallback
wrapped' = (a -> IO ()) -> C_TimelineCommitedCallback
forall a. GObject a => (a -> IO ()) -> C_TimelineCommitedCallback
wrap_TimelineCommitedCallback a -> IO ()
wrapped
FunPtr C_TimelineCommitedCallback
wrapped'' <- C_TimelineCommitedCallback
-> IO (FunPtr C_TimelineCommitedCallback)
mk_TimelineCommitedCallback C_TimelineCommitedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineCommitedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"commited" FunPtr C_TimelineCommitedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineCommitedSignalInfo
instance SignalInfo TimelineCommitedSignalInfo where
type HaskellCallbackType TimelineCommitedSignalInfo = TimelineCommitedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineCommitedCallback cb
cb'' <- mk_TimelineCommitedCallback cb'
connectSignalFunPtr obj "commited" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::commited"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:commited"})
#endif
type TimelineGroupAddedCallback =
GES.Group.Group
-> IO ()
type C_TimelineGroupAddedCallback =
Ptr Timeline ->
Ptr GES.Group.Group ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineGroupAddedCallback :: C_TimelineGroupAddedCallback -> IO (FunPtr C_TimelineGroupAddedCallback)
wrap_TimelineGroupAddedCallback ::
GObject a => (a -> TimelineGroupAddedCallback) ->
C_TimelineGroupAddedCallback
wrap_TimelineGroupAddedCallback :: forall a.
GObject a =>
(a -> TimelineGroupAddedCallback) -> C_TimelineGroupAddedCallback
wrap_TimelineGroupAddedCallback a -> TimelineGroupAddedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Group
group Ptr ()
_ = do
Group
group' <- ((ManagedPtr Group -> Group) -> Ptr Group -> IO Group
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Group -> Group
GES.Group.Group) Ptr Group
group
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineGroupAddedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Group
group'
onTimelineGroupAdded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineGroupAddedCallback) -> m SignalHandlerId
onTimelineGroupAdded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineGroupAddedCallback) -> m SignalHandlerId
onTimelineGroupAdded a
obj (?self::a) => TimelineGroupAddedCallback
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 -> TimelineGroupAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineGroupAddedCallback
TimelineGroupAddedCallback
cb
let wrapped' :: C_TimelineGroupAddedCallback
wrapped' = (a -> TimelineGroupAddedCallback) -> C_TimelineGroupAddedCallback
forall a.
GObject a =>
(a -> TimelineGroupAddedCallback) -> C_TimelineGroupAddedCallback
wrap_TimelineGroupAddedCallback a -> TimelineGroupAddedCallback
wrapped
FunPtr C_TimelineGroupAddedCallback
wrapped'' <- C_TimelineGroupAddedCallback
-> IO (FunPtr C_TimelineGroupAddedCallback)
mk_TimelineGroupAddedCallback C_TimelineGroupAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineGroupAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"group-added" FunPtr C_TimelineGroupAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineGroupAdded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineGroupAddedCallback) -> m SignalHandlerId
afterTimelineGroupAdded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineGroupAddedCallback) -> m SignalHandlerId
afterTimelineGroupAdded a
obj (?self::a) => TimelineGroupAddedCallback
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 -> TimelineGroupAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineGroupAddedCallback
TimelineGroupAddedCallback
cb
let wrapped' :: C_TimelineGroupAddedCallback
wrapped' = (a -> TimelineGroupAddedCallback) -> C_TimelineGroupAddedCallback
forall a.
GObject a =>
(a -> TimelineGroupAddedCallback) -> C_TimelineGroupAddedCallback
wrap_TimelineGroupAddedCallback a -> TimelineGroupAddedCallback
wrapped
FunPtr C_TimelineGroupAddedCallback
wrapped'' <- C_TimelineGroupAddedCallback
-> IO (FunPtr C_TimelineGroupAddedCallback)
mk_TimelineGroupAddedCallback C_TimelineGroupAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineGroupAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"group-added" FunPtr C_TimelineGroupAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineGroupAddedSignalInfo
instance SignalInfo TimelineGroupAddedSignalInfo where
type HaskellCallbackType TimelineGroupAddedSignalInfo = TimelineGroupAddedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineGroupAddedCallback cb
cb'' <- mk_TimelineGroupAddedCallback cb'
connectSignalFunPtr obj "group-added" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::group-added"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:groupAdded"})
#endif
type TimelineGroupRemovedCallback =
GES.Group.Group
-> [GES.Container.Container]
-> IO ()
type C_TimelineGroupRemovedCallback =
Ptr Timeline ->
Ptr GES.Group.Group ->
Ptr (GPtrArray (Ptr GES.Container.Container)) ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineGroupRemovedCallback :: C_TimelineGroupRemovedCallback -> IO (FunPtr C_TimelineGroupRemovedCallback)
wrap_TimelineGroupRemovedCallback ::
GObject a => (a -> TimelineGroupRemovedCallback) ->
C_TimelineGroupRemovedCallback
wrap_TimelineGroupRemovedCallback :: forall a.
GObject a =>
(a -> TimelineGroupRemovedCallback)
-> C_TimelineGroupRemovedCallback
wrap_TimelineGroupRemovedCallback a -> TimelineGroupRemovedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Group
group Ptr (GPtrArray (Ptr Container))
children Ptr ()
_ = do
Group
group' <- ((ManagedPtr Group -> Group) -> Ptr Group -> IO Group
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Group -> Group
GES.Group.Group) Ptr Group
group
[Ptr Container]
children' <- Ptr (GPtrArray (Ptr Container)) -> IO [Ptr Container]
forall a. Ptr (GPtrArray (Ptr a)) -> IO [Ptr a]
unpackGPtrArray Ptr (GPtrArray (Ptr Container))
children
[Container]
children'' <- (Ptr Container -> IO Container)
-> [Ptr Container] -> IO [Container]
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 ((ManagedPtr Container -> Container)
-> Ptr Container -> IO Container
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Container -> Container
GES.Container.Container) [Ptr Container]
children'
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineGroupRemovedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Group
group' [Container]
children''
onTimelineGroupRemoved :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineGroupRemovedCallback) -> m SignalHandlerId
onTimelineGroupRemoved :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineGroupRemovedCallback)
-> m SignalHandlerId
onTimelineGroupRemoved a
obj (?self::a) => TimelineGroupRemovedCallback
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 -> TimelineGroupRemovedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineGroupRemovedCallback
TimelineGroupRemovedCallback
cb
let wrapped' :: C_TimelineGroupRemovedCallback
wrapped' = (a -> TimelineGroupRemovedCallback)
-> C_TimelineGroupRemovedCallback
forall a.
GObject a =>
(a -> TimelineGroupRemovedCallback)
-> C_TimelineGroupRemovedCallback
wrap_TimelineGroupRemovedCallback a -> TimelineGroupRemovedCallback
wrapped
FunPtr C_TimelineGroupRemovedCallback
wrapped'' <- C_TimelineGroupRemovedCallback
-> IO (FunPtr C_TimelineGroupRemovedCallback)
mk_TimelineGroupRemovedCallback C_TimelineGroupRemovedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineGroupRemovedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"group-removed" FunPtr C_TimelineGroupRemovedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineGroupRemoved :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineGroupRemovedCallback) -> m SignalHandlerId
afterTimelineGroupRemoved :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineGroupRemovedCallback)
-> m SignalHandlerId
afterTimelineGroupRemoved a
obj (?self::a) => TimelineGroupRemovedCallback
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 -> TimelineGroupRemovedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineGroupRemovedCallback
TimelineGroupRemovedCallback
cb
let wrapped' :: C_TimelineGroupRemovedCallback
wrapped' = (a -> TimelineGroupRemovedCallback)
-> C_TimelineGroupRemovedCallback
forall a.
GObject a =>
(a -> TimelineGroupRemovedCallback)
-> C_TimelineGroupRemovedCallback
wrap_TimelineGroupRemovedCallback a -> TimelineGroupRemovedCallback
wrapped
FunPtr C_TimelineGroupRemovedCallback
wrapped'' <- C_TimelineGroupRemovedCallback
-> IO (FunPtr C_TimelineGroupRemovedCallback)
mk_TimelineGroupRemovedCallback C_TimelineGroupRemovedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineGroupRemovedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"group-removed" FunPtr C_TimelineGroupRemovedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineGroupRemovedSignalInfo
instance SignalInfo TimelineGroupRemovedSignalInfo where
type HaskellCallbackType TimelineGroupRemovedSignalInfo = TimelineGroupRemovedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineGroupRemovedCallback cb
cb'' <- mk_TimelineGroupRemovedCallback cb'
connectSignalFunPtr obj "group-removed" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::group-removed"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:groupRemoved"})
#endif
type TimelineLayerAddedCallback =
GES.Layer.Layer
-> IO ()
type C_TimelineLayerAddedCallback =
Ptr Timeline ->
Ptr GES.Layer.Layer ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineLayerAddedCallback :: C_TimelineLayerAddedCallback -> IO (FunPtr C_TimelineLayerAddedCallback)
wrap_TimelineLayerAddedCallback ::
GObject a => (a -> TimelineLayerAddedCallback) ->
C_TimelineLayerAddedCallback
wrap_TimelineLayerAddedCallback :: forall a.
GObject a =>
(a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
wrap_TimelineLayerAddedCallback a -> TimelineLayerAddedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Layer
layer Ptr ()
_ = do
Layer
layer' <- ((ManagedPtr Layer -> Layer) -> Ptr Layer -> IO Layer
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Layer -> Layer
GES.Layer.Layer) Ptr Layer
layer
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineLayerAddedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Layer
layer'
onTimelineLayerAdded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineLayerAddedCallback) -> m SignalHandlerId
onTimelineLayerAdded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineLayerAddedCallback) -> m SignalHandlerId
onTimelineLayerAdded a
obj (?self::a) => TimelineLayerAddedCallback
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 -> TimelineLayerAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineLayerAddedCallback
TimelineLayerAddedCallback
cb
let wrapped' :: C_TimelineLayerAddedCallback
wrapped' = (a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
forall a.
GObject a =>
(a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
wrap_TimelineLayerAddedCallback a -> TimelineLayerAddedCallback
wrapped
FunPtr C_TimelineLayerAddedCallback
wrapped'' <- C_TimelineLayerAddedCallback
-> IO (FunPtr C_TimelineLayerAddedCallback)
mk_TimelineLayerAddedCallback C_TimelineLayerAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineLayerAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"layer-added" FunPtr C_TimelineLayerAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineLayerAdded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineLayerAddedCallback) -> m SignalHandlerId
afterTimelineLayerAdded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineLayerAddedCallback) -> m SignalHandlerId
afterTimelineLayerAdded a
obj (?self::a) => TimelineLayerAddedCallback
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 -> TimelineLayerAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineLayerAddedCallback
TimelineLayerAddedCallback
cb
let wrapped' :: C_TimelineLayerAddedCallback
wrapped' = (a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
forall a.
GObject a =>
(a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
wrap_TimelineLayerAddedCallback a -> TimelineLayerAddedCallback
wrapped
FunPtr C_TimelineLayerAddedCallback
wrapped'' <- C_TimelineLayerAddedCallback
-> IO (FunPtr C_TimelineLayerAddedCallback)
mk_TimelineLayerAddedCallback C_TimelineLayerAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineLayerAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"layer-added" FunPtr C_TimelineLayerAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineLayerAddedSignalInfo
instance SignalInfo TimelineLayerAddedSignalInfo where
type HaskellCallbackType TimelineLayerAddedSignalInfo = TimelineLayerAddedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineLayerAddedCallback cb
cb'' <- mk_TimelineLayerAddedCallback cb'
connectSignalFunPtr obj "layer-added" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::layer-added"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:layerAdded"})
#endif
type TimelineLayerRemovedCallback =
GES.Layer.Layer
-> IO ()
type C_TimelineLayerRemovedCallback =
Ptr Timeline ->
Ptr GES.Layer.Layer ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineLayerRemovedCallback :: C_TimelineLayerRemovedCallback -> IO (FunPtr C_TimelineLayerRemovedCallback)
wrap_TimelineLayerRemovedCallback ::
GObject a => (a -> TimelineLayerRemovedCallback) ->
C_TimelineLayerRemovedCallback
wrap_TimelineLayerRemovedCallback :: forall a.
GObject a =>
(a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
wrap_TimelineLayerRemovedCallback a -> TimelineLayerAddedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Layer
layer Ptr ()
_ = do
Layer
layer' <- ((ManagedPtr Layer -> Layer) -> Ptr Layer -> IO Layer
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Layer -> Layer
GES.Layer.Layer) Ptr Layer
layer
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineLayerAddedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Layer
layer'
onTimelineLayerRemoved :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineLayerRemovedCallback) -> m SignalHandlerId
onTimelineLayerRemoved :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineLayerAddedCallback) -> m SignalHandlerId
onTimelineLayerRemoved a
obj (?self::a) => TimelineLayerAddedCallback
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 -> TimelineLayerAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineLayerAddedCallback
TimelineLayerAddedCallback
cb
let wrapped' :: C_TimelineLayerAddedCallback
wrapped' = (a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
forall a.
GObject a =>
(a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
wrap_TimelineLayerRemovedCallback a -> TimelineLayerAddedCallback
wrapped
FunPtr C_TimelineLayerAddedCallback
wrapped'' <- C_TimelineLayerAddedCallback
-> IO (FunPtr C_TimelineLayerAddedCallback)
mk_TimelineLayerRemovedCallback C_TimelineLayerAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineLayerAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"layer-removed" FunPtr C_TimelineLayerAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineLayerRemoved :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineLayerRemovedCallback) -> m SignalHandlerId
afterTimelineLayerRemoved :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineLayerAddedCallback) -> m SignalHandlerId
afterTimelineLayerRemoved a
obj (?self::a) => TimelineLayerAddedCallback
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 -> TimelineLayerAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineLayerAddedCallback
TimelineLayerAddedCallback
cb
let wrapped' :: C_TimelineLayerAddedCallback
wrapped' = (a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
forall a.
GObject a =>
(a -> TimelineLayerAddedCallback) -> C_TimelineLayerAddedCallback
wrap_TimelineLayerRemovedCallback a -> TimelineLayerAddedCallback
wrapped
FunPtr C_TimelineLayerAddedCallback
wrapped'' <- C_TimelineLayerAddedCallback
-> IO (FunPtr C_TimelineLayerAddedCallback)
mk_TimelineLayerRemovedCallback C_TimelineLayerAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineLayerAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"layer-removed" FunPtr C_TimelineLayerAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineLayerRemovedSignalInfo
instance SignalInfo TimelineLayerRemovedSignalInfo where
type HaskellCallbackType TimelineLayerRemovedSignalInfo = TimelineLayerRemovedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineLayerRemovedCallback cb
cb'' <- mk_TimelineLayerRemovedCallback cb'
connectSignalFunPtr obj "layer-removed" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::layer-removed"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:layerRemoved"})
#endif
type TimelineSelectElementTrackCallback =
GES.Clip.Clip
-> GES.TrackElement.TrackElement
-> IO (Maybe GES.Track.Track)
type C_TimelineSelectElementTrackCallback =
Ptr Timeline ->
Ptr GES.Clip.Clip ->
Ptr GES.TrackElement.TrackElement ->
Ptr () ->
IO (Ptr GES.Track.Track)
foreign import ccall "wrapper"
mk_TimelineSelectElementTrackCallback :: C_TimelineSelectElementTrackCallback -> IO (FunPtr C_TimelineSelectElementTrackCallback)
wrap_TimelineSelectElementTrackCallback ::
GObject a => (a -> TimelineSelectElementTrackCallback) ->
C_TimelineSelectElementTrackCallback
wrap_TimelineSelectElementTrackCallback :: forall a.
GObject a =>
(a -> TimelineSelectElementTrackCallback)
-> C_TimelineSelectElementTrackCallback
wrap_TimelineSelectElementTrackCallback a -> TimelineSelectElementTrackCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Clip
clip Ptr TrackElement
trackElement Ptr ()
_ = do
Clip
clip' <- ((ManagedPtr Clip -> Clip) -> Ptr Clip -> IO Clip
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Clip -> Clip
GES.Clip.Clip) Ptr Clip
clip
TrackElement
trackElement' <- ((ManagedPtr TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) Ptr TrackElement
trackElement
Maybe Track
result <- Ptr Timeline -> (Timeline -> IO (Maybe Track)) -> IO (Maybe Track)
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO (Maybe Track)) -> IO (Maybe Track))
-> (Timeline -> IO (Maybe Track)) -> IO (Maybe Track)
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineSelectElementTrackCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Clip
clip' TrackElement
trackElement'
Ptr Track
-> Maybe Track -> (Track -> IO (Ptr Track)) -> IO (Ptr Track)
forall (m :: * -> *) b a.
Monad m =>
b -> Maybe a -> (a -> m b) -> m b
maybeM Ptr Track
forall a. Ptr a
FP.nullPtr Maybe Track
result ((Track -> IO (Ptr Track)) -> IO (Ptr Track))
-> (Track -> IO (Ptr Track)) -> IO (Ptr Track)
forall a b. (a -> b) -> a -> b
$ \Track
result' -> do
Ptr Track
result'' <- Track -> IO (Ptr Track)
forall a b. (HasCallStack, GObject a) => a -> IO (Ptr b)
B.ManagedPtr.disownObject Track
result'
Ptr Track -> IO (Ptr Track)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Track
result''
onTimelineSelectElementTrack :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSelectElementTrackCallback) -> m SignalHandlerId
onTimelineSelectElementTrack :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSelectElementTrackCallback)
-> m SignalHandlerId
onTimelineSelectElementTrack a
obj (?self::a) => TimelineSelectElementTrackCallback
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 -> TimelineSelectElementTrackCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSelectElementTrackCallback
TimelineSelectElementTrackCallback
cb
let wrapped' :: C_TimelineSelectElementTrackCallback
wrapped' = (a -> TimelineSelectElementTrackCallback)
-> C_TimelineSelectElementTrackCallback
forall a.
GObject a =>
(a -> TimelineSelectElementTrackCallback)
-> C_TimelineSelectElementTrackCallback
wrap_TimelineSelectElementTrackCallback a -> TimelineSelectElementTrackCallback
wrapped
FunPtr C_TimelineSelectElementTrackCallback
wrapped'' <- C_TimelineSelectElementTrackCallback
-> IO (FunPtr C_TimelineSelectElementTrackCallback)
mk_TimelineSelectElementTrackCallback C_TimelineSelectElementTrackCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSelectElementTrackCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"select-element-track" FunPtr C_TimelineSelectElementTrackCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineSelectElementTrack :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSelectElementTrackCallback) -> m SignalHandlerId
afterTimelineSelectElementTrack :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSelectElementTrackCallback)
-> m SignalHandlerId
afterTimelineSelectElementTrack a
obj (?self::a) => TimelineSelectElementTrackCallback
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 -> TimelineSelectElementTrackCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSelectElementTrackCallback
TimelineSelectElementTrackCallback
cb
let wrapped' :: C_TimelineSelectElementTrackCallback
wrapped' = (a -> TimelineSelectElementTrackCallback)
-> C_TimelineSelectElementTrackCallback
forall a.
GObject a =>
(a -> TimelineSelectElementTrackCallback)
-> C_TimelineSelectElementTrackCallback
wrap_TimelineSelectElementTrackCallback a -> TimelineSelectElementTrackCallback
wrapped
FunPtr C_TimelineSelectElementTrackCallback
wrapped'' <- C_TimelineSelectElementTrackCallback
-> IO (FunPtr C_TimelineSelectElementTrackCallback)
mk_TimelineSelectElementTrackCallback C_TimelineSelectElementTrackCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSelectElementTrackCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"select-element-track" FunPtr C_TimelineSelectElementTrackCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineSelectElementTrackSignalInfo
instance SignalInfo TimelineSelectElementTrackSignalInfo where
type HaskellCallbackType TimelineSelectElementTrackSignalInfo = TimelineSelectElementTrackCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineSelectElementTrackCallback cb
cb'' <- mk_TimelineSelectElementTrackCallback cb'
connectSignalFunPtr obj "select-element-track" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::select-element-track"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:selectElementTrack"})
#endif
type TimelineSelectTracksForObjectCallback =
GES.Clip.Clip
-> GES.TrackElement.TrackElement
-> IO [GES.Track.Track]
type C_TimelineSelectTracksForObjectCallback =
Ptr Timeline ->
Ptr GES.Clip.Clip ->
Ptr GES.TrackElement.TrackElement ->
Ptr () ->
IO (Ptr (GPtrArray (Ptr GES.Track.Track)))
foreign import ccall "wrapper"
mk_TimelineSelectTracksForObjectCallback :: C_TimelineSelectTracksForObjectCallback -> IO (FunPtr C_TimelineSelectTracksForObjectCallback)
wrap_TimelineSelectTracksForObjectCallback ::
GObject a => (a -> TimelineSelectTracksForObjectCallback) ->
C_TimelineSelectTracksForObjectCallback
wrap_TimelineSelectTracksForObjectCallback :: forall a.
GObject a =>
(a -> TimelineSelectTracksForObjectCallback)
-> C_TimelineSelectTracksForObjectCallback
wrap_TimelineSelectTracksForObjectCallback a -> TimelineSelectTracksForObjectCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Clip
clip Ptr TrackElement
trackElement Ptr ()
_ = do
Clip
clip' <- ((ManagedPtr Clip -> Clip) -> Ptr Clip -> IO Clip
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Clip -> Clip
GES.Clip.Clip) Ptr Clip
clip
TrackElement
trackElement' <- ((ManagedPtr TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) Ptr TrackElement
trackElement
[Track]
result <- Ptr Timeline -> (Timeline -> IO [Track]) -> IO [Track]
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO [Track]) -> IO [Track])
-> (Timeline -> IO [Track]) -> IO [Track]
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineSelectTracksForObjectCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Clip
clip' TrackElement
trackElement'
[Ptr Track]
result' <- (Track -> IO (Ptr Track)) -> [Track] -> IO [Ptr Track]
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 Track -> IO (Ptr Track)
forall a b. (HasCallStack, GObject a) => a -> IO (Ptr b)
B.ManagedPtr.disownObject [Track]
result
Ptr (GPtrArray (Ptr Track))
result'' <- [Ptr Track] -> IO (Ptr (GPtrArray (Ptr Track)))
forall a. [Ptr a] -> IO (Ptr (GPtrArray (Ptr a)))
packGPtrArray [Ptr Track]
result'
Ptr (GPtrArray (Ptr Track)) -> IO (Ptr (GPtrArray (Ptr Track)))
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr (GPtrArray (Ptr Track))
result''
onTimelineSelectTracksForObject :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSelectTracksForObjectCallback) -> m SignalHandlerId
onTimelineSelectTracksForObject :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSelectTracksForObjectCallback)
-> m SignalHandlerId
onTimelineSelectTracksForObject a
obj (?self::a) => TimelineSelectTracksForObjectCallback
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 -> TimelineSelectTracksForObjectCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSelectTracksForObjectCallback
TimelineSelectTracksForObjectCallback
cb
let wrapped' :: C_TimelineSelectTracksForObjectCallback
wrapped' = (a -> TimelineSelectTracksForObjectCallback)
-> C_TimelineSelectTracksForObjectCallback
forall a.
GObject a =>
(a -> TimelineSelectTracksForObjectCallback)
-> C_TimelineSelectTracksForObjectCallback
wrap_TimelineSelectTracksForObjectCallback a -> TimelineSelectTracksForObjectCallback
wrapped
FunPtr C_TimelineSelectTracksForObjectCallback
wrapped'' <- C_TimelineSelectTracksForObjectCallback
-> IO (FunPtr C_TimelineSelectTracksForObjectCallback)
mk_TimelineSelectTracksForObjectCallback C_TimelineSelectTracksForObjectCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSelectTracksForObjectCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"select-tracks-for-object" FunPtr C_TimelineSelectTracksForObjectCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineSelectTracksForObject :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSelectTracksForObjectCallback) -> m SignalHandlerId
afterTimelineSelectTracksForObject :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSelectTracksForObjectCallback)
-> m SignalHandlerId
afterTimelineSelectTracksForObject a
obj (?self::a) => TimelineSelectTracksForObjectCallback
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 -> TimelineSelectTracksForObjectCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSelectTracksForObjectCallback
TimelineSelectTracksForObjectCallback
cb
let wrapped' :: C_TimelineSelectTracksForObjectCallback
wrapped' = (a -> TimelineSelectTracksForObjectCallback)
-> C_TimelineSelectTracksForObjectCallback
forall a.
GObject a =>
(a -> TimelineSelectTracksForObjectCallback)
-> C_TimelineSelectTracksForObjectCallback
wrap_TimelineSelectTracksForObjectCallback a -> TimelineSelectTracksForObjectCallback
wrapped
FunPtr C_TimelineSelectTracksForObjectCallback
wrapped'' <- C_TimelineSelectTracksForObjectCallback
-> IO (FunPtr C_TimelineSelectTracksForObjectCallback)
mk_TimelineSelectTracksForObjectCallback C_TimelineSelectTracksForObjectCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSelectTracksForObjectCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"select-tracks-for-object" FunPtr C_TimelineSelectTracksForObjectCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineSelectTracksForObjectSignalInfo
instance SignalInfo TimelineSelectTracksForObjectSignalInfo where
type HaskellCallbackType TimelineSelectTracksForObjectSignalInfo = TimelineSelectTracksForObjectCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineSelectTracksForObjectCallback cb
cb'' <- mk_TimelineSelectTracksForObjectCallback cb'
connectSignalFunPtr obj "select-tracks-for-object" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::select-tracks-for-object"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:selectTracksForObject"})
#endif
type TimelineSnappingEndedCallback =
GES.TrackElement.TrackElement
-> GES.TrackElement.TrackElement
-> Word64
-> IO ()
type C_TimelineSnappingEndedCallback =
Ptr Timeline ->
Ptr GES.TrackElement.TrackElement ->
Ptr GES.TrackElement.TrackElement ->
Word64 ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineSnappingEndedCallback :: C_TimelineSnappingEndedCallback -> IO (FunPtr C_TimelineSnappingEndedCallback)
wrap_TimelineSnappingEndedCallback ::
GObject a => (a -> TimelineSnappingEndedCallback) ->
C_TimelineSnappingEndedCallback
wrap_TimelineSnappingEndedCallback :: forall a.
GObject a =>
(a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
wrap_TimelineSnappingEndedCallback a -> TimelineSnappingEndedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr TrackElement
obj1 Ptr TrackElement
obj2 Word64
position Ptr ()
_ = do
TrackElement
obj1' <- ((ManagedPtr TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) Ptr TrackElement
obj1
TrackElement
obj2' <- ((ManagedPtr TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) Ptr TrackElement
obj2
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineSnappingEndedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) TrackElement
obj1' TrackElement
obj2' Word64
position
onTimelineSnappingEnded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSnappingEndedCallback) -> m SignalHandlerId
onTimelineSnappingEnded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSnappingEndedCallback)
-> m SignalHandlerId
onTimelineSnappingEnded a
obj (?self::a) => TimelineSnappingEndedCallback
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 -> TimelineSnappingEndedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSnappingEndedCallback
TimelineSnappingEndedCallback
cb
let wrapped' :: C_TimelineSnappingEndedCallback
wrapped' = (a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
forall a.
GObject a =>
(a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
wrap_TimelineSnappingEndedCallback a -> TimelineSnappingEndedCallback
wrapped
FunPtr C_TimelineSnappingEndedCallback
wrapped'' <- C_TimelineSnappingEndedCallback
-> IO (FunPtr C_TimelineSnappingEndedCallback)
mk_TimelineSnappingEndedCallback C_TimelineSnappingEndedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSnappingEndedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"snapping-ended" FunPtr C_TimelineSnappingEndedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineSnappingEnded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSnappingEndedCallback) -> m SignalHandlerId
afterTimelineSnappingEnded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSnappingEndedCallback)
-> m SignalHandlerId
afterTimelineSnappingEnded a
obj (?self::a) => TimelineSnappingEndedCallback
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 -> TimelineSnappingEndedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSnappingEndedCallback
TimelineSnappingEndedCallback
cb
let wrapped' :: C_TimelineSnappingEndedCallback
wrapped' = (a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
forall a.
GObject a =>
(a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
wrap_TimelineSnappingEndedCallback a -> TimelineSnappingEndedCallback
wrapped
FunPtr C_TimelineSnappingEndedCallback
wrapped'' <- C_TimelineSnappingEndedCallback
-> IO (FunPtr C_TimelineSnappingEndedCallback)
mk_TimelineSnappingEndedCallback C_TimelineSnappingEndedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSnappingEndedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"snapping-ended" FunPtr C_TimelineSnappingEndedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineSnappingEndedSignalInfo
instance SignalInfo TimelineSnappingEndedSignalInfo where
type HaskellCallbackType TimelineSnappingEndedSignalInfo = TimelineSnappingEndedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineSnappingEndedCallback cb
cb'' <- mk_TimelineSnappingEndedCallback cb'
connectSignalFunPtr obj "snapping-ended" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::snapping-ended"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:snappingEnded"})
#endif
type TimelineSnappingStartedCallback =
GES.TrackElement.TrackElement
-> GES.TrackElement.TrackElement
-> Word64
-> IO ()
type C_TimelineSnappingStartedCallback =
Ptr Timeline ->
Ptr GES.TrackElement.TrackElement ->
Ptr GES.TrackElement.TrackElement ->
Word64 ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineSnappingStartedCallback :: C_TimelineSnappingStartedCallback -> IO (FunPtr C_TimelineSnappingStartedCallback)
wrap_TimelineSnappingStartedCallback ::
GObject a => (a -> TimelineSnappingStartedCallback) ->
C_TimelineSnappingStartedCallback
wrap_TimelineSnappingStartedCallback :: forall a.
GObject a =>
(a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
wrap_TimelineSnappingStartedCallback a -> TimelineSnappingEndedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr TrackElement
obj1 Ptr TrackElement
obj2 Word64
position Ptr ()
_ = do
TrackElement
obj1' <- ((ManagedPtr TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) Ptr TrackElement
obj1
TrackElement
obj2' <- ((ManagedPtr TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) Ptr TrackElement
obj2
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineSnappingEndedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) TrackElement
obj1' TrackElement
obj2' Word64
position
onTimelineSnappingStarted :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSnappingStartedCallback) -> m SignalHandlerId
onTimelineSnappingStarted :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSnappingEndedCallback)
-> m SignalHandlerId
onTimelineSnappingStarted a
obj (?self::a) => TimelineSnappingEndedCallback
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 -> TimelineSnappingEndedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSnappingEndedCallback
TimelineSnappingEndedCallback
cb
let wrapped' :: C_TimelineSnappingEndedCallback
wrapped' = (a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
forall a.
GObject a =>
(a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
wrap_TimelineSnappingStartedCallback a -> TimelineSnappingEndedCallback
wrapped
FunPtr C_TimelineSnappingEndedCallback
wrapped'' <- C_TimelineSnappingEndedCallback
-> IO (FunPtr C_TimelineSnappingEndedCallback)
mk_TimelineSnappingStartedCallback C_TimelineSnappingEndedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSnappingEndedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"snapping-started" FunPtr C_TimelineSnappingEndedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineSnappingStarted :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineSnappingStartedCallback) -> m SignalHandlerId
afterTimelineSnappingStarted :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineSnappingEndedCallback)
-> m SignalHandlerId
afterTimelineSnappingStarted a
obj (?self::a) => TimelineSnappingEndedCallback
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 -> TimelineSnappingEndedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineSnappingEndedCallback
TimelineSnappingEndedCallback
cb
let wrapped' :: C_TimelineSnappingEndedCallback
wrapped' = (a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
forall a.
GObject a =>
(a -> TimelineSnappingEndedCallback)
-> C_TimelineSnappingEndedCallback
wrap_TimelineSnappingStartedCallback a -> TimelineSnappingEndedCallback
wrapped
FunPtr C_TimelineSnappingEndedCallback
wrapped'' <- C_TimelineSnappingEndedCallback
-> IO (FunPtr C_TimelineSnappingEndedCallback)
mk_TimelineSnappingStartedCallback C_TimelineSnappingEndedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineSnappingEndedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"snapping-started" FunPtr C_TimelineSnappingEndedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineSnappingStartedSignalInfo
instance SignalInfo TimelineSnappingStartedSignalInfo where
type HaskellCallbackType TimelineSnappingStartedSignalInfo = TimelineSnappingStartedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineSnappingStartedCallback cb
cb'' <- mk_TimelineSnappingStartedCallback cb'
connectSignalFunPtr obj "snapping-started" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::snapping-started"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:snappingStarted"})
#endif
type TimelineTrackAddedCallback =
GES.Track.Track
-> IO ()
type C_TimelineTrackAddedCallback =
Ptr Timeline ->
Ptr GES.Track.Track ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineTrackAddedCallback :: C_TimelineTrackAddedCallback -> IO (FunPtr C_TimelineTrackAddedCallback)
wrap_TimelineTrackAddedCallback ::
GObject a => (a -> TimelineTrackAddedCallback) ->
C_TimelineTrackAddedCallback
wrap_TimelineTrackAddedCallback :: forall a.
GObject a =>
(a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
wrap_TimelineTrackAddedCallback a -> TimelineTrackAddedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Track
track Ptr ()
_ = do
Track
track' <- ((ManagedPtr Track -> Track) -> Ptr Track -> IO Track
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Track -> Track
GES.Track.Track) Ptr Track
track
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineTrackAddedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Track
track'
onTimelineTrackAdded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineTrackAddedCallback) -> m SignalHandlerId
onTimelineTrackAdded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineTrackAddedCallback) -> m SignalHandlerId
onTimelineTrackAdded a
obj (?self::a) => TimelineTrackAddedCallback
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 -> TimelineTrackAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineTrackAddedCallback
TimelineTrackAddedCallback
cb
let wrapped' :: C_TimelineTrackAddedCallback
wrapped' = (a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
forall a.
GObject a =>
(a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
wrap_TimelineTrackAddedCallback a -> TimelineTrackAddedCallback
wrapped
FunPtr C_TimelineTrackAddedCallback
wrapped'' <- C_TimelineTrackAddedCallback
-> IO (FunPtr C_TimelineTrackAddedCallback)
mk_TimelineTrackAddedCallback C_TimelineTrackAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineTrackAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"track-added" FunPtr C_TimelineTrackAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineTrackAdded :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineTrackAddedCallback) -> m SignalHandlerId
afterTimelineTrackAdded :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineTrackAddedCallback) -> m SignalHandlerId
afterTimelineTrackAdded a
obj (?self::a) => TimelineTrackAddedCallback
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 -> TimelineTrackAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineTrackAddedCallback
TimelineTrackAddedCallback
cb
let wrapped' :: C_TimelineTrackAddedCallback
wrapped' = (a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
forall a.
GObject a =>
(a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
wrap_TimelineTrackAddedCallback a -> TimelineTrackAddedCallback
wrapped
FunPtr C_TimelineTrackAddedCallback
wrapped'' <- C_TimelineTrackAddedCallback
-> IO (FunPtr C_TimelineTrackAddedCallback)
mk_TimelineTrackAddedCallback C_TimelineTrackAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineTrackAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"track-added" FunPtr C_TimelineTrackAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineTrackAddedSignalInfo
instance SignalInfo TimelineTrackAddedSignalInfo where
type HaskellCallbackType TimelineTrackAddedSignalInfo = TimelineTrackAddedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineTrackAddedCallback cb
cb'' <- mk_TimelineTrackAddedCallback cb'
connectSignalFunPtr obj "track-added" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::track-added"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:trackAdded"})
#endif
type TimelineTrackRemovedCallback =
GES.Track.Track
-> IO ()
type C_TimelineTrackRemovedCallback =
Ptr Timeline ->
Ptr GES.Track.Track ->
Ptr () ->
IO ()
foreign import ccall "wrapper"
mk_TimelineTrackRemovedCallback :: C_TimelineTrackRemovedCallback -> IO (FunPtr C_TimelineTrackRemovedCallback)
wrap_TimelineTrackRemovedCallback ::
GObject a => (a -> TimelineTrackRemovedCallback) ->
C_TimelineTrackRemovedCallback
wrap_TimelineTrackRemovedCallback :: forall a.
GObject a =>
(a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
wrap_TimelineTrackRemovedCallback a -> TimelineTrackAddedCallback
gi'cb Ptr Timeline
gi'selfPtr Ptr Track
track Ptr ()
_ = do
Track
track' <- ((ManagedPtr Track -> Track) -> Ptr Track -> IO Track
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Track -> Track
GES.Track.Track) Ptr Track
track
Ptr Timeline -> (Timeline -> IO ()) -> IO ()
forall a b.
(HasCallStack, ManagedPtrNewtype a) =>
Ptr a -> (a -> IO b) -> IO b
B.ManagedPtr.withTransient Ptr Timeline
gi'selfPtr ((Timeline -> IO ()) -> IO ()) -> (Timeline -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Timeline
gi'self -> a -> TimelineTrackAddedCallback
gi'cb (Timeline -> a
forall a b. Coercible a b => a -> b
Coerce.coerce Timeline
gi'self) Track
track'
onTimelineTrackRemoved :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineTrackRemovedCallback) -> m SignalHandlerId
onTimelineTrackRemoved :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineTrackAddedCallback) -> m SignalHandlerId
onTimelineTrackRemoved a
obj (?self::a) => TimelineTrackAddedCallback
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 -> TimelineTrackAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineTrackAddedCallback
TimelineTrackAddedCallback
cb
let wrapped' :: C_TimelineTrackAddedCallback
wrapped' = (a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
forall a.
GObject a =>
(a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
wrap_TimelineTrackRemovedCallback a -> TimelineTrackAddedCallback
wrapped
FunPtr C_TimelineTrackAddedCallback
wrapped'' <- C_TimelineTrackAddedCallback
-> IO (FunPtr C_TimelineTrackAddedCallback)
mk_TimelineTrackRemovedCallback C_TimelineTrackAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineTrackAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"track-removed" FunPtr C_TimelineTrackAddedCallback
wrapped'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterTimelineTrackRemoved :: (IsTimeline a, MonadIO m) => a -> ((?self :: a) => TimelineTrackRemovedCallback) -> m SignalHandlerId
afterTimelineTrackRemoved :: forall a (m :: * -> *).
(IsTimeline a, MonadIO m) =>
a
-> ((?self::a) => TimelineTrackAddedCallback) -> m SignalHandlerId
afterTimelineTrackRemoved a
obj (?self::a) => TimelineTrackAddedCallback
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 -> TimelineTrackAddedCallback
wrapped a
self = let ?self = a
?self::a
self in (?self::a) => TimelineTrackAddedCallback
TimelineTrackAddedCallback
cb
let wrapped' :: C_TimelineTrackAddedCallback
wrapped' = (a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
forall a.
GObject a =>
(a -> TimelineTrackAddedCallback) -> C_TimelineTrackAddedCallback
wrap_TimelineTrackRemovedCallback a -> TimelineTrackAddedCallback
wrapped
FunPtr C_TimelineTrackAddedCallback
wrapped'' <- C_TimelineTrackAddedCallback
-> IO (FunPtr C_TimelineTrackAddedCallback)
mk_TimelineTrackRemovedCallback C_TimelineTrackAddedCallback
wrapped'
a
-> Text
-> FunPtr C_TimelineTrackAddedCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj Text
"track-removed" FunPtr C_TimelineTrackAddedCallback
wrapped'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data TimelineTrackRemovedSignalInfo
instance SignalInfo TimelineTrackRemovedSignalInfo where
type HaskellCallbackType TimelineTrackRemovedSignalInfo = TimelineTrackRemovedCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_TimelineTrackRemovedCallback cb
cb'' <- mk_TimelineTrackRemovedCallback cb'
connectSignalFunPtr obj "track-removed" cb'' connectMode detail
dbgSignalInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline::track-removed"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:signal:trackRemoved"})
#endif
getTimelineAutoTransition :: (MonadIO m, IsTimeline o) => o -> m Bool
getTimelineAutoTransition :: forall (m :: * -> *) o. (MonadIO m, IsTimeline o) => o -> m Bool
getTimelineAutoTransition 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
"auto-transition"
setTimelineAutoTransition :: (MonadIO m, IsTimeline o) => o -> Bool -> m ()
setTimelineAutoTransition :: forall (m :: * -> *) o.
(MonadIO m, IsTimeline o) =>
o -> Bool -> m ()
setTimelineAutoTransition 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
"auto-transition" Bool
val
constructTimelineAutoTransition :: (IsTimeline o, MIO.MonadIO m) => Bool -> m (GValueConstruct o)
constructTimelineAutoTransition :: forall o (m :: * -> *).
(IsTimeline o, MonadIO m) =>
Bool -> m (GValueConstruct o)
constructTimelineAutoTransition 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
"auto-transition" Bool
val
#if defined(ENABLE_OVERLOADING)
data TimelineAutoTransitionPropertyInfo
instance AttrInfo TimelineAutoTransitionPropertyInfo where
type AttrAllowedOps TimelineAutoTransitionPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineAutoTransitionPropertyInfo = IsTimeline
type AttrSetTypeConstraint TimelineAutoTransitionPropertyInfo = (~) Bool
type AttrTransferTypeConstraint TimelineAutoTransitionPropertyInfo = (~) Bool
type AttrTransferType TimelineAutoTransitionPropertyInfo = Bool
type AttrGetType TimelineAutoTransitionPropertyInfo = Bool
type AttrLabel TimelineAutoTransitionPropertyInfo = "auto-transition"
type AttrOrigin TimelineAutoTransitionPropertyInfo = Timeline
attrGet = getTimelineAutoTransition
attrSet = setTimelineAutoTransition
attrTransfer _ v = do
return v
attrConstruct = constructTimelineAutoTransition
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.autoTransition"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:attr:autoTransition"
})
#endif
getTimelineDuration :: (MonadIO m, IsTimeline o) => o -> m Word64
getTimelineDuration :: forall (m :: * -> *) o. (MonadIO m, IsTimeline o) => o -> m Word64
getTimelineDuration 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"
#if defined(ENABLE_OVERLOADING)
data TimelineDurationPropertyInfo
instance AttrInfo TimelineDurationPropertyInfo where
type AttrAllowedOps TimelineDurationPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint TimelineDurationPropertyInfo = IsTimeline
type AttrSetTypeConstraint TimelineDurationPropertyInfo = (~) ()
type AttrTransferTypeConstraint TimelineDurationPropertyInfo = (~) ()
type AttrTransferType TimelineDurationPropertyInfo = ()
type AttrGetType TimelineDurationPropertyInfo = Word64
type AttrLabel TimelineDurationPropertyInfo = "duration"
type AttrOrigin TimelineDurationPropertyInfo = Timeline
attrGet = getTimelineDuration
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.duration"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:attr:duration"
})
#endif
getTimelineSnappingDistance :: (MonadIO m, IsTimeline o) => o -> m Word64
getTimelineSnappingDistance :: forall (m :: * -> *) o. (MonadIO m, IsTimeline o) => o -> m Word64
getTimelineSnappingDistance 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
"snapping-distance"
setTimelineSnappingDistance :: (MonadIO m, IsTimeline o) => o -> Word64 -> m ()
setTimelineSnappingDistance :: forall (m :: * -> *) o.
(MonadIO m, IsTimeline o) =>
o -> Word64 -> m ()
setTimelineSnappingDistance 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
"snapping-distance" Word64
val
constructTimelineSnappingDistance :: (IsTimeline o, MIO.MonadIO m) => Word64 -> m (GValueConstruct o)
constructTimelineSnappingDistance :: forall o (m :: * -> *).
(IsTimeline o, MonadIO m) =>
Word64 -> m (GValueConstruct o)
constructTimelineSnappingDistance 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
"snapping-distance" Word64
val
#if defined(ENABLE_OVERLOADING)
data TimelineSnappingDistancePropertyInfo
instance AttrInfo TimelineSnappingDistancePropertyInfo where
type AttrAllowedOps TimelineSnappingDistancePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TimelineSnappingDistancePropertyInfo = IsTimeline
type AttrSetTypeConstraint TimelineSnappingDistancePropertyInfo = (~) Word64
type AttrTransferTypeConstraint TimelineSnappingDistancePropertyInfo = (~) Word64
type AttrTransferType TimelineSnappingDistancePropertyInfo = Word64
type AttrGetType TimelineSnappingDistancePropertyInfo = Word64
type AttrLabel TimelineSnappingDistancePropertyInfo = "snapping-distance"
type AttrOrigin TimelineSnappingDistancePropertyInfo = Timeline
attrGet = getTimelineSnappingDistance
attrSet = setTimelineSnappingDistance
attrTransfer _ v = do
return v
attrConstruct = constructTimelineSnappingDistance
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.snappingDistance"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#g:attr:snappingDistance"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Timeline
type instance O.AttributeList Timeline = TimelineAttributeList
type TimelineAttributeList = ('[ '("asyncHandling", Gst.Bin.BinAsyncHandlingPropertyInfo), '("autoTransition", TimelineAutoTransitionPropertyInfo), '("duration", TimelineDurationPropertyInfo), '("messageForward", Gst.Bin.BinMessageForwardPropertyInfo), '("name", Gst.Object.ObjectNamePropertyInfo), '("parent", Gst.Object.ObjectParentPropertyInfo), '("snappingDistance", TimelineSnappingDistancePropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
timelineAutoTransition :: AttrLabelProxy "autoTransition"
timelineAutoTransition = AttrLabelProxy
timelineDuration :: AttrLabelProxy "duration"
timelineDuration = AttrLabelProxy
timelineSnappingDistance :: AttrLabelProxy "snappingDistance"
timelineSnappingDistance = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Timeline = TimelineSignalList
type TimelineSignalList = ('[ '("childAdded", Gst.ChildProxy.ChildProxyChildAddedSignalInfo), '("childRemoved", Gst.ChildProxy.ChildProxyChildRemovedSignalInfo), '("commited", TimelineCommitedSignalInfo), '("deepElementAdded", Gst.Bin.BinDeepElementAddedSignalInfo), '("deepElementRemoved", Gst.Bin.BinDeepElementRemovedSignalInfo), '("deepNotify", Gst.Object.ObjectDeepNotifySignalInfo), '("doLatency", Gst.Bin.BinDoLatencySignalInfo), '("elementAdded", Gst.Bin.BinElementAddedSignalInfo), '("elementRemoved", Gst.Bin.BinElementRemovedSignalInfo), '("groupAdded", TimelineGroupAddedSignalInfo), '("groupRemoved", TimelineGroupRemovedSignalInfo), '("layerAdded", TimelineLayerAddedSignalInfo), '("layerRemoved", TimelineLayerRemovedSignalInfo), '("noMorePads", Gst.Element.ElementNoMorePadsSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("notifyMeta", GES.MetaContainer.MetaContainerNotifyMetaSignalInfo), '("padAdded", Gst.Element.ElementPadAddedSignalInfo), '("padRemoved", Gst.Element.ElementPadRemovedSignalInfo), '("selectElementTrack", TimelineSelectElementTrackSignalInfo), '("selectTracksForObject", TimelineSelectTracksForObjectSignalInfo), '("snappingEnded", TimelineSnappingEndedSignalInfo), '("snappingStarted", TimelineSnappingStartedSignalInfo), '("trackAdded", TimelineTrackAddedSignalInfo), '("trackRemoved", TimelineTrackRemovedSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "ges_timeline_new" ges_timeline_new ::
IO (Ptr Timeline)
timelineNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m Timeline
timelineNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m Timeline
timelineNew = IO Timeline -> m Timeline
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Timeline -> m Timeline) -> IO Timeline -> m Timeline
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
result <- IO (Ptr Timeline)
ges_timeline_new
Text -> Ptr Timeline -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"timelineNew" Ptr Timeline
result
Timeline
result' <- ((ManagedPtr Timeline -> Timeline) -> Ptr Timeline -> IO Timeline
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Timeline -> Timeline
Timeline) Ptr Timeline
result
Timeline -> IO Timeline
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Timeline
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "ges_timeline_new_audio_video" ges_timeline_new_audio_video ::
IO (Ptr Timeline)
timelineNewAudioVideo ::
(B.CallStack.HasCallStack, MonadIO m) =>
m Timeline
timelineNewAudioVideo :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m Timeline
timelineNewAudioVideo = IO Timeline -> m Timeline
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Timeline -> m Timeline) -> IO Timeline -> m Timeline
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
result <- IO (Ptr Timeline)
ges_timeline_new_audio_video
Text -> Ptr Timeline -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"timelineNewAudioVideo" Ptr Timeline
result
Timeline
result' <- ((ManagedPtr Timeline -> Timeline) -> Ptr Timeline -> IO Timeline
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Timeline -> Timeline
Timeline) Ptr Timeline
result
Timeline -> IO Timeline
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Timeline
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "ges_timeline_new_from_uri" ges_timeline_new_from_uri ::
CString ->
Ptr (Ptr GError) ->
IO (Ptr Timeline)
timelineNewFromUri ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> m Timeline
timelineNewFromUri :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
Text -> m Timeline
timelineNewFromUri Text
uri = IO Timeline -> m Timeline
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Timeline -> m Timeline) -> IO Timeline -> m Timeline
forall a b. (a -> b) -> a -> b
$ do
CString
uri' <- Text -> IO CString
textToCString Text
uri
IO Timeline -> IO () -> IO Timeline
forall a b. IO a -> IO b -> IO a
onException (do
Ptr Timeline
result <- (Ptr (Ptr GError) -> IO (Ptr Timeline)) -> IO (Ptr Timeline)
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO (Ptr Timeline)) -> IO (Ptr Timeline))
-> (Ptr (Ptr GError) -> IO (Ptr Timeline)) -> IO (Ptr Timeline)
forall a b. (a -> b) -> a -> b
$ CString -> Ptr (Ptr GError) -> IO (Ptr Timeline)
ges_timeline_new_from_uri CString
uri'
Text -> Ptr Timeline -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"timelineNewFromUri" Ptr Timeline
result
Timeline
result' <- ((ManagedPtr Timeline -> Timeline) -> Ptr Timeline -> IO Timeline
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Timeline -> Timeline
Timeline) Ptr Timeline
result
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
Timeline -> IO Timeline
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Timeline
result'
) (do
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
)
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "ges_timeline_add_layer" ges_timeline_add_layer ::
Ptr Timeline ->
Ptr GES.Layer.Layer ->
IO CInt
{-# DEPRECATED timelineAddLayer ["(Since version 1.18)","This method requires you to ensure the layer\\'s","[Layer:priority](\"GI.GES.Objects.Layer#g:attr:priority\") will be unique to the timeline. Use","'GI.GES.Objects.Timeline.timelineAppendLayer' and 'GI.GES.Objects.Timeline.timelineMoveLayer' instead."] #-}
timelineAddLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.Layer.IsLayer b) =>
a
-> b
-> m Bool
timelineAddLayer :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsLayer b) =>
a -> b -> m Bool
timelineAddLayer a
timeline b
layer = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Layer
layer' <- b -> IO (Ptr Layer)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
layer
CInt
result <- Ptr Timeline -> Ptr Layer -> IO CInt
ges_timeline_add_layer Ptr Timeline
timeline' Ptr Layer
layer'
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
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
layer
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineAddLayerMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsTimeline a, GES.Layer.IsLayer b) => O.OverloadedMethod TimelineAddLayerMethodInfo a signature where
overloadedMethod = timelineAddLayer
instance O.OverloadedMethodInfo TimelineAddLayerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineAddLayer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineAddLayer"
})
#endif
foreign import ccall "ges_timeline_add_track" ges_timeline_add_track ::
Ptr Timeline ->
Ptr GES.Track.Track ->
IO CInt
timelineAddTrack ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.Track.IsTrack b) =>
a
-> b
-> m Bool
timelineAddTrack :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsTrack b) =>
a -> b -> m Bool
timelineAddTrack a
timeline b
track = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Track
track' <- b -> IO (Ptr Track)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
track
CInt
result <- Ptr Timeline -> Ptr Track -> IO CInt
ges_timeline_add_track Ptr Timeline
timeline' Ptr Track
track'
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
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
track
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineAddTrackMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsTimeline a, GES.Track.IsTrack b) => O.OverloadedMethod TimelineAddTrackMethodInfo a signature where
overloadedMethod = timelineAddTrack
instance O.OverloadedMethodInfo TimelineAddTrackMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineAddTrack",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineAddTrack"
})
#endif
foreign import ccall "ges_timeline_append_layer" ges_timeline_append_layer ::
Ptr Timeline ->
IO (Ptr GES.Layer.Layer)
timelineAppendLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m GES.Layer.Layer
timelineAppendLayer :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Layer
timelineAppendLayer a
timeline = IO Layer -> m Layer
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Layer -> m Layer) -> IO Layer -> m Layer
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Layer
result <- Ptr Timeline -> IO (Ptr Layer)
ges_timeline_append_layer Ptr Timeline
timeline'
Text -> Ptr Layer -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"timelineAppendLayer" Ptr Layer
result
Layer
result' <- ((ManagedPtr Layer -> Layer) -> Ptr Layer -> IO Layer
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Layer -> Layer
GES.Layer.Layer) Ptr Layer
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
Layer -> IO Layer
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Layer
result'
#if defined(ENABLE_OVERLOADING)
data TimelineAppendLayerMethodInfo
instance (signature ~ (m GES.Layer.Layer), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineAppendLayerMethodInfo a signature where
overloadedMethod = timelineAppendLayer
instance O.OverloadedMethodInfo TimelineAppendLayerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineAppendLayer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineAppendLayer"
})
#endif
foreign import ccall "ges_timeline_commit" ges_timeline_commit ::
Ptr Timeline ->
IO CInt
timelineCommit ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m Bool
timelineCommit :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Bool
timelineCommit a
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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
CInt
result <- Ptr Timeline -> IO CInt
ges_timeline_commit 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
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 TimelineCommitMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineCommitMethodInfo a signature where
overloadedMethod = timelineCommit
instance O.OverloadedMethodInfo TimelineCommitMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineCommit",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineCommit"
})
#endif
foreign import ccall "ges_timeline_commit_sync" ges_timeline_commit_sync ::
Ptr Timeline ->
IO CInt
timelineCommitSync ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m Bool
timelineCommitSync :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Bool
timelineCommitSync a
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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
CInt
result <- Ptr Timeline -> IO CInt
ges_timeline_commit_sync 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
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 TimelineCommitSyncMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineCommitSyncMethodInfo a signature where
overloadedMethod = timelineCommitSync
instance O.OverloadedMethodInfo TimelineCommitSyncMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineCommitSync",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineCommitSync"
})
#endif
foreign import ccall "ges_timeline_disable_edit_apis" ges_timeline_disable_edit_apis ::
Ptr Timeline ->
CInt ->
IO ()
timelineDisableEditApis ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> Bool
-> m ()
timelineDisableEditApis :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Bool -> m ()
timelineDisableEditApis a
self Bool
disableEditApis = 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 Timeline
self' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let disableEditApis' :: CInt
disableEditApis' = (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
disableEditApis
Ptr Timeline -> CInt -> IO ()
ges_timeline_disable_edit_apis Ptr Timeline
self' CInt
disableEditApis'
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 ()
#if defined(ENABLE_OVERLOADING)
data TimelineDisableEditApisMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineDisableEditApisMethodInfo a signature where
overloadedMethod = timelineDisableEditApis
instance O.OverloadedMethodInfo TimelineDisableEditApisMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineDisableEditApis",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineDisableEditApis"
})
#endif
foreign import ccall "ges_timeline_freeze_commit" ges_timeline_freeze_commit ::
Ptr Timeline ->
IO ()
timelineFreezeCommit ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m ()
timelineFreezeCommit :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m ()
timelineFreezeCommit a
timeline = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Timeline -> IO ()
ges_timeline_freeze_commit Ptr Timeline
timeline'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TimelineFreezeCommitMethodInfo
instance (signature ~ (m ()), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineFreezeCommitMethodInfo a signature where
overloadedMethod = timelineFreezeCommit
instance O.OverloadedMethodInfo TimelineFreezeCommitMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineFreezeCommit",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineFreezeCommit"
})
#endif
foreign import ccall "ges_timeline_get_auto_transition" ges_timeline_get_auto_transition ::
Ptr Timeline ->
IO CInt
timelineGetAutoTransition ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m Bool
timelineGetAutoTransition :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Bool
timelineGetAutoTransition a
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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
CInt
result <- Ptr Timeline -> IO CInt
ges_timeline_get_auto_transition 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
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 TimelineGetAutoTransitionMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetAutoTransitionMethodInfo a signature where
overloadedMethod = timelineGetAutoTransition
instance O.OverloadedMethodInfo TimelineGetAutoTransitionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetAutoTransition",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetAutoTransition"
})
#endif
foreign import ccall "ges_timeline_get_duration" ges_timeline_get_duration ::
Ptr Timeline ->
IO Word64
timelineGetDuration ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m Word64
timelineGetDuration :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Word64
timelineGetDuration a
timeline = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Word64
result <- Ptr Timeline -> IO Word64
ges_timeline_get_duration Ptr Timeline
timeline'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data TimelineGetDurationMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetDurationMethodInfo a signature where
overloadedMethod = timelineGetDuration
instance O.OverloadedMethodInfo TimelineGetDurationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetDuration",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetDuration"
})
#endif
foreign import ccall "ges_timeline_get_edit_apis_disabled" ges_timeline_get_edit_apis_disabled ::
Ptr Timeline ->
IO CInt
timelineGetEditApisDisabled ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m Bool
timelineGetEditApisDisabled :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Bool
timelineGetEditApisDisabled a
self = 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 Timeline
self' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr Timeline -> IO CInt
ges_timeline_get_edit_apis_disabled Ptr Timeline
self'
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 TimelineGetEditApisDisabledMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetEditApisDisabledMethodInfo a signature where
overloadedMethod = timelineGetEditApisDisabled
instance O.OverloadedMethodInfo TimelineGetEditApisDisabledMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetEditApisDisabled",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetEditApisDisabled"
})
#endif
foreign import ccall "ges_timeline_get_element" ges_timeline_get_element ::
Ptr Timeline ->
CString ->
IO (Ptr GES.TimelineElement.TimelineElement)
timelineGetElement ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> T.Text
-> m (Maybe GES.TimelineElement.TimelineElement)
timelineGetElement :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Text -> m (Maybe TimelineElement)
timelineGetElement a
timeline Text
name = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
CString
name' <- Text -> IO CString
textToCString Text
name
Ptr TimelineElement
result <- Ptr Timeline -> CString -> IO (Ptr TimelineElement)
ges_timeline_get_element Ptr Timeline
timeline' CString
name'
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
GES.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
timeline
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
name'
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 TimelineGetElementMethodInfo
instance (signature ~ (T.Text -> m (Maybe GES.TimelineElement.TimelineElement)), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetElementMethodInfo a signature where
overloadedMethod = timelineGetElement
instance O.OverloadedMethodInfo TimelineGetElementMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetElement",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetElement"
})
#endif
foreign import ccall "ges_timeline_get_frame_at" ges_timeline_get_frame_at ::
Ptr Timeline ->
Word64 ->
IO Int64
timelineGetFrameAt ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> Word64
-> m Int64
timelineGetFrameAt :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Word64 -> m Int64
timelineGetFrameAt a
self Word64
timestamp = IO Int64 -> m Int64
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int64 -> m Int64) -> IO Int64 -> m Int64
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
self' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Int64
result <- Ptr Timeline -> Word64 -> IO Int64
ges_timeline_get_frame_at Ptr Timeline
self' Word64
timestamp
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Int64 -> IO Int64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int64
result
#if defined(ENABLE_OVERLOADING)
data TimelineGetFrameAtMethodInfo
instance (signature ~ (Word64 -> m Int64), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetFrameAtMethodInfo a signature where
overloadedMethod = timelineGetFrameAt
instance O.OverloadedMethodInfo TimelineGetFrameAtMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetFrameAt",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetFrameAt"
})
#endif
foreign import ccall "ges_timeline_get_frame_time" ges_timeline_get_frame_time ::
Ptr Timeline ->
Int64 ->
IO Word64
timelineGetFrameTime ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> Int64
-> m Word64
timelineGetFrameTime :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Int64 -> m Word64
timelineGetFrameTime a
self Int64
frameNumber = 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 Timeline
self' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word64
result <- Ptr Timeline -> Int64 -> IO Word64
ges_timeline_get_frame_time Ptr Timeline
self' Int64
frameNumber
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 TimelineGetFrameTimeMethodInfo
instance (signature ~ (Int64 -> m Word64), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetFrameTimeMethodInfo a signature where
overloadedMethod = timelineGetFrameTime
instance O.OverloadedMethodInfo TimelineGetFrameTimeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetFrameTime",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetFrameTime"
})
#endif
foreign import ccall "ges_timeline_get_groups" ges_timeline_get_groups ::
Ptr Timeline ->
IO (Ptr (GList (Ptr GES.Group.Group)))
timelineGetGroups ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m [GES.Group.Group]
timelineGetGroups :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m [Group]
timelineGetGroups a
timeline = IO [Group] -> m [Group]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [Group] -> m [Group]) -> IO [Group] -> m [Group]
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr (GList (Ptr Group))
result <- Ptr Timeline -> IO (Ptr (GList (Ptr Group)))
ges_timeline_get_groups Ptr Timeline
timeline'
[Ptr Group]
result' <- Ptr (GList (Ptr Group)) -> IO [Ptr Group]
forall a. Ptr (GList (Ptr a)) -> IO [Ptr a]
unpackGList Ptr (GList (Ptr Group))
result
[Group]
result'' <- (Ptr Group -> IO Group) -> [Ptr Group] -> IO [Group]
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 ((ManagedPtr Group -> Group) -> Ptr Group -> IO Group
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Group -> Group
GES.Group.Group) [Ptr Group]
result'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
[Group] -> IO [Group]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [Group]
result''
#if defined(ENABLE_OVERLOADING)
data TimelineGetGroupsMethodInfo
instance (signature ~ (m [GES.Group.Group]), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetGroupsMethodInfo a signature where
overloadedMethod = timelineGetGroups
instance O.OverloadedMethodInfo TimelineGetGroupsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetGroups",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetGroups"
})
#endif
foreign import ccall "ges_timeline_get_layer" ges_timeline_get_layer ::
Ptr Timeline ->
Word32 ->
IO (Ptr GES.Layer.Layer)
timelineGetLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> Word32
-> m (Maybe GES.Layer.Layer)
timelineGetLayer :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Word32 -> m (Maybe Layer)
timelineGetLayer a
timeline Word32
priority = IO (Maybe Layer) -> m (Maybe Layer)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Layer) -> m (Maybe Layer))
-> IO (Maybe Layer) -> m (Maybe Layer)
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Layer
result <- Ptr Timeline -> Word32 -> IO (Ptr Layer)
ges_timeline_get_layer Ptr Timeline
timeline' Word32
priority
Maybe Layer
maybeResult <- Ptr Layer -> (Ptr Layer -> IO Layer) -> IO (Maybe Layer)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Layer
result ((Ptr Layer -> IO Layer) -> IO (Maybe Layer))
-> (Ptr Layer -> IO Layer) -> IO (Maybe Layer)
forall a b. (a -> b) -> a -> b
$ \Ptr Layer
result' -> do
Layer
result'' <- ((ManagedPtr Layer -> Layer) -> Ptr Layer -> IO Layer
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr Layer -> Layer
GES.Layer.Layer) Ptr Layer
result'
Layer -> IO Layer
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Layer
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
Maybe Layer -> IO (Maybe Layer)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Layer
maybeResult
#if defined(ENABLE_OVERLOADING)
data TimelineGetLayerMethodInfo
instance (signature ~ (Word32 -> m (Maybe GES.Layer.Layer)), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetLayerMethodInfo a signature where
overloadedMethod = timelineGetLayer
instance O.OverloadedMethodInfo TimelineGetLayerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetLayer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetLayer"
})
#endif
foreign import ccall "ges_timeline_get_layers" ges_timeline_get_layers ::
Ptr Timeline ->
IO (Ptr (GList (Ptr GES.Layer.Layer)))
timelineGetLayers ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m [GES.Layer.Layer]
timelineGetLayers :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m [Layer]
timelineGetLayers a
timeline = IO [Layer] -> m [Layer]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [Layer] -> m [Layer]) -> IO [Layer] -> m [Layer]
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr (GList (Ptr Layer))
result <- Ptr Timeline -> IO (Ptr (GList (Ptr Layer)))
ges_timeline_get_layers Ptr Timeline
timeline'
[Ptr Layer]
result' <- Ptr (GList (Ptr Layer)) -> IO [Ptr Layer]
forall a. Ptr (GList (Ptr a)) -> IO [Ptr a]
unpackGList Ptr (GList (Ptr Layer))
result
[Layer]
result'' <- (Ptr Layer -> IO Layer) -> [Ptr Layer] -> IO [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 ((ManagedPtr Layer -> Layer) -> Ptr Layer -> IO Layer
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr Layer -> Layer
GES.Layer.Layer) [Ptr Layer]
result'
Ptr (GList (Ptr Layer)) -> IO ()
forall a. Ptr (GList a) -> IO ()
g_list_free Ptr (GList (Ptr Layer))
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
[Layer] -> IO [Layer]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [Layer]
result''
#if defined(ENABLE_OVERLOADING)
data TimelineGetLayersMethodInfo
instance (signature ~ (m [GES.Layer.Layer]), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetLayersMethodInfo a signature where
overloadedMethod = timelineGetLayers
instance O.OverloadedMethodInfo TimelineGetLayersMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetLayers",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetLayers"
})
#endif
foreign import ccall "ges_timeline_get_pad_for_track" ges_timeline_get_pad_for_track ::
Ptr Timeline ->
Ptr GES.Track.Track ->
IO (Ptr Gst.Pad.Pad)
timelineGetPadForTrack ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.Track.IsTrack b) =>
a
-> b
-> m (Maybe Gst.Pad.Pad)
timelineGetPadForTrack :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsTrack b) =>
a -> b -> m (Maybe Pad)
timelineGetPadForTrack a
timeline b
track = IO (Maybe Pad) -> m (Maybe Pad)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Pad) -> m (Maybe Pad))
-> IO (Maybe Pad) -> m (Maybe Pad)
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Track
track' <- b -> IO (Ptr Track)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
track
Ptr Pad
result <- Ptr Timeline -> Ptr Track -> IO (Ptr Pad)
ges_timeline_get_pad_for_track Ptr Timeline
timeline' Ptr Track
track'
Maybe Pad
maybeResult <- Ptr Pad -> (Ptr Pad -> IO Pad) -> IO (Maybe Pad)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Pad
result ((Ptr Pad -> IO Pad) -> IO (Maybe Pad))
-> (Ptr Pad -> IO Pad) -> IO (Maybe Pad)
forall a b. (a -> b) -> a -> b
$ \Ptr Pad
result' -> do
Pad
result'' <- ((ManagedPtr Pad -> Pad) -> Ptr Pad -> IO Pad
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Pad -> Pad
Gst.Pad.Pad) Ptr Pad
result'
Pad -> IO Pad
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Pad
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
track
Maybe Pad -> IO (Maybe Pad)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Pad
maybeResult
#if defined(ENABLE_OVERLOADING)
data TimelineGetPadForTrackMethodInfo
instance (signature ~ (b -> m (Maybe Gst.Pad.Pad)), MonadIO m, IsTimeline a, GES.Track.IsTrack b) => O.OverloadedMethod TimelineGetPadForTrackMethodInfo a signature where
overloadedMethod = timelineGetPadForTrack
instance O.OverloadedMethodInfo TimelineGetPadForTrackMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetPadForTrack",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetPadForTrack"
})
#endif
foreign import ccall "ges_timeline_get_snapping_distance" ges_timeline_get_snapping_distance ::
Ptr Timeline ->
IO Word64
timelineGetSnappingDistance ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m Word64
timelineGetSnappingDistance :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Word64
timelineGetSnappingDistance a
timeline = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Word64
result <- Ptr Timeline -> IO Word64
ges_timeline_get_snapping_distance Ptr Timeline
timeline'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data TimelineGetSnappingDistanceMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetSnappingDistanceMethodInfo a signature where
overloadedMethod = timelineGetSnappingDistance
instance O.OverloadedMethodInfo TimelineGetSnappingDistanceMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetSnappingDistance",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetSnappingDistance"
})
#endif
foreign import ccall "ges_timeline_get_track_for_pad" ges_timeline_get_track_for_pad ::
Ptr Timeline ->
Ptr Gst.Pad.Pad ->
IO (Ptr GES.Track.Track)
timelineGetTrackForPad ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, Gst.Pad.IsPad b) =>
a
-> b
-> m (Maybe GES.Track.Track)
timelineGetTrackForPad :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsPad b) =>
a -> b -> m (Maybe Track)
timelineGetTrackForPad a
timeline b
pad = IO (Maybe Track) -> m (Maybe Track)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Track) -> m (Maybe Track))
-> IO (Maybe Track) -> m (Maybe Track)
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Pad
pad' <- b -> IO (Ptr Pad)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
pad
Ptr Track
result <- Ptr Timeline -> Ptr Pad -> IO (Ptr Track)
ges_timeline_get_track_for_pad Ptr Timeline
timeline' Ptr Pad
pad'
Maybe Track
maybeResult <- Ptr Track -> (Ptr Track -> IO Track) -> IO (Maybe Track)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Track
result ((Ptr Track -> IO Track) -> IO (Maybe Track))
-> (Ptr Track -> IO Track) -> IO (Maybe Track)
forall a b. (a -> b) -> a -> b
$ \Ptr Track
result' -> do
Track
result'' <- ((ManagedPtr Track -> Track) -> Ptr Track -> IO Track
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Track -> Track
GES.Track.Track) Ptr Track
result'
Track -> IO Track
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Track
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
pad
Maybe Track -> IO (Maybe Track)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Track
maybeResult
#if defined(ENABLE_OVERLOADING)
data TimelineGetTrackForPadMethodInfo
instance (signature ~ (b -> m (Maybe GES.Track.Track)), MonadIO m, IsTimeline a, Gst.Pad.IsPad b) => O.OverloadedMethod TimelineGetTrackForPadMethodInfo a signature where
overloadedMethod = timelineGetTrackForPad
instance O.OverloadedMethodInfo TimelineGetTrackForPadMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetTrackForPad",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetTrackForPad"
})
#endif
foreign import ccall "ges_timeline_get_tracks" ges_timeline_get_tracks ::
Ptr Timeline ->
IO (Ptr (GList (Ptr GES.Track.Track)))
timelineGetTracks ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m [GES.Track.Track]
timelineGetTracks :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m [Track]
timelineGetTracks a
timeline = IO [Track] -> m [Track]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [Track] -> m [Track]) -> IO [Track] -> m [Track]
forall a b. (a -> b) -> a -> b
$ do
Ptr Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr (GList (Ptr Track))
result <- Ptr Timeline -> IO (Ptr (GList (Ptr Track)))
ges_timeline_get_tracks Ptr Timeline
timeline'
[Ptr Track]
result' <- Ptr (GList (Ptr Track)) -> IO [Ptr Track]
forall a. Ptr (GList (Ptr a)) -> IO [Ptr a]
unpackGList Ptr (GList (Ptr Track))
result
[Track]
result'' <- (Ptr Track -> IO Track) -> [Ptr Track] -> IO [Track]
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 ((ManagedPtr Track -> Track) -> Ptr Track -> IO Track
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr Track -> Track
GES.Track.Track) [Ptr Track]
result'
Ptr (GList (Ptr Track)) -> IO ()
forall a. Ptr (GList a) -> IO ()
g_list_free Ptr (GList (Ptr Track))
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
[Track] -> IO [Track]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [Track]
result''
#if defined(ENABLE_OVERLOADING)
data TimelineGetTracksMethodInfo
instance (signature ~ (m [GES.Track.Track]), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineGetTracksMethodInfo a signature where
overloadedMethod = timelineGetTracks
instance O.OverloadedMethodInfo TimelineGetTracksMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineGetTracks",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineGetTracks"
})
#endif
foreign import ccall "ges_timeline_is_empty" ges_timeline_is_empty ::
Ptr Timeline ->
IO CInt
timelineIsEmpty ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m Bool
timelineIsEmpty :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m Bool
timelineIsEmpty a
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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
CInt
result <- Ptr Timeline -> IO CInt
ges_timeline_is_empty 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
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 TimelineIsEmptyMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineIsEmptyMethodInfo a signature where
overloadedMethod = timelineIsEmpty
instance O.OverloadedMethodInfo TimelineIsEmptyMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineIsEmpty",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineIsEmpty"
})
#endif
foreign import ccall "ges_timeline_load_from_uri" ges_timeline_load_from_uri ::
Ptr Timeline ->
CString ->
Ptr (Ptr GError) ->
IO CInt
timelineLoadFromUri ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> T.Text
-> m ()
timelineLoadFromUri :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Text -> m ()
timelineLoadFromUri a
timeline Text
uri = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
CString
uri' <- Text -> IO CString
textToCString Text
uri
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 Timeline -> CString -> Ptr (Ptr GError) -> IO CInt
ges_timeline_load_from_uri Ptr Timeline
timeline' CString
uri'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
() -> 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
uri'
)
#if defined(ENABLE_OVERLOADING)
data TimelineLoadFromUriMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineLoadFromUriMethodInfo a signature where
overloadedMethod = timelineLoadFromUri
instance O.OverloadedMethodInfo TimelineLoadFromUriMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineLoadFromUri",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineLoadFromUri"
})
#endif
foreign import ccall "ges_timeline_move_layer" ges_timeline_move_layer ::
Ptr Timeline ->
Ptr GES.Layer.Layer ->
Word32 ->
IO CInt
timelineMoveLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.Layer.IsLayer b) =>
a
-> b
-> Word32
-> m Bool
timelineMoveLayer :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsLayer b) =>
a -> b -> Word32 -> m Bool
timelineMoveLayer a
timeline b
layer Word32
newLayerPriority = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Layer
layer' <- b -> IO (Ptr Layer)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
layer
CInt
result <- Ptr Timeline -> Ptr Layer -> Word32 -> IO CInt
ges_timeline_move_layer Ptr Timeline
timeline' Ptr Layer
layer' Word32
newLayerPriority
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
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
layer
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineMoveLayerMethodInfo
instance (signature ~ (b -> Word32 -> m Bool), MonadIO m, IsTimeline a, GES.Layer.IsLayer b) => O.OverloadedMethod TimelineMoveLayerMethodInfo a signature where
overloadedMethod = timelineMoveLayer
instance O.OverloadedMethodInfo TimelineMoveLayerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineMoveLayer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineMoveLayer"
})
#endif
foreign import ccall "ges_timeline_paste_element" ges_timeline_paste_element ::
Ptr Timeline ->
Ptr GES.TimelineElement.TimelineElement ->
Word64 ->
Int32 ->
IO (Ptr GES.TimelineElement.TimelineElement)
timelinePasteElement ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.TimelineElement.IsTimelineElement b) =>
a
-> b
-> Word64
-> Int32
-> m (Maybe GES.TimelineElement.TimelineElement)
timelinePasteElement :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsTimelineElement b) =>
a -> b -> Word64 -> Int32 -> m (Maybe TimelineElement)
timelinePasteElement a
timeline b
element Word64
position Int32
layerPriority = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr TimelineElement
element' <- b -> IO (Ptr TimelineElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
element
Ptr TimelineElement
result <- Ptr Timeline
-> Ptr TimelineElement
-> Word64
-> Int32
-> IO (Ptr TimelineElement)
ges_timeline_paste_element Ptr Timeline
timeline' Ptr TimelineElement
element' Word64
position Int32
layerPriority
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
GES.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
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
element
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 TimelinePasteElementMethodInfo
instance (signature ~ (b -> Word64 -> Int32 -> m (Maybe GES.TimelineElement.TimelineElement)), MonadIO m, IsTimeline a, GES.TimelineElement.IsTimelineElement b) => O.OverloadedMethod TimelinePasteElementMethodInfo a signature where
overloadedMethod = timelinePasteElement
instance O.OverloadedMethodInfo TimelinePasteElementMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelinePasteElement",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelinePasteElement"
})
#endif
foreign import ccall "ges_timeline_remove_layer" ges_timeline_remove_layer ::
Ptr Timeline ->
Ptr GES.Layer.Layer ->
IO CInt
timelineRemoveLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.Layer.IsLayer b) =>
a
-> b
-> m Bool
timelineRemoveLayer :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsLayer b) =>
a -> b -> m Bool
timelineRemoveLayer a
timeline b
layer = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Layer
layer' <- b -> IO (Ptr Layer)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
layer
CInt
result <- Ptr Timeline -> Ptr Layer -> IO CInt
ges_timeline_remove_layer Ptr Timeline
timeline' Ptr Layer
layer'
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
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
layer
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineRemoveLayerMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsTimeline a, GES.Layer.IsLayer b) => O.OverloadedMethod TimelineRemoveLayerMethodInfo a signature where
overloadedMethod = timelineRemoveLayer
instance O.OverloadedMethodInfo TimelineRemoveLayerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineRemoveLayer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineRemoveLayer"
})
#endif
foreign import ccall "ges_timeline_remove_track" ges_timeline_remove_track ::
Ptr Timeline ->
Ptr GES.Track.Track ->
IO CInt
timelineRemoveTrack ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.Track.IsTrack b) =>
a
-> b
-> m Bool
timelineRemoveTrack :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsTrack b) =>
a -> b -> m Bool
timelineRemoveTrack a
timeline b
track = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Track
track' <- b -> IO (Ptr Track)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
track
CInt
result <- Ptr Timeline -> Ptr Track -> IO CInt
ges_timeline_remove_track Ptr Timeline
timeline' Ptr Track
track'
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
timeline
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
track
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data TimelineRemoveTrackMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsTimeline a, GES.Track.IsTrack b) => O.OverloadedMethod TimelineRemoveTrackMethodInfo a signature where
overloadedMethod = timelineRemoveTrack
instance O.OverloadedMethodInfo TimelineRemoveTrackMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineRemoveTrack",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineRemoveTrack"
})
#endif
foreign import ccall "ges_timeline_save_to_uri" ges_timeline_save_to_uri ::
Ptr Timeline ->
CString ->
Ptr GES.Asset.Asset ->
CInt ->
Ptr (Ptr GError) ->
IO CInt
timelineSaveToUri ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a, GES.Asset.IsAsset b) =>
a
-> T.Text
-> Maybe (b)
-> Bool
-> m ()
timelineSaveToUri :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsTimeline a, IsAsset b) =>
a -> Text -> Maybe b -> Bool -> m ()
timelineSaveToUri a
timeline Text
uri Maybe b
formatterAsset Bool
overwrite = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
CString
uri' <- Text -> IO CString
textToCString Text
uri
Ptr Asset
maybeFormatterAsset <- case Maybe b
formatterAsset of
Maybe b
Nothing -> Ptr Asset -> IO (Ptr Asset)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Asset
forall a. Ptr a
nullPtr
Just b
jFormatterAsset -> do
Ptr Asset
jFormatterAsset' <- b -> IO (Ptr Asset)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jFormatterAsset
Ptr Asset -> IO (Ptr Asset)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Asset
jFormatterAsset'
let overwrite' :: CInt
overwrite' = (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
overwrite
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 Timeline
-> CString -> Ptr Asset -> CInt -> Ptr (Ptr GError) -> IO CInt
ges_timeline_save_to_uri Ptr Timeline
timeline' CString
uri' Ptr Asset
maybeFormatterAsset CInt
overwrite'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
formatterAsset b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
uri'
() -> 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
uri'
)
#if defined(ENABLE_OVERLOADING)
data TimelineSaveToUriMethodInfo
instance (signature ~ (T.Text -> Maybe (b) -> Bool -> m ()), MonadIO m, IsTimeline a, GES.Asset.IsAsset b) => O.OverloadedMethod TimelineSaveToUriMethodInfo a signature where
overloadedMethod = timelineSaveToUri
instance O.OverloadedMethodInfo TimelineSaveToUriMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineSaveToUri",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineSaveToUri"
})
#endif
foreign import ccall "ges_timeline_set_auto_transition" ges_timeline_set_auto_transition ::
Ptr Timeline ->
CInt ->
IO ()
timelineSetAutoTransition ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> Bool
-> m ()
timelineSetAutoTransition :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Bool -> m ()
timelineSetAutoTransition a
timeline Bool
autoTransition = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
let autoTransition' :: CInt
autoTransition' = (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
autoTransition
Ptr Timeline -> CInt -> IO ()
ges_timeline_set_auto_transition Ptr Timeline
timeline' CInt
autoTransition'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TimelineSetAutoTransitionMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineSetAutoTransitionMethodInfo a signature where
overloadedMethod = timelineSetAutoTransition
instance O.OverloadedMethodInfo TimelineSetAutoTransitionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineSetAutoTransition",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineSetAutoTransition"
})
#endif
foreign import ccall "ges_timeline_set_snapping_distance" ges_timeline_set_snapping_distance ::
Ptr Timeline ->
Word64 ->
IO ()
timelineSetSnappingDistance ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> Word64
-> m ()
timelineSetSnappingDistance :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> Word64 -> m ()
timelineSetSnappingDistance a
timeline Word64
snappingDistance = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Timeline -> Word64 -> IO ()
ges_timeline_set_snapping_distance Ptr Timeline
timeline' Word64
snappingDistance
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TimelineSetSnappingDistanceMethodInfo
instance (signature ~ (Word64 -> m ()), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineSetSnappingDistanceMethodInfo a signature where
overloadedMethod = timelineSetSnappingDistance
instance O.OverloadedMethodInfo TimelineSetSnappingDistanceMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineSetSnappingDistance",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineSetSnappingDistance"
})
#endif
foreign import ccall "ges_timeline_thaw_commit" ges_timeline_thaw_commit ::
Ptr Timeline ->
IO ()
timelineThawCommit ::
(B.CallStack.HasCallStack, MonadIO m, IsTimeline a) =>
a
-> m ()
timelineThawCommit :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTimeline a) =>
a -> m ()
timelineThawCommit a
timeline = 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 Timeline
timeline' <- a -> IO (Ptr Timeline)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
timeline
Ptr Timeline -> IO ()
ges_timeline_thaw_commit Ptr Timeline
timeline'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
timeline
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TimelineThawCommitMethodInfo
instance (signature ~ (m ()), MonadIO m, IsTimeline a) => O.OverloadedMethod TimelineThawCommitMethodInfo a signature where
overloadedMethod = timelineThawCommit
instance O.OverloadedMethodInfo TimelineThawCommitMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Timeline.timelineThawCommit",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-Timeline.html#v:timelineThawCommit"
})
#endif