gi-gst-1.0.23: GStreamer bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gst.Structs.AllocationParams

Description

Parameters to control the allocation of memory

Synopsis

Exported types

newtype AllocationParams Source #

Memory-managed wrapper type.

Constructors

AllocationParams (ManagedPtr AllocationParams) 

Instances

Instances details
Eq AllocationParams Source # 
Instance details

Defined in GI.Gst.Structs.AllocationParams

GBoxed AllocationParams Source # 
Instance details

Defined in GI.Gst.Structs.AllocationParams

ManagedPtrNewtype AllocationParams Source # 
Instance details

Defined in GI.Gst.Structs.AllocationParams

TypedObject AllocationParams Source # 
Instance details

Defined in GI.Gst.Structs.AllocationParams

Methods

glibType :: IO GType

IsGValue AllocationParams Source #

Convert AllocationParams to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gst.Structs.AllocationParams

Methods

toGValue :: AllocationParams -> IO GValue

fromGValue :: GValue -> IO AllocationParams

HasParentTypes AllocationParams Source # 
Instance details

Defined in GI.Gst.Structs.AllocationParams

tag ~ 'AttrSet => Constructible AllocationParams tag Source # 
Instance details

Defined in GI.Gst.Structs.AllocationParams

Methods

new :: MonadIO m => (ManagedPtr AllocationParams -> AllocationParams) -> [AttrOp AllocationParams tag] -> m AllocationParams

type ParentTypes AllocationParams Source # 
Instance details

Defined in GI.Gst.Structs.AllocationParams

type ParentTypes AllocationParams = '[] :: [Type]

newZeroAllocationParams :: MonadIO m => m AllocationParams Source #

Construct a AllocationParams struct initialized to zero.

Methods

Overloaded methods

copy

allocationParamsCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AllocationParams

params: a AllocationParams

-> m (Maybe AllocationParams)

Returns: a new #AllocationParams, free with allocationParamsFree.

Create a copy of params.

Free-function: gst_allocation_params_free

free

allocationParamsFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AllocationParams

params: a AllocationParams

-> m () 

Free params

init

allocationParamsInit Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> AllocationParams

params: a AllocationParams

-> m () 

Initialize params to its default values

Properties

align

the desired alignment of the memory

getAllocationParamsAlign :: MonadIO m => AllocationParams -> m Word64 Source #

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

get allocationParams #align

setAllocationParamsAlign :: MonadIO m => AllocationParams -> Word64 -> m () Source #

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

set allocationParams [ #align := value ]

flags

flags to control allocation

getAllocationParamsFlags :: MonadIO m => AllocationParams -> m [MemoryFlags] Source #

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

get allocationParams #flags

setAllocationParamsFlags :: MonadIO m => AllocationParams -> [MemoryFlags] -> m () Source #

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

set allocationParams [ #flags := value ]

padding

the desired padding

getAllocationParamsPadding :: MonadIO m => AllocationParams -> m Word64 Source #

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

get allocationParams #padding

setAllocationParamsPadding :: MonadIO m => AllocationParams -> Word64 -> m () Source #

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

set allocationParams [ #padding := value ]

prefix

the desired prefix

getAllocationParamsPrefix :: MonadIO m => AllocationParams -> m Word64 Source #

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

get allocationParams #prefix

setAllocationParamsPrefix :: MonadIO m => AllocationParams -> Word64 -> m () Source #

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

set allocationParams [ #prefix := value ]