io.qt.gui.QClipboard Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* 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.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QClipboard.class);
/**
* Java wrapper for Qt enum QClipboard::Mode
*/
@QtUnlistedEnum
@QtRejectedEntries({"LastMode"})
public enum Mode implements QtEnumerator {
/**
* Representing QClipboard:: Clipboard
*/
Clipboard(0),
/**
* Representing QClipboard:: Selection
*/
Selection(1),
/**
* Representing QClipboard:: FindBuffer
*/
FindBuffer(2),
/**
* Representing QClipboard:: LastMode
*/
LastMode(2);
static {
QtJambi_LibraryUtilities.initialize();
}
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 @NonNull Mode resolve(int value) {
switch (value) {
case 0: return Clipboard;
case 1: return Selection;
case 2: return FindBuffer;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QClipboard:: changed(QClipboard::Mode)
*/
public final @NonNull Signal1 changed = new Signal1<>();
/**
*
*/
public final @NonNull Signal0 dataChanged = new Signal0();
/**
* See QClipboard:: findBufferChanged()
*/
public final @NonNull Signal0 findBufferChanged = new Signal0();
/**
* See QClipboard:: selectionChanged()
*/
public final @NonNull Signal0 selectionChanged = new Signal0();
/**
* See QClipboard:: clear(QClipboard::Mode)
*/
@QtUninvokable
public final void clear(io.qt.gui.QClipboard.@NonNull Mode mode){
clear_native_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void clear_native_QClipboard_Mode(long __this__nativeId, int mode);
/**
* See QClipboard:: image(QClipboard::Mode)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QImage image(io.qt.gui.QClipboard.@NonNull Mode mode){
return image_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native io.qt.gui.QImage image_native_QClipboard_Mode_constfct(long __this__nativeId, int mode);
/**
* See QClipboard:: mimeData(QClipboard::Mode)const
*/
@QtUninvokable
public final io.qt.core.@Nullable QMimeData mimeData(io.qt.gui.QClipboard.@NonNull Mode mode){
return mimeData_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native io.qt.core.QMimeData mimeData_native_QClipboard_Mode_constfct(long __this__nativeId, int mode);
/**
* See QClipboard:: ownsClipboard()const
*/
@QtUninvokable
public final boolean ownsClipboard(){
return ownsClipboard_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean ownsClipboard_native_constfct(long __this__nativeId);
/**
* See QClipboard:: ownsFindBuffer()const
*/
@QtUninvokable
public final boolean ownsFindBuffer(){
return ownsFindBuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean ownsFindBuffer_native_constfct(long __this__nativeId);
/**
* See QClipboard:: ownsSelection()const
*/
@QtUninvokable
public final boolean ownsSelection(){
return ownsSelection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean ownsSelection_native_constfct(long __this__nativeId);
/**
* See QClipboard:: pixmap(QClipboard::Mode)const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap pixmap(io.qt.gui.QClipboard.@NonNull Mode mode){
return pixmap_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_QClipboard_Mode_constfct(long __this__nativeId, int mode);
/**
* See QClipboard:: setImage(QImage, QClipboard::Mode)
*/
@QtUninvokable
public final void setImage(io.qt.gui.@NonNull QImage arg__1, io.qt.gui.QClipboard.@NonNull Mode mode){
setImage_native_cref_QImage_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), mode.value());
}
@QtUninvokable
private native void setImage_native_cref_QImage_QClipboard_Mode(long __this__nativeId, long arg__1, int mode);
/**
* See QClipboard:: setMimeData(QMimeData*, QClipboard::Mode)
*/
@QtUninvokable
public final void setMimeData(io.qt.core.@Nullable QMimeData data, io.qt.gui.QClipboard.@NonNull Mode mode){
setMimeData_native_QMimeData_ptr_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(data), mode.value());
}
@QtUninvokable
private native void setMimeData_native_QMimeData_ptr_QClipboard_Mode(long __this__nativeId, long data, int mode);
/**
* See QClipboard:: setPixmap(QPixmap, QClipboard::Mode)
*/
@QtUninvokable
public final void setPixmap(io.qt.gui.@NonNull QPixmap arg__1, io.qt.gui.QClipboard.@NonNull Mode mode){
setPixmap_native_cref_QPixmap_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), mode.value());
}
@QtUninvokable
private native void setPixmap_native_cref_QPixmap_QClipboard_Mode(long __this__nativeId, long arg__1, int mode);
/**
* See QClipboard:: setText(QString, QClipboard::Mode)
*/
@QtUninvokable
public final void setText(java.lang.@NonNull String arg__1, io.qt.gui.QClipboard.@NonNull Mode mode){
setText_native_cref_QString_QClipboard_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1, mode.value());
}
@QtUninvokable
private native void setText_native_cref_QString_QClipboard_Mode(long __this__nativeId, java.lang.String arg__1, int mode);
/**
* See QClipboard:: supportsFindBuffer()const
*/
@QtUninvokable
public final boolean supportsFindBuffer(){
return supportsFindBuffer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean supportsFindBuffer_native_constfct(long __this__nativeId);
/**
* See QClipboard:: supportsSelection()const
*/
@QtUninvokable
public final boolean supportsSelection(){
return supportsSelection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean supportsSelection_native_constfct(long __this__nativeId);
/**
* See QClipboard:: text(QClipboard::Mode)const
*/
@QtUninvokable
public final java.lang.@NonNull String text(io.qt.gui.QClipboard.@NonNull Mode mode){
return text_native_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native java.lang.String text_native_QClipboard_Mode_constfct(long __this__nativeId, int mode);
/**
* See QClipboard:: text(QString&, QClipboard::Mode)const
*/
@QtUninvokable
public final java.lang.@NonNull String text(io.qt.core.@StrictNonNull QString subtype, io.qt.gui.QClipboard.@NonNull Mode mode){
java.util.Objects.requireNonNull(subtype, "Argument 'subtype': null not expected.");
return text_native_ref_QString_QClipboard_Mode_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), subtype, mode.value());
}
@QtUninvokable
private native java.lang.String text_native_ref_QString_QClipboard_Mode_constfct(long __this__nativeId, io.qt.core.QString subtype, int mode);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QClipboard(QPrivateConstructor p) { super(p); }
/**
* Result type for {@link QClipboard#text(String, Mode)}.
*/
@Deprecated
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;
}
/**
* @deprecated Use {@link #text(io.qt.core.QString, Mode)} instead
*/
@Deprecated
@QtUninvokable
public final io.qt.gui.QClipboard.@StrictNonNull Text text(java.lang.String subtype, io.qt.gui.QClipboard.@NonNull Mode mode){
io.qt.core.QString _subType = new io.qt.core.QString(subtype);
String text = text(_subType, mode);
return new Text(text, _subType.toString());
}
/**
* @deprecated Use {@link #text(io.qt.core.QString)} instead
*/
@Deprecated
@QtUninvokable
public final io.qt.gui.QClipboard.@StrictNonNull Text text(java.lang.String subtype){
io.qt.core.QString _subType = new io.qt.core.QString(subtype);
String text = text(_subType);
return new Text(text, _subType.toString());
}
/**
* Overloaded function for {@link #clear(io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final void clear() {
clear(io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #image(io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QImage image() {
return image(io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #mimeData(io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final io.qt.core.@Nullable QMimeData mimeData() {
return mimeData(io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #pixmap(io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap pixmap() {
return pixmap(io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #setImage(io.qt.gui.QImage, io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final void setImage(io.qt.gui.@NonNull QImage arg__1) {
setImage(arg__1, io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #setMimeData(io.qt.core.QMimeData, io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final void setMimeData(io.qt.core.@Nullable QMimeData data) {
setMimeData(data, io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #setPixmap(io.qt.gui.QPixmap, io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final void setPixmap(io.qt.gui.@NonNull QPixmap arg__1) {
setPixmap(arg__1, io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #setText(java.lang.String, io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final void setText(java.lang.@NonNull String arg__1) {
setText(arg__1, io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #text(io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final java.lang.@NonNull String text() {
return text(io.qt.gui.QClipboard.Mode.Clipboard);
}
/**
* Overloaded function for {@link #text(io.qt.core.QString, io.qt.gui.QClipboard.Mode)}
* with mode = io.qt.gui.QClipboard.Mode.Clipboard
.
*/
@QtUninvokable
public final java.lang.@NonNull String text(io.qt.core.@StrictNonNull QString subtype) {
return text(subtype, io.qt.gui.QClipboard.Mode.Clipboard);
}
}