
io.qt.widgets.QMdiSubWindow Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMdiSubWindow.class);
/**
* Java wrapper for Qt enum QMdiSubWindow::SubWindowOption
*
* @see SubWindowOptions
*/
public enum SubWindowOption implements io.qt.QtFlagEnumerator {
AllowOutsideAreaHorizontally(1),
AllowOutsideAreaVertically(2),
RubberBandResize(4),
RubberBandMove(8);
private SubWindowOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public SubWindowOptions asFlags() {
return new SubWindowOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public SubWindowOptions combined(SubWindowOption e) {
return new SubWindowOptions(this, e);
}
/**
* Creates a new {@link SubWindowOptions} from the entries.
* @param values entries
* @return new flag
*/
public static SubWindowOptions flags(SubWindowOption ... values) {
return new SubWindowOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link SubWindowOption}
*/
public static final class SubWindowOptions extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0xf07017c7d3232589L;
/**
* Creates a new SubWindowOptions where the flags in args
are set.
* @param args enum entries
*/
public SubWindowOptions(SubWindowOption ... 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 SubWindowOptions combined(SubWindowOption e){
return new SubWindowOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final SubWindowOptions setFlag(SubWindowOption e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final SubWindowOptions setFlag(SubWindowOption e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this SubWindowOptions.
* @return array of enum entries
*/
@Override
public final SubWindowOption[] flags(){
return super.flags(SubWindowOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final SubWindowOptions clone(){
return new SubWindowOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(SubWindowOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* See QMdiSubWindow::aboutToActivate()
*/
public final Signal0 aboutToActivate = new Signal0();
/**
* See QMdiSubWindow::windowStateChanged(Qt::WindowStates,Qt::WindowStates)
*/
public final Signal2 windowStateChanged = new Signal2<>();
/**
* Overloaded constructor for {@link #QMdiSubWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QMdiSubWindow(io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowType ... flags){
this(parent, new io.qt.core.Qt.WindowFlags(flags));
}
/**
* 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.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));
}
/**
* See QMdiSubWindow::QMdiSubWindow(QWidget*,Qt::WindowFlags)
*/
public QMdiSubWindow(io.qt.widgets.QWidget parent, io.qt.core.Qt.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
*/
@io.qt.QtUninvokable
public final boolean isShaded(){
return isShaded_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isShaded_native_constfct(long __this__nativeId);
/**
* See QMdiSubWindow::keyboardPageStep()const
*/
@io.qt.QtPropertyReader(name="keyboardPageStep")
@io.qt.QtUninvokable
public final int keyboardPageStep(){
return keyboardPageStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int keyboardPageStep_native_constfct(long __this__nativeId);
/**
* See QMdiSubWindow::keyboardSingleStep()const
*/
@io.qt.QtPropertyReader(name="keyboardSingleStep")
@io.qt.QtUninvokable
public final int keyboardSingleStep(){
return keyboardSingleStep_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int keyboardSingleStep_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public final io.qt.widgets.QWidget maximizedButtonsWidget(){
return maximizedButtonsWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget maximizedButtonsWidget_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public final io.qt.widgets.QWidget maximizedSystemMenuIconWidget(){
return maximizedSystemMenuIconWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget maximizedSystemMenuIconWidget_native_constfct(long __this__nativeId);
/**
* See QMdiSubWindow::mdiArea()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QMdiArea mdiArea(){
return mdiArea_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QMdiArea mdiArea_native_constfct(long __this__nativeId);
/**
* See QMdiSubWindow::setKeyboardPageStep(int)
*/
@io.qt.QtPropertyWriter(name="keyboardPageStep")
@io.qt.QtUninvokable
public final void setKeyboardPageStep(int step){
setKeyboardPageStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), step);
}
@io.qt.QtUninvokable
private native void setKeyboardPageStep_native_int(long __this__nativeId, int step);
/**
* See QMdiSubWindow::setKeyboardSingleStep(int)
*/
@io.qt.QtPropertyWriter(name="keyboardSingleStep")
@io.qt.QtUninvokable
public final void setKeyboardSingleStep(int step){
setKeyboardSingleStep_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), step);
}
@io.qt.QtUninvokable
private native void setKeyboardSingleStep_native_int(long __this__nativeId, int step);
/**
* Overloaded function for {@link #setOption(io.qt.widgets.QMdiSubWindow.SubWindowOption, boolean)}
* with on = true
.
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.widgets.QMdiSubWindow.SubWindowOption option) {
setOption(option, (boolean)true);
}
/**
* See QMdiSubWindow::setOption(QMdiSubWindow::SubWindowOption,bool)
*/
@io.qt.QtUninvokable
public final void setOption(io.qt.widgets.QMdiSubWindow.SubWindowOption option, boolean on){
setOption_native_QMdiSubWindow_SubWindowOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on);
}
@io.qt.QtUninvokable
private native void setOption_native_QMdiSubWindow_SubWindowOption_bool(long __this__nativeId, int option, boolean on);
/**
* See QMdiSubWindow::setSystemMenu(QMenu*)
*/
@io.qt.QtUninvokable
public final void setSystemMenu(io.qt.widgets.QMenu systemMenu){
setSystemMenu_native_QMenu_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(systemMenu));
}
@io.qt.QtUninvokable
private native void setSystemMenu_native_QMenu_ptr(long __this__nativeId, long systemMenu);
/**
* See QMdiSubWindow::setWidget(QWidget*)
*/
@io.qt.QtUninvokable
public final void setWidget(io.qt.widgets.QWidget widget){
setWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@io.qt.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
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QMenu systemMenu(){
return systemMenu_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QMenu systemMenu_native_constfct(long __this__nativeId);
/**
* See QMdiSubWindow::testOption(QMdiSubWindow::SubWindowOption)const
*/
@io.qt.QtUninvokable
public final boolean testOption(io.qt.widgets.QMdiSubWindow.SubWindowOption arg__1){
return testOption_native_QMdiSubWindow_SubWindowOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native boolean testOption_native_QMdiSubWindow_SubWindowOption_constfct(long __this__nativeId, int arg__1);
/**
* See QMdiSubWindow::widget()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QWidget widget(){
return widget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QWidget widget_native_constfct(long __this__nativeId);
/**
* See QWidget::changeEvent(QEvent*)
*/
@io.qt.QtUninvokable
protected void changeEvent(io.qt.core.QEvent changeEvent){
changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(changeEvent));
}
@io.qt.QtUninvokable
private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long changeEvent);
/**
* See QObject::childEvent(QChildEvent*)
*/
@io.qt.QtUninvokable
protected void childEvent(io.qt.core.QChildEvent childEvent){
childEvent_native_QChildEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(childEvent));
}
@io.qt.QtUninvokable
private native void childEvent_native_QChildEvent_ptr(long __this__nativeId, long childEvent);
/**
* See QWidget::closeEvent(QCloseEvent*)
*/
@io.qt.QtUninvokable
protected void closeEvent(io.qt.gui.QCloseEvent closeEvent){
closeEvent_native_QCloseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(closeEvent));
}
@io.qt.QtUninvokable
private native void closeEvent_native_QCloseEvent_ptr(long __this__nativeId, long closeEvent);
/**
* See QWidget::contextMenuEvent(QContextMenuEvent*)
*/
@io.qt.QtUninvokable
protected void contextMenuEvent(io.qt.gui.QContextMenuEvent contextMenuEvent){
contextMenuEvent_native_QContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(contextMenuEvent));
}
@io.qt.QtUninvokable
private native void contextMenuEvent_native_QContextMenuEvent_ptr(long __this__nativeId, long contextMenuEvent);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent event){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long event);
/**
* See QObject::eventFilter(QObject*,QEvent*)
*/
@io.qt.QtUninvokable
public boolean eventFilter(io.qt.core.QObject object, io.qt.core.QEvent event){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@io.qt.QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long object, long event);
/**
* See QWidget::focusInEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusInEvent(io.qt.gui.QFocusEvent focusInEvent){
focusInEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(focusInEvent));
}
@io.qt.QtUninvokable
private native void focusInEvent_native_QFocusEvent_ptr(long __this__nativeId, long focusInEvent);
/**
* See QWidget::focusOutEvent(QFocusEvent*)
*/
@io.qt.QtUninvokable
protected void focusOutEvent(io.qt.gui.QFocusEvent focusOutEvent){
focusOutEvent_native_QFocusEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(focusOutEvent));
}
@io.qt.QtUninvokable
private native void focusOutEvent_native_QFocusEvent_ptr(long __this__nativeId, long focusOutEvent);
/**
* See QWidget::hideEvent(QHideEvent*)
*/
@io.qt.QtUninvokable
protected void hideEvent(io.qt.gui.QHideEvent hideEvent){
hideEvent_native_QHideEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(hideEvent));
}
@io.qt.QtUninvokable
private native void hideEvent_native_QHideEvent_ptr(long __this__nativeId, long hideEvent);
/**
* See QWidget::keyPressEvent(QKeyEvent*)
*/
@io.qt.QtUninvokable
protected void keyPressEvent(io.qt.gui.QKeyEvent keyEvent){
keyPressEvent_native_QKeyEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(keyEvent));
}
@io.qt.QtUninvokable
private native void keyPressEvent_native_QKeyEvent_ptr(long __this__nativeId, long keyEvent);
/**
* See QWidget::leaveEvent(QEvent*)
*/
@io.qt.QtUninvokable
protected void leaveEvent(io.qt.core.QEvent leaveEvent){
leaveEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(leaveEvent));
}
@io.qt.QtUninvokable
private native void leaveEvent_native_QEvent_ptr(long __this__nativeId, long leaveEvent);
/**
* 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 mouseEvent){
mouseDoubleClickEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mouseEvent));
}
@io.qt.QtUninvokable
private native void mouseDoubleClickEvent_native_QMouseEvent_ptr(long __this__nativeId, long mouseEvent);
/**
* See QWidget::mouseMoveEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseMoveEvent(io.qt.gui.QMouseEvent mouseEvent){
mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mouseEvent));
}
@io.qt.QtUninvokable
private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long mouseEvent);
/**
* See QWidget::mousePressEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mousePressEvent(io.qt.gui.QMouseEvent mouseEvent){
mousePressEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mouseEvent));
}
@io.qt.QtUninvokable
private native void mousePressEvent_native_QMouseEvent_ptr(long __this__nativeId, long mouseEvent);
/**
* See QWidget::mouseReleaseEvent(QMouseEvent*)
*/
@io.qt.QtUninvokable
protected void mouseReleaseEvent(io.qt.gui.QMouseEvent mouseEvent){
mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mouseEvent));
}
@io.qt.QtUninvokable
private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long mouseEvent);
/**
* See QWidget::moveEvent(QMoveEvent*)
*/
@io.qt.QtUninvokable
protected void moveEvent(io.qt.gui.QMoveEvent moveEvent){
moveEvent_native_QMoveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(moveEvent));
}
@io.qt.QtUninvokable
private native void moveEvent_native_QMoveEvent_ptr(long __this__nativeId, long moveEvent);
/**
* See QWidget::paintEvent(QPaintEvent*)
*/
@io.qt.QtUninvokable
protected void paintEvent(io.qt.gui.QPaintEvent paintEvent){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(paintEvent));
}
@io.qt.QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long paintEvent);
/**
* See QWidget::resizeEvent(QResizeEvent*)
*/
@io.qt.QtUninvokable
protected void resizeEvent(io.qt.gui.QResizeEvent resizeEvent){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(resizeEvent));
}
@io.qt.QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long resizeEvent);
/**
* See QWidget::showEvent(QShowEvent*)
*/
@io.qt.QtUninvokable
protected void showEvent(io.qt.gui.QShowEvent showEvent){
showEvent_native_QShowEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(showEvent));
}
@io.qt.QtUninvokable
private native void showEvent_native_QShowEvent_ptr(long __this__nativeId, long showEvent);
/**
*
*/
@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 QObject::timerEvent(QTimerEvent*)
*/
@io.qt.QtUninvokable
protected void timerEvent(io.qt.core.QTimerEvent timerEvent){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(timerEvent));
}
@io.qt.QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long timerEvent);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QMdiSubWindow(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 QMdiSubWindow(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QMdiSubWindow instance, QDeclarativeConstructor constructor);
}