io.qt.widgets.QStackedWidget Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Stack of widgets where only one widget is visible at a time
* Java wrapper for Qt class QStackedWidget
*/
public class QStackedWidget extends io.qt.widgets.QFrame
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QStackedWidget.class);
/**
* See QStackedWidget:: currentChanged(int)
*/
@QtPropertyNotify(name="currentIndex")
public final @NonNull Signal1 currentChanged = new Signal1<>();
/**
* See QStackedWidget:: widgetRemoved(int)
*/
public final @NonNull Signal1 widgetRemoved = new Signal1<>();
/**
* See QStackedWidget:: QStackedWidget(QWidget*)
*/
public QStackedWidget(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QStackedWidget instance, io.qt.widgets.QWidget parent);
/**
* See QStackedWidget:: addWidget(QWidget*)
*/
@QtUninvokable
public final int addWidget(io.qt.widgets.@Nullable QWidget w){
return addWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@QtUninvokable
private native int addWidget_native_QWidget_ptr(long __this__nativeId, long w);
/**
* See QStackedWidget:: count()const
*/
@QtPropertyReader(name="count")
@QtUninvokable
public final int count(){
return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int count_native_constfct(long __this__nativeId);
/**
* See QStackedWidget:: currentIndex()const
*/
@QtPropertyReader(name="currentIndex")
@QtUninvokable
public final int currentIndex(){
return currentIndex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int currentIndex_native_constfct(long __this__nativeId);
/**
* See QStackedWidget:: currentWidget()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget currentWidget(){
return currentWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QWidget currentWidget_native_constfct(long __this__nativeId);
/**
* See QStackedWidget:: indexOf(const QWidget*)const
*/
@QtUninvokable
public final int indexOf(io.qt.widgets.@Nullable QWidget arg__1){
return indexOf_native_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native int indexOf_native_const_QWidget_ptr_constfct(long __this__nativeId, long arg__1);
/**
* See QStackedWidget:: insertWidget(int, QWidget*)
*/
@QtUninvokable
public final int insertWidget(int index, io.qt.widgets.@Nullable QWidget w){
return insertWidget_native_int_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@QtUninvokable
private native int insertWidget_native_int_QWidget_ptr(long __this__nativeId, int index, long w);
/**
* See QStackedWidget:: removeWidget(QWidget*)
*/
@QtUninvokable
public final void removeWidget(io.qt.widgets.@Nullable QWidget w){
removeWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@QtUninvokable
private native void removeWidget_native_QWidget_ptr(long __this__nativeId, long w);
/**
* See QStackedWidget:: setCurrentIndex(int)
*/
@QtPropertyWriter(name="currentIndex")
public final void setCurrentIndex(int index){
setCurrentIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
private native void setCurrentIndex_native_int(long __this__nativeId, int index);
/**
* See QStackedWidget:: setCurrentWidget(QWidget*)
*/
public final void setCurrentWidget(io.qt.widgets.@Nullable QWidget w){
setCurrentWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
private native void setCurrentWidget_native_QWidget_ptr(long __this__nativeId, long w);
/**
* See QStackedWidget:: widget(int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget widget(int arg__1){
return widget_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native io.qt.widgets.QWidget widget_native_int_constfct(long __this__nativeId, int arg__1);
/**
*
*/
@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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStackedWidget(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QStackedWidget(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QStackedWidget instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QStackedWidget(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QStackedWidget() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #count()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getCount() {
return count();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #currentIndex()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getCurrentIndex() {
return currentIndex();
}
}