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

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

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

import io.qt.*;


/**
 * 

Subwindow class for QMdiArea

*

Java wrapper for Qt class QMdiSubWindow

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

Java wrapper for Qt enum QMdiSubWindow::SubWindowOption

* * @see SubWindowOptions */ public enum SubWindowOption implements QtFlagEnumerator { /** *

Representing QMdiSubWindow::AllowOutsideAreaHorizontally

*/ AllowOutsideAreaHorizontally(1), /** *

Representing QMdiSubWindow::AllowOutsideAreaVertically

*/ AllowOutsideAreaVertically(2), /** *

Representing QMdiSubWindow::RubberBandResize

*/ RubberBandResize(4), /** *

Representing QMdiSubWindow::RubberBandMove

*/ RubberBandMove(8); static { QtJambi_LibraryUtilities.initialize(); } private SubWindowOption(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull SubWindowOptions asFlags() { return new SubWindowOptions(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull SubWindowOptions combined(@NonNull SubWindowOption e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull SubWindowOptions cleared(@NonNull SubWindowOption e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link SubWindowOptions} from the entries. * @param values entries * @return new flag */ public static @NonNull SubWindowOptions flags(@Nullable SubWindowOption @NonNull... values) { return new SubWindowOptions(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull SubWindowOption resolve(int value) { switch (value) { case 1: return AllowOutsideAreaHorizontally; case 2: return AllowOutsideAreaVertically; case 4: return RubberBandResize; case 8: return RubberBandMove; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link SubWindowOption} */ public static final class SubWindowOptions extends QFlags implements Comparable { private static final long serialVersionUID = 0xf07017c7d3232589L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new SubWindowOptions where the flags in args are set. * @param args enum entries */ public SubWindowOptions(@Nullable SubWindowOption @NonNull... args){ super(args); } /** * Creates a new SubWindowOptions with given value. * @param value */ public SubWindowOptions(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new SubWindowOptions */ @Override public final @NonNull SubWindowOptions combined(@StrictNonNull SubWindowOption e){ return new SubWindowOptions(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull SubWindowOptions setFlag(@Nullable SubWindowOption e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final @NonNull SubWindowOptions setFlag(@Nullable SubWindowOption e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this SubWindowOptions. * @return array of enum entries */ @Override public final @NonNull SubWindowOption @NonNull[] flags(){ return super.flags(SubWindowOption.values()); } /** * {@inheritDoc} */ @Override public final @NonNull SubWindowOptions clone(){ return new SubWindowOptions(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull SubWindowOptions other){ return Integer.compare(value(), other.value()); } } /** *

See QMdiSubWindow::aboutToActivate()

*/ public final @NonNull Signal0 aboutToActivate = new Signal0(); /** *

See QMdiSubWindow::windowStateChanged(Qt::WindowStates,Qt::WindowStates)

*/ public final @NonNull Signal2 windowStateChanged = new Signal2<>(); /** *

See QMdiSubWindow::QMdiSubWindow(QWidget*,Qt::WindowFlags)

*/ public QMdiSubWindow(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowFlags flags){ super((QPrivateConstructor)null); initialize_native(this, parent, flags); } private native static void initialize_native(QMdiSubWindow instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags); /** *

See QMdiSubWindow::isShaded()const

*/ @QtUninvokable public final boolean isShaded(){ return isShaded_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isShaded_native_constfct(long __this__nativeId); /** *

See QMdiSubWindow::keyboardPageStep()const

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

See QMdiSubWindow::keyboardSingleStep()const

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

See QMdiSubWindow::maximizedButtonsWidget()const

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

See QMdiSubWindow::maximizedSystemMenuIconWidget()const

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

See QMdiSubWindow::mdiArea()const

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

See QMdiSubWindow::setKeyboardPageStep(int)

*/ @QtPropertyWriter(name="keyboardPageStep") @QtUninvokable public final void setKeyboardPageStep(int step){ setKeyboardPageStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), step); } @QtUninvokable private native void setKeyboardPageStep_native_int(long __this__nativeId, int step); /** *

See QMdiSubWindow::setKeyboardSingleStep(int)

*/ @QtPropertyWriter(name="keyboardSingleStep") @QtUninvokable public final void setKeyboardSingleStep(int step){ setKeyboardSingleStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), step); } @QtUninvokable private native void setKeyboardSingleStep_native_int(long __this__nativeId, int step); /** *

See QMdiSubWindow::setOption(QMdiSubWindow::SubWindowOption,bool)

*/ @QtUninvokable public final void setOption(io.qt.widgets.QMdiSubWindow.@NonNull SubWindowOption option, boolean on){ setOption_native_QMdiSubWindow_SubWindowOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on); } @QtUninvokable private native void setOption_native_QMdiSubWindow_SubWindowOption_bool(long __this__nativeId, int option, boolean on); /** *

See QMdiSubWindow::setSystemMenu(QMenu*)

*/ @QtUninvokable public final void setSystemMenu(io.qt.widgets.@Nullable QMenu systemMenu){ setSystemMenu_native_QMenu_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(systemMenu)); } @QtUninvokable private native void setSystemMenu_native_QMenu_ptr(long __this__nativeId, long systemMenu); /** *

See QMdiSubWindow::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 QMdiSubWindow::showShaded()

*/ public final void showShaded(){ showShaded_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void showShaded_native(long __this__nativeId); /** *

See QMdiSubWindow::showSystemMenu()

*/ public final void showSystemMenu(){ showSystemMenu_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void showSystemMenu_native(long __this__nativeId); /** *

See QMdiSubWindow::systemMenu()const

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

See QMdiSubWindow::testOption(QMdiSubWindow::SubWindowOption)const

*/ @QtUninvokable public final boolean testOption(io.qt.widgets.QMdiSubWindow.@NonNull SubWindowOption arg__1){ return testOption_native_QMdiSubWindow_SubWindowOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native boolean testOption_native_QMdiSubWindow_SubWindowOption_constfct(long __this__nativeId, int arg__1); /** *

See QMdiSubWindow::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 QWidget::changeEvent(QEvent*)

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

See QObject::childEvent(QChildEvent*)

*/ @QtUninvokable @Override protected void childEvent(io.qt.core.@Nullable QChildEvent childEvent){ childEvent_native_QChildEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(childEvent)); } @QtUninvokable private native void childEvent_native_QChildEvent_ptr(long __this__nativeId, long childEvent); /** *

See QWidget::closeEvent(QCloseEvent*)

*/ @QtUninvokable @Override protected void closeEvent(io.qt.gui.@Nullable QCloseEvent closeEvent){ closeEvent_native_QCloseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(closeEvent)); } @QtUninvokable private native void closeEvent_native_QCloseEvent_ptr(long __this__nativeId, long closeEvent); /** *

See QWidget::contextMenuEvent(QContextMenuEvent*)

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

See QObject::event(QEvent*)

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

See QObject::eventFilter(QObject*,QEvent*)

*/ @QtUninvokable @Override public boolean eventFilter(io.qt.core.@Nullable QObject object, io.qt.core.@Nullable QEvent event){ return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @QtUninvokable private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long object, long event); /** *

See QWidget::focusInEvent(QFocusEvent*)

*/ @QtUninvokable @Override protected void focusInEvent(io.qt.gui.@Nullable QFocusEvent focusInEvent){ focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(focusInEvent)); } @QtUninvokable private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long focusInEvent); /** *

See QWidget::focusOutEvent(QFocusEvent*)

*/ @QtUninvokable @Override protected void focusOutEvent(io.qt.gui.@Nullable QFocusEvent focusOutEvent){ focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(focusOutEvent)); } @QtUninvokable private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long focusOutEvent); /** *

See QWidget::hideEvent(QHideEvent*)

*/ @QtUninvokable @Override protected void hideEvent(io.qt.gui.@Nullable QHideEvent hideEvent){ hideEvent_native_QHideEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(hideEvent)); } @QtUninvokable private native void hideEvent_native_QHideEvent_ptr(long __this__nativeId, long hideEvent); /** *

See QWidget::keyPressEvent(QKeyEvent*)

*/ @QtUninvokable @Override protected void keyPressEvent(io.qt.gui.@Nullable QKeyEvent keyEvent){ keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(keyEvent)); } @QtUninvokable private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long keyEvent); /** *

See QWidget::leaveEvent(QEvent*)

*/ @QtUninvokable @Override protected void leaveEvent(io.qt.core.@Nullable QEvent leaveEvent){ leaveEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(leaveEvent)); } @QtUninvokable private native void leaveEvent_native_QEvent_ptr(long __this__nativeId, long leaveEvent); /** *

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 mouseEvent){ mouseDoubleClickEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mouseEvent)); } @QtUninvokable private native void mouseDoubleClickEvent_native_QMouseEvent_ptr(long __this__nativeId, long mouseEvent); /** *

See QWidget::mouseMoveEvent(QMouseEvent*)

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

See QWidget::mousePressEvent(QMouseEvent*)

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

See QWidget::mouseReleaseEvent(QMouseEvent*)

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

See QWidget::moveEvent(QMoveEvent*)

*/ @QtUninvokable @Override protected void moveEvent(io.qt.gui.@Nullable QMoveEvent moveEvent){ moveEvent_native_QMoveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(moveEvent)); } @QtUninvokable private native void moveEvent_native_QMoveEvent_ptr(long __this__nativeId, long moveEvent); /** *

See QWidget::paintEvent(QPaintEvent*)

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

See QWidget::resizeEvent(QResizeEvent*)

*/ @QtUninvokable @Override protected void resizeEvent(io.qt.gui.@Nullable QResizeEvent resizeEvent){ resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(resizeEvent)); } @QtUninvokable private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long resizeEvent); /** *

See QWidget::showEvent(QShowEvent*)

*/ @QtUninvokable @Override protected void showEvent(io.qt.gui.@Nullable QShowEvent showEvent){ showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(showEvent)); } @QtUninvokable private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long showEvent); /** *

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 QObject::timerEvent(QTimerEvent*)

*/ @QtUninvokable @Override protected void timerEvent(io.qt.core.@Nullable QTimerEvent timerEvent){ timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(timerEvent)); } @QtUninvokable private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long timerEvent); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMdiSubWindow(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QMdiSubWindow(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QMdiSubWindow instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QMdiSubWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)} * with flags = new io.qt.core.Qt.WindowFlags(0).

*/ public QMdiSubWindow(io.qt.widgets.@Nullable QWidget parent) { this(parent, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QMdiSubWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}

*

with:

    *
  • parent = null
  • *
  • flags = new io.qt.core.Qt.WindowFlags(0)
  • *
*/ public QMdiSubWindow() { this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QMdiSubWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.

*/ public QMdiSubWindow(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... flags) { this(parent, new io.qt.core.Qt.WindowFlags(flags)); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getKeyboardPageStep() { return keyboardPageStep(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getKeyboardSingleStep() { return keyboardSingleStep(); } /** *

Overloaded function for {@link #setOption(io.qt.widgets.QMdiSubWindow.SubWindowOption, boolean)} * with on = true.

*/ @QtUninvokable public final void setOption(io.qt.widgets.QMdiSubWindow.@NonNull SubWindowOption option) { setOption(option, (boolean)true); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy