io.qt.widgets.QProxyStyle Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Convenience class that simplifies dynamically overriding QStyle elements
* Java wrapper for Qt class QProxyStyle
*/
public class QProxyStyle extends io.qt.widgets.QCommonStyle
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QProxyStyle.class);
/**
* See QProxyStyle:: QProxyStyle(QString)
*/
public QProxyStyle(java.lang.@NonNull String key){
super((QPrivateConstructor)null);
initialize_native(this, key);
}
private native static void initialize_native(QProxyStyle instance, java.lang.String key);
/**
* See QProxyStyle:: QProxyStyle(QStyle*)
*/
public QProxyStyle(io.qt.widgets.@Nullable QStyle style){
super((QPrivateConstructor)null);
initialize_native(this, style);
}
private native static void initialize_native(QProxyStyle instance, io.qt.widgets.QStyle style);
/**
* See QProxyStyle:: baseStyle()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QStyle baseStyle(){
return baseStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QStyle baseStyle_native_constfct(long __this__nativeId);
/**
* See QProxyStyle:: setBaseStyle(QStyle*)
*/
@QtUninvokable
public final void setBaseStyle(io.qt.widgets.@Nullable QStyle style){
setBaseStyle_native_QStyle_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(style));
}
@QtUninvokable
private native void setBaseStyle_native_QStyle_ptr(long __this__nativeId, long style);
/**
*
*/
@QtUninvokable
@Override
public void drawComplexControl(io.qt.widgets.QStyle.@NonNull ComplexControl control, io.qt.widgets.@Nullable QStyleOptionComplex option, io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@Nullable QWidget widget){
drawComplexControl_native_QStyle_ComplexControl_const_QStyleOptionComplex_ptr_QPainter_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), control.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void drawComplexControl_native_QStyle_ComplexControl_const_QStyleOptionComplex_ptr_QPainter_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int control, long option, long painter, long widget);
/**
* See QStyle:: drawControl(QStyle::ControlElement, const QStyleOption*, QPainter*, const QWidget*)const
*/
@QtUninvokable
@Override
public void drawControl(io.qt.widgets.QStyle.@NonNull ControlElement element, io.qt.widgets.@Nullable QStyleOption option, io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@Nullable QWidget widget){
drawControl_native_QStyle_ControlElement_const_QStyleOption_ptr_QPainter_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), element.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void drawControl_native_QStyle_ControlElement_const_QStyleOption_ptr_QPainter_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int element, long option, long painter, long widget);
/**
* See QStyle:: drawItemPixmap(QPainter*, QRect, int, QPixmap)const
*/
@QtUninvokable
public void drawItemPixmap(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, int alignment, io.qt.gui.@NonNull QPixmap pixmap){
drawItemPixmap_native_QPainter_ptr_cref_QRect_int_cref_QPixmap_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), alignment, QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
@QtUninvokable
private native void drawItemPixmap_native_QPainter_ptr_cref_QRect_int_cref_QPixmap_constfct(long __this__nativeId, long painter, long rect, int alignment, long pixmap);
/**
* See QStyle:: drawItemText(QPainter*, QRect, int, QPalette, bool, QString, QPalette::ColorRole)const
*/
@QtUninvokable
@Override
public void drawItemText(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, int flags, io.qt.gui.@NonNull QPalette pal, boolean enabled, java.lang.@NonNull String text, io.qt.gui.QPalette.@NonNull ColorRole textRole){
drawItemText_native_QPainter_ptr_cref_QRect_int_cref_QPalette_bool_cref_QString_QPalette_ColorRole_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), flags, QtJambi_LibraryUtilities.internal.checkedNativeId(pal), enabled, text, textRole.value());
}
@QtUninvokable
private native void drawItemText_native_QPainter_ptr_cref_QRect_int_cref_QPalette_bool_cref_QString_QPalette_ColorRole_constfct(long __this__nativeId, long painter, long rect, int flags, long pal, boolean enabled, java.lang.String text, int textRole);
/**
* See QStyle:: drawPrimitive(QStyle::PrimitiveElement, const QStyleOption*, QPainter*, const QWidget*)const
*/
@QtUninvokable
@Override
public void drawPrimitive(io.qt.widgets.QStyle.@NonNull PrimitiveElement element, io.qt.widgets.@Nullable QStyleOption option, io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@Nullable QWidget widget){
drawPrimitive_native_QStyle_PrimitiveElement_const_QStyleOption_ptr_QPainter_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), element.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void drawPrimitive_native_QStyle_PrimitiveElement_const_QStyleOption_ptr_QPainter_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int element, long option, long painter, long widget);
/**
*
*/
@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 QStyle:: generatedIconPixmap(QIcon::Mode, QPixmap, const QStyleOption*)const
*/
@QtUninvokable
@Override
public io.qt.gui.@NonNull QPixmap generatedIconPixmap(io.qt.gui.QIcon.@NonNull Mode iconMode, io.qt.gui.@NonNull QPixmap pixmap, io.qt.widgets.@Nullable QStyleOption opt){
return generatedIconPixmap_native_QIcon_Mode_cref_QPixmap_const_QStyleOption_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), iconMode.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap), QtJambi_LibraryUtilities.internal.checkedNativeId(opt));
}
@QtUninvokable
private native io.qt.gui.QPixmap generatedIconPixmap_native_QIcon_Mode_cref_QPixmap_const_QStyleOption_ptr_constfct(long __this__nativeId, int iconMode, long pixmap, long opt);
/**
*
*/
@QtUninvokable
@Override
public io.qt.widgets.QStyle.@StrictNonNull SubControl hitTestComplexControl(io.qt.widgets.QStyle.@NonNull ComplexControl control, io.qt.widgets.@Nullable QStyleOptionComplex option, io.qt.core.@NonNull QPoint pos, io.qt.widgets.@Nullable QWidget widget){
return hitTestComplexControl_native_QStyle_ComplexControl_const_QStyleOptionComplex_ptr_cref_QPoint_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), control.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(pos), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.widgets.QStyle.SubControl hitTestComplexControl_native_QStyle_ComplexControl_const_QStyleOptionComplex_ptr_cref_QPoint_const_QWidget_ptr_constfct(long __this__nativeId, int control, long option, long pos, long widget);
/**
* See QStyle:: itemPixmapRect(QRect, int, QPixmap)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRect itemPixmapRect(io.qt.core.@NonNull QRect r, int flags, io.qt.gui.@NonNull QPixmap pixmap){
return itemPixmapRect_native_cref_QRect_int_cref_QPixmap_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(r), flags, QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
@QtUninvokable
private native io.qt.core.QRect itemPixmapRect_native_cref_QRect_int_cref_QPixmap_constfct(long __this__nativeId, long r, int flags, long pixmap);
/**
* See QStyle:: itemTextRect(QFontMetrics, QRect, int, bool, QString)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRect itemTextRect(io.qt.gui.@NonNull QFontMetrics fm, io.qt.core.@NonNull QRect r, int flags, boolean enabled, java.lang.@NonNull String text){
return itemTextRect_native_cref_QFontMetrics_cref_QRect_int_bool_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fm), QtJambi_LibraryUtilities.internal.checkedNativeId(r), flags, enabled, text);
}
@QtUninvokable
private native io.qt.core.QRect itemTextRect_native_cref_QFontMetrics_cref_QRect_int_bool_cref_QString_constfct(long __this__nativeId, long fm, long r, int flags, boolean enabled, java.lang.String text);
/**
*
*/
@QtUninvokable
@Override
public int layoutSpacing(io.qt.widgets.QSizePolicy.@NonNull ControlType control1, io.qt.widgets.QSizePolicy.@NonNull ControlType control2, io.qt.core.Qt.@NonNull Orientation orientation, io.qt.widgets.@Nullable QStyleOption option, io.qt.widgets.@Nullable QWidget widget){
return layoutSpacing_native_QSizePolicy_ControlType_QSizePolicy_ControlType_Qt_Orientation_const_QStyleOption_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), control1.value(), control2.value(), orientation.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native int layoutSpacing_native_QSizePolicy_ControlType_QSizePolicy_ControlType_Qt_Orientation_const_QStyleOption_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int control1, int control2, int orientation, long option, long widget);
/**
* See QStyle:: pixelMetric(QStyle::PixelMetric, const QStyleOption*, const QWidget*)const
*/
@QtUninvokable
@Override
public int pixelMetric(io.qt.widgets.QStyle.@NonNull PixelMetric metric, io.qt.widgets.@Nullable QStyleOption option, io.qt.widgets.@Nullable QWidget widget){
return pixelMetric_native_QStyle_PixelMetric_const_QStyleOption_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), metric.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native int pixelMetric_native_QStyle_PixelMetric_const_QStyleOption_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int metric, long option, long widget);
/**
* See QStyle:: polish(QApplication*)
*/
@QtUninvokable
@Override
public void polish(io.qt.widgets.@Nullable QApplication app){
polish_native_QApplication_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(app));
}
@QtUninvokable
private native void polish_native_QApplication_ptr(long __this__nativeId, long app);
/**
*
*/
@QtUninvokable
@Override
public void polish(io.qt.gui.@StrictNonNull QPalette pal){
java.util.Objects.requireNonNull(pal, "Argument 'pal': null not expected.");
polish_native_ref_QPalette(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pal));
}
@QtUninvokable
private native void polish_native_ref_QPalette(long __this__nativeId, long pal);
/**
*
*/
@QtUninvokable
@Override
public void polish(io.qt.widgets.@Nullable QWidget widget){
polish_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void polish_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* See QStyle:: sizeFromContents(QStyle::ContentsType, const QStyleOption*, QSize, const QWidget*)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize sizeFromContents(io.qt.widgets.QStyle.@NonNull ContentsType type, io.qt.widgets.@Nullable QStyleOption option, io.qt.core.@NonNull QSize size, io.qt.widgets.@Nullable QWidget widget){
return sizeFromContents_native_QStyle_ContentsType_const_QStyleOption_ptr_cref_QSize_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), type.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(size), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.core.QSize sizeFromContents_native_QStyle_ContentsType_const_QStyleOption_ptr_cref_QSize_const_QWidget_ptr_constfct(long __this__nativeId, int type, long option, long size, long widget);
/**
* See QStyle:: standardIcon(QStyle::StandardPixmap, const QStyleOption*, const QWidget*)const
*/
@QtUninvokable
@Override
public io.qt.gui.@NonNull QIcon standardIcon(io.qt.widgets.QStyle.@NonNull StandardPixmap standardIcon, io.qt.widgets.@Nullable QStyleOption option, io.qt.widgets.@Nullable QWidget widget){
return standardIcon_native_QStyle_StandardPixmap_const_QStyleOption_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), standardIcon.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.gui.QIcon standardIcon_native_QStyle_StandardPixmap_const_QStyleOption_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int standardIcon, long option, long widget);
/**
* See QStyle:: standardPalette()const
*/
@QtUninvokable
@Override
public io.qt.gui.@NonNull QPalette standardPalette(){
return standardPalette_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPalette standardPalette_native_constfct(long __this__nativeId);
/**
* See QStyle:: standardPixmap(QStyle::StandardPixmap, const QStyleOption*, const QWidget*)const
*/
@QtUninvokable
@Override
public io.qt.gui.@NonNull QPixmap standardPixmap(io.qt.widgets.QStyle.@NonNull StandardPixmap standardPixmap, io.qt.widgets.@Nullable QStyleOption opt, io.qt.widgets.@Nullable QWidget widget){
return standardPixmap_native_QStyle_StandardPixmap_const_QStyleOption_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), standardPixmap.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.gui.QPixmap standardPixmap_native_QStyle_StandardPixmap_const_QStyleOption_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int standardPixmap, long opt, long widget);
/**
* See QStyle:: styleHint(QStyle::StyleHint, const QStyleOption*, const QWidget*, QStyleHintReturn*)const
*/
@QtUninvokable
@Override
public int styleHint(io.qt.widgets.QStyle.@NonNull StyleHint hint, io.qt.widgets.@Nullable QStyleOption option, io.qt.widgets.@Nullable QWidget widget, io.qt.widgets.@Nullable QStyleHintReturn returnData){
return styleHint_native_QStyle_StyleHint_const_QStyleOption_ptr_const_QWidget_ptr_QStyleHintReturn_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), hint.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(widget), QtJambi_LibraryUtilities.internal.checkedNativeId(returnData));
}
@QtUninvokable
private native int styleHint_native_QStyle_StyleHint_const_QStyleOption_ptr_const_QWidget_ptr_QStyleHintReturn_ptr_constfct(long __this__nativeId, int hint, long option, long widget, long returnData);
/**
*
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRect subControlRect(io.qt.widgets.QStyle.@NonNull ComplexControl cc, io.qt.widgets.@Nullable QStyleOptionComplex opt, io.qt.widgets.QStyle.@NonNull SubControl sc, io.qt.widgets.@Nullable QWidget widget){
return subControlRect_native_QStyle_ComplexControl_const_QStyleOptionComplex_ptr_QStyle_SubControl_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), cc.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(opt), sc.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.core.QRect subControlRect_native_QStyle_ComplexControl_const_QStyleOptionComplex_ptr_QStyle_SubControl_const_QWidget_ptr_constfct(long __this__nativeId, int cc, long opt, int sc, long widget);
/**
* See QStyle:: subElementRect(QStyle::SubElement, const QStyleOption*, const QWidget*)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRect subElementRect(io.qt.widgets.QStyle.@NonNull SubElement element, io.qt.widgets.@Nullable QStyleOption option, io.qt.widgets.@Nullable QWidget widget){
return subElementRect_native_QStyle_SubElement_const_QStyleOption_ptr_const_QWidget_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), element.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native io.qt.core.QRect subElementRect_native_QStyle_SubElement_const_QStyleOption_ptr_const_QWidget_ptr_constfct(long __this__nativeId, int element, long option, long widget);
/**
* See QStyle:: unpolish(QApplication*)
*/
@QtUninvokable
@Override
public void unpolish(io.qt.widgets.@Nullable QApplication app){
unpolish_native_QApplication_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(app));
}
@QtUninvokable
private native void unpolish_native_QApplication_ptr(long __this__nativeId, long app);
/**
* See QStyle:: unpolish(QWidget*)
*/
@QtUninvokable
@Override
public void unpolish(io.qt.widgets.@Nullable QWidget widget){
unpolish_native_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
@QtUninvokable
private native void unpolish_native_QWidget_ptr(long __this__nativeId, long widget);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QProxyStyle(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QProxyStyle(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QProxyStyle instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QProxyStyle(io.qt.widgets.QStyle)}
* with style = null
.
*/
public QProxyStyle() {
this((io.qt.widgets.QStyle)null);
}
}