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

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

package io.qt.widgets;


/**
 * 

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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QLCDNumber.class); /** *

Java wrapper for Qt enum QLCDNumber::Mode

*/ public enum Mode implements io.qt.QtEnumerator { Hex(0), Dec(1), Oct(2), Bin(3); private Mode(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static 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 io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QLCDNumber::SegmentStyle

*/ public enum SegmentStyle implements io.qt.QtEnumerator { Outline(0), Filled(1), Flat(2); private SegmentStyle(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static SegmentStyle resolve(int value) { switch (value) { case 0: return Outline; case 1: return Filled; case 2: return Flat; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QLCDNumber::overflow()

*/ public final Signal0 overflow = new Signal0(); /** *

Overloaded constructor for {@link #QLCDNumber(io.qt.widgets.QWidget)} * with parent = null.

*/ public QLCDNumber() { this((io.qt.widgets.QWidget)null); } /** *

See QLCDNumber::QLCDNumber(QWidget*)

*/ public QLCDNumber(io.qt.widgets.QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QLCDNumber instance, io.qt.widgets.QWidget parent); /** *

Overloaded constructor for {@link #QLCDNumber(int, io.qt.widgets.QWidget)} * with parent = null.

*/ public QLCDNumber(int numDigits) { this(numDigits, (io.qt.widgets.QWidget)null); } /** *

See QLCDNumber::QLCDNumber(uint,QWidget*)

*/ public QLCDNumber(int numDigits, io.qt.widgets.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

*/ @io.qt.QtUninvokable public final boolean checkOverflow(double num){ return checkOverflow_native_double_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), num); } @io.qt.QtUninvokable private native boolean checkOverflow_native_double_constfct(long __this__nativeId, double num); /** *

See QLCDNumber::checkOverflow(int)const

*/ @io.qt.QtUninvokable public final boolean checkOverflow(int num){ return checkOverflow_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), num); } @io.qt.QtUninvokable private native boolean checkOverflow_native_int_constfct(long __this__nativeId, int num); /** *

See QLCDNumber::digitCount()const

*/ @io.qt.QtPropertyReader(name="digitCount") @io.qt.QtUninvokable public final int digitCount(){ return digitCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int digitCount_native_constfct(long __this__nativeId); /** *

See QLCDNumber::display(QString)

*/ @io.qt.QtPropertyWriter(name="value") public final void display(java.lang.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)

*/ @io.qt.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); /** *

See QLCDNumber::display(int)

*/ @io.qt.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

*/ @io.qt.QtPropertyReader(name="intValue") @io.qt.QtUninvokable public final int intValue(){ return intValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int intValue_native_constfct(long __this__nativeId); /** *

See QLCDNumber::mode()const

*/ @io.qt.QtPropertyReader(name="mode") @io.qt.QtUninvokable public final io.qt.widgets.QLCDNumber.Mode mode(){ return io.qt.widgets.QLCDNumber.Mode.resolve(mode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int mode_native_constfct(long __this__nativeId); /** *

See QLCDNumber::segmentStyle()const

*/ @io.qt.QtPropertyReader(name="segmentStyle") @io.qt.QtUninvokable public final io.qt.widgets.QLCDNumber.SegmentStyle segmentStyle(){ return io.qt.widgets.QLCDNumber.SegmentStyle.resolve(segmentStyle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int segmentStyle_native_constfct(long __this__nativeId); /** *

See QLCDNumber::setBinMode()

*/ public final void setBinMode(){ setBinMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setBinMode_native(long __this__nativeId); /** *

See QLCDNumber::setDecMode()

*/ public final void setDecMode(){ setDecMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setDecMode_native(long __this__nativeId); /** *

See QLCDNumber::setDigitCount(int)

*/ @io.qt.QtPropertyWriter(name="digitCount") @io.qt.QtUninvokable public final void setDigitCount(int nDigits){ setDigitCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), nDigits); } @io.qt.QtUninvokable private native void setDigitCount_native_int(long __this__nativeId, int nDigits); /** *

See QLCDNumber::setHexMode()

*/ public final void setHexMode(){ setHexMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setHexMode_native(long __this__nativeId); /** *

See QLCDNumber::setMode(QLCDNumber::Mode)

*/ @io.qt.QtPropertyWriter(name="mode") @io.qt.QtUninvokable public final void setMode(io.qt.widgets.QLCDNumber.Mode arg__1){ setMode_native_QLCDNumber_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @io.qt.QtUninvokable private native void setMode_native_QLCDNumber_Mode(long __this__nativeId, int arg__1); /** *

See QLCDNumber::setOctMode()

*/ public final void setOctMode(){ setOctMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void setOctMode_native(long __this__nativeId); /** *

See QLCDNumber::setSegmentStyle(QLCDNumber::SegmentStyle)

*/ @io.qt.QtPropertyWriter(name="segmentStyle") @io.qt.QtUninvokable public final void setSegmentStyle(io.qt.widgets.QLCDNumber.SegmentStyle arg__1){ setSegmentStyle_native_QLCDNumber_SegmentStyle(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value()); } @io.qt.QtUninvokable private native void setSegmentStyle_native_QLCDNumber_SegmentStyle(long __this__nativeId, int arg__1); /** *

See QLCDNumber::setSmallDecimalPoint(bool)

*/ @io.qt.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

*/ @io.qt.QtPropertyReader(name="smallDecimalPoint") @io.qt.QtUninvokable public final boolean smallDecimalPoint(){ return smallDecimalPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean smallDecimalPoint_native_constfct(long __this__nativeId); /** *

See QLCDNumber::value()const

*/ @io.qt.QtPropertyReader(name="value") @io.qt.QtUninvokable public final double value(){ return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double value_native_constfct(long __this__nativeId); /** *

See QObject::event(QEvent*)

*/ @io.qt.QtUninvokable public boolean event(io.qt.core.QEvent e){ return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e)); } @io.qt.QtUninvokable private native boolean event_native_QEvent_ptr(long __this__nativeId, long e); /** *

See QWidget::paintEvent(QPaintEvent*)

*/ @io.qt.QtUninvokable protected void paintEvent(io.qt.gui.QPaintEvent arg__1){ paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @io.qt.QtUninvokable private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long arg__1); /** *

See QWidget::sizeHint()const

*/ @io.qt.QtUninvokable public io.qt.core.QSize sizeHint(){ return sizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QSize sizeHint_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QLCDNumber(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QLCDNumber(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QLCDNumber instance, QDeclarativeConstructor constructor); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy