public struct ParamSpecRef : ParamSpecProtocol
ParamSpecRef type acts as a lightweight Swift reference to an underlying
It exposes methods that can operate on this data type through
ParamSpecRef only as an
unowned reference to an existing
GParamSpec is an object structure that encapsulates the metadata
required to specify parameters, such as e.g.
A property name consists of segments consisting of ASCII letters and
digits, separated by either the
_ character. The first
character of a property name must be a letter. These are the same rules as
for signal naming (see
When creating and looking up a
GParamSpec, either separator can be
used, but they cannot be mixed. Using
- is considerably more
efficient, and is the ‘canonical form’. Using
_ is discouraged.
Untyped pointer to the underlying `GParamSpec` instance.
For type-safe access, use the generated, typed pointer
public let ptr: UnsafeMutableRawPointer
Designated initialiser from the underlying
init(_ p: UnsafeMutablePointer<GParamSpec>)
Creates a new `GParamSpec` instance.
See canonical parameter names for details of the rules for
name. Names which violate these rules lead to undefined behaviour.
Beyond the name,
GParamSpecshave two more descriptive strings associated with them, the
nick, which should be suitable for use as a label for the property in a property editor, and the
blurb, which should be a somewhat longer description, suitable for e.g. a tooltip. The
blurbshould ideally be localized.
static func internal_(paramType param_type: GType, name: UnsafePointer<gchar>, nick: UnsafePointer<gchar>, blurb: UnsafePointer<gchar>, flags: ParamFlags) -> ParamSpecRef!
Create a parameter specification reference from a lookup table.
init?<P>(name: P, from pool: OpaquePointer!, ownerType: GType = .object, walkAncestors: Bool = true) where P : PropertyNameProtocol
property name to look up
lookup table to consult
type of the property owner (defaults to
falseto avoid checking ancestors (defaults to