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 |
Renders text onto the next lower priority stream using textrender.
Synopsis
- newtype TextOverlayClip = TextOverlayClip (ManagedPtr TextOverlayClip)
- class (GObject o, IsDescendantOf TextOverlayClip o) => IsTextOverlayClip o
- toTextOverlayClip :: (MonadIO m, IsTextOverlayClip o) => o -> m TextOverlayClip
- textOverlayClipGetColor :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> m Word32
- textOverlayClipGetFontDesc :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> m (Maybe Text)
- textOverlayClipGetHalignment :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> m TextHAlign
- textOverlayClipGetText :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> m (Maybe Text)
- textOverlayClipGetValignment :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> m TextVAlign
- textOverlayClipGetXpos :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> m Double
- textOverlayClipGetYpos :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> m Double
- textOverlayClipNew :: (HasCallStack, MonadIO m) => m (Maybe TextOverlayClip)
- textOverlayClipSetColor :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> Word32 -> m ()
- textOverlayClipSetFontDesc :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> Maybe Text -> m ()
- textOverlayClipSetHalign :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> TextHAlign -> m ()
- textOverlayClipSetText :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> Maybe Text -> m ()
- textOverlayClipSetValign :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> TextVAlign -> m ()
- textOverlayClipSetXpos :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> Double -> m ()
- textOverlayClipSetYpos :: (HasCallStack, MonadIO m, IsTextOverlayClip a) => a -> Double -> m ()
- constructTextOverlayClipColor :: (IsTextOverlayClip o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getTextOverlayClipColor :: (MonadIO m, IsTextOverlayClip o) => o -> m Word32
- setTextOverlayClipColor :: (MonadIO m, IsTextOverlayClip o) => o -> Word32 -> m ()
- clearTextOverlayClipFontDesc :: (MonadIO m, IsTextOverlayClip o) => o -> m ()
- constructTextOverlayClipFontDesc :: (IsTextOverlayClip o, MonadIO m) => Text -> m (GValueConstruct o)
- getTextOverlayClipFontDesc :: (MonadIO m, IsTextOverlayClip o) => o -> m (Maybe Text)
- setTextOverlayClipFontDesc :: (MonadIO m, IsTextOverlayClip o) => o -> Text -> m ()
- constructTextOverlayClipHalignment :: (IsTextOverlayClip o, MonadIO m) => TextHAlign -> m (GValueConstruct o)
- getTextOverlayClipHalignment :: (MonadIO m, IsTextOverlayClip o) => o -> m TextHAlign
- setTextOverlayClipHalignment :: (MonadIO m, IsTextOverlayClip o) => o -> TextHAlign -> m ()
- clearTextOverlayClipText :: (MonadIO m, IsTextOverlayClip o) => o -> m ()
- constructTextOverlayClipText :: (IsTextOverlayClip o, MonadIO m) => Text -> m (GValueConstruct o)
- getTextOverlayClipText :: (MonadIO m, IsTextOverlayClip o) => o -> m (Maybe Text)
- setTextOverlayClipText :: (MonadIO m, IsTextOverlayClip o) => o -> Text -> m ()
- constructTextOverlayClipValignment :: (IsTextOverlayClip o, MonadIO m) => TextVAlign -> m (GValueConstruct o)
- getTextOverlayClipValignment :: (MonadIO m, IsTextOverlayClip o) => o -> m TextVAlign
- setTextOverlayClipValignment :: (MonadIO m, IsTextOverlayClip o) => o -> TextVAlign -> m ()
- constructTextOverlayClipXpos :: (IsTextOverlayClip o, MonadIO m) => Double -> m (GValueConstruct o)
- getTextOverlayClipXpos :: (MonadIO m, IsTextOverlayClip o) => o -> m Double
- setTextOverlayClipXpos :: (MonadIO m, IsTextOverlayClip o) => o -> Double -> m ()
- constructTextOverlayClipYpos :: (IsTextOverlayClip o, MonadIO m) => Double -> m (GValueConstruct o)
- getTextOverlayClipYpos :: (MonadIO m, IsTextOverlayClip o) => o -> m Double
- setTextOverlayClipYpos :: (MonadIO m, IsTextOverlayClip o) => o -> Double -> m ()
Exported types
newtype TextOverlayClip Source #
Memory-managed wrapper type.
TextOverlayClip (ManagedPtr TextOverlayClip) |
Instances
class (GObject o, IsDescendantOf TextOverlayClip o) => IsTextOverlayClip o Source #
Type class for types which can be safely cast to TextOverlayClip
, for instance with toTextOverlayClip
.
Instances
(GObject o, IsDescendantOf TextOverlayClip o) => IsTextOverlayClip o Source # | |
Defined in GI.GES.Objects.TextOverlayClip |
toTextOverlayClip :: (MonadIO m, IsTextOverlayClip o) => o -> m TextOverlayClip Source #
Cast to TextOverlayClip
, 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
add, addAsset, addChildProperty, addChildToTrack, addMetasFromString, addTopEffect, bindProperty, bindPropertyFull, checkMetaRegistered, copy, edit, editFull, findTrackElement, findTrackElements, forceFloating, foreach, freezeNotify, getv, isFloating, 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, getColor, getData, getDate, getDateTime, getDouble, getDuration, getDurationLimit, getFloat, getFontDesc, getHalignment, getId, getInpoint, getInt, getInt64, getInternalTimeFromTimelineTime, getLayer, getLayerPriority, getMarkerList, getMaxDuration, getMeta, getName, getNaturalFramerate, getParent, getPriority, getProperty, getQdata, getStart, getString, getSupportedFormats, getText, getTimeline, getTimelineTimeFromInternalTime, getTimelineTimeFromSourceFrame, getTopEffectIndex, getTopEffectPosition, getTopEffects, getToplevelParent, getTrackTypes, getUint, getUint64, getValignment, getXpos, getYpos.
Setters
setAsset, setBoolean, setChildProperty, setChildPropertyByPspec, setChildPropertyFull, setColor, setData, setDataFull, setDate, setDateTime, setDouble, setDuration, setFloat, setFontDesc, setHalign, setInpoint, setInt, setInt64, setMarkerList, setMaxDuration, setMeta, setName, setParent, setPriority, setProperty, setStart, setString, setSupportedFormats, setText, setTimeline, setTopEffectIndex, setTopEffectIndexFull, setTopEffectPriority, setUint, setUint64, setValign, setXpos, setYpos.
getColor
textOverlayClipGetColor Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> m Word32 | Returns: The color used by |
Get the color used by source
.
getFontDesc
textOverlayClipGetFontDesc Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> m (Maybe Text) | Returns: The pango font description used by |
Get the pango font description used by self
.
getHalignment
textOverlayClipGetHalignment Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> m TextHAlign | Returns: The horizontal aligment used by |
Get the horizontal aligment used by self
.
getText
textOverlayClipGetText Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> m (Maybe Text) | Returns: The text currently set on |
Get the text currently set on self
.
getValignment
textOverlayClipGetValignment Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> m TextVAlign | Returns: The vertical aligment used by |
Get the vertical aligment used by self
.
getXpos
textOverlayClipGetXpos Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> m Double | Returns: The horizontal position used by |
Get the horizontal position used by source
.
getYpos
textOverlayClipGetYpos Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> m Double | Returns: The vertical position used by |
Get the vertical position used by source
.
new
:: (HasCallStack, MonadIO m) | |
=> m (Maybe TextOverlayClip) | Returns: The newly created
|
Creates a new TextOverlayClip
setColor
textOverlayClipSetColor Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the color of the text.
setFontDesc
textOverlayClipSetFontDesc Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the pango font description of the text
setHalign
textOverlayClipSetHalign Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> TextHAlign |
|
-> m () |
Sets the horizontal aligment of the text.
setText
textOverlayClipSetText Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> Maybe Text |
|
-> m () |
Sets the text this clip will render.
setValign
textOverlayClipSetValign Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> TextVAlign |
|
-> m () |
Sets the vertical aligment of the text.
setXpos
textOverlayClipSetXpos Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the horizontal position of the text.
setYpos
textOverlayClipSetYpos Source #
:: (HasCallStack, MonadIO m, IsTextOverlayClip a) | |
=> a |
|
-> Double |
|
-> m () |
Sets the vertical position of the text.
Properties
color
The color of the text
constructTextOverlayClipColor :: (IsTextOverlayClip o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “color
” property. This is rarely needed directly, but it is used by new
.
getTextOverlayClipColor :: (MonadIO m, IsTextOverlayClip o) => o -> m Word32 Source #
Get the value of the “color
” property.
When overloading is enabled, this is equivalent to
get
textOverlayClip #color
setTextOverlayClipColor :: (MonadIO m, IsTextOverlayClip o) => o -> Word32 -> m () Source #
Set the value of the “color
” property.
When overloading is enabled, this is equivalent to
set
textOverlayClip [ #color:=
value ]
fontDesc
Pango font description string
clearTextOverlayClipFontDesc :: (MonadIO m, IsTextOverlayClip o) => o -> m () Source #
Set the value of the “font-desc
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#fontDesc
constructTextOverlayClipFontDesc :: (IsTextOverlayClip o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “font-desc
” property. This is rarely needed directly, but it is used by new
.
getTextOverlayClipFontDesc :: (MonadIO m, IsTextOverlayClip o) => o -> m (Maybe Text) Source #
Get the value of the “font-desc
” property.
When overloading is enabled, this is equivalent to
get
textOverlayClip #fontDesc
setTextOverlayClipFontDesc :: (MonadIO m, IsTextOverlayClip o) => o -> Text -> m () Source #
Set the value of the “font-desc
” property.
When overloading is enabled, this is equivalent to
set
textOverlayClip [ #fontDesc:=
value ]
halignment
Horizontal alignment of the text
constructTextOverlayClipHalignment :: (IsTextOverlayClip o, MonadIO m) => TextHAlign -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “halignment
” property. This is rarely needed directly, but it is used by new
.
getTextOverlayClipHalignment :: (MonadIO m, IsTextOverlayClip o) => o -> m TextHAlign Source #
Get the value of the “halignment
” property.
When overloading is enabled, this is equivalent to
get
textOverlayClip #halignment
setTextOverlayClipHalignment :: (MonadIO m, IsTextOverlayClip o) => o -> TextHAlign -> m () Source #
Set the value of the “halignment
” property.
When overloading is enabled, this is equivalent to
set
textOverlayClip [ #halignment:=
value ]
text
The text to diplay
clearTextOverlayClipText :: (MonadIO m, IsTextOverlayClip o) => o -> m () Source #
Set the value of the “text
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#text
constructTextOverlayClipText :: (IsTextOverlayClip o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “text
” property. This is rarely needed directly, but it is used by new
.
getTextOverlayClipText :: (MonadIO m, IsTextOverlayClip o) => o -> m (Maybe Text) Source #
Get the value of the “text
” property.
When overloading is enabled, this is equivalent to
get
textOverlayClip #text
setTextOverlayClipText :: (MonadIO m, IsTextOverlayClip o) => o -> Text -> m () Source #
Set the value of the “text
” property.
When overloading is enabled, this is equivalent to
set
textOverlayClip [ #text:=
value ]
valignment
Vertical alignent of the text
constructTextOverlayClipValignment :: (IsTextOverlayClip o, MonadIO m) => TextVAlign -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “valignment
” property. This is rarely needed directly, but it is used by new
.
getTextOverlayClipValignment :: (MonadIO m, IsTextOverlayClip o) => o -> m TextVAlign Source #
Get the value of the “valignment
” property.
When overloading is enabled, this is equivalent to
get
textOverlayClip #valignment
setTextOverlayClipValignment :: (MonadIO m, IsTextOverlayClip o) => o -> TextVAlign -> m () Source #
Set the value of the “valignment
” property.
When overloading is enabled, this is equivalent to
set
textOverlayClip [ #valignment:=
value ]
xpos
The horizontal position of the text
constructTextOverlayClipXpos :: (IsTextOverlayClip o, MonadIO m) => Double -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “xpos
” property. This is rarely needed directly, but it is used by new
.
getTextOverlayClipXpos :: (MonadIO m, IsTextOverlayClip o) => o -> m Double Source #
Get the value of the “xpos
” property.
When overloading is enabled, this is equivalent to
get
textOverlayClip #xpos
setTextOverlayClipXpos :: (MonadIO m, IsTextOverlayClip o) => o -> Double -> m () Source #
Set the value of the “xpos
” property.
When overloading is enabled, this is equivalent to
set
textOverlayClip [ #xpos:=
value ]
ypos
The vertical position of the text
constructTextOverlayClipYpos :: (IsTextOverlayClip o, MonadIO m) => Double -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “ypos
” property. This is rarely needed directly, but it is used by new
.
getTextOverlayClipYpos :: (MonadIO m, IsTextOverlayClip o) => o -> m Double Source #
Get the value of the “ypos
” property.
When overloading is enabled, this is equivalent to
get
textOverlayClip #ypos
setTextOverlayClipYpos :: (MonadIO m, IsTextOverlayClip o) => o -> Double -> m () Source #
Set the value of the “ypos
” property.
When overloading is enabled, this is equivalent to
set
textOverlayClip [ #ypos:=
value ]