Class ParamSpecOverride

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ParamSpecOverride extends 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
  • Constructor Details

    • ParamSpecOverride

      public ParamSpecOverride(MemorySegment address)
      Create a ParamSpecOverride instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

      public static Type getType()
      Get the GType of the GParamSpecOverride class.
      Returns:
      always Types.PARAM
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected ParamSpecOverride asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class ParamSpec
      Returns:
      the instance as if it were its parent type