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

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

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

import io.qt.*;


/**
 * 

Checkbox with a text label

*

Java wrapper for Qt class QCheckBox

*/ public class QCheckBox extends io.qt.widgets.QAbstractButton { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QCheckBox.class); /** *

See QCheckBox::checkStateChanged(Qt::CheckState)

*

This signal was introduced in Qt 6.7.

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

See QCheckBox::stateChanged(int)

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

See QCheckBox::QCheckBox(QString,QWidget*)

*/ public QCheckBox(java.lang.@NonNull String text, io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, text, parent); } private native static void initialize_native(QCheckBox instance, java.lang.String text, io.qt.widgets.QWidget parent); /** *

See QCheckBox::QCheckBox(QWidget*)

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

See QCheckBox::checkState()const

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull CheckState checkState(){ return io.qt.core.Qt.CheckState.resolve(checkState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int checkState_native_constfct(long __this__nativeId); /** *

See QCheckBox::isTristate()const

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

See QCheckBox::setCheckState(Qt::CheckState)

*/ @QtUninvokable public final void setCheckState(io.qt.core.Qt.@NonNull CheckState state){ setCheckState_native_Qt_CheckState(QtJambi_LibraryUtilities.internal.nativeId(this), state.value()); } @QtUninvokable private native void setCheckState_native_Qt_CheckState(long __this__nativeId, int state); /** *

See QCheckBox::setTristate(bool)

*/ @QtPropertyWriter(name="tristate") @QtUninvokable public final void setTristate(boolean y){ setTristate_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), y); } @QtUninvokable private native void setTristate_native_bool(long __this__nativeId, boolean y); /** *

See QAbstractButton::checkStateSet()

*/ @QtUninvokable @Override protected void checkStateSet(){ checkStateSet_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void checkStateSet_native(long __this__nativeId); /** *

See QObject::event(QEvent*)

*/ @QtUninvokable @Override public boolean event(io.qt.core.@Nullable QEvent e){ java.util.Objects.requireNonNull(e, "Argument 'e': null not expected."); return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long e); /** *

See QAbstractButton::hitButton(QPoint)const

*/ @QtUninvokable @Override protected boolean hitButton(io.qt.core.@NonNull QPoint pos){ return hitButton_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos)); } @QtUninvokable private native boolean hitButton_native_cref_QPoint_constfct(long __this__nativeId, long pos); /** *

See QCheckBox::initStyleOption(QStyleOptionButton*)const

*/ @QtUninvokable protected void initStyleOption(io.qt.widgets.@Nullable QStyleOptionButton option){ initStyleOption_native_QStyleOptionButton_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option)); } @QtUninvokable private native void initStyleOption_native_QStyleOptionButton_ptr_constfct(long __this__nativeId, long option); /** *

See QWidget::minimumSizeHint()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QSize minimumSizeHint(){ return minimumSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize minimumSizeHint_native_constfct(long __this__nativeId); /** *

See QWidget::mouseMoveEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mouseMoveEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QAbstractButton::nextCheckState()

*/ @QtUninvokable @Override protected void nextCheckState(){ nextCheckState_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void nextCheckState_native(long __this__nativeId); /** *

See QWidget::paintEvent(QPaintEvent*)

*/ @QtUninvokable @Override protected void paintEvent(io.qt.gui.@Nullable QPaintEvent arg__1){ paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::sizeHint()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QSize sizeHint(){ return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QCheckBox(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QCheckBox(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QCheckBox instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QCheckBox(java.lang.String, io.qt.widgets.QWidget)} * with parent = null.

*/ public QCheckBox(java.lang.@NonNull String text) { this(text, (io.qt.widgets.QWidget)null); } /** *

Overloaded constructor for {@link #QCheckBox(io.qt.widgets.QWidget)} * with parent = null.

*/ public QCheckBox() { this((io.qt.widgets.QWidget)null); } /** * @hidden *

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

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

Overloaded function for {@link #setTristate(boolean)} * with y = true.

*/ @QtUninvokable public final void setTristate() { setTristate((boolean)true); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy