io.qt.widgets.QPushButton Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* Command button
* Java wrapper for Qt class QPushButton
*/
public class QPushButton extends io.qt.widgets.QAbstractButton
{
@io.qt.QtPropertyMember(enabled=false)
private Object __rcMenu = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QPushButton.class);
/**
* Overloaded constructor for {@link #QPushButton(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPushButton() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QPushButton::QPushButton(QWidget*)
*/
public QPushButton(io.qt.widgets.QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QPushButton instance, io.qt.widgets.QWidget parent);
/**
* Overloaded constructor for {@link #QPushButton(io.qt.gui.QIcon, java.lang.String, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPushButton(io.qt.gui.QIcon icon, java.lang.String text) {
this(icon, text, (io.qt.widgets.QWidget)null);
}
/**
* See QPushButton::QPushButton(QIcon,QString,QWidget*)
*/
public QPushButton(io.qt.gui.QIcon icon, java.lang.String text, io.qt.widgets.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);
/**
* Overloaded constructor for {@link #QPushButton(java.lang.String, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QPushButton(java.lang.String text) {
this(text, (io.qt.widgets.QWidget)null);
}
/**
* See QPushButton::QPushButton(QString,QWidget*)
*/
public QPushButton(java.lang.String text, io.qt.widgets.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::autoDefault()const
*/
@io.qt.QtPropertyReader(name="autoDefault")
@io.qt.QtUninvokable
public final boolean autoDefault(){
return autoDefault_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean autoDefault_native_constfct(long __this__nativeId);
/**
* See QPushButton::isDefault()const
*/
@io.qt.QtPropertyReader(name="default")
@io.qt.QtUninvokable
public final boolean isDefault(){
return isDefault_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDefault_native_constfct(long __this__nativeId);
/**
* See QPushButton::isFlat()const
*/
@io.qt.QtPropertyReader(name="flat")
@io.qt.QtUninvokable
public final boolean isFlat(){
return isFlat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isFlat_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QMenu menu(){
return menu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QMenu menu_native_constfct(long __this__nativeId);
/**
* See QPushButton::setAutoDefault(bool)
*/
@io.qt.QtPropertyWriter(name="autoDefault")
@io.qt.QtUninvokable
public final void setAutoDefault(boolean arg__1){
setAutoDefault_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setAutoDefault_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QPushButton::setDefault(bool)
*/
@io.qt.QtPropertyWriter(name="default")
@io.qt.QtUninvokable
public final void setDefault(boolean arg__1){
setDefault_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setDefault_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QPushButton::setFlat(bool)
*/
@io.qt.QtPropertyWriter(name="flat")
@io.qt.QtUninvokable
public final void setFlat(boolean arg__1){
setFlat_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setFlat_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QPushButton::setMenu(QMenu*)
*/
@io.qt.QtUninvokable
public final void setMenu(io.qt.widgets.QMenu menu){
setMenu_native_QMenu_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(menu));
__rcMenu = menu;
}
@io.qt.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);
/**
*
*/
@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 QWidget::focusInEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusInEvent(io.qt.gui.QFocusEvent arg__1){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::focusOutEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusOutEvent(io.qt.gui.QFocusEvent arg__1){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long arg__1);
/**
* 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 QPushButton::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::keyPressEvent(QKeyEvent*)
*/
@io.qt.QtUninvokable
protected void keyPressEvent(io.qt.gui.QKeyEvent arg__1){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long arg__1);
/**
* 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 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 QPushButton(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 QPushButton(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QPushButton instance, QDeclarativeConstructor constructor);
}