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

io.qt.widgets.QStyleOptionFrame Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.widgets;


/**
 * 

Used to describe the parameters for drawing a frame

*

Java wrapper for Qt class QStyleOptionFrame

*/ public class QStyleOptionFrame extends io.qt.widgets.QStyleOption implements java.lang.Cloneable { /** *

Java wrapper for Qt enum QStyleOptionFrame::FrameFeature

* * @see FrameFeatures */ public enum FrameFeature implements io.qt.QtFlagEnumerator { None(0), Flat(1), Rounded(2); private FrameFeature(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public FrameFeatures asFlags() { return new FrameFeatures(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public FrameFeatures combined(FrameFeature e) { return new FrameFeatures(this, e); } /** * Creates a new {@link FrameFeatures} from the entries. * @param values entries * @return new flag */ public static FrameFeatures flags(FrameFeature ... values) { return new FrameFeatures(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static FrameFeature resolve(int value) { switch (value) { case 0: return None; case 1: return Flat; case 2: return Rounded; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** * QFlags type for enum {@link FrameFeature} */ public static final class FrameFeatures extends io.qt.QFlags implements Comparable { private static final long serialVersionUID = 0xa33506677cd8a4e6L; /** * Creates a new FrameFeatures where the flags in args are set. * @param args enum entries */ public FrameFeatures(FrameFeature ... args){ super(args); } /** * Creates a new FrameFeatures with given value. * @param value */ public FrameFeatures(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new FrameFeatures */ @Override public final FrameFeatures combined(FrameFeature e){ return new FrameFeatures(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final FrameFeatures setFlag(FrameFeature 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 FrameFeatures setFlag(FrameFeature e, boolean on){ super.setFlag(e, on); return this; } /** * Returns an array of flag objects represented by this FrameFeatures. * @return array of enum entries */ @Override public final FrameFeature[] flags(){ return super.flags(FrameFeature.values()); } /** * {@inheritDoc} */ @Override public final FrameFeatures clone(){ return new FrameFeatures(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(FrameFeatures other){ return Integer.compare(value(), other.value()); } } /** *

See QStyleOptionFrame::QStyleOptionFrame()

*/ public QStyleOptionFrame(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QStyleOptionFrame instance); /** *

See QStyleOptionFrame::QStyleOptionFrame(QStyleOptionFrame)

*/ public QStyleOptionFrame(io.qt.widgets.QStyleOptionFrame other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QStyleOptionFrame instance, io.qt.widgets.QStyleOptionFrame other); @io.qt.QtUninvokable public final void set(io.qt.widgets.QStyleOptionFrame arg__1){ set_native_cref_QStyleOptionFrame(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void set_native_cref_QStyleOptionFrame(long __this__nativeId, long arg__1); /** *

Overloaded function for {@link #setFeatures(io.qt.widgets.QStyleOptionFrame.FrameFeatures)}.

*/ @io.qt.QtUninvokable public final void setFeatures(io.qt.widgets.QStyleOptionFrame.FrameFeature ... features){ setFeatures(new io.qt.widgets.QStyleOptionFrame.FrameFeatures(features)); } /** *

Bitwise OR of the features that describe this frame

*

See QStyleOptionFrame::features

*/ @io.qt.QtUninvokable public final void setFeatures(io.qt.widgets.QStyleOptionFrame.FrameFeatures features){ setFeatures_native_cref_QFlags_QStyleOptionFrame_FrameFeature_(QtJambi_LibraryUtilities.internal.nativeId(this), features.value()); } @io.qt.QtUninvokable private native void setFeatures_native_cref_QFlags_QStyleOptionFrame_FrameFeature_(long __this__nativeId, int features); /** *

Bitwise OR of the features that describe this frame

*

See QStyleOptionFrame::features

*/ @io.qt.QtUninvokable public final io.qt.widgets.QStyleOptionFrame.FrameFeatures features(){ return new io.qt.widgets.QStyleOptionFrame.FrameFeatures(features_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int features_native(long __this__nativeId); /** *

This property holds the frame shape value of the frame

*

See QStyleOptionFrame::frameShape

*/ @io.qt.QtUninvokable public final void setFrameShape(io.qt.widgets.QFrame.Shape frameShape){ setFrameShape_native_cref_QFrame_Shape(QtJambi_LibraryUtilities.internal.nativeId(this), frameShape.value()); } @io.qt.QtUninvokable private native void setFrameShape_native_cref_QFrame_Shape(long __this__nativeId, int frameShape); /** *

This property holds the frame shape value of the frame

*

See QStyleOptionFrame::frameShape

*/ @io.qt.QtUninvokable public final io.qt.widgets.QFrame.Shape frameShape(){ return io.qt.widgets.QFrame.Shape.resolve(frameShape_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int frameShape_native(long __this__nativeId); /** *

The line width for drawing the frame

*

See QStyleOptionFrame::lineWidth

*/ @io.qt.QtUninvokable public final void setLineWidth(int lineWidth){ setLineWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), lineWidth); } @io.qt.QtUninvokable private native void setLineWidth_native_int(long __this__nativeId, int lineWidth); /** *

The line width for drawing the frame

*

See QStyleOptionFrame::lineWidth

*/ @io.qt.QtUninvokable public final int lineWidth(){ return lineWidth_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int lineWidth_native(long __this__nativeId); /** *

The mid-line width for drawing the frame

*

See QStyleOptionFrame::midLineWidth

*/ @io.qt.QtUninvokable public final void setMidLineWidth(int midLineWidth){ setMidLineWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), midLineWidth); } @io.qt.QtUninvokable private native void setMidLineWidth_native_int(long __this__nativeId, int midLineWidth); /** *

The mid-line width for drawing the frame

*

See QStyleOptionFrame::midLineWidth

*/ @io.qt.QtUninvokable public final int midLineWidth(){ return midLineWidth_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int midLineWidth_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QStyleOptionFrame(QPrivateConstructor p) { super(p); } @Override public QStyleOptionFrame clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QStyleOptionFrame clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy