| Portability | portable (depends on GHC) |
|---|---|
| Stability | alpha |
| Maintainer | gtk2hs-devel@lists.sourceforge.net |
| Safe Haskell | Safe-Infered |
Media.Streaming.GStreamer.Core.ElementFactory
Contents
Description
A factory for creating Elements.
- data ElementFactory
- class PluginFeatureClass o => ElementFactoryClass o
- castToElementFactory :: GObjectClass obj => obj -> ElementFactory
- gTypeElementFactory :: GType
- elementFactoryFind :: String -> IO (Maybe ElementFactory)
- elementFactoryGetElementType :: ElementFactoryClass elementFactory => elementFactory -> IO (Maybe GType)
- elementFactoryGetLongname :: ElementFactoryClass elementFactory => elementFactory -> IO String
- elementFactoryGetKlass :: ElementFactoryClass elementFactory => elementFactory -> IO String
- elementFactoryGetDescription :: ElementFactoryClass elementFactory => elementFactory -> IO String
- elementFactoryGetAuthor :: ElementFactoryClass elementFactory => elementFactory -> IO String
- elementFactoryGetNumPadTemplates :: ElementFactoryClass elementFactory => elementFactory -> IO Word
- elementFactoryGetURIType :: ElementFactoryClass elementFactory => elementFactory -> IO Int
- elementFactoryGetURIProtocols :: ElementFactoryClass elementFactory => elementFactory -> IO [String]
- elementFactoryHasInterface :: ElementFactoryClass elementFactory => elementFactory -> String -> IO Bool
- elementFactoryCreate :: ElementFactoryClass elementFactory => elementFactory -> String -> IO (Maybe Element)
- elementFactoryMake :: String -> Maybe String -> IO (Maybe Element)
- elementFactoryCanSinkCaps :: ElementFactoryClass elementFactory => elementFactory -> Caps -> IO Bool
- elementFactoryCanSrcCaps :: ElementFactoryClass elementFactory => elementFactory -> Caps -> IO Bool
- elementFactoryGetPadTemplates :: ElementFactoryClass elementFactory => elementFactory -> IO [PadTemplate]
Detail
ElementFactory is used to create instances of Elements.
Use elementFactoryFind and elementFactoryCreate to create
element instances, or use elementFactoryMake as a convenient
shortcut.
Types
data ElementFactory Source
class PluginFeatureClass o => ElementFactoryClass o Source
Instances
castToElementFactory :: GObjectClass obj => obj -> ElementFactorySource
ElementFactory Operations
Arguments
| :: String |
|
| -> IO (Maybe ElementFactory) | the factory if found, otherwise |
Search for an element factory with the given name.
elementFactoryGetElementTypeSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO (Maybe GType) | the type of elements managed
by the factory, or |
Get the GType for elements managed by the given factory. The type
can only be retrieved if the element factory is loaded, which can
be assured with
pluginFeatureLoad.
elementFactoryGetLongnameSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO String | the factory's long name |
Get the long name for the given factory.
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO String | the factory's class |
Get the class for the given factory.
elementFactoryGetDescriptionSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO String | the factory's description |
Get the description for the given factory.
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO String | the factory's author |
Get the author of the given factory.
elementFactoryGetNumPadTemplatesSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO Word | the number of |
Get the number of PadTemplates provided by the given factory.
elementFactoryGetURITypeSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO Int | the type of URIs supported by the factory |
Get the type of URIs supported by the given factory.
elementFactoryGetURIProtocolsSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO [String] | the supported protocols |
Get the list of protocols supported by the given factory.
elementFactoryHasInterfaceSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> String |
|
| -> IO Bool | true if the interface is implemented |
Check if the given factory implements the interface with the given name.
Since 0.10.14.
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> String |
|
| -> IO (Maybe Element) | the new element if it could be created,
otherwise |
Create a new element of the type supplied by the given factory. It will be given the name supplied.
Arguments
| :: String |
|
| -> Maybe String |
|
| -> IO (Maybe Element) | the new element if it could be created,
otherwise |
Create a new element of the type supplied by the named factory.
elementFactoryCanSinkCapsSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> Caps |
|
| -> IO Bool |
|
Check if the given factory can sink the given capabilities.
elementFactoryCanSrcCapsSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> Caps |
|
| -> IO Bool |
|
Check if the given factory can source the given capabilities.
elementFactoryGetPadTemplatesSource
Arguments
| :: ElementFactoryClass elementFactory | |
| => elementFactory |
|
| -> IO [PadTemplate] | the provided pad templates |
Get the pad templates provided by the given factory.