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

io.qt.gui.nativeinterface.QXcbWindow Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui.nativeinterface;

import io.qt.*;


/**
 * 

Java wrapper for Qt class QNativeInterface::Private::QXcbWindow

*/ public interface QXcbWindow extends QtObjectInterface { /** *

Java wrapper for Qt enum QNativeInterface::Private::QXcbWindow::WindowType

* * @see WindowTypes */ public enum WindowType implements QtFlagEnumerator { /** *

Representing QNativeInterface::Private::QXcbWindow::None

*/ None(0), /** *

Representing QNativeInterface::Private::QXcbWindow::Normal

*/ Normal(1), /** *

Representing QNativeInterface::Private::QXcbWindow::Desktop

*/ Desktop(2), /** *

Representing QNativeInterface::Private::QXcbWindow::Dock

*/ Dock(4), /** *

Representing QNativeInterface::Private::QXcbWindow::Toolbar

*/ Toolbar(8), /** *

Representing QNativeInterface::Private::QXcbWindow::Menu

*/ Menu(16), /** *

Representing QNativeInterface::Private::QXcbWindow::Utility

*/ Utility(32), /** *

Representing QNativeInterface::Private::QXcbWindow::Splash

*/ Splash(64), /** *

Representing QNativeInterface::Private::QXcbWindow::Dialog

*/ Dialog(128), /** *

Representing QNativeInterface::Private::QXcbWindow::DropDownMenu

*/ DropDownMenu(256), /** *

Representing QNativeInterface::Private::QXcbWindow::PopupMenu

*/ PopupMenu(512), /** *

Representing QNativeInterface::Private::QXcbWindow::Tooltip

*/ Tooltip(1024), /** *

Representing QNativeInterface::Private::QXcbWindow::Notification

*/ Notification(2048), /** *

Representing QNativeInterface::Private::QXcbWindow::Combo

*/ Combo(4096), /** *

Representing QNativeInterface::Private::QXcbWindow::Dnd

*/ Dnd(8192), /** *

Representing QNativeInterface::Private::QXcbWindow::KdeOverride

*/ KdeOverride(16384); static { QtJambi_LibraryUtilities.initialize(); } private WindowType(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull WindowTypes asFlags() { return new WindowTypes(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull WindowTypes combined(@NonNull WindowType 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 WindowTypes cleared(@NonNull WindowType e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link WindowTypes} from the entries. * @param values entries * @return new flag */ public static @NonNull WindowTypes flags(@Nullable WindowType @NonNull... values) { return new WindowTypes(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull WindowType resolve(int value) { switch (value) { case 0: return None; case 1: return Normal; case 2: return Desktop; case 4: return Dock; case 8: return Toolbar; case 16: return Menu; case 32: return Utility; case 64: return Splash; case 128: return Dialog; case 256: return DropDownMenu; case 512: return PopupMenu; case 1024: return Tooltip; case 2048: return Notification; case 4096: return Combo; case 8192: return Dnd; case 16384: return KdeOverride; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link WindowType} */ public static final class WindowTypes extends QFlags implements Comparable { private static final long serialVersionUID = 0xc8632944e0676c99L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new WindowTypes where the flags in args are set. * @param args enum entries */ public WindowTypes(@Nullable WindowType @NonNull... args){ super(args); } /** * Creates a new WindowTypes with given value. * @param value */ public WindowTypes(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new WindowTypes */ @Override public final @NonNull WindowTypes combined(@StrictNonNull WindowType e){ return new WindowTypes(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull WindowTypes setFlag(@Nullable WindowType e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final @NonNull WindowTypes setFlag(@Nullable WindowType 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 WindowTypes. * @return array of enum entries */ @Override public final @NonNull WindowType @NonNull[] flags(){ return super.flags(WindowType.values()); } /** * {@inheritDoc} */ @Override public final @NonNull WindowTypes clone(){ return new WindowTypes(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull WindowTypes other){ return Integer.compare(value(), other.value()); } } /** * @hidden *

Implementor class for interface {@link io.qt.gui.nativeinterface.QXcbWindow}

*/ public static abstract class Impl extends QtObject implements io.qt.gui.nativeinterface.QXcbWindow { static { QtJambi_LibraryUtilities.initialize(); } @NativeAccess private static final class ConcreteWrapper extends QXcbWindow.Impl { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public void setWindowIconText(java.lang.@NonNull String text){ setWindowIconText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text); } private native static void setWindowIconText_native_cref_QString(long __this__nativeId, java.lang.String text); @Override @QtUninvokable public void setWindowRole(java.lang.@NonNull String role){ setWindowRole_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), role); } private native static void setWindowRole_native_cref_QString(long __this__nativeId, java.lang.String role); @Override @QtUninvokable public void setWindowType(io.qt.gui.nativeinterface.QXcbWindow.@NonNull WindowTypes type){ setWindowType_native_QNativeInterface_Private_QXcbWindow_WindowTypes(QtJambi_LibraryUtilities.internal.nativeId(this), type.value()); } private native static void setWindowType_native_QNativeInterface_Private_QXcbWindow_WindowTypes(long __this__nativeId, int type); @Override @QtUninvokable public int visualId(){ return visualId_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native static int visualId_native_constfct(long __this__nativeId); } /** *

See QNativeInterface::Private::QXcbWindow::setWindowIconText(QString)

*/ @QtUninvokable public abstract void setWindowIconText(java.lang.@NonNull String text); /** *

See QNativeInterface::Private::QXcbWindow::setWindowRole(QString)

*/ @QtUninvokable public abstract void setWindowRole(java.lang.@NonNull String role); /** *

See QNativeInterface::Private::QXcbWindow::setWindowType(QNativeInterface::Private::QXcbWindow::WindowTypes)

*/ @QtUninvokable public abstract void setWindowType(io.qt.gui.nativeinterface.QXcbWindow.@NonNull WindowTypes type); /** *

See QNativeInterface::Private::QXcbWindow::visualId()const

*/ @QtUninvokable public abstract int visualId(); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Impl(QPrivateConstructor p) { super(p); } /** *

Overloaded function for {@link #setWindowType(io.qt.gui.nativeinterface.QXcbWindow.WindowTypes)}.

*/ @QtUninvokable public final void setWindowType(io.qt.gui.nativeinterface.QXcbWindow.@NonNull WindowType @NonNull... type) { setWindowType(new io.qt.gui.nativeinterface.QXcbWindow.WindowTypes(type)); } } /** *

See QNativeInterface::Private::QXcbWindow::setWindowIconText(QString)

*/ @QtUninvokable public void setWindowIconText(java.lang.@NonNull String text); /** *

See QNativeInterface::Private::QXcbWindow::setWindowRole(QString)

*/ @QtUninvokable public void setWindowRole(java.lang.@NonNull String role); /** *

See QNativeInterface::Private::QXcbWindow::setWindowType(QNativeInterface::Private::QXcbWindow::WindowTypes)

*/ @QtUninvokable public void setWindowType(io.qt.gui.nativeinterface.QXcbWindow.@NonNull WindowTypes type); /** *

See QNativeInterface::Private::QXcbWindow::visualId()const

*/ @QtUninvokable public int visualId(); /** *

Overloaded function for {@link #setWindowType(io.qt.gui.nativeinterface.QXcbWindow.WindowTypes)}.

*/ @QtUninvokable public default void setWindowType(io.qt.gui.nativeinterface.QXcbWindow.@NonNull WindowType @NonNull... type) { setWindowType(new io.qt.gui.nativeinterface.QXcbWindow.WindowTypes(type)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy