io.qt.widgets.QAbstractButton Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* The abstract base class of button widgets, providing functionality common to buttons
* Java wrapper for Qt class QAbstractButton
*/
public abstract class QAbstractButton extends io.qt.widgets.QWidget
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractButton.class);
@NativeAccess
private static final class ConcreteWrapper extends QAbstractButton {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
protected void paintEvent(io.qt.gui.@Nullable QPaintEvent e){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long e);
}
/**
* See QAbstractButton:: clicked(bool)
*/
public final @NonNull Signal1Default1 clicked = new Signal1Default1<>(()->false);
/**
* See QAbstractButton:: pressed()
*/
public final @NonNull Signal0 pressed = new Signal0();
/**
* See QAbstractButton:: released()
*/
public final @NonNull Signal0 released = new Signal0();
/**
* See QAbstractButton:: toggled(bool)
*/
@QtPropertyNotify(name="checked")
public final @NonNull Signal1 toggled = new Signal1<>();
/**
* See QAbstractButton:: QAbstractButton(QWidget*)
*/
public QAbstractButton(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAbstractButton instance, io.qt.widgets.QWidget parent);
/**
* See QAbstractButton:: animateClick()
*/
public final void animateClick(){
animateClick_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void animateClick_native(long __this__nativeId);
/**
* See QAbstractButton:: autoExclusive()const
*/
@QtPropertyReader(name="autoExclusive")
@QtUninvokable
public final boolean autoExclusive(){
return autoExclusive_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean autoExclusive_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: autoRepeat()const
*/
@QtPropertyReader(name="autoRepeat")
@QtUninvokable
public final boolean autoRepeat(){
return autoRepeat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean autoRepeat_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: autoRepeatDelay()const
*/
@QtPropertyReader(name="autoRepeatDelay")
@QtUninvokable
public final int autoRepeatDelay(){
return autoRepeatDelay_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int autoRepeatDelay_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: autoRepeatInterval()const
*/
@QtPropertyReader(name="autoRepeatInterval")
@QtUninvokable
public final int autoRepeatInterval(){
return autoRepeatInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int autoRepeatInterval_native_constfct(long __this__nativeId);
/**
*
*/
public final void click(){
click_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void click_native(long __this__nativeId);
/**
* See QAbstractButton:: group()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QButtonGroup group(){
return group_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QButtonGroup group_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: icon()const
*/
@QtPropertyReader(name="icon")
@QtUninvokable
public final io.qt.gui.@NonNull QIcon icon(){
return icon_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QIcon icon_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: iconSize()const
*/
@QtPropertyReader(name="iconSize")
@QtUninvokable
public final io.qt.core.@NonNull QSize iconSize(){
return iconSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize iconSize_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: isCheckable()const
*/
@QtPropertyReader(name="checkable")
@QtUninvokable
public final boolean isCheckable(){
return isCheckable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isCheckable_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: isChecked()const
*/
@QtPropertyReader(name="checked")
@QtPropertyUser
@QtUninvokable
public final boolean isChecked(){
return isChecked_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isChecked_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: isDown()const
*/
@QtPropertyReader(name="down")
@QtPropertyDesignable("false")
@QtUninvokable
public final boolean isDown(){
return isDown_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDown_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: setAutoExclusive(bool)
*/
@QtPropertyWriter(name="autoExclusive")
@QtUninvokable
public final void setAutoExclusive(boolean arg__1){
setAutoExclusive_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setAutoExclusive_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton:: setAutoRepeat(bool)
*/
@QtPropertyWriter(name="autoRepeat")
@QtUninvokable
public final void setAutoRepeat(boolean arg__1){
setAutoRepeat_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setAutoRepeat_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton:: setAutoRepeatDelay(int)
*/
@QtPropertyWriter(name="autoRepeatDelay")
@QtUninvokable
public final void setAutoRepeatDelay(int arg__1){
setAutoRepeatDelay_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setAutoRepeatDelay_native_int(long __this__nativeId, int arg__1);
/**
* See QAbstractButton:: setAutoRepeatInterval(int)
*/
@QtPropertyWriter(name="autoRepeatInterval")
@QtUninvokable
public final void setAutoRepeatInterval(int arg__1){
setAutoRepeatInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setAutoRepeatInterval_native_int(long __this__nativeId, int arg__1);
/**
* See QAbstractButton:: setCheckable(bool)
*/
@QtPropertyWriter(name="checkable")
@QtUninvokable
public final void setCheckable(boolean arg__1){
setCheckable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setCheckable_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton:: setChecked(bool)
*/
@QtPropertyWriter(name="checked")
public final void setChecked(boolean arg__1){
setChecked_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native void setChecked_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton:: setDown(bool)
*/
@QtPropertyWriter(name="down")
@QtUninvokable
public final void setDown(boolean arg__1){
setDown_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setDown_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QAbstractButton:: setIcon(QIcon)
*/
@QtPropertyWriter(name="icon")
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* See QAbstractButton:: setIconSize(QSize)
*/
@QtPropertyWriter(name="iconSize")
public final void setIconSize(io.qt.core.@NonNull QSize size){
setIconSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
private native void setIconSize_native_cref_QSize(long __this__nativeId, long size);
/**
* See QAbstractButton:: setShortcut(QKeySequence)
*/
@QtPropertyWriter(name="shortcut")
@QtUninvokable
public final void setShortcut(io.qt.gui.@NonNull QKeySequence key){
setShortcut_native_cref_QKeySequence(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key));
}
@QtUninvokable
private native void setShortcut_native_cref_QKeySequence(long __this__nativeId, long key);
/**
* See QAbstractButton:: setText(QString)
*/
@QtPropertyWriter(name="text")
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See QAbstractButton:: shortcut()const
*/
@QtPropertyReader(name="shortcut")
@QtUninvokable
public final io.qt.gui.@NonNull QKeySequence shortcut(){
return shortcut_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QKeySequence shortcut_native_constfct(long __this__nativeId);
/**
* See QAbstractButton:: text()const
*/
@QtPropertyReader(name="text")
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
*
*/
public final void toggle(){
toggle_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void toggle_native(long __this__nativeId);
/**
* See QWidget:: changeEvent(QEvent*)
*/
@QtUninvokable
@Override
protected void changeEvent(io.qt.core.@Nullable QEvent e){
changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractButton:: checkStateSet()
*/
@QtUninvokable
protected void checkStateSet(){
checkStateSet_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void checkStateSet_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
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 QWidget:: focusInEvent(QFocusEvent*)
*/
@QtUninvokable
@Override
protected void focusInEvent(io.qt.gui.@Nullable QFocusEvent e){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: focusOutEvent(QFocusEvent*)
*/
@QtUninvokable
@Override
protected void focusOutEvent(io.qt.gui.@Nullable QFocusEvent e){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractButton:: hitButton(QPoint)const
*/
@QtUninvokable
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 QWidget:: keyPressEvent(QKeyEvent*)
*/
@QtUninvokable
@Override
protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent e){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: keyReleaseEvent(QKeyEvent*)
*/
@QtUninvokable
@Override
protected void keyReleaseEvent(io.qt.gui.@Nullable QKeyEvent e){
keyReleaseEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void keyReleaseEvent_native_QKeyEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: mouseMoveEvent(QMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseMoveEvent(io.qt.gui.@Nullable QMouseEvent e){
mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: mousePressEvent(QMouseEvent*)
*/
@QtUninvokable
@Override
protected void mousePressEvent(io.qt.gui.@Nullable QMouseEvent e){
mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: mouseReleaseEvent(QMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseReleaseEvent(io.qt.gui.@Nullable QMouseEvent e){
mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractButton:: nextCheckState()
*/
@QtUninvokable
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 abstract void paintEvent(io.qt.gui.@Nullable QPaintEvent e);
@QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long e);
/**
* See QObject:: timerEvent(QTimerEvent*)
*/
@QtUninvokable
@Override
protected void timerEvent(io.qt.core.@Nullable QTimerEvent e){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long e);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QAbstractButton(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QAbstractButton(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QAbstractButton instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QAbstractButton(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QAbstractButton() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #autoExclusive()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAutoExclusive() {
return autoExclusive();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #autoRepeat()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAutoRepeat() {
return autoRepeat();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #autoRepeatDelay()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getAutoRepeatDelay() {
return autoRepeatDelay();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #autoRepeatInterval()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getAutoRepeatInterval() {
return autoRepeatInterval();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #icon()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QIcon getIcon() {
return icon();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #iconSize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QSize getIconSize() {
return iconSize();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isCheckable()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getCheckable() {
return isCheckable();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isChecked()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getChecked() {
return isChecked();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isDown()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDown() {
return isDown();
}
/**
* Overloaded function for {@link #setIcon(io.qt.gui.QIcon)}.
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QPixmap icon) {
setIcon(new io.qt.gui.QIcon(icon));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(java.lang.@NonNull String key) {
setShortcut(new io.qt.gui.QKeySequence(key));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(int key) {
setShortcut(new io.qt.gui.QKeySequence(key));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(io.qt.gui.@NonNull QKeyCombination key) {
setShortcut(new io.qt.gui.QKeySequence(key));
}
/**
* Overloaded function for {@link #setShortcut(io.qt.gui.QKeySequence)}.
*/
@QtUninvokable
public final void setShortcut(io.qt.gui.QKeySequence.@NonNull StandardKey key) {
setShortcut(new io.qt.gui.QKeySequence(key));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #shortcut()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QKeySequence getShortcut() {
return shortcut();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #text()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getText() {
return text();
}
}