All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.widgets.QAbstractScrollArea Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;
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.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractScrollArea.class); /** *

Java wrapper for Qt enum QAbstractScrollArea::SizeAdjustPolicy

*/ public enum SizeAdjustPolicy implements QtEnumerator { /** *

Representing QAbstractScrollArea::AdjustIgnored

*/ AdjustIgnored(0), /** *

Representing QAbstractScrollArea::AdjustToContentsOnFirstShow

*/ AdjustToContentsOnFirstShow(1), /** *

Representing QAbstractScrollArea::AdjustToContents

*/ AdjustToContents(2); static { QtJambi_LibraryUtilities.initialize(); } 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 @NonNull SizeAdjustPolicy resolve(int value) { switch (value) { case 0: return AdjustIgnored; case 1: return AdjustToContentsOnFirstShow; case 2: return AdjustToContents; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QAbstractScrollArea::QAbstractScrollArea(QWidget*)

*/ public QAbstractScrollArea(io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QAbstractScrollArea instance, io.qt.widgets.QWidget parent); /** *

See QAbstractScrollArea::addScrollBarWidget(QWidget*,Qt::Alignment)

*/ @QtUninvokable public final void addScrollBarWidget(io.qt.widgets.@Nullable QWidget widget, io.qt.core.Qt.@NonNull Alignment alignment){ addScrollBarWidget_native_QWidget_ptr_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), alignment.value()); } @QtUninvokable private native void addScrollBarWidget_native_QWidget_ptr_Qt_Alignment(long __this__nativeId, long widget, int alignment); /** *

See QAbstractScrollArea::cornerWidget()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget cornerWidget(){ return cornerWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QWidget cornerWidget_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::horizontalScrollBar()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QScrollBar horizontalScrollBar(){ return horizontalScrollBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QScrollBar horizontalScrollBar_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::horizontalScrollBarPolicy()const

*/ @QtPropertyReader(name="horizontalScrollBarPolicy") @QtUninvokable public final io.qt.core.Qt.@NonNull ScrollBarPolicy horizontalScrollBarPolicy(){ return io.qt.core.Qt.ScrollBarPolicy.resolve(horizontalScrollBarPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int horizontalScrollBarPolicy_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::maximumViewportSize()const

*/ @QtUninvokable public final io.qt.core.@NonNull QSize maximumViewportSize(){ return maximumViewportSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize maximumViewportSize_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::scrollBarWidgets(Qt::Alignment)

*/ @QtUninvokable public final io.qt.core.@NonNull QList scrollBarWidgets(io.qt.core.Qt.@NonNull Alignment alignment){ return scrollBarWidgets_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value()); } @QtUninvokable private native io.qt.core.QList scrollBarWidgets_native_Qt_Alignment(long __this__nativeId, int alignment); /** *

See QAbstractScrollArea::setCornerWidget(QWidget*)

*/ @QtUninvokable public final void setCornerWidget(io.qt.widgets.@Nullable QWidget widget){ setCornerWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } @QtUninvokable private native void setCornerWidget_native_QWidget_ptr(long __this__nativeId, long widget); /** *

See QAbstractScrollArea::setHorizontalScrollBar(QScrollBar*)

*/ @QtUninvokable public final void setHorizontalScrollBar(io.qt.widgets.@Nullable QScrollBar scrollbar){ setHorizontalScrollBar_native_QScrollBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scrollbar)); } @QtUninvokable private native void setHorizontalScrollBar_native_QScrollBar_ptr(long __this__nativeId, long scrollbar); /** *

See QAbstractScrollArea::setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy)

*/ @QtPropertyWriter(name="horizontalScrollBarPolicy") @QtUninvokable public final void setHorizontalScrollBarPolicy(io.qt.core.Qt.@NonNull ScrollBarPolicy arg__1){ setHorizontalScrollBarPolicy_native_Qt_ScrollBarPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setHorizontalScrollBarPolicy_native_Qt_ScrollBarPolicy(long __this__nativeId, int arg__1); /** *

See QAbstractScrollArea::setSizeAdjustPolicy(QAbstractScrollArea::SizeAdjustPolicy)

*/ @QtPropertyWriter(name="sizeAdjustPolicy") @QtUninvokable public final void setSizeAdjustPolicy(io.qt.widgets.QAbstractScrollArea.@NonNull SizeAdjustPolicy policy){ setSizeAdjustPolicy_native_QAbstractScrollArea_SizeAdjustPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), policy.value()); } @QtUninvokable private native void setSizeAdjustPolicy_native_QAbstractScrollArea_SizeAdjustPolicy(long __this__nativeId, int policy); /** *

See QAbstractScrollArea::setVerticalScrollBar(QScrollBar*)

*/ @QtUninvokable public final void setVerticalScrollBar(io.qt.widgets.@Nullable QScrollBar scrollbar){ setVerticalScrollBar_native_QScrollBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(scrollbar)); } @QtUninvokable private native void setVerticalScrollBar_native_QScrollBar_ptr(long __this__nativeId, long scrollbar); /** *

See QAbstractScrollArea::setVerticalScrollBarPolicy(Qt::ScrollBarPolicy)

*/ @QtPropertyWriter(name="verticalScrollBarPolicy") @QtUninvokable public final void setVerticalScrollBarPolicy(io.qt.core.Qt.@NonNull ScrollBarPolicy arg__1){ setVerticalScrollBarPolicy_native_Qt_ScrollBarPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setVerticalScrollBarPolicy_native_Qt_ScrollBarPolicy(long __this__nativeId, int arg__1); /** *

See QAbstractScrollArea::setViewport(QWidget*)

*/ @QtUninvokable public final void setViewport(io.qt.widgets.@Nullable QWidget widget){ setViewport_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); } @QtUninvokable private native void setViewport_native_QWidget_ptr(long __this__nativeId, long widget); /** *

See QAbstractScrollArea::setViewportMargins(QMargins)

*/ @QtUninvokable protected final void setViewportMargins(io.qt.core.@NonNull QMargins margins){ setViewportMargins_native_cref_QMargins(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(margins)); } @QtUninvokable private native void setViewportMargins_native_cref_QMargins(long __this__nativeId, long margins); /** *

See QAbstractScrollArea::setViewportMargins(int,int,int,int)

*/ @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); } @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

