ParamSpecPoolProtocol
public protocol ParamSpecPoolProtocol
A GParamSpecPool
maintains a collection of GParamSpecs
which can be
quickly accessed by owner and name.
The implementation of the GObject
property system uses such a pool to
store the GParamSpecs
of the properties all object types.
The ParamSpecPoolProtocol
protocol exposes the methods and properties of an underlying GParamSpecPool
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 ParamSpecPool
.
Alternatively, use ParamSpecPoolRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GParamSpecPool
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GParamSpecPool
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GParamSpecPool
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GParamSpecPool>! { get }
-
Required Initialiser for types conforming to
ParamSpecPoolProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
insert(pspec:
Extension methodownerType: ) Inserts a
GParamSpec
in the pool.Declaration
Swift
@inlinable func insert<ParamSpecT>(pspec: ParamSpecT, ownerType: GType) where ParamSpecT : ParamSpecProtocol
-
list(ownerType:
Extension methodnPspecsP: ) Gets an array of all
GParamSpecs
owned byowner_type
in the pool.Declaration
Swift
@inlinable func list(ownerType: GType, nPspecsP: UnsafeMutablePointer<guint>!) -> UnsafeMutablePointer<UnsafeMutablePointer<GParamSpec>?>!
-
listOwned(ownerType:
Extension method) Gets an
GList
of allGParamSpecs
owned byowner_type
in the pool.Declaration
Swift
@inlinable func listOwned(ownerType: GType) -> GLib.ListRef!
-
lookup(paramName:
Extension methodownerType: walkAncestors: ) Looks up a
GParamSpec
in the pool.Declaration
Swift
@inlinable func lookup(paramName: UnsafePointer<gchar>!, ownerType: GType, walkAncestors: Bool) -> GLibObject.ParamSpecRef!
-
remove(pspec:
Extension method) Removes a
GParamSpec
from the pool.Declaration
Swift
@inlinable func remove<ParamSpecT>(pspec: ParamSpecT) where ParamSpecT : ParamSpecProtocol