ParamSpecObject

open class ParamSpecObject(pointer: <Error class: unknown class><<Error class: unknown class>>) : ParamSpec

A #GParamSpec derived structure that contains the meta data for object properties.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Properties

Link copied to clipboard
val gobjectParamSpecObjectPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getBlurb(): String?

Get the short description of a #GParamSpec.

Link copied to clipboard

Gets the default value of @pspec as a pointer to a #GValue.

Link copied to clipboard
open fun getName(): String

Get the name of a #GParamSpec.

Link copied to clipboard
open fun getNameQuark(): <Error class: unknown class>

Gets the GQuark for the name.

Link copied to clipboard
open fun getNick(): String

Get the nickname of a #GParamSpec.

Link copied to clipboard
open fun getQdata(quark: <Error class: unknown class>): <Error class: unknown class>?

Gets back user data pointers stored via g_param_spec_set_qdata().

Link copied to clipboard

If the paramspec redirects operations to another paramspec, returns that paramspec. Redirect is used typically for providing a new implementation of a property in a derived type while preserving all the properties from the parent type. Redirection is established by creating a property of type #GParamSpecOverride. See g_object_class_override_property() for an example of the use of this capability.

Link copied to clipboard
open fun ref(): ParamSpec

Increments the reference count of @pspec.

Link copied to clipboard
open fun refSink(): ParamSpec

Convenience function to ref and sink a #GParamSpec.

Link copied to clipboard
open fun setQdata(quark: <Error class: unknown class>, data: <Error class: unknown class>? = null)

Sets an opaque, named pointer on a #GParamSpec. The name is specified through a #GQuark (retrieved e.g. via g_quark_from_static_string()), and the pointer can be gotten back from the @pspec with g_param_spec_get_qdata(). Setting a previously set user data pointer, overrides (frees) the old pointer set, using null as pointer essentially removes the data stored.

Link copied to clipboard
open fun sink()

The initial reference count of a newly created #GParamSpec is 1, even though no one has explicitly called g_param_spec_ref() on it yet. So the initial reference count is flagged as "floating", until someone calls g_param_spec_ref (pspec); g_param_spec_sink (pspec); in sequence on it, taking over the initial reference count (thus ending up with a @pspec that has a reference count of 1 still, but is not flagged "floating" anymore).

Link copied to clipboard
open fun stealQdata(quark: <Error class: unknown class>): <Error class: unknown class>?

Gets back user data pointers stored via g_param_spec_set_qdata() and removes the @data from @pspec without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier.

Link copied to clipboard
open fun unref()

Decrements the reference count of a @pspec.