io.qt.webengine.core.QWebEngineContextMenuRequest Maven / Gradle / Ivy
Show all versions of qtjambi-webenginecore Show documentation
package io.qt.webengine.core;
import io.qt.*;
/**
* Request for populating or extending a context menu with actions
* Java wrapper for Qt class QWebEngineContextMenuRequest
* @since This class was introduced in Qt 6.2.
*/
public final class QWebEngineContextMenuRequest 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(QWebEngineContextMenuRequest.class);
/**
* Java wrapper for Qt enum QWebEngineContextMenuRequest::EditFlag
* @since This enum was introduced in Qt 6.2.
*
* @see EditFlags
*/
public enum EditFlag implements QtFlagEnumerator {
/**
* Representing QWebEngineContextMenuRequest:: CanUndo
*/
CanUndo(1),
/**
* Representing QWebEngineContextMenuRequest:: CanRedo
*/
CanRedo(2),
/**
* Representing QWebEngineContextMenuRequest:: CanCut
*/
CanCut(4),
/**
* Representing QWebEngineContextMenuRequest:: CanCopy
*/
CanCopy(8),
/**
* Representing QWebEngineContextMenuRequest:: CanPaste
*/
CanPaste(16),
/**
* Representing QWebEngineContextMenuRequest:: CanDelete
*/
CanDelete(32),
/**
* Representing QWebEngineContextMenuRequest:: CanSelectAll
*/
CanSelectAll(64),
/**
* Representing QWebEngineContextMenuRequest:: CanTranslate
*/
CanTranslate(128),
/**
* Representing QWebEngineContextMenuRequest:: CanEditRichly
*/
CanEditRichly(256);
static {
QtJambi_LibraryUtilities.initialize();
}
private EditFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
@Override
public @NonNull EditFlags asFlags() {
return new EditFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull EditFlags combined(@NonNull EditFlag e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull EditFlags cleared(@NonNull EditFlag e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link EditFlags} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull EditFlags flags(@Nullable EditFlag @NonNull... values) {
return new EditFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull EditFlag resolve(int value) {
switch (value) {
case 1: return CanUndo;
case 2: return CanRedo;
case 4: return CanCut;
case 8: return CanCopy;
case 16: return CanPaste;
case 32: return CanDelete;
case 64: return CanSelectAll;
case 128: return CanTranslate;
case 256: return CanEditRichly;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link EditFlag}
*/
public static final class EditFlags extends QFlags implements Comparable {
private static final long serialVersionUID = 0x6471c7474d16e451L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new EditFlags where the flags in args
are set.
* @param args enum entries
*/
public EditFlags(@Nullable EditFlag @NonNull... args){
super(args);
}
/**
* Creates a new EditFlags with given value
.
* @param value
*/
public EditFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new EditFlags
*/
@Override
public final @NonNull EditFlags combined(@StrictNonNull EditFlag e){
return new EditFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
@Override
public final @NonNull EditFlags setFlag(@Nullable EditFlag e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
@Override
public final @NonNull EditFlags setFlag(@Nullable EditFlag e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this EditFlags.
* @return array of enum entries
*/
@Override
public final @NonNull EditFlag @NonNull[] flags(){
return super.flags(EditFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull EditFlags clone(){
return new EditFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull EditFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QWebEngineContextMenuRequest::MediaFlag
* @since This enum was introduced in Qt 6.2.
*
* @see MediaFlags
*/
public enum MediaFlag implements QtFlagEnumerator {
/**
* Representing QWebEngineContextMenuRequest:: MediaInError
*/
MediaInError(1),
/**
* Representing QWebEngineContextMenuRequest:: MediaPaused
*/
MediaPaused(2),
/**
* Representing QWebEngineContextMenuRequest:: MediaMuted
*/
MediaMuted(4),
/**
* Representing QWebEngineContextMenuRequest:: MediaLoop
*/
MediaLoop(8),
/**
* Representing QWebEngineContextMenuRequest:: MediaCanSave
*/
MediaCanSave(16),
/**
* Representing QWebEngineContextMenuRequest:: MediaHasAudio
*/
MediaHasAudio(32),
/**
* Representing QWebEngineContextMenuRequest:: MediaCanToggleControls
*/
MediaCanToggleControls(64),
/**
* Representing QWebEngineContextMenuRequest:: MediaControls
*/
MediaControls(128),
/**
* Representing QWebEngineContextMenuRequest:: MediaCanPrint
*/
MediaCanPrint(256),
/**
* Representing QWebEngineContextMenuRequest:: MediaCanRotate
*/
MediaCanRotate(512);
static {
QtJambi_LibraryUtilities.initialize();
}
private MediaFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
@Override
public @NonNull MediaFlags asFlags() {
return new MediaFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull MediaFlags combined(@NonNull MediaFlag e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull MediaFlags cleared(@NonNull MediaFlag e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link MediaFlags} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull MediaFlags flags(@Nullable MediaFlag @NonNull... values) {
return new MediaFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull MediaFlag resolve(int value) {
switch (value) {
case 1: return MediaInError;
case 2: return MediaPaused;
case 4: return MediaMuted;
case 8: return MediaLoop;
case 16: return MediaCanSave;
case 32: return MediaHasAudio;
case 64: return MediaCanToggleControls;
case 128: return MediaControls;
case 256: return MediaCanPrint;
case 512: return MediaCanRotate;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link MediaFlag}
*/
public static final class MediaFlags extends QFlags implements Comparable {
private static final long serialVersionUID = 0xa5bae86f204e2f26L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new MediaFlags where the flags in args
are set.
* @param args enum entries
*/
public MediaFlags(@Nullable MediaFlag @NonNull... args){
super(args);
}
/**
* Creates a new MediaFlags with given value
.
* @param value
*/
public MediaFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new MediaFlags
*/
@Override
public final @NonNull MediaFlags combined(@StrictNonNull MediaFlag e){
return new MediaFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
@Override
public final @NonNull MediaFlags setFlag(@Nullable MediaFlag e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
@Override
public final @NonNull MediaFlags setFlag(@Nullable MediaFlag e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this MediaFlags.
* @return array of enum entries
*/
@Override
public final @NonNull MediaFlag @NonNull[] flags(){
return super.flags(MediaFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull MediaFlags clone(){
return new MediaFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull MediaFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QWebEngineContextMenuRequest::MediaType
* @since This enum was introduced in Qt 6.2.
*/
public enum MediaType implements QtEnumerator {
/**
* Representing QWebEngineContextMenuRequest:: MediaTypeNone
*/
MediaTypeNone(0),
/**
* Representing QWebEngineContextMenuRequest:: MediaTypeImage
*/
MediaTypeImage(1),
/**
* Representing QWebEngineContextMenuRequest:: MediaTypeVideo
*/
MediaTypeVideo(2),
/**
* Representing QWebEngineContextMenuRequest:: MediaTypeAudio
*/
MediaTypeAudio(3),
/**
* Representing QWebEngineContextMenuRequest:: MediaTypeCanvas
*/
MediaTypeCanvas(4),
/**
* Representing QWebEngineContextMenuRequest:: MediaTypeFile
*/
MediaTypeFile(5),
/**
* Representing QWebEngineContextMenuRequest:: MediaTypePlugin
*/
MediaTypePlugin(6);
static {
QtJambi_LibraryUtilities.initialize();
}
private MediaType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull MediaType resolve(int value) {
switch (value) {
case 0: return MediaTypeNone;
case 1: return MediaTypeImage;
case 2: return MediaTypeVideo;
case 3: return MediaTypeAudio;
case 4: return MediaTypeCanvas;
case 5: return MediaTypeFile;
case 6: return MediaTypePlugin;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QWebEngineContextMenuRequest:: editFlags()const
* @return
*/
@QtPropertyReader(name="editFlags")
@QtPropertyConstant
@QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.@NonNull EditFlags editFlags(){
return new io.qt.webengine.core.QWebEngineContextMenuRequest.EditFlags(editFlags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int editFlags_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: isAccepted()const
* @return
*/
@QtPropertyReader(name="accepted")
@QtUninvokable
public final boolean isAccepted(){
return isAccepted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isAccepted_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: isContentEditable()const
* @return
*/
@QtPropertyReader(name="isContentEditable")
@QtPropertyConstant
@QtUninvokable
public final boolean isContentEditable(){
return isContentEditable_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isContentEditable_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: linkText()const
* @return
*/
@QtPropertyReader(name="linkText")
@QtPropertyConstant
@QtUninvokable
public final java.lang.@NonNull String linkText(){
return linkText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String linkText_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: linkUrl()const
* @return
*/
@QtPropertyReader(name="linkUrl")
@QtPropertyConstant
@QtUninvokable
public final io.qt.core.@NonNull QUrl linkUrl(){
return linkUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl linkUrl_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: mediaFlags()const
* @return
*/
@QtPropertyReader(name="mediaFlags")
@QtPropertyConstant
@QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.@NonNull MediaFlags mediaFlags(){
return new io.qt.webengine.core.QWebEngineContextMenuRequest.MediaFlags(mediaFlags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int mediaFlags_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: mediaType()const
* @return
*/
@QtPropertyReader(name="mediaType")
@QtPropertyConstant
@QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.@NonNull MediaType mediaType(){
return io.qt.webengine.core.QWebEngineContextMenuRequest.MediaType.resolve(mediaType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int mediaType_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: mediaUrl()const
* @return
*/
@QtPropertyReader(name="mediaUrl")
@QtPropertyConstant
@QtUninvokable
public final io.qt.core.@NonNull QUrl mediaUrl(){
return mediaUrl_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QUrl mediaUrl_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: misspelledWord()const
* @return
*/
@QtPropertyReader(name="misspelledWord")
@QtPropertyConstant
@QtUninvokable
public final java.lang.@NonNull String misspelledWord(){
return misspelledWord_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String misspelledWord_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: position()const
* @return
*/
@QtPropertyReader(name="position")
@QtPropertyConstant
@QtUninvokable
public final io.qt.core.@NonNull QPoint position(){
return position_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint position_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: selectedText()const
* @return
*/
@QtPropertyReader(name="selectedText")
@QtPropertyConstant
@QtUninvokable
public final java.lang.@NonNull String selectedText(){
return selectedText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String selectedText_native_constfct(long __this__nativeId);
/**
* See QWebEngineContextMenuRequest:: setAccepted(bool)
* @param accepted
*/
@QtPropertyWriter(name="accepted")
@QtUninvokable
public final void setAccepted(boolean accepted){
setAccepted_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), accepted);
}
@QtUninvokable
private native void setAccepted_native_bool(long __this__nativeId, boolean accepted);
/**
* See QWebEngineContextMenuRequest:: spellCheckerSuggestions()const
* @return
*/
@QtPropertyReader(name="spellCheckerSuggestions")
@QtPropertyConstant
@QtUninvokable
public final io.qt.core.@NonNull QStringList spellCheckerSuggestions(){
return spellCheckerSuggestions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QStringList spellCheckerSuggestions_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
private QWebEngineContextMenuRequest(QPrivateConstructor p) { super(p); }
/**
* @hidden
* Kotlin property getter. In Java use {@link #editFlags()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.@NonNull EditFlags getEditFlags() {
return editFlags();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isAccepted()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getAccepted() {
return isAccepted();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #linkText()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getLinkText() {
return linkText();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #linkUrl()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QUrl getLinkUrl() {
return linkUrl();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #mediaFlags()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.@NonNull MediaFlags getMediaFlags() {
return mediaFlags();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #mediaType()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.webengine.core.QWebEngineContextMenuRequest.@NonNull MediaType getMediaType() {
return mediaType();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #mediaUrl()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QUrl getMediaUrl() {
return mediaUrl();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #misspelledWord()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getMisspelledWord() {
return misspelledWord();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #position()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QPoint getPosition() {
return position();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #selectedText()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getSelectedText() {
return selectedText();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #spellCheckerSuggestions()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QStringList getSpellCheckerSuggestions() {
return spellCheckerSuggestions();
}
}