java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QUntypedBindable
io.qt.core.QFloatBindable
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public final class QFloatBindable extends QUntypedBindable
QFloatBindable is primitive-typed version of QBindable<Float>.
- See Also:
QBindable
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description QFloatBindable()
Creates a newfloat
-typed invalid bindable.QFloatBindable(QFloatProperty property)
Creates a new bindable from provided property.QFloatBindable(QObject.QComputedFloatProperty property)
Creates a new bindable from provided property.QFloatBindable(QObject.QComputedProperty<@QtPrimitiveType Float> property)
Creates a new bindable from provided property.QFloatBindable(QObject.QFloatProperty property)
Creates a new bindable from provided property.QFloatBindable(QObject.QProperty<@QtPrimitiveType Float> property)
Creates a new bindable from provided property.QFloatBindable(QProperty<@QtPrimitiveType Float> property)
Creates a new bindable from provided property.QFloatBindable(QUntypedBindable other)
Creates a copy of the provided bindable. -
Method Summary
Modifier and Type Method Description QFloatPropertyBinding
binding()
Returns the binding expression that is associated with the underlying property.QFloatPropertyBinding
makeBinding()
Creates a binding to the underlying property.QFloatPropertyBinding
setBinding(QFloatPropertyBinding binding)
QFloatPropertyBinding
setBinding(QPropertyBinding<@QtPrimitiveType Float> binding)
QFloatPropertyBinding
setBinding(QtUtilities.FloatSupplier functor)
void
setValue(float value)
Assigns newValue to the underlying property and removes the property's associated binding, if present.QFloatPropertyBinding
takeBinding()
Disassociates the binding expression from this property and returns it.float
value()
Returns the value of the underlying property.Methods inherited from class io.qt.core.QUntypedBindable
clone, data, hasBinding, iface, isBindable, isValid, observe, onValueChanged, setBinding, setData, setIface, subscribe
-
Constructor Details
-
QFloatBindable
public QFloatBindable()Creates a newfloat
-typed invalid bindable. -
QFloatBindable
Creates a copy of the provided bindable. If the type of the other bindable is notfloat
it remains invalid.- Parameters:
other
-
-
QFloatBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QFloatBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QFloatBindable
Creates a new bindable from provided property.- Parameters:
property
-
-
QFloatBindable
Creates a new bindable from provided property. If the type of the property is notfloat
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QFloatBindable
Creates a new bindable from provided property. If the type of the property is notfloat
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
QFloatBindable
Creates a new bindable from provided property. If the type of the property is notfloat
anIllegalArgumentException
is thrown.- Parameters:
property
-
-
-
Method Details
-
makeBinding
Creates a binding to the underlying property.- Overrides:
makeBinding
in classQUntypedBindable
-
binding
Returns the binding expression that is associated with the underlying property. A default constructedQFloatPropertyBinding
will be returned if no such association exists.- Overrides:
binding
in classQUntypedBindable
- Returns:
- binding
-
setBinding
-
setBinding
@QtUninvokable public QFloatPropertyBinding setBinding(QPropertyBinding<@QtPrimitiveType Float> binding) -
setBinding
-
takeBinding
Disassociates the binding expression from this property and returns it.
After calling this function, the value of the property will only change if you assign a new value to it, or when a new binding is set.
- Returns:
- the removed binding
-
value
Returns the value of the underlying property. This may evaluate a binding expression that is tied to the property, before returning the value.- Returns:
- value
-
setValue
Assigns newValue to the underlying property and removes the property's associated binding, if present.
- Parameters:
newValue
-
-