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

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

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

import io.qt.*;


/**
 * 

Movable panel that contains a set of controls

*

Java wrapper for Qt class QToolBar

*/ public class QToolBar 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(QToolBar.class); /** *

See QToolBar::actionTriggered(QAction*)

*/ public final @NonNull Signal1 actionTriggered = new Signal1<>(); /** *

See QToolBar::allowedAreasChanged(Qt::ToolBarAreas)

*/ @QtPropertyNotify(name="allowedAreas") public final @NonNull Signal1 allowedAreasChanged = new Signal1<>(); /** *

See QToolBar::iconSizeChanged(QSize)

*/ @QtPropertyNotify(name="iconSize") public final @NonNull Signal1 iconSizeChanged = new Signal1<>(); /** *

See QToolBar::movableChanged(bool)

*/ @QtPropertyNotify(name="movable") public final @NonNull Signal1 movableChanged = new Signal1<>(); /** *

See QToolBar::orientationChanged(Qt::Orientation)

*/ @QtPropertyNotify(name="orientation") public final @NonNull Signal1 orientationChanged = new Signal1<>(); /** *

See QToolBar::toolButtonStyleChanged(Qt::ToolButtonStyle)

*/ @QtPropertyNotify(name="toolButtonStyle") public final @NonNull Signal1 toolButtonStyleChanged = new Signal1<>(); /** *

See QToolBar::topLevelChanged(bool)

*/ public final @NonNull Signal1 topLevelChanged = new Signal1<>(); /** *

See QToolBar::visibilityChanged(bool)

*/ public final @NonNull Signal1 visibilityChanged = new Signal1<>(); /** *

See QToolBar::QToolBar(QString,QWidget*)

*/ public QToolBar(java.lang.@NonNull String title, io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, title, parent); } private native static void initialize_native(QToolBar instance, java.lang.String title, io.qt.widgets.QWidget parent); /** *

See QToolBar::QToolBar(QWidget*)

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

See QToolBar::actionAt(QPoint)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction actionAt(io.qt.core.@NonNull QPoint p){ return actionAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p)); } @QtUninvokable private native io.qt.gui.QAction actionAt_native_cref_QPoint_constfct(long __this__nativeId, long p); /** *

See QToolBar::actionAt(int,int)const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction actionAt(int x, int y){ return actionAt_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), x, y); } @QtUninvokable private native io.qt.gui.QAction actionAt_native_int_int_constfct(long __this__nativeId, int x, int y); /** *

See QToolBar::actionGeometry(QAction*)const

*/ @QtUninvokable public final io.qt.core.@NonNull QRect actionGeometry(io.qt.gui.@Nullable QAction action){ return actionGeometry_native_QAction_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(action)); } @QtUninvokable private native io.qt.core.QRect actionGeometry_native_QAction_ptr_constfct(long __this__nativeId, long action); /** *

See QToolBar::addSeparator()

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction addSeparator(){ return addSeparator_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAction addSeparator_native(long __this__nativeId); /** *

See QToolBar::addWidget(QWidget*)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction addWidget(io.qt.widgets.@Nullable QWidget widget){ io.qt.gui.@Nullable QAction __qt_return_value = addWidget_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); QtJambi_LibraryUtilities.internal.setCppOwnership(widget); return __qt_return_value; } @QtUninvokable private native io.qt.gui.QAction addWidget_native_QWidget_ptr(long __this__nativeId, long widget); /** *

See QToolBar::allowedAreas()const

*/ @QtPropertyReader(name="allowedAreas") @QtUninvokable public final io.qt.core.Qt.@NonNull ToolBarAreas allowedAreas(){ return new io.qt.core.Qt.ToolBarAreas(allowedAreas_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int allowedAreas_native_constfct(long __this__nativeId); /** *

See QToolBar::clear()

*/ @QtUninvokable public final void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clear_native(long __this__nativeId); /** *

See QToolBar::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 QToolBar::insertSeparator(QAction*)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction insertSeparator(io.qt.gui.@Nullable QAction before){ return insertSeparator_native_QAction_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before)); } @QtUninvokable private native io.qt.gui.QAction insertSeparator_native_QAction_ptr(long __this__nativeId, long before); /** *

See QToolBar::insertWidget(QAction*,QWidget*)

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction insertWidget(io.qt.gui.@Nullable QAction before, io.qt.widgets.@Nullable QWidget widget){ io.qt.gui.@Nullable QAction __qt_return_value = insertWidget_native_QAction_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(before), QtJambi_LibraryUtilities.internal.checkedNativeId(widget)); QtJambi_LibraryUtilities.internal.setCppOwnership(widget); return __qt_return_value; } @QtUninvokable private native io.qt.gui.QAction insertWidget_native_QAction_ptr_QWidget_ptr(long __this__nativeId, long before, long widget); /** *

See QToolBar::isAreaAllowed(Qt::ToolBarArea)const

*/ @QtUninvokable public final boolean isAreaAllowed(io.qt.core.Qt.@NonNull ToolBarArea area){ return isAreaAllowed_native_Qt_ToolBarArea_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), area.value()); } @QtUninvokable private native boolean isAreaAllowed_native_Qt_ToolBarArea_constfct(long __this__nativeId, int area); /** *

See QToolBar::isFloatable()const

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

See QToolBar::isFloating()const

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

See QToolBar::isMovable()const

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

See QToolBar::orientation()const

*/ @QtPropertyReader(name="orientation") @QtUninvokable public final io.qt.core.Qt.@NonNull Orientation orientation(){ return io.qt.core.Qt.Orientation.resolve(orientation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int orientation_native_constfct(long __this__nativeId); /** *

See QToolBar::setAllowedAreas(Qt::ToolBarAreas)

*/ @QtPropertyWriter(name="allowedAreas") @QtUninvokable public final void setAllowedAreas(io.qt.core.Qt.@NonNull ToolBarAreas areas){ setAllowedAreas_native_Qt_ToolBarAreas(QtJambi_LibraryUtilities.internal.nativeId(this), areas.value()); } @QtUninvokable private native void setAllowedAreas_native_Qt_ToolBarAreas(long __this__nativeId, int areas); /** *

See QToolBar::setFloatable(bool)

*/ @QtPropertyWriter(name="floatable") @QtUninvokable public final void setFloatable(boolean floatable){ setFloatable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), floatable); } @QtUninvokable private native void setFloatable_native_bool(long __this__nativeId, boolean floatable); /** *

See QToolBar::setIconSize(QSize)

*/ @QtPropertyWriter(name="iconSize") public final void setIconSize(io.qt.core.@NonNull QSize iconSize){ setIconSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(iconSize)); } private native void setIconSize_native_cref_QSize(long __this__nativeId, long iconSize); /** *

See QToolBar::setMovable(bool)

*/ @QtPropertyWriter(name="movable") @QtUninvokable public final void setMovable(boolean movable){ setMovable_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), movable); } @QtUninvokable private native void setMovable_native_bool(long __this__nativeId, boolean movable); /** *

See QToolBar::setOrientation(Qt::Orientation)

*/ @QtPropertyWriter(name="orientation") @QtUninvokable public final void setOrientation(io.qt.core.Qt.@NonNull Orientation orientation){ setOrientation_native_Qt_Orientation(QtJambi_LibraryUtilities.internal.nativeId(this), orientation.value()); } @QtUninvokable private native void setOrientation_native_Qt_Orientation(long __this__nativeId, int orientation); /** *

See QToolBar::setToolButtonStyle(Qt::ToolButtonStyle)

*/ @QtPropertyWriter(name="toolButtonStyle") public final void setToolButtonStyle(io.qt.core.Qt.@NonNull ToolButtonStyle toolButtonStyle){ setToolButtonStyle_native_Qt_ToolButtonStyle(QtJambi_LibraryUtilities.internal.nativeId(this), toolButtonStyle.value()); } private native void setToolButtonStyle_native_Qt_ToolButtonStyle(long __this__nativeId, int toolButtonStyle); /** *

See QToolBar::toggleViewAction()const

*/ @QtUninvokable public final io.qt.gui.@Nullable QAction toggleViewAction(){ return toggleViewAction_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QAction toggleViewAction_native_constfct(long __this__nativeId); /** *

See QToolBar::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 QToolBar::widgetForAction(QAction*)const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QWidget widgetForAction(io.qt.gui.@Nullable QAction action){ return widgetForAction_native_QAction_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(action)); } @QtUninvokable private native io.qt.widgets.QWidget widgetForAction_native_QAction_ptr_constfct(long __this__nativeId, long action); /** *

See QWidget::actionEvent(QActionEvent*)

*/ @QtUninvokable @Override protected void actionEvent(io.qt.gui.@Nullable QActionEvent event){ actionEvent_native_QActionEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @QtUninvokable private native void actionEvent_native_QActionEvent_ptr(long __this__nativeId, long event); /** *

See QWidget::changeEvent(QEvent*)

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

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 QToolBar::initStyleOption(QStyleOptionToolBar*)const

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

See QWidget::paintEvent(QPaintEvent*)

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

Overloaded constructor for {@link #QToolBar(java.lang.String, io.qt.widgets.QWidget)} * with parent = null.

*/ public QToolBar(java.lang.@NonNull String title) { this(title, (io.qt.widgets.QWidget)null); } /** *

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull ToolBarAreas getAllowedAreas() { return allowedAreas(); } /** * @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 #isFloatable()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getFloatable() { return isFloatable(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getFloating() { return isFloating(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getMovable() { return isMovable(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.Qt.@NonNull Orientation getOrientation() { return orientation(); } /** *

Overloaded function for {@link #setAllowedAreas(io.qt.core.Qt.ToolBarAreas)}.

*/ @QtUninvokable public final void setAllowedAreas(io.qt.core.Qt.@NonNull ToolBarArea @NonNull... areas) { setAllowedAreas(new io.qt.core.Qt.ToolBarAreas(areas)); } /** * @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(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy