GhostPad
Superclasses: ProxyPad
, Pad
, Object
, InitiallyUnowned
, Object
- Constructors:
GhostPad(**properties)
new(name:str=None, target:Gst.Pad) -> Gst.Pad or None
new_from_template(name:str=None, target:Gst.Pad, templ:Gst.PadTemplate) -> Gst.Pad or None
new_no_target(name:str=None, dir:Gst.PadDirection) -> Gst.Pad or None
new_no_target_from_template(name:str=None, templ:Gst.PadTemplate) -> Gst.Pad or None
Constructors
- class GhostPad
- classmethod new(name: str | None, target: Pad) Pad | None
Create a new ghostpad with
target
as the target. The direction will be taken from the target pad.target
must be unlinked.Will ref the target.
- Parameters:
name – the name of the new pad, or
None
to assign a default nametarget – the pad to ghost.
- classmethod new_from_template(name: str | None, target: Pad, templ: PadTemplate) Pad | None
Create a new ghostpad with
target
as the target. The direction will be taken from the target pad. The template used on the ghostpad will betemplate
.Will ref the target.
- Parameters:
name – the name of the new pad, or
None
to assign a default name.target – the pad to ghost.
templ – the
PadTemplate
to use on the ghostpad.
- classmethod new_no_target(name: str | None, dir: PadDirection) Pad | None
Create a new ghostpad without a target with the given direction. A target can be set on the ghostpad later with the
set_target()
function.The created ghostpad will not have a padtemplate.
- Parameters:
name – the name of the new pad, or
None
to assign a default name.dir – the direction of the ghostpad
- classmethod new_no_target_from_template(name: str | None, templ: PadTemplate) Pad | None
Create a new ghostpad based on
templ
, without setting a target. The direction will be taken from thetempl
.- Parameters:
name – the name of the new pad, or
None
to assign a default nametempl – the
PadTemplate
to create the ghostpad from.
Methods
- class GhostPad
- activate_mode_default(pad: Pad, parent: Object | None, mode: PadMode, active: bool) bool
Invoke the default activate mode function of a ghost pad.
- Parameters:
pad – the
Pad
to activate or deactivate.parent – the parent of
pad
orNone
mode – the requested activation mode
active – whether the pad should be active or not.
- construct() bool
Finish initialization of a newly allocated ghost pad.
This function is most useful in language bindings and when subclassing
GhostPad
; plugin and application developers normally will not call this function. Call this function directly after a call to g_object_new (GST_TYPE_GHOST_PAD, “direction”,dir
, …, NULL).Deprecated since version Unknown: This function is deprecated since 1.18 and does nothing anymore.
- internal_activate_mode_default(pad: Pad, parent: Object | None, mode: PadMode, active: bool) bool
Invoke the default activate mode function of a proxy pad that is owned by a ghost pad.
- Parameters:
pad – the
Pad
to activate or deactivate.parent – the parent of
pad
orNone
mode – the requested activation mode
active – whether the pad should be active or not.