io.qt.widgets.QGraphicsAnchorLayout Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Layout where one can anchor widgets together in Graphics View
* Java wrapper for Qt class QGraphicsAnchorLayout
*/
public class QGraphicsAnchorLayout extends io.qt.widgets.QGraphicsLayout
{
/**
* Overloaded constructor for {@link #QGraphicsAnchorLayout(io.qt.widgets.QGraphicsLayoutItem)}
* with parent = null
.
*/
public QGraphicsAnchorLayout() {
this((io.qt.widgets.QGraphicsLayoutItem)null);
}
/**
* See QGraphicsAnchorLayout::QGraphicsAnchorLayout(QGraphicsLayoutItem*)
*/
public QGraphicsAnchorLayout(io.qt.widgets.QGraphicsLayoutItem parent){
super((QPrivateConstructor)null);
if (parent instanceof QGraphicsWidget)
QtJambi_LibraryUtilities.internal.setCppOwnership(this);
initialize_native(this, parent);
}
private native static void initialize_native(QGraphicsAnchorLayout instance, io.qt.widgets.QGraphicsLayoutItem parent);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsAnchor addAnchor(io.qt.widgets.QGraphicsLayoutItem firstItem, io.qt.core.Qt.AnchorPoint firstEdge, io.qt.widgets.QGraphicsLayoutItem secondItem, io.qt.core.Qt.AnchorPoint secondEdge){
io.qt.widgets.QGraphicsAnchor __qt_return_value = addAnchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), firstEdge.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), secondEdge.value());
QtJambi_LibraryUtilities.internal.setCppOwnership(firstItem);
QtJambi_LibraryUtilities.internal.setCppOwnership(secondItem);
return __qt_return_value;
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsAnchor addAnchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(long __this__nativeId, long firstItem, int firstEdge, long secondItem, int secondEdge);
/**
* Overloaded function for {@link #addAnchors(io.qt.widgets.QGraphicsLayoutItem, io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Orientations)}.
*/
@io.qt.QtUninvokable
public final void addAnchors(io.qt.widgets.QGraphicsLayoutItem firstItem, io.qt.widgets.QGraphicsLayoutItem secondItem, io.qt.core.Qt.Orientation ... orientations){
addAnchors(firstItem, secondItem, new io.qt.core.Qt.Orientations(orientations));
}
/**
* Overloaded function for {@link #addAnchors(io.qt.widgets.QGraphicsLayoutItem, io.qt.widgets.QGraphicsLayoutItem, io.qt.core.Qt.Orientations)}
* with orientations = new io.qt.core.Qt.Orientations(3)
.
*/
@io.qt.QtUninvokable
public final void addAnchors(io.qt.widgets.QGraphicsLayoutItem firstItem, io.qt.widgets.QGraphicsLayoutItem secondItem) {
addAnchors(firstItem, secondItem, new io.qt.core.Qt.Orientations(3));
}
/**
* See QGraphicsAnchorLayout::addAnchors(QGraphicsLayoutItem*,QGraphicsLayoutItem*,Qt::Orientations)
*/
@io.qt.QtUninvokable
public final void addAnchors(io.qt.widgets.QGraphicsLayoutItem firstItem, io.qt.widgets.QGraphicsLayoutItem secondItem, io.qt.core.Qt.Orientations orientations){
addAnchors_native_QGraphicsLayoutItem_ptr_QGraphicsLayoutItem_ptr_QFlags_Qt_Orientation_(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), orientations.value());
QtJambi_LibraryUtilities.internal.setCppOwnership(firstItem);
QtJambi_LibraryUtilities.internal.setCppOwnership(secondItem);
}
@io.qt.QtUninvokable
private native void addAnchors_native_QGraphicsLayoutItem_ptr_QGraphicsLayoutItem_ptr_QFlags_Qt_Orientation_(long __this__nativeId, long firstItem, long secondItem, int orientations);
/**
*
*/
@io.qt.QtUninvokable
public final void addCornerAnchors(io.qt.widgets.QGraphicsLayoutItem firstItem, io.qt.core.Qt.Corner firstCorner, io.qt.widgets.QGraphicsLayoutItem secondItem, io.qt.core.Qt.Corner secondCorner){
addCornerAnchors_native_QGraphicsLayoutItem_ptr_Qt_Corner_QGraphicsLayoutItem_ptr_Qt_Corner(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), firstCorner.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), secondCorner.value());
QtJambi_LibraryUtilities.internal.setCppOwnership(firstItem);
QtJambi_LibraryUtilities.internal.setCppOwnership(secondItem);
}
@io.qt.QtUninvokable
private native void addCornerAnchors_native_QGraphicsLayoutItem_ptr_Qt_Corner_QGraphicsLayoutItem_ptr_Qt_Corner(long __this__nativeId, long firstItem, int firstCorner, long secondItem, int secondCorner);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QGraphicsAnchor anchor(io.qt.widgets.QGraphicsLayoutItem firstItem, io.qt.core.Qt.AnchorPoint firstEdge, io.qt.widgets.QGraphicsLayoutItem secondItem, io.qt.core.Qt.AnchorPoint secondEdge){
return anchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(firstItem), firstEdge.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(secondItem), secondEdge.value());
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsAnchor anchor_native_QGraphicsLayoutItem_ptr_Qt_AnchorPoint_QGraphicsLayoutItem_ptr_Qt_AnchorPoint(long __this__nativeId, long firstItem, int firstEdge, long secondItem, int secondEdge);
/**
* See QGraphicsAnchorLayout::horizontalSpacing()const
*/
@io.qt.QtUninvokable
public final double horizontalSpacing(){
return horizontalSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double horizontalSpacing_native_constfct(long __this__nativeId);
/**
* See QGraphicsAnchorLayout::setHorizontalSpacing(qreal)
*/
@io.qt.QtUninvokable
public final void setHorizontalSpacing(double spacing){
setHorizontalSpacing_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), spacing);
}
@io.qt.QtUninvokable
private native void setHorizontalSpacing_native_qtjambireal(long __this__nativeId, double spacing);
/**
* See QGraphicsAnchorLayout::setSpacing(qreal)
*/
@io.qt.QtUninvokable
public final void setSpacing(double spacing){
setSpacing_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), spacing);
}
@io.qt.QtUninvokable
private native void setSpacing_native_qtjambireal(long __this__nativeId, double spacing);
/**
* See QGraphicsAnchorLayout::setVerticalSpacing(qreal)
*/
@io.qt.QtUninvokable
public final void setVerticalSpacing(double spacing){
setVerticalSpacing_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), spacing);
}
@io.qt.QtUninvokable
private native void setVerticalSpacing_native_qtjambireal(long __this__nativeId, double spacing);
/**
* See QGraphicsAnchorLayout::verticalSpacing()const
*/
@io.qt.QtUninvokable
public final double verticalSpacing(){
return verticalSpacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double verticalSpacing_native_constfct(long __this__nativeId);
/**
* See QGraphicsLayout::count()const
*/
@io.qt.QtUninvokable
public int count(){
return count_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int count_native_constfct(long __this__nativeId);
/**
* See QGraphicsLayout::invalidate()
*/
@io.qt.QtUninvokable
public void invalidate(){
invalidate_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void invalidate_native(long __this__nativeId);
/**
* See QGraphicsLayout::itemAt(int)const
*/
@io.qt.QtUninvokable
public io.qt.widgets.QGraphicsLayoutItem itemAt(int index){
return itemAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.widgets.QGraphicsLayoutItem itemAt_native_int_constfct(long __this__nativeId, int index);
/**
* See QGraphicsLayout::removeAt(int)
*/
@io.qt.QtUninvokable
public void removeAt(int index){
QGraphicsLayoutItem __item = itemAt(index);
removeAt_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), index);
if(__item != null){
QtJambi_LibraryUtilities.internal.setDefaultOwnership(__item);
}
}
@io.qt.QtUninvokable
private native void removeAt_native_int(long __this__nativeId, int index);
/**
* See QGraphicsLayoutItem::setGeometry(QRectF)
*/
@io.qt.QtUninvokable
public void setGeometry(io.qt.core.QRectF rect){
setGeometry_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
private native static void setGeometry_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QGraphicsLayoutItem::sizeHint(Qt::SizeHint,QSizeF)const
*/
@io.qt.QtUninvokable
protected io.qt.core.QSizeF sizeHint(io.qt.core.Qt.SizeHint which, io.qt.core.QSizeF constraint){
return sizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), which.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(constraint));
}
private native static io.qt.core.QSizeF sizeHint_native_Qt_SizeHint_cref_QSizeF_constfct(long __this__nativeId, int which, long constraint);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QGraphicsAnchorLayout(QPrivateConstructor p) { super(p); }
}