io.qt.widgets.QStylePainter Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Convenience class for drawing QStyle elements inside a widget
* Java wrapper for Qt class QStylePainter
*/
public class QStylePainter extends io.qt.gui.QPainter
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QStylePainter::QStylePainter()
*/
public QStylePainter(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStylePainter instance);
/**
* See QStylePainter::QStylePainter(QPaintDevice*,QWidget*)
*/
public QStylePainter(io.qt.gui.QPaintDevice pd, io.qt.widgets.QWidget w){
super((QPrivateConstructor)null);
initialize_native(this, pd, w);
}
private native static void initialize_native(QStylePainter instance, io.qt.gui.QPaintDevice pd, io.qt.widgets.QWidget w);
/**
* See QStylePainter::QStylePainter(QWidget*)
*/
public QStylePainter(io.qt.widgets.QWidget w){
super((QPrivateConstructor)null);
initialize_native(this, w);
}
private native static void initialize_native(QStylePainter instance, io.qt.widgets.QWidget w);
/**
* See QStylePainter::begin(QPaintDevice*,QWidget*)
*/
@io.qt.QtUninvokable
public final boolean begin(io.qt.gui.QPaintDevice pd, io.qt.widgets.QWidget w){
return begin_native_QPaintDevice_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pd), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@io.qt.QtUninvokable
private native boolean begin_native_QPaintDevice_ptr_QWidget_ptr(long __this__nativeId, long pd, long w);
/**
* See QStylePainter::begin(QWidget*)
*/
@io.qt.QtUninvokable
public final boolean begin(io.qt.widgets.QWidget w){
return begin_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w));
}
@io.qt.QtUninvokable
private native boolean begin_native_QWidget_ptr(long __this__nativeId, long w);
/**
* See QStylePainter::drawComplexControl(QStyle::ComplexControl,QStyleOptionComplex)
*/
@io.qt.QtUninvokable
public final void drawComplexControl(io.qt.widgets.QStyle.ComplexControl cc, io.qt.widgets.QStyleOptionComplex opt){
drawComplexControl_native_QStyle_ComplexControl_cref_QStyleOptionComplex(QtJambi_LibraryUtilities.internal.nativeId(this), cc.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt));
}
@io.qt.QtUninvokable
private native void drawComplexControl_native_QStyle_ComplexControl_cref_QStyleOptionComplex(long __this__nativeId, int cc, long opt);
/**
* See QStylePainter::drawControl(QStyle::ControlElement,QStyleOption)
*/
@io.qt.QtUninvokable
public final void drawControl(io.qt.widgets.QStyle.ControlElement ce, io.qt.widgets.QStyleOption opt){
drawControl_native_QStyle_ControlElement_cref_QStyleOption(QtJambi_LibraryUtilities.internal.nativeId(this), ce.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt));
}
@io.qt.QtUninvokable
private native void drawControl_native_QStyle_ControlElement_cref_QStyleOption(long __this__nativeId, int ce, long opt);
/**
* See QStylePainter::drawItemPixmap(QRect,int,QPixmap)
*/
@io.qt.QtUninvokable
public final void drawItemPixmap(io.qt.core.QRect r, int flags, io.qt.gui.QPixmap pixmap){
drawItemPixmap_native_cref_QRect_int_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(r), flags, QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
@io.qt.QtUninvokable
private native void drawItemPixmap_native_cref_QRect_int_cref_QPixmap(long __this__nativeId, long r, int flags, long pixmap);
/**
* Overloaded function for {@link #drawItemText(io.qt.core.QRect, int, io.qt.gui.QPalette, boolean, java.lang.String, io.qt.gui.QPalette.ColorRole)}
* with textRole = io.qt.gui.QPalette.ColorRole.NoRole
.
*/
@io.qt.QtUninvokable
public final void drawItemText(io.qt.core.QRect r, int flags, io.qt.gui.QPalette pal, boolean enabled, java.lang.String text) {
drawItemText(r, flags, pal, enabled, text, io.qt.gui.QPalette.ColorRole.NoRole);
}
/**
* See QStylePainter::drawItemText(QRect,int,QPalette,bool,QString,QPalette::ColorRole)
*/
@io.qt.QtUninvokable
public final void drawItemText(io.qt.core.QRect r, int flags, io.qt.gui.QPalette pal, boolean enabled, java.lang.String text, io.qt.gui.QPalette.ColorRole textRole){
drawItemText_native_cref_QRect_int_cref_QPalette_bool_cref_QString_QPalette_ColorRole(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(r), flags, QtJambi_LibraryUtilities.internal.checkedNativeId(pal), enabled, text, textRole.value());
}
@io.qt.QtUninvokable
private native void drawItemText_native_cref_QRect_int_cref_QPalette_bool_cref_QString_QPalette_ColorRole(long __this__nativeId, long r, int flags, long pal, boolean enabled, java.lang.String text, int textRole);
/**
* See QStylePainter::drawPrimitive(QStyle::PrimitiveElement,QStyleOption)
*/
@io.qt.QtUninvokable
public final void drawPrimitive(io.qt.widgets.QStyle.PrimitiveElement pe, io.qt.widgets.QStyleOption opt){
drawPrimitive_native_QStyle_PrimitiveElement_cref_QStyleOption(QtJambi_LibraryUtilities.internal.nativeId(this), pe.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt));
}
@io.qt.QtUninvokable
private native void drawPrimitive_native_QStyle_PrimitiveElement_cref_QStyleOption(long __this__nativeId, int pe, long opt);
/**
* See QStylePainter::style()const
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QStyle style(){
return style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.widgets.QStyle style_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QStylePainter(QPrivateConstructor p) { super(p); }
}