gi-gst-1.0.29: GStreamer bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gst.Objects.DynamicTypeFactory

Description

DynamicTypeFactory is used to represent a type that can be automatically loaded the first time it is used. For example, a non-standard type for use in caps fields.

In general, applications and plugins don't need to use the factory beyond registering the type in a plugin init function. Once that is done, the type is stored in the registry, and ready as soon as the registry is loaded.

Registering a type for dynamic loading

C code


static gboolean
plugin_init (GstPlugin * plugin)
{
  return gst_dynamic_type_register (plugin, GST_TYPE_CUSTOM_CAPS_FIELD);
}

Since: 1.12

Synopsis

Exported types

newtype DynamicTypeFactory Source #

Memory-managed wrapper type.

Constructors

DynamicTypeFactory (ManagedPtr DynamicTypeFactory) 

Instances

Instances details
Eq DynamicTypeFactory Source # 
Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

GObject DynamicTypeFactory Source # 
Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

ManagedPtrNewtype DynamicTypeFactory Source # 
Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

TypedObject DynamicTypeFactory Source # 
Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

Methods

glibType :: IO GType

HasParentTypes DynamicTypeFactory Source # 
Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

IsGValue (Maybe DynamicTypeFactory) Source #

Convert DynamicTypeFactory to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

type ParentTypes DynamicTypeFactory Source # 
Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

type ParentTypes DynamicTypeFactory = '[PluginFeature, Object, Object]

class (GObject o, IsDescendantOf DynamicTypeFactory o) => IsDynamicTypeFactory o Source #

Type class for types which can be safely cast to DynamicTypeFactory, for instance with toDynamicTypeFactory.

Instances

Instances details
(GObject o, IsDescendantOf DynamicTypeFactory o) => IsDynamicTypeFactory o Source # 
Instance details

Defined in GI.Gst.Objects.DynamicTypeFactory

toDynamicTypeFactory :: (MonadIO m, IsDynamicTypeFactory o) => o -> m DynamicTypeFactory Source #

Cast to DynamicTypeFactory, for types for which this is known to be safe. For general casts, use castTo.

Methods

load

dynamicTypeFactoryLoad :: (HasCallStack, MonadIO m) => Text -> m GType Source #

No description available in the introspection data.