io.qt.widgets.QStyleOptionTitleBar Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Used to describe the parameters for drawing a title bar
* Java wrapper for Qt class QStyleOptionTitleBar
*/
public class QStyleOptionTitleBar extends io.qt.widgets.QStyleOptionComplex
implements java.lang.Cloneable
{
/**
* See QStyleOptionTitleBar:: QStyleOptionTitleBar()
*/
public QStyleOptionTitleBar(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStyleOptionTitleBar instance);
/**
* See QStyleOptionTitleBar:: QStyleOptionTitleBar(QStyleOptionTitleBar)
*/
public QStyleOptionTitleBar(io.qt.widgets.@NonNull QStyleOptionTitleBar other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStyleOptionTitleBar instance, io.qt.widgets.QStyleOptionTitleBar other);
/**
* See QStyleOptionTitleBar:: operator=(QStyleOptionTitleBar)
*/
@QtUninvokable
public final void assign(io.qt.widgets.@NonNull QStyleOptionTitleBar arg__1){
assign_native_cref_QStyleOptionTitleBar(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void assign_native_cref_QStyleOptionTitleBar(long __this__nativeId, long arg__1);
/**
* The icon for the title bar
* See QStyleOptionTitleBar:: icon
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QIcon icon){
setIcon_native_cref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(icon));
}
@QtUninvokable
private native void setIcon_native_cref_QIcon(long __this__nativeId, long icon);
/**
* The icon for the title bar
* See QStyleOptionTitleBar:: icon
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon icon(){
return icon_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QIcon icon_native(long __this__nativeId);
/**
* The text of the title bar
* See QStyleOptionTitleBar:: text
*/
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* The text of the title bar
* See QStyleOptionTitleBar:: text
*/
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native(long __this__nativeId);
/**
* The widget flags for the title bar
* See QStyleOptionTitleBar:: titleBarFlags
*/
@QtUninvokable
public final void setTitleBarFlags(io.qt.core.Qt.@NonNull WindowFlags titleBarFlags){
setTitleBarFlags_native_cref_Qt_WindowFlags(QtJambi_LibraryUtilities.internal.nativeId(this), titleBarFlags.value());
}
@QtUninvokable
private native void setTitleBarFlags_native_cref_Qt_WindowFlags(long __this__nativeId, int titleBarFlags);
/**
* The widget flags for the title bar
* See QStyleOptionTitleBar:: titleBarFlags
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull WindowFlags titleBarFlags(){
return new io.qt.core.Qt.WindowFlags(titleBarFlags_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int titleBarFlags_native(long __this__nativeId);
/**
* The state of the title bar
* See QStyleOptionTitleBar:: titleBarState
*/
@QtUninvokable
public final void setTitleBarState(int titleBarState){
setTitleBarState_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), titleBarState);
}
@QtUninvokable
private native void setTitleBarState_native_int(long __this__nativeId, int titleBarState);
/**
* The state of the title bar
* See QStyleOptionTitleBar:: titleBarState
*/
@QtUninvokable
public final int titleBarState(){
return titleBarState_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int titleBarState_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStyleOptionTitleBar(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QStyleOptionTitleBar:: QStyleOptionTitleBar(QStyleOptionTitleBar)
*/
@QtUninvokable
@Override
public QStyleOptionTitleBar clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QStyleOptionTitleBar clone_native(long __this_nativeId);
/**
* @deprecated Use {@link #assign(io.qt.widgets.QStyleOptionTitleBar)} instead.
*/
@Deprecated
@QtUninvokable
public final void set(io.qt.widgets.@NonNull QStyleOptionTitleBar arg__1) {
assign(arg__1);
}
/**
* Overloaded function for {@link #setIcon(io.qt.gui.QIcon)}.
*/
@QtUninvokable
public final void setIcon(io.qt.gui.@NonNull QPixmap icon) {
setIcon(new io.qt.gui.QIcon(icon));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #icon()} instead.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QIcon getIcon() {
return icon();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #text()} instead.
*/
@QtUninvokable
public final java.lang.@NonNull String getText() {
return text();
}
/**
* Overloaded function for {@link #setTitleBarFlags(io.qt.core.Qt.WindowFlags)}.
*/
@QtUninvokable
public final void setTitleBarFlags(io.qt.core.Qt.@NonNull WindowType @NonNull... titleBarFlags) {
setTitleBarFlags(new io.qt.core.Qt.WindowFlags(titleBarFlags));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #titleBarFlags()} instead.
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull WindowFlags getTitleBarFlags() {
return titleBarFlags();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #titleBarState()} instead.
*/
@QtUninvokable
public final int getTitleBarState() {
return titleBarState();
}
}