io.qt.widgets.QPushButton Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Command button
* Java wrapper for Qt class QPushButton
*/
public class QPushButton extends io.qt.widgets.QAbstractButton
{
@QtPropertyMember(enabled=false)
private Object __rcMenu = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPushButton.class);
/**
* See QPushButton:: QPushButton(QIcon, QString, QWidget*)
*/
public QPushButton(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text, io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, icon, text, parent);
}
private native static void initialize_native(QPushButton instance, io.qt.gui.QIcon icon, java.lang.String text, io.qt.widgets.QWidget parent);
/**
* See QPushButton:: QPushButton(QString, QWidget*)
*/
public QPushButton(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(QPushButton instance, java.lang.String text, io.qt.widgets.QWidget parent);
/**
* See QPushButton:: QPushButton(QWidget*)
*/
public QPushButton(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QPushButton instance, io.qt.widgets.QWidget parent);
/**
* See QPushButton:: autoDefault()const
*/
@QtPropertyReader(name="autoDefault")
@QtUninvokable
public final boolean autoDefault(){
return autoDefault_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean autoDefault_native_constfct(long __this__nativeId);
/**
* See QPushButton:: isDefault()const
*/
@QtPropertyReader(name="default")
@QtUninvokable
public final boolean isDefault(){
return isDefault_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDefault_native_constfct(long __this__nativeId);
/**
* See QPushButton:: isFlat()const
*/
@QtPropertyReader(name="flat")
@QtUninvokable
public final boolean isFlat(){
return isFlat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isFlat_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QMenu menu(){
return menu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QMenu menu_native_constfct(long __this__nativeId);
/**
* See QPushButton:: setAutoDefault(bool)
*/
@QtPropertyWriter(name="autoDefault")
@QtUninvokable
public final void setAutoDefault(boolean arg__1){
setAutoDefault_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setAutoDefault_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QPushButton:: setDefault(bool)
*/
@QtPropertyWriter(name="default")
@QtUninvokable
public final void setDefault(boolean arg__1){
setDefault_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setDefault_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QPushButton:: setFlat(bool)
*/
@QtPropertyWriter(name="flat")
@QtUninvokable
public final void setFlat(boolean arg__1){
setFlat_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setFlat_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QPushButton:: setMenu(QMenu*)
*/
@QtUninvokable
public final void setMenu(io.qt.widgets.@Nullable QMenu menu){
setMenu_native_QMenu_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(menu));
__rcMenu = menu;
}
@QtUninvokable
private native void setMenu_native_QMenu_ptr(long __this__nativeId, long menu);
/**
*
*/
public final void showMenu(){
showMenu_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void showMenu_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 arg__1){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget:: focusOutEvent(QFocusEvent*)
*/
@QtUninvokable
@Override
protected void focusOutEvent(io.qt.gui.@Nullable QFocusEvent arg__1){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1);
/**
* 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 QPushButton:: 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:: keyPressEvent(QKeyEvent*)
*/
@QtUninvokable
@Override
protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent arg__1){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long arg__1);
/**
* 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){
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 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);
/**
*
*/
@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 QPushButton(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QPushButton(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QPushButton instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QPushButton(io.qt.gui.QIcon, java.lang.String, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPushButton(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text) {
this(icon, text, (io.qt.widgets.QWidget)null);
}
/**
* Overloaded constructor for {@link #QPushButton(io.qt.gui.QPixmap, java.lang.String, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPushButton(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) {
this(icon, text, (io.qt.widgets.QWidget)null);
}
/**
* Overloaded constructor for {@link #QPushButton(io.qt.gui.QIcon, java.lang.String, io.qt.widgets.QWidget)}.
*/
public QPushButton(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text, io.qt.widgets.@Nullable QWidget parent) {
this(new io.qt.gui.QIcon(icon), text, parent);
}
/**
* Overloaded constructor for {@link #QPushButton(java.lang.String, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPushButton(java.lang.@NonNull String text) {
this(text, (io.qt.widgets.QWidget)null);
}
/**
* Overloaded constructor for {@link #QPushButton(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPushButton() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #autoDefault()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAutoDefault() {
return autoDefault();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isDefault()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDefault() {
return isDefault();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isFlat()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getFlat() {
return isFlat();
}
}