{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GES.Objects.TitleClip
(
TitleClip(..) ,
IsTitleClip ,
toTitleClip ,
#if defined(ENABLE_OVERLOADING)
ResolveTitleClipMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipGetBackgroundColorMethodInfo ,
#endif
titleClipGetBackgroundColor ,
#if defined(ENABLE_OVERLOADING)
TitleClipGetFontDescMethodInfo ,
#endif
titleClipGetFontDesc ,
#if defined(ENABLE_OVERLOADING)
TitleClipGetHalignmentMethodInfo ,
#endif
titleClipGetHalignment ,
#if defined(ENABLE_OVERLOADING)
TitleClipGetTextMethodInfo ,
#endif
titleClipGetText ,
#if defined(ENABLE_OVERLOADING)
TitleClipGetTextColorMethodInfo ,
#endif
titleClipGetTextColor ,
#if defined(ENABLE_OVERLOADING)
TitleClipGetValignmentMethodInfo ,
#endif
titleClipGetValignment ,
#if defined(ENABLE_OVERLOADING)
TitleClipGetXposMethodInfo ,
#endif
titleClipGetXpos ,
#if defined(ENABLE_OVERLOADING)
TitleClipGetYposMethodInfo ,
#endif
titleClipGetYpos ,
titleClipNew ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetBackgroundMethodInfo ,
#endif
titleClipSetBackground ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetColorMethodInfo ,
#endif
titleClipSetColor ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetFontDescMethodInfo ,
#endif
titleClipSetFontDesc ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetHalignmentMethodInfo ,
#endif
titleClipSetHalignment ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetTextMethodInfo ,
#endif
titleClipSetText ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetValignmentMethodInfo ,
#endif
titleClipSetValignment ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetXposMethodInfo ,
#endif
titleClipSetXpos ,
#if defined(ENABLE_OVERLOADING)
TitleClipSetYposMethodInfo ,
#endif
titleClipSetYpos ,
#if defined(ENABLE_OVERLOADING)
TitleClipBackgroundPropertyInfo ,
#endif
constructTitleClipBackground ,
getTitleClipBackground ,
setTitleClipBackground ,
#if defined(ENABLE_OVERLOADING)
titleClipBackground ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipColorPropertyInfo ,
#endif
constructTitleClipColor ,
getTitleClipColor ,
setTitleClipColor ,
#if defined(ENABLE_OVERLOADING)
titleClipColor ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipFontDescPropertyInfo ,
#endif
clearTitleClipFontDesc ,
constructTitleClipFontDesc ,
getTitleClipFontDesc ,
setTitleClipFontDesc ,
#if defined(ENABLE_OVERLOADING)
titleClipFontDesc ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipHalignmentPropertyInfo ,
#endif
constructTitleClipHalignment ,
getTitleClipHalignment ,
setTitleClipHalignment ,
#if defined(ENABLE_OVERLOADING)
titleClipHalignment ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipTextPropertyInfo ,
#endif
clearTitleClipText ,
constructTitleClipText ,
getTitleClipText ,
setTitleClipText ,
#if defined(ENABLE_OVERLOADING)
titleClipText ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipValignmentPropertyInfo ,
#endif
constructTitleClipValignment ,
getTitleClipValignment ,
setTitleClipValignment ,
#if defined(ENABLE_OVERLOADING)
titleClipValignment ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipXposPropertyInfo ,
#endif
constructTitleClipXpos ,
getTitleClipXpos ,
setTitleClipXpos ,
#if defined(ENABLE_OVERLOADING)
titleClipXpos ,
#endif
#if defined(ENABLE_OVERLOADING)
TitleClipYposPropertyInfo ,
#endif
constructTitleClipYpos ,
getTitleClipYpos ,
setTitleClipYpos ,
#if defined(ENABLE_OVERLOADING)
titleClipYpos ,
#endif
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import {-# SOURCE #-} qualified GI.GES.Enums as GES.Enums
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.Clip as GES.Clip
import {-# SOURCE #-} qualified GI.GES.Objects.Container as GES.Container
import {-# SOURCE #-} qualified GI.GES.Objects.SourceClip as GES.SourceClip
import {-# SOURCE #-} qualified GI.GES.Objects.TimelineElement as GES.TimelineElement
import qualified GI.GObject.Objects.Object as GObject.Object
newtype TitleClip = TitleClip (SP.ManagedPtr TitleClip)
deriving (TitleClip -> TitleClip -> Bool
(TitleClip -> TitleClip -> Bool)
-> (TitleClip -> TitleClip -> Bool) -> Eq TitleClip
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TitleClip -> TitleClip -> Bool
== :: TitleClip -> TitleClip -> Bool
$c/= :: TitleClip -> TitleClip -> Bool
/= :: TitleClip -> TitleClip -> Bool
Eq)
instance SP.ManagedPtrNewtype TitleClip where
toManagedPtr :: TitleClip -> ManagedPtr TitleClip
toManagedPtr (TitleClip ManagedPtr TitleClip
p) = ManagedPtr TitleClip
p
foreign import ccall "ges_title_clip_get_type"
c_ges_title_clip_get_type :: IO B.Types.GType
instance B.Types.TypedObject TitleClip where
glibType :: IO GType
glibType = IO GType
c_ges_title_clip_get_type
instance B.Types.GObject TitleClip
class (SP.GObject o, O.IsDescendantOf TitleClip o) => IsTitleClip o
instance (SP.GObject o, O.IsDescendantOf TitleClip o) => IsTitleClip o
instance O.HasParentTypes TitleClip
type instance O.ParentTypes TitleClip = '[GES.SourceClip.SourceClip, GES.Clip.Clip, GES.Container.Container, GES.TimelineElement.TimelineElement, GObject.Object.Object, GES.Extractable.Extractable, GES.MetaContainer.MetaContainer]
toTitleClip :: (MIO.MonadIO m, IsTitleClip o) => o -> m TitleClip
toTitleClip :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> m TitleClip
toTitleClip = IO TitleClip -> m TitleClip
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO TitleClip -> m TitleClip)
-> (o -> IO TitleClip) -> o -> m TitleClip
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr TitleClip -> TitleClip) -> o -> IO TitleClip
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr TitleClip -> TitleClip
TitleClip
instance B.GValue.IsGValue (Maybe TitleClip) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_ges_title_clip_get_type
gvalueSet_ :: Ptr GValue -> Maybe TitleClip -> IO ()
gvalueSet_ Ptr GValue
gv Maybe TitleClip
P.Nothing = Ptr GValue -> Ptr TitleClip -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr TitleClip
forall a. Ptr a
FP.nullPtr :: FP.Ptr TitleClip)
gvalueSet_ Ptr GValue
gv (P.Just TitleClip
obj) = TitleClip -> (Ptr TitleClip -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr TitleClip
obj (Ptr GValue -> Ptr TitleClip -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe TitleClip)
gvalueGet_ Ptr GValue
gv = do
Ptr TitleClip
ptr <- Ptr GValue -> IO (Ptr TitleClip)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr TitleClip)
if Ptr TitleClip
ptr Ptr TitleClip -> Ptr TitleClip -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr TitleClip
forall a. Ptr a
FP.nullPtr
then TitleClip -> Maybe TitleClip
forall a. a -> Maybe a
P.Just (TitleClip -> Maybe TitleClip)
-> IO TitleClip -> IO (Maybe TitleClip)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr TitleClip -> TitleClip)
-> Ptr TitleClip -> IO TitleClip
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr TitleClip -> TitleClip
TitleClip Ptr TitleClip
ptr
else Maybe TitleClip -> IO (Maybe TitleClip)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe TitleClip
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveTitleClipMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveTitleClipMethod "add" o = GES.Container.ContainerAddMethodInfo
ResolveTitleClipMethod "addAsset" o = GES.Clip.ClipAddAssetMethodInfo
ResolveTitleClipMethod "addChildProperty" o = GES.TimelineElement.TimelineElementAddChildPropertyMethodInfo
ResolveTitleClipMethod "addChildToTrack" o = GES.Clip.ClipAddChildToTrackMethodInfo
ResolveTitleClipMethod "addMetasFromString" o = GES.MetaContainer.MetaContainerAddMetasFromStringMethodInfo
ResolveTitleClipMethod "addTopEffect" o = GES.Clip.ClipAddTopEffectMethodInfo
ResolveTitleClipMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveTitleClipMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveTitleClipMethod "checkMetaRegistered" o = GES.MetaContainer.MetaContainerCheckMetaRegisteredMethodInfo
ResolveTitleClipMethod "copy" o = GES.TimelineElement.TimelineElementCopyMethodInfo
ResolveTitleClipMethod "edit" o = GES.Container.ContainerEditMethodInfo
ResolveTitleClipMethod "editFull" o = GES.TimelineElement.TimelineElementEditFullMethodInfo
ResolveTitleClipMethod "findTrackElement" o = GES.Clip.ClipFindTrackElementMethodInfo
ResolveTitleClipMethod "findTrackElements" o = GES.Clip.ClipFindTrackElementsMethodInfo
ResolveTitleClipMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveTitleClipMethod "foreach" o = GES.MetaContainer.MetaContainerForeachMethodInfo
ResolveTitleClipMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveTitleClipMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveTitleClipMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveTitleClipMethod "listChildrenProperties" o = GES.TimelineElement.TimelineElementListChildrenPropertiesMethodInfo
ResolveTitleClipMethod "lookupChild" o = GES.TimelineElement.TimelineElementLookupChildMethodInfo
ResolveTitleClipMethod "metasToString" o = GES.MetaContainer.MetaContainerMetasToStringMethodInfo
ResolveTitleClipMethod "moveToLayer" o = GES.Clip.ClipMoveToLayerMethodInfo
ResolveTitleClipMethod "moveToLayerFull" o = GES.Clip.ClipMoveToLayerFullMethodInfo
ResolveTitleClipMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveTitleClipMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveTitleClipMethod "paste" o = GES.TimelineElement.TimelineElementPasteMethodInfo
ResolveTitleClipMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveTitleClipMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveTitleClipMethod "registerMeta" o = GES.MetaContainer.MetaContainerRegisterMetaMethodInfo
ResolveTitleClipMethod "registerMetaBoolean" o = GES.MetaContainer.MetaContainerRegisterMetaBooleanMethodInfo
ResolveTitleClipMethod "registerMetaDate" o = GES.MetaContainer.MetaContainerRegisterMetaDateMethodInfo
ResolveTitleClipMethod "registerMetaDateTime" o = GES.MetaContainer.MetaContainerRegisterMetaDateTimeMethodInfo
ResolveTitleClipMethod "registerMetaDouble" o = GES.MetaContainer.MetaContainerRegisterMetaDoubleMethodInfo
ResolveTitleClipMethod "registerMetaFloat" o = GES.MetaContainer.MetaContainerRegisterMetaFloatMethodInfo
ResolveTitleClipMethod "registerMetaInt" o = GES.MetaContainer.MetaContainerRegisterMetaIntMethodInfo
ResolveTitleClipMethod "registerMetaInt64" o = GES.MetaContainer.MetaContainerRegisterMetaInt64MethodInfo
ResolveTitleClipMethod "registerMetaString" o = GES.MetaContainer.MetaContainerRegisterMetaStringMethodInfo
ResolveTitleClipMethod "registerMetaUint" o = GES.MetaContainer.MetaContainerRegisterMetaUintMethodInfo
ResolveTitleClipMethod "registerMetaUint64" o = GES.MetaContainer.MetaContainerRegisterMetaUint64MethodInfo
ResolveTitleClipMethod "registerStaticMeta" o = GES.MetaContainer.MetaContainerRegisterStaticMetaMethodInfo
ResolveTitleClipMethod "remove" o = GES.Container.ContainerRemoveMethodInfo
ResolveTitleClipMethod "removeChildProperty" o = GES.TimelineElement.TimelineElementRemoveChildPropertyMethodInfo
ResolveTitleClipMethod "removeTopEffect" o = GES.Clip.ClipRemoveTopEffectMethodInfo
ResolveTitleClipMethod "ripple" o = GES.TimelineElement.TimelineElementRippleMethodInfo
ResolveTitleClipMethod "rippleEnd" o = GES.TimelineElement.TimelineElementRippleEndMethodInfo
ResolveTitleClipMethod "rollEnd" o = GES.TimelineElement.TimelineElementRollEndMethodInfo
ResolveTitleClipMethod "rollStart" o = GES.TimelineElement.TimelineElementRollStartMethodInfo
ResolveTitleClipMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveTitleClipMethod "split" o = GES.Clip.ClipSplitMethodInfo
ResolveTitleClipMethod "splitFull" o = GES.Clip.ClipSplitFullMethodInfo
ResolveTitleClipMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveTitleClipMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveTitleClipMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveTitleClipMethod "trim" o = GES.TimelineElement.TimelineElementTrimMethodInfo
ResolveTitleClipMethod "ungroup" o = GES.Container.ContainerUngroupMethodInfo
ResolveTitleClipMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveTitleClipMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveTitleClipMethod "getAsset" o = GES.Extractable.ExtractableGetAssetMethodInfo
ResolveTitleClipMethod "getBackgroundColor" o = TitleClipGetBackgroundColorMethodInfo
ResolveTitleClipMethod "getBoolean" o = GES.MetaContainer.MetaContainerGetBooleanMethodInfo
ResolveTitleClipMethod "getChildProperty" o = GES.TimelineElement.TimelineElementGetChildPropertyMethodInfo
ResolveTitleClipMethod "getChildPropertyByPspec" o = GES.TimelineElement.TimelineElementGetChildPropertyByPspecMethodInfo
ResolveTitleClipMethod "getChildren" o = GES.Container.ContainerGetChildrenMethodInfo
ResolveTitleClipMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveTitleClipMethod "getDate" o = GES.MetaContainer.MetaContainerGetDateMethodInfo
ResolveTitleClipMethod "getDateTime" o = GES.MetaContainer.MetaContainerGetDateTimeMethodInfo
ResolveTitleClipMethod "getDouble" o = GES.MetaContainer.MetaContainerGetDoubleMethodInfo
ResolveTitleClipMethod "getDuration" o = GES.TimelineElement.TimelineElementGetDurationMethodInfo
ResolveTitleClipMethod "getDurationLimit" o = GES.Clip.ClipGetDurationLimitMethodInfo
ResolveTitleClipMethod "getFloat" o = GES.MetaContainer.MetaContainerGetFloatMethodInfo
ResolveTitleClipMethod "getFontDesc" o = TitleClipGetFontDescMethodInfo
ResolveTitleClipMethod "getHalignment" o = TitleClipGetHalignmentMethodInfo
ResolveTitleClipMethod "getId" o = GES.Extractable.ExtractableGetIdMethodInfo
ResolveTitleClipMethod "getInpoint" o = GES.TimelineElement.TimelineElementGetInpointMethodInfo
ResolveTitleClipMethod "getInt" o = GES.MetaContainer.MetaContainerGetIntMethodInfo
ResolveTitleClipMethod "getInt64" o = GES.MetaContainer.MetaContainerGetInt64MethodInfo
ResolveTitleClipMethod "getInternalTimeFromTimelineTime" o = GES.Clip.ClipGetInternalTimeFromTimelineTimeMethodInfo
ResolveTitleClipMethod "getLayer" o = GES.Clip.ClipGetLayerMethodInfo
ResolveTitleClipMethod "getLayerPriority" o = GES.TimelineElement.TimelineElementGetLayerPriorityMethodInfo
ResolveTitleClipMethod "getMarkerList" o = GES.MetaContainer.MetaContainerGetMarkerListMethodInfo
ResolveTitleClipMethod "getMaxDuration" o = GES.TimelineElement.TimelineElementGetMaxDurationMethodInfo
ResolveTitleClipMethod "getMeta" o = GES.MetaContainer.MetaContainerGetMetaMethodInfo
ResolveTitleClipMethod "getName" o = GES.TimelineElement.TimelineElementGetNameMethodInfo
ResolveTitleClipMethod "getNaturalFramerate" o = GES.TimelineElement.TimelineElementGetNaturalFramerateMethodInfo
ResolveTitleClipMethod "getParent" o = GES.TimelineElement.TimelineElementGetParentMethodInfo
ResolveTitleClipMethod "getPriority" o = GES.TimelineElement.TimelineElementGetPriorityMethodInfo
ResolveTitleClipMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveTitleClipMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveTitleClipMethod "getStart" o = GES.TimelineElement.TimelineElementGetStartMethodInfo
ResolveTitleClipMethod "getString" o = GES.MetaContainer.MetaContainerGetStringMethodInfo
ResolveTitleClipMethod "getSupportedFormats" o = GES.Clip.ClipGetSupportedFormatsMethodInfo
ResolveTitleClipMethod "getText" o = TitleClipGetTextMethodInfo
ResolveTitleClipMethod "getTextColor" o = TitleClipGetTextColorMethodInfo
ResolveTitleClipMethod "getTimeline" o = GES.TimelineElement.TimelineElementGetTimelineMethodInfo
ResolveTitleClipMethod "getTimelineTimeFromInternalTime" o = GES.Clip.ClipGetTimelineTimeFromInternalTimeMethodInfo
ResolveTitleClipMethod "getTimelineTimeFromSourceFrame" o = GES.Clip.ClipGetTimelineTimeFromSourceFrameMethodInfo
ResolveTitleClipMethod "getTopEffectIndex" o = GES.Clip.ClipGetTopEffectIndexMethodInfo
ResolveTitleClipMethod "getTopEffectPosition" o = GES.Clip.ClipGetTopEffectPositionMethodInfo
ResolveTitleClipMethod "getTopEffects" o = GES.Clip.ClipGetTopEffectsMethodInfo
ResolveTitleClipMethod "getToplevelParent" o = GES.TimelineElement.TimelineElementGetToplevelParentMethodInfo
ResolveTitleClipMethod "getTrackTypes" o = GES.TimelineElement.TimelineElementGetTrackTypesMethodInfo
ResolveTitleClipMethod "getUint" o = GES.MetaContainer.MetaContainerGetUintMethodInfo
ResolveTitleClipMethod "getUint64" o = GES.MetaContainer.MetaContainerGetUint64MethodInfo
ResolveTitleClipMethod "getValignment" o = TitleClipGetValignmentMethodInfo
ResolveTitleClipMethod "getXpos" o = TitleClipGetXposMethodInfo
ResolveTitleClipMethod "getYpos" o = TitleClipGetYposMethodInfo
ResolveTitleClipMethod "setAsset" o = GES.Extractable.ExtractableSetAssetMethodInfo
ResolveTitleClipMethod "setBackground" o = TitleClipSetBackgroundMethodInfo
ResolveTitleClipMethod "setBoolean" o = GES.MetaContainer.MetaContainerSetBooleanMethodInfo
ResolveTitleClipMethod "setChildProperty" o = GES.TimelineElement.TimelineElementSetChildPropertyMethodInfo
ResolveTitleClipMethod "setChildPropertyByPspec" o = GES.TimelineElement.TimelineElementSetChildPropertyByPspecMethodInfo
ResolveTitleClipMethod "setChildPropertyFull" o = GES.TimelineElement.TimelineElementSetChildPropertyFullMethodInfo
ResolveTitleClipMethod "setColor" o = TitleClipSetColorMethodInfo
ResolveTitleClipMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveTitleClipMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveTitleClipMethod "setDate" o = GES.MetaContainer.MetaContainerSetDateMethodInfo
ResolveTitleClipMethod "setDateTime" o = GES.MetaContainer.MetaContainerSetDateTimeMethodInfo
ResolveTitleClipMethod "setDouble" o = GES.MetaContainer.MetaContainerSetDoubleMethodInfo
ResolveTitleClipMethod "setDuration" o = GES.TimelineElement.TimelineElementSetDurationMethodInfo
ResolveTitleClipMethod "setFloat" o = GES.MetaContainer.MetaContainerSetFloatMethodInfo
ResolveTitleClipMethod "setFontDesc" o = TitleClipSetFontDescMethodInfo
ResolveTitleClipMethod "setHalignment" o = TitleClipSetHalignmentMethodInfo
ResolveTitleClipMethod "setInpoint" o = GES.TimelineElement.TimelineElementSetInpointMethodInfo
ResolveTitleClipMethod "setInt" o = GES.MetaContainer.MetaContainerSetIntMethodInfo
ResolveTitleClipMethod "setInt64" o = GES.MetaContainer.MetaContainerSetInt64MethodInfo
ResolveTitleClipMethod "setMarkerList" o = GES.MetaContainer.MetaContainerSetMarkerListMethodInfo
ResolveTitleClipMethod "setMaxDuration" o = GES.TimelineElement.TimelineElementSetMaxDurationMethodInfo
ResolveTitleClipMethod "setMeta" o = GES.MetaContainer.MetaContainerSetMetaMethodInfo
ResolveTitleClipMethod "setName" o = GES.TimelineElement.TimelineElementSetNameMethodInfo
ResolveTitleClipMethod "setParent" o = GES.TimelineElement.TimelineElementSetParentMethodInfo
ResolveTitleClipMethod "setPriority" o = GES.TimelineElement.TimelineElementSetPriorityMethodInfo
ResolveTitleClipMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveTitleClipMethod "setStart" o = GES.TimelineElement.TimelineElementSetStartMethodInfo
ResolveTitleClipMethod "setString" o = GES.MetaContainer.MetaContainerSetStringMethodInfo
ResolveTitleClipMethod "setSupportedFormats" o = GES.Clip.ClipSetSupportedFormatsMethodInfo
ResolveTitleClipMethod "setText" o = TitleClipSetTextMethodInfo
ResolveTitleClipMethod "setTimeline" o = GES.TimelineElement.TimelineElementSetTimelineMethodInfo
ResolveTitleClipMethod "setTopEffectIndex" o = GES.Clip.ClipSetTopEffectIndexMethodInfo
ResolveTitleClipMethod "setTopEffectIndexFull" o = GES.Clip.ClipSetTopEffectIndexFullMethodInfo
ResolveTitleClipMethod "setTopEffectPriority" o = GES.Clip.ClipSetTopEffectPriorityMethodInfo
ResolveTitleClipMethod "setUint" o = GES.MetaContainer.MetaContainerSetUintMethodInfo
ResolveTitleClipMethod "setUint64" o = GES.MetaContainer.MetaContainerSetUint64MethodInfo
ResolveTitleClipMethod "setValignment" o = TitleClipSetValignmentMethodInfo
ResolveTitleClipMethod "setXpos" o = TitleClipSetXposMethodInfo
ResolveTitleClipMethod "setYpos" o = TitleClipSetYposMethodInfo
ResolveTitleClipMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveTitleClipMethod t TitleClip, O.OverloadedMethod info TitleClip p) => OL.IsLabel t (TitleClip -> 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 ~ ResolveTitleClipMethod t TitleClip, O.OverloadedMethod info TitleClip p, R.HasField t TitleClip p) => R.HasField t TitleClip p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveTitleClipMethod t TitleClip, O.OverloadedMethodInfo info TitleClip) => OL.IsLabel t (O.MethodProxy info TitleClip) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getTitleClipBackground :: (MonadIO m, IsTitleClip o) => o -> m Word32
getTitleClipBackground :: forall (m :: * -> *) o. (MonadIO m, IsTitleClip o) => o -> m Word32
getTitleClipBackground o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"background"
setTitleClipBackground :: (MonadIO m, IsTitleClip o) => o -> Word32 -> m ()
setTitleClipBackground :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> Word32 -> m ()
setTitleClipBackground o
obj Word32
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 -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"background" Word32
val
constructTitleClipBackground :: (IsTitleClip o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructTitleClipBackground :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructTitleClipBackground Word32
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 -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"background" Word32
val
#if defined(ENABLE_OVERLOADING)
data TitleClipBackgroundPropertyInfo
instance AttrInfo TitleClipBackgroundPropertyInfo where
type AttrAllowedOps TitleClipBackgroundPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TitleClipBackgroundPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipBackgroundPropertyInfo = (~) Word32
type AttrTransferTypeConstraint TitleClipBackgroundPropertyInfo = (~) Word32
type AttrTransferType TitleClipBackgroundPropertyInfo = Word32
type AttrGetType TitleClipBackgroundPropertyInfo = Word32
type AttrLabel TitleClipBackgroundPropertyInfo = "background"
type AttrOrigin TitleClipBackgroundPropertyInfo = TitleClip
attrGet = getTitleClipBackground
attrSet = setTitleClipBackground
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipBackground
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.background"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:background"
})
#endif
getTitleClipColor :: (MonadIO m, IsTitleClip o) => o -> m Word32
getTitleClipColor :: forall (m :: * -> *) o. (MonadIO m, IsTitleClip o) => o -> m Word32
getTitleClipColor o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"color"
setTitleClipColor :: (MonadIO m, IsTitleClip o) => o -> Word32 -> m ()
setTitleClipColor :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> Word32 -> m ()
setTitleClipColor o
obj Word32
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 -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"color" Word32
val
constructTitleClipColor :: (IsTitleClip o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructTitleClipColor :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructTitleClipColor Word32
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 -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"color" Word32
val
#if defined(ENABLE_OVERLOADING)
data TitleClipColorPropertyInfo
instance AttrInfo TitleClipColorPropertyInfo where
type AttrAllowedOps TitleClipColorPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TitleClipColorPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipColorPropertyInfo = (~) Word32
type AttrTransferTypeConstraint TitleClipColorPropertyInfo = (~) Word32
type AttrTransferType TitleClipColorPropertyInfo = Word32
type AttrGetType TitleClipColorPropertyInfo = Word32
type AttrLabel TitleClipColorPropertyInfo = "color"
type AttrOrigin TitleClipColorPropertyInfo = TitleClip
attrGet = getTitleClipColor
attrSet = setTitleClipColor
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipColor
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.color"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:color"
})
#endif
getTitleClipFontDesc :: (MonadIO m, IsTitleClip o) => o -> m (Maybe T.Text)
getTitleClipFontDesc :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> m (Maybe Text)
getTitleClipFontDesc o
obj = IO (Maybe Text) -> m (Maybe Text)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"font-desc"
setTitleClipFontDesc :: (MonadIO m, IsTitleClip o) => o -> T.Text -> m ()
setTitleClipFontDesc :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> Text -> m ()
setTitleClipFontDesc o
obj Text
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 -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"font-desc" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructTitleClipFontDesc :: (IsTitleClip o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructTitleClipFontDesc :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructTitleClipFontDesc Text
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 -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"font-desc" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearTitleClipFontDesc :: (MonadIO m, IsTitleClip o) => o -> m ()
clearTitleClipFontDesc :: forall (m :: * -> *) o. (MonadIO m, IsTitleClip o) => o -> m ()
clearTitleClipFontDesc o
obj = 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
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"font-desc" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data TitleClipFontDescPropertyInfo
instance AttrInfo TitleClipFontDescPropertyInfo where
type AttrAllowedOps TitleClipFontDescPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint TitleClipFontDescPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipFontDescPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint TitleClipFontDescPropertyInfo = (~) T.Text
type AttrTransferType TitleClipFontDescPropertyInfo = T.Text
type AttrGetType TitleClipFontDescPropertyInfo = (Maybe T.Text)
type AttrLabel TitleClipFontDescPropertyInfo = "font-desc"
type AttrOrigin TitleClipFontDescPropertyInfo = TitleClip
attrGet = getTitleClipFontDesc
attrSet = setTitleClipFontDesc
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipFontDesc
attrClear = clearTitleClipFontDesc
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.fontDesc"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:fontDesc"
})
#endif
getTitleClipHalignment :: (MonadIO m, IsTitleClip o) => o -> m GES.Enums.TextHAlign
getTitleClipHalignment :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> m TextHAlign
getTitleClipHalignment o
obj = IO TextHAlign -> m TextHAlign
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO TextHAlign -> m TextHAlign) -> IO TextHAlign -> m TextHAlign
forall a b. (a -> b) -> a -> b
$ o -> String -> IO TextHAlign
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"halignment"
setTitleClipHalignment :: (MonadIO m, IsTitleClip o) => o -> GES.Enums.TextHAlign -> m ()
setTitleClipHalignment :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> TextHAlign -> m ()
setTitleClipHalignment o
obj TextHAlign
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 -> TextHAlign -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"halignment" TextHAlign
val
constructTitleClipHalignment :: (IsTitleClip o, MIO.MonadIO m) => GES.Enums.TextHAlign -> m (GValueConstruct o)
constructTitleClipHalignment :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
TextHAlign -> m (GValueConstruct o)
constructTitleClipHalignment TextHAlign
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 -> TextHAlign -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"halignment" TextHAlign
val
#if defined(ENABLE_OVERLOADING)
data TitleClipHalignmentPropertyInfo
instance AttrInfo TitleClipHalignmentPropertyInfo where
type AttrAllowedOps TitleClipHalignmentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TitleClipHalignmentPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipHalignmentPropertyInfo = (~) GES.Enums.TextHAlign
type AttrTransferTypeConstraint TitleClipHalignmentPropertyInfo = (~) GES.Enums.TextHAlign
type AttrTransferType TitleClipHalignmentPropertyInfo = GES.Enums.TextHAlign
type AttrGetType TitleClipHalignmentPropertyInfo = GES.Enums.TextHAlign
type AttrLabel TitleClipHalignmentPropertyInfo = "halignment"
type AttrOrigin TitleClipHalignmentPropertyInfo = TitleClip
attrGet = getTitleClipHalignment
attrSet = setTitleClipHalignment
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipHalignment
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.halignment"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:halignment"
})
#endif
getTitleClipText :: (MonadIO m, IsTitleClip o) => o -> m (Maybe T.Text)
getTitleClipText :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> m (Maybe Text)
getTitleClipText o
obj = IO (Maybe Text) -> m (Maybe Text)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"text"
setTitleClipText :: (MonadIO m, IsTitleClip o) => o -> T.Text -> m ()
setTitleClipText :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> Text -> m ()
setTitleClipText o
obj Text
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 -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"text" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructTitleClipText :: (IsTitleClip o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructTitleClipText :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructTitleClipText Text
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 -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"text" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearTitleClipText :: (MonadIO m, IsTitleClip o) => o -> m ()
clearTitleClipText :: forall (m :: * -> *) o. (MonadIO m, IsTitleClip o) => o -> m ()
clearTitleClipText o
obj = 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
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"text" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data TitleClipTextPropertyInfo
instance AttrInfo TitleClipTextPropertyInfo where
type AttrAllowedOps TitleClipTextPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint TitleClipTextPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipTextPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint TitleClipTextPropertyInfo = (~) T.Text
type AttrTransferType TitleClipTextPropertyInfo = T.Text
type AttrGetType TitleClipTextPropertyInfo = (Maybe T.Text)
type AttrLabel TitleClipTextPropertyInfo = "text"
type AttrOrigin TitleClipTextPropertyInfo = TitleClip
attrGet = getTitleClipText
attrSet = setTitleClipText
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipText
attrClear = clearTitleClipText
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.text"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:text"
})
#endif
getTitleClipValignment :: (MonadIO m, IsTitleClip o) => o -> m GES.Enums.TextVAlign
getTitleClipValignment :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> m TextVAlign
getTitleClipValignment o
obj = IO TextVAlign -> m TextVAlign
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO TextVAlign -> m TextVAlign) -> IO TextVAlign -> m TextVAlign
forall a b. (a -> b) -> a -> b
$ o -> String -> IO TextVAlign
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"valignment"
setTitleClipValignment :: (MonadIO m, IsTitleClip o) => o -> GES.Enums.TextVAlign -> m ()
setTitleClipValignment :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> TextVAlign -> m ()
setTitleClipValignment o
obj TextVAlign
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 -> TextVAlign -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"valignment" TextVAlign
val
constructTitleClipValignment :: (IsTitleClip o, MIO.MonadIO m) => GES.Enums.TextVAlign -> m (GValueConstruct o)
constructTitleClipValignment :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
TextVAlign -> m (GValueConstruct o)
constructTitleClipValignment TextVAlign
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 -> TextVAlign -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"valignment" TextVAlign
val
#if defined(ENABLE_OVERLOADING)
data TitleClipValignmentPropertyInfo
instance AttrInfo TitleClipValignmentPropertyInfo where
type AttrAllowedOps TitleClipValignmentPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TitleClipValignmentPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipValignmentPropertyInfo = (~) GES.Enums.TextVAlign
type AttrTransferTypeConstraint TitleClipValignmentPropertyInfo = (~) GES.Enums.TextVAlign
type AttrTransferType TitleClipValignmentPropertyInfo = GES.Enums.TextVAlign
type AttrGetType TitleClipValignmentPropertyInfo = GES.Enums.TextVAlign
type AttrLabel TitleClipValignmentPropertyInfo = "valignment"
type AttrOrigin TitleClipValignmentPropertyInfo = TitleClip
attrGet = getTitleClipValignment
attrSet = setTitleClipValignment
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipValignment
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.valignment"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:valignment"
})
#endif
getTitleClipXpos :: (MonadIO m, IsTitleClip o) => o -> m Double
getTitleClipXpos :: forall (m :: * -> *) o. (MonadIO m, IsTitleClip o) => o -> m Double
getTitleClipXpos o
obj = IO Double -> m Double
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"xpos"
setTitleClipXpos :: (MonadIO m, IsTitleClip o) => o -> Double -> m ()
setTitleClipXpos :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> Double -> m ()
setTitleClipXpos o
obj Double
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"xpos" Double
val
constructTitleClipXpos :: (IsTitleClip o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructTitleClipXpos :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructTitleClipXpos Double
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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"xpos" Double
val
#if defined(ENABLE_OVERLOADING)
data TitleClipXposPropertyInfo
instance AttrInfo TitleClipXposPropertyInfo where
type AttrAllowedOps TitleClipXposPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TitleClipXposPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipXposPropertyInfo = (~) Double
type AttrTransferTypeConstraint TitleClipXposPropertyInfo = (~) Double
type AttrTransferType TitleClipXposPropertyInfo = Double
type AttrGetType TitleClipXposPropertyInfo = Double
type AttrLabel TitleClipXposPropertyInfo = "xpos"
type AttrOrigin TitleClipXposPropertyInfo = TitleClip
attrGet = getTitleClipXpos
attrSet = setTitleClipXpos
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipXpos
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.xpos"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:xpos"
})
#endif
getTitleClipYpos :: (MonadIO m, IsTitleClip o) => o -> m Double
getTitleClipYpos :: forall (m :: * -> *) o. (MonadIO m, IsTitleClip o) => o -> m Double
getTitleClipYpos o
obj = IO Double -> m Double
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Double
forall a. GObject a => a -> String -> IO Double
B.Properties.getObjectPropertyDouble o
obj String
"ypos"
setTitleClipYpos :: (MonadIO m, IsTitleClip o) => o -> Double -> m ()
setTitleClipYpos :: forall (m :: * -> *) o.
(MonadIO m, IsTitleClip o) =>
o -> Double -> m ()
setTitleClipYpos o
obj Double
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 -> Double -> IO ()
forall a. GObject a => a -> String -> Double -> IO ()
B.Properties.setObjectPropertyDouble o
obj String
"ypos" Double
val
constructTitleClipYpos :: (IsTitleClip o, MIO.MonadIO m) => Double -> m (GValueConstruct o)
constructTitleClipYpos :: forall o (m :: * -> *).
(IsTitleClip o, MonadIO m) =>
Double -> m (GValueConstruct o)
constructTitleClipYpos Double
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 -> Double -> IO (GValueConstruct o)
forall o. String -> Double -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyDouble String
"ypos" Double
val
#if defined(ENABLE_OVERLOADING)
data TitleClipYposPropertyInfo
instance AttrInfo TitleClipYposPropertyInfo where
type AttrAllowedOps TitleClipYposPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint TitleClipYposPropertyInfo = IsTitleClip
type AttrSetTypeConstraint TitleClipYposPropertyInfo = (~) Double
type AttrTransferTypeConstraint TitleClipYposPropertyInfo = (~) Double
type AttrTransferType TitleClipYposPropertyInfo = Double
type AttrGetType TitleClipYposPropertyInfo = Double
type AttrLabel TitleClipYposPropertyInfo = "ypos"
type AttrOrigin TitleClipYposPropertyInfo = TitleClip
attrGet = getTitleClipYpos
attrSet = setTitleClipYpos
attrTransfer _ v = do
return v
attrConstruct = constructTitleClipYpos
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.ypos"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#g:attr:ypos"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList TitleClip
type instance O.AttributeList TitleClip = TitleClipAttributeList
type TitleClipAttributeList = ('[ '("background", TitleClipBackgroundPropertyInfo), '("color", TitleClipColorPropertyInfo), '("duration", GES.TimelineElement.TimelineElementDurationPropertyInfo), '("durationLimit", GES.Clip.ClipDurationLimitPropertyInfo), '("fontDesc", TitleClipFontDescPropertyInfo), '("halignment", TitleClipHalignmentPropertyInfo), '("height", GES.Container.ContainerHeightPropertyInfo), '("inPoint", GES.TimelineElement.TimelineElementInPointPropertyInfo), '("layer", GES.Clip.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", GES.Clip.ClipSupportedFormatsPropertyInfo), '("text", TitleClipTextPropertyInfo), '("timeline", GES.TimelineElement.TimelineElementTimelinePropertyInfo), '("valignment", TitleClipValignmentPropertyInfo), '("xpos", TitleClipXposPropertyInfo), '("ypos", TitleClipYposPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
titleClipBackground :: AttrLabelProxy "background"
titleClipBackground = AttrLabelProxy
titleClipColor :: AttrLabelProxy "color"
titleClipColor = AttrLabelProxy
titleClipFontDesc :: AttrLabelProxy "fontDesc"
titleClipFontDesc = AttrLabelProxy
titleClipHalignment :: AttrLabelProxy "halignment"
titleClipHalignment = AttrLabelProxy
titleClipText :: AttrLabelProxy "text"
titleClipText = AttrLabelProxy
titleClipValignment :: AttrLabelProxy "valignment"
titleClipValignment = AttrLabelProxy
titleClipXpos :: AttrLabelProxy "xpos"
titleClipXpos = AttrLabelProxy
titleClipYpos :: AttrLabelProxy "ypos"
titleClipYpos = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList TitleClip = TitleClipSignalList
type TitleClipSignalList = ('[ '("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_title_clip_new" ges_title_clip_new ::
IO (Ptr TitleClip)
titleClipNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m (Maybe TitleClip)
titleClipNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
m (Maybe TitleClip)
titleClipNew = IO (Maybe TitleClip) -> m (Maybe TitleClip)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe TitleClip) -> m (Maybe TitleClip))
-> IO (Maybe TitleClip) -> m (Maybe TitleClip)
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
result <- IO (Ptr TitleClip)
ges_title_clip_new
Maybe TitleClip
maybeResult <- Ptr TitleClip
-> (Ptr TitleClip -> IO TitleClip) -> IO (Maybe TitleClip)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr TitleClip
result ((Ptr TitleClip -> IO TitleClip) -> IO (Maybe TitleClip))
-> (Ptr TitleClip -> IO TitleClip) -> IO (Maybe TitleClip)
forall a b. (a -> b) -> a -> b
$ \Ptr TitleClip
result' -> do
TitleClip
result'' <- ((ManagedPtr TitleClip -> TitleClip)
-> Ptr TitleClip -> IO TitleClip
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr TitleClip -> TitleClip
TitleClip) Ptr TitleClip
result'
TitleClip -> IO TitleClip
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TitleClip
result''
Maybe TitleClip -> IO (Maybe TitleClip)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe TitleClip
maybeResult
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "ges_title_clip_get_background_color" ges_title_clip_get_background_color ::
Ptr TitleClip ->
IO Word32
{-# DEPRECATED titleClipGetBackgroundColor ["(Since version 1.6)","use @/ges_timeline_element_get_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipGetBackgroundColor ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m Word32
titleClipGetBackgroundColor :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m Word32
titleClipGetBackgroundColor a
self = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word32
result <- Ptr TitleClip -> IO Word32
ges_title_clip_get_background_color Ptr TitleClip
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data TitleClipGetBackgroundColorMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetBackgroundColorMethodInfo a signature where
overloadedMethod = titleClipGetBackgroundColor
instance O.OverloadedMethodInfo TitleClipGetBackgroundColorMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetBackgroundColor",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetBackgroundColor"
})
#endif
foreign import ccall "ges_title_clip_get_font_desc" ges_title_clip_get_font_desc ::
Ptr TitleClip ->
IO CString
{-# DEPRECATED titleClipGetFontDesc ["(Since version 1.6)","use @/ges_timeline_element_get_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipGetFontDesc ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m (Maybe T.Text)
titleClipGetFontDesc :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m (Maybe Text)
titleClipGetFontDesc a
self = IO (Maybe Text) -> m (Maybe Text)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
result <- Ptr TitleClip -> IO CString
ges_title_clip_get_font_desc Ptr TitleClip
self'
Maybe Text
maybeResult <- CString -> (CString -> IO Text) -> IO (Maybe Text)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull CString
result ((CString -> IO Text) -> IO (Maybe Text))
-> (CString -> IO Text) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \CString
result' -> do
Text
result'' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
result'
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe Text -> IO (Maybe Text)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Text
maybeResult
#if defined(ENABLE_OVERLOADING)
data TitleClipGetFontDescMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetFontDescMethodInfo a signature where
overloadedMethod = titleClipGetFontDesc
instance O.OverloadedMethodInfo TitleClipGetFontDescMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetFontDesc",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetFontDesc"
})
#endif
foreign import ccall "ges_title_clip_get_halignment" ges_title_clip_get_halignment ::
Ptr TitleClip ->
IO CUInt
{-# DEPRECATED titleClipGetHalignment ["(Since version 1.6)","use @/ges_timeline_element_get_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipGetHalignment ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m GES.Enums.TextHAlign
titleClipGetHalignment :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m TextHAlign
titleClipGetHalignment a
self = IO TextHAlign -> m TextHAlign
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TextHAlign -> m TextHAlign) -> IO TextHAlign -> m TextHAlign
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CUInt
result <- Ptr TitleClip -> IO CUInt
ges_title_clip_get_halignment Ptr TitleClip
self'
let result' :: TextHAlign
result' = (Int -> TextHAlign
forall a. Enum a => Int -> a
toEnum (Int -> TextHAlign) -> (CUInt -> Int) -> CUInt -> TextHAlign
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
TextHAlign -> IO TextHAlign
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TextHAlign
result'
#if defined(ENABLE_OVERLOADING)
data TitleClipGetHalignmentMethodInfo
instance (signature ~ (m GES.Enums.TextHAlign), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetHalignmentMethodInfo a signature where
overloadedMethod = titleClipGetHalignment
instance O.OverloadedMethodInfo TitleClipGetHalignmentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetHalignment",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetHalignment"
})
#endif
foreign import ccall "ges_title_clip_get_text" ges_title_clip_get_text ::
Ptr TitleClip ->
IO CString
{-# DEPRECATED titleClipGetText ["(Since version 1.6)","use @/ges_timeline_element_get_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipGetText ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m (Maybe T.Text)
titleClipGetText :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m (Maybe Text)
titleClipGetText a
self = IO (Maybe Text) -> m (Maybe Text)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
result <- Ptr TitleClip -> IO CString
ges_title_clip_get_text Ptr TitleClip
self'
Maybe Text
maybeResult <- CString -> (CString -> IO Text) -> IO (Maybe Text)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull CString
result ((CString -> IO Text) -> IO (Maybe Text))
-> (CString -> IO Text) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \CString
result' -> do
Text
result'' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result'
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
result'
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Maybe Text -> IO (Maybe Text)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Text
maybeResult
#if defined(ENABLE_OVERLOADING)
data TitleClipGetTextMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetTextMethodInfo a signature where
overloadedMethod = titleClipGetText
instance O.OverloadedMethodInfo TitleClipGetTextMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetText",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetText"
})
#endif
foreign import ccall "ges_title_clip_get_text_color" ges_title_clip_get_text_color ::
Ptr TitleClip ->
IO Word32
{-# DEPRECATED titleClipGetTextColor ["(Since version 1.6)","use @/ges_timeline_element_get_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipGetTextColor ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m Word32
titleClipGetTextColor :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m Word32
titleClipGetTextColor a
self = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Word32
result <- Ptr TitleClip -> IO Word32
ges_title_clip_get_text_color Ptr TitleClip
self'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result
#if defined(ENABLE_OVERLOADING)
data TitleClipGetTextColorMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetTextColorMethodInfo a signature where
overloadedMethod = titleClipGetTextColor
instance O.OverloadedMethodInfo TitleClipGetTextColorMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetTextColor",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetTextColor"
})
#endif
foreign import ccall "ges_title_clip_get_valignment" ges_title_clip_get_valignment ::
Ptr TitleClip ->
IO CUInt
{-# DEPRECATED titleClipGetValignment ["(Since version 1.6)","use @/ges_timeline_element_get_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipGetValignment ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m GES.Enums.TextVAlign
titleClipGetValignment :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m TextVAlign
titleClipGetValignment a
self = IO TextVAlign -> m TextVAlign
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO TextVAlign -> m TextVAlign) -> IO TextVAlign -> m TextVAlign
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CUInt
result <- Ptr TitleClip -> IO CUInt
ges_title_clip_get_valignment Ptr TitleClip
self'
let result' :: TextVAlign
result' = (Int -> TextVAlign
forall a. Enum a => Int -> a
toEnum (Int -> TextVAlign) -> (CUInt -> Int) -> CUInt -> TextVAlign
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
TextVAlign -> IO TextVAlign
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return TextVAlign
result'
#if defined(ENABLE_OVERLOADING)
data TitleClipGetValignmentMethodInfo
instance (signature ~ (m GES.Enums.TextVAlign), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetValignmentMethodInfo a signature where
overloadedMethod = titleClipGetValignment
instance O.OverloadedMethodInfo TitleClipGetValignmentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetValignment",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetValignment"
})
#endif
foreign import ccall "ges_title_clip_get_xpos" ges_title_clip_get_xpos ::
Ptr TitleClip ->
IO CDouble
{-# DEPRECATED titleClipGetXpos ["(Since version 1.6)","use @/ges_timeline_element_get_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipGetXpos ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m Double
titleClipGetXpos :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m Double
titleClipGetXpos a
self = IO Double -> m Double
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CDouble
result <- Ptr TitleClip -> IO CDouble
ges_title_clip_get_xpos Ptr TitleClip
self'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Double -> IO Double
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data TitleClipGetXposMethodInfo
instance (signature ~ (m Double), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetXposMethodInfo a signature where
overloadedMethod = titleClipGetXpos
instance O.OverloadedMethodInfo TitleClipGetXposMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetXpos",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetXpos"
})
#endif
foreign import ccall "ges_title_clip_get_ypos" ges_title_clip_get_ypos ::
Ptr TitleClip ->
IO CDouble
{-# DEPRECATED titleClipGetYpos ["(Since version 1.6)","use @/ges_timeline_element_get_children_property/@ instead"] #-}
titleClipGetYpos ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> m Double
titleClipGetYpos :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> m Double
titleClipGetYpos a
self = IO Double -> m Double
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Double -> m Double) -> IO Double -> m Double
forall a b. (a -> b) -> a -> b
$ do
Ptr TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CDouble
result <- Ptr TitleClip -> IO CDouble
ges_title_clip_get_ypos Ptr TitleClip
self'
let result' :: Double
result' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Double -> IO Double
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Double
result'
#if defined(ENABLE_OVERLOADING)
data TitleClipGetYposMethodInfo
instance (signature ~ (m Double), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipGetYposMethodInfo a signature where
overloadedMethod = titleClipGetYpos
instance O.OverloadedMethodInfo TitleClipGetYposMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipGetYpos",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipGetYpos"
})
#endif
foreign import ccall "ges_title_clip_set_background" ges_title_clip_set_background ::
Ptr TitleClip ->
Word32 ->
IO ()
{-# DEPRECATED titleClipSetBackground ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetBackground ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> Word32
-> m ()
titleClipSetBackground :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> Word32 -> m ()
titleClipSetBackground a
self Word32
background = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr TitleClip -> Word32 -> IO ()
ges_title_clip_set_background Ptr TitleClip
self' Word32
background
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetBackgroundMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetBackgroundMethodInfo a signature where
overloadedMethod = titleClipSetBackground
instance O.OverloadedMethodInfo TitleClipSetBackgroundMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetBackground",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetBackground"
})
#endif
foreign import ccall "ges_title_clip_set_color" ges_title_clip_set_color ::
Ptr TitleClip ->
Word32 ->
IO ()
{-# DEPRECATED titleClipSetColor ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetColor ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> Word32
-> m ()
titleClipSetColor :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> Word32 -> m ()
titleClipSetColor a
self Word32
color = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
Ptr TitleClip -> Word32 -> IO ()
ges_title_clip_set_color Ptr TitleClip
self' Word32
color
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetColorMethodInfo
instance (signature ~ (Word32 -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetColorMethodInfo a signature where
overloadedMethod = titleClipSetColor
instance O.OverloadedMethodInfo TitleClipSetColorMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetColor",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetColor"
})
#endif
foreign import ccall "ges_title_clip_set_font_desc" ges_title_clip_set_font_desc ::
Ptr TitleClip ->
CString ->
IO ()
{-# DEPRECATED titleClipSetFontDesc ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetFontDesc ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> Maybe (T.Text)
-> m ()
titleClipSetFontDesc :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> Maybe Text -> m ()
titleClipSetFontDesc a
self Maybe Text
fontDesc = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
maybeFontDesc <- case Maybe Text
fontDesc of
Maybe Text
Nothing -> CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
forall a. Ptr a
nullPtr
Just Text
jFontDesc -> do
CString
jFontDesc' <- Text -> IO CString
textToCString Text
jFontDesc
CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
jFontDesc'
Ptr TitleClip -> CString -> IO ()
ges_title_clip_set_font_desc Ptr TitleClip
self' CString
maybeFontDesc
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
maybeFontDesc
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetFontDescMethodInfo
instance (signature ~ (Maybe (T.Text) -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetFontDescMethodInfo a signature where
overloadedMethod = titleClipSetFontDesc
instance O.OverloadedMethodInfo TitleClipSetFontDescMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetFontDesc",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetFontDesc"
})
#endif
foreign import ccall "ges_title_clip_set_halignment" ges_title_clip_set_halignment ::
Ptr TitleClip ->
CUInt ->
IO ()
{-# DEPRECATED titleClipSetHalignment ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetHalignment ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> GES.Enums.TextHAlign
-> m ()
titleClipSetHalignment :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> TextHAlign -> m ()
titleClipSetHalignment a
self TextHAlign
halign = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let halign' :: CUInt
halign' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (TextHAlign -> Int) -> TextHAlign -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. TextHAlign -> Int
forall a. Enum a => a -> Int
fromEnum) TextHAlign
halign
Ptr TitleClip -> CUInt -> IO ()
ges_title_clip_set_halignment Ptr TitleClip
self' CUInt
halign'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetHalignmentMethodInfo
instance (signature ~ (GES.Enums.TextHAlign -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetHalignmentMethodInfo a signature where
overloadedMethod = titleClipSetHalignment
instance O.OverloadedMethodInfo TitleClipSetHalignmentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetHalignment",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetHalignment"
})
#endif
foreign import ccall "ges_title_clip_set_text" ges_title_clip_set_text ::
Ptr TitleClip ->
CString ->
IO ()
{-# DEPRECATED titleClipSetText ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetText ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> Maybe (T.Text)
-> m ()
titleClipSetText :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> Maybe Text -> m ()
titleClipSetText a
self Maybe Text
text = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
maybeText <- case Maybe Text
text of
Maybe Text
Nothing -> CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
forall a. Ptr a
nullPtr
Just Text
jText -> do
CString
jText' <- Text -> IO CString
textToCString Text
jText
CString -> IO CString
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CString
jText'
Ptr TitleClip -> CString -> IO ()
ges_title_clip_set_text Ptr TitleClip
self' CString
maybeText
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
maybeText
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetTextMethodInfo
instance (signature ~ (Maybe (T.Text) -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetTextMethodInfo a signature where
overloadedMethod = titleClipSetText
instance O.OverloadedMethodInfo TitleClipSetTextMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetText",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetText"
})
#endif
foreign import ccall "ges_title_clip_set_valignment" ges_title_clip_set_valignment ::
Ptr TitleClip ->
CUInt ->
IO ()
{-# DEPRECATED titleClipSetValignment ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetValignment ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> GES.Enums.TextVAlign
-> m ()
titleClipSetValignment :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> TextVAlign -> m ()
titleClipSetValignment a
self TextVAlign
valign = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let valign' :: CUInt
valign' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (TextVAlign -> Int) -> TextVAlign -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. TextVAlign -> Int
forall a. Enum a => a -> Int
fromEnum) TextVAlign
valign
Ptr TitleClip -> CUInt -> IO ()
ges_title_clip_set_valignment Ptr TitleClip
self' CUInt
valign'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetValignmentMethodInfo
instance (signature ~ (GES.Enums.TextVAlign -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetValignmentMethodInfo a signature where
overloadedMethod = titleClipSetValignment
instance O.OverloadedMethodInfo TitleClipSetValignmentMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetValignment",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetValignment"
})
#endif
foreign import ccall "ges_title_clip_set_xpos" ges_title_clip_set_xpos ::
Ptr TitleClip ->
CDouble ->
IO ()
{-# DEPRECATED titleClipSetXpos ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetXpos ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> Double
-> m ()
titleClipSetXpos :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> Double -> m ()
titleClipSetXpos a
self Double
position = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let position' :: CDouble
position' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
position
Ptr TitleClip -> CDouble -> IO ()
ges_title_clip_set_xpos Ptr TitleClip
self' CDouble
position'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetXposMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetXposMethodInfo a signature where
overloadedMethod = titleClipSetXpos
instance O.OverloadedMethodInfo TitleClipSetXposMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetXpos",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetXpos"
})
#endif
foreign import ccall "ges_title_clip_set_ypos" ges_title_clip_set_ypos ::
Ptr TitleClip ->
CDouble ->
IO ()
{-# DEPRECATED titleClipSetYpos ["(Since version 1.6)","use @/ges_timeline_element_set_children_properties/@ instead.","See t'GI.GES.Objects.TitleSource.TitleSource' for more information about exposed properties"] #-}
titleClipSetYpos ::
(B.CallStack.HasCallStack, MonadIO m, IsTitleClip a) =>
a
-> Double
-> m ()
titleClipSetYpos :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsTitleClip a) =>
a -> Double -> m ()
titleClipSetYpos a
self Double
position = 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 TitleClip
self' <- a -> IO (Ptr TitleClip)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let position' :: CDouble
position' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
position
Ptr TitleClip -> CDouble -> IO ()
ges_title_clip_set_ypos Ptr TitleClip
self' CDouble
position'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data TitleClipSetYposMethodInfo
instance (signature ~ (Double -> m ()), MonadIO m, IsTitleClip a) => O.OverloadedMethod TitleClipSetYposMethodInfo a signature where
overloadedMethod = titleClipSetYpos
instance O.OverloadedMethodInfo TitleClipSetYposMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.GES.Objects.TitleClip.titleClipSetYpos",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-ges-1.0.4/docs/GI-GES-Objects-TitleClip.html#v:titleClipSetYpos"
})
#endif