
io.qt.widgets.QStyleOption Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
/**
* Stores the parameters used by QStyle functions
* Java wrapper for Qt class QStyleOption
*/
public class QStyleOption extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private Object __rcStyleObject = null;
/**
* See QStyleOption::QStyleOption(QStyleOption)
*/
public QStyleOption(io.qt.widgets.QStyleOption other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStyleOption instance, io.qt.widgets.QStyleOption other);
/**
* See QStyleOption::QStyleOption(int,int)
*/
public QStyleOption(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStyleOption instance);
/**
* See QStyleOption::initFrom(const QWidget*)
*/
@io.qt.QtUninvokable
public final void initFrom(io.qt.widgets.QWidget w){
initFrom_native_const_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@io.qt.QtUninvokable
private native void initFrom_native_const_QWidget_ptr(long __this__nativeId, long w);
/**
* See QStyleOption::operator=(QStyleOption)
*/
@io.qt.QtUninvokable
public final void set(io.qt.widgets.QStyleOption other){
set_native_cref_QStyleOption(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void set_native_cref_QStyleOption(long __this__nativeId, long other);
/**
* The text layout direction that should be used when drawing text in the control
*
*/
@io.qt.QtUninvokable
public final void setDirection(io.qt.core.Qt.LayoutDirection direction){
setDirection_native_cref_Qt_LayoutDirection(QtJambi_LibraryUtilities.internal.nativeId(this), direction.value());
}
@io.qt.QtUninvokable
private native void setDirection_native_cref_Qt_LayoutDirection(long __this__nativeId, int direction);
/**
* The text layout direction that should be used when drawing text in the control
*
*/
@io.qt.QtUninvokable
public final io.qt.core.Qt.LayoutDirection direction(){
return io.qt.core.Qt.LayoutDirection.resolve(direction_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int direction_native(long __this__nativeId);
/**
* The font metrics that should be used when drawing text in the control
*
*/
@io.qt.QtUninvokable
public final void setFontMetrics(io.qt.gui.QFontMetrics fontMetrics){
setFontMetrics_native_cref_QFontMetrics(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fontMetrics));
}
@io.qt.QtUninvokable
private native void setFontMetrics_native_cref_QFontMetrics(long __this__nativeId, long fontMetrics);
/**
* The font metrics that should be used when drawing text in the control
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QFontMetrics fontMetrics(){
return fontMetrics_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QFontMetrics fontMetrics_native(long __this__nativeId);
/**
* The palette that should be used when painting the control
*
*/
@io.qt.QtUninvokable
public final void setPalette(io.qt.gui.QPalette palette){
setPalette_native_cref_QPalette(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(palette));
}
@io.qt.QtUninvokable
private native void setPalette_native_cref_QPalette(long __this__nativeId, long palette);
/**
* The palette that should be used when painting the control
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPalette palette(){
return palette_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QPalette palette_native(long __this__nativeId);
/**
* The area that should be used for various calculations and painting
*
*/
@io.qt.QtUninvokable
public final void setRect(io.qt.core.QRect rect){
setRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void setRect_native_cref_QRect(long __this__nativeId, long rect);
/**
* The area that should be used for various calculations and painting
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QRect rect(){
return rect_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect rect_native(long __this__nativeId);
/**
* Overloaded function for {@link #setState(io.qt.widgets.QStyle.State)}.
*/
@io.qt.QtUninvokable
public final void setState(io.qt.widgets.QStyle.StateFlag ... state){
setState(new io.qt.widgets.QStyle.State(state));
}
/**
* The style flags that are used when drawing the control
*
*/
@io.qt.QtUninvokable
public final void setState(io.qt.widgets.QStyle.State state){
setState_native_cref_QFlags_QStyle_StateFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), state.value());
}
@io.qt.QtUninvokable
private native void setState_native_cref_QFlags_QStyle_StateFlag_(long __this__nativeId, int state);
/**
* The style flags that are used when drawing the control
*
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QStyle.State state(){
return new io.qt.widgets.QStyle.State(state_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int state_native(long __this__nativeId);
/**
* The object being styled
*
*/
@io.qt.QtUninvokable
public final void setStyleObject(io.qt.core.QObject styleObject){
setStyleObject_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(styleObject));
__rcStyleObject = styleObject;
}
@io.qt.QtUninvokable
private native void setStyleObject_native_QObject_ptr(long __this__nativeId, long styleObject);
/**
* The object being styled
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QObject styleObject(){
return styleObject_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QObject styleObject_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QStyleOption(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QStyleOption clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QStyleOption clone_native(long __this_nativeId);
}