io.qt.widgets.QMainWindow Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Main application window
* Java wrapper for Qt class QMainWindow
*/
public class QMainWindow 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(QMainWindow.class);
/**
* Java wrapper for Qt enum QMainWindow::DockOption
*
* @see DockOptions
*/
public enum DockOption implements QtFlagEnumerator {
/**
* Representing QMainWindow:: AnimatedDocks
*/
AnimatedDocks(1),
/**
* Representing QMainWindow:: AllowNestedDocks
*/
AllowNestedDocks(2),
/**
* Representing QMainWindow:: AllowTabbedDocks
*/
AllowTabbedDocks(4),
/**
* Representing QMainWindow:: ForceTabbedDocks
*/
ForceTabbedDocks(8),
/**
* Representing QMainWindow:: VerticalTabs
*/
VerticalTabs(16),
/**
* Representing QMainWindow:: GroupedDragging
*/
GroupedDragging(32);
static {
QtJambi_LibraryUtilities.initialize();
}
private DockOption(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
@Override
public @NonNull DockOptions asFlags() {
return new DockOptions(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull DockOptions combined(@NonNull DockOption 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 DockOptions cleared(@NonNull DockOption e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link DockOptions} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull DockOptions flags(@Nullable DockOption @NonNull... values) {
return new DockOptions(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull DockOption resolve(int value) {
switch (value) {
case 1: return AnimatedDocks;
case 2: return AllowNestedDocks;
case 4: return AllowTabbedDocks;
case 8: return ForceTabbedDocks;
case 16: return VerticalTabs;
case 32: return GroupedDragging;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link DockOption}
*/
public static final class DockOptions extends QFlags implements Comparable {
private static final long serialVersionUID = 0x454861bbfcaf7a41L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new DockOptions where the flags in args
are set.
* @param args enum entries
*/
public DockOptions(@Nullable DockOption @NonNull... args){
super(args);
}
/**
* Creates a new DockOptions with given value
.
* @param value
*/
public DockOptions(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new DockOptions
*/
@Override
public final @NonNull DockOptions combined(@StrictNonNull DockOption e){
return new DockOptions(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
@Override
public final @NonNull DockOptions setFlag(@Nullable DockOption e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
@Override
public final @NonNull DockOptions setFlag(@Nullable DockOption 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 DockOptions.
* @return array of enum entries
*/
@Override
public final @NonNull DockOption @NonNull[] flags(){
return super.flags(DockOption.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull DockOptions clone(){
return new DockOptions(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull DockOptions other){
return Integer.compare(value(), other.value());
}
}
/**
* See QMainWindow:: iconSizeChanged(QSize)
*/
public final @NonNull Signal1 iconSizeChanged = new Signal1<>();
/**
* See QMainWindow:: tabifiedDockWidgetActivated(QDockWidget*)
*/
public final @NonNull Signal1 tabifiedDockWidgetActivated = new Signal1<>();
/**
* See QMainWindow:: toolButtonStyleChanged(Qt::ToolButtonStyle)
*/
public final @NonNull Signal1 toolButtonStyleChanged = new Signal1<>();
/**
* See QMainWindow:: QMainWindow(QWidget*, Qt::WindowFlags)
*/
public QMainWindow(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(QMainWindow instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags flags);
/**
* See QMainWindow:: addDockWidget(Qt::DockWidgetArea, QDockWidget*)
*/
@QtUninvokable
public final void addDockWidget(io.qt.core.Qt.@NonNull DockWidgetArea area, io.qt.widgets.@Nullable QDockWidget dockwidget){
addDockWidget_native_Qt_DockWidgetArea_QDockWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), area.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(dockwidget));
}
@QtUninvokable
private native void addDockWidget_native_Qt_DockWidgetArea_QDockWidget_ptr(long __this__nativeId, int area, long dockwidget);
/**
* See QMainWindow:: addDockWidget(Qt::DockWidgetArea, QDockWidget*, Qt::Orientation)
*/
@QtUninvokable
public final void addDockWidget(io.qt.core.Qt.@NonNull DockWidgetArea area, io.qt.widgets.@Nullable QDockWidget dockwidget, io.qt.core.Qt.@NonNull Orientation orientation){
addDockWidget_native_Qt_DockWidgetArea_QDockWidget_ptr_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), area.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(dockwidget), orientation.value());
}
@QtUninvokable
private native void addDockWidget_native_Qt_DockWidgetArea_QDockWidget_ptr_Qt_Orientation(long __this__nativeId, int area, long dockwidget, int orientation);
/**
* See QMainWindow:: addToolBar(QString)
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QToolBar addToolBar(java.lang.@NonNull String title){
return addToolBar_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), title);
}
@QtUninvokable
private native io.qt.widgets.QToolBar addToolBar_native_cref_QString(long __this__nativeId, java.lang.String title);
/**
* See QMainWindow:: addToolBar(QToolBar*)
*/
@QtUninvokable
public final void addToolBar(io.qt.widgets.@Nullable QToolBar toolbar){
addToolBar_native_QToolBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toolbar));
}
@QtUninvokable
private native void addToolBar_native_QToolBar_ptr(long __this__nativeId, long toolbar);
/**
* See QMainWindow:: addToolBar(Qt::ToolBarArea, QToolBar*)
*/
@QtUninvokable
public final void addToolBar(io.qt.core.Qt.@NonNull ToolBarArea area, io.qt.widgets.@Nullable QToolBar toolbar){
addToolBar_native_Qt_ToolBarArea_QToolBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), area.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(toolbar));
}
@QtUninvokable
private native void addToolBar_native_Qt_ToolBarArea_QToolBar_ptr(long __this__nativeId, int area, long toolbar);
/**
* See QMainWindow:: addToolBarBreak(Qt::ToolBarArea)
*/
@QtUninvokable
public final void addToolBarBreak(io.qt.core.Qt.@NonNull ToolBarArea area){
addToolBarBreak_native_Qt_ToolBarArea(QtJambi_LibraryUtilities.internal.nativeId(this), area.value());
}
@QtUninvokable
private native void addToolBarBreak_native_Qt_ToolBarArea(long __this__nativeId, int area);
/**
* See QMainWindow:: centralWidget()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget centralWidget(){
return centralWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QWidget centralWidget_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: corner(Qt::Corner)const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DockWidgetArea corner(io.qt.core.Qt.@NonNull Corner corner){
return io.qt.core.Qt.DockWidgetArea.resolve(corner_native_Qt_Corner_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), corner.value()));
}
@QtUninvokable
private native int corner_native_Qt_Corner_constfct(long __this__nativeId, int corner);
/**
* See QMainWindow:: dockOptions()const
*/
@QtPropertyReader(name="dockOptions")
@QtUninvokable
public final io.qt.widgets.QMainWindow.@NonNull DockOptions dockOptions(){
return new io.qt.widgets.QMainWindow.DockOptions(dockOptions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int dockOptions_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: dockWidgetArea(QDockWidget*)const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull DockWidgetArea dockWidgetArea(io.qt.widgets.@Nullable QDockWidget dockwidget){
return io.qt.core.Qt.DockWidgetArea.resolve(dockWidgetArea_native_QDockWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dockwidget)));
}
@QtUninvokable
private native int dockWidgetArea_native_QDockWidget_ptr_constfct(long __this__nativeId, long dockwidget);
/**
* See QMainWindow:: documentMode()const
*/
@QtPropertyReader(name="documentMode")
@QtUninvokable
public final boolean documentMode(){
return documentMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean documentMode_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: iconSize()const
*/
@QtPropertyReader(name="iconSize")
@QtUninvokable
public final io.qt.core.@NonNull QSize iconSize(){
return iconSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize iconSize_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: insertToolBar(QToolBar*, QToolBar*)
*/
@QtUninvokable
public final void insertToolBar(io.qt.widgets.@Nullable QToolBar before, io.qt.widgets.@Nullable QToolBar toolbar){
insertToolBar_native_QToolBar_ptr_QToolBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before), QtJambi_LibraryUtilities.internal.checkedNativeId(toolbar));
}
@QtUninvokable
private native void insertToolBar_native_QToolBar_ptr_QToolBar_ptr(long __this__nativeId, long before, long toolbar);
/**
* See QMainWindow:: insertToolBarBreak(QToolBar*)
*/
@QtUninvokable
public final void insertToolBarBreak(io.qt.widgets.@Nullable QToolBar before){
insertToolBarBreak_native_QToolBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before));
}
@QtUninvokable
private native void insertToolBarBreak_native_QToolBar_ptr(long __this__nativeId, long before);
/**
* See QMainWindow:: isAnimated()const
*/
@QtPropertyReader(name="animated")
@QtUninvokable
public final boolean isAnimated(){
return isAnimated_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAnimated_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: isDockNestingEnabled()const
*/
@QtPropertyReader(name="dockNestingEnabled")
@QtUninvokable
public final boolean isDockNestingEnabled(){
return isDockNestingEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDockNestingEnabled_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: isSeparator(QPoint)const
*/
@QtUninvokable
public final boolean isSeparator(io.qt.core.@NonNull QPoint pos){
return isSeparator_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pos));
}
@QtUninvokable
private native boolean isSeparator_native_cref_QPoint_constfct(long __this__nativeId, long pos);
/**
* See QMainWindow:: menuBar()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QMenuBar menuBar(){
return menuBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QMenuBar menuBar_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: menuWidget()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget menuWidget(){
return menuWidget_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QWidget menuWidget_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: removeDockWidget(QDockWidget*)
*/
@QtUninvokable
public final void removeDockWidget(io.qt.widgets.@Nullable QDockWidget dockwidget){
removeDockWidget_native_QDockWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dockwidget));
}
@QtUninvokable
private native void removeDockWidget_native_QDockWidget_ptr(long __this__nativeId, long dockwidget);
/**
* See QMainWindow:: removeToolBar(QToolBar*)
*/
@QtUninvokable
public final void removeToolBar(io.qt.widgets.@Nullable QToolBar toolbar){
removeToolBar_native_QToolBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toolbar));
}
@QtUninvokable
private native void removeToolBar_native_QToolBar_ptr(long __this__nativeId, long toolbar);
/**
* See QMainWindow:: removeToolBarBreak(QToolBar*)
*/
@QtUninvokable
public final void removeToolBarBreak(io.qt.widgets.@Nullable QToolBar before){
removeToolBarBreak_native_QToolBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before));
}
@QtUninvokable
private native void removeToolBarBreak_native_QToolBar_ptr(long __this__nativeId, long before);
/**
* See QMainWindow:: resizeDocks(QList<QDockWidget*>, QList<int>, Qt::Orientation)
*/
@QtUninvokable
public final void resizeDocks(java.util.@NonNull Collection extends io.qt.widgets.@Nullable QDockWidget> docks, java.util.@NonNull Collection sizes, io.qt.core.Qt.@NonNull Orientation orientation){
resizeDocks_native_cref_QList_cref_QList_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), docks, sizes, orientation.value());
}
@QtUninvokable
private native void resizeDocks_native_cref_QList_cref_QList_Qt_Orientation(long __this__nativeId, java.util.Collection extends io.qt.widgets.QDockWidget> docks, java.util.Collection sizes, int orientation);
/**
* See QMainWindow:: restoreDockWidget(QDockWidget*)
*/
@QtUninvokable
public final boolean restoreDockWidget(io.qt.widgets.@Nullable QDockWidget dockwidget){
return restoreDockWidget_native_QDockWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dockwidget));
}
@QtUninvokable
private native boolean restoreDockWidget_native_QDockWidget_ptr(long __this__nativeId, long dockwidget);
/**
* See QMainWindow:: restoreState(QByteArray, int)
*/
@QtUninvokable
public final boolean restoreState(io.qt.core.@NonNull QByteArray state, int version){
return restoreState_native_cref_QByteArray_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(state), version);
}
@QtUninvokable
private native boolean restoreState_native_cref_QByteArray_int(long __this__nativeId, long state, int version);
/**
* See QMainWindow:: saveState(int)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray saveState(int version){
return saveState_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), version);
}
@QtUninvokable
private native io.qt.core.QByteArray saveState_native_int_constfct(long __this__nativeId, int version);
/**
* See QMainWindow:: setAnimated(bool)
*/
@QtPropertyWriter(name="animated")
public final void setAnimated(boolean enabled){
setAnimated_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
private native void setAnimated_native_bool(long __this__nativeId, boolean enabled);
/**
* See QMainWindow:: setCentralWidget(QWidget*)
*/
@QtUninvokable
public final void setCentralWidget(io.qt.widgets.@Nullable QWidget widget){
setCentralWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void setCentralWidget_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QMainWindow:: setCorner(Qt::Corner, Qt::DockWidgetArea)
*/
@QtUninvokable
public final void setCorner(io.qt.core.Qt.@NonNull Corner corner, io.qt.core.Qt.@NonNull DockWidgetArea area){
setCorner_native_Qt_Corner_Qt_DockWidgetArea(QtJambi_LibraryUtilities.internal.nativeId(this), corner.value(), area.value());
}
@QtUninvokable
private native void setCorner_native_Qt_Corner_Qt_DockWidgetArea(long __this__nativeId, int corner, int area);
/**
* See QMainWindow:: setDockNestingEnabled(bool)
*/
@QtPropertyWriter(name="dockNestingEnabled")
public final void setDockNestingEnabled(boolean enabled){
setDockNestingEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
private native void setDockNestingEnabled_native_bool(long __this__nativeId, boolean enabled);
/**
* See QMainWindow:: setDockOptions(QMainWindow::DockOptions)
*/
@QtPropertyWriter(name="dockOptions")
@QtUninvokable
public final void setDockOptions(io.qt.widgets.QMainWindow.@NonNull DockOptions options){
setDockOptions_native_QMainWindow_DockOptions(QtJambi_LibraryUtilities.internal.nativeId(this), options.value());
}
@QtUninvokable
private native void setDockOptions_native_QMainWindow_DockOptions(long __this__nativeId, int options);
/**
* See QMainWindow:: setDocumentMode(bool)
*/
@QtPropertyWriter(name="documentMode")
@QtUninvokable
public final void setDocumentMode(boolean enabled){
setDocumentMode_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@QtUninvokable
private native void setDocumentMode_native_bool(long __this__nativeId, boolean enabled);
/**
* See QMainWindow:: setIconSize(QSize)
*/
@QtPropertyWriter(name="iconSize")
@QtUninvokable
public final void setIconSize(io.qt.core.@NonNull QSize iconSize){
setIconSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(iconSize));
}
@QtUninvokable
private native void setIconSize_native_cref_QSize(long __this__nativeId, long iconSize);
/**
* See QMainWindow:: setMenuBar(QMenuBar*)
*/
@QtUninvokable
public final void setMenuBar(io.qt.widgets.@Nullable QMenuBar menubar){
setMenuBar_native_QMenuBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(menubar));
}
@QtUninvokable
private native void setMenuBar_native_QMenuBar_ptr(long __this__nativeId, long menubar);
/**
* See QMainWindow:: setMenuWidget(QWidget*)
*/
@QtUninvokable
public final void setMenuWidget(io.qt.widgets.@Nullable QWidget menubar){
setMenuWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(menubar));
}
@QtUninvokable
private native void setMenuWidget_native_QWidget_ptr(long __this__nativeId, long menubar);
/**
* See QMainWindow:: setStatusBar(QStatusBar*)
*/
@QtUninvokable
public final void setStatusBar(io.qt.widgets.@Nullable QStatusBar statusbar){
setStatusBar_native_QStatusBar_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(statusbar));
}
@QtUninvokable
private native void setStatusBar_native_QStatusBar_ptr(long __this__nativeId, long statusbar);
/**
* See QMainWindow:: setTabPosition(Qt::DockWidgetAreas, QTabWidget::TabPosition)
*/
@QtUninvokable
public final void setTabPosition(io.qt.core.Qt.@NonNull DockWidgetAreas areas, io.qt.widgets.QTabWidget.@NonNull TabPosition tabPosition){
setTabPosition_native_Qt_DockWidgetAreas_QTabWidget_TabPosition(QtJambi_LibraryUtilities.internal.nativeId(this), areas.value(), tabPosition.value());
}
@QtUninvokable
private native void setTabPosition_native_Qt_DockWidgetAreas_QTabWidget_TabPosition(long __this__nativeId, int areas, int tabPosition);
/**
* See QMainWindow:: setTabShape(QTabWidget::TabShape)
*/
@QtPropertyWriter(name="tabShape")
@QtUninvokable
public final void setTabShape(io.qt.widgets.QTabWidget.@NonNull TabShape tabShape){
setTabShape_native_QTabWidget_TabShape(QtJambi_LibraryUtilities.internal.nativeId(this), tabShape.value());
}
@QtUninvokable
private native void setTabShape_native_QTabWidget_TabShape(long __this__nativeId, int tabShape);
/**
* See QMainWindow:: setToolButtonStyle(Qt::ToolButtonStyle)
*/
@QtPropertyWriter(name="toolButtonStyle")
@QtUninvokable
public final void setToolButtonStyle(io.qt.core.Qt.@NonNull ToolButtonStyle toolButtonStyle){
setToolButtonStyle_native_Qt_ToolButtonStyle(QtJambi_LibraryUtilities.internal.nativeId(this), toolButtonStyle.value());
}
@QtUninvokable
private native void setToolButtonStyle_native_Qt_ToolButtonStyle(long __this__nativeId, int toolButtonStyle);
/**
* See QMainWindow:: setUnifiedTitleAndToolBarOnMac(bool)
*/
@QtPropertyWriter(name="unifiedTitleAndToolBarOnMac")
public final void setUnifiedTitleAndToolBarOnMac(boolean set){
setUnifiedTitleAndToolBarOnMac_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), set);
}
private native void setUnifiedTitleAndToolBarOnMac_native_bool(long __this__nativeId, boolean set);
/**
* See QMainWindow:: splitDockWidget(QDockWidget*, QDockWidget*, Qt::Orientation)
*/
@QtUninvokable
public final void splitDockWidget(io.qt.widgets.@Nullable QDockWidget after, io.qt.widgets.@Nullable QDockWidget dockwidget, io.qt.core.Qt.@NonNull Orientation orientation){
splitDockWidget_native_QDockWidget_ptr_QDockWidget_ptr_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(after), QtJambi_LibraryUtilities.internal.checkedNativeId(dockwidget), orientation.value());
}
@QtUninvokable
private native void splitDockWidget_native_QDockWidget_ptr_QDockWidget_ptr_Qt_Orientation(long __this__nativeId, long after, long dockwidget, int orientation);
/**
* See QMainWindow:: statusBar()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QStatusBar statusBar(){
return statusBar_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QStatusBar statusBar_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: tabPosition(Qt::DockWidgetArea)const
*/
@QtUninvokable
public final io.qt.widgets.QTabWidget.@NonNull TabPosition tabPosition(io.qt.core.Qt.@NonNull DockWidgetArea area){
return io.qt.widgets.QTabWidget.TabPosition.resolve(tabPosition_native_Qt_DockWidgetArea_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), area.value()));
}
@QtUninvokable
private native int tabPosition_native_Qt_DockWidgetArea_constfct(long __this__nativeId, int area);
/**
* See QMainWindow:: tabShape()const
*/
@QtPropertyReader(name="tabShape")
@QtUninvokable
public final io.qt.widgets.QTabWidget.@NonNull TabShape tabShape(){
return io.qt.widgets.QTabWidget.TabShape.resolve(tabShape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int tabShape_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: tabifiedDockWidgets(QDockWidget*)const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList tabifiedDockWidgets(io.qt.widgets.@Nullable QDockWidget dockwidget){
return tabifiedDockWidgets_native_QDockWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(dockwidget));
}
@QtUninvokable
private native io.qt.core.QList tabifiedDockWidgets_native_QDockWidget_ptr_constfct(long __this__nativeId, long dockwidget);
/**
* See QMainWindow:: tabifyDockWidget(QDockWidget*, QDockWidget*)
*/
@QtUninvokable
public final void tabifyDockWidget(io.qt.widgets.@Nullable QDockWidget first, io.qt.widgets.@Nullable QDockWidget second){
tabifyDockWidget_native_QDockWidget_ptr_QDockWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(first), QtJambi_LibraryUtilities.internal.checkedNativeId(second));
}
@QtUninvokable
private native void tabifyDockWidget_native_QDockWidget_ptr_QDockWidget_ptr(long __this__nativeId, long first, long second);
/**
* See QMainWindow:: takeCentralWidget()
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QWidget takeCentralWidget(){
return takeCentralWidget_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QWidget takeCentralWidget_native(long __this__nativeId);
/**
* See QMainWindow:: toolBarArea(const QToolBar*)const
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull ToolBarArea toolBarArea(io.qt.widgets.@Nullable QToolBar toolbar){
return io.qt.core.Qt.ToolBarArea.resolve(toolBarArea_native_const_QToolBar_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toolbar)));
}
@QtUninvokable
private native int toolBarArea_native_const_QToolBar_ptr_constfct(long __this__nativeId, long toolbar);
/**
* See QMainWindow:: toolBarBreak(QToolBar*)const
*/
@QtUninvokable
public final boolean toolBarBreak(io.qt.widgets.@Nullable QToolBar toolbar){
return toolBarBreak_native_QToolBar_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(toolbar));
}
@QtUninvokable
private native boolean toolBarBreak_native_QToolBar_ptr_constfct(long __this__nativeId, long toolbar);
/**
* See QMainWindow:: toolButtonStyle()const
*/
@QtPropertyReader(name="toolButtonStyle")
@QtUninvokable
public final io.qt.core.Qt.@NonNull ToolButtonStyle toolButtonStyle(){
return io.qt.core.Qt.ToolButtonStyle.resolve(toolButtonStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int toolButtonStyle_native_constfct(long __this__nativeId);
/**
* See QMainWindow:: unifiedTitleAndToolBarOnMac()const
*/
@QtPropertyReader(name="unifiedTitleAndToolBarOnMac")
@QtUninvokable
public final boolean unifiedTitleAndToolBarOnMac(){
return unifiedTitleAndToolBarOnMac_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean unifiedTitleAndToolBarOnMac_native_constfct(long __this__nativeId);
/**
* See QWidget:: contextMenuEvent(QContextMenuEvent*)
*/
@QtUninvokable
@Override
protected void contextMenuEvent(io.qt.gui.@Nullable QContextMenuEvent event){
java.util.Objects.requireNonNull(event, "Argument 'event': null not expected.");
contextMenuEvent_native_QContextMenuEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void contextMenuEvent_native_QContextMenuEvent_ptr(long __this__nativeId, long event);
/**
* See QMainWindow:: createPopupMenu()
*/
@QtUninvokable
public io.qt.widgets.@Nullable QMenu createPopupMenu(){
return createPopupMenu_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QMenu createPopupMenu_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent event){
java.util.Objects.requireNonNull(event, "Argument 'event': null not expected.");
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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QMainWindow(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QMainWindow(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QMainWindow instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QMainWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with flags = new io.qt.core.Qt.WindowFlags(0)
.
*/
public QMainWindow(io.qt.widgets.@Nullable QWidget parent) {
this(parent, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QMainWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}
* with:
* parent = null
* flags = new io.qt.core.Qt.WindowFlags(0)
*
*/
public QMainWindow() {
this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0));
}
/**
* Overloaded constructor for {@link #QMainWindow(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QMainWindow(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... flags) {
this(parent, new io.qt.core.Qt.WindowFlags(flags));
}
/**
* Overloaded function for {@link #addToolBarBreak(io.qt.core.Qt.ToolBarArea)}
* with area = io.qt.core.Qt.ToolBarArea.TopToolBarArea
.
*/
@QtUninvokable
public final void addToolBarBreak() {
addToolBarBreak(io.qt.core.Qt.ToolBarArea.TopToolBarArea);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #dockOptions()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QMainWindow.@NonNull DockOptions getDockOptions() {
return dockOptions();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #documentMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDocumentMode() {
return documentMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #iconSize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QSize getIconSize() {
return iconSize();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isAnimated()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAnimated() {
return isAnimated();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isDockNestingEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getDockNestingEnabled() {
return isDockNestingEnabled();
}
/**
* Overloaded function for {@link #restoreState(io.qt.core.QByteArray, int)}
* with version = 0
.
*/
@QtUninvokable
public final boolean restoreState(io.qt.core.@NonNull QByteArray state) {
return restoreState(state, (int)0);
}
/**
* Overloaded function for {@link #restoreState(byte[], int)}
* with version = 0
.
*/
@QtUninvokable
public final boolean restoreState(byte @NonNull[] state) {
return restoreState(state, (int)0);
}
/**
* Overloaded function for {@link #restoreState(io.qt.core.QByteArray, int)}.
*/
@QtUninvokable
public final boolean restoreState(byte @NonNull[] state, int version) {
return restoreState(new io.qt.core.QByteArray(state), version);
}
/**
* Overloaded function for {@link #saveState(int)}
* with version = 0
.
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray saveState() {
return saveState((int)0);
}
/**
* Overloaded function for {@link #setDockOptions(io.qt.widgets.QMainWindow.DockOptions)}.
*/
@QtUninvokable
public final void setDockOptions(io.qt.widgets.QMainWindow.@NonNull DockOption @NonNull... options) {
setDockOptions(new io.qt.widgets.QMainWindow.DockOptions(options));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #tabShape()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QTabWidget.@NonNull TabShape getTabShape() {
return tabShape();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #toolButtonStyle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull ToolButtonStyle getToolButtonStyle() {
return toolButtonStyle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #unifiedTitleAndToolBarOnMac()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getUnifiedTitleAndToolBarOnMac() {
return unifiedTitleAndToolBarOnMac();
}
}