io.qt.widgets.QCheckBox Maven / Gradle / Ivy
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QCheckBox.class);
/**
* See QCheckBox::stateChanged(int)
*/
public final Signal1<@io.qt.QtPrimitiveType Integer> stateChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QCheckBox(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QCheckBox() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QCheckBox::QCheckBox(QWidget*)
*/
public QCheckBox(io.qt.widgets.QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QCheckBox instance, io.qt.widgets.QWidget parent);
/**
* Overloaded constructor for {@link #QCheckBox(java.lang.String, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QCheckBox(java.lang.String text) {
this(text, (io.qt.widgets.QWidget)null);
}
/**
* See QCheckBox::QCheckBox(QString,QWidget*)
*/
public QCheckBox(java.lang.String text, io.qt.widgets.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::checkState()const
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.CheckState checkState(){
return io.qt.core.Qt.CheckState.resolve(checkState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int checkState_native_constfct(long __this__nativeId);
/**
* See QCheckBox::isTristate()const
*/
@io.qt.QtPropertyReader(name="tristate")
@io.qt.QtUninvokable
public final boolean isTristate(){
return isTristate_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isTristate_native_constfct(long __this__nativeId);
/**
* See QCheckBox::setCheckState(Qt::CheckState)
*/
@io.qt.QtUninvokable
public final void setCheckState(io.qt.core.Qt.CheckState state){
setCheckState_native_Qt_CheckState(QtJambi_LibraryUtilities.internal.nativeId(this), state.value());
}
@io.qt.QtUninvokable
private native void setCheckState_native_Qt_CheckState(long __this__nativeId, int state);
/**
* Overloaded function for {@link #setTristate(boolean)}
* with y = true
.
*/
@io.qt.QtUninvokable
public final void setTristate() {
setTristate((boolean)true);
}
/**
* See QCheckBox::setTristate(bool)
*/
@io.qt.QtPropertyWriter(name="tristate")
@io.qt.QtUninvokable
public final void setTristate(boolean y){
setTristate_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), y);
}
@io.qt.QtUninvokable
private native void setTristate_native_bool(long __this__nativeId, boolean y);
/**
* See QAbstractButton::checkStateSet()
*/
@io.qt.QtUninvokable
protected void checkStateSet(){
checkStateSet_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void checkStateSet_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractButton::hitButton(QPoint)const
*/
@io.qt.QtUninvokable
protected boolean hitButton(io.qt.core.QPoint pos){
return hitButton_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@io.qt.QtUninvokable
private native boolean hitButton_native_cref_QPoint_constfct(long __this__nativeId, long pos);
/**
* See QCheckBox::initStyleOption(QStyleOptionButton*)const
*/
@io.qt.QtUninvokable
protected void initStyleOption(io.qt.widgets.QStyleOptionButton option){
initStyleOption_native_QStyleOptionButton_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option);
}
@io.qt.QtUninvokable
private native void initStyleOption_native_QStyleOptionButton_ptr_constfct(long __this__nativeId, io.qt.widgets.QStyleOptionButton option);
/**
* See QWidget::minimumSizeHint()const
*/
@io.qt.QtUninvokable
public io.qt.core.QSize minimumSizeHint(){
return minimumSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize minimumSizeHint_native_constfct(long __this__nativeId);
/**
* See QWidget::mouseMoveEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseMoveEvent(io.qt.gui.QMouseEvent arg__1){
mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QAbstractButton::nextCheckState()
*/
@io.qt.QtUninvokable
protected void nextCheckState(){
nextCheckState_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void nextCheckState_native(long __this__nativeId);
/**
* See QWidget::paintEvent(QPaintEvent*)
*/
@io.qt.QtUninvokable
protected void paintEvent(io.qt.gui.QPaintEvent arg__1){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.core.QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QCheckBox(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QCheckBox(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QCheckBox instance, QDeclarativeConstructor constructor);
}