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

io.qt.macextras.QMacToolBar Maven / Gradle / Ivy

The newest version!
package io.qt.macextras;

import io.qt.*;


/**
 * 

Wraps the native NSToolbar class

*

Java wrapper for Qt class QMacToolBar

* @since This class was introduced in Qt 5.3. */ public class QMacToolBar extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMacToolBar.class); /** *

See QMacToolBar::QMacToolBar(QObject*)

* @param parent */ public QMacToolBar(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QMacToolBar instance, io.qt.core.QObject parent); /** *

See QMacToolBar::QMacToolBar(QString,QObject*)

* @param identifier * @param parent */ public QMacToolBar(java.lang.@NonNull String identifier, io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, identifier, parent); } private native static void initialize_native(QMacToolBar instance, java.lang.String identifier, io.qt.core.QObject parent); /** *

See QMacToolBar::addAllowedItem(QIcon,QString)

* @param icon * @param text * @return */ @QtUninvokable public final io.qt.macextras.@Nullable QMacToolBarItem addAllowedItem(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){ return addAllowedItem_native_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text); } @QtUninvokable private native io.qt.macextras.QMacToolBarItem addAllowedItem_native_cref_QIcon_cref_QString(long __this__nativeId, long icon, java.lang.String text); /** *

See QMacToolBar::addAllowedStandardItem(QMacToolBarItem::StandardItem)

* @param standardItem * @return */ @QtUninvokable public final io.qt.macextras.@Nullable QMacToolBarItem addAllowedStandardItem(io.qt.macextras.QMacToolBarItem.@NonNull StandardItem standardItem){ return addAllowedStandardItem_native_QMacToolBarItem_StandardItem(QtJambi_LibraryUtilities.internal.nativeId(this), standardItem.value()); } @QtUninvokable private native io.qt.macextras.QMacToolBarItem addAllowedStandardItem_native_QMacToolBarItem_StandardItem(long __this__nativeId, int standardItem); /** *

See QMacToolBar::addItem(QIcon,QString)

* @param icon * @param text * @return */ @QtUninvokable public final io.qt.macextras.@Nullable QMacToolBarItem addItem(io.qt.gui.@NonNull QIcon icon, java.lang.@NonNull String text){ return addItem_native_cref_QIcon_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon), text); } @QtUninvokable private native io.qt.macextras.QMacToolBarItem addItem_native_cref_QIcon_cref_QString(long __this__nativeId, long icon, java.lang.String text); /** *

See QMacToolBar::addSeparator()

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

See QMacToolBar::addStandardItem(QMacToolBarItem::StandardItem)

* @param standardItem * @return */ @QtUninvokable public final io.qt.macextras.@Nullable QMacToolBarItem addStandardItem(io.qt.macextras.QMacToolBarItem.@NonNull StandardItem standardItem){ return addStandardItem_native_QMacToolBarItem_StandardItem(QtJambi_LibraryUtilities.internal.nativeId(this), standardItem.value()); } @QtUninvokable private native io.qt.macextras.QMacToolBarItem addStandardItem_native_QMacToolBarItem_StandardItem(long __this__nativeId, int standardItem); /** *

See QMacToolBar::allowedItems()

* @return */ @QtUninvokable public final io.qt.core.@NonNull QList allowedItems(){ return allowedItems_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList allowedItems_native(long __this__nativeId); /** *

See QMacToolBar::attachToWindow(QWindow*)

* @param window */ @QtUninvokable public final void attachToWindow(io.qt.gui.@Nullable QWindow window){ attachToWindow_native_QWindow_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(window)); } @QtUninvokable private native void attachToWindow_native_QWindow_ptr(long __this__nativeId, long window); /** *

See QMacToolBar::detachFromWindow()

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

See QMacToolBar::items()

* @return */ @QtUninvokable public final io.qt.core.@NonNull QList items(){ return items_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList items_native(long __this__nativeId); /** *

See QMacToolBar::setAllowedItems(QList<QMacToolBarItem*>&)

* @param allowedItems */ @QtUninvokable public final void setAllowedItems(java.util.@NonNull Collection allowedItems){ setAllowedItems_native_ref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), allowedItems); } @QtUninvokable private native void setAllowedItems_native_ref_QList(long __this__nativeId, java.util.Collection allowedItems); /** *

See QMacToolBar::setItems(QList<QMacToolBarItem*>&)

* @param items */ @QtUninvokable public final void setItems(java.util.@NonNull Collection items){ setItems_native_ref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), items); } @QtUninvokable private native void setItems_native_ref_QList(long __this__nativeId, java.util.Collection items); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMacToolBar(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QMacToolBar(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QMacToolBar instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QMacToolBar(io.qt.core.QObject)} * with parent = null.

*/ public QMacToolBar() { this((io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QMacToolBar(java.lang.String, io.qt.core.QObject)} * with parent = null.

*/ public QMacToolBar(java.lang.@NonNull String identifier) { this(identifier, (io.qt.core.QObject)null); } /** *

Overloaded function for {@link #addAllowedItem(io.qt.gui.QIcon, java.lang.String)}.

*/ @QtUninvokable public final io.qt.macextras.@Nullable QMacToolBarItem addAllowedItem(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { return addAllowedItem(new io.qt.gui.QIcon(icon), text); } /** *

Overloaded function for {@link #addItem(io.qt.gui.QIcon, java.lang.String)}.

*/ @QtUninvokable public final io.qt.macextras.@Nullable QMacToolBarItem addItem(io.qt.gui.@NonNull QPixmap icon, java.lang.@NonNull String text) { return addItem(new io.qt.gui.QIcon(icon), text); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy