Wp.Port

g GObject.GInterface GObject.GInterface Wp.PipewireObject Wp.PipewireObject GObject.GInterface->Wp.PipewireObject GObject.Object GObject.Object Wp.Object Wp.Object GObject.Object->Wp.Object Wp.GlobalProxy Wp.GlobalProxy Wp.Port Wp.Port Wp.GlobalProxy->Wp.Port Wp.Proxy Wp.Proxy Wp.Object->Wp.Proxy Wp.PipewireObject->Wp.Port Wp.Proxy->Wp.GlobalProxy

Subclasses:

None

Methods

Inherited:

Wp.GlobalProxy (4), Wp.Proxy (4), Wp.Object (12), GObject.Object (37), Wp.PipewireObject (9)

Structs:

GObject.ObjectClass (5)

get_direction ()

Virtual Methods

Inherited:

Wp.Proxy (4), Wp.Object (4), GObject.Object (7), Wp.PipewireObject (7)

Properties

Inherited:

Wp.GlobalProxy (3), Wp.Proxy (2), Wp.Object (4), Wp.PipewireObject (3)

Signals

Inherited:

Wp.Proxy (4), GObject.Object (1), Wp.PipewireObject (1)

Fields

Inherited:

Wp.Proxy (4), GObject.Object (1), Wp.PipewireObject (1)

Class Details

class Wp.Port(**kwargs)
Bases:

Wp.GlobalProxy, Wp.PipewireObject

Abstract:

No

Structure:

Wp.PortClass

The Wp.Port class allows accessing the properties and methods of a PipeWire port object (struct pw_port). A Wp.Port is constructed internally when a new port appears on the PipeWire registry and it is made available through the Wp.ObjectManager API.

get_direction()
Returns:

the current direction of the port

Return type:

Wp.Direction

Gets the current direction of the port.

Requires Wp.ProxyFeatures.PIPEWIRE_OBJECT_FEATURE_INFO