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.1
Show newest version
package io.qt.widgets;

import io.qt.gui.*;

/**
 * 

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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QToolBar.class); /** *

See QToolBar::actionTriggered(QAction*)

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

See QToolBar::allowedAreasChanged(Qt::ToolBarAreas)

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

See QToolBar::iconSizeChanged(QSize)

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

See QToolBar::movableChanged(bool)

*/ @io.qt.QtPropertyNotify(name="movable") public final Signal1<@io.qt.QtPrimitiveType Boolean> movableChanged = new Signal1<>(); /** *

See QToolBar::orientationChanged(Qt::Orientation)

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

See QToolBar::toolButtonStyleChanged(Qt::ToolButtonStyle)

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

See QToolBar::topLevelChanged(bool)

*/ public final Signal1<@io.qt.QtPrimitiveType Boolean> topLevelChanged = new Signal1<>(); /** *

See QToolBar::visibilityChanged(bool)

*/ public final Signal1<@io.qt.QtPrimitiveType Boolean> visibilityChanged = new Signal1<>(); /** *

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

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

See QToolBar::QToolBar(QWidget*)

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

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

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

See QToolBar::QToolBar(QString,QWidget*)

*/ public QToolBar(java.lang.String title, io.qt.widgets.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::actionAt(QPoint)const

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

See QToolBar::actionAt(int,int)const

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

See QToolBar::addAction(QIcon,QString)

*/ @io.qt.QtUninvokable public final io.qt.gui.QAction addAction(io.qt.gui.QIcon icon, java.lang.String text){ return addAction_native_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text); } @io.qt.QtUninvokable private native io.qt.gui.QAction addAction_native_cref_QIcon_cref_QString(long __this__nativeId, long icon, java.lang.String text); /** *

See QToolBar::addAction(QString)

*/ @io.qt.QtUninvokable public final io.qt.gui.QAction addAction(java.lang.String text){ return addAction_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } @io.qt.QtUninvokable private native io.qt.gui.QAction addAction_native_cref_QString(long __this__nativeId, java.lang.String text); /** *

See QToolBar::addSeparator()

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

See QToolBar::addWidget(QWidget*)

*/ @io.qt.QtUninvokable public final io.qt.gui.QAction addWidget(io.qt.widgets.QWidget widget){ io.qt.gui.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; } @io.qt.QtUninvokable private native io.qt.gui.QAction addWidget_native_QWidget_ptr(long __this__nativeId, long widget); /** *

See QToolBar::allowedAreas()const

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

See QToolBar::clear()

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

See QToolBar::iconSize()const

*/ @io.qt.QtPropertyReader(name="iconSize") @io.qt.QtUninvokable public final io.qt.core.QSize iconSize(){ return iconSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QSize iconSize_native_constfct(long __this__nativeId); /** *

See QToolBar::insertSeparator(QAction*)

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

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

*/ @io.qt.QtUninvokable public final io.qt.gui.QAction insertWidget(io.qt.gui.QAction before, io.qt.widgets.QWidget widget){ io.qt.gui.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; } @io.qt.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

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

See QToolBar::isFloatable()const

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

See QToolBar::isFloating()const

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

See QToolBar::isMovable()const

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

See QToolBar::orientation()const

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

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

*/ @io.qt.QtUninvokable public final void setAllowedAreas(io.qt.core.Qt.ToolBarArea ... areas){ setAllowedAreas(new io.qt.core.Qt.ToolBarAreas(areas)); } /** *

See QToolBar::setAllowedAreas(Qt::ToolBarAreas)

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

See QToolBar::setFloatable(bool)

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

See QToolBar::setIconSize(QSize)

*/ @io.qt.QtPropertyWriter(name="iconSize") public final void setIconSize(io.qt.core.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)

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

See QToolBar::setOrientation(Qt::Orientation)

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

See QToolBar::setToolButtonStyle(Qt::ToolButtonStyle)

*/ @io.qt.QtPropertyWriter(name="toolButtonStyle") public final void setToolButtonStyle(io.qt.core.Qt.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

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

See QToolBar::toolButtonStyle()const

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

See QToolBar::widgetForAction(QAction*)const

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

See QWidget::actionEvent(QActionEvent*)

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

See QWidget::changeEvent(QEvent*)

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

See QObject::event(QEvent*)

*/ @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); @io.qt.QtUninvokable protected void initStyleOption(io.qt.widgets.QStyleOptionToolBar option){ initStyleOption_native_QStyleOptionToolBar_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option); } @io.qt.QtUninvokable private native void initStyleOption_native_QStyleOptionToolBar_ptr_constfct(long __this__nativeId, io.qt.widgets.QStyleOptionToolBar option); /** *

See QWidget::paintEvent(QPaintEvent*)

*/ @io.qt.QtUninvokable protected void paintEvent(io.qt.gui.QPaintEvent event){ paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @io.qt.QtUninvokable private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long event); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QToolBar(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 QToolBar(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QToolBar instance, QDeclarativeConstructor constructor); // TEMPLATE - gui.addAction - START public final QAction addAction(QIcon icon, String text, Object receiver, String method) { QAction returned = addAction(icon, text); returned.triggered.connect(receiver, method); return returned; } public final QAction addAction(QIcon icon, String text, io.qt.core.QMetaObject.Slot0 slot) { QAction returned = addAction(icon, text); returned.triggered.connect(slot); return returned; } public final QAction addAction(QIcon icon, String text, io.qt.core.QMetaObject.Slot1 slot) { QAction returned = addAction(icon, text); returned.triggered.connect(slot); return returned; } public final QAction addAction(QIcon icon, String text, io.qt.core.QMetaObject.Connectable1 signal) { QAction returned = addAction(icon, text); returned.triggered.connect(signal); return returned; } // TEMPLATE - gui.addAction - END// TEMPLATE - gui.addAction - START public final QAction addAction(String text, Object receiver, String method) { QAction returned = addAction(text); returned.triggered.connect(receiver, method); return returned; } public final QAction addAction(String text, io.qt.core.QMetaObject.Slot0 slot) { QAction returned = addAction(text); returned.triggered.connect(slot); return returned; } public final QAction addAction(String text, io.qt.core.QMetaObject.Slot1 slot) { QAction returned = addAction(text); returned.triggered.connect(slot); return returned; } public final QAction addAction(String text, io.qt.core.QMetaObject.Connectable1 signal) { QAction returned = addAction(text); returned.triggered.connect(signal); return returned; } // TEMPLATE - gui.addAction - END }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy