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 |
TitleSource
is a GESTimelineElement that implements the notion
of titles in GES.
Synopsis
- newtype TitleSource = TitleSource (ManagedPtr TitleSource)
- class (GObject o, IsDescendantOf TitleSource o) => IsTitleSource o
- toTitleSource :: (MonadIO m, IsTitleSource o) => o -> m TitleSource
- titleSourceGetBackgroundColor :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m Word32
- titleSourceGetFontDesc :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m (Maybe Text)
- titleSourceGetHalignment :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m TextHAlign
- titleSourceGetText :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m (Maybe Text)
- titleSourceGetTextColor :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m Word32
- titleSourceGetValignment :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m TextVAlign
- titleSourceGetXpos :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m Double
- titleSourceGetYpos :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> m Double
- titleSourceSetBackgroundColor :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> Word32 -> m ()
- titleSourceSetFontDesc :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> Maybe Text -> m ()
- titleSourceSetHalignment :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> TextHAlign -> m ()
- titleSourceSetText :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> Maybe Text -> m ()
- titleSourceSetTextColor :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> Word32 -> m ()
- titleSourceSetValignment :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> TextVAlign -> m ()
- titleSourceSetXpos :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> Double -> m ()
- titleSourceSetYpos :: (HasCallStack, MonadIO m, IsTitleSource a) => a -> Double -> m ()
Exported types
newtype TitleSource Source #
Memory-managed wrapper type.
TitleSource (ManagedPtr TitleSource) |
Instances
Eq TitleSource Source # | |
Defined in GI.GES.Objects.TitleSource (==) :: TitleSource -> TitleSource -> Bool # (/=) :: TitleSource -> TitleSource -> Bool # | |
GObject TitleSource Source # | |
Defined in GI.GES.Objects.TitleSource | |
ManagedPtrNewtype TitleSource Source # | |
Defined in GI.GES.Objects.TitleSource toManagedPtr :: TitleSource -> ManagedPtr TitleSource | |
TypedObject TitleSource Source # | |
Defined in GI.GES.Objects.TitleSource | |
HasParentTypes TitleSource Source # | |
Defined in GI.GES.Objects.TitleSource | |
IsGValue (Maybe TitleSource) Source # | Convert |
Defined in GI.GES.Objects.TitleSource gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe TitleSource -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe TitleSource) | |
type ParentTypes TitleSource Source # | |
Defined in GI.GES.Objects.TitleSource type ParentTypes TitleSource = '[VideoSource, Source, TrackElement, TimelineElement, Object, Extractable, MetaContainer] |
class (GObject o, IsDescendantOf TitleSource o) => IsTitleSource o Source #
Type class for types which can be safely cast to TitleSource
, for instance with toTitleSource
.
Instances
(GObject o, IsDescendantOf TitleSource o) => IsTitleSource o Source # | |
Defined in GI.GES.Objects.TitleSource |
toTitleSource :: (MonadIO m, IsTitleSource o) => o -> m TitleSource Source #
Cast to TitleSource
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addChildProperty, addChildrenProps, addMetasFromString, bindProperty, bindPropertyFull, checkMetaRegistered, clampControlSource, copy, edit, editFull, forceFloating, foreach, freezeNotify, getv, hasInternalSource, isActive, isCore, isFloating, listChildrenProperties, lookupChild, metasToString, notify, notifyByPspec, paste, ref, refSink, registerMeta, registerMetaBoolean, registerMetaDate, registerMetaDateTime, registerMetaDouble, registerMetaFloat, registerMetaInt, registerMetaInt64, registerMetaString, registerMetaUint, registerMetaUint64, registerStaticMeta, removeChildProperty, removeControlBinding, ripple, rippleEnd, rollEnd, rollStart, runDispose, stealData, stealQdata, thawNotify, trim, unref, watchClosure.
Getters
getAllControlBindings, getAsset, getAutoClampControlSources, getBackgroundColor, getBoolean, getChildProperty, getChildPropertyByPspec, getControlBinding, getData, getDate, getDateTime, getDouble, getDuration, getElement, getFloat, getFontDesc, getGnlobject, getHalignment, getId, getInpoint, getInt, getInt64, getLayerPriority, getMarkerList, getMaxDuration, getMeta, getName, getNaturalFramerate, getNaturalSize, getNleobject, getParent, getPriority, getProperty, getQdata, getStart, getString, getText, getTextColor, getTimeline, getToplevelParent, getTrack, getTrackType, getTrackTypes, getUint, getUint64, getValignment, getXpos, getYpos.
Setters
setActive, setAsset, setAutoClampControlSources, setBackgroundColor, setBoolean, setChildProperty, setChildPropertyByPspec, setChildPropertyFull, setControlSource, setData, setDataFull, setDate, setDateTime, setDouble, setDuration, setFloat, setFontDesc, setHalignment, setHasInternalSource, setInpoint, setInt, setInt64, setMarkerList, setMaxDuration, setMeta, setName, setParent, setPriority, setProperty, setStart, setString, setText, setTextColor, setTimeline, setTrackType, setUint, setUint64, setValignment, setXpos, setYpos.
getBackgroundColor
titleSourceGetBackgroundColor Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m Word32 | Returns: The background used by |
Get the background used by source
.
getFontDesc
titleSourceGetFontDesc Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m (Maybe Text) | Returns: The pango font description used by this
|
Deprecated: (Since version 1.16)Use ges_timeline_element_get_child_property instead(this actually returns a newly allocated string)
Get the pango font description used by source
.
getHalignment
titleSourceGetHalignment Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m TextHAlign | Returns: The horizontal aligment used by |
Get the horizontal aligment used by source
.
getText
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m (Maybe Text) | Returns: The text currently set on the |
Deprecated: (Since version 1.16)Use ges_timeline_element_get_child_property instead(this actually returns a newly allocated string)
Get the text currently set on the source
.
getTextColor
titleSourceGetTextColor Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m Word32 | Returns: The color used by |
Get the color used by source
.
getValignment
titleSourceGetValignment Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m TextVAlign | Returns: The vertical aligment used by |
Get the vertical aligment used by source
.
getXpos
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m Double | Returns: The horizontal position used by |
Get the horizontal position used by source
.
getYpos
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> m Double | Returns: The vertical position used by |
Get the vertical position used by source
.
setBackgroundColor
titleSourceSetBackgroundColor Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the color of the background
setFontDesc
titleSourceSetFontDesc Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Set the pango font description this source will use to render the text.
setHalignment
titleSourceSetHalignment Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> TextHAlign |
|
-> m () |
Sets the vertical aligment of the text.
setText
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Deprecated: use ges_track_element_get/set_children_properties on theGESTrackElement instead
Sets the text this track element will render.
setTextColor
titleSourceSetTextColor Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the color of the text.
setValignment
titleSourceSetValignment Source #
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> TextVAlign |
|
-> m () |
Sets the vertical aligment of the text.
setXpos
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the horizontal position of the text.
setYpos
:: (HasCallStack, MonadIO m, IsTitleSource a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the vertical position of the text.