| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.GES.Objects.UriClip
Description
Represents all the output streams from a particular uri. It is assumed that the URI points to a file of some type.
Synopsis
- newtype UriClip = UriClip (ManagedPtr UriClip)
- class (GObject o, IsDescendantOf UriClip o) => IsUriClip o
- toUriClip :: (MonadIO m, IsUriClip o) => o -> m UriClip
- uriClipGetUri :: (HasCallStack, MonadIO m, IsUriClip a) => a -> m Text
- uriClipIsImage :: (HasCallStack, MonadIO m, IsUriClip a) => a -> m Bool
- uriClipIsMuted :: (HasCallStack, MonadIO m, IsUriClip a) => a -> m Bool
- uriClipNew :: (HasCallStack, MonadIO m) => Text -> m (Maybe UriClip)
- uriClipSetIsImage :: (HasCallStack, MonadIO m, IsUriClip a) => a -> Bool -> m ()
- uriClipSetMute :: (HasCallStack, MonadIO m, IsUriClip a) => a -> Bool -> m ()
- constructUriClipIsImage :: (IsUriClip o, MonadIO m) => Bool -> m (GValueConstruct o)
- getUriClipIsImage :: (MonadIO m, IsUriClip o) => o -> m Bool
- setUriClipIsImage :: (MonadIO m, IsUriClip o) => o -> Bool -> m ()
- constructUriClipMute :: (IsUriClip o, MonadIO m) => Bool -> m (GValueConstruct o)
- getUriClipMute :: (MonadIO m, IsUriClip o) => o -> m Bool
- setUriClipMute :: (MonadIO m, IsUriClip o) => o -> Bool -> m ()
- constructUriClipSupportedFormats :: (IsUriClip o, MonadIO m) => [TrackType] -> m (GValueConstruct o)
- getUriClipSupportedFormats :: (MonadIO m, IsUriClip o) => o -> m [TrackType]
- setUriClipSupportedFormats :: (MonadIO m, IsUriClip o) => o -> [TrackType] -> m ()
- constructUriClipUri :: (IsUriClip o, MonadIO m) => Text -> m (GValueConstruct o)
- getUriClipUri :: (MonadIO m, IsUriClip o) => o -> m Text
Exported types
Memory-managed wrapper type.
Instances
| Eq UriClip Source # | |
| GObject UriClip Source # | |
Defined in GI.GES.Objects.UriClip | |
| ManagedPtrNewtype UriClip Source # | |
Defined in GI.GES.Objects.UriClip Methods toManagedPtr :: UriClip -> ManagedPtr UriClip | |
| TypedObject UriClip Source # | |
Defined in GI.GES.Objects.UriClip | |
| HasParentTypes UriClip Source # | |
Defined in GI.GES.Objects.UriClip | |
| IsGValue (Maybe UriClip) Source # | Convert |
Defined in GI.GES.Objects.UriClip Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe UriClip -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe UriClip) | |
| type ParentTypes UriClip Source # | |
Defined in GI.GES.Objects.UriClip type ParentTypes UriClip = '[SourceClip, Clip, Container, TimelineElement, Object, Extractable, MetaContainer] | |
class (GObject o, IsDescendantOf UriClip o) => IsUriClip o Source #
Instances
| (GObject o, IsDescendantOf UriClip o) => IsUriClip o Source # | |
Defined in GI.GES.Objects.UriClip | |
Methods
Click to display all available methods, including inherited ones
Methods
add, addAsset, addChildProperty, addChildToTrack, addMetasFromString, addTopEffect, bindProperty, bindPropertyFull, checkMetaRegistered, copy, edit, editFull, findTrackElement, findTrackElements, forceFloating, foreach, freezeNotify, getv, isFloating, isImage, isMuted, listChildrenProperties, lookupChild, metasToString, moveToLayer, moveToLayerFull, notify, notifyByPspec, paste, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, remove, removeChildProperty, removeTopEffect, ripple, rippleEnd, rollEnd, rollStart, runDispose, split, splitFull, stealData, stealQdata, thawNotify, trim, ungroup, unref, watchClosure.
Getters
getAsset, getBoolean, getChildProperty, getChildPropertyByPspec, getChildren, getData, getDate, getDateTime, getDouble, getDuration, getDurationLimit, getFloat, getId, getInpoint, getInt, getInt64, getInternalTimeFromTimelineTime, getLayer, getLayerPriority, getMarkerList, getMaxDuration, getMeta, getName, getNaturalFramerate, getParent, getPriority, getProperty, getQdata, getStart, getString, getSupportedFormats, getTimeline, getTimelineTimeFromInternalTime, getTimelineTimeFromSourceFrame, getTopEffectIndex, getTopEffectPosition, getTopEffects, getToplevelParent, getTrackTypes, getUint, getUint64, getUri.
Setters
setAsset, setBoolean, setChildProperty, setChildPropertyByPspec, setChildPropertyFull, setData, setDataFull, setDate, setDateTime, setDouble, setDuration, setFloat, setInpoint, setInt, setInt64, setIsImage, setMarkerList, setMaxDuration, setMeta, setMute, setName, setParent, setPriority, setProperty, setStart, setString, setSupportedFormats, setTimeline, setTopEffectIndex, setTopEffectIndexFull, setTopEffectPriority, setUint, setUint64.
getUri
Arguments
| :: (HasCallStack, MonadIO m, IsUriClip a) | |
| => a |
|
| -> m Text | Returns: The location of the resource. |
Get the location of the resource.
isImage
Arguments
| :: (HasCallStack, MonadIO m, IsUriClip a) | |
| => a |
|
| -> m Bool |
Lets you know if self is an image or not.
isMuted
Arguments
| :: (HasCallStack, MonadIO m, IsUriClip a) | |
| => a |
|
| -> m Bool | Returns: |
Lets you know if the audio track of self is muted or not.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m (Maybe UriClip) | Returns: The newly created |
Creates a new UriClip for the provided uri.
**WARNING**: This function might \'discover\` /@uri@/ **synchrounously**, it is an IO and processing intensive task that you probably don\'t want to run in an application mainloop. Have a look at @/ges_asset_request_async/@ to see how to make that operation happen **asynchronously**.
setIsImage
Arguments
| :: (HasCallStack, MonadIO m, IsUriClip a) | |
| => a |
|
| -> Bool | |
| -> m () |
Sets whether the clip is a still image or not.
setMute
Arguments
| :: (HasCallStack, MonadIO m, IsUriClip a) | |
| => a |
|
| -> Bool | |
| -> m () |
Sets whether the audio track of this clip is muted or not.
Properties
isImage
Whether this uri clip represents a still image or not. This must be set before create_track_elements is called.
constructUriClipIsImage :: (IsUriClip o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “is-image” property. This is rarely needed directly, but it is used by new.
getUriClipIsImage :: (MonadIO m, IsUriClip o) => o -> m Bool Source #
Get the value of the “is-image” property.
When overloading is enabled, this is equivalent to
get uriClip #isImage
setUriClipIsImage :: (MonadIO m, IsUriClip o) => o -> Bool -> m () Source #
Set the value of the “is-image” property.
When overloading is enabled, this is equivalent to
seturiClip [ #isImage:=value ]
mute
Whether the sound will be played or not.
constructUriClipMute :: (IsUriClip o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “mute” property. This is rarely needed directly, but it is used by new.
getUriClipMute :: (MonadIO m, IsUriClip o) => o -> m Bool Source #
Get the value of the “mute” property.
When overloading is enabled, this is equivalent to
get uriClip #mute
setUriClipMute :: (MonadIO m, IsUriClip o) => o -> Bool -> m () Source #
Set the value of the “mute” property.
When overloading is enabled, this is equivalent to
seturiClip [ #mute:=value ]
supportedFormats
No description available in the introspection data.
constructUriClipSupportedFormats :: (IsUriClip o, MonadIO m) => [TrackType] -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “supported-formats” property. This is rarely needed directly, but it is used by new.
getUriClipSupportedFormats :: (MonadIO m, IsUriClip o) => o -> m [TrackType] Source #
Get the value of the “supported-formats” property.
When overloading is enabled, this is equivalent to
get uriClip #supportedFormats
setUriClipSupportedFormats :: (MonadIO m, IsUriClip o) => o -> [TrackType] -> m () Source #
Set the value of the “supported-formats” property.
When overloading is enabled, this is equivalent to
seturiClip [ #supportedFormats:=value ]
uri
The location of the file/resource to use.
constructUriClipUri :: (IsUriClip o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “uri” property. This is rarely needed directly, but it is used by new.
getUriClipUri :: (MonadIO m, IsUriClip o) => o -> m Text Source #
Get the value of the “uri” property.
When overloading is enabled, this is equivalent to
get uriClip #uri