io.qt.widgets.QLCDNumber Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Displays a number with LCD-like digits
* Java wrapper for Qt class QLCDNumber
*/
public class QLCDNumber extends io.qt.widgets.QFrame
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QLCDNumber.class);
/**
* Java wrapper for Qt enum QLCDNumber::Mode
*/
public enum Mode implements QtEnumerator {
/**
* Representing QLCDNumber:: Hex
*/
Hex(0),
/**
* Representing QLCDNumber:: Dec
*/
Dec(1),
/**
* Representing QLCDNumber:: Oct
*/
Oct(2),
/**
* Representing QLCDNumber:: Bin
*/
Bin(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private Mode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Mode resolve(int value) {
switch (value) {
case 0: return Hex;
case 1: return Dec;
case 2: return Oct;
case 3: return Bin;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QLCDNumber::SegmentStyle
*/
public enum SegmentStyle implements QtEnumerator {
/**
* Representing QLCDNumber:: Outline
*/
Outline(0),
/**
* Representing QLCDNumber:: Filled
*/
Filled(1),
/**
* Representing QLCDNumber:: Flat
*/
Flat(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private SegmentStyle(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull SegmentStyle resolve(int value) {
switch (value) {
case 0: return Outline;
case 1: return Filled;
case 2: return Flat;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
*
*/
public final @NonNull Signal0 overflow = new Signal0();
/**
* See QLCDNumber:: QLCDNumber(QWidget*)
*/
public QLCDNumber(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QLCDNumber instance, io.qt.widgets.QWidget parent);
/**
* See QLCDNumber:: QLCDNumber(uint, QWidget*)
*/
public QLCDNumber(int numDigits, io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, numDigits, parent);
}
private native static void initialize_native(QLCDNumber instance, int numDigits, io.qt.widgets.QWidget parent);
/**
* See QLCDNumber:: checkOverflow(double)const
*/
@QtUninvokable
public final boolean checkOverflow(double num){
return checkOverflow_native_double_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), num);
}
@QtUninvokable
private native boolean checkOverflow_native_double_constfct(long __this__nativeId, double num);
/**
* See QLCDNumber:: checkOverflow(int)const
*/
@QtUninvokable
public final boolean checkOverflow(int num){
return checkOverflow_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), num);
}
@QtUninvokable
private native boolean checkOverflow_native_int_constfct(long __this__nativeId, int num);
/**
* See QLCDNumber:: digitCount()const
*/
@QtPropertyReader(name="digitCount")
@QtUninvokable
public final int digitCount(){
return digitCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int digitCount_native_constfct(long __this__nativeId);
/**
* See QLCDNumber:: display(QString)
*/
@QtPropertyWriter(name="value")
public final void display(java.lang.@NonNull String str){
display_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), str);
}
private native void display_native_cref_QString(long __this__nativeId, java.lang.String str);
/**
* See QLCDNumber:: display(double)
*/
@QtPropertyWriter(name="value")
public final void display(double num){
display_native_double(QtJambi_LibraryUtilities.internal.nativeId(this), num);
}
private native void display_native_double(long __this__nativeId, double num);
/**
*
*/
@QtPropertyWriter(name="value")
public final void display(int num){
display_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), num);
}
private native void display_native_int(long __this__nativeId, int num);
/**
* See QLCDNumber:: intValue()const
*/
@QtPropertyReader(name="intValue")
@QtUninvokable
public final int intValue(){
return intValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int intValue_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="mode")
@QtUninvokable
public final io.qt.widgets.QLCDNumber.@NonNull Mode mode(){
return io.qt.widgets.QLCDNumber.Mode.resolve(mode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int mode_native_constfct(long __this__nativeId);
/**
* See QLCDNumber:: segmentStyle()const
*/
@QtPropertyReader(name="segmentStyle")
@QtUninvokable
public final io.qt.widgets.QLCDNumber.@NonNull SegmentStyle segmentStyle(){
return io.qt.widgets.QLCDNumber.SegmentStyle.resolve(segmentStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int segmentStyle_native_constfct(long __this__nativeId);
/**
*
*/
public final void setBinMode(){
setBinMode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void setBinMode_native(long __this__nativeId);
/**
*
*/
public final void setDecMode(){
setDecMode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void setDecMode_native(long __this__nativeId);
/**
* See QLCDNumber:: setDigitCount(int)
*/
@QtPropertyWriter(name="digitCount")
@QtUninvokable
public final void setDigitCount(int nDigits){
setDigitCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), nDigits);
}
@QtUninvokable
private native void setDigitCount_native_int(long __this__nativeId, int nDigits);
/**
*
*/
public final void setHexMode(){
setHexMode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void setHexMode_native(long __this__nativeId);
/**
* See QLCDNumber:: setMode(QLCDNumber::Mode)
*/
@QtPropertyWriter(name="mode")
@QtUninvokable
public final void setMode(io.qt.widgets.QLCDNumber.@NonNull Mode arg__1){
setMode_native_QLCDNumber_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setMode_native_QLCDNumber_Mode(long __this__nativeId, int arg__1);
/**
*
*/
public final void setOctMode(){
setOctMode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void setOctMode_native(long __this__nativeId);
/**
* See QLCDNumber:: setSegmentStyle(QLCDNumber::SegmentStyle)
*/
@QtPropertyWriter(name="segmentStyle")
@QtUninvokable
public final void setSegmentStyle(io.qt.widgets.QLCDNumber.@NonNull SegmentStyle arg__1){
setSegmentStyle_native_QLCDNumber_SegmentStyle(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setSegmentStyle_native_QLCDNumber_SegmentStyle(long __this__nativeId, int arg__1);
/**
* See QLCDNumber:: setSmallDecimalPoint(bool)
*/
@QtPropertyWriter(name="smallDecimalPoint")
public final void setSmallDecimalPoint(boolean arg__1){
setSmallDecimalPoint_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1);
}
private native void setSmallDecimalPoint_native_bool(long __this__nativeId, boolean arg__1);
/**
* See QLCDNumber:: smallDecimalPoint()const
*/
@QtPropertyReader(name="smallDecimalPoint")
@QtUninvokable
public final boolean smallDecimalPoint(){
return smallDecimalPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean smallDecimalPoint_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="value")
@QtUninvokable
public final double value(){
return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double value_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
java.util.Objects.requireNonNull(e, "Argument 'e': null not expected.");
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 QWidget:: paintEvent(QPaintEvent*)
*/
@QtUninvokable
@Override
protected void paintEvent(io.qt.gui.@Nullable QPaintEvent arg__1){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize sizeHint(){
return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QLCDNumber(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QLCDNumber(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QLCDNumber instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QLCDNumber(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QLCDNumber() {
this((io.qt.widgets.QWidget)null);
}
/**
* Overloaded constructor for {@link #QLCDNumber(int, io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QLCDNumber(int numDigits) {
this(numDigits, (io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #digitCount()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getDigitCount() {
return digitCount();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #intValue()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getIntValue() {
return intValue();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #mode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QLCDNumber.@NonNull Mode getMode() {
return mode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #segmentStyle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QLCDNumber.@NonNull SegmentStyle getSegmentStyle() {
return segmentStyle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #smallDecimalPoint()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getSmallDecimalPoint() {
return smallDecimalPoint();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #value()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getValue() {
return value();
}
}