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

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

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


/**
 * 

Rectangle or line that can indicate a selection or a boundary

*

Java wrapper for Qt class QRubberBand

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

Java wrapper for Qt enum QRubberBand::Shape

*/ @io.qt.QtUnlistedEnum public enum Shape implements io.qt.QtEnumerator { Line(0), Rectangle(1); private Shape(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 Shape resolve(int value) { switch (value) { case 0: return Line; case 1: return Rectangle; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Overloaded constructor for {@link #QRubberBand(io.qt.widgets.QRubberBand.Shape, io.qt.widgets.QWidget)} * with arg__2 = null.

*/ public QRubberBand(io.qt.widgets.QRubberBand.Shape arg__1) { this(arg__1, (io.qt.widgets.QWidget)null); } /** *

See QRubberBand::QRubberBand(QRubberBand::Shape,QWidget*)

*/ public QRubberBand(io.qt.widgets.QRubberBand.Shape arg__1, io.qt.widgets.QWidget arg__2){ super((QPrivateConstructor)null); initialize_native(this, arg__1, arg__2); } private native static void initialize_native(QRubberBand instance, io.qt.widgets.QRubberBand.Shape arg__1, io.qt.widgets.QWidget arg__2); /** *

See QRubberBand::move(QPoint)

*/ @io.qt.QtUninvokable public final void moveRubberBand(io.qt.core.QPoint p){ moveRubberBand_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p)); } @io.qt.QtUninvokable private native void moveRubberBand_native_cref_QPoint(long __this__nativeId, long p); /** *

See QRubberBand::move(int,int)

*/ @io.qt.QtUninvokable public final void moveRubberBand(int x, int y){ moveRubberBand_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), x, y); } @io.qt.QtUninvokable private native void moveRubberBand_native_int_int(long __this__nativeId, int x, int y); /** *

See QRubberBand::resize(QSize)

*/ @io.qt.QtUninvokable public final void resizeRubberBand(io.qt.core.QSize s){ resizeRubberBand_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(s)); } @io.qt.QtUninvokable private native void resizeRubberBand_native_cref_QSize(long __this__nativeId, long s); /** *

See QRubberBand::resize(int,int)

*/ @io.qt.QtUninvokable public final void resizeRubberBand(int w, int h){ resizeRubberBand_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), w, h); } @io.qt.QtUninvokable private native void resizeRubberBand_native_int_int(long __this__nativeId, int w, int h); /** *

See QRubberBand::setGeometry(QRect)

*/ @io.qt.QtUninvokable public final void setRubberBandGeometry(io.qt.core.QRect r){ setRubberBandGeometry_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(r)); } @io.qt.QtUninvokable private native void setRubberBandGeometry_native_cref_QRect(long __this__nativeId, long r); /** *

See QRubberBand::setGeometry(int,int,int,int)

*/ @io.qt.QtUninvokable public final void setRubberBandGeometry(int x, int y, int w, int h){ setRubberBandGeometry_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, w, h); } @io.qt.QtUninvokable private native void setRubberBandGeometry_native_int_int_int_int(long __this__nativeId, int x, int y, int w, int h); /** *

See QRubberBand::shape()const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QRubberBand.Shape shape(){ return io.qt.widgets.QRubberBand.Shape.resolve(shape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int shape_native_constfct(long __this__nativeId); /** *

See QWidget::changeEvent(QEvent*)

*/ @io.qt.QtUninvokable protected void changeEvent(io.qt.core.QEvent arg__1){ changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent e){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long e); /** *

See QRubberBand::initStyleOption(QStyleOptionRubberBand*)const

*/ @io.qt.QtUninvokable protected void initStyleOption(io.qt.widgets.QStyleOptionRubberBand option){ initStyleOption_native_QStyleOptionRubberBand_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option); } @io.qt.QtUninvokable private native void initStyleOption_native_QStyleOptionRubberBand_ptr_constfct(long __this__nativeId, io.qt.widgets.QStyleOptionRubberBand option); /** *

See QWidget::moveEvent(QMoveEvent*)

*/ @io.qt.QtUninvokable protected void moveEvent(io.qt.gui.QMoveEvent arg__1){ moveEvent_native_QMoveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void moveEvent_native_QMoveEvent_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 QWidget::showEvent(QShowEvent*)

*/ @io.qt.QtUninvokable protected void showEvent(io.qt.gui.QShowEvent arg__1){ showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long arg__1); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QRubberBand(QPrivateConstructor p) { super(p); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy