PlugProtocol
public protocol PlugProtocol : ComponentProtocol, ObjectProtocol
See AtkSocket
The PlugProtocol protocol exposes the methods and properties of an underlying AtkPlug instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Plug.
Alternatively, use PlugRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkPluginstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
plug_ptrDefault implementationTyped pointer to the underlying
AtkPluginstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkPluginstance.Declaration
Swift
var plug_ptr: UnsafeMutablePointer<AtkPlug>! { get } -
Required Initialiser for types conforming to
PlugProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
bind(property:Extension methodto: _: flags: transformFrom: transformTo: ) Bind a
PlugPropertyNamesource property to a given target object.Declaration
Swift
@discardableResult @inlinable func bind<Q, T>(property source_property: PlugPropertyName, to target: T, _ target_property: Q, flags f: BindingFlags = .default, transformFrom transform_from: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }, transformTo transform_to: @escaping GLibObject.ValueTransformer = { $0.transform(destValue: $1) }) -> BindingRef! where Q : PropertyNameProtocol, T : ObjectProtocolParameters
source_propertythe source property to bind
targetthe target object to bind to
target_propertythe target property to bind to
flagsthe flags to pass to the
Bindingtransform_fromValueTransformerto use for forward transformationtransform_toValueTransformerto use for backwards transformationReturn Value
binding reference or
nilin case of an error -
get(property:Extension method) Get the value of a Plug property
Declaration
Swift
@inlinable func get(property: PlugPropertyName) -> GLibObject.ValueParameters
propertythe property to get the value for
Return Value
the value of the named property
-
set(property:Extension methodvalue: ) Set the value of a Plug property. Note that this will only have an effect on properties that are writable and not construct-only!
Declaration
Swift
@inlinable func set(property: PlugPropertyName, value v: GLibObject.Value)Parameters
propertythe property to get the value for
Return Value
the value of the named property
-
getId()Extension methodGets the unique ID of an
AtkPlugobject, which can be used to embed inside of anAtkSocketusingatk_socket_embed().Internally, this calls a class function that should be registered by the IPC layer (usually at-spi2-atk). The implementor of an
AtkPlugobject should call this function (after atk-bridge is loaded) and pass the value to the process implementing theAtkSocket, so it could embed the plug.Declaration
Swift
@inlinable func getId() -> String! -
set(child:Extension method) Sets
childas accessible child ofplugandplugas accessible parent ofchild.childcan be NULL.In some cases, one can not use the AtkPlug type directly as accessible object for the toplevel widget of the application. For instance in the gtk case, GtkPlugAccessible can not inherit both from GtkWindowAccessible and from AtkPlug. In such a case, one can create, in addition to the standard accessible object for the toplevel widget, an AtkPlug object, and make the former the child of the latter by calling
atk_plug_set_child().Declaration
Swift
@inlinable func set<ObjectT>(child: ObjectT) where ObjectT : ObjectProtocol -
idExtension methodGets the unique ID of an
AtkPlugobject, which can be used to embed inside of anAtkSocketusingatk_socket_embed().Internally, this calls a class function that should be registered by the IPC layer (usually at-spi2-atk). The implementor of an
AtkPlugobject should call this function (after atk-bridge is loaded) and pass the value to the process implementing theAtkSocket, so it could embed the plug.Declaration
Swift
@inlinable var id: String! { get } -
parentExtension methodUndocumented
Declaration
Swift
@inlinable var parent: AtkObject { get }
View on GitHub
Install in Dash
PlugProtocol Protocol Reference