io.qt.widgets.QSplitter Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Implements a splitter widget
* Java wrapper for Qt class QSplitter
*/
public class QSplitter 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(QSplitter.class);
/**
* See QSplitter:: splitterMoved(int, int)
*/
public final @NonNull Signal2 splitterMoved = new Signal2<>();
/**
* See QSplitter:: QSplitter(QWidget*)
*/
public QSplitter(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QSplitter instance, io.qt.widgets.QWidget parent);
/**
* See QSplitter:: QSplitter(Qt::Orientation, QWidget*)
*/
public QSplitter(io.qt.core.Qt.@NonNull Orientation arg__1, io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, arg__1, parent);
}
private native static void initialize_native(QSplitter instance, io.qt.core.Qt.Orientation arg__1, io.qt.widgets.QWidget parent);
/**
* See QSplitter:: addWidget(QWidget*)
*/
@QtUninvokable
public final void addWidget(io.qt.widgets.@Nullable QWidget widget){
addWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void addWidget_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QSplitter:: childrenCollapsible()const
*/
@QtPropertyReader(name="childrenCollapsible")
@QtUninvokable
public final boolean childrenCollapsible(){
return childrenCollapsible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean childrenCollapsible_native_constfct(long __this__nativeId);
/**
* See QSplitter:: closestLegalPosition(int, int)
*/
@QtUninvokable
protected final int closestLegalPosition(int arg__1, int arg__2){
return closestLegalPosition_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, arg__2);
}
@QtUninvokable
private native int closestLegalPosition_native_int_int(long __this__nativeId, int arg__1, int arg__2);
/**
*
*/
@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 QSplitter:: getRange(int, int*, int*)const
*/
@QtUninvokable
public final io.qt.widgets.QSplitter.@StrictNonNull Range getRange(int index){
return getRange_native_int_int_ptr_int_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.widgets.QSplitter.Range getRange_native_int_int_ptr_int_ptr_constfct(long __this__nativeId, int index);
/**
* See QSplitter:: handle(int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QSplitterHandle handle(int index){
return handle_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.widgets.QSplitterHandle handle_native_int_constfct(long __this__nativeId, int index);
/**
* See QSplitter:: handleWidth()const
*/
@QtPropertyReader(name="handleWidth")
@QtUninvokable
public final int handleWidth(){
return handleWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int handleWidth_native_constfct(long __this__nativeId);
/**
* See QSplitter:: indexOf(QWidget*)const
*/
@QtUninvokable
public final int indexOf(io.qt.widgets.@Nullable QWidget w){
return indexOf_native_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@QtUninvokable
private native int indexOf_native_QWidget_ptr_constfct(long __this__nativeId, long w);
/**
* See QSplitter:: insertWidget(int, QWidget*)
*/
@QtUninvokable
public final void insertWidget(int index, io.qt.widgets.@Nullable QWidget widget){
insertWidget_native_int_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void insertWidget_native_int_QWidget_ptr(long __this__nativeId, int index, long widget);
/**
* See QSplitter:: isCollapsible(int)const
*/
@QtUninvokable
public final boolean isCollapsible(int index){
return isCollapsible_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native boolean isCollapsible_native_int_constfct(long __this__nativeId, int index);
/**
* See QSplitter:: moveSplitter(int, int)
*/
@QtUninvokable
protected final void moveSplitter(int pos, int index){
moveSplitter_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), pos, index);
}
@QtUninvokable
private native void moveSplitter_native_int_int(long __this__nativeId, int pos, int index);
/**
* See QSplitter:: opaqueResize()const
*/
@QtPropertyReader(name="opaqueResize")
@QtUninvokable
public final boolean opaqueResize(){
return opaqueResize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean opaqueResize_native_constfct(long __this__nativeId);
/**
* See QSplitter:: orientation()const
*/
@QtPropertyReader(name="orientation")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Orientation orientation(){
return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int orientation_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void refresh(){
refresh_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void refresh_native(long __this__nativeId);
/**
* See QSplitter:: replaceWidget(int, QWidget*)
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget replaceWidget(int index, io.qt.widgets.@Nullable QWidget widget){
return replaceWidget_native_int_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.widgets.QWidget replaceWidget_native_int_QWidget_ptr(long __this__nativeId, int index, long widget);
/**
* See QSplitter:: restoreState(QByteArray)
*/
@QtUninvokable
public final boolean restoreState(io.qt.core.@NonNull QByteArray state){
return restoreState_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(state));
}
@QtUninvokable
private native boolean restoreState_native_cref_QByteArray(long __this__nativeId, long state);
/**
* See QSplitter:: saveState()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray saveState(){
return saveState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray saveState_native_constfct(long __this__nativeId);
/**
* See QSplitter:: setChildrenCollapsible(bool)
*/
@QtPropertyWriter(name="childrenCollapsible")
@QtUninvokable
public final void setChildrenCollapsible(boolean arg__1){
setChildrenCollapsible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setChildrenCollapsible_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QSplitter:: setCollapsible(int, bool)
*/
@QtUninvokable
public final void setCollapsible(int index, boolean arg__2){
setCollapsible_native_int_bool(QtJambi_LibraryUtilities.internal.nativeId(this), index, arg__2);
}
@QtUninvokable
private native void setCollapsible_native_int_bool(long __this__nativeId, int index, boolean arg__2);
/**
* See QSplitter:: setHandleWidth(int)
*/
@QtPropertyWriter(name="handleWidth")
@QtUninvokable
public final void setHandleWidth(int arg__1){
setHandleWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@QtUninvokable
private native void setHandleWidth_native_int(long __this__nativeId, int arg__1);
/**
* See QSplitter:: setOpaqueResize(bool)
*/
@QtPropertyWriter(name="opaqueResize")
@QtUninvokable
public final void setOpaqueResize(boolean opaque){
setOpaqueResize_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), opaque);
}
@QtUninvokable
private native void setOpaqueResize_native_bool(long __this__nativeId, boolean opaque);
/**
* See QSplitter:: setOrientation(Qt::Orientation)
*/
@QtPropertyWriter(name="orientation")
@QtUninvokable
public final void setOrientation(io.qt.core.Qt.@NonNull Orientation arg__1){
setOrientation_native_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setOrientation_native_Qt_Orientation(long __this__nativeId, int arg__1);
/**
* See QSplitter:: setRubberBand(int)
*/
@QtUninvokable
protected final void setRubberBand(int position){
setRubberBand_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), position);
}
@QtUninvokable
private native void setRubberBand_native_int(long __this__nativeId, int position);
/**
* See QSplitter:: setSizes(QList<int>)
*/
@QtUninvokable
public final void setSizes(java.util.@NonNull Collection list){
setSizes_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), list);
}
@QtUninvokable
private native void setSizes_native_cref_QList(long __this__nativeId, java.util.Collection list);
/**
* See QSplitter:: setStretchFactor(int, int)
*/
@QtUninvokable
public final void setStretchFactor(int index, int stretch){
setStretchFactor_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), index, stretch);
}
@QtUninvokable
private native void setStretchFactor_native_int_int(long __this__nativeId, int index, int stretch);
/**
*
*/
@QtUninvokable
public final io.qt.core.@NonNull QList sizes(){
return sizes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList sizes_native_constfct(long __this__nativeId);
/**
* See QSplitter:: widget(int)const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget widget(int index){
return widget_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native io.qt.widgets.QWidget widget_native_int_constfct(long __this__nativeId, int index);
/**
* See QWidget:: changeEvent(QEvent*)
*/
@QtUninvokable
@Override
protected void changeEvent(io.qt.core.@Nullable QEvent arg__1){
changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QObject:: childEvent(QChildEvent*)
*/
@QtUninvokable
@Override
protected void childEvent(io.qt.core.@Nullable QChildEvent arg__1){
childEvent_native_QChildEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void childEvent_native_QChildEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
protected io.qt.widgets.@Nullable QSplitterHandle createHandle(){
return createHandle_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QSplitterHandle createHandle_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent arg__1){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native boolean event_native_QEvent_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:: resizeEvent(QResizeEvent*)
*/
@QtUninvokable
@Override
protected void resizeEvent(io.qt.gui.@Nullable QResizeEvent arg__1){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void resizeEvent_native_QResizeEvent_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 QSplitter(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QSplitter(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QSplitter instance, QDeclarativeConstructor constructor);
/**
* Result class for QSplitter::getRange(int,int*,int*)const
.
*/
public static final class Range {
@NativeAccess
private Range(int min, int max) {
minimum = min;
maximum = max;
}
public final int minimum;
public final int maximum;
}
/**
* Overloaded constructor for {@link #QSplitter(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QSplitter() {
this((io.qt.widgets.QWidget)null);
}
/**
* Overloaded constructor for {@link #QSplitter(io.qt.core.Qt.Orientation, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QSplitter(io.qt.core.Qt.@NonNull Orientation arg__1) {
this(arg__1, (io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #childrenCollapsible()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getChildrenCollapsible() {
return childrenCollapsible();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #handleWidth()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getHandleWidth() {
return handleWidth();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #opaqueResize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getOpaqueResize() {
return opaqueResize();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #orientation()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Orientation getOrientation() {
return orientation();
}
/**
* Overloaded function for {@link #restoreState(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final boolean restoreState(byte @NonNull[] state) {
return restoreState(new io.qt.core.QByteArray(state));
}
/**
* Overloaded function for {@link #setOpaqueResize(boolean)}
* with opaque = true
.
*/
@QtUninvokable
public final void setOpaqueResize() {
setOpaqueResize((boolean)true);
}
}