{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GES.Objects.Clip
(
Clip(..) ,
IsClip ,
toClip ,
#if defined(ENABLE_OVERLOADING)
ResolveClipMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ClipAddAssetMethodInfo ,
#endif
clipAddAsset ,
#if defined(ENABLE_OVERLOADING)
ClipAddChildToTrackMethodInfo ,
#endif
clipAddChildToTrack ,
#if defined(ENABLE_OVERLOADING)
ClipAddTopEffectMethodInfo ,
#endif
clipAddTopEffect ,
#if defined(ENABLE_OVERLOADING)
ClipFindTrackElementMethodInfo ,
#endif
clipFindTrackElement ,
#if defined(ENABLE_OVERLOADING)
ClipFindTrackElementsMethodInfo ,
#endif
clipFindTrackElements ,
#if defined(ENABLE_OVERLOADING)
ClipGetDurationLimitMethodInfo ,
#endif
clipGetDurationLimit ,
#if defined(ENABLE_OVERLOADING)
ClipGetInternalTimeFromTimelineTimeMethodInfo,
#endif
clipGetInternalTimeFromTimelineTime ,
#if defined(ENABLE_OVERLOADING)
ClipGetLayerMethodInfo ,
#endif
clipGetLayer ,
#if defined(ENABLE_OVERLOADING)
ClipGetSupportedFormatsMethodInfo ,
#endif
clipGetSupportedFormats ,
#if defined(ENABLE_OVERLOADING)
ClipGetTimelineTimeFromInternalTimeMethodInfo,
#endif
clipGetTimelineTimeFromInternalTime ,
#if defined(ENABLE_OVERLOADING)
ClipGetTimelineTimeFromSourceFrameMethodInfo,
#endif
clipGetTimelineTimeFromSourceFrame ,
#if defined(ENABLE_OVERLOADING)
ClipGetTopEffectIndexMethodInfo ,
#endif
clipGetTopEffectIndex ,
#if defined(ENABLE_OVERLOADING)
ClipGetTopEffectPositionMethodInfo ,
#endif
clipGetTopEffectPosition ,
#if defined(ENABLE_OVERLOADING)
ClipGetTopEffectsMethodInfo ,
#endif
clipGetTopEffects ,
#if defined(ENABLE_OVERLOADING)
ClipMoveToLayerMethodInfo ,
#endif
clipMoveToLayer ,
#if defined(ENABLE_OVERLOADING)
ClipMoveToLayerFullMethodInfo ,
#endif
clipMoveToLayerFull ,
#if defined(ENABLE_OVERLOADING)
ClipRemoveTopEffectMethodInfo ,
#endif
clipRemoveTopEffect ,
#if defined(ENABLE_OVERLOADING)
ClipSetSupportedFormatsMethodInfo ,
#endif
clipSetSupportedFormats ,
#if defined(ENABLE_OVERLOADING)
ClipSetTopEffectIndexMethodInfo ,
#endif
clipSetTopEffectIndex ,
#if defined(ENABLE_OVERLOADING)
ClipSetTopEffectIndexFullMethodInfo ,
#endif
clipSetTopEffectIndexFull ,
#if defined(ENABLE_OVERLOADING)
ClipSetTopEffectPriorityMethodInfo ,
#endif
clipSetTopEffectPriority ,
#if defined(ENABLE_OVERLOADING)
ClipSplitMethodInfo ,
#endif
clipSplit ,
#if defined(ENABLE_OVERLOADING)
ClipSplitFullMethodInfo ,
#endif
clipSplitFull ,
#if defined(ENABLE_OVERLOADING)
ClipDurationLimitPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
clipDurationLimit ,
#endif
getClipDurationLimit ,
#if defined(ENABLE_OVERLOADING)
ClipLayerPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
clipLayer ,
#endif
getClipLayer ,
#if defined(ENABLE_OVERLOADING)
ClipSupportedFormatsPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
clipSupportedFormats ,
#endif
constructClipSupportedFormats ,
getClipSupportedFormats ,
setClipSupportedFormats ,
) 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 qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.GES.Callbacks as GES.Callbacks
import {-# SOURCE #-} qualified GI.GES.Enums as GES.Enums
import {-# SOURCE #-} qualified GI.GES.Flags as GES.Flags
import {-# SOURCE #-} qualified GI.GES.Interfaces.Extractable as GES.Extractable
import {-# SOURCE #-} qualified GI.GES.Interfaces.MetaContainer as GES.MetaContainer
import {-# SOURCE #-} qualified GI.GES.Objects.Asset as GES.Asset
import {-# SOURCE #-} qualified GI.GES.Objects.BaseEffect as GES.BaseEffect
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.Marker as GES.Marker
import {-# SOURCE #-} qualified GI.GES.Objects.MarkerList as GES.MarkerList
import {-# SOURCE #-} qualified GI.GES.Objects.Operation as GES.Operation
import {-# SOURCE #-} qualified GI.GES.Objects.Timeline as GES.Timeline
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.GLib.Callbacks as GLib.Callbacks
import qualified GI.GLib.Structs.Date as GLib.Date
import qualified GI.GObject.Objects.InitiallyUnowned as GObject.InitiallyUnowned
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gio.Callbacks as Gio.Callbacks
import qualified GI.Gio.Interfaces.AsyncInitable as Gio.AsyncInitable
import qualified GI.Gio.Interfaces.AsyncResult as Gio.AsyncResult
import qualified GI.Gio.Interfaces.Initable as Gio.Initable
import qualified GI.Gio.Objects.Cancellable as Gio.Cancellable
import qualified GI.Gst.Interfaces.ChildProxy as Gst.ChildProxy
import qualified GI.Gst.Objects.Bin as Gst.Bin
import qualified GI.Gst.Objects.ControlBinding as Gst.ControlBinding
import qualified GI.Gst.Objects.ControlSource as Gst.ControlSource
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
import qualified GI.Gst.Structs.Caps as Gst.Caps
import qualified GI.Gst.Structs.DateTime as Gst.DateTime
#else
import {-# SOURCE #-} qualified GI.GES.Flags as GES.Flags
import {-# SOURCE #-} qualified GI.GES.Interfaces.Extractable as GES.Extractable
import {-# SOURCE #-} qualified GI.GES.Interfaces.MetaContainer as GES.MetaContainer
import {-# SOURCE #-} qualified GI.GES.Objects.Asset as GES.Asset
import {-# SOURCE #-} qualified GI.GES.Objects.BaseEffect as GES.BaseEffect
import {-# SOURCE #-} qualified GI.GES.Objects.Container as GES.Container
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
#endif
newtype Clip = Clip (SP.ManagedPtr Clip)
deriving (Clip -> Clip -> Bool
(Clip -> Clip -> Bool) -> (Clip -> Clip -> Bool) -> Eq Clip
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Clip -> Clip -> Bool
== :: Clip -> Clip -> Bool
$c/= :: Clip -> Clip -> Bool
/= :: Clip -> Clip -> Bool
Eq)
instance SP.ManagedPtrNewtype Clip where
toManagedPtr :: Clip -> ManagedPtr Clip
toManagedPtr (Clip ManagedPtr Clip
p) = ManagedPtr Clip
p
foreign import ccall "ges_clip_get_type"
c_ges_clip_get_type :: IO B.Types.GType
instance B.Types.TypedObject Clip where
glibType :: IO GType
glibType = IO GType
c_ges_clip_get_type
instance B.Types.GObject Clip
class (SP.GObject o, O.IsDescendantOf Clip o) => IsClip o
instance (SP.GObject o, O.IsDescendantOf Clip o) => IsClip o
instance O.HasParentTypes Clip
type instance O.ParentTypes Clip = '[GES.Container.Container, GES.TimelineElement.TimelineElement, GObject.Object.Object, GES.Extractable.Extractable, GES.MetaContainer.MetaContainer]
toClip :: (MIO.MonadIO m, IsClip o) => o -> m Clip
toClip :: forall (m :: * -> *) o. (MonadIO m, IsClip o) => o -> m Clip
toClip = IO Clip -> m Clip
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Clip -> m Clip) -> (o -> IO Clip) -> o -> m Clip
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr Clip -> Clip) -> o -> IO Clip
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr Clip -> Clip
Clip
instance B.GValue.IsGValue (Maybe Clip) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_ges_clip_get_type
gvalueSet_ :: Ptr GValue -> Maybe Clip -> IO ()
gvalueSet_ Ptr GValue
gv Maybe Clip
P.Nothing = Ptr GValue -> Ptr Clip -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr Clip
forall a. Ptr a
FP.nullPtr :: FP.Ptr Clip)
gvalueSet_ Ptr GValue
gv (P.Just Clip
obj) = Clip -> (Ptr Clip -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Clip
obj (Ptr GValue -> Ptr Clip -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe Clip)
gvalueGet_ Ptr GValue
gv = do
Ptr Clip
ptr <- Ptr GValue -> IO (Ptr Clip)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr Clip)
if Ptr Clip
ptr Ptr Clip -> Ptr Clip -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr Clip
forall a. Ptr a
FP.nullPtr
then Clip -> Maybe Clip
forall a. a -> Maybe a
P.Just (Clip -> Maybe Clip) -> IO Clip -> IO (Maybe Clip)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr Clip -> Clip) -> Ptr Clip -> IO Clip
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr Clip -> Clip
Clip Ptr Clip
ptr
else Maybe Clip -> IO (Maybe Clip)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Clip
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveClipMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveClipMethod "add" o = GES.Container.ContainerAddMethodInfo
ResolveClipMethod "addAsset" o = ClipAddAssetMethodInfo
ResolveClipMethod "addChildProperty" o = GES.TimelineElement.TimelineElementAddChildPropertyMethodInfo
ResolveClipMethod "addChildToTrack" o = ClipAddChildToTrackMethodInfo
ResolveClipMethod "addMetasFromString" o = GES.MetaContainer.MetaContainerAddMetasFromStringMethodInfo
ResolveClipMethod "addTopEffect" o = ClipAddTopEffectMethodInfo
ResolveClipMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveClipMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveClipMethod "checkMetaRegistered" o = GES.MetaContainer.MetaContainerCheckMetaRegisteredMethodInfo
ResolveClipMethod "copy" o = GES.TimelineElement.TimelineElementCopyMethodInfo
ResolveClipMethod "edit" o = GES.Container.ContainerEditMethodInfo
ResolveClipMethod "editFull" o = GES.TimelineElement.TimelineElementEditFullMethodInfo
ResolveClipMethod "findTrackElement" o = ClipFindTrackElementMethodInfo
ResolveClipMethod "findTrackElements" o = ClipFindTrackElementsMethodInfo
ResolveClipMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveClipMethod "foreach" o = GES.MetaContainer.MetaContainerForeachMethodInfo
ResolveClipMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveClipMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveClipMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveClipMethod "listChildrenProperties" o = GES.TimelineElement.TimelineElementListChildrenPropertiesMethodInfo
ResolveClipMethod "lookupChild" o = GES.TimelineElement.TimelineElementLookupChildMethodInfo
ResolveClipMethod "metasToString" o = GES.MetaContainer.MetaContainerMetasToStringMethodInfo
ResolveClipMethod "moveToLayer" o = ClipMoveToLayerMethodInfo
ResolveClipMethod "moveToLayerFull" o = ClipMoveToLayerFullMethodInfo
ResolveClipMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveClipMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveClipMethod "paste" o = GES.TimelineElement.TimelineElementPasteMethodInfo
ResolveClipMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveClipMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveClipMethod "registerMeta" o = GES.MetaContainer.MetaContainerRegisterMetaMethodInfo
ResolveClipMethod "registerMetaBoolean" o = GES.MetaContainer.MetaContainerRegisterMetaBooleanMethodInfo
ResolveClipMethod "registerMetaDate" o = GES.MetaContainer.MetaContainerRegisterMetaDateMethodInfo
ResolveClipMethod "registerMetaDateTime" o = GES.MetaContainer.MetaContainerRegisterMetaDateTimeMethodInfo
ResolveClipMethod "registerMetaDouble" o = GES.MetaContainer.MetaContainerRegisterMetaDoubleMethodInfo
ResolveClipMethod "registerMetaFloat" o = GES.MetaContainer.MetaContainerRegisterMetaFloatMethodInfo
ResolveClipMethod "registerMetaInt" o = GES.MetaContainer.MetaContainerRegisterMetaIntMethodInfo
ResolveClipMethod "registerMetaInt64" o = GES.MetaContainer.MetaContainerRegisterMetaInt64MethodInfo
ResolveClipMethod "registerMetaString" o = GES.MetaContainer.MetaContainerRegisterMetaStringMethodInfo
ResolveClipMethod "registerMetaUint" o = GES.MetaContainer.MetaContainerRegisterMetaUintMethodInfo
ResolveClipMethod "registerMetaUint64" o = GES.MetaContainer.MetaContainerRegisterMetaUint64MethodInfo
ResolveClipMethod "registerStaticMeta" o = GES.MetaContainer.MetaContainerRegisterStaticMetaMethodInfo
ResolveClipMethod "remove" o = GES.Container.ContainerRemoveMethodInfo
ResolveClipMethod "removeChildProperty" o = GES.TimelineElement.TimelineElementRemoveChildPropertyMethodInfo
ResolveClipMethod "removeTopEffect" o = ClipRemoveTopEffectMethodInfo
ResolveClipMethod "ripple" o = GES.TimelineElement.TimelineElementRippleMethodInfo
ResolveClipMethod "rippleEnd" o = GES.TimelineElement.TimelineElementRippleEndMethodInfo
ResolveClipMethod "rollEnd" o = GES.TimelineElement.TimelineElementRollEndMethodInfo
ResolveClipMethod "rollStart" o = GES.TimelineElement.TimelineElementRollStartMethodInfo
ResolveClipMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveClipMethod "split" o = ClipSplitMethodInfo
ResolveClipMethod "splitFull" o = ClipSplitFullMethodInfo
ResolveClipMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveClipMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveClipMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveClipMethod "trim" o = GES.TimelineElement.TimelineElementTrimMethodInfo
ResolveClipMethod "ungroup" o = GES.Container.ContainerUngroupMethodInfo
ResolveClipMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveClipMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveClipMethod "getAsset" o = GES.Extractable.ExtractableGetAssetMethodInfo
ResolveClipMethod "getBoolean" o = GES.MetaContainer.MetaContainerGetBooleanMethodInfo
ResolveClipMethod "getChildProperty" o = GES.TimelineElement.TimelineElementGetChildPropertyMethodInfo
ResolveClipMethod "getChildPropertyByPspec" o = GES.TimelineElement.TimelineElementGetChildPropertyByPspecMethodInfo
ResolveClipMethod "getChildren" o = GES.Container.ContainerGetChildrenMethodInfo
ResolveClipMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveClipMethod "getDate" o = GES.MetaContainer.MetaContainerGetDateMethodInfo
ResolveClipMethod "getDateTime" o = GES.MetaContainer.MetaContainerGetDateTimeMethodInfo
ResolveClipMethod "getDouble" o = GES.MetaContainer.MetaContainerGetDoubleMethodInfo
ResolveClipMethod "getDuration" o = GES.TimelineElement.TimelineElementGetDurationMethodInfo
ResolveClipMethod "getDurationLimit" o = ClipGetDurationLimitMethodInfo
ResolveClipMethod "getFloat" o = GES.MetaContainer.MetaContainerGetFloatMethodInfo
ResolveClipMethod "getId" o = GES.Extractable.ExtractableGetIdMethodInfo
ResolveClipMethod "getInpoint" o = GES.TimelineElement.TimelineElementGetInpointMethodInfo
ResolveClipMethod "getInt" o = GES.MetaContainer.MetaContainerGetIntMethodInfo
ResolveClipMethod "getInt64" o = GES.MetaContainer.MetaContainerGetInt64MethodInfo
ResolveClipMethod "getInternalTimeFromTimelineTime" o = ClipGetInternalTimeFromTimelineTimeMethodInfo
ResolveClipMethod "getLayer" o = ClipGetLayerMethodInfo
ResolveClipMethod "getLayerPriority" o = GES.TimelineElement.TimelineElementGetLayerPriorityMethodInfo
ResolveClipMethod "getMarkerList" o = GES.MetaContainer.MetaContainerGetMarkerListMethodInfo
ResolveClipMethod "getMaxDuration" o = GES.TimelineElement.TimelineElementGetMaxDurationMethodInfo
ResolveClipMethod "getMeta" o = GES.MetaContainer.MetaContainerGetMetaMethodInfo
ResolveClipMethod "getName" o = GES.TimelineElement.TimelineElementGetNameMethodInfo
ResolveClipMethod "getNaturalFramerate" o = GES.TimelineElement.TimelineElementGetNaturalFramerateMethodInfo
ResolveClipMethod "getParent" o = GES.TimelineElement.TimelineElementGetParentMethodInfo
ResolveClipMethod "getPriority" o = GES.TimelineElement.TimelineElementGetPriorityMethodInfo
ResolveClipMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveClipMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveClipMethod "getStart" o = GES.TimelineElement.TimelineElementGetStartMethodInfo
ResolveClipMethod "getString" o = GES.MetaContainer.MetaContainerGetStringMethodInfo
ResolveClipMethod "getSupportedFormats" o = ClipGetSupportedFormatsMethodInfo
ResolveClipMethod "getTimeline" o = GES.TimelineElement.TimelineElementGetTimelineMethodInfo
ResolveClipMethod "getTimelineTimeFromInternalTime" o = ClipGetTimelineTimeFromInternalTimeMethodInfo
ResolveClipMethod "getTimelineTimeFromSourceFrame" o = ClipGetTimelineTimeFromSourceFrameMethodInfo
ResolveClipMethod "getTopEffectIndex" o = ClipGetTopEffectIndexMethodInfo
ResolveClipMethod "getTopEffectPosition" o = ClipGetTopEffectPositionMethodInfo
ResolveClipMethod "getTopEffects" o = ClipGetTopEffectsMethodInfo
ResolveClipMethod "getToplevelParent" o = GES.TimelineElement.TimelineElementGetToplevelParentMethodInfo
ResolveClipMethod "getTrackTypes" o = GES.TimelineElement.TimelineElementGetTrackTypesMethodInfo
ResolveClipMethod "getUint" o = GES.MetaContainer.MetaContainerGetUintMethodInfo
ResolveClipMethod "getUint64" o = GES.MetaContainer.MetaContainerGetUint64MethodInfo
ResolveClipMethod "setAsset" o = GES.Extractable.ExtractableSetAssetMethodInfo
ResolveClipMethod "setBoolean" o = GES.MetaContainer.MetaContainerSetBooleanMethodInfo
ResolveClipMethod "setChildProperty" o = GES.TimelineElement.TimelineElementSetChildPropertyMethodInfo
ResolveClipMethod "setChildPropertyByPspec" o = GES.TimelineElement.TimelineElementSetChildPropertyByPspecMethodInfo
ResolveClipMethod "setChildPropertyFull" o = GES.TimelineElement.TimelineElementSetChildPropertyFullMethodInfo
ResolveClipMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveClipMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveClipMethod "setDate" o = GES.MetaContainer.MetaContainerSetDateMethodInfo
ResolveClipMethod "setDateTime" o = GES.MetaContainer.MetaContainerSetDateTimeMethodInfo
ResolveClipMethod "setDouble" o = GES.MetaContainer.MetaContainerSetDoubleMethodInfo
ResolveClipMethod "setDuration" o = GES.TimelineElement.TimelineElementSetDurationMethodInfo
ResolveClipMethod "setFloat" o = GES.MetaContainer.MetaContainerSetFloatMethodInfo
ResolveClipMethod "setInpoint" o = GES.TimelineElement.TimelineElementSetInpointMethodInfo
ResolveClipMethod "setInt" o = GES.MetaContainer.MetaContainerSetIntMethodInfo
ResolveClipMethod "setInt64" o = GES.MetaContainer.MetaContainerSetInt64MethodInfo
ResolveClipMethod "setMarkerList" o = GES.MetaContainer.MetaContainerSetMarkerListMethodInfo
ResolveClipMethod "setMaxDuration" o = GES.TimelineElement.TimelineElementSetMaxDurationMethodInfo
ResolveClipMethod "setMeta" o = GES.MetaContainer.MetaContainerSetMetaMethodInfo
ResolveClipMethod "setName" o = GES.TimelineElement.TimelineElementSetNameMethodInfo
ResolveClipMethod "setParent" o = GES.TimelineElement.TimelineElementSetParentMethodInfo
ResolveClipMethod "setPriority" o = GES.TimelineElement.TimelineElementSetPriorityMethodInfo
ResolveClipMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveClipMethod "setStart" o = GES.TimelineElement.TimelineElementSetStartMethodInfo
ResolveClipMethod "setString" o = GES.MetaContainer.MetaContainerSetStringMethodInfo
ResolveClipMethod "setSupportedFormats" o = ClipSetSupportedFormatsMethodInfo
ResolveClipMethod "setTimeline" o = GES.TimelineElement.TimelineElementSetTimelineMethodInfo
ResolveClipMethod "setTopEffectIndex" o = ClipSetTopEffectIndexMethodInfo
ResolveClipMethod "setTopEffectIndexFull" o = ClipSetTopEffectIndexFullMethodInfo
ResolveClipMethod "setTopEffectPriority" o = ClipSetTopEffectPriorityMethodInfo
ResolveClipMethod "setUint" o = GES.MetaContainer.MetaContainerSetUintMethodInfo
ResolveClipMethod "setUint64" o = GES.MetaContainer.MetaContainerSetUint64MethodInfo
ResolveClipMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveClipMethod t Clip, O.OverloadedMethod info Clip p) => OL.IsLabel t (Clip -> 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 ~ ResolveClipMethod t Clip, O.OverloadedMethod info Clip p, R.HasField t Clip p) => R.HasField t Clip p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveClipMethod t Clip, O.OverloadedMethodInfo info Clip) => OL.IsLabel t (O.MethodProxy info Clip) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getClipDurationLimit :: (MonadIO m, IsClip o) => o -> m Word64
getClipDurationLimit :: forall (m :: * -> *) o. (MonadIO m, IsClip o) => o -> m Word64
getClipDurationLimit 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-limit"
#if defined(ENABLE_OVERLOADING)
data ClipDurationLimitPropertyInfo
instance AttrInfo ClipDurationLimitPropertyInfo where
type AttrAllowedOps ClipDurationLimitPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint ClipDurationLimitPropertyInfo = IsClip
type AttrSetTypeConstraint ClipDurationLimitPropertyInfo = (~) ()
type AttrTransferTypeConstraint ClipDurationLimitPropertyInfo = (~) ()
type AttrTransferType ClipDurationLimitPropertyInfo = ()
type AttrGetType ClipDurationLimitPropertyInfo = Word64
type AttrLabel ClipDurationLimitPropertyInfo = "duration-limit"
type AttrOrigin ClipDurationLimitPropertyInfo = Clip
attrGet = getClipDurationLimit
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.durationLimit"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#g:attr:durationLimit"
})
#endif
getClipLayer :: (MonadIO m, IsClip o) => o -> m (Maybe GES.Layer.Layer)
getClipLayer :: forall (m :: * -> *) o.
(MonadIO m, IsClip o) =>
o -> m (Maybe Layer)
getClipLayer o
obj = IO (Maybe Layer) -> m (Maybe Layer)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Layer) -> m (Maybe Layer))
-> IO (Maybe Layer) -> m (Maybe Layer)
forall a b. (a -> b) -> a -> b
$ o -> String -> (ManagedPtr Layer -> Layer) -> IO (Maybe Layer)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"layer" ManagedPtr Layer -> Layer
GES.Layer.Layer
#if defined(ENABLE_OVERLOADING)
data ClipLayerPropertyInfo
instance AttrInfo ClipLayerPropertyInfo where
type AttrAllowedOps ClipLayerPropertyInfo = '[ 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint ClipLayerPropertyInfo = IsClip
type AttrSetTypeConstraint ClipLayerPropertyInfo = (~) ()
type AttrTransferTypeConstraint ClipLayerPropertyInfo = (~) ()
type AttrTransferType ClipLayerPropertyInfo = ()
type AttrGetType ClipLayerPropertyInfo = (Maybe GES.Layer.Layer)
type AttrLabel ClipLayerPropertyInfo = "layer"
type AttrOrigin ClipLayerPropertyInfo = Clip
attrGet = getClipLayer
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.layer"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#g:attr:layer"
})
#endif
getClipSupportedFormats :: (MonadIO m, IsClip o) => o -> m [GES.Flags.TrackType]
getClipSupportedFormats :: forall (m :: * -> *) o. (MonadIO m, IsClip o) => o -> m [TrackType]
getClipSupportedFormats o
obj = IO [TrackType] -> m [TrackType]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO [TrackType] -> m [TrackType])
-> IO [TrackType] -> m [TrackType]
forall a b. (a -> b) -> a -> b
$ o -> String -> IO [TrackType]
forall a b.
(GObject a, IsGFlag b, BoxedFlags b) =>
a -> String -> IO [b]
B.Properties.getObjectPropertyFlags o
obj String
"supported-formats"
setClipSupportedFormats :: (MonadIO m, IsClip o) => o -> [GES.Flags.TrackType] -> m ()
setClipSupportedFormats :: forall (m :: * -> *) o.
(MonadIO m, IsClip o) =>
o -> [TrackType] -> m ()
setClipSupportedFormats o
obj [TrackType]
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 -> [TrackType] -> IO ()
forall a b.
(IsGFlag b, BoxedFlags b, GObject a) =>
a -> String -> [b] -> IO ()
B.Properties.setObjectPropertyFlags o
obj String
"supported-formats" [TrackType]
val
constructClipSupportedFormats :: (IsClip o, MIO.MonadIO m) => [GES.Flags.TrackType] -> m (GValueConstruct o)
constructClipSupportedFormats :: forall o (m :: * -> *).
(IsClip o, MonadIO m) =>
[TrackType] -> m (GValueConstruct o)
constructClipSupportedFormats [TrackType]
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 -> [TrackType] -> IO (GValueConstruct o)
forall a o.
(IsGFlag a, BoxedFlags a) =>
String -> [a] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyFlags String
"supported-formats" [TrackType]
val
#if defined(ENABLE_OVERLOADING)
data ClipSupportedFormatsPropertyInfo
instance AttrInfo ClipSupportedFormatsPropertyInfo where
type AttrAllowedOps ClipSupportedFormatsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ClipSupportedFormatsPropertyInfo = IsClip
type AttrSetTypeConstraint ClipSupportedFormatsPropertyInfo = (~) [GES.Flags.TrackType]
type AttrTransferTypeConstraint ClipSupportedFormatsPropertyInfo = (~) [GES.Flags.TrackType]
type AttrTransferType ClipSupportedFormatsPropertyInfo = [GES.Flags.TrackType]
type AttrGetType ClipSupportedFormatsPropertyInfo = [GES.Flags.TrackType]
type AttrLabel ClipSupportedFormatsPropertyInfo = "supported-formats"
type AttrOrigin ClipSupportedFormatsPropertyInfo = Clip
attrGet = getClipSupportedFormats
attrSet = setClipSupportedFormats
attrTransfer _ v = do
return v
attrConstruct = constructClipSupportedFormats
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.supportedFormats"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#g:attr:supportedFormats"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Clip
type instance O.AttributeList Clip = ClipAttributeList
type ClipAttributeList = ('[ '("duration", GES.TimelineElement.TimelineElementDurationPropertyInfo), '("durationLimit", ClipDurationLimitPropertyInfo), '("height", GES.Container.ContainerHeightPropertyInfo), '("inPoint", GES.TimelineElement.TimelineElementInPointPropertyInfo), '("layer", ClipLayerPropertyInfo), '("maxDuration", GES.TimelineElement.TimelineElementMaxDurationPropertyInfo), '("name", GES.TimelineElement.TimelineElementNamePropertyInfo), '("parent", GES.TimelineElement.TimelineElementParentPropertyInfo), '("priority", GES.TimelineElement.TimelineElementPriorityPropertyInfo), '("serialize", GES.TimelineElement.TimelineElementSerializePropertyInfo), '("start", GES.TimelineElement.TimelineElementStartPropertyInfo), '("supportedFormats", ClipSupportedFormatsPropertyInfo), '("timeline", GES.TimelineElement.TimelineElementTimelinePropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
clipDurationLimit :: AttrLabelProxy "durationLimit"
clipDurationLimit = AttrLabelProxy
clipLayer :: AttrLabelProxy "layer"
clipLayer = AttrLabelProxy
clipSupportedFormats :: AttrLabelProxy "supportedFormats"
clipSupportedFormats = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Clip = ClipSignalList
type ClipSignalList = ('[ '("childAdded", GES.Container.ContainerChildAddedSignalInfo), '("childPropertyAdded", GES.TimelineElement.TimelineElementChildPropertyAddedSignalInfo), '("childPropertyRemoved", GES.TimelineElement.TimelineElementChildPropertyRemovedSignalInfo), '("childRemoved", GES.Container.ContainerChildRemovedSignalInfo), '("deepNotify", GES.TimelineElement.TimelineElementDeepNotifySignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("notifyMeta", GES.MetaContainer.MetaContainerNotifyMetaSignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "ges_clip_add_asset" ges_clip_add_asset ::
Ptr Clip ->
Ptr GES.Asset.Asset ->
IO (Ptr GES.TrackElement.TrackElement)
clipAddAsset ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.Asset.IsAsset b) =>
a
-> b
-> m (Maybe GES.TrackElement.TrackElement)
clipAddAsset :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsAsset b) =>
a -> b -> m (Maybe TrackElement)
clipAddAsset a
clip b
asset = IO (Maybe TrackElement) -> m (Maybe TrackElement)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe TrackElement) -> m (Maybe TrackElement))
-> IO (Maybe TrackElement) -> m (Maybe TrackElement)
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr Asset
asset' <- b -> IO (Ptr Asset)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
asset
Ptr TrackElement
result <- Ptr Clip -> Ptr Asset -> IO (Ptr TrackElement)
ges_clip_add_asset Ptr Clip
clip' Ptr Asset
asset'
Maybe TrackElement
maybeResult <- Ptr TrackElement
-> (Ptr TrackElement -> IO TrackElement) -> IO (Maybe TrackElement)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr TrackElement
result ((Ptr TrackElement -> IO TrackElement) -> IO (Maybe TrackElement))
-> (Ptr TrackElement -> IO TrackElement) -> IO (Maybe TrackElement)
forall a b. (a -> b) -> a -> b
$ \Ptr TrackElement
result' -> do
TrackElement
result'' <- ((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
result'
TrackElement -> IO TrackElement
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TrackElement
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
asset
Maybe TrackElement -> IO (Maybe TrackElement)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe TrackElement
maybeResult
#if defined(ENABLE_OVERLOADING)
data ClipAddAssetMethodInfo
instance (signature ~ (b -> m (Maybe GES.TrackElement.TrackElement)), MonadIO m, IsClip a, GES.Asset.IsAsset b) => O.OverloadedMethod ClipAddAssetMethodInfo a signature where
overloadedMethod = clipAddAsset
instance O.OverloadedMethodInfo ClipAddAssetMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipAddAsset",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipAddAsset"
})
#endif
foreign import ccall "ges_clip_add_child_to_track" ges_clip_add_child_to_track ::
Ptr Clip ->
Ptr GES.TrackElement.TrackElement ->
Ptr GES.Track.Track ->
Ptr (Ptr GError) ->
IO (Ptr GES.TrackElement.TrackElement)
clipAddChildToTrack ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.TrackElement.IsTrackElement b, GES.Track.IsTrack c) =>
a
-> b
-> c
-> m GES.TrackElement.TrackElement
clipAddChildToTrack :: forall (m :: * -> *) a b c.
(HasCallStack, MonadIO m, IsClip a, IsTrackElement b, IsTrack c) =>
a -> b -> c -> m TrackElement
clipAddChildToTrack a
clip b
child c
track = IO TrackElement -> m TrackElement
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TrackElement -> m TrackElement)
-> IO TrackElement -> m TrackElement
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr TrackElement
child' <- b -> IO (Ptr TrackElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
child
Ptr Track
track' <- c -> IO (Ptr Track)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr c
track
IO TrackElement -> IO () -> IO TrackElement
forall a b. IO a -> IO b -> IO a
onException (do
Ptr TrackElement
result <- (Ptr (Ptr GError) -> IO (Ptr TrackElement))
-> IO (Ptr TrackElement)
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO (Ptr TrackElement))
-> IO (Ptr TrackElement))
-> (Ptr (Ptr GError) -> IO (Ptr TrackElement))
-> IO (Ptr TrackElement)
forall a b. (a -> b) -> a -> b
$ Ptr Clip
-> Ptr TrackElement
-> Ptr Track
-> Ptr (Ptr GError)
-> IO (Ptr TrackElement)
ges_clip_add_child_to_track Ptr Clip
clip' Ptr TrackElement
child' Ptr Track
track'
Text -> Ptr TrackElement -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"clipAddChildToTrack" Ptr TrackElement
result
TrackElement
result' <- ((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
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
child
c -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr c
track
TrackElement -> IO TrackElement
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TrackElement
result'
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipAddChildToTrackMethodInfo
instance (signature ~ (b -> c -> m GES.TrackElement.TrackElement), MonadIO m, IsClip a, GES.TrackElement.IsTrackElement b, GES.Track.IsTrack c) => O.OverloadedMethod ClipAddChildToTrackMethodInfo a signature where
overloadedMethod = clipAddChildToTrack
instance O.OverloadedMethodInfo ClipAddChildToTrackMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipAddChildToTrack",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipAddChildToTrack"
})
#endif
foreign import ccall "ges_clip_add_top_effect" ges_clip_add_top_effect ::
Ptr Clip ->
Ptr GES.BaseEffect.BaseEffect ->
Int32 ->
Ptr (Ptr GError) ->
IO CInt
clipAddTopEffect ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) =>
a
-> b
-> Int32
-> m ()
clipAddTopEffect :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsBaseEffect b) =>
a -> b -> Int32 -> m ()
clipAddTopEffect a
clip b
effect Int32
index = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr BaseEffect
effect' <- b -> IO (Ptr BaseEffect)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
effect
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 Clip -> Ptr BaseEffect -> Int32 -> Ptr (Ptr GError) -> IO CInt
ges_clip_add_top_effect Ptr Clip
clip' Ptr BaseEffect
effect' Int32
index
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
effect
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipAddTopEffectMethodInfo
instance (signature ~ (b -> Int32 -> m ()), MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) => O.OverloadedMethod ClipAddTopEffectMethodInfo a signature where
overloadedMethod = clipAddTopEffect
instance O.OverloadedMethodInfo ClipAddTopEffectMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipAddTopEffect",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipAddTopEffect"
})
#endif
foreign import ccall "ges_clip_find_track_element" ges_clip_find_track_element ::
Ptr Clip ->
Ptr GES.Track.Track ->
CGType ->
IO (Ptr GES.TrackElement.TrackElement)
clipFindTrackElement ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.Track.IsTrack b) =>
a
-> Maybe (b)
-> GType
-> m (Maybe GES.TrackElement.TrackElement)
clipFindTrackElement :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsTrack b) =>
a -> Maybe b -> GType -> m (Maybe TrackElement)
clipFindTrackElement a
clip Maybe b
track GType
type_ = IO (Maybe TrackElement) -> m (Maybe TrackElement)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe TrackElement) -> m (Maybe TrackElement))
-> IO (Maybe TrackElement) -> m (Maybe TrackElement)
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr Track
maybeTrack <- case Maybe b
track of
Maybe b
Nothing -> Ptr Track -> IO (Ptr Track)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Track
forall a. Ptr a
nullPtr
Just b
jTrack -> do
Ptr Track
jTrack' <- b -> IO (Ptr Track)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jTrack
Ptr Track -> IO (Ptr Track)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Track
jTrack'
let type_' :: Word64
type_' = GType -> Word64
gtypeToCGType GType
type_
Ptr TrackElement
result <- Ptr Clip -> Ptr Track -> Word64 -> IO (Ptr TrackElement)
ges_clip_find_track_element Ptr Clip
clip' Ptr Track
maybeTrack Word64
type_'
Maybe TrackElement
maybeResult <- Ptr TrackElement
-> (Ptr TrackElement -> IO TrackElement) -> IO (Maybe TrackElement)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr TrackElement
result ((Ptr TrackElement -> IO TrackElement) -> IO (Maybe TrackElement))
-> (Ptr TrackElement -> IO TrackElement) -> IO (Maybe TrackElement)
forall a b. (a -> b) -> a -> b
$ \Ptr TrackElement
result' -> do
TrackElement
result'' <- ((ManagedPtr TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) Ptr TrackElement
result'
TrackElement -> IO TrackElement
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TrackElement
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
track b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
Maybe TrackElement -> IO (Maybe TrackElement)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe TrackElement
maybeResult
#if defined(ENABLE_OVERLOADING)
data ClipFindTrackElementMethodInfo
instance (signature ~ (Maybe (b) -> GType -> m (Maybe GES.TrackElement.TrackElement)), MonadIO m, IsClip a, GES.Track.IsTrack b) => O.OverloadedMethod ClipFindTrackElementMethodInfo a signature where
overloadedMethod = clipFindTrackElement
instance O.OverloadedMethodInfo ClipFindTrackElementMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipFindTrackElement",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipFindTrackElement"
})
#endif
foreign import ccall "ges_clip_find_track_elements" ges_clip_find_track_elements ::
Ptr Clip ->
Ptr GES.Track.Track ->
CUInt ->
CGType ->
IO (Ptr (GList (Ptr GES.TrackElement.TrackElement)))
clipFindTrackElements ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.Track.IsTrack b) =>
a
-> Maybe (b)
-> [GES.Flags.TrackType]
-> GType
-> m [GES.TrackElement.TrackElement]
clipFindTrackElements :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsTrack b) =>
a -> Maybe b -> [TrackType] -> GType -> m [TrackElement]
clipFindTrackElements a
clip Maybe b
track [TrackType]
trackType GType
type_ = IO [TrackElement] -> m [TrackElement]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [TrackElement] -> m [TrackElement])
-> IO [TrackElement] -> m [TrackElement]
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr Track
maybeTrack <- case Maybe b
track of
Maybe b
Nothing -> Ptr Track -> IO (Ptr Track)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Track
forall a. Ptr a
nullPtr
Just b
jTrack -> do
Ptr Track
jTrack' <- b -> IO (Ptr Track)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
jTrack
Ptr Track -> IO (Ptr Track)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Track
jTrack'
let trackType' :: CUInt
trackType' = [TrackType] -> CUInt
forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [TrackType]
trackType
let type_' :: Word64
type_' = GType -> Word64
gtypeToCGType GType
type_
Ptr (GList (Ptr TrackElement))
result <- Ptr Clip
-> Ptr Track
-> CUInt
-> Word64
-> IO (Ptr (GList (Ptr TrackElement)))
ges_clip_find_track_elements Ptr Clip
clip' Ptr Track
maybeTrack CUInt
trackType' Word64
type_'
[Ptr TrackElement]
result' <- Ptr (GList (Ptr TrackElement)) -> IO [Ptr TrackElement]
forall a. Ptr (GList (Ptr a)) -> IO [Ptr a]
unpackGList Ptr (GList (Ptr TrackElement))
result
[TrackElement]
result'' <- (Ptr TrackElement -> IO TrackElement)
-> [Ptr TrackElement] -> IO [TrackElement]
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 TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) [Ptr TrackElement]
result'
Ptr (GList (Ptr TrackElement)) -> IO ()
forall a. Ptr (GList a) -> IO ()
g_list_free Ptr (GList (Ptr TrackElement))
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
Maybe b -> (b -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe b
track b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
[TrackElement] -> IO [TrackElement]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [TrackElement]
result''
#if defined(ENABLE_OVERLOADING)
data ClipFindTrackElementsMethodInfo
instance (signature ~ (Maybe (b) -> [GES.Flags.TrackType] -> GType -> m [GES.TrackElement.TrackElement]), MonadIO m, IsClip a, GES.Track.IsTrack b) => O.OverloadedMethod ClipFindTrackElementsMethodInfo a signature where
overloadedMethod = clipFindTrackElements
instance O.OverloadedMethodInfo ClipFindTrackElementsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipFindTrackElements",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipFindTrackElements"
})
#endif
foreign import ccall "ges_clip_get_duration_limit" ges_clip_get_duration_limit ::
Ptr Clip ->
IO Word64
clipGetDurationLimit ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> m Word64
clipGetDurationLimit :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> m Word64
clipGetDurationLimit a
clip = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Word64
result <- Ptr Clip -> IO Word64
ges_clip_get_duration_limit Ptr Clip
clip'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
#if defined(ENABLE_OVERLOADING)
data ClipGetDurationLimitMethodInfo
instance (signature ~ (m Word64), MonadIO m, IsClip a) => O.OverloadedMethod ClipGetDurationLimitMethodInfo a signature where
overloadedMethod = clipGetDurationLimit
instance O.OverloadedMethodInfo ClipGetDurationLimitMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetDurationLimit",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetDurationLimit"
})
#endif
foreign import ccall "ges_clip_get_internal_time_from_timeline_time" ges_clip_get_internal_time_from_timeline_time ::
Ptr Clip ->
Ptr GES.TrackElement.TrackElement ->
Word64 ->
Ptr (Ptr GError) ->
IO Word64
clipGetInternalTimeFromTimelineTime ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.TrackElement.IsTrackElement b) =>
a
-> b
-> Word64
-> m Word64
clipGetInternalTimeFromTimelineTime :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsTrackElement b) =>
a -> b -> Word64 -> m Word64
clipGetInternalTimeFromTimelineTime a
clip b
child Word64
timelineTime = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr TrackElement
child' <- b -> IO (Ptr TrackElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
child
IO Word64 -> IO () -> IO Word64
forall a b. IO a -> IO b -> IO a
onException (do
Word64
result <- (Ptr (Ptr GError) -> IO Word64) -> IO Word64
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO Word64) -> IO Word64)
-> (Ptr (Ptr GError) -> IO Word64) -> IO Word64
forall a b. (a -> b) -> a -> b
$ Ptr Clip
-> Ptr TrackElement -> Word64 -> Ptr (Ptr GError) -> IO Word64
ges_clip_get_internal_time_from_timeline_time Ptr Clip
clip' Ptr TrackElement
child' Word64
timelineTime
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
child
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipGetInternalTimeFromTimelineTimeMethodInfo
instance (signature ~ (b -> Word64 -> m Word64), MonadIO m, IsClip a, GES.TrackElement.IsTrackElement b) => O.OverloadedMethod ClipGetInternalTimeFromTimelineTimeMethodInfo a signature where
overloadedMethod = clipGetInternalTimeFromTimelineTime
instance O.OverloadedMethodInfo ClipGetInternalTimeFromTimelineTimeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetInternalTimeFromTimelineTime",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetInternalTimeFromTimelineTime"
})
#endif
foreign import ccall "ges_clip_get_layer" ges_clip_get_layer ::
Ptr Clip ->
IO (Ptr GES.Layer.Layer)
clipGetLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> m (Maybe GES.Layer.Layer)
clipGetLayer :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> m (Maybe Layer)
clipGetLayer a
clip = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr Layer
result <- Ptr Clip -> IO (Ptr Layer)
ges_clip_get_layer Ptr Clip
clip'
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
clip
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 ClipGetLayerMethodInfo
instance (signature ~ (m (Maybe GES.Layer.Layer)), MonadIO m, IsClip a) => O.OverloadedMethod ClipGetLayerMethodInfo a signature where
overloadedMethod = clipGetLayer
instance O.OverloadedMethodInfo ClipGetLayerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetLayer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetLayer"
})
#endif
foreign import ccall "ges_clip_get_supported_formats" ges_clip_get_supported_formats ::
Ptr Clip ->
IO CUInt
clipGetSupportedFormats ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> m [GES.Flags.TrackType]
clipGetSupportedFormats :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> m [TrackType]
clipGetSupportedFormats a
clip = IO [TrackType] -> m [TrackType]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [TrackType] -> m [TrackType])
-> IO [TrackType] -> m [TrackType]
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
CUInt
result <- Ptr Clip -> IO CUInt
ges_clip_get_supported_formats Ptr Clip
clip'
let result' :: [TrackType]
result' = CUInt -> [TrackType]
forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
[TrackType] -> IO [TrackType]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [TrackType]
result'
#if defined(ENABLE_OVERLOADING)
data ClipGetSupportedFormatsMethodInfo
instance (signature ~ (m [GES.Flags.TrackType]), MonadIO m, IsClip a) => O.OverloadedMethod ClipGetSupportedFormatsMethodInfo a signature where
overloadedMethod = clipGetSupportedFormats
instance O.OverloadedMethodInfo ClipGetSupportedFormatsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetSupportedFormats",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetSupportedFormats"
})
#endif
foreign import ccall "ges_clip_get_timeline_time_from_internal_time" ges_clip_get_timeline_time_from_internal_time ::
Ptr Clip ->
Ptr GES.TrackElement.TrackElement ->
Word64 ->
Ptr (Ptr GError) ->
IO Word64
clipGetTimelineTimeFromInternalTime ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.TrackElement.IsTrackElement b) =>
a
-> b
-> Word64
-> m Word64
clipGetTimelineTimeFromInternalTime :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsTrackElement b) =>
a -> b -> Word64 -> m Word64
clipGetTimelineTimeFromInternalTime a
clip b
child Word64
internalTime = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr TrackElement
child' <- b -> IO (Ptr TrackElement)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
child
IO Word64 -> IO () -> IO Word64
forall a b. IO a -> IO b -> IO a
onException (do
Word64
result <- (Ptr (Ptr GError) -> IO Word64) -> IO Word64
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO Word64) -> IO Word64)
-> (Ptr (Ptr GError) -> IO Word64) -> IO Word64
forall a b. (a -> b) -> a -> b
$ Ptr Clip
-> Ptr TrackElement -> Word64 -> Ptr (Ptr GError) -> IO Word64
ges_clip_get_timeline_time_from_internal_time Ptr Clip
clip' Ptr TrackElement
child' Word64
internalTime
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
child
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipGetTimelineTimeFromInternalTimeMethodInfo
instance (signature ~ (b -> Word64 -> m Word64), MonadIO m, IsClip a, GES.TrackElement.IsTrackElement b) => O.OverloadedMethod ClipGetTimelineTimeFromInternalTimeMethodInfo a signature where
overloadedMethod = clipGetTimelineTimeFromInternalTime
instance O.OverloadedMethodInfo ClipGetTimelineTimeFromInternalTimeMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetTimelineTimeFromInternalTime",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetTimelineTimeFromInternalTime"
})
#endif
foreign import ccall "ges_clip_get_timeline_time_from_source_frame" ges_clip_get_timeline_time_from_source_frame ::
Ptr Clip ->
Int64 ->
Ptr (Ptr GError) ->
IO Word64
clipGetTimelineTimeFromSourceFrame ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> Int64
-> m Word64
clipGetTimelineTimeFromSourceFrame :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> Int64 -> m Word64
clipGetTimelineTimeFromSourceFrame a
clip 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
IO Word64 -> IO () -> IO Word64
forall a b. IO a -> IO b -> IO a
onException (do
Word64
result <- (Ptr (Ptr GError) -> IO Word64) -> IO Word64
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO Word64) -> IO Word64)
-> (Ptr (Ptr GError) -> IO Word64) -> IO Word64
forall a b. (a -> b) -> a -> b
$ Ptr Clip -> Int64 -> Ptr (Ptr GError) -> IO Word64
ges_clip_get_timeline_time_from_source_frame Ptr Clip
clip' Int64
frameNumber
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
Word64 -> IO Word64
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word64
result
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipGetTimelineTimeFromSourceFrameMethodInfo
instance (signature ~ (Int64 -> m Word64), MonadIO m, IsClip a) => O.OverloadedMethod ClipGetTimelineTimeFromSourceFrameMethodInfo a signature where
overloadedMethod = clipGetTimelineTimeFromSourceFrame
instance O.OverloadedMethodInfo ClipGetTimelineTimeFromSourceFrameMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetTimelineTimeFromSourceFrame",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetTimelineTimeFromSourceFrame"
})
#endif
foreign import ccall "ges_clip_get_top_effect_index" ges_clip_get_top_effect_index ::
Ptr Clip ->
Ptr GES.BaseEffect.BaseEffect ->
IO Int32
clipGetTopEffectIndex ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) =>
a
-> b
-> m Int32
clipGetTopEffectIndex :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsBaseEffect b) =>
a -> b -> m Int32
clipGetTopEffectIndex a
clip b
effect = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr BaseEffect
effect' <- b -> IO (Ptr BaseEffect)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
effect
Int32
result <- Ptr Clip -> Ptr BaseEffect -> IO Int32
ges_clip_get_top_effect_index Ptr Clip
clip' Ptr BaseEffect
effect'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
effect
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ClipGetTopEffectIndexMethodInfo
instance (signature ~ (b -> m Int32), MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) => O.OverloadedMethod ClipGetTopEffectIndexMethodInfo a signature where
overloadedMethod = clipGetTopEffectIndex
instance O.OverloadedMethodInfo ClipGetTopEffectIndexMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetTopEffectIndex",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetTopEffectIndex"
})
#endif
foreign import ccall "ges_clip_get_top_effect_position" ges_clip_get_top_effect_position ::
Ptr Clip ->
Ptr GES.BaseEffect.BaseEffect ->
IO Int32
clipGetTopEffectPosition ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) =>
a
-> b
-> m Int32
clipGetTopEffectPosition :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsBaseEffect b) =>
a -> b -> m Int32
clipGetTopEffectPosition a
clip b
effect = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr BaseEffect
effect' <- b -> IO (Ptr BaseEffect)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
effect
Int32
result <- Ptr Clip -> Ptr BaseEffect -> IO Int32
ges_clip_get_top_effect_position Ptr Clip
clip' Ptr BaseEffect
effect'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
effect
Int32 -> IO Int32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ClipGetTopEffectPositionMethodInfo
instance (signature ~ (b -> m Int32), MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) => O.OverloadedMethod ClipGetTopEffectPositionMethodInfo a signature where
overloadedMethod = clipGetTopEffectPosition
instance O.OverloadedMethodInfo ClipGetTopEffectPositionMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetTopEffectPosition",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetTopEffectPosition"
})
#endif
foreign import ccall "ges_clip_get_top_effects" ges_clip_get_top_effects ::
Ptr Clip ->
IO (Ptr (GList (Ptr GES.TrackElement.TrackElement)))
clipGetTopEffects ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> m [GES.TrackElement.TrackElement]
clipGetTopEffects :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> m [TrackElement]
clipGetTopEffects a
clip = IO [TrackElement] -> m [TrackElement]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [TrackElement] -> m [TrackElement])
-> IO [TrackElement] -> m [TrackElement]
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr (GList (Ptr TrackElement))
result <- Ptr Clip -> IO (Ptr (GList (Ptr TrackElement)))
ges_clip_get_top_effects Ptr Clip
clip'
[Ptr TrackElement]
result' <- Ptr (GList (Ptr TrackElement)) -> IO [Ptr TrackElement]
forall a. Ptr (GList (Ptr a)) -> IO [Ptr a]
unpackGList Ptr (GList (Ptr TrackElement))
result
[TrackElement]
result'' <- (Ptr TrackElement -> IO TrackElement)
-> [Ptr TrackElement] -> IO [TrackElement]
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 TrackElement -> TrackElement)
-> Ptr TrackElement -> IO TrackElement
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr TrackElement -> TrackElement
GES.TrackElement.TrackElement) [Ptr TrackElement]
result'
Ptr (GList (Ptr TrackElement)) -> IO ()
forall a. Ptr (GList a) -> IO ()
g_list_free Ptr (GList (Ptr TrackElement))
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
[TrackElement] -> IO [TrackElement]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [TrackElement]
result''
#if defined(ENABLE_OVERLOADING)
data ClipGetTopEffectsMethodInfo
instance (signature ~ (m [GES.TrackElement.TrackElement]), MonadIO m, IsClip a) => O.OverloadedMethod ClipGetTopEffectsMethodInfo a signature where
overloadedMethod = clipGetTopEffects
instance O.OverloadedMethodInfo ClipGetTopEffectsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipGetTopEffects",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipGetTopEffects"
})
#endif
foreign import ccall "ges_clip_move_to_layer" ges_clip_move_to_layer ::
Ptr Clip ->
Ptr GES.Layer.Layer ->
IO CInt
clipMoveToLayer ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.Layer.IsLayer b) =>
a
-> b
-> m Bool
clipMoveToLayer :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsLayer b) =>
a -> b -> m Bool
clipMoveToLayer a
clip 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr Layer
layer' <- b -> IO (Ptr Layer)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
layer
CInt
result <- Ptr Clip -> Ptr Layer -> IO CInt
ges_clip_move_to_layer Ptr Clip
clip' 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
clip
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 ClipMoveToLayerMethodInfo
instance (signature ~ (b -> m Bool), MonadIO m, IsClip a, GES.Layer.IsLayer b) => O.OverloadedMethod ClipMoveToLayerMethodInfo a signature where
overloadedMethod = clipMoveToLayer
instance O.OverloadedMethodInfo ClipMoveToLayerMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipMoveToLayer",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipMoveToLayer"
})
#endif
foreign import ccall "ges_clip_move_to_layer_full" ges_clip_move_to_layer_full ::
Ptr Clip ->
Ptr GES.Layer.Layer ->
Ptr (Ptr GError) ->
IO CInt
clipMoveToLayerFull ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.Layer.IsLayer b) =>
a
-> b
-> m ()
clipMoveToLayerFull :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsLayer b) =>
a -> b -> m ()
clipMoveToLayerFull a
clip b
layer = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr Layer
layer' <- b -> IO (Ptr Layer)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
layer
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 Clip -> Ptr Layer -> Ptr (Ptr GError) -> IO CInt
ges_clip_move_to_layer_full Ptr Clip
clip' Ptr Layer
layer'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
layer
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipMoveToLayerFullMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsClip a, GES.Layer.IsLayer b) => O.OverloadedMethod ClipMoveToLayerFullMethodInfo a signature where
overloadedMethod = clipMoveToLayerFull
instance O.OverloadedMethodInfo ClipMoveToLayerFullMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipMoveToLayerFull",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipMoveToLayerFull"
})
#endif
foreign import ccall "ges_clip_remove_top_effect" ges_clip_remove_top_effect ::
Ptr Clip ->
Ptr GES.BaseEffect.BaseEffect ->
Ptr (Ptr GError) ->
IO CInt
clipRemoveTopEffect ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) =>
a
-> b
-> m ()
clipRemoveTopEffect :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsBaseEffect b) =>
a -> b -> m ()
clipRemoveTopEffect a
clip b
effect = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr BaseEffect
effect' <- b -> IO (Ptr BaseEffect)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
effect
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 Clip -> Ptr BaseEffect -> Ptr (Ptr GError) -> IO CInt
ges_clip_remove_top_effect Ptr Clip
clip' Ptr BaseEffect
effect'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
effect
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipRemoveTopEffectMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) => O.OverloadedMethod ClipRemoveTopEffectMethodInfo a signature where
overloadedMethod = clipRemoveTopEffect
instance O.OverloadedMethodInfo ClipRemoveTopEffectMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipRemoveTopEffect",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipRemoveTopEffect"
})
#endif
foreign import ccall "ges_clip_set_supported_formats" ges_clip_set_supported_formats ::
Ptr Clip ->
CUInt ->
IO ()
clipSetSupportedFormats ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> [GES.Flags.TrackType]
-> m ()
clipSetSupportedFormats :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> [TrackType] -> m ()
clipSetSupportedFormats a
clip [TrackType]
supportedformats = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
let supportedformats' :: CUInt
supportedformats' = [TrackType] -> CUInt
forall b a. (Num b, IsGFlag a) => [a] -> b
gflagsToWord [TrackType]
supportedformats
Ptr Clip -> CUInt -> IO ()
ges_clip_set_supported_formats Ptr Clip
clip' CUInt
supportedformats'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ClipSetSupportedFormatsMethodInfo
instance (signature ~ ([GES.Flags.TrackType] -> m ()), MonadIO m, IsClip a) => O.OverloadedMethod ClipSetSupportedFormatsMethodInfo a signature where
overloadedMethod = clipSetSupportedFormats
instance O.OverloadedMethodInfo ClipSetSupportedFormatsMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipSetSupportedFormats",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipSetSupportedFormats"
})
#endif
foreign import ccall "ges_clip_set_top_effect_index" ges_clip_set_top_effect_index ::
Ptr Clip ->
Ptr GES.BaseEffect.BaseEffect ->
Word32 ->
IO CInt
clipSetTopEffectIndex ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) =>
a
-> b
-> Word32
-> m Bool
clipSetTopEffectIndex :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsBaseEffect b) =>
a -> b -> Word32 -> m Bool
clipSetTopEffectIndex a
clip b
effect Word32
newindex = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr BaseEffect
effect' <- b -> IO (Ptr BaseEffect)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
effect
CInt
result <- Ptr Clip -> Ptr BaseEffect -> Word32 -> IO CInt
ges_clip_set_top_effect_index Ptr Clip
clip' Ptr BaseEffect
effect' Word32
newindex
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
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
effect
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ClipSetTopEffectIndexMethodInfo
instance (signature ~ (b -> Word32 -> m Bool), MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) => O.OverloadedMethod ClipSetTopEffectIndexMethodInfo a signature where
overloadedMethod = clipSetTopEffectIndex
instance O.OverloadedMethodInfo ClipSetTopEffectIndexMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipSetTopEffectIndex",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipSetTopEffectIndex"
})
#endif
foreign import ccall "ges_clip_set_top_effect_index_full" ges_clip_set_top_effect_index_full ::
Ptr Clip ->
Ptr GES.BaseEffect.BaseEffect ->
Word32 ->
Ptr (Ptr GError) ->
IO CInt
clipSetTopEffectIndexFull ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) =>
a
-> b
-> Word32
-> m ()
clipSetTopEffectIndexFull :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsBaseEffect b) =>
a -> b -> Word32 -> m ()
clipSetTopEffectIndexFull a
clip b
effect Word32
newindex = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr BaseEffect
effect' <- b -> IO (Ptr BaseEffect)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
effect
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 Clip -> Ptr BaseEffect -> Word32 -> Ptr (Ptr GError) -> IO CInt
ges_clip_set_top_effect_index_full Ptr Clip
clip' Ptr BaseEffect
effect' Word32
newindex
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
effect
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipSetTopEffectIndexFullMethodInfo
instance (signature ~ (b -> Word32 -> m ()), MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) => O.OverloadedMethod ClipSetTopEffectIndexFullMethodInfo a signature where
overloadedMethod = clipSetTopEffectIndexFull
instance O.OverloadedMethodInfo ClipSetTopEffectIndexFullMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipSetTopEffectIndexFull",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipSetTopEffectIndexFull"
})
#endif
foreign import ccall "ges_clip_set_top_effect_priority" ges_clip_set_top_effect_priority ::
Ptr Clip ->
Ptr GES.BaseEffect.BaseEffect ->
Word32 ->
IO CInt
clipSetTopEffectPriority ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) =>
a
-> b
-> Word32
-> m Bool
clipSetTopEffectPriority :: forall (m :: * -> *) a b.
(HasCallStack, MonadIO m, IsClip a, IsBaseEffect b) =>
a -> b -> Word32 -> m Bool
clipSetTopEffectPriority a
clip b
effect Word32
newpriority = 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 Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr BaseEffect
effect' <- b -> IO (Ptr BaseEffect)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr b
effect
CInt
result <- Ptr Clip -> Ptr BaseEffect -> Word32 -> IO CInt
ges_clip_set_top_effect_priority Ptr Clip
clip' Ptr BaseEffect
effect' Word32
newpriority
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
clip
b -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr b
effect
Bool -> IO Bool
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ClipSetTopEffectPriorityMethodInfo
instance (signature ~ (b -> Word32 -> m Bool), MonadIO m, IsClip a, GES.BaseEffect.IsBaseEffect b) => O.OverloadedMethod ClipSetTopEffectPriorityMethodInfo a signature where
overloadedMethod = clipSetTopEffectPriority
instance O.OverloadedMethodInfo ClipSetTopEffectPriorityMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipSetTopEffectPriority",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipSetTopEffectPriority"
})
#endif
foreign import ccall "ges_clip_split" ges_clip_split ::
Ptr Clip ->
Word64 ->
IO (Ptr Clip)
clipSplit ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> Word64
-> m (Maybe Clip)
clipSplit :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> Word64 -> m (Maybe Clip)
clipSplit a
clip Word64
position = IO (Maybe Clip) -> m (Maybe Clip)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Clip) -> m (Maybe Clip))
-> IO (Maybe Clip) -> m (Maybe Clip)
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
Ptr Clip
result <- Ptr Clip -> Word64 -> IO (Ptr Clip)
ges_clip_split Ptr Clip
clip' Word64
position
Maybe Clip
maybeResult <- Ptr Clip -> (Ptr Clip -> IO Clip) -> IO (Maybe Clip)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Clip
result ((Ptr Clip -> IO Clip) -> IO (Maybe Clip))
-> (Ptr Clip -> IO Clip) -> IO (Maybe Clip)
forall a b. (a -> b) -> a -> b
$ \Ptr Clip
result' -> do
Clip
result'' <- ((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
Clip) Ptr Clip
result'
Clip -> IO Clip
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Clip
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
Maybe Clip -> IO (Maybe Clip)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Clip
maybeResult
#if defined(ENABLE_OVERLOADING)
data ClipSplitMethodInfo
instance (signature ~ (Word64 -> m (Maybe Clip)), MonadIO m, IsClip a) => O.OverloadedMethod ClipSplitMethodInfo a signature where
overloadedMethod = clipSplit
instance O.OverloadedMethodInfo ClipSplitMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipSplit",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipSplit"
})
#endif
foreign import ccall "ges_clip_split_full" ges_clip_split_full ::
Ptr Clip ->
Word64 ->
Ptr (Ptr GError) ->
IO (Ptr Clip)
clipSplitFull ::
(B.CallStack.HasCallStack, MonadIO m, IsClip a) =>
a
-> Word64
-> m (Maybe Clip)
clipSplitFull :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsClip a) =>
a -> Word64 -> m (Maybe Clip)
clipSplitFull a
clip Word64
position = IO (Maybe Clip) -> m (Maybe Clip)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Clip) -> m (Maybe Clip))
-> IO (Maybe Clip) -> m (Maybe Clip)
forall a b. (a -> b) -> a -> b
$ do
Ptr Clip
clip' <- a -> IO (Ptr Clip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
clip
IO (Maybe Clip) -> IO () -> IO (Maybe Clip)
forall a b. IO a -> IO b -> IO a
onException (do
Ptr Clip
result <- (Ptr (Ptr GError) -> IO (Ptr Clip)) -> IO (Ptr Clip)
forall a. (Ptr (Ptr GError) -> IO a) -> IO a
propagateGError ((Ptr (Ptr GError) -> IO (Ptr Clip)) -> IO (Ptr Clip))
-> (Ptr (Ptr GError) -> IO (Ptr Clip)) -> IO (Ptr Clip)
forall a b. (a -> b) -> a -> b
$ Ptr Clip -> Word64 -> Ptr (Ptr GError) -> IO (Ptr Clip)
ges_clip_split_full Ptr Clip
clip' Word64
position
Maybe Clip
maybeResult <- Ptr Clip -> (Ptr Clip -> IO Clip) -> IO (Maybe Clip)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Clip
result ((Ptr Clip -> IO Clip) -> IO (Maybe Clip))
-> (Ptr Clip -> IO Clip) -> IO (Maybe Clip)
forall a b. (a -> b) -> a -> b
$ \Ptr Clip
result' -> do
Clip
result'' <- ((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
Clip) Ptr Clip
result'
Clip -> IO Clip
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Clip
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
clip
Maybe Clip -> IO (Maybe Clip)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Clip
maybeResult
) (do
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
)
#if defined(ENABLE_OVERLOADING)
data ClipSplitFullMethodInfo
instance (signature ~ (Word64 -> m (Maybe Clip)), MonadIO m, IsClip a) => O.OverloadedMethod ClipSplitFullMethodInfo a signature where
overloadedMethod = clipSplitFull
instance O.OverloadedMethodInfo ClipSplitFullMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.Clip.clipSplitFull",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.5/docs/GI-GES-Objects-Clip.html#v:clipSplitFull"
})
#endif