All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gnome.gobject.ParamSpecLong Maven / Gradle / Ivy

There is a newer version: 0.11.2
Show newest version
/* Java-GI - Java language bindings for GObject-Introspection-based libraries
 * Copyright (C) 2022-2023 Jan-Willem Harmannij
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, see .
 */

 /* This file has been generated with Java-GI.
  * Do not edit this file directly!
  * Visit https://jwharm.github.io/java-gi for more information.
  */

package org.gnome.gobject;

import io.github.jwharm.javagi.gobject.*;
import io.github.jwharm.javagi.gobject.types.*;
import io.github.jwharm.javagi.base.*;
import io.github.jwharm.javagi.interop.*;
import java.lang.foreign.*;
import java.lang.invoke.*;
import org.jetbrains.annotations.*;

/**
 * A {@link ParamSpec} derived structure that contains the meta data for long integer properties.
 */
public class ParamSpecLong extends org.gnome.gobject.ParamSpec {
    
    /**
     * Create a ParamSpecLong proxy instance for the provided memory address.
     * @param address the memory address of the native object
     */
    public ParamSpecLong(MemorySegment address) {
        super(address);
    }
    
    static {
        GObjects.javagi$ensureInitialized();
    }
    
    /**
     * The memory layout of the native struct.
     * @return the memory layout
     */
    public static MemoryLayout getMemoryLayout() {
        return MemoryLayout.structLayout(
            org.gnome.gobject.ParamSpec.getMemoryLayout().withName("parent_instance"),
            ValueLayout.JAVA_INT.withName("minimum"),
            ValueLayout.JAVA_INT.withName("maximum"),
            ValueLayout.JAVA_INT.withName("default_value")
        ).withName("GParamSpecLong");
    }
    
    /**
     * Returns this instance as if it were its parent type. This is mostly synonymous to the Java
     * {@code super} keyword, but will set the native typeclass function pointers to the parent
     * type. When overriding a native virtual method in Java, "chaining up" with
     * {@code super.methodName()} doesn't work, because it invokes the overridden function pointer
     * again. To chain up, call {@code asParent().methodName()}. This will call the native function
     * pointer of this virtual method in the typeclass of the parent type.
     */
    public org.gnome.gobject.ParamSpecLong asParent() {
        org.gnome.gobject.ParamSpecLong _parent = new org.gnome.gobject.ParamSpecLong(handle());
        _parent.callParent(true);
        return _parent;
    }
    
    /**
     * Get the GType of the GParamSpecLong class.
     * @return the GType */
    public static org.gnome.glib.Type getType() {
        return Types.PARAM;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy