
io.qt.widgets.QFrame Maven / Gradle / Ivy
package io.qt.widgets;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QFrame.class);
/**
* Java wrapper for Qt enum QFrame::Shadow
*/
@io.qt.QtExtensibleEnum
public enum Shadow implements io.qt.QtEnumerator {
Plain(16),
Raised(32),
Sunken(48);
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 io.qt.QNoSuchEnumValueException if value not existent in the enum
*/
public static 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 io.qt.QNoSuchEnumValueException if value not existent in the enum or name does not match.
*/
public static Shadow resolve(int value, 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 io.qt.QtEnumerator {
NoFrame(0),
Box(1),
Panel(2),
WinPanel(3),
HLine(4),
VLine(5),
StyledPanel(6);
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 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QFrame::StyleMask
*/
@io.qt.QtUnlistedEnum
public enum StyleMask implements io.qt.QtEnumerator {
Shadow_Mask(240),
Shape_Mask(15);
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 StyleMask resolve(int value) {
switch (value) {
case 240: return Shadow_Mask;
case 15: return Shape_Mask;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Overloaded constructor for {@link #QFrame(io.qt.widgets.QWidget, io.qt.core.Qt.WindowFlags)}.
*/
public QFrame(io.qt.widgets.QWidget parent, io.qt.core.Qt.WindowType ... f){
this(parent, new io.qt.core.Qt.WindowFlags(f));
}
/**
* 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.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));
}
/**
* See QFrame::QFrame(QWidget*,Qt::WindowFlags)
*/
public QFrame(io.qt.widgets.QWidget parent, io.qt.core.Qt.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);
@io.qt.QtUninvokable
protected final void drawFrame(io.qt.gui.QPainter arg__1){
drawFrame_native_QPainter_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void drawFrame_native_QPainter_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtPropertyReader(name="frameRect")
@io.qt.QtPropertyDesignable("false")
@io.qt.QtUninvokable
public final io.qt.core.QRect frameRect(){
return frameRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect frameRect_native_constfct(long __this__nativeId);
/**
* See QFrame::frameShadow()const
*/
@io.qt.QtPropertyReader(name="frameShadow")
@io.qt.QtUninvokable
public final io.qt.widgets.QFrame.Shadow frameShadow(){
return io.qt.widgets.QFrame.Shadow.resolve(frameShadow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int frameShadow_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtPropertyReader(name="frameShape")
@io.qt.QtUninvokable
public final io.qt.widgets.QFrame.Shape frameShape(){
return io.qt.widgets.QFrame.Shape.resolve(frameShape_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int frameShape_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final int frameStyle(){
return frameStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int frameStyle_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtPropertyReader(name="frameWidth")
@io.qt.QtUninvokable
public final int frameWidth(){
return frameWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int frameWidth_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtPropertyReader(name="lineWidth")
@io.qt.QtUninvokable
public final int lineWidth(){
return lineWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int lineWidth_native_constfct(long __this__nativeId);
/**
* See QFrame::midLineWidth()const
*/
@io.qt.QtPropertyReader(name="midLineWidth")
@io.qt.QtUninvokable
public final int midLineWidth(){
return midLineWidth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int midLineWidth_native_constfct(long __this__nativeId);
/**
* See QFrame::setFrameRect(QRect)
*/
@io.qt.QtPropertyWriter(name="frameRect")
@io.qt.QtUninvokable
public final void setFrameRect(io.qt.core.QRect arg__1){
setFrameRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void setFrameRect_native_cref_QRect(long __this__nativeId, long arg__1);
/**
* See QFrame::setFrameShadow(QFrame::Shadow)
*/
@io.qt.QtPropertyWriter(name="frameShadow")
@io.qt.QtUninvokable
public final void setFrameShadow(io.qt.widgets.QFrame.Shadow arg__1){
setFrameShadow_native_QFrame_Shadow(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native void setFrameShadow_native_QFrame_Shadow(long __this__nativeId, int arg__1);
/**
* See QFrame::setFrameShape(QFrame::Shape)
*/
@io.qt.QtPropertyWriter(name="frameShape")
@io.qt.QtUninvokable
public final void setFrameShape(io.qt.widgets.QFrame.Shape arg__1){
setFrameShape_native_QFrame_Shape(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@io.qt.QtUninvokable
private native void setFrameShape_native_QFrame_Shape(long __this__nativeId, int arg__1);
/**
* See QFrame::setFrameStyle(int)
*/
@io.qt.QtUninvokable
public final void setFrameStyle(int arg__1){
setFrameStyle_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setFrameStyle_native_int(long __this__nativeId, int arg__1);
/**
*
*/
@io.qt.QtPropertyWriter(name="lineWidth")
@io.qt.QtUninvokable
public final void setLineWidth(int arg__1){
setLineWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setLineWidth_native_int(long __this__nativeId, int arg__1);
/**
* See QFrame::setMidLineWidth(int)
*/
@io.qt.QtPropertyWriter(name="midLineWidth")
@io.qt.QtUninvokable
public final void setMidLineWidth(int arg__1){
setMidLineWidth_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
@io.qt.QtUninvokable
private native void setMidLineWidth_native_int(long __this__nativeId, int arg__1);
/**
* See QWidget::changeEvent(QEvent*)
*/
@io.qt.QtUninvokable
protected void changeEvent(io.qt.core.QEvent arg__1){
changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public boolean event(io.qt.core.QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@io.qt.QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QFrame::initStyleOption(QStyleOptionFrame*)const
*/
@io.qt.QtUninvokable
protected void initStyleOption(io.qt.widgets.QStyleOptionFrame option){
initStyleOption_native_QStyleOptionFrame_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option);
}
@io.qt.QtUninvokable
private native void initStyleOption_native_QStyleOptionFrame_ptr_constfct(long __this__nativeId, io.qt.widgets.QStyleOptionFrame option);
/**
* See QWidget::paintEvent(QPaintEvent*)
*/
@io.qt.QtUninvokable
protected void paintEvent(io.qt.gui.QPaintEvent arg__1){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public io.qt.core.QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QFrame(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QFrame(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QFrame instance, QDeclarativeConstructor constructor);
}