gi-gst-1.0.18: GStreamer bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gst.Structs.StaticPadTemplate

Contents

Description

Structure describing the StaticPadTemplate.

Synopsis

Exported types

newZeroStaticPadTemplate :: MonadIO m => m StaticPadTemplate Source #

Construct a StaticPadTemplate struct initialized to zero.

Methods

get

staticPadTemplateGet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> StaticPadTemplate

padTemplate: the static pad template

-> m (Maybe PadTemplate)

Returns: a new PadTemplate.

Converts a StaticPadTemplate into a PadTemplate.

getCaps

staticPadTemplateGetCaps Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> StaticPadTemplate

templ: a StaticPadTemplate to get capabilities of.

-> m Caps

Returns: the Caps of the static pad template. Unref after usage. Since the core holds an additional ref to the returned caps, use gst_caps_make_writable() on the returned caps to modify it.

Gets the capabilities of the static pad template.

Properties

direction

the direction of the template

getStaticPadTemplateDirection :: MonadIO m => StaticPadTemplate -> m PadDirection Source #

Get the value of the “direction” field. When overloading is enabled, this is equivalent to

get staticPadTemplate #direction

setStaticPadTemplateDirection :: MonadIO m => StaticPadTemplate -> PadDirection -> m () Source #

Set the value of the “direction” field. When overloading is enabled, this is equivalent to

set staticPadTemplate [ #direction := value ]

nameTemplate

the name of the template

clearStaticPadTemplateNameTemplate :: MonadIO m => StaticPadTemplate -> m () Source #

Set the value of the “name_template” field to Nothing. When overloading is enabled, this is equivalent to

clear #nameTemplate

getStaticPadTemplateNameTemplate :: MonadIO m => StaticPadTemplate -> m (Maybe Text) Source #

Get the value of the “name_template” field. When overloading is enabled, this is equivalent to

get staticPadTemplate #nameTemplate

setStaticPadTemplateNameTemplate :: MonadIO m => StaticPadTemplate -> CString -> m () Source #

Set the value of the “name_template” field. When overloading is enabled, this is equivalent to

set staticPadTemplate [ #nameTemplate := value ]

presence

the presence of the template

getStaticPadTemplatePresence :: MonadIO m => StaticPadTemplate -> m PadPresence Source #

Get the value of the “presence” field. When overloading is enabled, this is equivalent to

get staticPadTemplate #presence

setStaticPadTemplatePresence :: MonadIO m => StaticPadTemplate -> PadPresence -> m () Source #

Set the value of the “presence” field. When overloading is enabled, this is equivalent to

set staticPadTemplate [ #presence := value ]

staticCaps

the caps of the template.

getStaticPadTemplateStaticCaps :: MonadIO m => StaticPadTemplate -> m StaticCaps Source #

Get the value of the “static_caps” field. When overloading is enabled, this is equivalent to

get staticPadTemplate #staticCaps