Struct qt_gui::QAccessibleValueInterface
source · #[repr(C)]pub struct QAccessibleValueInterface { /* private fields */ }
Expand description
The QAccessibleValueInterface class implements support for objects that manipulate a value.
C++ class: QAccessibleValueInterface
.
The QAccessibleValueInterface class implements support for objects that manipulate a value.
This interface should be implemented by accessible objects that represent a value. Examples are spinner, slider, dial and scroll bar.
Instead of forcing the user to deal with the individual parts of the widgets, this interface gives an easier approach to the kind of widget it represents.
Usually this interface is implemented by classes that also implement QAccessibleInterface.
Implementations§
source§impl QAccessibleValueInterface
impl QAccessibleValueInterface
sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QAccessibleValueInterface>>
) -> Ref<QAccessibleValueInterface>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QAccessibleValueInterface>> ) -> Ref<QAccessibleValueInterface>
The QAccessibleValueInterface class implements support for objects that manipulate a value.
Calls C++ function: QAccessibleValueInterface& QAccessibleValueInterface::operator=(const QAccessibleValueInterface& other)
.
The QAccessibleValueInterface class implements support for objects that manipulate a value.
This interface should be implemented by accessible objects that represent a value. Examples are spinner, slider, dial and scroll bar.
Instead of forcing the user to deal with the individual parts of the widgets, this interface gives an easier approach to the kind of widget it represents.
Usually this interface is implemented by classes that also implement QAccessibleInterface.
sourcepub unsafe fn current_value(&self) -> CppBox<QVariant>
pub unsafe fn current_value(&self) -> CppBox<QVariant>
Returns the current value of the widget. This is usually a double or int.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::currentValue() const
.
Returns the current value of the widget. This is usually a double or int.
See also setCurrentValue().
sourcepub unsafe fn maximum_value(&self) -> CppBox<QVariant>
pub unsafe fn maximum_value(&self) -> CppBox<QVariant>
Returns the maximum value this object accepts.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::maximumValue() const
.
Returns the maximum value this object accepts.
See also minimumValue() and currentValue().
sourcepub unsafe fn minimum_step_size(&self) -> CppBox<QVariant>
pub unsafe fn minimum_step_size(&self) -> CppBox<QVariant>
Returns the minimum step size for the accessible. This is the smalles increment that makes sense when changing the value. When programatically changing the value it should always be a multiple of the minimum step size.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::minimumStepSize() const
.
Returns the minimum step size for the accessible. This is the smalles increment that makes sense when changing the value. When programatically changing the value it should always be a multiple of the minimum step size.
Some tools use this value even when the setCurrentValue does not perform any action. Progress bars for example are read-only but should return their range divided by 100.
sourcepub unsafe fn minimum_value(&self) -> CppBox<QVariant>
pub unsafe fn minimum_value(&self) -> CppBox<QVariant>
Returns the minimum value this object accepts.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::minimumValue() const
.
Returns the minimum value this object accepts.
See also maximumValue() and currentValue().
sourcepub unsafe fn set_current_value(&self, value: impl CastInto<Ref<QVariant>>)
pub unsafe fn set_current_value(&self, value: impl CastInto<Ref<QVariant>>)
Sets the value. If the desired value is out of the range of permissible values, this call will be ignored.
Calls C++ function: pure virtual void QAccessibleValueInterface::setCurrentValue(const QVariant& value)
.
Sets the value. If the desired value is out of the range of permissible values, this call will be ignored.
See also currentValue(), minimumValue(), and maximumValue().
Trait Implementations§
source§impl CppDeletable for QAccessibleValueInterface
impl CppDeletable for QAccessibleValueInterface
source§unsafe fn delete(&self)
unsafe fn delete(&self)
Destroys the QAccessibleValueInterface.
Calls C++ function: virtual [destructor] void QAccessibleValueInterface::~QAccessibleValueInterface()
.
Destroys the QAccessibleValueInterface.