*/ @QtPropertyReader(name="sizeAdjustPolicy") @QtUninvokable public final io.qt.widgets.QAbstractScrollArea.@NonNull SizeAdjustPolicy sizeAdjustPolicy(){ return io.qt.widgets.QAbstractScrollArea.SizeAdjustPolicy.resolve(sizeAdjustPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int sizeAdjustPolicy_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::verticalScrollBar()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QScrollBar verticalScrollBar(){ return verticalScrollBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QScrollBar verticalScrollBar_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::verticalScrollBarPolicy()const

*/ @QtPropertyReader(name="verticalScrollBarPolicy") @QtUninvokable public final io.qt.core.Qt.@NonNull ScrollBarPolicy verticalScrollBarPolicy(){ return io.qt.core.Qt.ScrollBarPolicy.resolve(verticalScrollBarPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int verticalScrollBarPolicy_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::viewport()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget viewport(){ return viewport_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QWidget viewport_native_constfct(long __this__nativeId); /** *

See QAbstractScrollArea::viewportMargins()const

*/ @QtUninvokable protected final io.qt.core.@NonNull QMargins viewportMargins(){ return viewportMargins_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QMargins viewportMargins_native_constfct(long __this__nativeId); /** *

See QWidget::contextMenuEvent(QContextMenuEvent*)

*/ @QtUninvokable @Override protected void contextMenuEvent(io.qt.gui.@Nullable QContextMenuEvent arg__1){ contextMenuEvent_native_QContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void contextMenuEvent_native_QContextMenuEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::dragEnterEvent(QDragEnterEvent*)

*/ @QtUninvokable @Override protected void dragEnterEvent(io.qt.gui.@Nullable QDragEnterEvent arg__1){ dragEnterEvent_native_QDragEnterEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void dragEnterEvent_native_QDragEnterEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::dragLeaveEvent(QDragLeaveEvent*)

*/ @QtUninvokable @Override protected void dragLeaveEvent(io.qt.gui.@Nullable QDragLeaveEvent arg__1){ dragLeaveEvent_native_QDragLeaveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void dragLeaveEvent_native_QDragLeaveEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::dragMoveEvent(QDragMoveEvent*)

*/ @QtUninvokable @Override protected void dragMoveEvent(io.qt.gui.@Nullable QDragMoveEvent arg__1){ dragMoveEvent_native_QDragMoveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void dragMoveEvent_native_QDragMoveEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::dropEvent(QDropEvent*)

*/ @QtUninvokable @Override protected void dropEvent(io.qt.gui.@Nullable QDropEvent arg__1){ dropEvent_native_QDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void dropEvent_native_QDropEvent_ptr(long __this__nativeId, long arg__1); /** *

See QObject::event(QEvent*)

*/ @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 QObject::eventFilter(QObject*,QEvent*)

*/ @QtUninvokable @Override public boolean eventFilter(io.qt.core.@Nullable QObject arg__1, io.qt.core.@Nullable 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)); } @QtUninvokable private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long arg__1, long arg__2); /** *

See QWidget::keyPressEvent(QKeyEvent*)

*/ @QtUninvokable @Override protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent arg__1){ keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void keyPressEvent_native_QKeyEvent_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::mouseDoubleClickEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mouseDoubleClickEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ mouseDoubleClickEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mouseDoubleClickEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::mouseMoveEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mouseMoveEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::mousePressEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mousePressEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::mouseReleaseEvent(QMouseEvent*)

*/ @QtUninvokable @Override protected void mouseReleaseEvent(io.qt.gui.@Nullable QMouseEvent arg__1){ mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::paintEvent(QPaintEvent*)

*/ @QtUninvokable @Override protected void paintEvent(io.qt.gui.@Nullable QPaintEvent arg__1){ paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1); /** *

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); /** *

See QAbstractScrollArea::scrollContentsBy(int,int)

*/ @QtUninvokable protected void scrollContentsBy(int dx, int dy){ scrollContentsBy_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy); } @QtUninvokable private native void scrollContentsBy_native_int_int(long __this__nativeId, int dx, int dy); /** *

See QAbstractScrollArea::setupViewport(QWidget*)

*/ @QtUninvokable public void setupViewport(io.qt.widgets.@Nullable QWidget viewport){ setupViewport_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(viewport)); } @QtUninvokable private native void setupViewport_native_QWidget_ptr(long __this__nativeId, long viewport); /** *

See QWidget::sizeHint()const

*/ @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); /** *

See QAbstractScrollArea::viewportEvent(QEvent*)

*/ @QtUninvokable protected boolean viewportEvent(io.qt.core.@Nullable QEvent arg__1){ return viewportEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native boolean viewportEvent_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QAbstractScrollArea::viewportSizeHint()const

*/ @QtUninvokable protected io.qt.core.@NonNull QSize viewportSizeHint(){ return viewportSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize viewportSizeHint_native_constfct(long __this__nativeId); /** *

See QWidget::wheelEvent(QWheelEvent*)

*/ @QtUninvokable @Override protected void wheelEvent(io.qt.gui.@Nullable QWheelEvent arg__1){ wheelEvent_native_QWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @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. * @hidden */ @NativeAccess protected QAbstractScrollArea(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QAbstractScrollArea(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @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..."); } /** *

Overloaded constructor for {@link #QAbstractScrollArea(io.qt.widgets.QWidget)} * with parent = null.

*/ public QAbstractScrollArea() { this((io.qt.widgets.QWidget)null); } /** *

Overloaded function for {@link #addScrollBarWidget(io.qt.widgets.QWidget, io.qt.core.Qt.Alignment)}.

*/ @QtUninvokable public final void addScrollBarWidget(io.qt.widgets.@Nullable QWidget widget, io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) { addScrollBarWidget(widget, new io.qt.core.Qt.Alignment(alignment)); } /** * @hidden *

Kotlin property getter. In Java use {@link #horizontalScrollBarPolicy()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull ScrollBarPolicy getHorizontalScrollBarPolicy() { return horizontalScrollBarPolicy(); } /** *

Overloaded function for {@link #scrollBarWidgets(io.qt.core.Qt.Alignment)}.

*/ @QtUninvokable public final io.qt.core.@NonNull QList scrollBarWidgets(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) { return scrollBarWidgets(new io.qt.core.Qt.Alignment(alignment)); } /** * @hidden *

Kotlin property getter. In Java use {@link #sizeAdjustPolicy()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QAbstractScrollArea.@NonNull SizeAdjustPolicy getSizeAdjustPolicy() { return sizeAdjustPolicy(); } /** * @hidden *

Kotlin property getter. In Java use {@link #verticalScrollBarPolicy()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull ScrollBarPolicy getVerticalScrollBarPolicy() { return verticalScrollBarPolicy(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy