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

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

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

import io.qt.*;


/**
 * 

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.@Nullable QPaintDevice pd, io.qt.widgets.@Nullable 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.@Nullable 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*)

*/ @QtUninvokable public final boolean begin(io.qt.gui.@Nullable QPaintDevice pd, io.qt.widgets.@Nullable QWidget w){ return begin_native_QPaintDevice_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pd), QtJambi_LibraryUtilities.internal.checkedNativeId(w)); } @QtUninvokable private native boolean begin_native_QPaintDevice_ptr_QWidget_ptr(long __this__nativeId, long pd, long w); /** *

See QStylePainter::begin(QWidget*)

*/ @QtUninvokable public final boolean begin(io.qt.widgets.@Nullable QWidget w){ return begin_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(w)); } @QtUninvokable private native boolean begin_native_QWidget_ptr(long __this__nativeId, long w); /** *

See QStylePainter::drawComplexControl(QStyle::ComplexControl,QStyleOptionComplex)

*/ @QtUninvokable public final void drawComplexControl(io.qt.widgets.QStyle.@NonNull ComplexControl cc, io.qt.widgets.@NonNull QStyleOptionComplex opt){ drawComplexControl_native_QStyle_ComplexControl_cref_QStyleOptionComplex(QtJambi_LibraryUtilities.internal.nativeId(this), cc.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt)); } @QtUninvokable private native void drawComplexControl_native_QStyle_ComplexControl_cref_QStyleOptionComplex(long __this__nativeId, int cc, long opt); /** *

See QStylePainter::drawControl(QStyle::ControlElement,QStyleOption)

*/ @QtUninvokable public final void drawControl(io.qt.widgets.QStyle.@NonNull ControlElement ce, io.qt.widgets.@NonNull QStyleOption opt){ drawControl_native_QStyle_ControlElement_cref_QStyleOption(QtJambi_LibraryUtilities.internal.nativeId(this), ce.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt)); } @QtUninvokable private native void drawControl_native_QStyle_ControlElement_cref_QStyleOption(long __this__nativeId, int ce, long opt); /** *

See QStylePainter::drawItemPixmap(QRect,int,QPixmap)

*/ @QtUninvokable public final void drawItemPixmap(io.qt.core.@NonNull QRect r, int flags, io.qt.gui.@NonNull 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)); } @QtUninvokable private native void drawItemPixmap_native_cref_QRect_int_cref_QPixmap(long __this__nativeId, long r, int flags, long pixmap); /** *

See QStylePainter::drawItemText(QRect,int,QPalette,bool,QString,QPalette::ColorRole)

*/ @QtUninvokable public final void drawItemText(io.qt.core.@NonNull QRect r, int flags, io.qt.gui.@NonNull QPalette pal, boolean enabled, java.lang.@NonNull String text, io.qt.gui.QPalette.@NonNull 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()); } @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)

*/ @QtUninvokable public final void drawPrimitive(io.qt.widgets.QStyle.@NonNull PrimitiveElement pe, io.qt.widgets.@NonNull QStyleOption opt){ drawPrimitive_native_QStyle_PrimitiveElement_cref_QStyleOption(QtJambi_LibraryUtilities.internal.nativeId(this), pe.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt)); } @QtUninvokable private native void drawPrimitive_native_QStyle_PrimitiveElement_cref_QStyleOption(long __this__nativeId, int pe, long opt); /** *

See QStylePainter::style()const

*/ @QtUninvokable public final io.qt.widgets.@Nullable QStyle style(){ return style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.widgets.QStyle style_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QStylePainter(QPrivateConstructor p) { super(p); } /** *

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.

*/ @QtUninvokable public final void drawItemText(io.qt.core.@NonNull QRect r, int flags, io.qt.gui.@NonNull QPalette pal, boolean enabled, java.lang.@NonNull String text) { drawItemText(r, flags, pal, enabled, text, io.qt.gui.QPalette.ColorRole.NoRole); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy