ParamSpecOverride

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

A #GParamSpec derived structure that redirects operations to other types of #GParamSpec.

All operations other than getting or setting the value are redirected, including accessing the nick and blurb, validating a value, and so forth.

See g_param_spec_get_redirect_target() for retrieving the overridden property. #GParamSpecOverride is used in implementing g_object_class_override_property(), and will not be directly useful unless you are implementing a new base type similar to GObject.

Since

2.4

Constructors

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

Properties

Link copied to clipboard
val gobjectParamSpecOverridePointer: <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

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 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).