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

io.qt.widgets.QButtonGroup Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Container to organize groups of button widgets

*

Java wrapper for Qt class QButtonGroup

*/ public class QButtonGroup extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private java.util.Collection __rcButtons; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QButtonGroup.class); /** *

See QButtonGroup::buttonClicked(QAbstractButton*)

*/ public final @NonNull Signal1 buttonClicked = new Signal1<>(); /** *

See QButtonGroup::buttonPressed(QAbstractButton*)

*/ public final @NonNull Signal1 buttonPressed = new Signal1<>(); /** *

See QButtonGroup::buttonReleased(QAbstractButton*)

*/ public final @NonNull Signal1 buttonReleased = new Signal1<>(); /** *

See QButtonGroup::buttonToggled(QAbstractButton*,bool)

*/ public final @NonNull Signal2 buttonToggled = new Signal2<>(); /** *

See QButtonGroup::idClicked(int)

*/ public final @NonNull Signal1 idClicked = new Signal1<>(); /** *

See QButtonGroup::idPressed(int)

*/ public final @NonNull Signal1 idPressed = new Signal1<>(); /** *

See QButtonGroup::idReleased(int)

*/ public final @NonNull Signal1 idReleased = new Signal1<>(); /** *

See QButtonGroup::idToggled(int,bool)

*/ public final @NonNull Signal2 idToggled = new Signal2<>(); /** *

See QButtonGroup::QButtonGroup(QObject*)

*/ public QButtonGroup(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QButtonGroup instance, io.qt.core.QObject parent); /** *

See QButtonGroup::addButton(QAbstractButton*,int)

*/ @QtUninvokable public final void addButton(io.qt.widgets.@StrictNonNull QAbstractButton arg__1, int id){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); addButton_native_QAbstractButton_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), id); if(__rcButtons==null) __rcButtons = QtJambi_LibraryUtilities.internal.newRCList(); __rcButtons.add(arg__1); } @QtUninvokable private native void addButton_native_QAbstractButton_ptr_int(long __this__nativeId, long arg__1, int id); /** *

See QButtonGroup::button(int)const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QAbstractButton button(int id){ return button_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), id); } @QtUninvokable private native io.qt.widgets.QAbstractButton button_native_int_constfct(long __this__nativeId, int id); /** *

See QButtonGroup::buttons()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList buttons(){ return buttons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList buttons_native_constfct(long __this__nativeId); /** *

See QButtonGroup::checkedButton()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QAbstractButton checkedButton(){ return checkedButton_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QAbstractButton checkedButton_native_constfct(long __this__nativeId); /** *

See QButtonGroup::checkedId()const

*/ @QtUninvokable public final int checkedId(){ return checkedId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int checkedId_native_constfct(long __this__nativeId); /** *

See QButtonGroup::exclusive()const

*/ @QtPropertyReader(name="exclusive") @QtUninvokable public final boolean exclusive(){ return exclusive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean exclusive_native_constfct(long __this__nativeId); /** *

See QButtonGroup::id(QAbstractButton*)const

*/ @QtUninvokable public final int id(io.qt.widgets.@Nullable QAbstractButton button){ return id_native_QAbstractButton_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(button)); } @QtUninvokable private native int id_native_QAbstractButton_ptr_constfct(long __this__nativeId, long button); /** *

See QButtonGroup::removeButton(QAbstractButton*)

*/ @QtUninvokable public final void removeButton(io.qt.widgets.@StrictNonNull QAbstractButton arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); removeButton_native_QAbstractButton_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); while (__rcButtons != null && __rcButtons.remove(arg__1)) ; } @QtUninvokable private native void removeButton_native_QAbstractButton_ptr(long __this__nativeId, long arg__1); /** *

See QButtonGroup::setExclusive(bool)

*/ @QtPropertyWriter(name="exclusive") @QtUninvokable public final void setExclusive(boolean arg__1){ setExclusive_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setExclusive_native_bool(long __this__nativeId, boolean arg__1); /** *

See QButtonGroup::setId(QAbstractButton*,int)

*/ @QtUninvokable public final void setId(io.qt.widgets.@Nullable QAbstractButton button, int id){ setId_native_QAbstractButton_ptr_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(button), id); } @QtUninvokable private native void setId_native_QAbstractButton_ptr_int(long __this__nativeId, long button, int id); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QButtonGroup(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QButtonGroup(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QButtonGroup instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QButtonGroup(io.qt.core.QObject)} * with parent = null.

*/ public QButtonGroup() { this((io.qt.core.QObject)null); } /** *

Overloaded function for {@link #addButton(io.qt.widgets.QAbstractButton, int)} * with id = -1.

*/ @QtUninvokable public final void addButton(io.qt.widgets.@StrictNonNull QAbstractButton arg__1) { addButton(arg__1, (int)-1); } /** * @hidden *

Kotlin property getter. In Java use {@link #exclusive()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getExclusive() { return exclusive(); } }