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

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

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

import io.qt.*;


/**
 * 

The base class of widgets that can have a frame

*

Java wrapper for Qt class QFrame

*/ public class QFrame extends io.qt.widgets.QWidget { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QFrame.class); /** *

Java wrapper for Qt enum QFrame::Shadow

*/ @QtExtensibleEnum public enum Shadow implements QtEnumerator { /** *

Representing QFrame::Plain

*/ Plain(16), /** *

Representing QFrame::Raised

*/ Raised(32), /** *

Representing QFrame::Sunken

*/ Sunken(48); static { QtJambi_LibraryUtilities.initialize(); } private Shadow(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 * @throws QNoSuchEnumValueException if value not existent in the enum */ public static @NonNull Shadow resolve(int value) { switch (value) { case 16: return Plain; case 32: return Raised; case 48: return Sunken; default: return QtJambi_LibraryUtilities.internal.resolveEnum(Shadow.class, value, null); } } /** * Returns the corresponding enum entry for the given value and name. * @param value * @param name * @return enum entry * @throws QNoSuchEnumValueException if value not existent in the enum or name does not match. */ public static @NonNull Shadow resolve(int value, @Nullable String name) { if(name==null || name.isEmpty()) return resolve(value); else return QtJambi_LibraryUtilities.internal.resolveEnum(Shadow.class, value, name); } private final int value; } /** *

Java wrapper for Qt enum QFrame::Shape

*/ public enum Shape implements QtEnumerator { /** *

Representing QFrame::NoFrame

*/ NoFrame(0), /** *

Representing QFrame::Box

*/ Box(1), /** *

Representing QFrame::Panel

*/ Panel(2), /** *

Representing QFrame::WinPanel

*/ WinPanel(3), /** *

Representing QFrame::HLine

*/ HLine(4), /** *

Representing QFrame::VLine

*/ VLine(5), /** *

Representing QFrame::StyledPanel

*/ StyledPanel(6); static { QtJambi_LibraryUtilities.initialize(); } private Shape(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 @NonNull Shape resolve(int value) { switch (value) { case 0: return NoFrame; case 1: return Box; case 2: return Panel; case 3: return WinPanel; case 4: return HLine; case 5: return VLine; case 6: return StyledPanel; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QFrame::StyleMask

*/ @QtUnlistedEnum public enum StyleMask implements QtEnumerator { /** *

Representing QFrame::Shadow_Mask

*/ Shadow_Mask(240), /** *

Representing QFrame::Shape_Mask

*/ Shape_Mask(15); static { QtJambi_LibraryUtilities.initialize(); } private StyleMask(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 @NonNull StyleMask resolve(int value) { switch (value) { case 240: return Shadow_Mask; case 15: return Shape_Mask; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QFrame::QFrame(QWidget*,Qt::WindowFlags)

*/ public QFrame(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowFlags f){ super((QPrivateConstructor)null); initialize_native(this, parent, f); } private native static void initialize_native(QFrame instance, io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowFlags f); /** *

See QFrame::drawFrame(QPainter*)

*/ @QtUninvokable protected final void drawFrame(io.qt.gui.@Nullable QPainter arg__1){ drawFrame_native_QPainter_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void drawFrame_native_QPainter_ptr(long __this__nativeId, long arg__1); /** *

See QFrame::frameRect()const

*/ @QtPropertyReader(name="frameRect") @QtPropertyDesignable("false") @QtUninvokable public final io.qt.core.@NonNull QRect frameRect(){ return frameRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QRect frameRect_native_constfct(long __this__nativeId); /** *

See QFrame::frameShadow()const

*/ @QtPropertyReader(name="frameShadow") @QtUninvokable public final io.qt.widgets.QFrame.@NonNull Shadow frameShadow(){ return io.qt.widgets.QFrame.Shadow.resolve(frameShadow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int frameShadow_native_constfct(long __this__nativeId); /** *

See QFrame::frameShape()const

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

See QFrame::frameStyle()const

*/ @QtUninvokable public final int frameStyle(){ return frameStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int frameStyle_native_constfct(long __this__nativeId); /** *

See QFrame::frameWidth()const

*/ @QtPropertyReader(name="frameWidth") @QtUninvokable public final int frameWidth(){ return frameWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int frameWidth_native_constfct(long __this__nativeId); /** *

See QFrame::lineWidth()const

*/ @QtPropertyReader(name="lineWidth") @QtUninvokable public final int lineWidth(){ return lineWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int lineWidth_native_constfct(long __this__nativeId); /** *

See QFrame::midLineWidth()const

*/ @QtPropertyReader(name="midLineWidth") @QtUninvokable public final int midLineWidth(){ return midLineWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int midLineWidth_native_constfct(long __this__nativeId); /** *

See QFrame::setFrameRect(QRect)

*/ @QtPropertyWriter(name="frameRect") @QtUninvokable public final void setFrameRect(io.qt.core.@NonNull QRect arg__1){ setFrameRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void setFrameRect_native_cref_QRect(long __this__nativeId, long arg__1); /** *

See QFrame::setFrameShadow(QFrame::Shadow)

*/ @QtPropertyWriter(name="frameShadow") @QtUninvokable public final void setFrameShadow(io.qt.widgets.QFrame.@NonNull Shadow arg__1){ setFrameShadow_native_QFrame_Shadow(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setFrameShadow_native_QFrame_Shadow(long __this__nativeId, int arg__1); /** *

See QFrame::setFrameShape(QFrame::Shape)

*/ @QtPropertyWriter(name="frameShape") @QtUninvokable public final void setFrameShape(io.qt.widgets.QFrame.@NonNull Shape arg__1){ setFrameShape_native_QFrame_Shape(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @QtUninvokable private native void setFrameShape_native_QFrame_Shape(long __this__nativeId, int arg__1); /** *

See QFrame::setFrameStyle(int)

*/ @QtUninvokable public final void setFrameStyle(int arg__1){ setFrameStyle_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setFrameStyle_native_int(long __this__nativeId, int arg__1); /** *

See QFrame::setLineWidth(int)

*/ @QtPropertyWriter(name="lineWidth") @QtUninvokable public final void setLineWidth(int arg__1){ setLineWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setLineWidth_native_int(long __this__nativeId, int arg__1); /** *

See QFrame::setMidLineWidth(int)

*/ @QtPropertyWriter(name="midLineWidth") @QtUninvokable public final void setMidLineWidth(int arg__1){ setMidLineWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1); } @QtUninvokable private native void setMidLineWidth_native_int(long __this__nativeId, int arg__1); /** *

See QWidget::changeEvent(QEvent*)

*/ @QtUninvokable @Override protected void changeEvent(io.qt.core.@Nullable QEvent arg__1){ changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long arg__1); /** *

See QObject::event(QEvent*)

*/ @QtUninvokable @Override public boolean event(io.qt.core.@Nullable QEvent e){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long e); /** *

See QFrame::initStyleOption(QStyleOptionFrame*)const

*/ @QtUninvokable protected void initStyleOption(io.qt.widgets.@Nullable QStyleOptionFrame option){ initStyleOption_native_QStyleOptionFrame_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option)); } @QtUninvokable private native void initStyleOption_native_QStyleOptionFrame_ptr_constfct(long __this__nativeId, long option); /** *

See QWidget::paintEvent(QPaintEvent*)

*/ @QtUninvokable @Override protected void paintEvent(io.qt.gui.@Nullable QPaintEvent arg__1){ paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::sizeHint()const

*/ @QtUninvokable @Override public io.qt.core.@NonNull QSize sizeHint(){ return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QFrame(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QFrame(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QFrame instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QFrame(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)} * with f = new io.qt.core.Qt.WindowFlags(0).

*/ public QFrame(io.qt.widgets.@Nullable QWidget parent) { this(parent, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QFrame(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}

*

with:

    *
  • parent = null
  • *
  • f = new io.qt.core.Qt.WindowFlags(0)
  • *
*/ public QFrame() { this((io.qt.widgets.QWidget)null, new io.qt.core.Qt.WindowFlags(0)); } /** *

Overloaded constructor for {@link #QFrame(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.

*/ public QFrame(io.qt.widgets.@Nullable QWidget parent, io.qt.core.Qt.@NonNull WindowType @NonNull... f) { this(parent, new io.qt.core.Qt.WindowFlags(f)); } /** * @hidden *

Kotlin property getter. In Java use {@link #frameRect()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QRect getFrameRect() { return frameRect(); } /** * @hidden *

Kotlin property getter. In Java use {@link #frameShadow()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QFrame.@NonNull Shadow getFrameShadow() { return frameShadow(); } /** * @hidden *

Kotlin property getter. In Java use {@link #frameShape()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QFrame.@NonNull Shape getFrameShape() { return frameShape(); } /** * @hidden *

Kotlin property getter. In Java use {@link #frameWidth()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getFrameWidth() { return frameWidth(); } /** * @hidden *

Kotlin property getter. In Java use {@link #lineWidth()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getLineWidth() { return lineWidth(); } /** * @hidden *

Kotlin property getter. In Java use {@link #midLineWidth()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getMidLineWidth() { return midLineWidth(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy