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

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

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

import io.qt.*;


/**
 * 

Scrolling view onto another widget

*

Java wrapper for Qt class QScrollArea

*/ public class QScrollArea extends io.qt.widgets.QAbstractScrollArea { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QScrollArea.class); /** *

See QScrollArea::QScrollArea(QWidget*)

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

See QScrollArea::alignment()const

*/ @QtPropertyReader(name="alignment") @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))); } @QtUninvokable private native int alignment_native_constfct(long __this__nativeId); /** *

See QScrollArea::ensureVisible(int,int,int,int)

*/ @QtUninvokable public final void ensureVisible(int x, int y, int xmargin, int ymargin){ ensureVisible_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, xmargin, ymargin); } @QtUninvokable private native void ensureVisible_native_int_int_int_int(long __this__nativeId, int x, int y, int xmargin, int ymargin); /** *

See QScrollArea::ensureWidgetVisible(QWidget*,int,int)

*/ @QtUninvokable public final void ensureWidgetVisible(io.qt.widgets.@Nullable QWidget childWidget, int xmargin, int ymargin){ ensureWidgetVisible_native_QWidget_ptr_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(childWidget), xmargin, ymargin); } @QtUninvokable private native void ensureWidgetVisible_native_QWidget_ptr_int_int(long __this__nativeId, long childWidget, int xmargin, int ymargin); /** *

See QScrollArea::setAlignment(Qt::Alignment)

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

See QScrollArea::setWidget(QWidget*)

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

See QScrollArea::setWidgetResizable(bool)

*/ @QtPropertyWriter(name="widgetResizable") @QtUninvokable public final void setWidgetResizable(boolean resizable){ setWidgetResizable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), resizable); } @QtUninvokable private native void setWidgetResizable_native_bool(long __this__nativeId, boolean resizable); /** *

See QScrollArea::takeWidget()

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

See QScrollArea::widget()const

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

See QScrollArea::widgetResizable()const

*/ @QtPropertyReader(name="widgetResizable") @QtUninvokable public final boolean widgetResizable(){ return widgetResizable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean widgetResizable_native_constfct(long __this__nativeId); /** *

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::focusNextPrevChild(bool)

*/ @QtUninvokable @Override protected boolean focusNextPrevChild(boolean next){ return focusNextPrevChild_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), next); } @QtUninvokable private native boolean focusNextPrevChild_native_bool(long __this__nativeId, boolean next); /** *

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 @Override 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 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::viewportSizeHint()const

*/ @QtUninvokable @Override 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); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QScrollArea(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QScrollArea(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QScrollArea instance, QDeclarativeConstructor constructor); /** *

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

*/ public QScrollArea() { this((io.qt.widgets.QWidget)null); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull Alignment getAlignment() { return alignment(); } /** *

Overloaded function for {@link #ensureVisible(int, int, int, int)} * with ymargin = 50.

*/ @QtUninvokable public final void ensureVisible(int x, int y, int xmargin) { ensureVisible(x, y, xmargin, (int)50); } /** *

Overloaded function for {@link #ensureVisible(int, int, int, int)}

*

with:

    *
  • xmargin = 50
  • *
  • ymargin = 50
  • *
*/ @QtUninvokable public final void ensureVisible(int x, int y) { ensureVisible(x, y, (int)50, (int)50); } /** *

Overloaded function for {@link #ensureWidgetVisible(io.qt.widgets.QWidget, int, int)} * with ymargin = 50.

*/ @QtUninvokable public final void ensureWidgetVisible(io.qt.widgets.@Nullable QWidget childWidget, int xmargin) { ensureWidgetVisible(childWidget, xmargin, (int)50); } /** *

Overloaded function for {@link #ensureWidgetVisible(io.qt.widgets.QWidget, int, int)}

*

with:

    *
  • xmargin = 50
  • *
  • ymargin = 50
  • *
*/ @QtUninvokable public final void ensureWidgetVisible(io.qt.widgets.@Nullable QWidget childWidget) { ensureWidgetVisible(childWidget, (int)50, (int)50); } /** *

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

*/ @QtUninvokable public final void setAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... arg__1) { setAlignment(new io.qt.core.Qt.Alignment(arg__1)); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getWidgetResizable() { return widgetResizable(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy