gi-gst-1.0.19: 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.DebugCategory

Contents

Description

This is the struct that describes the categories. Once initialized with GST_DEBUG_CATEGORY_INIT, its values can't be changed anymore.

Synopsis

Exported types

newZeroDebugCategory :: MonadIO m => m DebugCategory Source #

Construct a DebugCategory struct initialized to zero.

Methods

free

debugCategoryFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DebugCategory

category: DebugCategory to free.

-> m () 

Removes and frees the category and all associated resources.

getColor

debugCategoryGetColor Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DebugCategory

category: a DebugCategory to get the color of.

-> m Word32

Returns: the color of the category.

Returns the color of a debug category used when printing output in this category.

getDescription

debugCategoryGetDescription Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DebugCategory

category: a DebugCategory to get the description of.

-> m Text

Returns: the description of the category.

Returns the description of a debug category.

getName

debugCategoryGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DebugCategory

category: a DebugCategory to get name of.

-> m Text

Returns: the name of the category.

Returns the name of a debug category.

getThreshold

debugCategoryGetThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DebugCategory

category: a DebugCategory to get threshold of.

-> m DebugLevel

Returns: the DebugLevel that is used as threshold.

Returns the threshold of a DebugCategory.

resetThreshold

debugCategoryResetThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DebugCategory

category: a DebugCategory to reset threshold of.

-> m () 

Resets the threshold of the category to the default level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message. Use this function to set the threshold back to where it was after using debugCategorySetThreshold.

setThreshold

debugCategorySetThreshold Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DebugCategory

category: a DebugCategory to set threshold of.

-> DebugLevel

level: the DebugLevel threshold to set.

-> m () 

Sets the threshold of the category to the given level. Debug information will only be output if the threshold is lower or equal to the level of the debugging message. > Do not use this function in production code, because other functions may > change the threshold of categories as side effect. It is however a nice > function to use when debugging (even from gdb).