
io.qt.gui.QWindowsWindowFunctions Maven / Gradle / Ivy
package io.qt.gui;
/**
* Java wrapper for Qt class QWindowsWindowFunctions
*/
public final class QWindowsWindowFunctions
{
static {
QtJambi_LibraryUtilities.initialize();
}
private QWindowsWindowFunctions() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QWindowsWindowFunctions."); }
/**
* Java wrapper for Qt enum QWindowsWindowFunctions::TouchWindowTouchType
*
* @see TouchWindowTouchTypes
*/
public enum TouchWindowTouchType implements io.qt.QtFlagEnumerator {
NormalTouch(0),
FineTouch(1),
WantPalmTouch(2);
private TouchWindowTouchType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public TouchWindowTouchTypes asFlags() {
return new TouchWindowTouchTypes(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public TouchWindowTouchTypes combined(TouchWindowTouchType e) {
return new TouchWindowTouchTypes(this, e);
}
/**
* Creates a new {@link TouchWindowTouchTypes} from the entries.
* @param values entries
* @return new flag
*/
public static TouchWindowTouchTypes flags(TouchWindowTouchType ... values) {
return new TouchWindowTouchTypes(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static TouchWindowTouchType resolve(int value) {
switch (value) {
case 0: return NormalTouch;
case 1: return FineTouch;
case 2: return WantPalmTouch;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link TouchWindowTouchType}
*/
public static final class TouchWindowTouchTypes extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0x21660f12a4769ea3L;
/**
* Creates a new TouchWindowTouchTypes where the flags in args
are set.
* @param args enum entries
*/
public TouchWindowTouchTypes(TouchWindowTouchType ... args){
super(args);
}
/**
* Creates a new TouchWindowTouchTypes with given value
.
* @param value
*/
public TouchWindowTouchTypes(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new TouchWindowTouchTypes
*/
@Override
public final TouchWindowTouchTypes combined(TouchWindowTouchType e){
return new TouchWindowTouchTypes(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final TouchWindowTouchTypes setFlag(TouchWindowTouchType e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final TouchWindowTouchTypes setFlag(TouchWindowTouchType e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this TouchWindowTouchTypes.
* @return array of enum entries
*/
@Override
public final TouchWindowTouchType[] flags(){
return super.flags(TouchWindowTouchType.values());
}
/**
* {@inheritDoc}
*/
@Override
public final TouchWindowTouchTypes clone(){
return new TouchWindowTouchTypes(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(TouchWindowTouchTypes other){
return Integer.compare(value(), other.value());
}
}
/**
* Java wrapper for Qt enum QWindowsWindowFunctions::WindowActivationBehavior
*/
public enum WindowActivationBehavior implements io.qt.QtEnumerator {
DefaultActivateWindow(0),
AlwaysActivateWindow(1);
private WindowActivationBehavior(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 WindowActivationBehavior resolve(int value) {
switch (value) {
case 0: return DefaultActivateWindow;
case 1: return AlwaysActivateWindow;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
public native static boolean isTabletMode();
public static void setHasBorderInFullScreen(io.qt.gui.QWindow window, boolean border){
setHasBorderInFullScreen_native_QWindow_ptr_bool(QtJambi_LibraryUtilities.internal.checkedNativeId(window), border);
}
private native static void setHasBorderInFullScreen_native_QWindow_ptr_bool(long window, boolean border);
public native static void setHasBorderInFullScreenDefault(boolean border);
public native static io.qt.core.QByteArray setHasBorderInFullScreenDefaultIdentifier();
/**
* Overloaded function for {@link #setTouchWindowTouchType(io.qt.gui.QWindow, io.qt.gui.QWindowsWindowFunctions.TouchWindowTouchTypes)}.
*/
public static void setTouchWindowTouchType(io.qt.gui.QWindow window, io.qt.gui.QWindowsWindowFunctions.TouchWindowTouchType ... type){
setTouchWindowTouchType(window, new io.qt.gui.QWindowsWindowFunctions.TouchWindowTouchTypes(type));
}
public static void setTouchWindowTouchType(io.qt.gui.QWindow window, io.qt.gui.QWindowsWindowFunctions.TouchWindowTouchTypes type){
setTouchWindowTouchType_native_QWindow_ptr_QFlags_QWindowsWindowFunctions_TouchWindowTouchType_(QtJambi_LibraryUtilities.internal.checkedNativeId(window), type.value());
}
private native static void setTouchWindowTouchType_native_QWindow_ptr_QFlags_QWindowsWindowFunctions_TouchWindowTouchType_(long window, int type);
public static void setWindowActivationBehavior(io.qt.gui.QWindowsWindowFunctions.WindowActivationBehavior behavior){
setWindowActivationBehavior_native_QWindowsWindowFunctions_WindowActivationBehavior(behavior.value());
}
private native static void setWindowActivationBehavior_native_QWindowsWindowFunctions_WindowActivationBehavior(int behavior);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy