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

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

package io.qt.gui;


/**
 * 

Java wrapper for Qt class QXcbWindowFunctions

*/ public final class QXcbWindowFunctions { static { QtJambi_LibraryUtilities.initialize(); } private QXcbWindowFunctions() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QXcbWindowFunctions."); } /** *

Java wrapper for Qt enum QXcbWindowFunctions::WmWindowType

*/ public enum WmWindowType implements io.qt.QtEnumerator { Normal(1), Desktop(2), Dock(4), Toolbar(8), Menu(16), Utility(32), Splash(64), Dialog(128), DropDownMenu(256), PopupMenu(512), Tooltip(1024), Notification(2048), Combo(4096), Dnd(8192), KdeOverride(16384); private WmWindowType(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 WmWindowType resolve(int value) { switch (value) { 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } public static void setWmWindowIconText(io.qt.gui.QWindow window, java.lang.String text){ setWmWindowIconText_native_QWindow_ptr_cref_QString(QtJambi_LibraryUtilities.internal.checkedNativeId(window), text); } private native static void setWmWindowIconText_native_QWindow_ptr_cref_QString(long window, java.lang.String text); public static void setWmWindowRole(io.qt.gui.QWindow window, io.qt.core.QByteArray role){ setWmWindowRole_native_QWindow_ptr_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(window), QtJambi_LibraryUtilities.internal.checkedNativeId(role)); } private native static void setWmWindowRole_native_QWindow_ptr_cref_QByteArray(long window, long role); public static void setWmWindowType(io.qt.gui.QWindow window, io.qt.gui.QXcbWindowFunctions.WmWindowType type){ setWmWindowType_native_QWindow_ptr_QXcbWindowFunctions_WmWindowType(QtJambi_LibraryUtilities.internal.checkedNativeId(window), type.value()); } private native static void setWmWindowType_native_QWindow_ptr_QXcbWindowFunctions_WmWindowType(long window, int type); public static int visualId(io.qt.gui.QWindow window){ return visualId_native_QWindow_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(window)); } private native static int visualId_native_QWindow_ptr(long window); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy