io.qt.widgets.QAbstractScrollArea Maven / Gradle / Ivy
package io.qt.widgets;
import io.qt.gui.*;
/**
* Scrolling area with on-demand scroll bars
* Java wrapper for Qt class QAbstractScrollArea
*/
public class QAbstractScrollArea extends io.qt.widgets.QFrame
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractScrollArea.class);
/**
* Java wrapper for Qt enum QAbstractScrollArea::SizeAdjustPolicy
*/
public enum SizeAdjustPolicy implements io.qt.QtEnumerator {
AdjustIgnored(0),
AdjustToContentsOnFirstShow(1),
AdjustToContents(2);
private SizeAdjustPolicy(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static SizeAdjustPolicy resolve(int value) {
switch (value) {
case 0: return AdjustIgnored;
case 1: return AdjustToContentsOnFirstShow;
case 2: return AdjustToContents;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Overloaded constructor for {@link #QAbstractScrollArea(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QAbstractScrollArea() {
this((io.qt.widgets.QWidget)null);
}
/**
* See QAbstractScrollArea::QAbstractScrollArea(QWidget*)
*/
public QAbstractScrollArea(io.qt.widgets.QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QAbstractScrollArea instance, io.qt.widgets.QWidget parent);
/**
* Overloaded function for {@link #addScrollBarWidget(io.qt.widgets.QWidget, io.qt.core.Qt.Alignment)}.
*/
@io.qt.QtUninvokable
public final void addScrollBarWidget(io.qt.widgets.QWidget widget, io.qt.core.Qt.AlignmentFlag ... alignment){
addScrollBarWidget(widget, new io.qt.core.Qt.Alignment(alignment));
}
/**
* See QAbstractScrollArea::addScrollBarWidget(QWidget*,Qt::Alignment)
*/
@io.qt.QtUninvokable
public final void addScrollBarWidget(io.qt.widgets.QWidget widget, io.qt.core.Qt.Alignment alignment){
addScrollBarWidget_native_QWidget_ptr_QFlags_Qt_AlignmentFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), alignment.value());
}
@io.qt.QtUninvokable
private native void addScrollBarWidget_native_QWidget_ptr_QFlags_Qt_AlignmentFlag_(long __this__nativeId, long widget, int alignment);
/**
* See QAbstractScrollArea::cornerWidget()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QWidget cornerWidget(){
return cornerWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget cornerWidget_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea::horizontalScrollBar()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QScrollBar horizontalScrollBar(){
return horizontalScrollBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QScrollBar horizontalScrollBar_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea::horizontalScrollBarPolicy()const
*/
@io.qt.QtPropertyReader(name="horizontalScrollBarPolicy")
@io.qt.QtUninvokable
public final io.qt.core.Qt.ScrollBarPolicy horizontalScrollBarPolicy(){
return io.qt.core.Qt.ScrollBarPolicy.resolve(horizontalScrollBarPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int horizontalScrollBarPolicy_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea::maximumViewportSize()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize maximumViewportSize(){
return maximumViewportSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize maximumViewportSize_native_constfct(long __this__nativeId);
/**
* Overloaded function for {@link #scrollBarWidgets(io.qt.core.Qt.Alignment)}.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList scrollBarWidgets(io.qt.core.Qt.AlignmentFlag ... alignment){
return scrollBarWidgets(new io.qt.core.Qt.Alignment(alignment));
}
/**
* See QAbstractScrollArea::scrollBarWidgets(Qt::Alignment)
*/
@io.qt.QtUninvokable
public final io.qt.core.QList scrollBarWidgets(io.qt.core.Qt.Alignment alignment){
return scrollBarWidgets_native_QFlags_Qt_AlignmentFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value());
}
@io.qt.QtUninvokable
private native io.qt.core.QList scrollBarWidgets_native_QFlags_Qt_AlignmentFlag_(long __this__nativeId, int alignment);
/**
* See QAbstractScrollArea::setCornerWidget(QWidget*)
*/
@io.qt.QtUninvokable
public final void setCornerWidget(io.qt.widgets.QWidget widget){
setCornerWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@io.qt.QtUninvokable
private native void setCornerWidget_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QAbstractScrollArea::setHorizontalScrollBar(QScrollBar*)
*/
@io.qt.QtUninvokable
public final void setHorizontalScrollBar(io.qt.widgets.QScrollBar scrollbar){
setHorizontalScrollBar_native_QScrollBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scrollbar));
}
@io.qt.QtUninvokable
private native void setHorizontalScrollBar_native_QScrollBar_ptr(long __this__nativeId, long scrollbar);
/**
* See QAbstractScrollArea::setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)
*/
@io.qt.QtPropertyWriter(name="horizontalScrollBarPolicy")
@io.qt.QtUninvokable
public final void setHorizontalScrollBarPolicy(io.qt.core.Qt.ScrollBarPolicy arg__1){
setHorizontalScrollBarPolicy_native_Qt_ScrollBarPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native void setHorizontalScrollBarPolicy_native_Qt_ScrollBarPolicy(long __this__nativeId, int arg__1);
/**
* See QAbstractScrollArea::setSizeAdjustPolicy(QAbstractScrollArea::SizeAdjustPolicy)
*/
@io.qt.QtPropertyWriter(name="sizeAdjustPolicy")
@io.qt.QtUninvokable
public final void setSizeAdjustPolicy(io.qt.widgets.QAbstractScrollArea.SizeAdjustPolicy policy){
setSizeAdjustPolicy_native_QAbstractScrollArea_SizeAdjustPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value());
}
@io.qt.QtUninvokable
private native void setSizeAdjustPolicy_native_QAbstractScrollArea_SizeAdjustPolicy(long __this__nativeId, int policy);
/**
* See QAbstractScrollArea::setVerticalScrollBar(QScrollBar*)
*/
@io.qt.QtUninvokable
public final void setVerticalScrollBar(io.qt.widgets.QScrollBar scrollbar){
setVerticalScrollBar_native_QScrollBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scrollbar));
}
@io.qt.QtUninvokable
private native void setVerticalScrollBar_native_QScrollBar_ptr(long __this__nativeId, long scrollbar);
/**
* See QAbstractScrollArea::setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)
*/
@io.qt.QtPropertyWriter(name="verticalScrollBarPolicy")
@io.qt.QtUninvokable
public final void setVerticalScrollBarPolicy(io.qt.core.Qt.ScrollBarPolicy arg__1){
setVerticalScrollBarPolicy_native_Qt_ScrollBarPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native void setVerticalScrollBarPolicy_native_Qt_ScrollBarPolicy(long __this__nativeId, int arg__1);
/**
* See QAbstractScrollArea::setViewport(QWidget*)
*/
@io.qt.QtUninvokable
public final void setViewport(io.qt.widgets.QWidget widget){
setViewport_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@io.qt.QtUninvokable
private native void setViewport_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QAbstractScrollArea::setViewportMargins(QMargins)
*/
@io.qt.QtUninvokable
protected final void setViewportMargins(io.qt.core.QMargins margins){
setViewportMargins_native_cref_QMargins(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(margins));
}
@io.qt.QtUninvokable
private native void setViewportMargins_native_cref_QMargins(long __this__nativeId, long margins);
/**
* See QAbstractScrollArea::setViewportMargins(int,int,int,int)
*/
@io.qt.QtUninvokable
protected final void setViewportMargins(int left, int top, int right, int bottom){
setViewportMargins_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), left, top, right, bottom);
}
@io.qt.QtUninvokable
private native void setViewportMargins_native_int_int_int_int(long __this__nativeId, int left, int top, int right, int bottom);
/**
* See QAbstractScrollArea::sizeAdjustPolicy()const
*/
@io.qt.QtPropertyReader(name="sizeAdjustPolicy")
@io.qt.QtUninvokable
public final io.qt.widgets.QAbstractScrollArea.SizeAdjustPolicy sizeAdjustPolicy(){
return io.qt.widgets.QAbstractScrollArea.SizeAdjustPolicy.resolve(sizeAdjustPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int sizeAdjustPolicy_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea::verticalScrollBar()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QScrollBar verticalScrollBar(){
return verticalScrollBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QScrollBar verticalScrollBar_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea::verticalScrollBarPolicy()const
*/
@io.qt.QtPropertyReader(name="verticalScrollBarPolicy")
@io.qt.QtUninvokable
public final io.qt.core.Qt.ScrollBarPolicy verticalScrollBarPolicy(){
return io.qt.core.Qt.ScrollBarPolicy.resolve(verticalScrollBarPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int verticalScrollBarPolicy_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea::viewport()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QWidget viewport(){
return viewport_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget viewport_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea::viewportMargins()const
*/
@io.qt.QtUninvokable
protected final io.qt.core.QMargins viewportMargins(){
return viewportMargins_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QMargins viewportMargins_native_constfct(long __this__nativeId);
/**
* See QWidget::contextMenuEvent(QContextMenuEvent*)
*/
@io.qt.QtUninvokable
protected void contextMenuEvent(io.qt.gui.QContextMenuEvent arg__1){
contextMenuEvent_native_QContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void contextMenuEvent_native_QContextMenuEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::dragEnterEvent(QDragEnterEvent*)
*/
@io.qt.QtUninvokable
protected void dragEnterEvent(io.qt.gui.QDragEnterEvent arg__1){
dragEnterEvent_native_QDragEnterEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void dragEnterEvent_native_QDragEnterEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::dragLeaveEvent(QDragLeaveEvent*)
*/
@io.qt.QtUninvokable
protected void dragLeaveEvent(io.qt.gui.QDragLeaveEvent arg__1){
dragLeaveEvent_native_QDragLeaveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void dragLeaveEvent_native_QDragLeaveEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::dragMoveEvent(QDragMoveEvent*)
*/
@io.qt.QtUninvokable
protected void dragMoveEvent(io.qt.gui.QDragMoveEvent arg__1){
dragMoveEvent_native_QDragMoveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void dragMoveEvent_native_QDragMoveEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::dropEvent(QDropEvent*)
*/
@io.qt.QtUninvokable
protected void dropEvent(io.qt.gui.QDropEvent arg__1){
dropEvent_native_QDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void dropEvent_native_QDropEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent arg__1){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QObject::eventFilter(QObject*,QEvent*)
*/
@io.qt.QtUninvokable
public boolean eventFilter(io.qt.core.QObject arg__1, io.qt.core.QEvent arg__2){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2));
}
@io.qt.QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long arg__1, long arg__2);
/**
* 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::mouseDoubleClickEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseDoubleClickEvent(io.qt.gui.QMouseEvent arg__1){
mouseDoubleClickEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void mouseDoubleClickEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1);
/**
* 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::mousePressEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mousePressEvent(io.qt.gui.QMouseEvent arg__1){
mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QWidget::mouseReleaseEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseReleaseEvent(io.qt.gui.QMouseEvent arg__1){
mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void mouseReleaseEvent_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);
/**
* See QWidget::resizeEvent(QResizeEvent*)
*/
@io.qt.QtUninvokable
protected void resizeEvent(io.qt.gui.QResizeEvent arg__1){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QAbstractScrollArea::scrollContentsBy(int,int)
*/
@io.qt.QtUninvokable
protected void scrollContentsBy(int dx, int dy){
scrollContentsBy_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy);
}
@io.qt.QtUninvokable
private native void scrollContentsBy_native_int_int(long __this__nativeId, int dx, int dy);
/**
* See QAbstractScrollArea::setupViewport(QWidget*)
*/
@io.qt.QtUninvokable
public void setupViewport(io.qt.widgets.QWidget viewport){
setupViewport_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(viewport));
}
@io.qt.QtUninvokable
private native void setupViewport_native_QWidget_ptr(long __this__nativeId, long viewport);
/**
*
*/
@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);
/**
* See QAbstractScrollArea::viewportEvent(QEvent*)
*/
@io.qt.QtUninvokable
protected boolean viewportEvent(io.qt.core.QEvent arg__1){
return viewportEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native boolean viewportEvent_native_QEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QAbstractScrollArea::viewportSizeHint()const
*/
@io.qt.QtUninvokable
protected io.qt.core.QSize viewportSizeHint(){
return viewportSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize viewportSizeHint_native_constfct(long __this__nativeId);
/**
* See QWidget::wheelEvent(QWheelEvent*)
*/
@io.qt.QtUninvokable
protected void wheelEvent(io.qt.gui.QWheelEvent arg__1){
wheelEvent_native_QWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void wheelEvent_native_QWheelEvent_ptr(long __this__nativeId, long arg__1);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QAbstractScrollArea(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 QAbstractScrollArea(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QAbstractScrollArea instance, QDeclarativeConstructor constructor);
public QPaintEngine paintEngine() {
throw new RuntimeException("Cannot open a painter directly on a QAbstractScrollArea, open QPainter on its viewport instead...");
}
}