io.qt.widgets.QSpacerItem Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Blank space in a layout
* Java wrapper for Qt class QSpacerItem
*/
public class QSpacerItem extends QtObject
implements io.qt.widgets.QLayoutItem,
java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QSpacerItem:: QSpacerItem(QSpacerItem)
*/
public QSpacerItem(io.qt.widgets.@StrictNonNull QSpacerItem other){
super((QPrivateConstructor)null);
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
initialize_native(this, other);
}
private native static void initialize_native(QSpacerItem instance, io.qt.widgets.QSpacerItem other);
/**
* See QSpacerItem:: QSpacerItem(int, int, QSizePolicy::Policy, QSizePolicy::Policy)
*/
public QSpacerItem(int w, int h, io.qt.widgets.QSizePolicy.@NonNull Policy hData, io.qt.widgets.QSizePolicy.@NonNull Policy vData){
super((QPrivateConstructor)null);
initialize_native(this, w, h, hData, vData);
}
private native static void initialize_native(QSpacerItem instance, int w, int h, io.qt.widgets.QSizePolicy.Policy hData, io.qt.widgets.QSizePolicy.Policy vData);
/**
* See QLayoutItem:: alignment()const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment alignment(){
return new io.qt.core.Qt.Alignment(alignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
private native static int alignment_native_constfct(long __this__nativeId);
/**
* See QSpacerItem:: changeSize(int, int, QSizePolicy::Policy, QSizePolicy::Policy)
*/
@QtUninvokable
public final void changeSize(int w, int h, io.qt.widgets.QSizePolicy.@NonNull Policy hData, io.qt.widgets.QSizePolicy.@NonNull Policy vData){
changeSize_native_int_int_QSizePolicy_Policy_QSizePolicy_Policy(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, hData.value(), vData.value());
}
@QtUninvokable
private native void changeSize_native_int_int_QSizePolicy_Policy_QSizePolicy_Policy(long __this__nativeId, int w, int h, int hData, int vData);
/**
* See QLayoutItem:: setAlignment(Qt::Alignment)
*/
@QtUninvokable
public final void setAlignment(io.qt.core.Qt.@NonNull Alignment a){
setAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), a.value());
}
private native static void setAlignment_native_Qt_Alignment(long __this__nativeId, int a);
/**
* See QSpacerItem:: sizePolicy()const
*/
@QtUninvokable
public final io.qt.widgets.@NonNull QSizePolicy sizePolicy(){
return sizePolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QSizePolicy sizePolicy_native_constfct(long __this__nativeId);
/**
* See QLayoutItem:: controlTypes()const
*/
@QtUninvokable
public io.qt.widgets.QSizePolicy.@NonNull ControlTypes controlTypes(){
return new io.qt.widgets.QSizePolicy.ControlTypes(controlTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
private native static int controlTypes_native_constfct(long __this__nativeId);
/**
* See QLayoutItem:: expandingDirections()const
*/
@QtUninvokable
@Override
public io.qt.core.Qt.@NonNull Orientations expandingDirections(){
return new io.qt.core.Qt.Orientations(expandingDirections_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
private native static int expandingDirections_native_constfct(long __this__nativeId);
/**
* See QLayoutItem:: geometry()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRect geometry(){
return geometry_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.core.QRect geometry_native_constfct(long __this__nativeId);
/**
* See QLayoutItem:: hasHeightForWidth()const
*/
@QtUninvokable
public boolean hasHeightForWidth(){
return hasHeightForWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static boolean hasHeightForWidth_native_constfct(long __this__nativeId);
/**
* See QLayoutItem:: heightForWidth(int)const
*/
@QtUninvokable
public int heightForWidth(int arg__1){
return heightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native static int heightForWidth_native_int_constfct(long __this__nativeId, int arg__1);
/**
*
*/
@QtUninvokable
public void invalidate(){
invalidate_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static void invalidate_native(long __this__nativeId);
/**
* See QLayoutItem:: isEmpty()const
*/
@QtUninvokable
@Override
public boolean isEmpty(){
return isEmpty_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static boolean isEmpty_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public io.qt.widgets.@Nullable QLayout layout(){
return layout_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.widgets.QLayout layout_native(long __this__nativeId);
/**
* See QLayoutItem:: maximumSize()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize maximumSize(){
return maximumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.core.QSize maximumSize_native_constfct(long __this__nativeId);
/**
* See QLayoutItem:: minimumHeightForWidth(int)const
*/
@QtUninvokable
public int minimumHeightForWidth(int arg__1){
return minimumHeightForWidth_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native static int minimumHeightForWidth_native_int_constfct(long __this__nativeId, int arg__1);
/**
* See QLayoutItem:: minimumSize()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize minimumSize(){
return minimumSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.core.QSize minimumSize_native_constfct(long __this__nativeId);
/**
* See QLayoutItem:: setGeometry(QRect)
*/
@QtUninvokable
@Override
public void setGeometry(io.qt.core.@NonNull QRect arg__1){
setGeometry_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
private native static void setGeometry_native_cref_QRect(long __this__nativeId, long arg__1);
/**
* See QLayoutItem:: sizeHint()const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public io.qt.widgets.@Nullable QSpacerItem spacerItem(){
return spacerItem_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.widgets.QSpacerItem spacerItem_native(long __this__nativeId);
/**
* See QLayoutItem:: widget()const
*/
@QtUninvokable
public io.qt.widgets.@Nullable QWidget widget(){
return widget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.widgets.QWidget widget_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSpacerItem(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QSpacerItem:: QSpacerItem(QSpacerItem)
*/
@QtUninvokable
@Override
public QSpacerItem clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QSpacerItem clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QSpacerItem(int, int, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy)}
* with vData = io.qt.widgets.QSizePolicy.Policy.Minimum
.
*/
public QSpacerItem(int w, int h, io.qt.widgets.QSizePolicy.@NonNull Policy hData) {
this(w, h, hData, io.qt.widgets.QSizePolicy.Policy.Minimum);
}
/**
* Overloaded constructor for {@link #QSpacerItem(int, int, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy)}
* with:
* hData = io.qt.widgets.QSizePolicy.Policy.Minimum
* vData = io.qt.widgets.QSizePolicy.Policy.Minimum
*
*/
public QSpacerItem(int w, int h) {
this(w, h, io.qt.widgets.QSizePolicy.Policy.Minimum, io.qt.widgets.QSizePolicy.Policy.Minimum);
}
/**
* Overloaded function for {@link #changeSize(int, int, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy)}
* with vData = io.qt.widgets.QSizePolicy.Policy.Minimum
.
*/
@QtUninvokable
public final void changeSize(int w, int h, io.qt.widgets.QSizePolicy.@NonNull Policy hData) {
changeSize(w, h, hData, io.qt.widgets.QSizePolicy.Policy.Minimum);
}
/**
* Overloaded function for {@link #changeSize(int, int, io.qt.widgets.QSizePolicy.Policy, io.qt.widgets.QSizePolicy.Policy)}
* with:
* hData = io.qt.widgets.QSizePolicy.Policy.Minimum
* vData = io.qt.widgets.QSizePolicy.Policy.Minimum
*
*/
@QtUninvokable
public final void changeSize(int w, int h) {
changeSize(w, h, io.qt.widgets.QSizePolicy.Policy.Minimum, io.qt.widgets.QSizePolicy.Policy.Minimum);
}
/**
* Overloaded function for {@link #setAlignment(io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... a) {
setAlignment(new io.qt.core.Qt.Alignment(a));
}
}