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

io.qt.gui.QClipboard Maven / Gradle / Ivy

The newest version!
package io.qt.gui;


/**
 * 

Access to the window system clipboard

*

Java wrapper for Qt class QClipboard

*/ public final class QClipboard extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QClipboard.class); /** *

Java wrapper for Qt enum QClipboard::Mode

*/ @io.qt.QtUnlistedEnum @io.qt.QtRejectedEntries({"LastMode"}) public enum Mode implements io.qt.QtEnumerator { Clipboard(0), Selection(1), FindBuffer(2), LastMode(2); private Mode(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Mode resolve(int value) { switch (value) { case 0: return Clipboard; case 1: return Selection; case 2: return FindBuffer; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QClipboard::changed(QClipboard::Mode)

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

See QClipboard::dataChanged()

*/ public final Signal0 dataChanged = new Signal0(); /** *

See QClipboard::findBufferChanged()

*/ public final Signal0 findBufferChanged = new Signal0(); /** *

See QClipboard::selectionChanged()

*/ public final Signal0 selectionChanged = new Signal0(); /** *

Overloaded function for {@link #clear(io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final void clear() { clear(io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::clear(QClipboard::Mode)

*/ @io.qt.QtUninvokable public final void clear(io.qt.gui.QClipboard.Mode mode){ clear_native_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native void clear_native_QClipboard_Mode(long __this__nativeId, int mode); /** *

Overloaded function for {@link #image(io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final io.qt.gui.QImage image() { return image(io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::image(QClipboard::Mode)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QImage image(io.qt.gui.QClipboard.Mode mode){ return image_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native io.qt.gui.QImage image_native_QClipboard_Mode_constfct(long __this__nativeId, int mode); /** *

Overloaded function for {@link #mimeData(io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeData mimeData() { return mimeData(io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::mimeData(QClipboard::Mode)const

*/ @io.qt.QtUninvokable public final io.qt.core.QMimeData mimeData(io.qt.gui.QClipboard.Mode mode){ return mimeData_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native io.qt.core.QMimeData mimeData_native_QClipboard_Mode_constfct(long __this__nativeId, int mode); /** *

See QClipboard::ownsClipboard()const

*/ @io.qt.QtUninvokable public final boolean ownsClipboard(){ return ownsClipboard_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean ownsClipboard_native_constfct(long __this__nativeId); /** *

See QClipboard::ownsFindBuffer()const

*/ @io.qt.QtUninvokable public final boolean ownsFindBuffer(){ return ownsFindBuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean ownsFindBuffer_native_constfct(long __this__nativeId); /** *

See QClipboard::ownsSelection()const

*/ @io.qt.QtUninvokable public final boolean ownsSelection(){ return ownsSelection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean ownsSelection_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #pixmap(io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final io.qt.gui.QPixmap pixmap() { return pixmap(io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::pixmap(QClipboard::Mode)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QPixmap pixmap(io.qt.gui.QClipboard.Mode mode){ return pixmap_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native io.qt.gui.QPixmap pixmap_native_QClipboard_Mode_constfct(long __this__nativeId, int mode); /** *

Overloaded function for {@link #setImage(io.qt.gui.QImage, io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final void setImage(io.qt.gui.QImage arg__1) { setImage(arg__1, io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::setImage(QImage,QClipboard::Mode)

*/ @io.qt.QtUninvokable public final void setImage(io.qt.gui.QImage arg__1, io.qt.gui.QClipboard.Mode mode){ setImage_native_cref_QImage_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), mode.value()); } @io.qt.QtUninvokable private native void setImage_native_cref_QImage_QClipboard_Mode(long __this__nativeId, long arg__1, int mode); /** *

Overloaded function for {@link #setMimeData(io.qt.core.QMimeData, io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final void setMimeData(io.qt.core.QMimeData data) { setMimeData(data, io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::setMimeData(QMimeData*,QClipboard::Mode)

*/ @io.qt.QtUninvokable public final void setMimeData(io.qt.core.QMimeData data, io.qt.gui.QClipboard.Mode mode){ setMimeData_native_QMimeData_ptr_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), mode.value()); } @io.qt.QtUninvokable private native void setMimeData_native_QMimeData_ptr_QClipboard_Mode(long __this__nativeId, long data, int mode); /** *

Overloaded function for {@link #setPixmap(io.qt.gui.QPixmap, io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final void setPixmap(io.qt.gui.QPixmap arg__1) { setPixmap(arg__1, io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::setPixmap(QPixmap,QClipboard::Mode)

*/ @io.qt.QtUninvokable public final void setPixmap(io.qt.gui.QPixmap arg__1, io.qt.gui.QClipboard.Mode mode){ setPixmap_native_cref_QPixmap_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), mode.value()); } @io.qt.QtUninvokable private native void setPixmap_native_cref_QPixmap_QClipboard_Mode(long __this__nativeId, long arg__1, int mode); /** *

Overloaded function for {@link #setText(java.lang.String, io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final void setText(java.lang.String arg__1) { setText(arg__1, io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::setText(QString,QClipboard::Mode)

*/ @io.qt.QtUninvokable public final void setText(java.lang.String arg__1, io.qt.gui.QClipboard.Mode mode){ setText_native_cref_QString_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, mode.value()); } @io.qt.QtUninvokable private native void setText_native_cref_QString_QClipboard_Mode(long __this__nativeId, java.lang.String arg__1, int mode); /** *

See QClipboard::supportsFindBuffer()const

*/ @io.qt.QtUninvokable public final boolean supportsFindBuffer(){ return supportsFindBuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean supportsFindBuffer_native_constfct(long __this__nativeId); /** *

See QClipboard::supportsSelection()const

*/ @io.qt.QtUninvokable public final boolean supportsSelection(){ return supportsSelection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean supportsSelection_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #text(io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final java.lang.String text() { return text(io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::text(QClipboard::Mode)const

*/ @io.qt.QtUninvokable public final java.lang.String text(io.qt.gui.QClipboard.Mode mode){ return text_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native java.lang.String text_native_QClipboard_Mode_constfct(long __this__nativeId, int mode); /** *

Overloaded function for {@link #text(java.lang.String, io.qt.gui.QClipboard.Mode)} * with mode = io.qt.gui.QClipboard.Mode.Clipboard.

*/ @io.qt.QtUninvokable public final io.qt.gui.QClipboard.Text text(java.lang.String subtype) { return text(subtype, io.qt.gui.QClipboard.Mode.Clipboard); } /** *

See QClipboard::text(QString&,QClipboard::Mode)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QClipboard.Text text(java.lang.String subtype, io.qt.gui.QClipboard.Mode mode){ return text_native_ref_QString_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subtype, mode.value()); } @io.qt.QtUninvokable private native io.qt.gui.QClipboard.Text text_native_ref_QString_QClipboard_Mode_constfct(long __this__nativeId, java.lang.String subtype, int mode); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QClipboard(QPrivateConstructor p) { super(p); } public final static class Text { private Text(String text, String subtype) { super(); this.text = text; this.subtype = subtype; } public final String text; public final String subtype; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy